home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / libg++-2.7.1-base.tgz / libg++-2.7.1-src.tar / fsf / libg++ / libiberty / config.table < prev    next >
Text File  |  1995-08-28  |  2KB  |  74 lines

  1. # This file is used by both libiberty/configure.in and xiberty/configure.in.
  2.  
  3. case "${xhost-${host}}" in
  4.   rs6000-ibm-aix3.1 | rs6000-ibm-aix)
  5.                         frag=mh-aix
  6.             files=${xsrcdir}alloca-botch.h ;;
  7.   *-ibm-aix*)        files=${xsrcdir}alloca-botch.h ;;
  8.   arm-*-riscix*)    frag=mh-riscix ;;
  9.   m68k-apollo-bsd*)    frag=mh-a68bsd ;;
  10.   m68k-apollo-sysv*)    frag=mh-apollo68 ;;
  11.   i[345]86-ncr-sysv4*)    frag=mh-ncr3000 ;;
  12.   *-*-cxux7*)        frag=mh-cxux7 ;;
  13.   *-*-lynxos*)        frag=mh-lynxos ;;
  14.   *-*-dgux*)        frag=mh-sysv ;;
  15.   hppa*-hp-bsd*)    frag=mh-hpbsd ;;
  16.   *-*-hpux*)        frag=mh-hpux ;;
  17.   *-*-hiux*)        frag=mh-hpux ;;
  18.   *-*-irix4*)        frag=mh-irix4 ;;
  19.   *-*-irix*)        frag=mh-sysv ;;
  20.   *-*-m88kbcs*)        frag=mh-sysv ;;
  21.   *-*-solaris2*)    frag=mh-sysv4 ;;
  22.   *-*-sysv4*)        frag=mh-sysv4 ;;
  23.   *-*-sysv*)        frag=mh-sysv ;;
  24.   *-*-go32)        frag=mh-go32 ;;
  25.   i[345]86-*-win32)    frag=mh-i386win32 ;;
  26.  
  27.   *-*-vxworks5*)
  28.     # VxWorks 5 needs special action when it is a target (xiberty),
  29.     # because the usual autoconfiguration scheme does not work.
  30.     if [ x${xhost} = x${target} ]; then
  31.       frag=mt-vxworks5
  32.     fi
  33.     ;;
  34. esac
  35.  
  36. # xiberty sets xhost.  Try to handle funky case of solaris 2 -> sun 4.
  37. case "${target}" in
  38.   sparc-sun-sunos4.1.3)
  39.     if [ "${host}" != "${target}" ] ; then
  40.        frag=mt-sunos4
  41.     fi
  42.   ;;
  43. esac
  44.  
  45. frags=$frag
  46.  
  47. # If they didn't specify --enable-shared, don't generate shared libs.
  48. if [ "${enable_shared}" = "yes" ]; then
  49.   if [ -n "${xhost}" ]; then
  50.     xhost_cpu=${target_cpu}
  51.   else
  52.     xhost_cpu=${host_cpu}
  53.   fi
  54.   case "${xhost-${host}}" in
  55.     hppa*-*-*)      frags="${frags} ../../config/mh-papic" ;;
  56.     i[345]86-*-*) frags="${frags} ../../config/mh-x86pic" ;;
  57.     *-*-*)      frags="${frags} ../../config/mh-${xhost_cpu}pic" ;;
  58.   esac
  59. fi
  60.  
  61. echo "# Warning: this fragment is automatically generated" > temp-frag
  62.  
  63. for frag in ${frags}; do
  64.   frag=${srcdir}/${xsrcdir}config/$frag
  65.   if [ -f ${frag} ]; then
  66.     echo "Appending ${frag} to xhost-mkfrag"
  67.     echo "# Following fragment copied from ${frag}" >> temp-frag
  68.     cat ${frag} >> temp-frag
  69.   fi
  70. done
  71.  
  72. frag=xhost-mkfrag
  73. ${moveifchange} temp-frag xhost-mkfrag
  74.