Permalink
Browse files

Append to PKG_CONFIG only after calling PKG_PROG_PKG_CONFIG

Otherwise PKG_CONFIG is not set yet.

(cherry picked from commit 27fe16b)
  • Loading branch information...
1 parent 705a73f commit 1d5a68d9d1111d70b3dc474a638646678f851c87 @rubenk rubenk committed Jan 13, 2015
Showing with 3 additions and 3 deletions.
  1. +3 −3 configure.ac
View
@@ -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(

0 comments on commit 1d5a68d

Please sign in to comment.