cherokee / webserver

Cherokee Web Server
GNU General Public License v2.0
568 stars 105 forks source link

autogen.sh not running libtoolize (ltmain.sh not found) #1281

Closed dleonard0 closed 1 year ago

dleonard0 commented 2 years ago

autogen.sh doesn't run libtoolize early enough, and it fails when it gets to automake with:

Running: automake -a ...
configure.ac:206: installing './compile'
configure.ac:92: installing './config.guess'
configure.ac:92: installing './config.sub'
configure.ac:35: installing './install-sh'
configure.ac:213: error: required file './ltmain.sh' not found
configure.ac:35: installing './missing'
cget/Makefile.am: installing './depcomp'

The fix that I have success with is:

@@ -148,7 +148,7 @@ if test -z "$ACLOCAL_FLAGS"; then
 fi

 # Libtool
-if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then
+if grep -E "^AM_PROG_LIBTOOL|^LT_INIT" configure.ac >/dev/null; then
   echo "Running: libtoolize --force --copy..."
   $LIBTOOLIZE --force --copy
 fi

This is with cherokee 80766947, automake-1.16.5