/autotools/missing
/autotools/py-compile
/autotools/replace_vars.sed
+/autotools/testrunner
/config.log
/config.status
/configure
$(PYTHON_BOOTSTRAP) \
epydoc.conf \
autotools/replace_vars.sed \
+ autotools/testrunner \
daemons/daemon-util \
daemons/ganeti-cleaner \
devel/upload \
# Things to build but not to install (add it to EXTRA_DIST if it should be
# distributed)
noinst_DATA = \
+ autotools/testrunner \
devel/upload \
doc/html \
$(BUILT_EXAMPLES) \
autotools/convert-constants \
autotools/docpp \
autotools/gen-coverage \
- autotools/testrunner \
+ autotools/testrunner.in \
$(RUN_IN_TEMPDIR) \
daemons/daemon-util.in \
daemons/ganeti-cleaner.in \
sed -f $(REPLACE_VARS_SED) < $< > $@
chmod +x $@
+autotools/testrunner: autotools/testrunner.in $(REPLACE_VARS_SED)
+ sed -f $(REPLACE_VARS_SED) < $< > $@
+ chmod u+x $@
+
devel/upload: devel/upload.in $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@
chmod u+x $@
echo 's#@GNTMASTERDGROUP@#$(MASTERD_GROUP)#g'; \
echo 's#@GNTDAEMONSGROUP@#$(DAEMONS_GROUP)#g'; \
echo 's#@CUSTOM_ENABLE_CONFD@#$(ENABLE_CONFD)#g'; \
+ echo 's#@FAKEROOT@#$(FAKEROOT_PATH)#g'; \
} > $@
# Using deferred evaluation
#!/bin/bash
#
-# Copyright (C) 2010 Google Inc.
+# Copyright (C) 2010, 2011 Google Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
set -e
+FAKEROOT='@FAKEROOT@'
+
filename=$1
+execasroot() {
+ if [[ -z "$FAKEROOT" ]]; then
+ echo "'fakeroot' not found at configure time" >&2
+ exit 1
+ fi
+ exec "$FAKEROOT" "$@"
+}
+
case "$filename" in
+ *-runasroot.py) execasroot $PYTHON "$@" ;;
*.py) exec $PYTHON "$@" ;;
+ *-runasroot) execasroot "$@" ;;
*) exec "$@" ;;
esac
AM_CONDITIONAL([WANT_HTOOLSTESTS], [test "x$GHC_PKG_QUICKCHECK" != x])
AM_CONDITIONAL([WANT_HTOOLSAPIDOC], [test x$HTOOLS_APIDOC = xyes])
+# Check for fakeroot
+AC_ARG_VAR(FAKEROOT_PATH, [fakeroot path])
+AC_PATH_PROG(FAKEROOT_PATH, [fakeroot], [])
+if test -z "$FAKEROOT_PATH"; then
+ AC_MSG_WARN(m4_normalize([fakeroot not found, tests that must run as root
+ will not be executed]))
+fi
+AM_CONDITIONAL([HAS_FAKEROOT], [test "x$FAKEROOT_PATH" != x])
+
SOCAT_USE_ESCAPE=
AC_ARG_ENABLE([socat-escape],
[AS_HELP_STRING([--enable-socat-escape],