Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When does an c/c++ project need a configure file?

Tags:

c++

c

configure

Almost every c/c++ open source project I see ships with it a configure file.

But in our own c/c++ project I haven't seen this file so far,

when is it needed?

like image 309
wireshark Avatar asked Dec 04 '22 08:12

wireshark


1 Answers

I think you are speaking about configure script which is used, when autotools are used to build the project.

The main purpose of the configure file is to generate Makefiles appropriate to your system configuration and to check various preconditions (installed libs, for example).

like image 113
beduin Avatar answered Dec 29 '22 22:12

beduin