From: Ruben Kerkhof Date: Tue, 13 Jan 2015 12:31:01 +0000 (+0100) Subject: Append to PKG_CONFIG only after calling PKG_PROG_PKG_CONFIG X-Git-Tag: rec-3.7.0-rc1~28^2~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27fe16bdc147c7010d40d4aed53143edd3fc9de2;p=thirdparty%2Fpdns.git Append to PKG_CONFIG only after calling PKG_PROG_PKG_CONFIG Otherwise PKG_CONFIG is not set yet. --- diff --git a/configure.ac b/configure.ac index 7f05c0af4d..98017fd062 100644 --- a/configure.ac +++ b/configure.ac @@ -60,6 +60,9 @@ AM_CONDITIONAL([RELEASE_BUILD], [test "$PACKAGE_VERSION" != "git"]) # We use this to search for other libraries. eval full_libdir="\"$libdir\"" +# detect pkg-config explicitly +PKG_PROG_PKG_CONFIG + # check if we want a static build AC_MSG_CHECKING([whether we will be building static binaries]) @@ -74,9 +77,6 @@ AS_IF([test "x$static" != "xno"], [ PKG_CONFIG="$PKG_CONFIG --static" ]) -# detect pkg-config explicitly -PKG_PROG_PKG_CONFIG - AC_CHECK_HEADERS( [sys/mman.h], [AC_CHECK_FUNC(