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