+Mon Oct 10 14:33:50 2005 Søren Sandmann <sandmann@redhat.com>
+
+ * configure.ac: Add --disable-kernel-module option. Patch from
+ Pascal Terjan.
+
Mon Oct 10 13:00:20 2005 Robert Love <rml@novell.com>
* module/sysprof-module.c: Don't use INTERVAL or SAMPLES_PER_SECOND
AC_DEFINE_DIR(DEBUGDIR, debugdir,
[Look for global separate debug info in this path])
+AC_ARG_ENABLE(kernel-module,
+ AC_HELP_STRING(--disable-kernel-module, disable building kernel module))
+
+kernel_module="yes"
+if test "x$enableval" = "xno"; then
+ kernel_module="no"
+fi
+
+if test $kernel_module = "yes"; then
+ # Activate build in module/ subdir
+ MODULE_SUBDIR=module
+
+ # Kernel version
+ KMAJOR=`uname -r | cut -d"." -f 1`
+ KMINOR=`uname -r | cut -d"." -f 2`
+ KMICRO=`uname -r | cut -d"." -f 3 | cut -d"-" -f 1`
+
+ if [[ $KMICRO -lt 11 ]] ; then
+ echo *
+ echo * Linux \>= 2.6.11 is required
+ echo *
+ exit 1
+ fi
+
+ if [ ! test -f /lib/modules/`uname -r`/build/Makefile ] ; then
+ echo \*
+ echo \* Sysprof requires the kernel source code to be installed.
+ echo \* On a Fedora Core system the relevant package is kernel-devel
+ echo \*
+ exit 1
+ fi
+fi
+
# Pkgconfig dependencies
dep_modules="gtk+-2.0 > 2.6.0 gthread-2.0 gdk-pixbuf-2.0 pangoft2 libglade-2.0"
# emit files
AC_SUBST(DEP_LIBS)
+AC_SUBST(MODULE_SUBDIR)
AC_CONFIG_FILES([
Makefile
])
-# Kernel version
-
-KMAJOR=`uname -r | cut -d"." -f 1`
-KMINOR=`uname -r | cut -d"." -f 2`
-KMICRO=`uname -r | cut -d"." -f 3 | cut -d"-" -f 1`
-
-if [[ $KMICRO -lt 11 ]] ; then
- echo *
- echo * Linux \>= 2.6.11 is required
- echo *
- exit 1
-fi
-
-if [ ! test -f /lib/modules/`uname -r`/build/Makefile ] ; then
- echo \*
- echo \* Sysprof requires the kernel source code to be installed.
- echo \* On a Fedora Core system the relevant package is kernel-devel
- echo \*
- exit 1
-fi
-
AC_OUTPUT