~ubuntu-branches/ubuntu/lucid/curl/lucid-security

« back to all changes in this revision

Viewing changes to m4/curl-override.m4

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-04-29 11:10:29 UTC
  • mfrom: (3.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090429111029-2j5eiyokfw2bw049
Tags: 7.19.4-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop build dependencies: stunnel, libdb4.6-dev, libssh2-1-dev
  - Add build-dependency on openssh-server
  - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Call automake-1.9 with --add-missing --copy --force
* drop debian/patches/security_CVE-2009-0037.patch 
  - this patch is part of 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#***************************************************************************
 
2
# $Id: curl-override.m4,v 1.2 2008-11-18 19:29:31 yangtse Exp $
 
3
#***************************************************************************
 
4
 
 
5
# File version for 'aclocal' use. Keep it a single number.
 
6
# serial 2
 
7
 
 
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.
 
14
 
 
15
AC_DEFUN([CURL_OVERRIDE_AUTOCONF], [
 
16
AC_BEFORE([$0],[AC_PROG_LIBTOOL])
 
17
# using curl-override.m4
 
18
])
 
19
 
 
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.
 
25
 
 
26
m4_define([AC_LIBTOOL_LANG_CXX_CONFIG],[:])
 
27
m4_define([AC_LIBTOOL_LANG_F77_CONFIG],[:])
 
28
m4_define([AC_LIBTOOL_LANG_GCJ_CONFIG],[:])
 
29
 
 
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.
 
36
 
 
37
m4_define([AC_LANG_PROGRAM(C)],
 
38
[$1
 
39
int main (void)
 
40
{
 
41
$2
 
42
 ;
 
43
 return 0;
 
44
}])
 
45
 
 
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.
 
52
 
 
53
m4_define([AC_LANG_CALL(C)],
 
54
[AC_LANG_PROGRAM([$1
 
55
m4_if([$2], [main], ,
 
56
[
 
57
#ifdef __cplusplus
 
58
extern "C"
 
59
#endif
 
60
char $2 ();])], [return $2 ();])])
 
61
 
 
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.
 
68
 
 
69
m4_define([AC_LANG_FUNC_LINK_TRY(C)],
 
70
[AC_LANG_PROGRAM(
 
71
[
 
72
#define $1 innocuous_$1
 
73
#ifdef __STDC__
 
74
# include <limits.h>
 
75
#else
 
76
# include <assert.h>
 
77
#endif
 
78
#undef $1
 
79
#ifdef __cplusplus
 
80
extern "C"
 
81
#endif
 
82
char $1 ();
 
83
#if defined __stub_$1 || defined __stub___$1
 
84
choke me
 
85
#endif
 
86
], [return $1 ();])])
 
87
 
 
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
 
93
dnl configure script.
 
94
 
 
95
m4_define([_AS_PATH_SEPARATOR_PREPARE],
 
96
[CURL_CHECK_PATH_SEPARATOR
 
97
m4_define([$0],[])])
 
98
 
 
99
m4_define([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
 
100
[CURL_CHECK_PATH_SEPARATOR
 
101
m4_define([$0],[])])
 
102
 
 
103