This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Faster feature checks
[perl5.git] / Porting / mksample
CommitLineData
9f8eb2ef
DH
1#!/bin/sh
2#
3# This script can be used to keep Porting/config_H (which is an example
4# config.h) up-to-date with the latest Configure.
5
6# Original author: Andy Dougherty July 14, 1998
7
8rm -f config.sh Policy.sh
9cat >Policy.sh <<'EOP'
10libswanted="cl pthread $libswanted"
11EOP
12
13sh ./Configure -Dprefix=/opt/perl \
14 -Dcf_by='yourname' \
15 -Dcf_email='yourname@yourhost.yourplace.com' \
16 -Dperladmin='yourname@yourhost.yourplace.com' \
17 -Dmydomain='.yourplace.com' \
18 -Dmyhostname='yourhost' \
19 -Duse64bitint \
20 -Dusedevel \
21 -dE
22test $? = 0 || exit 1
23chmod u+w Porting Porting/config*
24cp config.sh Porting/config.sh
25sh config_h.SH
26cat <<'EOCP' > Porting/config_H
27/* This file (config_H) is a sample config.h file. If you are unable
28 to successfully run Configure, copy this file to config.h and
29 edit it to suit your system.
30*/
31EOCP
32cat config.h >> Porting/config_H
33rm config.sh config.h