avahi_CFLAGS
BUILD_SERVER_FALSE
BUILD_SERVER_TRUE
+dracutstap
HAVE_NSS_FALSE
HAVE_NSS_TRUE
nss_LIBS
enable_docs
enable_refdocs
with_nss
+with_dracutstap
enable_server
with_avahi
with_rpm
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
--without-libintl-prefix don't search for libintl in includedir and libdir
--without-nss Do not use NSS even if present
+ --with-dracutstap=DIR Install dracut module files in DIR
--without-avahi Do not use Avahi even if present
--with-rpm query rpm database for missing debuginfos
--with-elfutils=DIRECTORY
fi
+
+# Check whether --with-dracutstap was given.
+if test "${with_dracutstap+set}" = set; then :
+ withval=$with_dracutstap;
+fi
+
+if test "x$with_dracutstap" != "x"; then :
+ dracutstap="$with_dracutstap"
+else
+ dracutstap=/usr/lib/dracut/modules.d/99stap
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5
+$as_echo "$as_me: using dracut module directory $dracutstap" >&6;}
+
+
# Check whether --enable-server was given.
if test "${enable_server+set}" = set; then :
enableval=$enable_server; enable_server=$enableval
AM_CONDITIONAL([HAVE_NSS], [test "${have_nss}" = "yes"])
+dnl Handle dracut directory configuration. Note we hard-code /usr by default,
+dnl instead of $prefix, because dracut is a system service that doesn't listen
+dnl at relocatable directories.
+AC_ARG_WITH([dracutstap],
+ AS_HELP_STRING([--with-dracutstap=DIR],
+ [Install dracut module files in DIR]))
+AS_IF([test "x$with_dracutstap" != "x"],[dracutstap="$with_dracutstap"],
+ [dracutstap=/usr/lib/dracut/modules.d/99stap])
+AC_MSG_NOTICE([using dracut module directory $dracutstap])
+AC_SUBST(dracutstap)
+
dnl Handle the option to build the compile server.
AC_ARG_ENABLE([server],
AS_HELP_STRING([--enable-server],
#!/bin/bash
# NB: $moddir only works in install()
-. @prefix@/lib/dracut/modules.d/99stap/params.conf
+. @dracutstap@/params.conf
# Return 0 --> install stap module
# Return 1 --> skip stap module
LOG_FILE=@localstatedir@/log/systemtap.log
# NB: this path is also used in 99stap/module-setup.sh
-DRACUT_SRC=@prefix@/lib/dracut/modules.d/99stap/params.conf
+DRACUT_SRC=@dracutstap@/params.conf
# FAIL unless all scripts succeeded to run
PASSALL=yes
%endif
%endif
-%define dracutlibdir %{_prefix}/lib/dracut
-%define dracutstap %{dracutlibdir}/modules.d/99stap
+%define dracutstap %{_prefix}/lib/dracut/modules.d/99stap
Name: systemtap
Version: 2.8
%global virt_config --disable-virt
%endif
-%configure %{?elfutils_config} %{dyninst_config} %{sqlite_config} %{crash_config} %{docs_config} %{pie_config} %{rpm_config} %{java_config} %{virt_config} --disable-silent-rules --with-extra-version="rpm %{version}-%{release}"
+%if %{with_dracut}
+%global dracut_config --with-dracutstap=%{dracutstap}
+%else
+%global dracut_config
+%endif
+
+%configure %{?elfutils_config} %{dyninst_config} %{sqlite_config} %{crash_config} %{docs_config} %{pie_config} %{rpm_config} %{java_config} %{virt_config} %{dracut_config} --disable-silent-rules --with-extra-version="rpm %{version}-%{release}"
make %{?_smp_mflags}
%if %{with_emacsvim}