Ignore:
Timestamp:
Aug 16, 2003, 6:41:03 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/config.if

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r604 r605  
    33# determine:
    44#
    5 #       1. libstcxx_interface: the interface name for libstdc++.
    6 #       2. cxx_interface: the interface name for c++.
    7 #       3. libc_interface: the interface name for libc.
     5#       1. libstcxx_incdir: the interface name for libstdc++.
     6#       2. libc_interface: the interface name for libc.
    87#
    98
     
    2221fi
    2322
    24 if [ "${enable_libstdcxx_v3}" = "yes" ] ; then
    25   libstdcxx_srcdir=${if_topsrcdir}/libstdc++-v3
    26 else
    27   libstdcxx_srcdir=${if_topsrcdir}/libstdc++
     23# Set libstdcxx_incdir.
     24# This is the same as gcc/configure.in and libstdc++-v3/acinclude.m4.
     25if test -z "$gcc_version"; then
     26  if test -z "${gcc_version_trigger}" \
     27     && test -f ${if_topsrcdir}/gcc/version.c; then
     28    gcc_version_trigger=${if_topsrcdir}/gcc/version.c
     29  fi   
     30  if test -f "${gcc_version_trigger}"; then
     31    gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
     32  else
     33    gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
     34  fi
     35  gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
    2836fi
    29 
    30 if [ -f ${libstdcxx_srcdir}/Makefile.in ]; then
    31 # We check libstdc++ for libstdcxx_interface.
    32 libstdcxx_interface=`grep "^INTERFACE" ${libstdcxx_srcdir}/Makefile.in | sed 's/INTERFACE[      ]*=[    ]*\(.*\)/\1/'`
    33 else
    34 libstdcxx_interface=
    35 fi
    36 
    37 if [ -f ${if_topsrcdir}/gcc/cp/Makefile.in ]; then
    38 # We check gcc/cp for cxx_interface.
    39 cxx_interface=`grep "^INTERFACE" ${if_topsrcdir}/gcc/cp/Makefile.in | sed 's/INTERFACE[         ]*=[    ]*\(.*\)/\1/'`
    40 else
    41 cxx_interface=
    42 fi
     37libstdcxx_incdir=c++/${gcc_version}
    4338
    4439# The trickiest part is libc_interface.
Note: See TracChangeset for help on using the changeset viewer.