2 # Run this to set up the build system: configure, makefiles, etc.
3 # (based on the version in enlightenment's cvs)
9 test -z "$srcdir" && srcdir
=.
14 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
16 echo "You must have autoconf installed to compile $package."
17 echo "Download the appropriate package for your distribution,"
18 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
22 (automake
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
24 echo "You must have automake installed to compile $package."
25 echo "Download the appropriate package for your system,"
26 echo "or get the source from one of the GNU ftp sites"
27 echo "listed in http://www.gnu.org/order/ftp.html"
31 (libtoolize
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
33 echo "You must have libtool installed to compile $package."
34 echo "Download the appropriate package for your system,"
35 echo "or get the source from one of the GNU ftp sites"
36 echo "listed in http://www.gnu.org/order/ftp.html"
40 if test "$DIE" -eq 1; then
45 echo "I am going to run ./configure with no arguments - if you wish "
46 echo "to pass any to it, please specify them on the $0 command line."
49 echo "Generating configuration files for $package, please wait...."
51 test -f aclocal.
m4 && rm aclocal.
m4
52 echo -n "looking for our m4 macros... "
53 aclocaldirs
="$srcdir `aclocal --print-ac-dir` \
54 /usr/local/share/aclocal* /usr/local/aclocal* \
55 /sw/share/aclocal* /usr/share/aclocal*"
56 for dir
in $aclocaldirs; do
57 test -d "$dir" && if ! test -z "`ls $dir | grep .m4`"; then
58 if test ! -z "`fgrep XIPH_PATH_OGG $dir/*.m4`"; then
60 ACLOCAL_FLAGS
="-I $dir $ACLOCAL_FLAGS"
65 if test -z "$ACLOCAL_FLAGS"; then
68 echo "Please install the ogg and vorbis libraries, or add the"
69 echo "location of ogg.m4 to ACLOCAL_FLAGS in the environment."
75 echo " aclocal $ACLOCAL_FLAGS"
76 aclocal
$ACLOCAL_FLAGS
79 echo " libtoolize --automake"
81 echo " automake --add-missing $AUTOMAKE_FLAGS"
82 automake
--add-missing $AUTOMAKE_FLAGS
87 $srcdir/configure
"$@" && echo