Only enable test-suite if fakechroot is available
This commit is contained in:
parent
aea6f0423f
commit
a81d933cc3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue