2005-02-21 19:51:33 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
2013-06-29 09:45:29 +00:00
|
|
|
if which glibtoolize >/dev/null 2>&1; then
|
|
|
|
LIBTOOLIZE=${LIBTOOLIZE:-glibtoolize}
|
|
|
|
else
|
|
|
|
LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
|
|
|
|
fi
|
|
|
|
ACLOCAL=${ACLOCAL:-aclocal}
|
|
|
|
AUTOHEADER=${AUTOHEADER:-autoheader}
|
|
|
|
AUTOMAKE=${AUTOMAKE:-automake}
|
|
|
|
AUTOCONF=${AUTOCONF:-autoconf}
|
2005-02-21 19:51:33 +00:00
|
|
|
|
|
|
|
ARGV0=$0
|
|
|
|
|
2009-08-29 11:39:19 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
|
2013-06-29 09:45:29 +00:00
|
|
|
run() {
|
|
|
|
echo "$ARGV0: running \`$@'"
|
|
|
|
"$@"
|
|
|
|
}
|
2009-08-29 11:39:19 +00:00
|
|
|
|
2013-06-29 09:45:29 +00:00
|
|
|
run $LIBTOOLIZE --copy --force
|
|
|
|
run $ACLOCAL $ACLOCAL_FLAGS
|
2005-02-21 19:51:33 +00:00
|
|
|
run $AUTOHEADER
|
2013-06-29 09:45:29 +00:00
|
|
|
run $AUTOMAKE --add-missing --copy --foreign --force-missing
|
2005-02-21 19:51:33 +00:00
|
|
|
run $AUTOCONF
|
2013-06-29 09:45:29 +00:00
|
|
|
echo "Now type './configure ...' and 'make' to compile."
|