perly.h: perly.y
-@sh -c true
+SYM = global.sym interp.sym compat3.sym
+
+SYMH = perlvars.h thrdvar.h
+
# The following files are generated automatically
# keywords.h: keywords.pl
# opcode.h: opcode.pl
config.h: config_h.SH config.sh
$(SHELL) config_h.SH
-perl.exp: perl_exp.SH config.sh
+# This is an AIXism.
+perl.exp: perl_exp.SH config.sh $(SYM) $(SYMH)
$(SHELL) perl_exp.SH
# When done, touch perlmain.c so that it doesn't get remade each time.
#define boot_core_UNIVERSAL Perl_boot_core_UNIVERSAL
#define bor_amg Perl_bor_amg
#define bxor_amg Perl_bxor_amg
+#define byterun Perl_byterun
#define call_list Perl_call_list
#define cando Perl_cando
#define cast_ulong Perl_cast_ulong
# reading from a NULL pointer causes a SEGV.
ccflags="$ccflags -D_HPUX_SOURCE"
-# If you plan to use gcc, then you should uncomment the following line
-# so you get the HP math library and not the GCC math library.
-# ccflags="$ccflags -L/lib/pa1.1"
-
# Check if you're using the bundled C compiler. This compiler doesn't support
# ANSI C (the -Aa flag) nor can it produce shared libraries. Thus we have
# to turn off dynamic loading.
;;
esac
+# Even if you use gcc, prefer the HP math library over the GNU one.
+
+case "`$cc -v 2>&1`" in
+"*gcc*" ) test -d /lib/pa1.1 && ccflags="$ccflags -L/lib/pa1.1" ;;
+esac
+
# Determine the architecture type of this system.
# Keep leading tab below -- Configure Black Magic -- RAM, 03/02/97
xxOsRevMajor=`uname -r | sed -e 's/^[^0-9]*//' | cut -d. -f1`;