From: Vincent Bernat Date: Sun, 13 Dec 2015 08:52:43 +0000 (+0100) Subject: build: let AC_SEARCH_LIBS modify LIBS X-Git-Tag: 0.8.0~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f587dfff2d8c17a58370d63be934ff0a2939da41;p=thirdparty%2Flldpd.git build: let AC_SEARCH_LIBS modify LIBS Users is expected to be able to modify CFLAGS and LDFLAGS. We don't care about other variables like LIBS. --- diff --git a/configure.ac b/configure.ac index 3e3461d4..d3bf3c13 100644 --- a/configure.ac +++ b/configure.ac @@ -160,6 +160,9 @@ AC_REPLACE_FUNCS([strlcpy # Optional functions AC_CHECK_FUNCS([setresuid setresgid]) +CFLAGS="$_save_CFLAGS" +LIBS="$_save_LIBS" + # Check for res_init. On OSX, res_init is a symbol in libsystem_info # and a macro in resolv.h. We need to ensure we test with resolv.h. m4_pushdef([AC_LANG_CALL(C)], [ @@ -170,9 +173,6 @@ AC_SEARCH_LIBS([res_init], resolv bind, [Define to indicate that res_init() exists])) m4_popdef([AC_LANG_CALL(C)]) -CFLAGS="$_save_CFLAGS" -LIBS="$_save_LIBS" - AC_CACHE_SAVE ## Unit tests wich check