summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <fork@madler.net>2022-10-09 16:55:49 -0700
committerMark Adler <fork@madler.net>2022-10-09 16:55:49 -0700
commit013c0ca0f4a0601c21705405d6493129444ce64c (patch)
treeddabe4c8d51cc26072f834eab436e73a0c08d313
parent8cca42c33fcb31310ee33b1ec95cd58189dee007 (diff)
downloadzlib-013c0ca0f4a0601c21705405d6493129444ce64c.tar.gz
zlib-013c0ca0f4a0601c21705405d6493129444ce64c.tar.bz2
zlib-013c0ca0f4a0601c21705405d6493129444ce64c.zip
Search for system name in CHOST instead of trying to extract it.
-rwxr-xr-xconfigure10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index 5ec3a2b..1d70ffd 100755
--- a/configure
+++ b/configure
@@ -32,7 +32,7 @@ fi
32 32
33# set command prefix for cross-compilation 33# set command prefix for cross-compilation
34if [ -n "${CHOST}" ]; then 34if [ -n "${CHOST}" ]; then
35 uname="`echo "${CHOST}" | sed -e 's/^[^-]*-\([^-]*\)$/\1/' -e 's/^[^-]*-[^-]*-\([^-]*\)$/\1/' -e 's/^[^-]*-[^-]*-\([^-]*\)-.*$/\1/'`" 35 uname=${CHOST}
36 CROSS_PREFIX="${CHOST}-" 36 CROSS_PREFIX="${CHOST}-"
37fi 37fi
38 38
@@ -220,14 +220,14 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then
220 uname=`(uname -s || echo unknown) 2>/dev/null` 220 uname=`(uname -s || echo unknown) 2>/dev/null`
221 fi 221 fi
222 case "$uname" in 222 case "$uname" in
223 Linux* | linux* | GNU | GNU/* | solaris*) 223 Linux* | linux* | *-linux* | GNU | GNU/* | solaris*)
224 LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"} ;; 224 LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"} ;;
225 *BSD | *bsd* | DragonFly) 225 *BSD | *bsd* | DragonFly)
226 LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"} 226 LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"}
227 LDCONFIG="ldconfig -m" ;; 227 LDCONFIG="ldconfig -m" ;;
228 CYGWIN* | Cygwin* | cygwin* | OS/2*) 228 CYGWIN* | Cygwin* | cygwin* | *-cygwin* | OS/2*)
229 EXE='.exe' ;; 229 EXE='.exe' ;;
230 MINGW* | mingw*) 230 MINGW* | mingw* | *-mingw*)
231 rm -f $test.[co] $test $test$shared_ext 231 rm -f $test.[co] $test $test$shared_ext
232 echo "If this doesn't work for you, try win32/Makefile.gcc." | tee -a configure.log 232 echo "If this doesn't work for you, try win32/Makefile.gcc." | tee -a configure.log
233 LDSHARED=${LDSHARED-"$cc -shared"} 233 LDSHARED=${LDSHARED-"$cc -shared"}
@@ -246,7 +246,7 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then
246 shared_ext='.sl' 246 shared_ext='.sl'
247 SHAREDLIB='libz.sl' ;; 247 SHAREDLIB='libz.sl' ;;
248 esac ;; 248 esac ;;
249 Darwin* | darwin*) 249 Darwin* | darwin* | *-darwin*)
250 shared_ext='.dylib' 250 shared_ext='.dylib'
251 SHAREDLIB=libz$shared_ext 251 SHAREDLIB=libz$shared_ext
252 SHAREDLIBV=libz.$VER$shared_ext 252 SHAREDLIBV=libz.$VER$shared_ext