3 # autogen.sh - Generates the initial makefiles from a pristine CVS tree
5 # $Id: autogen.sh,v 1.1 2002-10-30 22:38:35 nebogeo Exp $
7 # USAGE: autogen.sh [configure options]
9 # If environment variable DRYRUN is set, no configuring will be done -
10 # (e.g. in bash) DRYRUN=1 ./autogen.sh
11 # will not do any configuring but will emit the programs that would be run.
13 # This script is based on similar scripts used in various tools
14 # commonly made available via CVS and used with GNU automake.
15 # Try 'locate autogen.sh' on your system and see what you get.
18 PACKAGE
=spiralsynthmodular
21 if test "X$DRYRUN" != X
; then
31 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1 ; then
32 if (autoconf
--version |
awk 'NR==1 { if( $3 >= '$autoconf_vers') \
35 echo "$program: ERROR: \`autoconf' is too old."
36 echo " (version $autoconf_vers or newer is required)"
41 echo "$program: ERROR: You must have \`autoconf' installed to compile $PACKAGE."
42 echo " (version $autoconf_vers or newer is required)"
46 # Ensure that these are created by the versions on this system
47 # (indirectly via automake)
48 rm -f libtool ltmain.sh
49 if (automake
--version) < /dev
/null
> /dev
/null
2>&1 ; then
50 if (automake
--version |
awk 'NR==1 { if( $4 >= '$automake_vers') \
53 echo "$program: ERROR: \`automake' is too old."
54 echo " (version $automake_vers or newer is required)"
57 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
58 if (aclocal
--version |
awk 'NR==1 { if( $4 >= '$aclocal_vers' ) \
61 echo "$program: ERROR: \`aclocal' is too old."
62 echo " (version $aclocal_vers or newer is required)"
67 echo "$program: ERROR: Missing \`aclocal'"
68 echo " The version of automake installed doesn't appear recent enough."
73 echo "$program: ERROR: You must have \`automake' installed to compile $PACKAGE."
74 echo " (version $automake_vers or newer is required)"
79 if test "X$DIE" != X
; then
84 echo "$program: WARNING: Running \`configure' with no arguments."
85 echo "If you wish to pass any to it, please specify them on the"
86 echo "\`$0' command line."
91 for coin
in `find $srcdir -name configure.in -print`
94 if test -f $dir/NO-AUTO-GEN
; then
95 echo $program: Skipping
$dir -- flagged as no auto-gen
97 echo $program: Processing directory
$dir
99 aclocalinclude
="$ACLOCAL_FLAGS"
100 echo "$program: Running aclocal $aclocalinclude"
101 $DRYRUN aclocal
$aclocalinclude
102 if grep "^AM_CONFIG_HEADER" configure.
in >/dev
/null
; then
103 echo "$program: Running autoheader"
106 echo "$program: Running automake $am_opt"
107 $DRYRUN automake
--add-missing $am_opt
108 echo "$program: Running autoconf"
116 echo "$program: Running ./configure $conf_flags $@"
117 if test "X$DRYRUN" = X
; then
118 $DRYRUN .
/configure
$conf_flags "$@" \
119 && echo "$program: Now type \`make' to compile $PACKAGE" ||
exit 1
121 $DRYRUN .
/configure
$conf_flags "$@"