]> gcc.gnu.org Git - gcc.git/blame - libstdc++/configure.in
Avoid shell errors when target_cpu_default* contains a | character.
[gcc.git] / libstdc++ / 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 testsuite"
6srctrigger=sinst.cc
7srcname="ANSI C++ 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
17# If they didn't specify --enable-shared, don't generate shared libs.
18case "${enable_shared}" in
19 yes) shared=yes ;;
20 no) shared=no ;;
21 *libstdc++*) shared=yes ;;
22 *) shared=no ;;
23esac
24
25if [ "${shared}" = "yes" ]; then
26 case "${target}" in
27 hppa*-*-*) frags=../../config/mh-papic ;;
28 i[3456]86-*-*) frags=../../config/mh-x86pic ;;
29 *-*-*) frags=../../config/mh-${target_cpu}pic ;;
30 esac
31 case "${target}" in
32 *-dec-osf*) frags="${frags} dec-osf.ml";;
33 *-*-hpux*) frags="${frags} hpux.ml" ;;
34 *-*-irix[56]*) frags="${frags} irix5.ml" ;;
35 *-*-linux*aout*) ;;
36 *-*-linux*) frags="${frags} linux.ml" ;;
37 *-*-sysv4*) frags="${frags} elf.ml" ;;
38 *-*-solaris*) frags="${frags} sol2shm.ml" ;;
39 *-*-sunos4*) frags="${frags} sunos4.ml" ;;
40 *-*-aix*) frags="${frags} aix.ml" ;;
41 esac
42fi
43
e693cc28
UD
44# Make sure the right flags are defined for multi-threading.
45case "${target}" in
93ad003a
FS
46 alpha*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
47 powerpc*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
48 *-*-linux-gnu) frags="${frags} linux.mt" ;;
49 m68k-motorola-sysv) frags="${frags} delta.mt" ;;
e693cc28
UD
50esac
51
6599da04
JM
52for frag in ${frags}; do
53 frag=${srcdir}/config/$frag
54 if [ -f ${frag} ]; then
55 echo "Appending ${frag} to target-mkfrag"
56 echo "# Following fragment copied from ${frag}" >> temp.mt
57 cat ${frag} >> temp.mt
58 fi
59done
60
61target_makefile_frag=target-mkfrag
62${moveifchange} temp.mt target-mkfrag
63
64LIBDIR=yes
65TO_TOPDIR=../
66ALL='libs'
67XCXXINCLUDES="-I${srcdir} -I${srcdir}/stl -I${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio"
68MOSTLYCLEAN='*.o pic stamp-picdir core so_locations $(MOSTLYCLEAN_JUNK)'
69CLEAN='$(CLEAN_JUNK)'
70EXTRA_DISTCLEAN='target-mkfrag'
71
72(. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag}
73
74# post-target:
75
76# If cross-compiling, 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.05555 seconds and 5 git commands to generate.