[sysprof] Make it distcheck



commit 626078e873af581c7d29c10cbfcae74d0b49bf37
Author: Søren Sandmann Pedersen <ssp redhat com>
Date:   Fri Sep 25 11:37:26 2009 -0400

    Make it distcheck
    
    Also add a warning about compiling against a too old kernel.

 Makefile.am   |   23 ++++++++++++---------
 collector.c   |    1 -
 configure.ac  |   61 ++++++++------------------------------------------------
 sysprof-cli.c |    1 -
 sysprof.c     |    1 -
 5 files changed, 22 insertions(+), 65 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 89f4341..1624fc4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,5 @@
-SUBDIRS = $(MODULE_SUBDIR)
-DIST_SUBDIRS = module
+#SUBDIRS = $(MODULE_SUBDIR)
+#DIST_SUBDIRS = module
 
 bin_PROGRAMS = sysprof-cli
 
@@ -32,7 +32,10 @@ SYSPROF_CORE =					\
 	watch.h					\
 	watch.c					\
 						\
-	module/sysprof-module.h			
+	perf_counter.h				\
+	barrier.h
+
+#	module/sysprof-module.h			
 
 #
 # GUI version
@@ -85,14 +88,14 @@ sysprof_cli_LDADD = $(CORE_DEP_LIBS)
 # Module stuff
 #  
 
-EXTRA_DIST =					\
-	module/sysprof-module.c			\
-	module/sysprof-module.h			\
-	module/Makefile
+#EXTRA_DIST =					\
+#	module/sysprof-module.c			\
+#	module/sysprof-module.h			\
+#	module/Makefile
 
-insert-module:
-	/sbin/modprobe -r sysprof-module
-	/sbin/modprobe sysprof-module
+#insert-module:
+#	/sbin/modprobe -r sysprof-module
+#	/sbin/modprobe sysprof-module
 
 # 
 # Test programs
diff --git a/collector.c b/collector.c
index 2e5e979..edef9f9 100644
--- a/collector.c
+++ b/collector.c
@@ -30,7 +30,6 @@
 
 #include "stackstash.h"
 #include "collector.h"
-#include "module/sysprof-module.h"
 #include "watch.h"
 #include "elfparser.h"
 #include "tracker.h"
diff --git a/configure.ac b/configure.ac
index aef46d4..538212f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,42 +44,10 @@ AC_ARG_WITH(separate-debug-dir,
 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 9 ]] ; then
-     echo \*
-     echo \* Linux \>= 2.6.9 is required
-     echo \*
-     exit 1
-  fi
-
-  if [ ! test -f /lib/modules/`uname -r`/build/Makefile ] ; then
-     case `uname -r` in
-     *smp) pkg=kernel-smp-devel ;;
-     *) pkg=kernel-devel ;;
-     esac
-     echo \*
-     echo \* Sysprof requires the kernel source code to be installed.
-     echo \* On a Fedora Core system the relevant package is $pkg
-     echo \*
-     exit 1
-  fi
-fi
+# 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`
 
 # Pkgconfig dependencies
 
@@ -105,27 +73,16 @@ Makefile
 
 AC_OUTPUT
 
-if true; then
+if [[ $KMICRO -lt 31 ]] ; then
    echo
    echo "% %@% %@% %@% %@% %@% %@% %@% %@% %@% %@% %@% %@% %@% %@%"
    echo "@"  
-   echo "%      Thank you for testing the git version of sysprof."
-   echo "@"
-   echo "%      There are currently no known bugs in the kernel"
-   echo "@      module in this version, but there could easily be"
-   echo "%      unknown ones. Please report any crashes or lockups"
-   echo "@      that you experience to sandmann daimi au dk "
+   echo "%      This version of sysprof will only work with a "
+   echo "@      2.6.31 kernel or later, but you are using 2.6.$KMICRO."
    echo "%"
+   echo "@      You can _compile_ it against this version, but it "
+   echo "%      will not work unless you install 2.6.31 or later. "
    echo "@"
-   echo "%      If you need a stable version of sysprof, either"
-   echo "@      get version 1.0 from"
-   echo "%"
-   echo "@          http://www.daimi.au.dk/~sandmann/sysprof";
-   echo "%"
-   echo "@      or do"
-   echo "%"
-   echo "@          git checkout sysprof-1.0"
-   echo "%"
    echo "@% %@% %@% %@% %@% %@% %@% %@% %@% %@% %@% %@% %@% %@% %@"
    echo
 fi
diff --git a/sysprof-cli.c b/sysprof-cli.c
index ee03a8c..9b6b331 100644
--- a/sysprof-cli.c
+++ b/sysprof-cli.c
@@ -28,7 +28,6 @@
 #include <stdio.h>
 
 #include "stackstash.h"
-#include "module/sysprof-module.h"
 #include "profile.h"
 #include "watch.h"
 #include "signal-handler.h"
diff --git a/sysprof.c b/sysprof.c
index 49c6452..77ada79 100644
--- a/sysprof.c
+++ b/sysprof.c
@@ -29,7 +29,6 @@
 #include "treeviewutils.h"
 #include "profile.h"
 #include "collector.h"
-#include "module/sysprof-module.h"
 
 /* FIXME - not10 */
 #define _(a) a



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]