Dethinko.
[p5sagit/p5-mst-13.2.git] / myconfig.SH
CommitLineData
2000072c 1case $CONFIGDOTSH in
46638470 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 ;;
14esac
15: This forces SH files to create target in same directory as SH file.
16: This is so that make depend always knows where to find SH derivatives.
17case "$0" in
18*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
19esac
20echo "Extracting myconfig (with variable substitutions)"
21$spitshell >myconfig <<!GROK!THIS!
22$startsh
a0d0e21e 23
24# This script is designed to provide a handy summary of the configuration
25# information being used to build perl. This is especially useful if you
b5d6801c 26# are requesting help from comp.lang.perl.misc on usenet or via mail.
a0d0e21e 27
3c81428c 28# Note that the text lines /^Summary of/ .. /^\s*$/ are copied into Config.pm.
46638470 29cat <<'!NO!SUBS!'
cceca5ed 30Summary of my $package (revision $baserev version $PERL_VERSION subversion $PERL_SUBVERSION) configuration:
a0d0e21e 31 Platform:
365675d5 32 osname=$osname, osvers=$osvers, archname=$archname
a0d0e21e 33 uname='$myuname'
4c8f623d 34 config_args='$config_args'
ca29cf18 35 hint=$hint, useposix=$useposix, d_sigaction=$d_sigaction
693762b4 36 usethreads=$usethreads useperlio=$useperlio d_sfio=$d_sfio
cf0d5662 37 use64bits=$use64bits usemultiplicity=$usemultiplicity
a0d0e21e 38 Compiler:
3c81428c 39 cc='$cc', optimize='$optimize', gccversion=$gccversion
a0d0e21e 40 cppflags='$cppflags'
41 ccflags ='$ccflags'
a0d0e21e 42 stdchar='$stdchar', d_stdstdio=$d_stdstdio, usevfork=$usevfork
cb66d7b2 43 intsize=$intsize, longsize=$longsize, ptrsize=$ptrsize, doublesize=$doublesize
dc45a647 44 d_longlong=$d_longlong, longlongsize=$longlongsize, d_longdbl=$d_longdbl, longdblsize=$longdblsize
cb66d7b2 45 alignbytes=$alignbytes, usemymalloc=$usemymalloc, prototype=$prototype
3c81428c 46 Linker and Libraries:
47 ld='$ld', ldflags ='$ldflags'
a0d0e21e 48 libpth=$libpth
49 libs=$libs
dc45a647 50 libc=$libc, so=$so, useshrplib=$useshrplib, libperl=$libperl
a0d0e21e 51 Dynamic Linking:
3c81428c 52 dlsrc=$dlsrc, dlext=$dlext, d_dlsymun=$d_dlsymun, ccdlflags='$ccdlflags'
53 cccdlflags='$cccdlflags', lddlflags='$lddlflags'
a1896f58 54
46638470 55!NO!SUBS!
a0d0e21e 56!GROK!THIS!
46638470 57chmod 755 myconfig
58$eunicefix myconfig