1997-08-22 06:57:35 +08: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 09:48:34 +08: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.
|
|
|
|
compiler_name=cc1plus
|
|
|
|
rm -f skip-this-dir
|
|
|
|
if test -n "$r"; then
|
|
|
|
if test -d "$r"/gcc; then
|
|
|
|
if test -f "$r"/gcc/$compiler_name; then
|
|
|
|
true
|
|
|
|
else
|
|
|
|
echo "rm -f multilib.out" > skip-this-dir
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1998-01-27 17:28:32 +08: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-14 04:24:04 +08:00
|
|
|
configdirs="tests testsuite"
|
|
|
|
else
|
|
|
|
configdirs="tests"
|
|
|
|
fi
|
1997-08-22 06:57:35 +08:00
|
|
|
srctrigger=sinst.cc
|
|
|
|
srcname="ANSI C++ library"
|
|
|
|
package_makefile_frag=Make.pack
|
1998-01-28 06:25:59 +08:00
|
|
|
package_makefile_rules_frag=Make.pack.r
|
1997-08-22 06:57:35 +08: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
|
|
|
|
hppa*-*-*) frags=../../config/mh-papic ;;
|
|
|
|
i[3456]86-*-*) frags=../../config/mh-x86pic ;;
|
|
|
|
*-*-*) frags=../../config/mh-${target_cpu}pic ;;
|
|
|
|
esac
|
|
|
|
case "${target}" in
|
|
|
|
*-dec-osf*) frags="${frags} dec-osf.ml";;
|
|
|
|
*-*-hpux*) frags="${frags} hpux.ml" ;;
|
|
|
|
*-*-irix[56]*) frags="${frags} irix5.ml" ;;
|
|
|
|
*-*-linux*aout*) ;;
|
|
|
|
*-*-linux*) frags="${frags} linux.ml" ;;
|
|
|
|
*-*-sysv4*) frags="${frags} elf.ml" ;;
|
|
|
|
*-*-solaris*) frags="${frags} sol2shm.ml" ;;
|
|
|
|
*-*-sunos4*) frags="${frags} sunos4.ml" ;;
|
|
|
|
*-*-aix*) frags="${frags} aix.ml" ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
1997-09-17 00:01:55 +08:00
|
|
|
# Make sure the right flags are defined for multi-threading.
|
|
|
|
case "${target}" in
|
1998-01-03 19:16:38 +08:00
|
|
|
alpha*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
|
|
|
|
powerpc*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
|
|
|
|
*-*-linux-gnu) frags="${frags} linux.mt" ;;
|
|
|
|
m68k-motorola-sysv) frags="${frags} delta.mt" ;;
|
1997-09-17 00:01:55 +08:00
|
|
|
esac
|
|
|
|
|
1997-08-22 06:57:35 +08:00
|
|
|
for frag in ${frags}; do
|
1998-03-05 08:28:14 +08: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 06:57:35 +08: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'
|
|
|
|
XCXXINCLUDES="-I${srcdir} -I${srcdir}/stl -I${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio"
|
|
|
|
MOSTLYCLEAN='*.o pic stamp-picdir core so_locations $(MOSTLYCLEAN_JUNK)'
|
|
|
|
CLEAN='$(CLEAN_JUNK)'
|
|
|
|
EXTRA_DISTCLEAN='target-mkfrag'
|
|
|
|
|
1998-01-28 06:25:59 +08:00
|
|
|
(. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag} 2>${package_makefile_rules_frag}
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1998-08-31 05:18:39 +08:00
|
|
|
. ${topsrcdir}/config.if
|
|
|
|
echo "
|
|
|
|
LIBSTDCXX_INTERFACE=${libstdcxx_interface}
|
|
|
|
CXX_INTERFACE=${cxx_interface}
|
|
|
|
LIBC_INTERFACE=${libc_interface}
|
|
|
|
" >> ${package_makefile_frag}
|
|
|
|
|
1997-08-22 06:57:35 +08:00
|
|
|
# post-target:
|
|
|
|
|
1998-09-09 19:49:10 +08:00
|
|
|
# If cross-compiling, we install in $(tooldir)/lib or in $(libsubdir)
|
|
|
|
# depending on --enable-version-specific-runtime-libs.
|
1997-08-22 06:57:35 +08:00
|
|
|
if [ -n "${with_cross_host}" ] ; then
|
|
|
|
rm -f Makefile.tem
|
|
|
|
sed \
|
1998-09-09 19:49:10 +08:00
|
|
|
-e 's|\(^[ ]*INSTALLDIR[ ]*=[ ]*\)\$(libdir)|\1$(tooldir)/lib|' \
|
1997-08-22 06:57:35 +08:00
|
|
|
Makefile >Makefile.tem
|
|
|
|
mv -f Makefile.tem Makefile
|
|
|
|
fi
|
|
|
|
|
1998-01-27 17:28:32 +08:00
|
|
|
. ${topsrcdir}/config-ml.in
|