home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / amiga / libg++-2.6.2-src.lha / libg++-2.6.2 / libio / configure.in < prev    next >
Encoding:
Text File  |  1994-11-08  |  1.8 KB  |  69 lines

  1. # This file is a shell script fragment that supplies the information
  2. # necessary for a configure script to process the program in
  3. # this directory.  For more information, look at ../configure.
  4.  
  5. configdirs="tests dbz stdio"
  6. srctrigger=libioP.h
  7. srcname="input/output library"
  8. package_makefile_frag=Make.pack
  9.  
  10. # per-host:
  11.  
  12. # per-target:
  13.  
  14. echo "# Warning: this fragment is automatically generated" > temp.mt
  15. frags=
  16.  
  17. case "${target}" in
  18.   *-*-hpux*)       frags=hpux ;;
  19.   *-*-linux*)      frags=linux ;;
  20.   *-*-sco3.2v4*)   frags=sco4 ;;
  21.   *-*-isc*)        frags=isc ;;
  22.   *-*-netware*)    frags=netware ;;
  23.   *-*-*)           frags=${target_cpu}
  24. esac
  25.  
  26. if [ "${enable_shared}" = "yes" ]; then
  27.   case "${target}" in
  28.     hppa*-*-*)       frags="${frags} mt-papic" ;;
  29.     i[345]86-*-*)  frags="${frags} mt-x86pic" ;;
  30.     *-*-*)       frags="${frags} mt-${target_cpu}pic" ;;
  31.   esac
  32. fi
  33.  
  34. for frag in ${frags}; do
  35.   frag=${srcdir}/config/$frag
  36.   if [ -f ${frag} ]; then
  37.     echo "Appending ${frag} to target-mkfrag"
  38.     echo "# Following fragment copied from ${frag}" >> temp.mt
  39.     cat ${frag} >> temp.mt
  40.   fi
  41. done
  42.  
  43. target_makefile_frag=target-mkfrag
  44. ${moveifchange} temp.mt target-mkfrag
  45.  
  46. LIBDIR=yes
  47. TO_TOPDIR=../
  48. ALL='$(_G_CONFIG_H) libio.a libiostream.a $(OSPRIM_OBJECTS)'
  49. CINCLUDES='-I. -I$(srcdir)'
  50. CXXINCLUDES='-I. -I$(srcdir)'
  51. MOSTLYCLEAN='*.o core iostream.list'
  52. CLEAN='_G_config.h *.a'
  53. INFO_FILES=iostream
  54. (. ${srcdir}/config.shared) >${package_makefile_frag}
  55.  
  56. # post-target:
  57.  
  58. # If cross-compiling, don't build gperf or the utils.  They
  59. # will get built by the target compiler, which is confusing.
  60. # We cannot test the installation.  We install in $(tooldir).
  61. if [ ${host} != ${target} ] ; then
  62.     rm -f Makefile.tem
  63.     sed \
  64.     -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
  65.     Makefile >Makefile.tem
  66.     mv -f Makefile.tem Makefile
  67. fi
  68.  
  69.