]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Put zlib and popt -I options early in the CFLAGS.
authorWayne Davison <wayned@samba.org>
Sat, 14 Jun 2014 16:48:56 +0000 (09:48 -0700)
committerWayne Davison <wayned@samba.org>
Sat, 14 Jun 2014 16:48:56 +0000 (09:48 -0700)
configure.ac

index 4f41f8d7c7b4dc4e3c5b96d6e4314a7bbb5cc7ba..588f551ac5464d335ccb77a8784cc9c1787c2437 100644 (file)
@@ -765,7 +765,7 @@ AC_MSG_CHECKING([whether to use included libpopt])
 if test x"$with_included_popt" = x"yes"; then
     AC_MSG_RESULT($srcdir/popt)
     BUILD_POPT='$(popt_OBJS)'
-    CFLAGS="$CFLAGS -I$srcdir/popt"
+    CFLAGS="-I$srcdir/popt $CFLAGS"
     if test x"$ALLOCA" != x
     then
        # this can be removed when/if we add an included alloca.c;
@@ -790,7 +790,7 @@ AC_MSG_CHECKING([whether to use included zlib])
 if test x"$with_included_zlib" = x"yes"; then
     AC_MSG_RESULT($srcdir/zlib)
     BUILD_ZLIB='$(zlib_OBJS)'
-    CFLAGS="$CFLAGS -I$srcdir/zlib"
+    CFLAGS="-I$srcdir/zlib $CFLAGS"
 else
     AC_DEFINE(EXTERNAL_ZLIB, 1, [Define to 1 if using external zlib])
     AC_MSG_RESULT(no)