]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Cleaner check for whether libtool is Apple or not on Darwin.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 10 Jun 2012 05:58:06 +0000 (22:58 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 10 Jun 2012 05:59:53 +0000 (22:59 -0700)
configure

index 5e548a9ba7ef8515ce61f7534c5b9844cc930230..02e6be359a971367fa59f27720222522c58d002d 100755 (executable)
--- a/configure
+++ b/configure
@@ -231,7 +231,7 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) >> configure.log 2>&1; then
              SHAREDLIBV=libz.$VER$shared_ext
              SHAREDLIBM=libz.$VER1$shared_ext
              LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER3"}
-             if test "`libtool -V 2>&1 | grep -c Apple`" != "0"; then
+             if libtool -V 2>&1 | grep Apple > /dev/null; then
                  AR="libtool"
              else
                  AR="/usr/bin/libtool"