Get rid of the 'rm -r' stuff in autogen.sh

This commit is contained in:
Gunnar Beutner 2013-01-30 08:42:13 +01:00
parent a15558029c
commit 6721f681e2
2 changed files with 3 additions and 9 deletions

View File

@ -127,25 +127,17 @@ esac
# verify that libtool-ltdl-devel is installed
echo "Running libtoolize dry-run..."
#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 "**Error**: libtoolize cannot detect necessary files."
echo ""
echo "Make sure libtool-ltdl-devel (rpm) / libltdl-dev (deb) or an"
echo "Make sure libtool-ltdl-devel (RHEL) / libltdl-dev (Debian) or an"
echo "appropriate package for your distribution is installed."
rm -r $ltdldir
exit 1
fi
#cleanup
rm -r $ltdldir
for coin in `find $srcdir -path $srcdir/CVS -prune -o -name configure.ac -print`
do
dr=`dirname $coin`

2
third-party/ltdl/README.icinga vendored Normal file
View File

@ -0,0 +1,2 @@
This directory will automatically be populated by libtoolize when you run the
autogen.sh script.