1 # Don't build the shared library for build.
2 if [ -n "${with_build_subdir}" ]; then
8 rs6000-ibm-aix3.1 | rs6000-ibm-aix)
10 *-*-cxux7*) frag=mh-cxux7 ;;
11 *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
12 *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
13 i370-*-opened*) frag=mh-openedition ;;
14 i[34567]86-*-windows*) frag=mh-windows ;;
17 if [ -n "${frag}" ]; then
18 frags=${libiberty_topdir}/libiberty/config/$frag
23 # If they didn't specify --enable-shared, don't generate shared libs.
24 case "${enable_shared}" in
30 if [ "${shared}" = "yes" ]; then
34 alpha*-*-linux*) frag=mh-elfalphapic ;;
35 arm*-*-*) frag=mh-armpic ;;
36 hppa*-*-*) frag=mh-papic ;;
37 i[34567]86-*-* | x86_64-*-*)
40 powerpc*-*-*) frag=mh-ppcpic ;;
41 sparc*-*-*) frag=mh-sparcpic ;;
42 s390*-*-*) frag=mh-s390pic ;;
43 *) frag=mh-${host_cpu}pic ;;
45 if [ -n "${frag}" ]; then
46 frags="${frags} ${libiberty_topdir}/config/${frag}"
50 echo "# Warning: this fragment is automatically generated" > temp-frag
52 for frag in ${frags}; do
53 if [ -f ${frag} ]; then
54 echo "Appending ${frag} to xhost-mkfrag"
55 echo "# Following fragment copied from ${frag}" >> temp-frag
56 cat ${frag} >> temp-frag
60 # record if we want to build shared libs.
61 if [ "${shared}" = "yes" ]; then
62 echo enable_shared = yes >> temp-frag
64 echo enable_shared = no >> temp-frag
68 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag