aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-03-24 22:55:12 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-03-24 22:55:12 +0000
commitedc8480149c3d5bb4c4d7b509c9ac940d6ac5d47 (patch)
tree2f35a2bfa6c1bb6fa0bb3e1d516694e4fbbc5297
parentb1b396587f22b96bd32f3aa0ede7a6cda4470179 (diff)
downloadpaludis-edc8480149c3d5bb4c4d7b509c9ac940d6ac5d47.tar.gz
paludis-edc8480149c3d5bb4c4d7b509c9ac940d6ac5d47.tar.xz
Add --enable-qa, on by default
-rw-r--r--configure.ac12
-rw-r--r--paludis/qa/Makefile.am.m421
-rw-r--r--src/qualudis/Makefile.am4
3 files changed, 28 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index 579e6da..f2729c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -301,6 +301,18 @@ AC_SUBST([HAVE_DOT])
AM_CONDITIONAL([HAVE_DOT], test "x$HAVE_DOT" = "xyes")
dnl }}}
+dnl {{{ check for whether to build qa stuff
+AC_MSG_CHECKING([whether to build QA tools])
+AC_ARG_ENABLE([qa],
+ [ --enable-qa Build QA tool (qualudis) and library],
+ [ENABLE_QA=$enableval
+ AC_MSG_RESULT([$enableval])],
+ [ENABLE_QA=$enableval
+ AC_MSG_RESULT([yes])])
+AC_SUBST([ENABLE_QA])
+AM_CONDITIONAL([ENABLE_QA], test "x$ENABLE_QA" = "xyes")
+dnl }}}
+
dnl {{{ built sources
GENERATED_FILE=misc/generated-file.txt
AC_SUBST_FILE(GENERATED_FILE)
diff --git a/paludis/qa/Makefile.am.m4 b/paludis/qa/Makefile.am.m4
index fe9ea1c..56c8c8c 100644
--- a/paludis/qa/Makefile.am.m4
+++ b/paludis/qa/Makefile.am.m4
@@ -3,6 +3,8 @@ ifdef(`__gnu__',`',`errprint(`This is not GNU m4...
dnl vim: set ft=m4 noet :
+if ENABLE_QA
+
define(`filelist', `')dnl
define(`testlist', `')dnl
define(`testscriptlist', `')dnl
@@ -31,15 +33,6 @@ addthis(`$1',`$5')addthis(`$1',`$6')')dnl
include(`paludis/qa/files.m4')
-CLEANFILES = *~
-MAINTAINERCLEANFILES = Makefile.in Makefile.am qa.hh
-AM_CXXFLAGS = -I$(top_srcdir)
-DEFS= \
- -DSYSCONFDIR=\"$(sysconfdir)\" \
- -DLIBEXECDIR=\"$(libexecdir)\" \
- -DBIGTEMPDIR=\"/var/tmp\"
-EXTRA_DIST = Makefile.am.m4 files.m4 qa.hh.m4 testscriptlist
-
libpaludisqa_la_SOURCES = filelist
libpaludisqa_la_LIBADD = $(top_builddir)/paludis/libpaludis.la
libpaludisqa_la_LDFLAGS = -version-info 0:0:0
@@ -55,9 +48,19 @@ check_PROGRAMS = $(TESTS)
check_SCRIPTS = testscriptlist
lib_LTLIBRARIES = libpaludisqa.la
+endif
+
Makefile.am : Makefile.am.m4 files.m4
$(top_srcdir)/misc/do_m4.bash Makefile.am
qa.hh : qa.hh.m4 files.m4
$(top_srcdir)/misc/do_m4.bash qa.hh
+CLEANFILES = *~
+MAINTAINERCLEANFILES = Makefile.in Makefile.am qa.hh
+AM_CXXFLAGS = -I$(top_srcdir)
+DEFS= \
+ -DSYSCONFDIR=\"$(sysconfdir)\" \
+ -DLIBEXECDIR=\"$(libexecdir)\" \
+ -DBIGTEMPDIR=\"/var/tmp\"
+EXTRA_DIST = Makefile.am.m4 files.m4 qa.hh.m4 testscriptlist
diff --git a/src/qualudis/Makefile.am b/src/qualudis/Makefile.am
index 6f8bc4b..56603f6 100644
--- a/src/qualudis/Makefile.am
+++ b/src/qualudis/Makefile.am
@@ -7,6 +7,8 @@ DEFS= \
-DBIGTEMPDIR=\"/var/tmp\"
SUBDIRS = .
+if ENABLE_QA
+
bin_PROGRAMS = qualudis
qualudis_SOURCES = \
@@ -25,3 +27,5 @@ TESTS = version_TEST
version_TEST :
echo -e "#!/bin/sh\n./qualudis --version" > $@
+endif
+