This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
3635dd72dc55c5e3939b39d489efe6e280b02d2e
[perl5.git] / myconfig.SH
1 case $PERL_CONFIG_SH in
2 '')
3         if test -f config.sh; then TOP=.;
4         elif test -f ../config.sh; then TOP=..;
5         elif test -f ../../config.sh; then TOP=../..;
6         elif test -f ../../../config.sh; then TOP=../../..;
7         elif test -f ../../../../config.sh; then TOP=../../../..;
8         else
9             echo "Can't find the perl config.sh file produced by Configure"; 
10             exit 1
11         fi
12         . $TOP/config.sh
13         ;;
14 esac
15 if $test "$PERL_PATCHLEVEL" -gt 0 ; then
16     patchlevel=" patchlevel $PERL_PATCHLEVEL"
17 else
18     patchlevel=""
19 fi
20 : This forces SH files to create target in same directory as SH file.
21 : This is so that make depend always knows where to find SH derivatives.
22 case "$0" in
23 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
24 esac
25 echo "Extracting myconfig (with variable substitutions)"
26 $spitshell >myconfig <<!GROK!THIS!
27 $startsh
28
29 # This script is designed to provide a handy summary of the configuration
30 # information being used to build perl. This is especially useful if you
31 # are requesting help from comp.lang.perl.misc on usenet or via mail.
32
33 # Note that the text lines /^Summary of/ .. /^\s*$/ are copied into Config.pm.
34 cat <<'!NO!SUBS!'
35 Summary of my $package (revision $baserev version $PERL_VERSION subversion $PERL_SUBVERSION$patchlevel) configuration:
36   Platform:
37     osname=$osname, osvers=$osvers, archname=$archname
38     uname='$myuname'
39     config_args='$config_args'
40     hint=$hint, useposix=$useposix, d_sigaction=$d_sigaction
41     usethreads=$usethreads use5005threads=$use5005threads useithreads=$useithreads usemultiplicity=$usemultiplicity
42     useperlio=$useperlio d_sfio=$d_sfio uselargefiles=$uselargefiles usesocks=$usesocks
43     use64bitint=$use64bitint use64bitall=$use64bitall uselongdouble=$uselongdouble
44   Compiler:
45     cc='$cc', ccflags ='$ccflags',
46     optimize='$optimize',
47     cppflags='$cppflags'
48     ccversion='$ccversion', gccversion='$gccversion', gccosandvers='$gccosandvers'
49     intsize=$intsize, longsize=$longsize, ptrsize=$ptrsize, doublesize=$doublesize, byteorder=$byteorder
50     d_longlong=$d_longlong, longlongsize=$longlongsize, d_longdbl=$d_longdbl, longdblsize=$longdblsize
51     ivtype='$ivtype', ivsize=$ivsize, nvtype='$nvtype', nvsize=$nvsize, Off_t='$lseektype', lseeksize=$lseeksize
52     alignbytes=$alignbytes, usemymalloc=$usemymalloc, prototype=$prototype
53   Linker and Libraries:
54     ld='$ld', ldflags ='$ldflags'
55     libpth=$libpth
56     libs=$libs
57     perllibs=$perllibs
58     libc=$libc, so=$so, useshrplib=$useshrplib, libperl=$libperl
59   Dynamic Linking:
60     dlsrc=$dlsrc, dlext=$dlext, d_dlsymun=$d_dlsymun, ccdlflags='$ccdlflags'
61     cccdlflags='$cccdlflags', lddlflags='$lddlflags'
62
63 !NO!SUBS!
64 !GROK!THIS!
65 chmod 755 myconfig
66 $eunicefix myconfig