]> granicus.if.org Git - icinga2/commitdiff
fix ltdl detection once again refs #3021
authorMichael Friedrich <michael.friedrich@netways.de>
Tue, 29 Jan 2013 16:24:26 +0000 (17:24 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 29 Jan 2013 16:25:45 +0000 (17:25 +0100)
autogen.sh

index fe91b7e44a9db95f71c89d78168fbfa9e9b7714c..de58ca4c5cbbaf5c32dd02256487892a84bf41eb 100755 (executable)
@@ -127,15 +127,25 @@ esac
 
 # verify that libtool-ltdl-devel is installed
 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 "**Error**: libtoolize cannot detect necessary files."
   echo ""
   echo "Make sure libtool-ltdl-devel (rpm) / libltdl-dev (deb) 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`