home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / perl560.zip / hints / isc_2.sh < prev    next >
Text File  |  1999-07-20  |  632b  |  26 lines

  1. #  isc_2.sh
  2. #  Interactive Unix Version 2.2
  3. #  Compile perl entirely in posix mode. 
  4. #  Andy Dougherty        doughera@lafcol.lafayette.edu
  5. #  Wed Oct  5 15:57:37 EDT 1994
  6. #
  7. # Use Configure -Dcc=gcc to use gcc
  8. #
  9. set `echo X "$libswanted "| sed -e 's/ c / /'`
  10. shift
  11. libswanted="$*"
  12. case "$cc" in
  13. *gcc*)    ccflags="$ccflags -posix"
  14.     ldflags="$ldflags -posix"
  15.     ;;
  16. *)    ccflags="$ccflags -Xp -D_POSIX_SOURCE"
  17.     ldflags="$ldflags -Xp"
  18.         ;;
  19. esac
  20. # Compensate for conflicts in <net/errno.h>
  21. doio_cflags='ccflags="$ccflags -DENOTSOCK=103"'
  22. pp_sys_cflags='ccflags="$ccflags -DENOTSOCK=103"'
  23.  
  24. # for ext/IPC/SysV/SysV.xs
  25. ccflags="$ccflags -DPERL_ISC"
  26.