summaryrefslogtreecommitdiff
path: root/BUILD/autorun.sh
diff options
context:
space:
mode:
authorunknown <kent@mysql.com/kent-amd64.(none)>2007-10-29 20:12:44 +0100
committerunknown <kent@mysql.com/kent-amd64.(none)>2007-10-29 20:12:44 +0100
commit1b261d3d6161d3d833183bdf12f87dee0c48ff14 (patch)
treee030a0dd57d87188819864b3e5fe2b65d41d118b /BUILD/autorun.sh
parentdfdcaf5f01864d46b9ee95bd3c8c8e34887618dc (diff)
downloadmariadb-git-1b261d3d6161d3d833183bdf12f87dee0c48ff14.tar.gz
autorun.sh:
Removed innobase from compile-dist, and let it use autorun.sh to avoid code duplication. Also corrected a problem when searching for one of "libtoolize" and "glibtoolize", now it honors the PATH setting (Bug#31405) BUILD/autorun.sh: Removed innobase from compile-dist, and let it use autorun.sh to avoid code duplication. Also corrected a problem when searching for one of "libtoolize" and "glibtoolize", now it honors the PATH setting (Bug#31405)
Diffstat (limited to 'BUILD/autorun.sh')
-rwxr-xr-xBUILD/autorun.sh23
1 files changed, 16 insertions, 7 deletions
diff --git a/BUILD/autorun.sh b/BUILD/autorun.sh
index def229e21a0..a1b1998482e 100755
--- a/BUILD/autorun.sh
+++ b/BUILD/autorun.sh
@@ -3,20 +3,29 @@
die() { echo "$@"; exit 1; }
-# Added glibtoolize reference to make native OSX autotools work
-if [ -f /usr/bin/glibtoolize ]
+# Added glibtoolize reference to make native OSX autotools work,
+# we pick the first of glibtoolize/libtoolize we find in PATH
+LIBTOOLIZE=libtoolize # Default
+IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
+for dir in $PATH
+do
+ if test -f $dir/glibtoolize
then
LIBTOOLIZE=glibtoolize
- else
- LIBTOOLIZE=libtoolize
-fi
+ break
+ elif test -f $dir/libtoolize
+ then
+ break
+ fi
+done
+IFS="$save_ifs"
aclocal || die "Can't execute aclocal"
autoheader || die "Can't execute autoheader"
# --force means overwrite ltmain.sh script if it already exists
-$LIBTOOLIZE --automake --force || die "Can't execute libtoolize"
+$LIBTOOLIZE --automake --force --copy || die "Can't execute libtoolize"
# --add-missing instructs automake to install missing auxiliary files
# and --force to overwrite them if they already exist
-automake --add-missing --force || die "Can't execute automake"
+automake --add-missing --force --copy || die "Can't execute automake"
autoconf || die "Can't execute autoconf"