about summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure b/configure
index 2ef2feef14..c9613d27b1 100755
--- a/configure
+++ b/configure
@@ -2441,6 +2441,27 @@ if test $shared = default; then
   fi
 fi
 
+echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
+echo "configure:2446: checking whether -fPIC is default" >&5
+if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
+  echo $ac_n "(cached) $ac_c" 1>&6
+else
+  pic_default=yes
+cat > conftest.c <<EOF
+#if defined(__PIC__) || defined(__pic__) || defined(PIC) || defined(pic)
+# error PIC is default.
+#endif
+EOF
+if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
+  pic_default=no
+fi
+rm -f conftest.*
+fi
+
+echo "$ac_t""$pic_default" 1>&6
+
+
+
 
 
 
@@ -2650,6 +2671,7 @@ s%@gnu_as@%$gnu_as%g
 s%@elf@%$elf%g
 s%@static@%$static%g
 s%@shared@%$shared%g
+s%@pic_default@%$pic_default%g
 s%@profile@%$profile%g
 s%@omitfp@%$omitfp%g
 s%@bounded@%$bounded%g