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 the language specific compiler does not exist, but the "gcc" directory does,
6 # we do not build anything. Note, $r is set by the top-level Makefile.
10 if test -d "$r"/gcc; then
11 if test -f "$r"/gcc/$compiler_name; then
14 echo "rm -f multilib.out" > skip-this-dir
19 if [ "${srcdir}" = "." ] ; then
20 if [ "${with_target_subdir}" != "." ] ; then
21 topsrcdir=${with_multisrctop}../..
23 topsrcdir=${with_multisrctop}..
26 topsrcdir=${srcdir}/..
29 if [ -d ${topsrcdir}/gcc ] ; then
30 configdirs="tests testsuite"
35 srcname="ANSI C++ library"
36 package_makefile_frag=Make.pack
37 package_makefile_rules_frag=Make.pack.r
43 echo "# Warning: this fragment is automatically generated" > temp.mt
46 # If they didn't specify --enable-shared, don't generate shared libs.
47 case "${enable_shared}" in
50 *libstdc++*) shared=yes ;;
54 if [ "${shared}" = "yes" ]; then
56 hppa*-*-*) frags=../../config/mh-papic ;;
57 i[3456]86-*-*) frags=../../config/mh-x86pic ;;
58 *-*-*) frags=../../config/mh-${target_cpu}pic ;;
61 *-dec-osf*) frags="${frags} dec-osf.ml";;
62 *-*-hpux*) frags="${frags} hpux.ml" ;;
63 *-*-irix[56]*) frags="${frags} irix5.ml" ;;
65 *-*-linux*) frags="${frags} linux.ml" ;;
66 *-*-sysv[45]*|*-*-udk*) frags="${frags} elf.ml" ;;
67 *-*-solaris*) frags="${frags} sol2shm.ml" ;;
68 *-*-sunos4*) frags="${frags} sunos4.ml" ;;
69 *-*-aix*) frags="${frags} aix.ml" ;;
70 i[3456]86-*-interix*) frags="${frags} x86-interix.ml" ;;
74 # Make sure the right flags are defined for multi-threading.
76 alpha*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
77 powerpc*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
78 *-*-linux-gnu) frags="${frags} linux.mt" ;;
79 m68k-motorola-sysv) frags="${frags} delta.mt" ;;
81 case "x${enable_threads}" in
82 xposix) frags="${frags} sol2pth.mt" ;;
83 xsolaris) frags="${frags} sol2solth.mt" ;;
86 case "x${enable_threads}" in
87 xposix) frags="${frags} posix.mt" ;;
91 for frag in ${frags}; do
94 if [ ${srcdir} = . ]; then
95 [ -n "${with_target_subdir}" ] && frag=../${frag}
96 [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
100 frag=${srcdir}/config/$frag
101 if [ -f ${frag} ]; then
102 echo "Appending ${frag} to target-mkfrag"
103 echo "# Following fragment copied from ${frag}" >> temp.mt
104 cat ${frag} >> temp.mt
108 target_makefile_frag=target-mkfrag
109 ${moveifchange} temp.mt target-mkfrag
114 XCXXINCLUDES="-I${srcdir} -I${srcdir}/stl -I${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio"
115 MOSTLYCLEAN='*.o pic stamp-picdir core so_locations $(MOSTLYCLEAN_JUNK)'
116 CLEAN='$(CLEAN_JUNK)'
117 EXTRA_DISTCLEAN='target-mkfrag'
119 (. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag} 2>${package_makefile_rules_frag}
121 . ${topsrcdir}/config.if
123 LIBSTDCXX_INTERFACE=${libstdcxx_interface}
124 CXX_INTERFACE=${cxx_interface}
125 LIBC_INTERFACE=${libc_interface}
126 " >> ${package_makefile_frag}
128 # This duplicated the AC_PROG_LN_S macro in GNU autoconf.
130 if ln -s X conftestdata 2>/dev/null
139 " >> ${package_makefile_frag}
143 # If cross-compiling, we install in $(tooldir)/lib or in $(libsubdir)
144 # depending on --enable-version-specific-runtime-libs.
145 if [ -n "${with_cross_host}" ] ; then
148 -e 's|\(^[ ]*INSTALLDIR[ ]*=[ ]*\)\$(libdir)|\1$(tooldir)/lib|' \
149 Makefile >Makefile.tem
150 mv -f Makefile.tem Makefile
153 . ${topsrcdir}/config-ml.in