[ include/opcode/ChangeLog ]
[deliverable/binutils-gdb.git] / libiberty / config.table
CommitLineData
252b5132
RH
1case "${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 ;;
e2eaf477 7 i370-*-opened*) frag=mh-openedition ;;
252b5132 8 i[345]86-*-windows*) frag=mh-windows ;;
252b5132
RH
9esac
10
11frags=$frag
12
13# If they didn't specify --enable-shared, don't generate shared libs.
14case "${enable_shared}" in
15 yes) shared=yes ;;
16 no) shared=no ;;
17 "") shared=no ;;
18 *) shared=yes ;;
19esac
20if [ "${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" ;;
eb383413 29 sparc*-*-*) frags="${frags} ../../config/mh-sparcpic" ;;
252b5132
RH
30 *-*-*) frags="${frags} ../../config/mh-${host_cpu}pic" ;;
31 esac
32fi
33
34echo "# Warning: this fragment is automatically generated" > temp-frag
35
36for frag in ${frags}; do
37 case ${frag} in
38 ../* )
39 if [ ${srcdir} = . ]; then
40 [ -n "${with_target_subdir}" ] && frag=../${frag}
41 [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
42 fi
43 ;;
44 esac
45 frag=${srcdir}/${xsrcdir}config/$frag
46 if [ -f ${frag} ]; then
47 echo "Appending ${frag} to xhost-mkfrag"
48 echo "# Following fragment copied from ${frag}" >> temp-frag
49 cat ${frag} >> temp-frag
50 fi
51done
52
53# record if we want to build shared libs.
54if [ "${shared}" = "yes" ]; then
55 echo enable_shared = yes >> temp-frag
56else
57 echo enable_shared = no >> temp-frag
58fi
59
60frag=xhost-mkfrag
e2eaf477 61${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
This page took 0.14172 seconds and 4 git commands to generate.