diff options
author | Bryan Jurish <mukau@users.sourceforge.net> | 2009-02-14 20:33:11 +0000 |
---|---|---|
committer | Bryan Jurish <mukau@users.sourceforge.net> | 2009-02-14 20:33:11 +0000 |
commit | 4f69b08833151fab744e64a16ae8016a123fa929 (patch) | |
tree | 4e09f076dd8d1ea13ac8d791e2dfffb8fec88e7f /common/autogen.sh | |
parent | bef9c971689eacf66aac7a5856ef3d0758710ca8 (diff) |
+ added centralized common autotools stuff:
m4/ : m4 macros for autoconf (ax_pd_external.m4)
pdexternal.am : automake include file
autogen.sh : the usual hack
svn path=/trunk/externals/moocow/; revision=10767
Diffstat (limited to 'common/autogen.sh')
-rwxr-xr-x | common/autogen.sh | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/common/autogen.sh b/common/autogen.sh new file mode 100755 index 0000000..3e88258 --- /dev/null +++ b/common/autogen.sh @@ -0,0 +1,48 @@ +#!/bin/sh + +#----------------------------------------------------------------------- +# File: autogen.sh +# Description: +# + wrapper for m4 black-magic +#----------------------------------------------------------------------- + +MY_ALDIRS="." +MY_AHDIRS="." +MY_AMDIRS="." +MY_ACDIRS="." + +test -z "$ACLOCAL" && ACLOCAL="aclocal -I m4" +test -z "$AUTOHEADER" && AUTOHEADER=autoheader +test -z "$AUTOMAKE" && AUTOMAKE=automake +test -z "$AUTOCONF" && AUTOCONF=autoconf + +if test -n "$MY_ALDIRS"; then + for d in $MY_ALDIRS ; do + echo "(cd $d ; $ACLOCAL)" + (cd $d ; $ACLOCAL) + done +fi + +if test -n "$MY_AHDIRS"; then + for d in $MY_AHDIRS ; do + echo "(cd $d ; $AUTOHEADER)" + (cd $d ; $AUTOHEADER) + done +fi + +if test -n "$MY_AMDIRS"; then + for d in $MY_AMDIRS ; do + echo "(cd $d ; $AUTOMAKE -a -c)" + (cd $d ; $AUTOMAKE -a -c) + done +fi + +if test -n "$MY_ACDIRS"; then + for d in $MY_ACDIRS ; do + echo "(cd $d ; $AUTOCONF)" + (cd $d ; $AUTOCONF) + done +fi + +#echo "(./configure)" +#./configure $* |