OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [gdb-5.3/] [libiberty/] [config.table] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
# Don't build the shared library for build.
2
if [ -n "${with_build_subdir}" ]; then
3
  enable_shared=no
4
fi
5
 
6
frag=
7
case "${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 ;;
15
esac
16
 
17
if [ -n "${frag}" ]; then
18
  frags=${libiberty_topdir}/libiberty/config/$frag
19
else
20
  frags=
21
fi
22
 
23
# If they didn't specify --enable-shared, don't generate shared libs.
24
case "${enable_shared}" in
25
  yes) shared=yes ;;
26
  no) shared=no ;;
27
  "") shared=no ;;
28
  *) shared=yes ;;
29
esac
30
if [ "${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
    *)                  frag=mh-${host_cpu}pic ;;
43
  esac
44
  if [ -n "${frag}" ]; then
45
    frags="${frags} ${libiberty_topdir}/config/${frag}"
46
  fi
47
fi
48
 
49
echo "# Warning: this fragment is automatically generated" > temp-frag
50
 
51
for frag in ${frags}; do
52
  if [ -f ${frag} ]; then
53
    echo "Appending ${frag} to xhost-mkfrag"
54
    echo "# Following fragment copied from ${frag}" >> temp-frag
55
    cat ${frag} >> temp-frag
56
  fi
57
done
58
 
59
# record if we want to build shared libs.
60
if [ "${shared}" = "yes" ]; then
61
  echo enable_shared = yes >> temp-frag
62
else
63
  echo enable_shared = no >> temp-frag
64
fi
65
 
66
frag=xhost-mkfrag
67
${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.