This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove trailing whitespace on meta-lines in unit files
[metaconfig.git] / dist / U / warnflags.U
1 ?RCS: $Id: warnflags.U 1 2006-08-24 12:32:52Z rmanfredi $
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
4 ?RCS:
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.0.
10 ?RCS:
11 ?RCS: Orginal Author: Graham Stoney <greyham@research.canon.oz.au>
12 ?RCS:
13 ?RCS: $Log: warnflags.U,v $
14 ?RCS: Revision 3.0  1993/08/18  12:10:02  ram
15 ?RCS: Baseline for dist 3.0 netwide release.
16 ?RCS:
17 ?MAKE:warnflags: cat cc contains Myread Guess Oldconfig Findhdr
18 ?MAKE:  -pick add $@ %<
19 ?S:warnflags:
20 ?S:     This variable contains any additional C compiler flags to generate
21 ?S:     warnings from the compiler. It is up to the Makefile to use this.
22 ?S:.
23 : offer additional warning flags for compilation
24 $cat <<EOH
25
26 You may wish to compile with extra compiler warnings enabled.
27 Note that doing so enhances your chance of receiving your free set of steak
28 knives, particularly if you find any bugs and report them.
29 If you don't want extra warnings, answer "none".
30   
31 EOH
32 case "$warnflags" in
33 '') case "$cc" in
34         *gcc*)
35                 dflt="-Wall -Wno-comment"
36                 if $contains 'fprintf' `./findhdr stdio.h` >/dev/null 2>&1; then
37                         :
38                 else
39                         dflt="$dflt -Wno-implicit"
40                 fi
41                 ;;
42         *) dflt="none";;
43         esac
44         ;;
45 ' ') dflt="none";;
46 *) dflt="$warnflags";;
47 esac
48
49 rp="Any $cc flags to enable warnings?"
50 . ./myread
51 case "$ans" in
52 none) warnflags=' ';;
53 *) warnflags="$ans";;
54 esac
55