# 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.# 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.# 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.compiler_name=cc1plusrm -f skip-this-dirif test -n "$r" && [ -z "$norecursion" ] ; thenif test -d "$r"/gcc; thenif test -f "$r"/gcc/$compiler_name \|| test -f "$r"/gcc/$compiler_name.exe; thentrueelseecho "rm -f multilib.out" > skip-this-dirfififiif [ "${srcdir}" = "." ] ; thenif [ "${with_target_subdir}" != "." ] ; thentopsrcdir=${with_multisrctop}../..elsetopsrcdir=${with_multisrctop}..fielsetopsrcdir=${srcdir}/..fiif [ -d ${topsrcdir}/gcc ] ; thenconfigdirs="tests testsuite"elseconfigdirs="tests"fisrctrigger=sinst.ccsrcname="ANSI C++ library"package_makefile_frag=Make.packpackage_makefile_rules_frag=Make.pack.r# per-host:# per-target:echo "# Warning: this fragment is automatically generated" > temp.mtfrags=# If they didn't specify --enable-shared, don't generate shared libs.case "${enable_shared}" inyes) shared=yes ;;no) shared=no ;;*libstdc++*) shared=yes ;;*) shared=no ;;esacif [ "${shared}" = "yes" ]; thencase "${target}" inalpha*-*-linux*) frags=../../config/mh-elfalphapic ;;arm*-*-*) frags=../../config/mh-armpic ;;hppa*-*-*) frags=../../config/mh-papic ;;i[3456]86-*-*) frags=../../config/mh-x86pic ;;powerpc*-*-aix*) ;;powerpc*-*-*) frags=../../config/mh-ppcpic ;;*-*-*) frags=../../config/mh-${target_cpu}pic ;;esaccase "${target}" in*-dec-osf*) frags="${frags} dec-osf.ml";;*-*-hpux*) frags="${frags} hpux.ml" ;;*-*-irix[56]*) frags="${frags} irix5.ml" ;;*-*-linux*aout*) ;;*-*-freebsd2*) ;;*-*-freebsd*) frags="${frags} freebsd.ml" ;;*-*-linux*) frags="${frags} linux.ml" ;;*-*-openbsd*) frags="${frags} openbsd.ml" ;;*-*-sysv[45]*|*-*-udk*) frags="${frags} elf.ml" ;;*-*-solaris*) frags="${frags} sol2shm.ml" ;;*-*-sunos4*) frags="${frags} sunos4.ml" ;;*-*-aix*) frags="${frags} aix.ml" ;;*-*-beos*) frags="${frags} beos.ml" ;;*-*-haiku*) frags="${frags} haiku.ml" ;;i[3456]86-*-interix*) frags="${frags} x86-interix.ml" ;;*-*-gnu*) frags="${frags} gnu.ml" ;;esacfi# Make sure the right flags are defined for multi-threading.case "${target}" inalpha*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;powerpc*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;*-*-linux-gnu) frags="${frags} linux.mt" ;;*-*-openbsd*)case "x${enable_threads}" inxyes|xposix) frags="${frags} openbsd.mt" ;;esac;;m68k-motorola-sysv) frags="${frags} delta.mt" ;;*-*-solaris*)case "x${enable_threads}" inxposix) frags="${frags} sol2pth.mt" ;;xsolaris) frags="${frags} sol2solth.mt" ;;esac ;;*)case "x${enable_threads}" inxposix) frags="${frags} posix.mt" ;;esac ;;esacfor frag in ${frags}; docase ${frag} in../* )if [ ${srcdir} = . ]; then[ -n "${with_target_subdir}" ] && frag=../${frag}[ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}fi;;esacfrag=${srcdir}/config/$fragif [ -f ${frag} ]; thenecho "Appending ${frag} to target-mkfrag"echo "# Following fragment copied from ${frag}" >> temp.mtcat ${frag} >> temp.mtfidonetarget_makefile_frag=target-mkfrag${moveifchange} temp.mt target-mkfragLIBDIR=yesTO_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'(. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag} 2>${package_makefile_rules_frag}. ${topsrcdir}/config.ifecho "LIBSTDCXX_INTERFACE=${libstdcxx_interface}CXX_INTERFACE=${cxx_interface}LIBC_INTERFACE=${libc_interface}" >> ${package_makefile_frag}# This duplicated the AC_PROG_LN_S macro in GNU autoconf.rm -f conttestdataif ln -s X conftestdata 2>/dev/nullthenrm -f conftestdataLN_S="ln -s"elseLN_S=lnfiecho "LN_S=$LN_S" >> ${package_makefile_frag}# post-target:# If cross-compiling, we install in $(tooldir)/lib or in $(libsubdir)# depending on --enable-version-specific-runtime-libs.if [ -n "${with_cross_host}" ] ; thenrm -f Makefile.temsed \-e 's|^\([ ]*INSTALLDIR[ ]*=[ ]*\)\$(libdir)|\1$(tooldir)/lib|' \Makefile >Makefile.temmv -f Makefile.tem Makefilefi# enable multilib-ing by default.if [ -z "${enable_multilib}" ]; thenenable_multilib=yesfi. ${topsrcdir}/config-ml.ingxx_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; thenwithval="$with_gxx_include_dir"case "${withval}" inyes)echo "configure.in: error: bad value ${withval} given for g++ include directory" 1>&2exit 1;;no) ;;*) gxx_include_dir=$with_gxx_include_dir ;;esacfiif test x${gxx_include_dir} = x; thenif test x${enable_version_specific_runtime_libs} = xyes; thengxx_include_dir='${libsubdir}/include/g++'elsegxx_include_dir='${prefix}/include/g++'fifirm -f Makefile.temsed -e "s%^gxx_include_dir[ ]*=.*$%gxx_include_dir=${gxx_include_dir}%" \Makefile >Makefile.temmv -f Makefile.tem Makefile