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
23 package_makefile_rules_frag=Make.pack.r
29 echo "# Warning: this fragment is automatically generated" > temp.mt
32 # If they didn't specify --enable-shared, don't generate shared libs.
33 case "${enable_shared}" in
36 *libstdc++*) shared=yes ;;
40 if [ "${shared}" = "yes" ]; then
42 hppa*-*-*) frags=../../config/mh-papic ;;
43 i[3456]86-*-*) frags=../../config/mh-x86pic ;;
44 *-*-*) frags=../../config/mh-${target_cpu}pic ;;
47 *-dec-osf*) frags="${frags} dec-osf.ml";;
48 *-*-hpux*) frags="${frags} hpux.ml" ;;
49 *-*-irix[56]*) frags="${frags} irix5.ml" ;;
51 *-*-linux*) frags="${frags} linux.ml" ;;
52 *-*-sysv4*) frags="${frags} elf.ml" ;;
53 *-*-solaris*) frags="${frags} sol2shm.ml" ;;
54 *-*-sunos4*) frags="${frags} sunos4.ml" ;;
55 *-*-aix*) frags="${frags} aix.ml" ;;
59 # Make sure the right flags are defined for multi-threading.
61 alpha*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
62 powerpc*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
63 *-*-linux-gnu) frags="${frags} linux.mt" ;;
64 m68k-motorola-sysv) frags="${frags} delta.mt" ;;
67 for frag in ${frags}; do
70 if [ ${srcdir} = . ]; then
71 [ -n "${with_target_subdir}" ] && frag=../${frag}
72 [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
76 frag=${srcdir}/config/$frag
77 if [ -f ${frag} ]; then
78 echo "Appending ${frag} to target-mkfrag"
79 echo "# Following fragment copied from ${frag}" >> temp.mt
80 cat ${frag} >> temp.mt
84 target_makefile_frag=target-mkfrag
85 ${moveifchange} temp.mt target-mkfrag
90 XCXXINCLUDES="-I${srcdir} -I${srcdir}/stl -I${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio"
91 MOSTLYCLEAN='*.o pic stamp-picdir core so_locations $(MOSTLYCLEAN_JUNK)'
93 EXTRA_DISTCLEAN='target-mkfrag'
95 (. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag} 2>${package_makefile_rules_frag}
99 # If cross-compiling, we install in $(tooldir).
100 if [ -n "${with_cross_host}" ] ; then
103 -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
104 Makefile >Makefile.tem
105 mv -f Makefile.tem Makefile
108 . ${topsrcdir}/config-ml.in