source: trunk/src/binutils/libiberty/config.table@ 618

Last change on this file since 618 was 610, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.7 KB
Line 
1# Don't build the shared library for build.
2if [ -n "${with_build_subdir}" ]; then
3 enable_shared=no
4fi
5
6frag=
7case "${host}" in
8 rs6000-ibm-aix3.1 | rs6000-ibm-aix)
9 frag=mh-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[345]86-*-windows*) frag=mh-windows ;;
15esac
16
17if [ -n "${frag}" ]; then
18 frags=${libiberty_topdir}/libiberty/config/$frag
19else
20 frags=
21fi
22
23# If they didn't specify --enable-shared, don't generate shared libs.
24case "${enable_shared}" in
25 yes) shared=yes ;;
26 no) shared=no ;;
27 "") shared=no ;;
28 *) shared=yes ;;
29esac
30if [ "${shared}" = "yes" ]; then
31 frag=
32 case "${host}" in
33 *-*-cygwin*) ;;
34 alpha*-*-linux*) frag=mh-elfalphapic ;;
35 arm*-*-*) frag=mh-armpic ;;
36 hppa*-*-*) frag=mh-papic ;;
37 i[3456]86-*-* | x86_64-*-*)
38 frag=mh-x86pic ;;
39 powerpc*-*-aix*) ;;
40 powerpc*-*-*) frag=mh-ppcpic ;;
41 sparc*-*-*) frag=mh-sparcpic ;;
42 s390*-*-*) frag=mh-s390pic ;;
43 *) frag=mh-${host_cpu}pic ;;
44 esac
45 if [ -n "${frag}" ]; then
46 frags="${frags} ${libiberty_topdir}/config/${frag}"
47 fi
48fi
49
50echo "# Warning: this fragment is automatically generated" > temp-frag
51
52for 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
57 fi
58done
59
60# record if we want to build shared libs.
61if [ "${shared}" = "yes" ]; then
62 echo enable_shared = yes >> temp-frag
63else
64 echo enable_shared = no >> temp-frag
65fi
66
67frag=xhost-mkfrag
68${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
Note: See TracBrowser for help on using the repository browser.