From 2d08e902ef07b4a888fa3daf2d5a658dd04dac4e Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sat, 21 Jan 2006 16:50:01 +0000 Subject: added a FAKEROOT define allowing to use pacman in a fakeroot enivronment (for tests purpose) --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5d33fa33..51450c63 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,11 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--disable-debug], [Disable debugging support]), [debug=$enableval], [debug=yes]) +dnl Help line for fakeroot +AC_ARG_ENABLE(fakeroot, + AC_HELP_STRING([--disable-fakeoot], [Disable fakeroot proof support]), + [fakeroot=$enableval], [fakeroot=yes]) + dnl Check for man2html binary AC_MSG_CHECKING(for support man2html) if test x$wantman2html = xyes ; then @@ -111,6 +116,15 @@ else AC_MSG_RESULT(no) fi +dnl Enable or disable fakeroot code +AC_MSG_CHECKING(for fakeroot proof support) +if test x$fakeroot = xyes ; then + AC_MSG_RESULT(yes) +else + CFLAGS="$CFLAGS -DFAKEROOT" + AC_MSG_RESULT(no) +fi + dnl Check for zlib AC_CHECK_LIB([z], [gzsetparams], [AC_CHECK_HEADER([zlib.h], [LIBZ='-lz'])]) if test -n "$LIBZ"; then -- cgit v1.2.3-70-g09d2