]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use $CXX not cc1plus to locate C++ headers.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 10 Oct 2012 22:07:36 +0000 (22:07 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 10 Oct 2012 22:07:36 +0000 (22:07 +0000)
ChangeLog
configure
configure.in

index 31662fc753c3f068d693db3ea480301d5d7267f9..e093b8f8f780a093ea47efe429ffb426f1a8055e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
 
+       * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
+       * configure: Regenerated.
+
        * Makeconfig (+link-static-before-libc): Don't include
        $(link-static-libc).
 
index a5e93160be669bed31a8c0c0e28725f9a3459f11..74ff690cf9785d792a6755bd08450cb3ce12e8ff 100755 (executable)
--- a/configure
+++ b/configure
@@ -5342,10 +5342,9 @@ if test -n "$sysheaders"; then
 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
   if test -n "$CXX"; then
     CXX_SYSINCLUDES=
-    cxxversion=`$CXX -dumpversion 2>&5` &&
     cxxmachine=`$CXX -dumpmachine 2>&5` &&
-    cxxplus=`$CXX -print-prog-name=cc1plus`
-    cxxheaders=`$cxxplus -v /dev/null 2>&1 | sed -n '/ \//{p;q;}' | sed 's/ //'`
+    cxxheaders=`$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
+       | sed -n -e '1,/#include/d' -e '/^ \//{p;q;}' | sed 's/ //'`
     test "x$cxxheaders" != x && test "x$i" != "x$cxxheaders" &&
     CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders \
 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
index b9b57036481c338d4c7eb707ae62356fec56e50c..facde5e55a8c186b91915da34039a8143d360b62 100644 (file)
@@ -973,10 +973,9 @@ if test -n "$sysheaders"; then
 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
   if test -n "$CXX"; then
     CXX_SYSINCLUDES=
-    cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` &&
     cxxmachine=`$CXX -dumpmachine 2>&AS_MESSAGE_LOG_FD` &&
-    cxxplus=`$CXX -print-prog-name=cc1plus`
-    cxxheaders=`$cxxplus -v /dev/null 2>&1 | sed -n '/ \//{p;q;}' | sed 's/ //'`
+    cxxheaders=`$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
+       | sed -n -e '1,/#include/d' -e '/^ \//{p;q;}' | sed 's/ //'`
     test "x$cxxheaders" != x && test "x$i" != "x$cxxheaders" &&
     CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders \
 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"