]> git.ipfire.org Git - thirdparty/curl.git/blame - configure.ac
explain why the ABI depends on the SSL libs
[thirdparty/curl.git] / configure.ac
CommitLineData
ae1912cb
DS
1dnl $Id$
2dnl Process this file with autoconf to produce a configure script.
7349940b 3
a147a079 4AC_PREREQ(2.57)
7349940b 5
d5ba0309 6dnl We don't know the version number "staticly" so we use a dash here
e3fc0d5e 7AC_INIT(curl, [-], [a suitable curl mailing list => http://curl.haxx.se/mail/])
d5ba0309
DS
8
9dnl configure script copyright
c2fcdf3a 10AC_COPYRIGHT([Copyright (c) 1998 - 2005 Daniel Stenberg, <daniel@haxx.se>
d5ba0309
DS
11This configure script may be copied, distributed and modified under the
12terms of the curl license; see COPYING for more details])
13
93c53424 14AC_CONFIG_SRCDIR([lib/urldata.h])
1a4fddb9 15AM_CONFIG_HEADER(lib/config.h src/config.h)
ed29552b 16AM_MAINTAINER_MODE
8f5ffd94 17
9f7c6341 18dnl SED is needed by some of the tools
3fc39a6e
DS
19AC_PATH_PROG( SED, sed, sed-was-not-found-by-configure,
20 $PATH:/usr/bin:/usr/local/bin)
075c5342
DS
21AC_SUBST(SED)
22
3fc39a6e
DS
23if test "x$SED" = "xsed-was-not-found-by-configure"; then
24 AC_MSG_WARN([sed was not found, this may ruin your chances to build fine])
25fi
26
9f7c6341 27dnl AR is used by libtool, and try the odd Solaris path too
91018f4f
DS
28dnl we use AC_CHECK_TOOL since this should make a library for the target
29dnl platform
30AC_CHECK_TOOL(AR, ar,
3fc39a6e
DS
31 ar-was-not-found-by-configure,
32 $PATH:/usr/bin:/usr/local/bin:/usr/ccs/bin)
9f7c6341 33AC_SUBST(AR)
3fc39a6e
DS
34if test "x$AR" = "xar-was-not-found-by-configure"; then
35 AC_MSG_WARN([ar was not found, this may ruin your chances to build fine])
36fi
9f7c6341 37
7349940b 38dnl figure out the libcurl version
593170d1 39VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
8f5ffd94 40AM_INIT_AUTOMAKE(curl,$VERSION)
075c5342
DS
41AC_MSG_CHECKING([curl version])
42AC_MSG_RESULT($VERSION)
caf8c01e 43
1e5e0f9a
DS
44dnl
45dnl we extract the numerical version for curl-config only
593170d1 46VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
1e5e0f9a
DS
47AC_SUBST(VERSIONNUM)
48
c503930b
CB
49dnl Solaris pkgadd support definitions
50PKGADD_PKG="HAXXcurl"
51PKGADD_NAME="cURL - a client that groks URLs"
52PKGADD_VENDOR="curl.haxx.se"
53AC_SUBST(PKGADD_PKG)
54AC_SUBST(PKGADD_NAME)
55AC_SUBST(PKGADD_VENDOR)
56
cff90cf3 57dnl
710e370c 58dnl initialize all the info variables
bebd5dbc 59 curl_ssl_msg="no (--with-ssl / --with-gnutls)"
710e370c
DS
60 curl_zlib_msg="no (--with-zlib)"
61 curl_krb4_msg="no (--with-krb4*)"
62 curl_gss_msg="no (--with-gssapi)"
63 curl_spnego_msg="no (--with-spnego)"
64 curl_ares_msg="no (--enable-ares)"
65 curl_ipv6_msg="no (--enable-ipv6)"
66 curl_idn_msg="no (--with-libidn)"
67 curl_manual_msg="no (--enable-manual)"
68curl_verbose_msg="enabled (--disable-verbose)"
8ed31c48 69 curl_sspi_msg="no (--enable-sspi)"
c503930b 70
caf8c01e
DS
71dnl
72dnl Detect the canonical host and target build environment
73dnl
ae1912cb 74
c77f77a1 75AC_CANONICAL_HOST
93c53424 76dnl Get system canonical name
22a32389 77AC_DEFINE_UNQUOTED(OS, "${host}", [cpu-machine-OS])
1b1f143c
DS
78
79dnl Check for AIX weirdos
80AC_AIX
81
93c53424
DS
82dnl Checks for programs.
83AC_PROG_CC
84
d4ffc5ef 85dnl check for how to do large files
1b1f143c 86AC_SYS_LARGEFILE
d4ffc5ef 87
1e8f0c57
DS
88dnl check for cygwin stuff
89AC_LIBTOOL_WIN32_DLL
90
91dnl libtool setup
d20a0516 92AC_PROG_LIBTOOL
93c53424 93
fcfc6de9 94AC_MSG_CHECKING([if we need -no-undefined])
ecf3aee4 95case $host in
c2e2c98d 96 *-*-cygwin | *-*-mingw* | *-*-pw32*)
ecf3aee4
DS
97 need_no_undefined=yes
98 ;;
99 *)
100 need_no_undefined=no
101 ;;
102esac
fcfc6de9 103AC_MSG_RESULT($need_no_undefined)
ecf3aee4
DS
104AM_CONDITIONAL(NO_UNDEFINED, test x$need_no_undefined = xyes)
105
fcfc6de9 106AC_MSG_CHECKING([if we need -mimpure-text])
5ab9d72e 107mimpure=no
fcfc6de9
DS
108case $host in
109 *-*-solaris2*)
110 if test "$GCC" = "yes"; then
111 mimpure="yes"
112 fi
113 ;;
114 *)
fcfc6de9
DS
115 ;;
116esac
117AC_MSG_RESULT($mimpure)
118AM_CONDITIONAL(MIMPURE, test x$mimpure = xyes)
119
4d815c99
DS
120AC_MSG_CHECKING([if we need BUILDING_LIBCURL])
121case $host in
122 *-*-mingw*)
123 AC_DEFINE(BUILDING_LIBCURL, 1, [when building libcurl itself])
124 AC_MSG_RESULT(yes)
0bb04082
DS
125