summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJohan Dahlin <zilch.am@home.se>2001-09-10 09:01:54 +0000
committerJohan Dahlin <zilch@src.gnome.org>2001-09-10 09:01:54 +0000
commitbc19b7dc7658961a75c996016a98eac5f08e99be (patch)
tree4c1d8d5812a7585a4d7776115ee714d59609b091 /autogen.sh
parent09e7cfcd63e1f8976c52ef791e81fd1ade99664b (diff)
downloadpygtk-bc19b7dc7658961a75c996016a98eac5f08e99be.tar.gz
add check and usage for AUTOMAKE and ACLOCAL.
2001-09-10 Johan Dahlin <zilch.am@home.se> * autogen.sh: add check and usage for AUTOMAKE and ACLOCAL.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index 33fc03d4..082e882b 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -12,6 +12,9 @@ FILE=gtk
DIE=0
+test -z "$AUTOMAKE" && AUTOMAKE=automake
+test -z "$ACLOCAL" && ACLOCAL=aclocal
+
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile $PROJECT."
@@ -28,7 +31,7 @@ DIE=0
DIE=1
}
-(automake --version) < /dev/null > /dev/null 2>&1 || {
+($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have automake installed to compile $PROJECT."
echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
@@ -56,7 +59,7 @@ esac
if test -z "$ACLOCAL_FLAGS"; then
- acdir=`aclocal --print-ac-dir`
+ acdir=`$ACLOCAL --print-ac-dir`
m4list="glib-2.0.m4 gtk-2.0.m4 gettext.m4"
for file in $m4list
@@ -79,7 +82,7 @@ fi
# while making dist.
#echo "no" | gettextize --copy --force
-aclocal $ACLOCAL_FLAGS
+$ACLOCAL $ACLOCAL_FLAGS
# optionally feature autoheader
(autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
@@ -87,7 +90,7 @@ aclocal $ACLOCAL_FLAGS
# run libtoolize ...
libtoolize --force
-automake -a $am_opt
+$AUTOMAKE -a $am_opt
autoheader
autoconf
cd $ORIGDIR