From: Roca, Ignasi Date: Fri, 12 Jan 2001 14:37:55 +0000 (+0100) Subject: updates to posix-bc hints file X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a7a44c04f9132346a317c7cf28ce8da3a385d7c5;p=p5sagit%2Fp5-mst-13.2.git updates to posix-bc hints file Message-ID: <5930DC161690D21196670090271575470384E3FC@madt009a.siemens.es> p4raw-id: //depot/perl@8412 --- diff --git a/hints/posix-bc.sh b/hints/posix-bc.sh index 2e46b8c..5c45832 100644 --- a/hints/posix-bc.sh +++ b/hints/posix-bc.sh @@ -7,11 +7,43 @@ # # To get ANSI C, we need to use c89, and ld does not exist -cc='c89' -ld='c89' +# You can override this with Configure -Dcc=gcc -Dld=ld. +case "$cc" in +'') cc='c89' ;; +esac +case "$ld" in +'') ld='c89' ;; +esac # C-Flags: -ccflags='-K enum_long,llm_case_lower,llm_keep,no_integer_overflow -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE_EXTENDED' +# -DPOSIX_BC +# -DUSE_PURE_BISON +# -D_XOPEN_SOURCE_EXTENDED alters system headers. +# Prepend your favorites with Configure -Dccflags=your_favorites +case "$ccflags" in +'') ccflags='-K enum_long,llm_case_lower,llm_keep,no_integer_overflow -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE_EXTENDED' ;; +*) ccflags='$ccflags -Kenum_long,llm_case_lower,llm_keep,no_integer_overflow -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE_EXTENDED' ;; +esac + +# ccdlflags have yet to be determined. +#case "$ccdlflags" in +#'') ccdlflags='-c' ;; +#esac + +# cccdlflags have yet to be determined. +#case "$cccdlflags" in +#'') cccdlflags='' ;; +#esac + +# ldflags have yet to be determined. +#case "$ldflags" in +#'') ldflags='' ;; +#esac + +# lddlflags have yet to be determined. +#case "$lddlflags" in +#'') lddlflags='' ;; +#esac # Flags on a RISC-Host (SUNRISE): if [ -n "`bs2cmd SHOW-SYSTEM-INFO | egrep 'HSI-ATT.*TYPE.*SR'`" ]; then @@ -23,20 +55,47 @@ if [ -n "`bs2cmd SHOW-SYSTEM-INFO | egrep 'HSI-ATT.*TYPE.*SR'`" ]; then fi # Turning on optimization breaks perl (CORE-DUMP): -optimize='none' +# You can override this with Configure -Doptimize='-O' or somesuch. +case "$optimize" in +'') optimize='none' ;; +esac # we don''t use dynamic memorys (yet): -so='none' -usedl='no' -dlext='none' +case "$so" in +'') so='none' ;; +esac + +case "$usemymalloc" in +'') usemymalloc='n' ;; +esac # On BS2000/Posix, libc.a does not really hold anything at all, # so running nm on it is pretty useless. -usenm='no' - -# other Options: - -usemymalloc='no' +# You can override this with Configure -Dusenm. +case "$usenm" in +'') usenm='false' ;; +esac -archobjs=ebcdic.o +# Dynamic loading doesn't work on OS/390 quite yet. +# You can override this with +# Configure -Dusedl -Ddlext=.so -Ddlsrc=dl_dllload.xs. +case "$usedl" in +'') usedl='n' ;; +esac +case "$dlext" in +'') dlext='none' ;; +esac +#case "$dlsrc" in +#'') dlsrc='none' ;; +#esac +#case "$ldlibpthname" in +#'') ldlibpthname=LIBPATH ;; +#esac +# Architecture related object files. +# ebcdic.c contains special \cX mapping code for EBCDIC char sets. +# Prepend your preference with Configure -Darchobs=your_preference.o. +case "$archname" in +'') archobjs="ebcdic.o" ;; +*) archobjs="$archobjs ebcdic.o" ;; +esac