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

improve autogen for macosx

parent 42a15df4
...@@ -10,21 +10,34 @@ else ...@@ -10,21 +10,34 @@ else
AUTOMAKE=automake-${AM_VERSION} AUTOMAKE=automake-${AM_VERSION}
fi fi
if test -f /opt/local/bin/glibtoolize ; then libtoolize="libtoolize"
# darwin for lt in glibtoolize libtoolize15 libtoolize14 libtoolize13 ; do
LIBTOOLIZE=/opt/local/bin/glibtoolize if test -x /usr/bin/$lt ; then
else libtoolize=$lt ; break
LIBTOOLIZE=libtoolize fi
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 if test -d /opt/local/share/aclocal ; then
ACLOCAL_ARGS="-I /opt/local/share/aclocal" ACLOCAL_ARGS="-I /opt/local/share/aclocal"
fi fi
echo "Generating build scripts in mediastreamer..." echo "Generating build scripts in mediastreamer..."
set -x set -x
$LIBTOOLIZE --copy --force $libtoolize --copy --force
$ACLOCAL $ACLOCAL_ARGS $ACLOCAL $ACLOCAL_ARGS
autoheader autoheader
$AUTOMAKE --force-missing --add-missing --copy $AUTOMAKE --force-missing --add-missing --copy ${AUTOMAKE_FLAGS}
autoconf 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