ceph/autogen.sh
Sahid Orentino Ferdjaoui 30ae96a737 Ensure autogen.sh to be executed at the top-level
The commit adds a test to ensure that user executes
'autogen.sh' at the top-level of the directory.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
2014-05-19 14:33:48 +02:00

41 lines
780 B
Bash
Executable File

#!/bin/sh
set -e
test -f src/ceph.in || {
echo "You must run this script in the top-level ceph directory"
exit 1
}
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
rm -f config.cache
aclocal -I m4 --install
check_for_pkg_config
$LIBTOOLIZE --force --copy
aclocal -I m4 --install
autoconf
autoheader
automake -a --add-missing -Wall
( cd src/gtest && autoreconf -fvi; )
exit