54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
#!/usr/bin/env bash
|
|
# Run this to generate configure, Makefile.in's, etc
|
|
|
|
if test "$srcdir" == ""; then
|
|
srcdir=.
|
|
elif test "$srcdir" != "."; then
|
|
pushd $srcdir > /dev/null
|
|
fi
|
|
|
|
(autoreconf --version) < /dev/null > /dev/null 2>&1 || {
|
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
|
echo
|
|
echo "**Error**: You must have the GNU Build System (autoconf, automake, "
|
|
echo "libtool, etc) to update the ntfsprogs build system. Download the "
|
|
echo "appropriate packages for your distribution, or get the source "
|
|
echo "tar balls from ftp://ftp.gnu.org/pub/gnu/."
|
|
exit 1
|
|
}
|
|
echo
|
|
echo "**Error**: Your version of autoconf is too old (you need 2.57) to "
|
|
echo "update the ntfsprogs build system. Download the appropriate "
|
|
echo "updated package for your distribution, or get the source tar ball "
|
|
echo "from ftp://ftp.gnu.org/pub/gnu/."
|
|
exit 1
|
|
}
|
|
|
|
UNAME=`which uname`
|
|
if [ $? -eq 0 -a -n ${UNAME} -a -x ${UNAME} ]; then
|
|
OS=`${UNAME} -s`
|
|
if [ $? -eq 0 -a -n ${OS} -a "${OS}" == "Darwin" ]; then
|
|
echo ""
|
|
echo "Running on Mac OS X / Darwin. Setting LIBTOOLIZE=glibtoolize..."
|
|
echo ""
|
|
export LIBTOOLIZE="glibtoolize"
|
|
fi
|
|
fi
|
|
|
|
echo Running autoreconf --verbose --install
|
|
autoreconf --force --verbose --install
|
|
|
|
# This gets around the BitKeeper problem that it checks out files with the
|
|
# current time stamp rather than the time stamp at check in time.
|
|
touch config.h.in
|
|
|
|
if test "$srcdir" != "."; then
|
|
popd > /dev/null
|
|
fi
|
|
|
|
if test "$err" == "1"; then
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|