diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-05-02 00:43:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-05-02 00:43:43 +0000 |
commit | aa458601f7ef14bcfa9b972419ab21003199684d (patch) | |
tree | e6b87a7854edd7477c2e834f1a49d1219414acc6 /autogen.sh | |
parent | 67371b5306ca5338e7f1013dea632a9368ce455d (diff) |
Some versions of libtool stick extra stuff after the version number,
e.g. some versions from the FreeBSD ports collection add
"-freebsd-ports". Match non-white-space text after the version number.
svn path=/trunk/; revision=10766
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh index 1fa3abe44c..fc45fef6b9 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,7 +2,7 @@ # # Run this to generate all the initial makefiles. # -# $Id: autogen.sh,v 1.34 2004/03/27 11:52:51 jmayer Exp $ +# $Id: autogen.sh,v 1.35 2004/05/02 00:43:43 guy Exp $ DIE=true PROJECT="Ethereal" @@ -63,11 +63,11 @@ esac # Check for "glibtool" first. # LTVER=`glibtool --version 2>/dev/null | grep ' libtool)' | \ - sed 's/.*) \([0-9][0-9.]*\) .*/\1/'` + sed 's/.*libtool) \([0-9][0-9.]*\)[^ ]* .*/\1/'` if test -z "$LTVER" then LTVER=`libtool --version | grep ' libtool)' | \ - sed 's/.*) \([0-9][0-9.]*\) .*/\1/' ` + sed 's/.*) \([0-9][0-9.]*\)[^ ]* .*/\1/' ` LIBTOOLIZE=libtoolize else LIBTOOLIZE=glibtoolize |