1
#***************************************************************************
2
# $Id: curl-override.m4,v 1.2 2008-11-18 19:29:31 yangtse Exp $
3
#***************************************************************************
5
# File version for 'aclocal' use. Keep it a single number.
8
dnl CURL_OVERRIDE_AUTOCONF
9
dnl -------------------------------------------------
10
dnl Placing a call to this macro in configure.ac after
11
dnl the one to AC_INIT will make macros in this file
12
dnl visible to the rest of the compilation overriding
13
dnl those from Autoconf.
15
AC_DEFUN([CURL_OVERRIDE_AUTOCONF], [
16
AC_BEFORE([$0],[AC_PROG_LIBTOOL])
17
# using curl-override.m4
20
dnl Override some Libtool tests
21
dnl -------------------------------------------------
22
dnl This is done to prevent Libtool 1.5.X from doing
23
dnl unnecesary C++, Fortran and Java tests and reduce
24
dnl resulting configure script by nearly 300 Kb.
26
m4_define([AC_LIBTOOL_LANG_CXX_CONFIG],[:])
27
m4_define([AC_LIBTOOL_LANG_F77_CONFIG],[:])
28
m4_define([AC_LIBTOOL_LANG_GCJ_CONFIG],[:])
30
dnl Override Autoconf's AC_LANG_PROGRAM (C)
31
dnl -------------------------------------------------
32
dnl This is done to prevent compiler warning
33
dnl 'function declaration isn't a prototype'
34
dnl in function main. This requires at least
35
dnl a c89 compiler and does not suport K&R.
37
m4_define([AC_LANG_PROGRAM(C)],
46
dnl Override Autoconf's AC_LANG_CALL (C)
47
dnl -------------------------------------------------
48
dnl This is a backport of Autoconf's 2.60 with the
49
dnl embedded comments that hit the resulting script
50
dnl removed. This is done to reduce configure size
51
dnl and use fixed macro across Autoconf versions.
53
m4_define([AC_LANG_CALL(C)],
60
char $2 ();])], [return $2 ();])])
62
dnl Override Autoconf's AC_LANG_FUNC_LINK_TRY (C)
63
dnl -------------------------------------------------
64
dnl This is a backport of Autoconf's 2.60 with the
65
dnl embedded comments that hit the resulting script
66
dnl removed. This is done to reduce configure size
67
dnl and use fixed macro across Autoconf versions.
69
m4_define([AC_LANG_FUNC_LINK_TRY(C)],
72
#define $1 innocuous_$1
83
#if defined __stub_$1 || defined __stub___$1
88
dnl Override Autoconf's PATH_SEPARATOR check
89
dnl -------------------------------------------------
90
dnl This is done to ensure that the same check is
91
dnl used across different Autoconf versions and to
92
dnl allow us to use this macro early enough in the
95
m4_define([_AS_PATH_SEPARATOR_PREPARE],
96
[CURL_CHECK_PATH_SEPARATOR
99
m4_define([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
100
[CURL_CHECK_PATH_SEPARATOR