aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/zlib/configure
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/zlib/configure')
-rwxr-xr-xgcc-4.9/zlib/configure21
1 files changed, 18 insertions, 3 deletions
diff --git a/gcc-4.9/zlib/configure b/gcc-4.9/zlib/configure
index 32e33e7a6..6e8d896ba 100755
--- a/gcc-4.9/zlib/configure
+++ b/gcc-4.9/zlib/configure
@@ -6977,7 +6977,22 @@ fi
# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
- withval=$with_pic; pic_mode="$withval"
+ withval=$with_pic; p=${PACKAGE-default}
+ case "$withval" in
+ yes|no) pic_mode="$withval" ;;
+ *)
+ pic_mode=default
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $withval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ pic_mode=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
else
pic_mode=default
fi
@@ -10403,7 +10418,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10406 "configure"
+#line 10418 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10509,7 +10524,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10512 "configure"
+#line 10524 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H