1 # This file is a shell script fragment that supplies the information
2 # necessary for a configure script to process the program in
3 # this directory. For more information, look at ../configure.
5 if [ "${srcdir}" = "." ] ; then
6 if [ "${with_target_subdir}" != "." ] ; then
7 topsrcdir=${with_multisrctop}../..
9 topsrcdir=${with_multisrctop}..
12 topsrcdir=${srcdir}/..
15 if [ -d ${topsrcdir}/gcc ] ; then
16 configdirs="tests testsuite"
21 srcname="ANSI C++ library"
22 package_makefile_frag=Make.pack
28 echo "# Warning: this fragment is automatically generated" > temp.mt
31 # If they didn't specify --enable-shared, don't generate shared libs.
32 case "${enable_shared}" in
35 *libstdc++*) shared=yes ;;
39 if [ "${shared}" = "yes" ]; then
41 hppa*-*-*) frags=../../config/mh-papic ;;
42 i[3456]86-*-*) frags=../../config/mh-x86pic ;;
43 *-*-*) frags=../../config/mh-${target_cpu}pic ;;
46 *-dec-osf*) frags="${frags} dec-osf.ml";;
47 *-*-hpux*) frags="${frags} hpux.ml" ;;
48 *-*-irix[56]*) frags="${frags} irix5.ml" ;;
50 *-*-linux*) frags="${frags} linux.ml" ;;
51 *-*-sysv4*) frags="${frags} elf.ml" ;;
52 *-*-solaris*) frags="${frags} sol2shm.ml" ;;
53 *-*-sunos4*) frags="${frags} sunos4.ml" ;;
54 *-*-aix*) frags="${frags} aix.ml" ;;
58 # Make sure the right flags are defined for multi-threading.
60 alpha*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
61 powerpc*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
62 *-*-linux-gnu) frags="${frags} linux.mt" ;;
63 m68k-motorola-sysv) frags="${frags} delta.mt" ;;
66 for frag in ${frags}; do
67 frag=${srcdir}/config/$frag
68 if [ -f ${frag} ]; then
69 echo "Appending ${frag} to target-mkfrag"
70 echo "# Following fragment copied from ${frag}" >> temp.mt
71 cat ${frag} >> temp.mt
75 target_makefile_frag=target-mkfrag
76 ${moveifchange} temp.mt target-mkfrag
81 XCXXINCLUDES="-I${srcdir} -I${srcdir}/stl -I${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio"
82 MOSTLYCLEAN='*.o pic stamp-picdir core so_locations $(MOSTLYCLEAN_JUNK)'
84 EXTRA_DISTCLEAN='target-mkfrag'
86 (. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag}
90 # If cross-compiling, we install in $(tooldir).
91 if [ -n "${with_cross_host}" ] ; then
94 -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
95 Makefile >Makefile.tem
96 mv -f Makefile.tem Makefile
99 . ${topsrcdir}/config-ml.in