]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Don't use -e option to grep (Solaris 10 doesn't have it).
authorTim Kientzle <kientzle@gmail.com>
Thu, 29 Dec 2011 02:48:47 +0000 (21:48 -0500)
committerTim Kientzle <kientzle@gmail.com>
Thu, 29 Dec 2011 02:48:47 +0000 (21:48 -0500)
Use $GREP (configure tries to find a "good" grep)

SVN-Revision: 4025

configure.ac

index 6a23a1ad83ab5bdfc40a6f80976ccb024a4d3b70..73b2432f1aa9d9171db2b575bb877cbff243e1d8 100644 (file)
@@ -571,7 +571,7 @@ main(int argc, char **argv)
     [ AC_MSG_RESULT([yes])
       found_$1=yes
       if [[ -n "$4" ]]; then
-        test -n "$(echo $mdLIBS | grep -e $4)" || mdLIBS="$mdLIBS $4"
+        test -n "$(echo $mdLIBS | $GREP .$4)" || mdLIBS="$mdLIBS $4"
       fi
       AC_DEFINE(ARCHIVE_CRYPTO_$1_$2, 1, [ $1 via ARCHIVE_CRYPTO_$1_$2 supported.])
     ],