diff options
author | Andy Dougherty <doughera@lafayette.edu> | 1998-06-08 10:45:36 -0400 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-06-10 05:52:05 +0000 |
commit | aebf16e7cdbc86ec766bcfc2294cc17a0e67dc15 (patch) | |
tree | 987d954b0b07ce46e70cfd66e26d155cf4f9f6d4 /Configure | |
parent | 5d582a372c85360bc6ffdf3733896719312079e2 (diff) | |
download | perl-aebf16e7cdbc86ec766bcfc2294cc17a0e67dc15.tar.gz |
Config_66-01
Message-Id: <Pine.SUN.3.96.980608144437.13972A-100000@newton.phys>
p4raw-id: //depot/perl@1087
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 40 |
1 files changed, 29 insertions, 11 deletions
@@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Thu May 28 12:01:39 EDT 1998 [metaconfig 3.0 PL70] +# Generated on Mon Jun 8 12:04:14 EDT 1998 [metaconfig 3.0 PL70] cat >/tmp/c1$$ <<EOF ARGGGHHHH!!!!! @@ -140,7 +140,7 @@ esac : Configure runs within the UU subdirectory test -d UU || mkdir UU -CDPATH='' +CDPATH='.' cd UU && rm -f ./* dynamic_ext='' @@ -375,7 +375,6 @@ d_memmove='' d_memset='' d_mkdir='' d_mkfifo='' -d_mkstemp='' d_mktime='' d_msg='' d_msgctl='' @@ -921,6 +920,23 @@ else fi rm -f try + +: Save command line options in file UU/cmdline.opt for later use in +: generating config.sh. +cat > cmdline.opt <<EOSH +# Configure command line arguments. +config_arg0='$0' +config_args='$*' +config_argc=$# +EOSH +argn=1 +for arg in "$@"; do + cat >>cmdline.opt <<EOSH +config_arg$argn='$arg' +EOSH + argn=`expr $argn + 1` +done + : produce awk script to parse command line options cat >options.awk <<'EOF' BEGIN { @@ -4024,15 +4040,19 @@ $cc $optimize $ccflags $ldflags -o ${mc_file} $* ${mc_file}.c $libs;' echo " " echo "Checking for GNU C Library..." >&4 cat >gnulibc.c <<EOM +#include <stdio.h> int main() { - return __libc_main(); +#ifdef __GLIBC__ + exit(0); +#else + exit(1); +#endif } EOM set gnulibc -if eval $compile && \ - ./gnulibc | $contains '^GNU C Library'; then +if eval $compile_ok && ./gnulibc; then val="$define" echo "You are using the GNU C Library" else @@ -7364,10 +7384,6 @@ eval $inlibc set mkfifo d_mkfifo eval $inlibc -: see if mkstemp exists -set mkstemp d_mkstemp -eval $inlibc - : see if mktime exists set mktime d_mktime eval $inlibc @@ -11254,7 +11270,6 @@ d_memmove='$d_memmove' d_memset='$d_memset' d_mkdir='$d_mkdir' d_mkfifo='$d_mkfifo' -d_mkstemp='$d_mkstemp' d_mktime='$d_mktime' d_msg='$d_msg' d_msgctl='$d_msgctl' @@ -11643,6 +11658,9 @@ zcat='$zcat' zip='$zip' EOT +: Add in command line options if available +$test -f UU/cmdline.opt && $cat UU/cmdline.opt >> config.sh + : add special variables $test -f $src/patchlevel.h && \ awk '/^#define/ {printf "%s=%s\n",$2,$3}' $src/patchlevel.h >>config.sh |