Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | case "${host}" in |
2 | rs6000-ibm-aix3.1 | rs6000-ibm-aix) | |
3 | frag=mh-aix ;; | |
4 | *-*-cxux7*) frag=mh-cxux7 ;; | |
5 | *-*-freebsd2.1.*) frag=mh-fbsd21 ;; | |
6 | *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;; | |
7 | i[345]86-*-windows*) frag=mh-windows ;; | |
8 | *-*-beos*) frag=mh-beos ;; | |
9 | esac | |
10 | ||
11 | frags=$frag | |
12 | ||
13 | # If they didn't specify --enable-shared, don't generate shared libs. | |
14 | case "${enable_shared}" in | |
15 | yes) shared=yes ;; | |
16 | no) shared=no ;; | |
17 | "") shared=no ;; | |
18 | *) shared=yes ;; | |
19 | esac | |
20 | if [ "${shared}" = "yes" ]; then | |
21 | case "${host}" in | |
22 | *-*-cygwin*) ;; | |
23 | alpha*-*-linux*) frags="${frags} ../../config/mh-elfalphapic" ;; | |
24 | arm*-*-*) frags="${frags} ../../config/mh-armpic" ;; | |
25 | hppa*-*-*) frags="${frags} ../../config/mh-papic" ;; | |
26 | i[3456]86-*-*) frags="${frags} ../../config/mh-x86pic" ;; | |
27 | powerpc*-*-aix*) ;; | |
28 | powerpc*-*-*) frags="${frags} ../../config/mh-ppcpic" ;; | |
29 | *-*-*) frags="${frags} ../../config/mh-${host_cpu}pic" ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | echo "# Warning: this fragment is automatically generated" > temp-frag | |
34 | ||
35 | for frag in ${frags}; do | |
36 | case ${frag} in | |
37 | ../* ) | |
38 | if [ ${srcdir} = . ]; then | |
39 | [ -n "${with_target_subdir}" ] && frag=../${frag} | |
40 | [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag} | |
41 | fi | |
42 | ;; | |
43 | esac | |
44 | frag=${srcdir}/${xsrcdir}config/$frag | |
45 | if [ -f ${frag} ]; then | |
46 | echo "Appending ${frag} to xhost-mkfrag" | |
47 | echo "# Following fragment copied from ${frag}" >> temp-frag | |
48 | cat ${frag} >> temp-frag | |
49 | fi | |
50 | done | |
51 | ||
52 | # record if we want to build shared libs. | |
53 | if [ "${shared}" = "yes" ]; then | |
54 | echo enable_shared = yes >> temp-frag | |
55 | else | |
56 | echo enable_shared = no >> temp-frag | |
57 | fi | |
58 | ||
59 | frag=xhost-mkfrag | |
60 | ${CONFIG_SHELL} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag |