1997-08-22 00:57:35 +02:00
|
|
|
# This file is a shell script fragment that supplies the information
|
|
|
|
# necessary for a configure script to process the program in
|
|
|
|
# this directory. For more information, look at ../configure.
|
1998-11-26 02:48:34 +01:00
|
|
|
|
1999-03-24 22:44:48 +01:00
|
|
|
# If the language specific compiler does not exist, but the "gcc" directory
|
|
|
|
# does, we do not build anything. Note, $r is set by the top-level Makefile.
|
|
|
|
# Note that when we look for the compiler, we search both with and without
|
|
|
|
# extension to handle cross and canadian cross builds.
|
1999-05-12 10:39:23 +02:00
|
|
|
# Note that if $norecursion is set we're being called from config.status,
|
|
|
|
# so don't check for the compiler; we might be doing a make clean.
|
1998-11-26 02:48:34 +01:00
|
|
|
compiler_name=cc1plus
|
|
|
|
rm -f skip-this-dir
|
1999-05-12 10:39:23 +02:00
|
|
|
if test -n "$r" && [ -z "$norecursion" ] ; then
|
1998-11-26 02:48:34 +01:00
|
|
|
if test -d "$r"/gcc; then
|
1999-03-24 22:44:48 +01:00
|
|
|
if test -f "$r"/gcc/$compiler_name \
|
1999-05-20 04:27:28 +02:00
|
|
|
|| test -f "$r"/gcc/$compiler_name.exe; then
|
1998-11-26 02:48:34 +01:00
|
|
|
true
|
|
|
|
else
|
|
|
|
echo "rm -f multilib.out" > skip-this-dir
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
1997-08-22 00:57:35 +02:00
|
|
|
|
1998-01-27 10:28:32 +01:00
|
|
|
if [ "${srcdir}" = "." ] ; then
|
|
|
|
if [ "${with_target_subdir}" != "." ] ; then
|
|
|
|
topsrcdir=${with_multisrctop}../..
|
|
|
|
else
|
|
|
|
topsrcdir=${with_multisrctop}..
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
topsrcdir=${srcdir}/..
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d ${topsrcdir}/gcc ] ; then
|
1998-01-13 21:24:04 +01:00
|
|
|
configdirs="tests testsuite"
|
|
|
|
else
|
|
|
|
configdirs="tests"
|
|
|
|
fi
|
1997-08-22 00:57:35 +02:00
|
|
|
srctrigger=sinst.cc
|
|
|
|
srcname="ANSI C++ library"
|
|
|
|
package_makefile_frag=Make.pack
|
1998-01-27 23:25:59 +01:00
|
|
|
package_makefile_rules_frag=Make.pack.r
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
# per-host:
|
|
|
|
|
|
|
|
# per-target:
|
|
|
|
|
|
|
|
echo "# Warning: this fragment is automatically generated" > temp.mt
|
|
|
|
frags=
|
|
|
|
|
|
|
|
# If they didn't specify --enable-shared, don't generate shared libs.
|
|
|
|
case "${enable_shared}" in
|
|
|
|
yes) shared=yes ;;
|
|
|
|
no) shared=no ;;
|
|
|
|
*libstdc++*) shared=yes ;;
|
|
|
|
*) shared=no ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [ "${shared}" = "yes" ]; then
|
|
|
|
case "${target}" in
|
1999-03-11 01:11:25 +01:00
|
|
|
alpha*-*-linux*) frags=../../config/mh-elfalphapic ;;
|
|
|
|
arm*-*-*) frags=../../config/mh-armpic ;;
|
1997-08-22 00:57:35 +02:00
|
|
|
hppa*-*-*) frags=../../config/mh-papic ;;
|
|
|
|
i[3456]86-*-*) frags=../../config/mh-x86pic ;;
|
1999-03-11 01:11:25 +01:00
|
|
|
powerpc*-*-aix*) ;;
|
|
|
|
powerpc*-*-*) frags=../../config/mh-ppcpic ;;
|
2000-05-11 16:16:25 +02:00
|
|
|
sparc*-*-*) frags=../../config/mh-sparcpic ;;
|
1997-08-22 00:57:35 +02:00
|
|
|
*-*-*) frags=../../config/mh-${target_cpu}pic ;;
|
|
|
|
esac
|
|
|
|
case "${target}" in
|
1999-08-25 09:33:08 +02:00
|
|
|
*-*-aix*) frags="${frags} aix.ml" ;;
|
2000-01-13 02:37:38 +01:00
|
|
|
*-*-beos*) frags="${frags} beos.ml" ;;
|
1997-08-22 00:57:35 +02:00
|
|
|
*-dec-osf*) frags="${frags} dec-osf.ml";;
|
1999-08-25 09:33:08 +02:00
|
|
|
*-*-freebsd2*) ;;
|
|
|
|
*-*-freebsd*) frags="${frags} freebsd.ml" ;;
|
1997-08-22 00:57:35 +02:00
|
|
|
*-*-hpux*) frags="${frags} hpux.ml" ;;
|
|
|
|
*-*-irix[56]*) frags="${frags} irix5.ml" ;;
|
|
|
|
*-*-linux*aout*) ;;
|
|
|
|
*-*-linux*) frags="${frags} linux.ml" ;;
|
1999-09-01 10:14:33 +02:00
|
|
|
# This must come after *-*-linux*
|
|
|
|
*-*-gnu*) frags="${frags} gnu.ml" ;;
|
1999-02-18 19:57:55 +01:00
|
|
|
*-*-openbsd*) frags="${frags} openbsd.ml" ;;
|
1999-01-02 20:16:17 +01:00
|
|
|
*-*-sysv[45]*|*-*-udk*) frags="${frags} elf.ml" ;;
|
1997-08-22 00:57:35 +02:00
|
|
|
*-*-solaris*) frags="${frags} sol2shm.ml" ;;
|
|
|
|
*-*-sunos4*) frags="${frags} sunos4.ml" ;;
|
1999-01-30 08:09:11 +01:00
|
|
|
i[3456]86-*-interix*) frags="${frags} x86-interix.ml" ;;
|
1997-08-22 00:57:35 +02:00
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
1997-09-16 18:01:55 +02:00
|
|
|
# Make sure the right flags are defined for multi-threading.
|
|
|
|
case "${target}" in
|
2000-09-19 22:36:39 +02:00
|
|
|
*-*-aix*)
|
|
|
|
frags="${frags} aix.mt" ;;
|
2000-08-14 20:08:46 +02:00
|
|
|
*-*-linux*)
|
|
|
|
case "x${enable_threads}" in
|
|
|
|
xyes|xposix) frags="${frags} linux.mt" ;;
|
|
|
|
esac;;
|
|
|
|
*-*-openbsd*)
|
1999-02-18 19:57:55 +01:00
|
|
|
case "x${enable_threads}" in
|
|
|
|
xyes|xposix) frags="${frags} openbsd.mt" ;;
|
|
|
|
esac;;
|
1998-01-03 12:16:38 +01:00
|
|
|
m68k-motorola-sysv) frags="${frags} delta.mt" ;;
|
1999-02-04 16:52:08 +01:00
|
|
|
*-*-solaris*)
|
|
|
|
case "x${enable_threads}" in
|
|
|
|
xposix) frags="${frags} sol2pth.mt" ;;
|
|
|
|
xsolaris) frags="${frags} sol2solth.mt" ;;
|
|
|
|
esac ;;
|
|
|
|
*)
|
|
|
|
case "x${enable_threads}" in
|
|
|
|
xposix) frags="${frags} posix.mt" ;;
|
|
|
|
esac ;;
|
1997-09-16 18:01:55 +02:00
|
|
|
esac
|
|
|
|
|
1997-08-22 00:57:35 +02:00
|
|
|
for frag in ${frags}; do
|
1998-03-05 01:28:14 +01:00
|
|
|
case ${frag} in
|
|
|
|
../* )
|
|
|
|
if [ ${srcdir} = . ]; then
|
|
|
|
[ -n "${with_target_subdir}" ] && frag=../${frag}
|
|
|
|
[ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
1997-08-22 00:57:35 +02:00
|
|
|
frag=${srcdir}/config/$frag
|
|
|
|
if [ -f ${frag} ]; then
|
|
|
|
echo "Appending ${frag} to target-mkfrag"
|
|
|
|
echo "# Following fragment copied from ${frag}" >> temp.mt
|
|
|
|
cat ${frag} >> temp.mt
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
target_makefile_frag=target-mkfrag
|
|
|
|
${moveifchange} temp.mt target-mkfrag
|
|
|
|
|
|
|
|
LIBDIR=yes
|
|
|
|
TO_TOPDIR=../
|
|
|
|
ALL='libs'
|
del_op.cc, [...]: New files.
* del_op.cc, del_opnt.cc, del_opv.cc, del_opvnt.cc: New files.
* exception.cc, new_handler.cc, new_op.cc, new_opnt.cc: New files.
* new_opv.cc, new_opvnt.cc, tinfo.cc, tinfo2.cc, vec.cc: New files.
* cxxabi.h, exception, new, new.h, typeinfo, pure.c: New files.
* tinfo.hP: New file.
* Makefile.in (OBJS, HEADERS): Add new files.
* configure.in (XCXXINCLUDES): Add ../include and ../gcc.
From-SVN: r36780
2000-10-07 21:21:05 +02:00
|
|
|
XCXXINCLUDES="-I${srcdir} -I${srcdir}/stl -I${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}include -I${srcdir}/${TO_TOPDIR}gcc"
|
1997-08-22 00:57:35 +02:00
|
|
|
MOSTLYCLEAN='*.o pic stamp-picdir core so_locations $(MOSTLYCLEAN_JUNK)'
|
|
|
|
CLEAN='$(CLEAN_JUNK)'
|
|
|
|
EXTRA_DISTCLEAN='target-mkfrag'
|
|
|
|
|
1998-01-27 23:25:59 +01:00
|
|
|
(. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag} 2>${package_makefile_rules_frag}
|
1997-08-22 00:57:35 +02:00
|
|
|
|
1998-08-30 23:18:39 +02:00
|
|
|
. ${topsrcdir}/config.if
|
|
|
|
echo "
|
|
|
|
LIBSTDCXX_INTERFACE=${libstdcxx_interface}
|
|
|
|
CXX_INTERFACE=${cxx_interface}
|
|
|
|
LIBC_INTERFACE=${libc_interface}
|
|
|
|
" >> ${package_makefile_frag}
|
|
|
|
|
1999-01-13 17:04:01 +01:00
|
|
|
# This duplicated the AC_PROG_LN_S macro in GNU autoconf.
|
|
|
|
rm -f conttestdata
|
|
|
|
if ln -s X conftestdata 2>/dev/null
|
|
|
|
then
|
|
|
|
rm -f conftestdata
|
|
|
|
LN_S="ln -s"
|
|
|
|
else
|
|
|
|
LN_S=ln
|
|
|
|
fi
|
|
|
|
echo "
|
|
|
|
LN_S=$LN_S
|
|
|
|
" >> ${package_makefile_frag}
|
|
|
|
|
1997-08-22 00:57:35 +02:00
|
|
|
# post-target:
|
|
|
|
|
1998-09-09 13:49:10 +02:00
|
|
|
# If cross-compiling, we install in $(tooldir)/lib or in $(libsubdir)
|
|
|
|
# depending on --enable-version-specific-runtime-libs.
|
1997-08-22 00:57:35 +02:00
|
|
|
if [ -n "${with_cross_host}" ] ; then
|
|
|
|
rm -f Makefile.tem
|
|
|
|
sed \
|
1999-02-25 00:50:35 +01:00
|
|
|
-e 's|^\([ ]*INSTALLDIR[ ]*=[ ]*\)\$(libdir)|\1$(tooldir)/lib|' \
|
1997-08-22 00:57:35 +02:00
|
|
|
Makefile >Makefile.tem
|
|
|
|
mv -f Makefile.tem Makefile
|
|
|
|
fi
|
|
|
|
|
1999-04-07 05:20:00 +02:00
|
|
|
# enable multilib-ing by default.
|
|
|
|
if [ -z "${enable_multilib}" ]; then
|
|
|
|
enable_multilib=yes
|
|
|
|
fi
|
|
|
|
|
1998-01-27 10:28:32 +01:00
|
|
|
. ${topsrcdir}/config-ml.in
|
1999-04-02 16:17:49 +02:00
|
|
|
|
|
|
|
gxx_include_dir=
|
|
|
|
# Specify the g++ header file directory
|
|
|
|
# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
|
|
|
|
if test "${with_gxx_include_dir+set}" = set; then
|
|
|
|
withval="$with_gxx_include_dir"
|
|
|
|
case "${withval}" in
|
|
|
|
yes)
|
|
|
|
echo "configure.in: error: bad value ${withval} given for g++ include directory" 1>&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
no) ;;
|
|
|
|
*) gxx_include_dir=$with_gxx_include_dir ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x${gxx_include_dir} = x; then
|
|
|
|
if test x${enable_version_specific_runtime_libs} = xyes; then
|
|
|
|
gxx_include_dir='${libsubdir}/include/g++'
|
|
|
|
else
|
|
|
|
gxx_include_dir='${prefix}/include/g++'-${libstdcxx_interface}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f Makefile.tem
|
|
|
|
sed -e "s%^gxx_include_dir[ ]*=.*$%gxx_include_dir=${gxx_include_dir}%" \
|
|
|
|
Makefile >Makefile.tem
|
|
|
|
mv -f Makefile.tem Makefile
|