2 # cygwin.sh - hints for building perl using the Cygwin environment for Win32
4 # Many of these inflexible settings should be changed to allow command-
5 # line overrides and allow for variations in local set-ups.
6 # I have made first guesses at some of these, but would welcome
7 # corrections from someone actually using Cygwin.
8 # Andy Dougherty <doughera@lafayette.edu> Tue Sep 28 12:39:38 EDT 1999
12 # work around case-insensitive file names
13 firstmakefile='GNUmakefile'
18 test -z "$cc" && cc='gcc'
19 libpth='/usr/i586-cygwin32/lib /usr/lib /usr/local/lib'
21 libs='-lcygwin -lm -lkernel32'
23 # Is -I/usr/include *really* needed?
24 # Is -I/usr/local/include *really* needed? I thought gcc always looked there.
25 ccflags="$ccflags -DCYGWIN -I/usr/include -I/usr/local/include"
26 # Is -L/usr/lib *really* needed?
27 ldflags="$ldflags -L/usr/i586-cygwin32/lib -L/usr/lib -L/usr/local/lib"
28 test -z "$usemymalloc" && usemymalloc='n'
32 # Is -L/usr/local/lib *really* needed?
33 lddlflags="$lddlflags -L/usr/local/lib"
39 # What if they aren't using $prefix=/usr/local ??
40 # Why is this needed at all? Doesn't Configure suggest this?
41 test -z "$man1dir" && man1dir=/usr/local/man/man1
42 test -z "$man3dir" && man3dir=/usr/local/man/man3
44 case "$ldlibpthname" in
45 '') ldlibpthname=PATH ;;