From 94872c09c9fe7206ef9f3c60bf0c4c84e218726f Mon Sep 17 00:00:00 2001
From: Steve Ellcey <sje@cup.hp.com>
Date: Sat, 14 Apr 2007 19:51:44 +0000
Subject: [PATCH] configure.ac: Change how LIBSUPCXX_PICFLAGS is set.

	* configure.ac: Change how LIBSUPCXX_PICFLAGS is set.
	* configure: Regenerate.

From-SVN: r123828
---
 libstdc++-v3/ChangeLog    | 5 +++++
 libstdc++-v3/configure    | 6 ++----
 libstdc++-v3/configure.ac | 6 ++----
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b9c35879dcaf..16a1336ee45c 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-14  Steve Ellcey  <sje@cup.hp.com>
+
+	* configure.ac: Change how LIBSUPCXX_PICFLAGS is set.
+	* configure: Regenerate.
+
 2007-04-14  Paolo Carlini  <pcarlini@suse.de>
 
 	* config/locale/generic/c_locale.cc: Include <limits>.
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 55069241e784..22f3e1a7d59f 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -85067,10 +85067,8 @@ echo "${ECHO_T}$gxx_include_dir" >&6
 
 
 
-if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
-   grep "enable shared" > /dev/null;
-then
-  LIBSUPCXX_PICFLAGS=-prefer-pic
+if test "$enable_shared" = yes; then
+  LIBSUPCXX_PICFLAGS="-prefer-pic"
 else
   LIBSUPCXX_PICFLAGS=
 fi
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
index 7bebae9229da..e549e8a10f50 100644
--- a/libstdc++-v3/configure.ac
+++ b/libstdc++-v3/configure.ac
@@ -355,10 +355,8 @@ GLIBCXX_EXPORT_INSTALL_INFO
 GLIBCXX_EXPORT_INCLUDES
 GLIBCXX_EXPORT_FLAGS
 
-if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
-   grep "enable shared" > /dev/null;
-then
-  LIBSUPCXX_PICFLAGS=-prefer-pic
+if test "$enable_shared" = yes; then
+  LIBSUPCXX_PICFLAGS="-prefer-pic"
 else
   LIBSUPCXX_PICFLAGS=
 fi
-- 
GitLab