|
Revision 18650, 2.3 kB
(checked in by patrick, 2 years ago)
|
Catch up with the Autoconf configure script input naming convention circa
2001. I have been wanting to do this for a long, long time, but I was
reluctant to lose the long revision history for the configure.in files.
Fortunately, with Subversion, this isn't an issue.
|
- 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 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
DIE=0 |
|---|
| 32 |
|
|---|
| 33 |
: ${DPP_PATH=../../Doozer++} |
|---|
| 34 |
: ${MACRO_PATH=../../macros} |
|---|
| 35 |
|
|---|
| 36 |
if [ -n "$MACRO_PATH" ]; then |
|---|
| 37 |
ACLOCAL_FLAGS="-I $MACRO_PATH $ACLOCAL_FLAGS" |
|---|
| 38 |
fi |
|---|
| 39 |
|
|---|
| 40 |
if [ -n "$DPP_PATH" ]; then |
|---|
| 41 |
ACLOCAL_FLAGS="-I $DPP_PATH/config -I $DPP_PATH/config/pkgs $ACLOCAL_FLAGS" |
|---|
| 42 |
fi |
|---|
| 43 |
|
|---|
| 44 |
: ${AUTOCONF=autoconf} |
|---|
| 45 |
: ${AUTOHEADER=autoheader} |
|---|
| 46 |
: ${ACLOCAL=aclocal} |
|---|
| 47 |
|
|---|
| 48 |
($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || { |
|---|
| 49 |
echo |
|---|
| 50 |
echo "**Error**: You must have \`autoconf' installed to compile VR Juggler." |
|---|
| 51 |
echo "Download the appropriate package for your distribution," |
|---|
| 52 |
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" |
|---|
| 53 |
DIE=1 |
|---|
| 54 |
} |
|---|
| 55 |
|
|---|
| 56 |
($ACLOCAL --version) < /dev/null > /dev/null 2>&1 || { |
|---|
| 57 |
echo |
|---|
| 58 |
echo "**Error**: Missing \`aclocal'. The version of \`automake'" |
|---|
| 59 |
echo "installed doesn't appear recent enough." |
|---|
| 60 |
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.4.tar.gz" |
|---|
| 61 |
echo "(or a newer version if it is available)" |
|---|
| 62 |
DIE=1 |
|---|
| 63 |
} |
|---|
| 64 |
|
|---|
| 65 |
if test "$DIE" -eq 1; then |
|---|
| 66 |
exit 1 |
|---|
| 67 |
fi |
|---|
| 68 |
|
|---|
| 69 |
aclocalinclude="$ACLOCAL_FLAGS" |
|---|
| 70 |
echo "Running $ACLOCAL $aclocalinclude ..." |
|---|
| 71 |
$ACLOCAL $aclocalinclude |
|---|
| 72 |
if grep "^AC_CONFIG_HEADER" configure.ac >/dev/null |
|---|
| 73 |
then |
|---|
| 74 |
echo "Running $AUTOHEADER..." |
|---|
| 75 |
$AUTOHEADER |
|---|
| 76 |
fi |
|---|
| 77 |
echo "Running $AUTOCONF ..." |
|---|
| 78 |
$AUTOCONF |
|---|