]> gcc.gnu.org Git - gcc.git/blame - libio/configure.in
Initial revision
[gcc.git] / libio / configure.in
CommitLineData
6599da04
JM
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
5configdirs="tests dbz stdio testsuite"
6srctrigger=libioP.h
7srcname="input/output library"
8package_makefile_frag=Make.pack
9
10# per-host:
11
12# per-target:
13
14echo "# Warning: this fragment is automatically generated" > temp.mt
15frags=
16
17case "${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 ;;
29esac
30
31case "${enable_shared}" in
32 yes) shared=yes ;;
33 no) shared=no ;;
34 *libio*) shared=yes ;;
35 *) shared=no ;;
36esac
37
38if [ "${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
44fi
45
46for 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
53done
54
55target_makefile_frag=target-mkfrag
56${moveifchange} temp.mt target-mkfrag
57
58LIBDIR=yes
59TO_TOPDIR=../
60ALL='$(_G_CONFIG_H) libio.a iostream.list'
61XCINCLUDES='-I. -I$(srcdir)'
62XCXXINCLUDES='-I. -I$(srcdir)'
63MOSTLYCLEAN='*.o pic stamp-picdir core iostream.list'
64DISTCLEAN='config.status Makefile *~ Make.pack target-mkfrag multilib.out'
65CLEAN='_G_config.h *.a'
66INFO_FILES=iostream
67if [ -n "${with_cross_host}" ] ; then
68 CHECK_SUBDIRS=testsuite
69fi
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).
77if [ -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
83fi
84
85if [ "${srcdir}" = "." ] ; then
86 if [ "${with_target_subdir}" != "." ] ; then
87 . ${with_multisrctop}../../config-ml.in
88 else
89 . ${with_multisrctop}../config-ml.in
90 fi
91else
92 . ${srcdir}/../config-ml.in
93fi
This page took 0.034256 seconds and 5 git commands to generate.