]> granicus.if.org Git - fribidi/commitdiff
Small change to not run libtool if the package doesn't use it.
authorbehdad <behdad>
Sat, 27 Aug 2005 10:21:51 +0000 (10:21 +0000)
committerbehdad <behdad>
Sat, 27 Aug 2005 10:21:51 +0000 (10:21 +0000)
bootstrap

index d475c80d09c29c9c75f0b2e6d565ad84e477b75e..14e9ee6c43ddac1aa386ca33b6ef80d23ec87db9 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1,9 +1,9 @@
 #! /bin/sh
 ##############################################################################
-# $Id: bootstrap,v 1.3 2004-06-04 09:41:11 behdad Exp $
+# $Id: bootstrap,v 1.4 2005-08-27 10:21:51 behdad Exp $
 # $Author: behdad
-# $Date: 2004-06-04 09:41:11 $
-# $Revision: 1.3 $
+# $Date: 2005-08-27 10:21:51 $
+# $Revision: 1.4 $
 # $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/bootstrap,v $
 ##############################################################################
 #                                               -*- Bootstrap -*-
@@ -117,7 +117,9 @@ else
 # add files 'config.guess', 'config.sub', 'ltconfig', 'ltmain.sh'
 test -f Makefile.am && MY_LIBTOOLIZEFLAGS=--automake
 
-$DRYRUN libtoolize $HELP $VERSION $COPY $DEBUG $FORCE $MY_LIBTOOLIZEFLAGS $LIBTOOLIZEFLAGS || exit $?
+if grep -q '^ *AC_PROG_LIBTOOL' configure.ac configure.in 2>/dev/null; then
+       $DRYRUN libtoolize $HELP $VERSION $COPY $DEBUG $FORCE $MY_LIBTOOLIZEFLAGS $LIBTOOLIZEFLAGS || exit $?
+fi
 
 # generate 'aclocal.m4'
 if test -f configure.ac -o configure.in; then