home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Source / GNU / perl / Perl / hints / epix.sh < prev    next >
Encoding:
Text File  |  1995-06-05  |  2.9 KB  |  76 lines

  1. # epix.sh
  2. # Hint file for EP/IX on CDC RISC boxes.
  3. #
  4. # From: Stanley Donald Capelik <sd9sdc@hp100.den.mmc.com>
  5. # Modified by Andy Dougherty   <doughera@lafcol.lafayette.edu>
  6. # Last modified:  Mon May  8 15:29:18 EDT 1995
  7. #
  8. #  This hint file appears to be based on the svr4 hints for perl5.000,
  9. #  with some CDC-specific additions.  I've tried to updated it to
  10. #  match the 5.001 svr4 hints, which allow for dynamic loading,
  11. #  but I have no way of testing the resulting file.
  12. #
  13. #  There were also some contradictions that I've tried to straighten
  14. #  out, but I'm not sure I got them all right.
  15. #
  16. # Edit config.sh to change shmattype from 'char *' to 'void *'"
  17.  
  18. # Use Configure -Dcc=gcc to use gcc.
  19. case "$cc" in
  20. '') cc='/bin/cc3.11'
  21.     test -f $cc || cc='/usr/ccs/bin/cc'
  22.     ;;
  23. esac
  24.  
  25. usrinc='/svr4/usr/include'
  26.  
  27. # Various things that Configure apparently doesn't get right.
  28. strings='/svr4/usr/include/string.h'
  29. timeincl='/svr4/usr/include/sys/time.h '
  30. libc='/svr4/usr/lib/libc.a'
  31. libpth='/svr4/usr/lib /svr4/usr/lib/cmplrs/cc /usr/ccs/lib /svr4/lib /svr4/usr/ucblib'
  32. osname='epix2'
  33. archname='epix2'
  34. d_suidsafe='define'    # "./Configure -d" can't figure this out easilly
  35. d_flock='undef'
  36.  
  37. # Old version had this, but I'm not sure why since the old version
  38. # also mucked around with libswanted.  This is also definitely wrong
  39. # if the user is trying to use DB_File or GDBM_File.
  40. # libs='-lsocket -lnsl -ldbm -ldl -lc -lcrypt -lm -lucb'
  41.  
  42. # We include support for using libraries in /usr/ucblib, but the setting
  43. # of libswanted excludes some libraries found there.  You may want to
  44. # prevent "ucb" from being removed from libswanted and see if perl will
  45. # build on your system.
  46. ldflags='-non_shared -systype svr4 -L/svr4/usr/lib -L/svr4/usr/lib/cmplrs/cc -L/usr/ccs/lib -L/svr4/usr/ucblib'
  47. ccflags='-systype svr4 -D__STDC__=0 -I/svr4/usr/include -I/svr4/usr/ucbinclude'
  48. cppflags='-D__STDC__=0 -I/svr4/usr/include -I/svr4/usr/ucbinclude'
  49.  
  50. # Don't use problematic libraries:
  51.  
  52. libswanted=`echo " $libswanted " | sed -e 's/ malloc / /'` # -e 's/ ucb / /'`
  53. # libmalloc.a - Probably using Perl's malloc() anyway.
  54. # libucb.a - Remove it if you have problems ld'ing.  We include it because
  55. #   it is needed for ODBM_File and NDBM_File extensions.
  56. if [ -r /usr/ucblib/libucb.a ]; then    # If using BSD-compat. library:
  57.     # Use the "native" counterparts, not the BSD emulation stuff:
  58.     d_bcmp='undef'; d_bcopy='undef'; d_bzero='undef'; d_safebcpy='undef'
  59.     d_index='undef'; d_killpg='undef'; d_getprior='undef'; d_setprior='undef'
  60.     d_setlinebuf='undef'; d_setregid='undef'; d_setreuid='undef'
  61. fi
  62.  
  63. lddlflags="-G $ldflags"    # Probably needed for dynamic loading
  64. # We _do_ want the -L paths in ldflags, but we don't want the -non_shared.
  65. lddlflags=`echo $lddlflags | sed 's/-non_shared//'`
  66.  
  67. cat <<'EOM' >&4
  68.  
  69. If you wish to use dynamic linking, you must use 
  70.     LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH
  71. or
  72.     setenv LD_LIBRARY_PATH `pwd`
  73. before running make.
  74.  
  75. EOM
  76.