1 | ## ------------------------------- ##
|
---|
2 | ## Check for function prototypes. ##
|
---|
3 | ## From Franc,ois Pinard ##
|
---|
4 | ## ------------------------------- ##
|
---|
5 |
|
---|
6 | # Copyright 1996, 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
|
---|
7 |
|
---|
8 | # This program is free software; you can redistribute it and/or modify
|
---|
9 | # it under the terms of the GNU General Public License as published by
|
---|
10 | # the Free Software Foundation; either version 2, or (at your option)
|
---|
11 | # any later version.
|
---|
12 |
|
---|
13 | # This program is distributed in the hope that it will be useful,
|
---|
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
16 | # GNU General Public License for more details.
|
---|
17 |
|
---|
18 | # You should have received a copy of the GNU General Public License
|
---|
19 | # along with this program; if not, write to the Free Software
|
---|
20 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
---|
21 | # 02111-1307, USA.
|
---|
22 |
|
---|
23 | # serial 2
|
---|
24 |
|
---|
25 | AC_DEFUN([AM_C_PROTOTYPES],
|
---|
26 | [AC_REQUIRE([AM_PROG_CC_STDC])
|
---|
27 | AC_REQUIRE([AC_PROG_CPP])
|
---|
28 | AC_MSG_CHECKING([for function prototypes])
|
---|
29 | if test "$am_cv_prog_cc_stdc" != no; then
|
---|
30 | AC_MSG_RESULT(yes)
|
---|
31 | AC_DEFINE(PROTOTYPES,1,[Define if compiler has function prototypes])
|
---|
32 | U= ANSI2KNR=
|
---|
33 | else
|
---|
34 | AC_MSG_RESULT(no)
|
---|
35 | U=_ ANSI2KNR=./ansi2knr
|
---|
36 | fi
|
---|
37 | # Ensure some checks needed by ansi2knr itself.
|
---|
38 | AC_HEADER_STDC
|
---|
39 | AC_CHECK_HEADERS(string.h)
|
---|
40 | AC_SUBST(U)dnl
|
---|
41 | AC_SUBST(ANSI2KNR)dnl
|
---|
42 | ])
|
---|
43 |
|
---|
44 | AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
|
---|