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