]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Generate default.supp at compile-time, not configure-time.
authorNicholas Nethercote <njn@valgrind.org>
Tue, 20 Jan 2009 06:56:26 +0000 (06:56 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Tue, 20 Jan 2009 06:56:26 +0000 (06:56 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8994

Makefile.am
configure.in

index e66b4bc41377a191f294154c649f76ae7f791db9..f9e57359fca324e091e9ac2280fa83e8c925c9d4 100644 (file)
@@ -28,6 +28,7 @@ SUPP_FILES = \
        glibc-2.2-LinuxThreads-helgrind.supp \
        glibc-2.X-drd.supp \
        exp-ptrcheck.supp
+DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
 
 dist_val_DATA = $(SUPP_FILES) default.supp
 
@@ -66,7 +67,10 @@ if VGP_PPC64_AIX5
 # Ditto
 endif
 
-default.supp: $(SUPP_FILES)
+default.supp: $(DEFAULT_SUPP_FILES)
+       echo "# This is a generated file, composed of the following suppression rules:" > default.supp
+       echo "# " $(DEFAULT_SUPP_FILES) >> default.supp
+       cat $(DEFAULT_SUPP_FILES) >> default.supp
 
 ## Preprend @PERL@ because tests/vg_regtest isn't executable
 regtest: check
@@ -94,7 +98,7 @@ EXTRA_DIST = \
 install-exec-hook:
        $(mkinstalldirs) $(DESTDIR)$(valdir)
 
-all-local:
+all-local: default.supp
        mkdir -p $(inplacedir)
        rm -f $(addprefix $(inplacedir)/,default.supp $(SUPP_FILES))
        ln -s ../default.supp $(inplacedir)
index 1c6eff8e556537ddc43f2090767f53a4a28985a3..ace0161aec338142255ced0e97d9edc123b80ea3 100644 (file)
@@ -209,6 +209,10 @@ if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
 fi
 
 
+# This variable will collect the individual suppression files
+# depending on the results of autoconf
+DEFAULT_SUPP=""
+AC_SUBST(DEFAULT_SUPP)
 
 AC_MSG_CHECKING([for a supported OS])
 AC_SUBST(VG_OS)
@@ -458,10 +462,6 @@ else
 fi
 
 
-# This variable will collect the individual suppression files
-# depending on the results of autoconf
-DEFAULT_SUPP=""
-AC_SUBST(DEFAULT_SUPP)
 
 
 GLIBC_VERSION=""
@@ -1687,15 +1687,3 @@ cat<<EOF
          Default supp files: ${DEFAULT_SUPP}
 
 EOF
-
-cat<<EOF > default.supp
-# This is a generated file, composed of the following suppression rules:
-#
-#      ${DEFAULT_SUPP}
-#
-
-EOF
-
-for file in ${DEFAULT_SUPP} ; do
-    cat ${srcdir}/$file >> default.supp
-done