diff options
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 35b185476..b1568a6d1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,7 +19,7 @@ endif if WITH_LUA SUBDIRS += luaext endif -SUBDIRS += rpmio lib sign build scripts fileattrs doc . tests +SUBDIRS += rpmio lib sign build scripts fileattrs doc . if ENABLE_PYTHON SUBDIRS += python @@ -29,6 +29,10 @@ if ENABLE_PLUGINS SUBDIRS += plugins endif +if HAVE_FAKECHROOT +SUBDIRS += tests +endif + DIST_SUBDIRS = po misc luaext rpmio lib sign build python scripts fileattrs doc tests plugins pkgconfigdir = $(libdir)/pkgconfig diff --git a/configure.ac b/configure.ac index e3fe5112e..13c972d36 100644 --- a/configure.ac +++ b/configure.ac @@ -138,7 +138,9 @@ AC_PATH_PROG(__NM, nm, /usr/bin/nm, $MYPATH) AC_PATH_PROG(__OBJCOPY, objcopy, /usr/bin/objcopy, $MYPATH) AC_PATH_PROG(__OBJDUMP, objdump, /usr/bin/objdump, $MYPATH) AC_PATH_PROG(__STRIP, strip, /usr/bin/strip, $MYPATH) -AC_PATH_PROG(__FAKECHROOT, fakechroot, /usr/bin/fakechroot, $MYPATH) + +AC_PATH_PROG(__FAKECHROOT, fakechroot, no, $MYPATH) +AM_CONDITIONAL(HAVE_FAKECHROOT, [test "$__FAKECHROOT" != "no"]) dnl see if we have a mkdir that supports `-p' for rpmbuild's purposes AC_PROG_MKDIR_P |