]> granicus.if.org Git - icinga2/commitdiff
fix ltdl detection failure on CentOS6 fixes #3021
authorMichael Friedrich <michael.friedrich@netways.de>
Tue, 29 Jan 2013 13:40:46 +0000 (14:40 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 29 Jan 2013 13:40:46 +0000 (14:40 +0100)
libtoolize on the subshell cannot produce exit errors,
so we check as queit dry-run first and put an error to
the user.

tested on centos 6.3 x64, as well as debian wheezy with
temporarly removed /usr/share/libtool/libltdl/COPYING.LIB

autogen.sh

index 691582169e966a6adbae53bf120ac2eab167880f..52488df95678bbb0e048eae96744749af2aac37e 100755 (executable)
@@ -125,6 +125,17 @@ xlc )
   am_opt=--include-deps;;
 esac
 
+# verify that libtool-ltdl-devel is installed
+echo "Running libtoolize dry-run..."
+if ! libtoolize --dry-run --quiet --copy; 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."
+  exit 1
+fi
+
 for coin in `find $srcdir -path $srcdir/CVS -prune -o -name configure.ac -print`
 do 
   dr=`dirname $coin`