Commit 864d4893 authored by Aymeric Moizard's avatar Aymeric Moizard

improve autogen for macosx

parent 42a15df4
......@@ -10,21 +10,34 @@ else
AUTOMAKE=automake-${AM_VERSION}
fi
if test -f /opt/local/bin/glibtoolize ; then
# darwin
LIBTOOLIZE=/opt/local/bin/glibtoolize
else
LIBTOOLIZE=libtoolize
fi
libtoolize="libtoolize"
for lt in glibtoolize libtoolize15 libtoolize14 libtoolize13 ; do
if test -x /usr/bin/$lt ; then
libtoolize=$lt ; break
fi
if test -x /usr/local/bin/$lt ; then
libtoolize=$lt ; break
fi
if test -x /opt/local/bin/$lt ; then
libtoolize=$lt ; break
fi
done
AUTOMAKE_FLAGS=""
case $libtoolize in
*glibtoolize)
AUTOMAKE_FLAGS="-i"
;;
esac
if test -d /opt/local/share/aclocal ; then
ACLOCAL_ARGS="-I /opt/local/share/aclocal"
fi
echo "Generating build scripts in mediastreamer..."
set -x
$LIBTOOLIZE --copy --force
$libtoolize --copy --force
$ACLOCAL $ACLOCAL_ARGS
autoheader
$AUTOMAKE --force-missing --add-missing --copy
$AUTOMAKE --force-missing --add-missing --copy ${AUTOMAKE_FLAGS}
autoconf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment