aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libobjc/configure
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/libobjc/configure')
-rwxr-xr-xgcc-4.9/libobjc/configure23
1 files changed, 19 insertions, 4 deletions
diff --git a/gcc-4.9/libobjc/configure b/gcc-4.9/libobjc/configure
index dd39d7ec8..249038da8 100755
--- a/gcc-4.9/libobjc/configure
+++ b/gcc-4.9/libobjc/configure
@@ -7175,7 +7175,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
@@ -10601,7 +10616,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10604 "configure"
+#line 10619 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10707,7 +10722,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10710 "configure"
+#line 10725 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11478,7 +11493,7 @@ if test "${enable_sjlj_exceptions+set}" = set; then :
enableval=$enable_sjlj_exceptions; :
else
cat > conftest.$ac_ext << EOF
-#line 11481 "configure"
+#line 11496 "configure"
@interface Frob
@end
@implementation Frob