summaryrefslogtreecommitdiff
path: root/config.if
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-18 17:37:10 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-18 17:37:10 +0000
commit5f32ced194474a8d627c16edfb718ddca3aed5e5 (patch)
treec4dfbaa86792b93b18b2e73cf9f83568a5af8e08 /config.if
parentde79e38296377caa14ffa311af4f62b8703e2c56 (diff)
downloadgcc-5f32ced194474a8d627c16edfb718ddca3aed5e5.tar.gz
P
* config.if (cxx_interface, libstdcxx_interface): Do not try to set these if the appropriate directories and files to not exist. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23166 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config.if')
-rw-r--r--config.if8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.if b/config.if
index 795119e65e6..bcc026908d8 100644
--- a/config.if
+++ b/config.if
@@ -21,11 +21,19 @@ else
if_topsrcdir=${top_srcdir}
fi
+if [ -f ${if_topsrcdir}/libstdc++/Makefile.in ]; then
# We check libstdc++ for libstdcxx_interface.
libstdcxx_interface=`grep "^INTERFACE" ${if_topsrcdir}/libstdc++/Makefile.in | sed 's/INTERFACE[ ]*=[ ]*\(.*\)/\1/'`
+else
+libstdcxx_interface=
+fi
+if [ -f ${if_topsrcdir}/gcc/cp/Makefile.in ]; then
# We check gcc/cp for cxx_interface.
cxx_interface=`grep "^INTERFACE" ${if_topsrcdir}/gcc/cp/Makefile.in | sed 's/INTERFACE[ ]*=[ ]*\(.*\)/\1/'`
+else
+cxx_interface=
+fi
# The trickiest part is libc_interface.
if [ -z "${libc_interface}" ]