This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix .gitignore: only ignore 'perl' in root of repo, not U/perl subdir
[metaconfig.git] / U / perl / ansi2knr.U
1 ?RCS: $Id: ansi2knr.U,v 3.0.1.3 1994/05/06 15:11:49 ram Exp $
2 ?RCS:
3 ?RCS: Copyright (c) 1998 Andy Dougherty
4 ?RCS:
5 ?RCS: You may distribute under the terms of either the GNU General Public
6 ?RCS: License or the Artistic License, as specified in the README file.
7 ?RCS:
8 ?MAKE:ansi2knr: prototype +cc +ccflags package
9 ?MAKE:  -pick add $@ %<
10 ?S:ansi2knr:
11 ?S:     This variable is set if the user needs to run ansi2knr.
12 ?S:     Currently, this is not supported, so we just abort.
13 ?S:.
14 ?Y:TOP
15 : Check if ansi2knr is required
16 case "$prototype" in
17 "$define") ;;
18 *)      ansi2knr='ansi2knr'
19         echo " "
20         cat <<EOM >&4
21
22 $me:  FATAL ERROR:
23 This version of $package can only be compiled by a compiler that
24 understands function prototypes.  Unfortunately, your C compiler
25         $cc $ccflags
26 doesn't seem to understand them.  Sorry about that.
27
28 If GNU cc is available for your system, perhaps you could try that instead.
29
30 Eventually, we hope to support building Perl with pre-ANSI compilers.
31 If you would like to help in that effort, please contact <perlbug@perl.org>.
32
33 Aborting Configure now.
34 EOM
35         exit 2
36         ;;
37 esac
38