configure: Preserve the user's $CPPFLAGS and $LDFLAGS.

This commit is contained in:
Ludovic Courtès 2011-10-04 13:31:05 +00:00
parent 14596d3ed1
commit 67318a2f5b

View file

@ -41,8 +41,8 @@ AC_SUBST(nix)
old_CPPFLAGS="$CPPFLAGS" old_CPPFLAGS="$CPPFLAGS"
old_LIBS="$LIBS" old_LIBS="$LIBS"
CPPFLAGS="-I$nix/include/nix" CPPFLAGS="$CPPFLAGS -I$nix/include/nix"
LDFLAGS="-L$nix/lib/nix" LDFLAGS="$LDFLAGS -L$nix/lib/nix"
AC_CHECK_HEADER([store-api.hh], [:], AC_CHECK_HEADER([store-api.hh], [:],
[AC_MSG_ERROR([Nix headers not found; please install Nix or check the `--with-nix' option.])]) [AC_MSG_ERROR([Nix headers not found; please install Nix or check the `--with-nix' option.])])