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
77 dnl Override Autoconf's PATH_SEPARATOR check
78 dnl -------------------------------------------------
79 dnl This is done to ensure that the same check is
80 dnl used across different Autoconf versions and to
81 dnl allow us to use this macro early enough in the
84 m4_defun([_AS_PATH_SEPARATOR_PREPARE],
85 [CURL_CHECK_PATH_SEPARATOR
88 m4_defun([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
89 [CURL_CHECK_PATH_SEPARATOR
92 dnl Override Autoconf's AC_CONFIG_MACRO_DIR (DIR)
93 dnl -------------------------------------------------
94 dnl This is an emulation of Autoconf's 2.61 macro.
95 dnl This is done to use fixed macro across Autoconf
96 dnl versions, and avoid warnings from modern libtool
97 dnl which traces usage of this macro.
99 AC_DEFUN([AC_CONFIG_MACRO_DIR],[:])