2012-02-08 16:23:47 -05:00
|
|
|
#!/bin/bash
|
2009-04-21 17:56:33 -04:00
|
|
|
|
2013-03-12 17:26:37 -04:00
|
|
|
AUTORECONF=`which autoreconf`
|
|
|
|
if test -z $AUTORECONF; then
|
|
|
|
echo "*** No autoreconf found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2013-06-25 18:03:06 -04:00
|
|
|
PKGCONFIG=`which pkg-config`
|
|
|
|
if test -z $PKGCONFIG; then
|
|
|
|
echo "*** No pkg-config found, please install it ***"
|
|
|
|
# warn without exiting, since pkg-config is only needed
|
|
|
|
# by configure, not autogen.sh
|
|
|
|
fi
|
|
|
|
|
2013-03-12 17:26:37 -04:00
|
|
|
LIBTOOLIZE=`which libtoolize`
|
|
|
|
if test -z $LIBTOOLIZE; then
|
|
|
|
echo "*** No libtool found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2010-12-15 12:55:16 -05:00
|
|
|
# Workaround for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565663
|
2012-02-03 11:48:20 -05:00
|
|
|
mkdir -p m4
|
|
|
|
|
2012-02-06 01:02:52 -05:00
|
|
|
HOOKS_DIR="../.git/hooks"
|
2012-02-03 11:48:20 -05:00
|
|
|
# install pre-commit hook for doing clean commits
|
2012-02-07 10:18:30 -05:00
|
|
|
if [ -d "$HOOKS_DIR" ];
|
2012-02-03 11:48:20 -05:00
|
|
|
then
|
2012-02-08 16:23:47 -05:00
|
|
|
pushd ${HOOKS_DIR}
|
|
|
|
if test ! \( -x pre-commit -a -L pre-commit \);
|
2012-02-07 10:18:30 -05:00
|
|
|
then
|
2012-02-08 16:23:47 -05:00
|
|
|
echo "Creating symbolic link for pre-commit hook..."
|
|
|
|
rm -f pre-commit
|
|
|
|
ln -s pre-commit.sample pre-commit
|
2012-02-07 10:18:30 -05:00
|
|
|
fi
|
2012-02-08 16:23:47 -05:00
|
|
|
popd
|
2012-02-03 11:48:20 -05:00
|
|
|
fi
|
2009-04-21 17:56:33 -04:00
|
|
|
|
2010-12-15 12:55:16 -05:00
|
|
|
autoreconf --force --install --verbose -Wall -I m4
|