root/juggler/trunk/autogen.sh

Revision 18757, 1.9 kB (checked in by patrick, 2 years ago)

There are no more confiugre.in files in this source tree. This should fix
build problems that arose when users ran this script manually instead of
letting the build do it for them.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 # dppgen.sh,v 1.4 2000/12/30 14:34:19 patrick Exp
5
6 DIE=0
7
8 : ${DPP_PATH=`pwd`/Doozer++}
9 : ${MACRO_PATH=`pwd`/macros}
10 : ${GGT_MACRO_PATH=`pwd`/external/macros}
11
12 if [ -n "$DPP_PATH" ]; then
13    ACLOCAL_FLAGS="-I $DPP_PATH/config -I $DPP_PATH/config/pkgs $ACLOCAL_FLAGS"
14 fi
15
16 if [ -n "$MACRO_PATH" ]; then
17    ACLOCAL_FLAGS="-I $MACRO_PATH $ACLOCAL_FLAGS"
18 fi
19
20 if [ -n "$GGT_MACRO_PATH" ]; then
21    ACLOCAL_FLAGS="-I $GGT_MACRO_PATH $ACLOCAL_FLAGS"
22 fi
23
24 : ${AUTOCONF=autoconf}
25 : ${AUTOHEADER=autoheader}
26 : ${ACLOCAL=aclocal}
27
28 ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
29   echo
30   echo "**Error**: You must have \`autoconf' installed to compile VR Juggler."
31   echo "Download the appropriate package for your distribution,"
32   echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
33   DIE=1
34 }
35
36 ($ACLOCAL --version) < /dev/null > /dev/null 2>&1 || {
37   echo
38   echo "**Error**: Missing \`aclocal'.  The version of \`automake'"
39   echo "installed doesn't appear recent enough."
40   echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.4.tar.gz"
41   echo "(or a newer version if it is available)"
42   DIE=1
43 }
44
45 if test "$DIE" -eq 1; then
46   exit 1
47 fi
48
49 search_dirs="${srcdir-.}/modules ${srcdir-.}/external"
50 for coin in `find $search_dirs -name configure.ac -print`
51 do 
52   dr=`dirname $coin`
53   if test -f $dr/NO-AUTO-GEN; then
54     echo skipping $dr -- flagged as no auto-gen
55   else
56     echo processing $dr
57     macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
58     ( cd $dr
59 #      macrosdir=`find . -name macros -print`
60 #      for i in $macrodirs; do
61 #      done
62
63       aclocalinclude="$ACLOCAL_FLAGS"
64       echo "Running $ACLOCAL $aclocalinclude ..."
65       $ACLOCAL $aclocalinclude || exit 1
66       if grep "^AC_CONFIG_HEADER" configure.ac >/dev/null
67       then
68         echo "Running $AUTOHEADER ..."
69         $AUTOHEADER || exit 1
70       fi
71       echo "Running $AUTOCONF ..."
72       $AUTOCONF || exit 1
73     )
74   fi
75 done
Note: See TracBrowser for help on using the browser.