Patch to Build Dynamic-Lib (DLL) version of perl using gnuwin32 b17.1
[p5sagit/p5-mst-13.2.git] / hints / amigaos.sh
index 28a95c0..4108c2e 100644 (file)
@@ -17,6 +17,10 @@ d_fork='undef'
 d_vfork='define'
 groupstype='int'
 
+# the following is needed to prevent pdksh from blowing up
+
+i_neterrno='undef'
+
 # libs
 
 libpth="$prefix/lib /local/lib"
@@ -49,6 +53,9 @@ optimize='-O2 -fomit-frame-pointer'
 # ccdlflags='none'
 # lddlflags='-oformat a.out-amiga -r'
 
+# When AmigaOS runs a script with "#!", it sets argv[0] to the script name.
+toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"'
+
 # Avoid telldir prototype conflict in pp_sys.c  (AmigaOS uses const DIR *)
 # Configure should test for this.  Volunteers?
 pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'