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 configdirs="tests dbz stdio testsuite"
7 srcname="input/output library"
8 package_makefile_frag=Make.pack
14 echo "# Warning: this fragment is automatically generated" > temp.mt
18 *-hpux*) frags=hpux.mt ;;
20 echo "WARNING: The I/O implementation in FSF libg++ 2.8.x is not"
21 echo " compatible with Linux libc through 5.2.x."
22 echo " See libg++/README for more information."
23 echo " YOU ARE ON YOUR OWN!"
25 *-sco3.2v[45]*) frags=sco4.mt ;;
26 *-isc*) frags=isc.mt ;;
27 *-netware*) frags=netware.mt ;;
28 *) frags=${target_cpu}.mt ;;
31 case "${enable_shared}" in
34 *libio*) shared=yes ;;
38 if [ "${shared}" = "yes" ]; then
40 hppa*-*) frags="${frags} ../../config/mh-papic" ;;
41 i[3456]86-*) frags="${frags} ../../config/mh-x86pic" ;;
42 *) frags="${frags} ../../config/mh-${target_cpu}pic" ;;
46 for frag in ${frags}; do
47 frag=${srcdir}/config/$frag
48 if [ -f ${frag} ]; then
49 echo "Appending ${frag} to target-mkfrag"
50 echo "# Following fragment copied from ${frag}" >> temp.mt
51 cat ${frag} >> temp.mt
55 target_makefile_frag=target-mkfrag
56 ${moveifchange} temp.mt target-mkfrag
60 ALL='$(_G_CONFIG_H) libio.a libiostream.a iostream.list'
61 XCINCLUDES='-I. -I$(srcdir)'
62 XCXXINCLUDES='-I. -I$(srcdir)'
63 MOSTLYCLEAN='*.o pic stamp-picdir core iostream.list'
64 DISTCLEAN='config.status Makefile *~ Make.pack target-mkfrag multilib.out'
65 CLEAN='_G_config.h *.a'
67 if [ -n "${with_cross_host}" ] ; then
68 CHECK_SUBDIRS=testsuite
70 (. ${srcdir}/config.shared) >${package_makefile_frag}
74 # If cross-compiling, don't build gperf or the utils. They
75 # will get built by the target compiler, which is confusing.
76 # We cannot test the installation. We install in $(tooldir).
77 if [ -n "${with_cross_host}" ] ; then
80 -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
81 Makefile >Makefile.tem
82 mv -f Makefile.tem Makefile
85 if [ "${srcdir}" = "." ] ; then
86 if [ "${with_target_subdir}" != "." ] ; then
87 . ${with_multisrctop}../../config-ml.in
89 . ${with_multisrctop}../config-ml.in
92 . ${srcdir}/../config-ml.in