mirror of https://github.com/Icinga/icinga2.git
fix ltdl detection once again refs #3021
This commit is contained in:
parent
d71de9f6cf
commit
a15558029c
12
autogen.sh
12
autogen.sh
|
@ -127,15 +127,25 @@ esac
|
||||||
|
|
||||||
# verify that libtool-ltdl-devel is installed
|
# verify that libtool-ltdl-devel is installed
|
||||||
echo "Running libtoolize dry-run..."
|
echo "Running libtoolize dry-run..."
|
||||||
if ! `libtoolize --dry-run --quiet --copy` ; then
|
#create third-party/ltdl from configure.ac and cleanup afterwards
|
||||||
|
tmp1=`grep "^LT_CONFIG_LTDL_DIR" configure.ac`
|
||||||
|
tmp2=${tmp1##*\[}
|
||||||
|
ltdldir=${tmp2%\]*}
|
||||||
|
mkdir -p $ltdldir
|
||||||
|
|
||||||
|
if ! libtoolize --quiet --copy --force ; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "**Error**: libtoolize cannot detect necessary files."
|
echo "**Error**: libtoolize cannot detect necessary files."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Make sure libtool-ltdl-devel (rpm) / libltdl-dev (deb) or an"
|
echo "Make sure libtool-ltdl-devel (rpm) / libltdl-dev (deb) or an"
|
||||||
echo "appropriate package for your distribution is installed."
|
echo "appropriate package for your distribution is installed."
|
||||||
|
rm -r $ltdldir
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#cleanup
|
||||||
|
rm -r $ltdldir
|
||||||
|
|
||||||
for coin in `find $srcdir -path $srcdir/CVS -prune -o -name configure.ac -print`
|
for coin in `find $srcdir -path $srcdir/CVS -prune -o -name configure.ac -print`
|
||||||
do
|
do
|
||||||
dr=`dirname $coin`
|
dr=`dirname $coin`
|
||||||
|
|
Loading…
Reference in New Issue