Skip to content
Snippets Groups Projects
Commit 8eaeb3de authored by Ralph Giles's avatar Ralph Giles
Browse files

Propagate 'glibtoolize' fallback for MacOS X support.

git-svn-id: http://svn.xiph.org/trunk/ao@5520 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 0bfe7f3a
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
# Run this to generate all the initial makefiles, etc. # Run this to set up the build system: configure, makefiles, etc.
# (basically ripped directly from enlightenment's autogen.sh) # (based on the version in enlightenment's cvs)
package="libao" package="libao"
...@@ -11,6 +11,7 @@ test -z "$srcdir" && srcdir=. ...@@ -11,6 +11,7 @@ test -z "$srcdir" && srcdir=.
cd "$srcdir" cd "$srcdir"
DIE=0 DIE=0
echo "checking for autoconf... "
(autoconf --version) < /dev/null > /dev/null 2>&1 || { (autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo echo
echo "You must have autoconf installed to compile $package." echo "You must have autoconf installed to compile $package."
...@@ -19,19 +20,30 @@ DIE=0 ...@@ -19,19 +20,30 @@ DIE=0
DIE=1 DIE=1
} }
echo "checking for automake... "
(automake --version) < /dev/null > /dev/null 2>&1 || { (automake --version) < /dev/null > /dev/null 2>&1 || {
echo echo
echo "You must have automake installed to compile $package." echo "You must have automake installed to compile $package."
echo "Download the appropriate package for your system, echo "Download the appropriate package for your system,"
echo "or get the source from one of the GNU ftp sites" echo "or get the source from one of the GNU ftp sites"
echo "listed in http://www.gnu.org/order/ftp.html" echo "listed in http://www.gnu.org/order/ftp.html"
DIE=1 DIE=1
} }
(libtoolize --version) < /dev/null > /dev/null 2>&1 || { echo -n "checking for libtool... "
for LIBTOOLIZE in libtoolize glibtoolize nope; do
(which $LIBTOOLIZE) > /dev/null 2>&1 && break
done
if test x$LIBTOOLIZE = xnope; then
echo "nope."
LIBTOOLIZE=libtoolize
else
echo $LIBTOOLIZE
fi
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
echo echo
echo "You must have libtool installed to compile $package." echo "You must have libtool installed to compile $package."
echo "Download the appropriate package for your system, echo "Download the appropriate package for your system,"
echo "or get the source from one of the GNU ftp sites" echo "or get the source from one of the GNU ftp sites"
echo "listed in http://www.gnu.org/order/ftp.html" echo "listed in http://www.gnu.org/order/ftp.html"
DIE=1 DIE=1
...@@ -52,8 +64,8 @@ echo " aclocal $ACLOCAL_FLAGS" ...@@ -52,8 +64,8 @@ echo " aclocal $ACLOCAL_FLAGS"
aclocal $ACLOCAL_FLAGS aclocal $ACLOCAL_FLAGS
#echo " autoheader" #echo " autoheader"
#autoheader #autoheader
echo " libtoolize --automake" echo " $LIBTOOLIZE --automake"
libtoolize --automake $LIBTOOLIZE --automake
echo " automake --add-missing $AUTOMAKE_FLAGS" echo " automake --add-missing $AUTOMAKE_FLAGS"
automake --add-missing $AUTOMAKE_FLAGS automake --add-missing $AUTOMAKE_FLAGS
echo " autoconf" echo " autoconf"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment