ceph/autogen.sh

36 lines
673 B
Bash
Raw Normal View History

2008-01-28 02:12:20 +00:00
#!/bin/sh
set -e
check_for_pkg_config() {
which pkg-config >/dev/null && return
echo
echo "Error: could not find pkg-config"
echo
echo "Please make sure you have pkg-config installed."
echo
exit 1
}
if [ `which libtoolize` ]; then
LIBTOOLIZE=libtoolize
elif [ `which glibtoolize` ]; then
LIBTOOLIZE=glibtoolize
else
echo "Error: could not find libtoolize"
echo " Please install libtoolize or glibtoolize."
exit 1
fi
2008-01-28 02:12:20 +00:00
rm -f config.cache
aclocal -I m4 --install
check_for_pkg_config
$LIBTOOLIZE --force --copy
aclocal -I m4 --install
2008-01-28 02:12:20 +00:00
autoconf
autoheader
2010-05-18 15:01:03 +00:00
automake -a --add-missing -Wall
( cd src/gtest && autoreconf -fvi; )
2008-01-28 02:12:20 +00:00
exit