1 #***************************************************************************
2 #***************************************************************************
4 # File version for 'aclocal' use. Keep it a single number.
7 dnl CURL_OVERRIDE_AUTOCONF
8 dnl -------------------------------------------------
9 dnl Placing a call to this macro in configure.ac after
10 dnl the one to AC_INIT will make macros in this file
11 dnl visible to the rest of the compilation overriding
12 dnl those from Autoconf.
14 AC_DEFUN([CURL_OVERRIDE_AUTOCONF], [
15 AC_BEFORE([$0],[AC_PROG_LIBTOOL])
16 # using curl-override.m4
19 dnl Override Autoconf's AC_LANG_PROGRAM (C)
20 dnl -------------------------------------------------
21 dnl This is done to prevent compiler warning
22 dnl 'function declaration isn't a prototype'
23 dnl in function main. This requires at least
24 dnl a c89 compiler and does not suport K&R.
26 m4_define([AC_LANG_PROGRAM(C)],
35 dnl Override Autoconf's AC_LANG_CALL (C)
36 dnl -------------------------------------------------
37 dnl This is a backport of Autoconf's 2.60 with the
38 dnl embedded comments that hit the resulting script
39 dnl removed. This is done to reduce configure size
40 dnl and use fixed macro across Autoconf versions.
42 m4_define([AC_LANG_CALL(C)],
49 char $2 ();])], [return $2 ();])])
51 dnl Override Autoconf's AC_LANG_FUNC_LINK_TRY (C)
52 dnl -------------------------------------------------
53 dnl This is a backport of Autoconf's 2.60 with the
54 dnl embedded comments that hit the resulting script
55 dnl removed. This is done to reduce configure size
56 dnl and use fixed macro across Autoconf versions.
58 m4_define([AC_LANG_FUNC_LINK_TRY(C)],
61 #define $1 innocuous_$1
72 #if defined __stub_$1 || defined __stub___$1