Files
jami-daemon/daemon/autogen.sh

40 lines
991 B
Bash
Raw Normal View History

2012-02-08 16:23:47 -05:00
#!/bin/bash
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
echo "*** No autoreconf found, please install it ***"
exit 1
fi
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
LIBTOOLIZE=`which libtoolize`
if test -z $LIBTOOLIZE; then
echo "*** No libtool found, please install it ***"
exit 1
fi
# Workaround for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565663
mkdir -p m4
HOOKS_DIR="../.git/hooks"
# install pre-commit hook for doing clean commits
if [ -d "$HOOKS_DIR" ];
then
2012-02-08 16:23:47 -05:00
pushd ${HOOKS_DIR}
if test ! \( -x pre-commit -a -L pre-commit \);
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
fi
2012-02-08 16:23:47 -05:00
popd
fi
autoreconf --force --install --verbose -Wall -I m4