home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 7
/
FreshFishVol7.bin
/
bbs
/
gnu
/
m4-1.2-src.lha
/
GNU
/
src
/
amiga
/
m4-1.2
/
aclocal.m4
< prev
next >
Wrap
M4 Source File
|
1994-07-02
|
741b
|
30 lines
dnl Local additions to Autoconf macros.
dnl Copyright (C) 1992, 1994 Free Software Foundation, Inc.
dnl Francois Pinard <pinard@iro.umontreal.ca>, 1992.
dnl
dnl
dnl Check for function prototypes.
dnl With ideas from Brook G. Milligan <brook@trillium.botany.utexas.edu>.
dnl
define(AC_PROTOTYPES,
[AC_COMPILE_CHECK([function prototypes],
[#ifndef __STDC__
KaBoom!
#endif],
[extern int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};],
AC_DEFINE(PROTOTYPES),
U=_
AC_VERBOSE(setting U to _)
)AC_SUBST(U)])dnl
dnl
dnl
define(AC_VARLENGTH_ARRAYS,
[echo checking for variable length arrays
AC_TEST_PROGRAM(
[f (n) int n; {int array[n];}
main () {f (7); exit(0);}],
AC_DEFINE(HAVE_VARLENGTH_ARRAYS)
)])dnl