]> gcc.gnu.org Git - gcc.git/blob - libio/configure.in
Insert libio rewrite and its various changes from devo.
[gcc.git] / libio / configure.in
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.
4
5 configdirs="tests dbz stdio testsuite"
6 srctrigger=libioP.h
7 srcname="input/output library"
8 package_makefile_frag=Make.pack
9
10 # per-host:
11
12 # per-target:
13
14 echo "# Warning: this fragment is automatically generated" > temp.mt
15 frags=
16
17 case "${target}" in
18 *-hpux*) frags=hpux.mt ;;
19 *-linux*)
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!"
24 frags=linux.mt ;;
25 *-sco3.2v[45]*) frags=sco4.mt ;;
26 *-isc*) frags=isc.mt ;;
27 *-netware*) frags=netware.mt ;;
28 *) frags=${target_cpu}.mt ;;
29 esac
30
31 case "${enable_shared}" in
32 yes) shared=yes ;;
33 no) shared=no ;;
34 *libio*) shared=yes ;;
35 *) shared=no ;;
36 esac
37
38 if [ "${shared}" = "yes" ]; then
39 case "${target}" in
40 hppa*-*) frags="${frags} ../../config/mh-papic" ;;
41 i[3456]86-*) frags="${frags} ../../config/mh-x86pic" ;;
42 *) frags="${frags} ../../config/mh-${target_cpu}pic" ;;
43 esac
44 fi
45
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
52 fi
53 done
54
55 target_makefile_frag=target-mkfrag
56 ${moveifchange} temp.mt target-mkfrag
57
58 LIBDIR=yes
59 TO_TOPDIR=../
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'
66 INFO_FILES=iostream
67 if [ -n "${with_cross_host}" ] ; then
68 CHECK_SUBDIRS=testsuite
69 fi
70 (. ${srcdir}/config.shared) >${package_makefile_frag}
71
72 # post-target:
73
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
78 rm -f Makefile.tem
79 sed \
80 -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
81 Makefile >Makefile.tem
82 mv -f Makefile.tem Makefile
83 fi
84
85 if [ "${srcdir}" = "." ] ; then
86 if [ "${with_target_subdir}" != "." ] ; then
87 . ${with_multisrctop}../../config-ml.in
88 else
89 . ${with_multisrctop}../config-ml.in
90 fi
91 else
92 . ${srcdir}/../config-ml.in
93 fi
This page took 0.043939 seconds and 6 git commands to generate.