aboutsummaryrefslogtreecommitdiffstats
path: root/m4/outoforder.m4
diff options
context:
space:
mode:
authorGravatar Nokis Mavrogiannopoulos 2008-03-05 17:38:09 +0000
committerGravatar Nokis Mavrogiannopoulos 2008-03-05 17:38:09 +0000
commit2cb49bd5137176e1445550399b6e9592607858a3 (patch)
treee7c8933ce56ecdac588fbaa9af0c4beb03850c3e /m4/outoforder.m4
parentfc05b4b880d4247da9353cae6be44180dee17b23 (diff)
Diffstat (limited to 'm4/outoforder.m4')
-rw-r--r--m4/outoforder.m436
1 files changed, 36 insertions, 0 deletions
diff --git a/m4/outoforder.m4 b/m4/outoforder.m4
new file mode 100644
index 0000000..7add221
--- /dev/null
+++ b/m4/outoforder.m4
@@ -0,0 +1,36 @@
1dnl m4 for utility macros used by all out of order projects
2
3dnl this writes a "config.nice" file which reinvokes ./configure with all
4dnl of the arguments. this is different from config.status which simply
5dnl regenerates the output files. config.nice is useful after you rebuild
6dnl ./configure (via autoconf or autogen.sh)
7AC_DEFUN([OOO_CONFIG_NICE],[
8 echo configure: creating $1
9 rm -f $1
10 cat >$1<<EOF
11#! /bin/sh
12#
13# Created by configure
14
15EOF
16
17 for arg in [$]0 "[$]@"; do
18 if test "[$]arg" != "--no-create" -a "[$]arg" != "--no-recursion"; then
19 echo "\"[$]arg\" \\" >> $1
20 fi
21 done
22 echo '"[$]@"' >> $1
23 chmod +x $1
24])
25
26dnl this macro adds a maintainer mode option to enable programmer specific
27dnl code in makefiles
28AC_DEFUN([OOO_MAINTAIN_MODE],[
29 AC_ARG_ENABLE(
30 maintainer,
31 [AC_HELP_STRING([--enable-maintainer],[Enable maintainer mode for this project])],
32 AC_MSG_RESULT([Enabling Maintainer Mode!!])
33 OOO_MAINTAIN=1,
34 OOO_MAINTAIN=0)
35 AC_SUBST(OOO_MAINTAIN)
36])