I created a configure script with autoconf to create my project.
It works fine if I don't have a library installed. A return error if some files are missing, but it should be checked with the configure script, I think?
So my question is: how to change the autoconf script created to look for dependencies and tell the user which libraries he is missing?
Depending on the dependency, there is no general solution.
AC_CHECK_LIB AC_SEARCH_LIBS , , .
AC_CHECK_LIB
AC_SEARCH_LIBS
pkg-config - , , .
pkg-config
, AC pkg-config , , , , , , .
, . Stick, , ( Shlomi Fish) configure.ac:
configure.ac
if test "x$requires_libavl" = "xyes" ; then AC_CHECK_LIB(avl, avl_create, [], [ echo "Error! You need to have libavl around." exit -1 ]) fi
, pre-2.5 autoconf, configure.in.
configure.in
, , - , , , / configure script. , , . , , .
Source: https://habr.com/ru/post/1710494/More articles:Postback problem for my user load configuration wizard - asp.netHow to use IPAddress and IPv4Mask to get a range of IP addresses? - c #Как установить приоритет\пул в задаче Hadoop Streaming? - hadoopEnable autocomplete .api files? - ruby | fooobar.comRESTful WCF service through standard WCF service - restFinding a .class file has a bad version - javaПостроение EntityObject из EntityKey без вызова базы данных в Entity Framework - entity-frameworkКак реализовать или изменить таблицу отправки методов в Objective-C? - objective-cHow to configure web.xml - java-eeDirect Modem Access in Windows Mobile - c ++All Articles