]> git.ipfire.org Git - thirdparty/curl.git/blame - configure.ac
nonsense change for(;;) => while(1) just to prevent gcc from warning on
[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
053f6c85 10AC_COPYRIGHT([Copyright (c) 1998 - 2004 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
DS
58dnl initialize all the info variables
59 curl_ssl_msg="no (--with-ssl)"
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)
125 ;;
126 *)
127 AC_MSG_RESULT(no)
128 ;;
129esac
130
d1a1fcc6
DS
131dnl The install stuff has already been taken care of by the automake stuff
132dnl AC_PROG_INSTALL
ae1912cb
DS
133AC_PROG_MAKE_SET
134
fd3881ea
DS
135dnl ************************************************************
136dnl switch off particular protocols
137dnl
138AC_MSG_CHECKING([whether to support http])
139AC_ARG_ENABLE(http,
f136f435
DS
140AC_HELP_STRING([--enable-http],[Enable HTTP support])
141AC_HELP_STRING([--disable-http],[Disable HTTP support]),
fd3881ea
DS
142[ case "$enableval" in
143 no)
144 AC_MSG_RESULT(no)
22a32389 145 AC_DEFINE(CURL_DISABLE_HTTP, 1, [to disable HTTP])
fd3881ea 146 AC_MSG_WARN([disable HTTP disables FTP over proxy and GOPHER too])
22a32389 147 AC_DEFINE(CURL_DISABLE_GOPHER, 1, [to disable GOPHER])
3955b313
DS
148 AC_SUBST(CURL_DISABLE_HTTP, [1])
149 AC_SUBST(CURL_DISABLE_GOPHER, [1])
fd3881ea
DS
150 ;;
151 *) AC_MSG_RESULT(yes)
152 ;;
153 esac ],
154 AC_MSG_RESULT(yes)
155)
156AC_MSG_CHECKING([whether to support ftp])
157AC_ARG_ENABLE(ftp,
f136f435
DS
158AC_HELP_STRING([--enable-ftp],[Enable FTP support])
159AC_HELP_STRING([--disable-ftp],[Disable FTP support]),
fd3881ea
DS
160[ case "$enableval" in
161 no)
162 AC_MSG_RESULT(no)
22a32389 163 AC_DEFINE(CURL_DISABLE_FTP, 1, [to disable FTP])
3955b313 164 AC_SUBST(CURL_DISABLE_FTP, [1])
fd3881ea
DS
165 ;;
166 *) AC_MSG_RESULT(yes)
167 ;;
168 esac ],
169 AC_MSG_RESULT(yes)
170)
171AC_MSG_CHECKING([whether to support gopher])
172AC_ARG_ENABLE(gopher,
f136f435
DS
173AC_HELP_STRING([--enable-gopher],[Enable GOPHER support])
174AC_HELP_STRING([--disable-gopher],[Disable GOPHER support]),
fd3881ea
DS
175[ case "$enableval" in
176 no)
177 AC_MSG_RESULT(no)
22a32389 178 AC_DEFINE(CURL_DISABLE_GOPHER, 1, [to disable GOPHER])
3955b313 179 AC_SUBST(CURL_DISABLE_GOPHER, [1])
fd3881ea
DS
180 ;;
181 *) AC_MSG_RESULT(yes)
182 ;;
183 esac ],
184 AC_MSG_RESULT(yes)
185)
186AC_MSG_CHECKING([whether to support file])
187AC_ARG_ENABLE(file,
f136f435
DS
188AC_HELP_STRING([--enable-file],[Enable FILE support])
189AC_HELP_STRING([--disable-file],[Disable FILE support]),
fd3881ea
DS
190[ case "$enableval" in
191 no)
192 AC_MSG_RESULT(no)
22a32389 193 AC_DEFINE(CURL_DISABLE_FILE, 1, [to disable FILE])
3955b313 194 AC_SUBST(CURL_DISABLE_FILE, [1])
fd3881ea
DS
195 ;;
196 *) AC_MSG_RESULT(yes)
197 ;;
198 esac ],
199 AC_MSG_RESULT(yes)
200)
201AC_MSG_CHECKING([whether to support ldap])
202AC_ARG_ENABLE(ldap,
f136f435
DS
203AC_HELP_STRING([--enable-ldap],[Enable LDAP support])
204AC_HELP_STRING([--disable-ldap],[Disable LDAP support]),
fd3881ea
DS
205[ case "$enableval" in
206 no)
207 AC_MSG_RESULT(no)
22a32389 208 AC_DEFINE(CURL_DISABLE_LDAP, 1, [to disable LDAP])
3955b313 209 AC_SUBST(CURL_DISABLE_LDAP, [1])
fd3881ea
DS
210 ;;
211 *) AC_MSG_RESULT(yes)
212 ;;
213 esac ],
214 AC_MSG_RESULT(yes)
215)
216AC_MSG_CHECKING([whether to support dict])
217AC_ARG_ENABLE(dict,
f136f435
DS
218AC_HELP_STRING([--enable-dict],[Enable DICT support])
219AC_HELP_STRING([--disable-dict],[Disable DICT support]),
fd3881ea
DS
220[ case "$enableval" in
221 no)
222 AC_MSG_RESULT(no)
b9c60df0 223 AC_DEFINE(CURL_DISABLE_DICT, 1, [to disable DICT])
3955b313 224 AC_SUBST(CURL_DISABLE_DICT, [1])
fd3881ea
DS
225 ;;
226 *) AC_MSG_RESULT(yes)
227 ;;
228 esac ],
229 AC_MSG_RESULT(yes)
230)
231AC_MSG_CHECKING([whether to support telnet])
232AC_ARG_ENABLE(telnet,
f136f435
DS
233AC_HELP_STRING([--enable-telnet],[Enable TELNET support])
234AC_HELP_STRING([--disable-telnet],[Disable TELNET support]),
fd3881ea
DS
235[ case "$enableval" in
236 no)
237 AC_MSG_RESULT(no)
22a32389 238 AC_DEFINE(CURL_DISABLE_TELNET, 1, [to disable TELNET])
3955b313 239 AC_SUBST(CURL_DISABLE_TELNET, [1])
fd3881ea
DS
240 ;;
241 *) AC_MSG_RESULT(yes)
242 ;;
243 esac ],
244 AC_MSG_RESULT(yes)
245)
246
f3663a9d
DS
247dnl **********************************************************************
248dnl Check for built-in manual
249dnl **********************************************************************
250
251AC_MSG_CHECKING([whether to provide built-in manual])
252AC_ARG_ENABLE(manual,
253AC_HELP_STRING([--enable-manual],[Enable built-in manual])
254AC_HELP_STRING([--disable-manual],[Disable built-in manual]),
255[ case "$enableval" in
256 no)
257 AC_MSG_RESULT(no)
258 ;;
259 *) AC_MSG_RESULT(yes)
260 USE_MANUAL="1"
261 ;;
262 esac ],
263 AC_MSG_RESULT(yes)
264 USE_MANUAL="1"
265)
266dnl The actual use of the USE_MANUAL variable is done much later in this
267dnl script to allow other actions to disable it as well.
268
269
ae1912cb
DS
270dnl **********************************************************************
271dnl Checks for libraries.
272dnl **********************************************************************
273
9f2780a2
DS
274dnl gethostbyname without lib or in the nsl lib?
275AC_CHECK_FUNC(gethostbyname,
276 [HAVE_GETHOSTBYNAME="1"
277 ],
278 [ AC_CHECK_LIB(nsl, gethostbyname,
279 [HAVE_GETHOSTBYNAME="1"
280 LIBS="$LIBS -lnsl"
281 ])
282 ])
283
284if test "$HAVE_GETHOSTBYNAME" != "1"
285then
61fb8fea 286 dnl gethostbyname in the socket lib?
9f2780a2
DS
287 AC_CHECK_LIB(socket, gethostbyname,
288 [HAVE_GETHOSTBYNAME="1"
289 LIBS="$LIBS -lsocket"
290 ])
61fb8fea
DS
291fi
292
9f2780a2
DS
293dnl At least one system has been identified to require BOTH nsl and socket
294dnl libs at the same time to link properly.
295if test "$HAVE_GETHOSTBYNAME" != "1"
296then
af43ce73 297 AC_MSG_CHECKING([for gethostbyname with both nsl and socket libs])
caf8c01e
DS
298 my_ac_save_LIBS=$LIBS
299 LIBS="-lnsl -lsocket $LIBS"
300 AC_TRY_LINK( ,
301 [gethostbyname();],
9f2780a2 302 [ dnl found it!
5c7dcc6c 303 HAVE_GETHOSTBYNAME="1"
9f2780a2
DS
304 AC_MSG_RESULT([yes])],
305 [ dnl failed!
306 AC_MSG_RESULT([no])
307 dnl restore LIBS
308 LIBS=$my_ac_save_LIBS]
309 )
310fi
caf8c01e 311
9f2780a2
DS
312if test "$HAVE_GETHOSTBYNAME" != "1"
313then
314 dnl This is for Msys/Mingw
315 AC_MSG_CHECKING([for gethostbyname in ws2_32])
316 my_ac_save_LIBS=$LIBS
317 LIBS="-lws2_32 $LIBS"
318 AC_TRY_LINK([#include <winsock2.h>],
319 [gethostbyname("www.dummysite.com");],
320 [ dnl worked!
9f3d9da1 321 ws2="yes"
a3d39efa 322 AC_MSG_RESULT([yes])
9f2780a2
DS
323 HAVE_GETHOSTBYNAME="1"],
324 [ dnl failed, restore LIBS
325 LIBS=$my_ac_save_LIBS
326 AC_MSG_RESULT(no)]
327 )
328fi
329
58f4af79
DS
330if test "$HAVE_GETHOSTBYNAME" != "1"
331then
332 dnl gethostbyname in the net lib - for BeOS
333 AC_CHECK_LIB(net, gethostbyname,
334 [HAVE_GETHOSTBYNAME="1"
335 LIBS="$LIBS -lnet"
336 ])
337fi
338
339
9f2780a2
DS
340if test "$HAVE_GETHOSTBYNAME" = "1"; then
341 AC_DEFINE(HAVE_GETHOSTBYNAME, 1, [If you have gethostbyname])
342else
343 AC_MSG_ERROR([couldn't find libraries for gethostbyname()])
caf8c01e
DS
344fi
345
ae1912cb 346dnl resolve lib?
22a32389 347AC_CHECK_FUNC(strcasecmp, , [ AC_CHECK_LIB(resolve, strcasecmp) ])
ae1912cb 348
b174aeaa
DS
349if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
350 AC_CHECK_LIB(resolve, strcasecmp,
351 [LIBS="-lresolve $LIBS"],
352 ,
353 -lnsl)
354fi
355
ae1912cb 356dnl socket lib?
22a32389 357AC_CHECK_FUNC(connect, , [ AC_CHECK_LIB(socket, connect) ])
ae1912cb 358
ae1912cb 359dnl dl lib?
22a32389 360AC_CHECK_FUNC(dlclose, , [ AC_CHECK_LIB(dl, dlopen) ])
ae1912cb 361
075c5342
DS
362AC_MSG_CHECKING([whether to use libgcc])
363AC_ARG_ENABLE(libgcc,
364AC_HELP_STRING([--enable-libgcc],[use libgcc when linking]),
365[ case "$enableval" in
366 yes)
367 LIBS="$LIBS -lgcc"
368 AC_MSG_RESULT(yes)
369 ;;
370 *) AC_MSG_RESULT(no)
371 ;;
372 esac ],
373 AC_MSG_RESULT(no)
374)
375
3ec605de 376dnl **********************************************************************
205f8b26
DF
377dnl Check for the name of dynamic OpenLDAP libraries
378dnl **********************************************************************
379
380LDAPLIBNAME=""
381AC_ARG_WITH(ldap-lib,
382AC_HELP_STRING([--with-ldap-lib=libname],[Specify name of dynamic ldap lib file]),
383 [LDAPLIBNAME="$withval"])
384
385LBERLIBNAME=""
386AC_ARG_WITH(lber-lib,
387AC_HELP_STRING([--with-lber-lib=libname],[Specify name of dynamic lber lib file]),
388 [LBERLIBNAME="$withval"])
389
390if test x$CURL_DISABLE_LDAP != x1 ; then
391
392 if test -z "$LDAPLIBNAME" ; then
393 case $host in
394 *-*-cygwin | *-*-mingw* | *-*-pw32*)
395 dnl Windows uses a single and unique OpenLDAP DLL name
396 LDAPLIBNAME="wldap32.dll"
397 LBERLIBNAME="no"
398 ;;
399 esac
400 fi
401
402 if test "$LDAPLIBNAME" ; then
403 AC_DEFINE_UNQUOTED(DL_LDAP_FILE, "$LDAPLIBNAME")
404 AC_MSG_CHECKING([name of dynamic library ldap])
405 AC_MSG_RESULT($LDAPLIBNAME)
406 else
407 dnl Try to find the right ldap library name for this system
408 CURL_DLLIB_NAME(DL_LDAP_FILE, ldap)
409 fi
410
411 if test "$LBERLIBNAME" ; then
412 dnl If name is "no" then don't define this variable at all
413 dnl (it's only needed if libldap.so's dependencies are broken).
414 if test "$LBERLIBNAME" != "no" ; then
415 AC_DEFINE_UNQUOTED(DL_LBER_FILE, "$LBERLIBNAME")
416 fi
417 AC_MSG_CHECKING([name of dynamic library lber])
418 AC_MSG_RESULT($LBERLIBNAME)
419 else
420 dnl Try to find the right lber library name for this system
421 CURL_DLLIB_NAME(DL_LBER_FILE, lber)
422 fi
423fi
424
425dnl **********************************************************************
3ec605de
DS
426dnl Check for the presence of the winmm library.
427dnl **********************************************************************
428
429AC_MSG_CHECKING([for timeGetTime in winmm])
430my_ac_save_LIBS=$LIBS
431LIBS="-lwinmm $LIBS"
432AC_TRY_LINK([#include <windef.h>
433 #include <mmsystem.h>
434 ],
435 [timeGetTime();],
436 [ dnl worked!
437 AC_MSG_RESULT([yes])
438 ],
439 [ dnl failed, restore LIBS
440 LIBS=$my_ac_save_LIBS
441 AC_MSG_RESULT(no)]
442 )
443
d1b17779
DS
444dnl **********************************************************************
445dnl Checks for IPv6
446dnl **********************************************************************
447
448AC_MSG_CHECKING([whether to enable ipv6])
449AC_ARG_ENABLE(ipv6,
450AC_HELP_STRING([--enable-ipv6],[Enable ipv6 (with ipv4) support])
451AC_HELP_STRING([--disable-ipv6],[Disable ipv6 support]),
452[ case "$enableval" in
453 no)
454 AC_MSG_RESULT(no)
455 ipv6=no
456 ;;
457 *) AC_MSG_RESULT(yes)
458 ipv6=yes
459 ;;
460 esac ],
461
462 AC_TRY_RUN([ /* is AF_INET6 available? */
463#include <sys/types.h>
464#include <sys/socket.h>
465main()
466{
467 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
468 exit(1);
469 else
470 exit(0);
471}
472],
473 AC_MSG_RESULT(yes)
474 ipv6=yes,
475 AC_MSG_RESULT(no)
476 ipv6=no,
477 AC_MSG_RESULT(no)
478 ipv6=no
479))
480
481if test "$ipv6" = "yes"; then
cff90cf3
DS
482 curl_ipv6_msg="enabled"
483
d1b17779 484 CURL_CHECK_WORKING_GETADDRINFO
a2ea0abf
DS
485
486 CURL_CHECK_NI_WITHSCOPEID
d1b17779
DS
487fi
488
6ca45bea
DS
489dnl **********************************************************************
490dnl Check how non-blocking sockets are set
491dnl **********************************************************************
492AC_ARG_ENABLE(nonblocking,
f136f435
DS
493AC_HELP_STRING([--enable-nonblocking],[Enable detecting how to do it])
494AC_HELP_STRING([--disable-nonblocking],[Disable non-blocking socket detection]),
6ca45bea
DS
495[
496 if test "$enableval" = "no" ; then
497 AC_MSG_WARN([non-blocking sockets disabled])
22a32389
DS
498 AC_DEFINE(HAVE_DISABLED_NONBLOCKING, 1,
499 [to disable NON-BLOCKING connections])
6ca45bea
DS
500 else
501 CURL_CHECK_NONBLOCKING_SOCKET
502 fi
503],
504[
505 CURL_CHECK_NONBLOCKING_SOCKET
506])
507
7f67a28c
DS
508dnl **********************************************************************
509dnl Check if the operating system allows programs to write to their own argv[]
510dnl **********************************************************************
511
512AC_MSG_CHECKING([if argv can be written to])
0717e469 513AC_CACHE_VAL(curl_cv_writable_argv, [
a139ce90 514AC_RUN_IFELSE([[
7f67a28c
DS
515int main(int argc, char ** argv) {
516 argv[0][0] = ' ';
517 return (argv[0][0] == ' ')?0:1;
518}
a139ce90 519 ]],
0717e469
DS
520 curl_cv_writable_argv=yes,
521 curl_cv_writable_argv=no,
522 curl_cv_writable_argv=cross)
523])
524case $curl_cv_writable_argv in
525yes)
7f67a28c 526 AC_DEFINE(HAVE_WRITABLE_ARGV, 1, [Define this symbol if your OS supports changing the contents of argv])
0717e469
DS
527 AC_MSG_RESULT(yes)
528 ;;
529no)
530 AC_MSG_RESULT(no)
531 ;;
532*)
a139ce90
DS
533 AC_MSG_RESULT(no)
534 AC_MSG_WARN([the previous check could not be made default was used])
0717e469
DS
535 ;;
536esac
7f67a28c 537
00505c92
DS
538dnl **********************************************************************
539dnl Check for the presence of Kerberos4 libraries and headers
540dnl **********************************************************************
541
542AC_ARG_WITH(krb4-includes,
f136f435
DS
543AC_HELP_STRING([--with-krb4-includes=DIR],
544 [Specify location of kerberos4 headers]),[
00505c92
DS
545 CPPFLAGS="$CPPFLAGS -I$withval"
546 KRB4INC="$withval"
547 want_krb4=yes
548 ])
549
550AC_ARG_WITH(krb4-libs,
f136f435 551AC_HELP_STRING([--with-krb4-libs=DIR],[Specify location of kerberos4 libs]),[
00505c92
DS
552 LDFLAGS="$LDFLAGS -L$withval"
553 KRB4LIB="$withval"
554 want_krb4=yes
555 ])
556
557
558OPT_KRB4=off
559AC_ARG_WITH(krb4,dnl
f136f435 560AC_HELP_STRING([--with-krb4=DIR],[where to look for Kerberos4]),[
00505c92
DS
561 OPT_KRB4="$withval"
562 if test X"$OPT_KRB4" != Xyes
563 then
81f83506
DS
564 LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
565 KRB4LIB="$OPT_KRB4/lib$libsuff"
00505c92
DS
566 CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
567 KRB4INC="$OPT_KRB4/include"
568 fi
569 want_krb4="yes"
570 ])
571
572AC_MSG_CHECKING([if Kerberos4 support is requested])
573
574if test "$want_krb4" = yes
575then
f6e2bfd4
DS
576 if test "$ipv6" = "yes"; then
577 echo krb4 is not compatible with IPv6
578 exit 1
579 fi
00505c92
DS
580 AC_MSG_RESULT(yes)
581
582 dnl Check for & handle argument to --with-krb4
583
584 AC_MSG_CHECKING(where to look for Kerberos4)
585 if test X"$OPT_KRB4" = Xyes
586 then
587 AC_MSG_RESULT([defaults])
588 else
589 AC_MSG_RESULT([libs in $KRB4LIB, headers in $KRB4INC])
590 fi
591
592 dnl Check for DES library
593 AC_CHECK_LIB(des, des_pcbc_encrypt,
594 [
595 AC_CHECK_HEADERS(des.h)
596
597 dnl resolv lib?
22a32389 598 AC_CHECK_FUNC(res_search, , [AC_CHECK_LIB(resolv, res_search)])
00505c92
DS
599
600 dnl Check for the Kerberos4 library
601 AC_CHECK_LIB(krb, krb_net_read,
602 [
603 dnl Check for header files
604 AC_CHECK_HEADERS(krb.h)
605
606 dnl we found the required libraries, add to LIBS
b55507c8 607 LIBS="-lkrb -lcom_err -ldes $LIBS"
00505c92
DS
608
609 dnl Check for function krb_get_our_ip_for_realm
610 dnl this is needed for NAT networks
611 AC_CHECK_FUNCS(krb_get_our_ip_for_realm)
612
613 dnl add define KRB4
d4629fd3 614 AC_DEFINE(HAVE_KRB4, 1,
22a32389 615 [if you have the Kerberos4 libraries (including -ldes)])
00505c92 616
1ee7f92c
DS
617 dnl substitute it too!
618 KRB4_ENABLED=1
619 AC_SUBST(KRB4_ENABLED)
620
cff90cf3
DS
621 curl_krb4_msg="enabled"
622
00505c92
DS
623 dnl the krb4 stuff needs a strlcpy()
624 AC_CHECK_FUNCS(strlcpy)
625
626 ])
627 ])
628else
629 AC_MSG_RESULT(no)
630fi
631
09ccfcdc
DS
632dnl **********************************************************************
633dnl Check for FBopenssl(SPNEGO) libraries
634dnl **********************************************************************
635
636AC_ARG_WITH(spnego,
637 AC_HELP_STRING([--with-spnego=DIR],
638 [Specify location of SPNEGO library fbopenssl]),
639 [ SPNEGO_ROOT="$withval"
640 want_spnego="yes" ]
641)
642AC_MSG_CHECKING([if SPNEGO support is requested])
643if test x"$want_spnego" = xyes; then
f6413f2c
DS
644
645 if test X"$SPNEGO_ROOT" = Xyes; then
646 AC_MSG_ERROR([FBOpenSSL libs and/or directories were not found where specified!])
647 AC_MSG_RESULT(no)
09ccfcdc 648 else
f6413f2c 649 if test -z "$SPNEGO_LIB_DIR"; then
202e54cf 650 LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
f6413f2c
DS
651 else
652 LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
653 fi
09ccfcdc 654
f6413f2c 655 AC_MSG_RESULT(yes)
cff90cf3
DS
656 AC_DEFINE(HAVE_SPNEGO, 1,
657 [Define this if you have the SPNEGO library fbopenssl])
658 curl_spnego_msg="enabled"
f6413f2c 659 fi
09ccfcdc
DS
660else
661 AC_MSG_RESULT(no)
662fi
663
e56ae142
DS
664dnl **********************************************************************
665dnl Check for GSS-API libraries
666dnl **********************************************************************
667
668AC_ARG_WITH(gssapi-includes,
669 AC_HELP_STRING([--with-gssapi-includes=DIR],
670 [Specify location of GSSAPI header]),
671 [ GSSAPI_INCS="-I$withval"
672 want_gss="yes" ]
673)
674
675AC_ARG_WITH(gssapi-libs,
676 AC_HELP_STRING([--with-gssapi-libs=DIR],
677 [Specify location of GSSAPI libs]),
678 [ GSSAPI_LIBS="-L$withval -lgssapi"
679 want_gss="yes" ]
680)
681
682AC_ARG_WITH(gssapi,
683 AC_HELP_STRING([--with-gssapi=DIR],
684 [Where to look for GSSAPI]),
685 [ GSSAPI_ROOT="$withval"
686 want_gss="yes" ]
687)
688
689AC_MSG_CHECKING([if GSSAPI support is requested])
690if test x"$want_gss" = xyes; then
691 if test -z "$GSSAPI_INCS"; then
692 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
f4046763 693 GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
49111a63 694 elif test "$GSSAPI_ROOT" != "yes"; then
533519cc 695 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
e56ae142 696 fi
e56ae142 697 fi
f4046763 698 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
e56ae142
DS
699
700 if test -z "$GSSAPI_LIB_DIR"; then
701 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
702 gss_ldflags=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
703 LDFLAGS="$LDFLAGS $gss_ldflags"
49111a63 704 elif test "$GSSAPI_ROOT" != "yes"; then
81f83506 705 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff -lgssapi"
49111a63
DS
706 else
707 LDFLAGS="$LDFLAGS -lgssapi"
e56ae142
DS
708 fi
709 else
710 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
711 fi
712
713 AC_MSG_RESULT(yes)
09ccfcdc 714 AC_DEFINE(HAVE_GSSAPI, 1, [if you have the gssapi libraries])
f4046763 715
cff90cf3
DS
716 curl_gss_msg="enabled"
717
49111a63
DS
718 AC_CHECK_HEADER(gssapi.h,
719 [
720 dnl found in the given dirs
09ccfcdc 721 AC_DEFINE(HAVE_GSSHEIMDAL, 1, [if you have the Heimdal gssapi libraries])
49111a63
DS
722 ],
723 [
724 dnl not found, check in gssapi/ subdir
725 AC_CHECK_HEADER(gssapi/gssapi.h,
726 dnl found
727 AC_DEFINE(HAVE_GSSMIT, 1, [if you have the MIT gssapi libraries])
728 )
729
730 ]
731 )
732
e56ae142
DS
733else
734 AC_MSG_RESULT(no)
735fi
736
ae1912cb
DS
737dnl **********************************************************************
738dnl Check for the presence of SSL libraries and headers
739dnl **********************************************************************
740
741dnl Default to compiler & linker defaults for SSL files & libraries.
742OPT_SSL=off
2c2baa93
DS
743dnl Default to no CA bundle
744ca="no"
ae1912cb 745AC_ARG_WITH(ssl,dnl
f136f435 746AC_HELP_STRING([--with-ssl=PATH],[where to look for SSL, PATH points to the SSL installation (default: /usr/local/ssl)])
e890113f
DS
747AC_HELP_STRING([--without-ssl], [disable SSL]),
748 OPT_SSL=$withval)
ae1912cb
DS
749
750if test X"$OPT_SSL" = Xno
751then
1bdc4b20 752 AC_MSG_WARN([SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more])
ae1912cb
DS
753else
754
6bd02a3a 755 dnl backup the pre-ssl variables
4ac7a087
DS
756 CLEANLDFLAGS="$LDFLAGS"
757 CLEANCPPFLAGS="$CPPFLAGS"
6bd02a3a
DS
758 CLEANLIBS="$LIBS"
759
4836154c
DS
760 case "$OPT_SSL" in
761 yes)
75e5967a 762 dnl --with-ssl (without path) used
736a40fe
DS
763 if test x$cross_compiling != xyes; then
764 dnl only do pkg-config magic when not cross-compiling
765 PKGTEST="yes"
766 fi
4836154c 767 EXTRA_SSL=/usr/local/ssl ;;
4398151f 768 off)
75e5967a 769 dnl no --with-ssl option given, just check default places
736a40fe
DS
770 if test x$cross_compiling != xyes; then
771 dnl only do pkg-config magic when not cross-compiling
772 PKGTEST="yes"
773 fi
4398151f 774 EXTRA_SSL= ;;
4836154c 775 *)
75e5967a
DS
776 dnl check the given --with-ssl spot
777 PKGTEST="no"
4ac7a087 778 EXTRA_SSL=$OPT_SSL
81f83506 779 LDFLAGS="$LDFLAGS -L$EXTRA_SSL/lib$libsuff"
4ac7a087
DS
780 CPPFLAGS="$CPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
781 ;;
4836154c
DS
782 esac
783
75e5967a
DS
784 if test "$PKGTEST" = "yes"; then
785
786 dnl Detect the pkg-config tool, as it may have extra info about the
787 dnl openssl installation we can use. I *believe* this is what we are
788 dnl expected to do on really recent Redhat Linux hosts.
789
790 AC_PATH_PROG( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
791 if test "$PKGCONFIG" != "no" ; then
792 AC_MSG_CHECKING([OpenSSL options with pkg-config])
793
794 $PKGCONFIG --exists openssl
795 SSL_EXISTS=$?
796
797 if test "$SSL_EXISTS" -eq "0"; then
798 SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
799 SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
800 SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
801
802 dnl use the values pkg-config reported
803 LIBS="$LIBS $SSL_LIBS"
804 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
805 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
806 AC_MSG_RESULT([found])
807 else
808 AC_MSG_RESULT([no])
809 fi
810 fi
811 fi
812
4836154c
DS
813 AC_CHECK_LIB(crypto, CRYPTO_lock,[
814 HAVECRYPTO="yes"
c4f7570a 815 LIBS="-lcrypto $LIBS"
4836154c 816 ],[
81f83506 817 LDFLAGS="$CLEANLDFLAGS -L$EXTRA_SSL/lib$libsuff"
4ac7a087 818 CPPFLAGS="$CLEANCPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
4836154c 819 AC_CHECK_LIB(crypto, CRYPTO_add_lock,[
c4f7570a
DF
820 HAVECRYPTO="yes"
821 LIBS="-lcrypto $LIBS"], [
6bd02a3a
DS
822 LDFLAGS="$CLEANLDFLAGS"
823 CPPFLAGS="$CLEANCPPFLAGS"
824 LIBS="$CLEANLIBS"
4836154c
DS
825 ])
826 ])
ae1912cb 827
ae1912cb 828
df3ca591
DS
829 if test X"$HAVECRYPTO" != X"yes"; then
830 AC_MSG_WARN([crypto lib was not found; SSL will be disabled])
831
832 else
ae1912cb
DS
833 dnl This is only reasonable to do if crypto actually is there: check for
834 dnl SSL libs NOTE: it is important to do this AFTER the crypto lib
4836154c 835
a3d39efa
DS
836 dnl This is for Msys/Mingw
837 AC_MSG_CHECKING([for gdi32])
838 my_ac_save_LIBS=$LIBS
839 LIBS="-lgdi32 $LIBS"
840 AC_TRY_LINK([#include <windef.h>
841 #include <wingdi.h>],
842 [GdiFlush();],
843 [ dnl worked!
844 AC_MSG_RESULT([yes])],
845 [ dnl failed, restore LIBS
846 LIBS=$my_ac_save_LIBS
847 AC_MSG_RESULT(no)]
848 )
849
ae1912cb
DS
850 AC_CHECK_LIB(ssl, SSL_connect)
851
b32bf427
DS
852 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
853 dnl we didn't find the SSL lib, try the RSAglue/rsaref stuff
854 AC_MSG_CHECKING(for ssl with RSAglue/rsaref libs in use);
855 OLIBS=$LIBS
856 LIBS="$LIBS -lRSAglue -lrsaref"
857 AC_CHECK_LIB(ssl, SSL_connect)
858 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
859 dnl still no SSL_connect
860 AC_MSG_RESULT(no)
861 LIBS=$OLIBS
862 else
863 AC_MSG_RESULT(yes)
864 fi
b32bf427 865
df3ca591 866 else
b32bf427 867
df3ca591
DS
868 dnl Have the libraries--check for SSLeay/OpenSSL headers
869 AC_CHECK_HEADERS(openssl/x509.h openssl/rsa.h openssl/crypto.h \
870 openssl/pem.h openssl/ssl.h openssl/err.h,
cff90cf3 871 curl_ssl_msg="enabled"
df3ca591
DS
872 OPENSSL_ENABLED=1
873 AC_DEFINE(USE_OPENSSL, 1, [if OpenSSL is in use]))
874
875 if test $ac_cv_header_openssl_x509_h = no; then
876 AC_CHECK_HEADERS(x509.h rsa.h crypto.h pem.h ssl.h err.h,
877 curl_ssl_msg="enabled"
878 OPENSSL_ENABLED=1)
879 fi
880 fi
881
f966dad3
DS
882 if test X"$OPENSSL_ENABLED" = X"1"; then
883 AC_DEFINE(USE_SSLEAY, 1, [if SSL is enabled])
090a7f38
DS
884
885 dnl is there a pkcs12.h header present?
886 AC_CHECK_HEADERS(openssl/pkcs12.h)
c4f7570a
DF
887 else
888 LIBS="$CLEANLIBS"
f966dad3 889 fi
c4f7570a
DF
890 dnl USE_SSLEAY is the historical name for what configure calls
891 dnl OPENSSL_ENABLED; the names should really be unified
df3ca591 892 USE_SSLEAY="$OPENSSL_ENABLED"
df3ca591 893 AC_SUBST(USE_SSLEAY)
df3ca591
DS
894
895 if test X"$OPT_SSL" != Xoff &&
896 test "$OPENSSL_ENABLED" != "1"; then
897 AC_MSG_ERROR([OpenSSL libs and/or directories were not found where specified!])
1ee7f92c 898 fi
df3ca591
DS
899 fi
900
901
902dnl **********************************************************************
903dnl Check for the CA bundle
904dnl **********************************************************************
1ee7f92c 905
df3ca591 906 if test X"$OPENSSL_ENABLED" = X"1"; then
e157aabd 907 dnl If the ENGINE library seems to be around, check for the OpenSSL engine
f169b750
DS
908 dnl stuff, it is kind of "separated" from the main SSL check
909 AC_CHECK_FUNC(ENGINE_init,
910 [
911 AC_CHECK_HEADERS(openssl/engine.h)
912 AC_CHECK_FUNCS( ENGINE_load_builtin_engines )
913 ])
af6c3947 914
2c2baa93
DS
915 AC_MSG_CHECKING([CA cert bundle install path])
916
917 AC_ARG_WITH(ca-bundle,
918AC_HELP_STRING([--with-ca-bundle=FILE], [File name to install the CA bundle as])
919AC_HELP_STRING([--without-ca-bundle], [Don't install the CA bundle]),
920 [ ca="$withval" ],
921 [
922 if test "x$prefix" != xNONE; then
923 ca="\${prefix}/share/curl/curl-ca-bundle.crt"
924 else
925 ca="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
926 fi
927 ] )
928
929 if test X"$OPT_SSL" = Xno; then
930 ca="no"
931 fi
932
933 if test "x$ca" != "xno"; then
934 CURL_CA_BUNDLE='"'$ca'"'
935 AC_SUBST(CURL_CA_BUNDLE)
936 fi
937 AC_MSG_RESULT([$ca])
938
939 dnl these can only exist if openssl exists
940
941 AC_CHECK_FUNCS( RAND_status \
942 RAND_screen \
e16bc916
DS
943 RAND_egd \
944 CRYPTO_cleanup_all_ex_data )
2c2baa93 945
ae1912cb 946 fi
00505c92 947
df3ca591 948 if test "$OPENSSL_ENABLED" = "1"; then
98adcdd4
DS
949 dnl when the ssl shared libs were found in a path that the run-time linker
950 dnl doesn't search through, we need to add it to LD_LIBRARY_PATH to
951 dnl prevent further configure tests to fail due to this
952 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$EXTRA_SSL/lib$libsuff"
953 export LD_LIBRARY_PATH
1ee7f92c
DS
954 fi
955
ae1912cb
DS
956fi
957
2c2baa93
DS
958AM_CONDITIONAL(CABUNDLE, test x$ca != xno)
959
df3ca591
DS
960dnl **********************************************************************
961dnl Check for the random seed preferences
962dnl **********************************************************************
963
964if test X"$OPENSSL_ENABLED" = X"1"; then
965 AC_ARG_WITH(egd-socket,
966 AC_HELP_STRING([--with-egd-socket=FILE],
967 [Entropy Gathering Daemon socket pathname]),
968 [ EGD_SOCKET="$withval" ]
969 )
970 if test -n "$EGD_SOCKET" ; then
971 AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET",
972 [your Entropy Gathering Daemon socket pathname] )
973 fi
974
975 dnl Check for user-specified random device
976 AC_ARG_WITH(random,
977 AC_HELP_STRING([--with-random=FILE],
978 [read randomness from FILE (default=/dev/urandom)]),
979 [ RANDOM_FILE="$withval" ],
980 [
981 dnl Check for random device
982 AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] )
983 ]
984 )
985 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
986 AC_SUBST(RANDOM_FILE)
987 AC_DEFINE_UNQUOTED(RANDOM_FILE, "$RANDOM_FILE",
988 [a suitable file to read random data from])
989 fi
990fi
991
ae1912cb
DS
992dnl **********************************************************************
993dnl Check for the presence of ZLIB libraries and headers
994dnl **********************************************************************
995
ae1912cb 996dnl Check for & handle argument to --with-zlib.
ae1912cb 997
e157aabd
DS
998_cppflags=$CPPFLAGS
999_ldflags=$LDFLAGS
e157aabd 1000AC_ARG_WITH(zlib,
f136f435
DS
1001AC_HELP_STRING([--with-zlib=PATH],[search for zlib in PATH])
1002AC_HELP_STRING([--without-zlib],[disable use of zlib]),
1003 [OPT_ZLIB="$withval"])
e890113f 1004
18d87edd
DF
1005if test "$OPT_ZLIB" = "no" ; then
1006 AC_MSG_WARN([zlib disabled])
1007else
1008 if test "$OPT_ZLIB" = "yes" ; then
1009 OPT_ZLIB=""
1010 fi
1011
1012 if test -z "$OPT_ZLIB" ; then
e157aabd
DS
1013 dnl check for the lib first without setting any new path, since many
1014 dnl people have it in the default path
1015
de100f8b
DS
1016 AC_CHECK_LIB(z, inflateEnd,
1017 dnl libz found, set the variable
1018 [HAVE_LIBZ="1"],
18d87edd
DF
1019 dnl if no lib found, try /usr/local
1020 [OPT_ZLIB="/usr/local"])
e157aabd 1021
18d87edd 1022 fi
de100f8b 1023
18d87edd
DF
1024 dnl Add a nonempty path to the compiler flags
1025 if test -n "$OPT_ZLIB"; then
1026 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
1027 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
1028 fi
1029
1030 AC_CHECK_HEADER(zlib.h,
1031 [
1032 dnl zlib.h was found
1033 HAVE_ZLIB_H="1"
1034 dnl if the lib wasn't found already, try again with the new paths
1035 if test "$HAVE_LIBZ" != "1"; then
1036 AC_CHECK_LIB(z, gzread,
1037 [
1038 dnl the lib was found!
1039 HAVE_LIBZ="1"
1040 ],
1041 [ CPPFLAGS=$_cppflags
1042 LDFLAGS=$_ldflags])
de100f8b 1043 fi
18d87edd
DF
1044 ],
1045 [
1046 dnl zlib.h was not found, restore the flags
1047 CPPFLAGS=$_cppflags
1048 LDFLAGS=$_ldflags]
1049 )
1050
1051 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
1052 then
1053 AC_MSG_WARN([configure found only the libz lib, not the header file!])
1054 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
1055 then
1056 AC_MSG_WARN([configure found only the libz header file, not the lib!])
1057 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
1058 then
1059 dnl both header and lib were found!
1060 AC_SUBST(HAVE_LIBZ)
1061 AC_DEFINE(HAVE_ZLIB_H, 1, [if you have the zlib.h header file])
1062 AC_DEFINE(HAVE_LIBZ, 1, [if zlib is available])
1063
1064 LIBS="$LIBS -lz"
1065
1066 dnl replace 'HAVE_LIBZ' in the automake makefile.ams
1067 AMFIXLIB="1"
1068 AC_MSG_NOTICE([found both libz and libz.h header])
1069 curl_zlib_msg="enabled"
1070 fi
1071fi
b174aeaa 1072
4a8155b5 1073dnl set variable for use in automakefile(s)
de100f8b 1074AM_CONDITIONAL(HAVE_LIBZ, test x"$AMFIXLIB" = x1)
4a8155b5 1075
cff90cf3 1076AC_MSG_CHECKING([whether to build with libidn])
96002646 1077AC_ARG_WITH(libidn,
cff90cf3
DS
1078AC_HELP_STRING([--with-libidn=PATH],[Enable libidn usage])
1079AC_HELP_STRING([--without-libidn],[Disable libidn usage]),
96002646 1080 [LIBIDN="$withval"])
cff90cf3
DS
1081
1082case "$LIBIDN" in
1083 no)
1084 AC_MSG_RESULT(no)
1085 ;;
1086 *) AC_MSG_RESULT(yes)
19a568a9
DS
1087
1088 idn=""
1089 dnl if there is a given path, check that FIRST
7bb6d76d
DS
1090 if test -n "$LIBIDN"; then
1091 if test "x$LIBIDN" != "xyes"; then
1092 AC_MSG_WARN([moo moo $LIBIDN])
1093 oldLDFLAGS=$LDFLAGS
1094 oldCPPFLAGS=$CPPFLAGS
1095 LDFLAGS="$LDFLAGS -L$LIBIDN/lib"
1096 CPPFLAGS="$CPPFLAGS -I$LIBIDN/include"
1097 idn="yes"
1098 AC_CHECK_LIB(idn, idna_to_ascii_4i, ,
1099 idn=""
1100 LDFLAGS=$oldLDFLAGS
1101 CPPFLAGS=$oldCPPFLAGS)
1102 fi
19a568a9
DS
1103 fi
1104
1105 if test "x$idn" != "xyes"; then
1106 dnl check with default paths
8c16696f 1107 idn="yes"
19a568a9
DS
1108 AC_CHECK_LIB(idn, idna_to_ascii_lz, ,
1109 idn="")
1110 fi
1111
1112 if test "x$idn" = "xyes"; then
cff90cf3 1113 curl_idn_msg="enabled"
4e7575fc 1114 dnl different versions of libidn have different setups of these:
1239e483 1115 AC_CHECK_FUNCS( idn_free idna_strerror tld_strerror)
c6881660 1116 AC_CHECK_HEADERS( idn-free.h tld.h )
cff90cf3
DS
1117 fi
1118
1119 ;;
1120esac
1121
b174aeaa
DS
1122dnl Default is to try the thread-safe versions of a few functions
1123OPT_THREAD=on
243942a7
DS
1124
1125dnl detect AIX 4.3 or later
1126dnl see full docs on this reasoning in the lib/hostip.c source file
1127AC_MSG_CHECKING([AIX 4.3 or later])
1128AC_PREPROC_IFELSE([
1129#if defined(_AIX) && defined(_AIX43)
1130printf("just fine");
1131#else
1132#error "this is not AIX 4.3 or later"
1133#endif
1134],
1135 [ AC_MSG_RESULT([yes])
abd65e21 1136 RECENTAIX=yes
243942a7
DS
1137 OPT_THREAD=off ],
1138 [ AC_MSG_RESULT([no]) ]
1139)
1140
b174aeaa 1141AC_ARG_ENABLE(thread,dnl
a53d7848
DS
1142AC_HELP_STRING([--disable-thread],[don't look for thread-safe functions])
1143AC_HELP_STRING([--enable-thread],[look for thread-safe functions]),
1144[ case "$enableval" in
1145 no)
1146 OPT_THREAD=off
1147 AC_MSG_WARN(libcurl will not get built using thread-safe functions)
1148 ;;
1149 *)
1150 ;;
1151 esac
1152]
b174aeaa
DS
1153)
1154
1155if test X"$OPT_THREAD" = Xoff
1156then
b174aeaa
DS
1157 AC_DEFINE(DISABLED_THREADSAFE, 1, \
1158Set to explicitly specify we don't want to use thread-safe functions)
1159else
9f2780a2
DS
1160 if test "$ipv6" != "yes"; then
1161 dnl dig around for gethostbyname_r()
1162 CURL_CHECK_GETHOSTBYNAME_R()
b174aeaa 1163
9f2780a2 1164 dnl dig around for gethostbyaddr_r()
f633ab68 1165 dnl CURL_CHECK_GETHOSTBYADDR_R()
9f2780a2 1166 fi
d4731b70 1167
61fb8fea
DS
1168 dnl poke around for inet_ntoa_r()
1169 CURL_CHECK_INET_NTOA_R()
d4731b70 1170
61fb8fea
DS
1171 dnl is there a localtime_r()
1172 CURL_CHECK_LOCALTIME_R()
d4731b70 1173
242be557
DS
1174 dnl is there a strerror_r()
1175 CURL_CHECK_STRERROR_R()
1176
650b9504 1177 AC_CHECK_FUNCS( gmtime_r )
b174aeaa
DS
1178fi
1179
abd65e21 1180dnl for recent AIX versions, we skip all the thread-safe checks above since
0eace2fe
DS
1181dnl they claim a thread-safe libc using the standard API. But there are
1182dnl some functions still not thread-safe. Check for these!
1183
1184dnl Let's hope this split URL remains working:
1185dnl http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/ \
1186dnl genprogc/thread_quick_ref.htm
abd65e21
DS
1187
1188if test "x$RECENTAIX" = "xyes"; then
db302a10
DS
1189
1190 AC_DEFINE(_THREAD_SAFE, 1, [define this if you need it to compile thread-safe code])
62af3fb7
DS
1191
1192 dnl check if this is the IMB xlc compiler
1193 dnl Details thanks to => http://predef.sourceforge.net/
1194 AC_MSG_CHECKING([if this is the xlc compiler])
1195 AC_EGREP_CPP([^__xlC__], [__xlC__],
1196 dnl action if the text is found, this it has not been replaced by the
1197 dnl cpp
1198 XLC="no"
1199 AC_MSG_RESULT([no]),
1200 dnl the text was not found, it was replaced by the cpp
1201 XLC="yes"
1202 AC_MSG_RESULT([yes])
1203 CFLAGS="$CFLAGS -qthreaded"
1204 )
1205
62ff567c
DS
1206
1207 dnl is there a localtime_r()
1208 CURL_CHECK_LOCALTIME_R()
1209
1210 dnl is there a strerror_r()
1211 CURL_CHECK_STRERROR_R()
1212
1213 AC_CHECK_FUNCS( gmtime_r )
abd65e21
DS
1214fi
1215
1216
ae1912cb
DS
1217dnl **********************************************************************
1218dnl Back to "normal" configuring
1219dnl **********************************************************************
1220
1221dnl Checks for header files.
1222AC_HEADER_STDC
075c5342
DS
1223
1224dnl First check for the very most basic headers. Then we can use these
1225dnl ones as default-headers when checking for the rest!
1226AC_CHECK_HEADERS(
1227 sys/types.h \
1228 sys/time.h \
1229 sys/select.h \
1230 sys/socket.h \
a4351517 1231 sys/ioctl.h \
24ac5b8a 1232 assert.h \
ae1912cb 1233 unistd.h \
8898ff9e
DS
1234 malloc.h \
1235 stdlib.h \
3d66d10f 1236 limits.h \
ae1912cb
DS
1237 arpa/inet.h \
1238 net/if.h \
1239 netinet/in.h \
43137cf5 1240 netinet/tcp.h \
ae1912cb 1241 netdb.h \
ae1912cb
DS
1242 sys/sockio.h \
1243 sys/stat.h \
ae1912cb
DS
1244 sys/param.h \
1245 termios.h \
1246 termio.h \
1247 sgtty.h \
1248 fcntl.h \
1249 dlfcn.h \
1250 alloca.h \
1251 winsock.h \
2e973684 1252 winsock2.h \
ae1912cb
DS
1253 time.h \
1254 io.h \
5900c0f7 1255 pwd.h \
82d3ded9 1256 utime.h \
3c49b405 1257 sys/utime.h \
99dfdebc 1258 sys/poll.h \
a4e1ac79 1259 sys/resource.h \
8e872231 1260 libgen.h \
82d6cfa7 1261 locale.h \
65dbee01 1262 errno.h \
075c5342
DS
1263 setjmp.h,
1264dnl to do if not found
1265[],
1266dnl to do if found
1267[],
1268dnl default includes
1269[
1270#ifdef HAVE_SYS_TYPES_H
1271#include <sys/types.h>
1272#endif
1273#ifdef HAVE_SYS_TIME_H
1274#include <sys/time.h>
1275#endif
1276#ifdef HAVE_SYS_SELECT_H
1277#include <sys/select.h>
1278#endif
1279#ifdef HAVE_SYS_SOCKET_H
1280#include <sys/socket.h>
1281#endif
d85c2199
DS
1282#ifdef HAVE_NETINET_IN_H
1283#include <netinet/in.h>
1284#endif
075c5342 1285]
ae1912cb
DS
1286)
1287
ae1912cb
DS
1288dnl Checks for typedefs, structures, and compiler characteristics.
1289AC_C_CONST
1290AC_TYPE_SIZE_T
1291AC_HEADER_TIME
1292
6cd0a90b
DS
1293AC_CHECK_SIZEOF(curl_off_t, ,[
1294#include <stdio.h>
1295#include "$srcdir/include/curl/curl.h"
1296])
78e6508e 1297AC_CHECK_SIZEOF(size_t)
af677c4e 1298AC_CHECK_SIZEOF(long)
cd73a733 1299AC_CHECK_SIZEOF(time_t)
ae1912cb 1300
a147a079 1301AC_CHECK_TYPE(long long,
af677c4e
DS
1302 [AC_DEFINE(HAVE_LONGLONG, 1, [if your compiler supports long long])]
1303 longlong="yes"
1304)
1305
1306if test "xyes" = "x$longlong"; then
1307 AC_MSG_CHECKING([if numberLL works])
1308 AC_COMPILE_IFELSE([long long val = 1000LL;],
1309 [AC_DEFINE(HAVE_LL, 1, [if your compiler supports LL])]
1310 AC_MSG_RESULT(yes),
1311 AC_MSG_RESULT(no)
1312 )
1313fi
1314
ae1912cb 1315
61e2a810 1316# check for ssize_t
a147a079
DS
1317AC_CHECK_TYPE(ssize_t, ,
1318 AC_DEFINE(ssize_t, int, [the signed version of size_t]))
61e2a810 1319
a1cec0e4 1320TYPE_SOCKLEN_T
d09b4369 1321TYPE_IN_ADDR_T
11693c0f 1322
ad05d0a8
DS
1323AC_FUNC_SELECT_ARGTYPES
1324
ae1912cb
DS
1325dnl Checks for library functions.
1326dnl AC_PROG_GCC_TRADITIONAL
1327AC_TYPE_SIGNAL
f8e916db 1328dnl AC_FUNC_VPRINTF
4eb9ac08
DS
1329AC_CHECK_FUNCS( strtoll \
1330 socket \
ae1912cb
DS
1331 select \
1332 strdup \
1333 strstr \
4e376a2f 1334 strtok_r \
ae1912cb
DS
1335 uname \
1336 strcasecmp \
95c2534a
DS
1337 stricmp \
1338 strcmpi \
ae1912cb 1339 gethostbyaddr \
ae1912cb
DS
1340 gettimeofday \
1341 inet_addr \
1342 inet_ntoa \
c86768d8 1343 inet_pton \
ae1912cb 1344 perror \
0e31dadf 1345 closesocket \
02437b2d 1346 siginterrupt \
852b664e 1347 sigaction \
1ff573c6 1348 signal \
f6e2bfd4 1349 getpass_r \
92186dc3
DS
1350 strlcat \
1351 getpwuid \
43d0d756 1352 geteuid \
5900c0f7 1353 dlopen \
3c49b405 1354 utime \
6a3e2272 1355 sigsetjmp \
8e872231 1356 basename \
82d6cfa7 1357 setlocale \
2e973684 1358 ftruncate \
facfa19c 1359 pipe \
a4e1ac79
DS
1360 poll \
1361 getrlimit \
1362 setrlimit,
70b80b01
DS
1363dnl if found
1364[],
1365dnl if not found, $ac_func is the name we check for
1366 func="$ac_func"
1367 AC_MSG_CHECKING([deeper for $func])
1368 AC_TRY_LINK( [],
1369 [ $func ();],
1370 AC_MSG_RESULT(yes!)
d65587b0 1371 eval "ac_cv_func_$func=yes"
70b80b01 1372 def=`echo "HAVE_$func" | tr 'a-z' 'A-Z'`
d65587b0 1373 AC_DEFINE_UNQUOTED($def, 1, [If you have $func]),
70b80b01
DS
1374 AC_MSG_RESULT(but still no)
1375 )
1376
ae1912cb
DS
1377)
1378
25559ac0
DS
1379dnl For some reason, the check above doesn't properly detect select() with
1380dnl Msys/Mingw
1381if test "$ac_cv_func_select" != "yes"; then
1382 AC_MSG_CHECKING([for select in ws2_32])
1383 AC_TRY_LINK([#include <winsock2.h>],
1384 [select(0,(fd_set *)NULL,(fd_set *)NULL,(fd_set *)NULL,(struct timeval *)NULL);],
1385 [ dnl worked!
1386 AC_MSG_RESULT([yes])
1387 HAVE_SELECT="1"
1388 AC_DEFINE_UNQUOTED(HAVE_SELECT,1)],
1389 [AC_MSG_ERROR(You can't compile without a select)]
1390 )
1391fi
1392
3c49b405
DS
1393dnl sigsetjmp() might be a macro and no function so if it isn't found already
1394dnl we make an extra check here!
1395if test "$ac_cv_func_sigsetjmp" != "yes"; then
1396 AC_MSG_CHECKING([for sigsetjmp defined as macro])
1397 AC_TRY_LINK( [#include <setjmp.h>],
1398 [sigjmp_buf jmpenv;
1399 sigsetjmp(jmpenv, 1);],
1400 AC_MSG_RESULT(yes)
22a32389 1401 AC_DEFINE(HAVE_SIGSETJMP, 1, [If you have sigsetjmp]),
3c49b405
DS
1402 AC_MSG_RESULT(no)
1403 )
1404fi
1405
76637759
DS
1406AC_CHECK_DECL(basename, ,
1407 AC_DEFINE(NEED_BASENAME_PROTO, 1, [If you lack a fine basename() prototype]),
1408#ifdef HAVE_STRING_H
1409#include <string.h>
1410#endif
1411#ifdef HAVE_LIBGEN_H
1412#include <libgen.h>
1413#endif
1414)
1415
a7b99fc4
DS
1416dnl poll() might be badly emulated, as in Mac OS X 10.3 (and other BSDs?) and
1417dnl to find out we make an extra check here!
1418if test "$ac_cv_func_poll" = "yes"; then
1419 AC_MSG_CHECKING([if poll works with NULL inputs])
1420 AC_RUN_IFELSE([
1421#ifdef HAVE_SYS_POLL_H
1422#include <sys/poll.h>
1423#endif
1424
1425 int main(void)
1426 {
1427 /* make this return 0 == timeout since there's nothing to read from */
1428 return poll((void *)0, 0, 10 /*ms*/);
1429 }
1430],
1431 AC_MSG_RESULT(yes)
1432 AC_DEFINE(HAVE_POLL_FINE, 1, [If you have a fine poll]),
1433 AC_MSG_RESULT(no),
1434 AC_MSG_RESULT(cross-compiling assumes yes)
1435 AC_DEFINE(HAVE_POLL_FINE, 1, [If you have a fine poll])
1436 ) dnl end of AC_RUN_IFELSE
1437fi
1438
1439
1440
7dc36344
DS
1441AC_PATH_PROG( PERL, perl, ,
1442 $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin )
1443AC_SUBST(PERL)
ae1912cb 1444
90719eb3 1445AC_PATH_PROGS( NROFF, gnroff nroff, ,
ae1912cb 1446 $PATH:/usr/bin/:/usr/local/bin )
96dde76b 1447AC_SUBST(NROFF)
ae1912cb 1448
773e7e87
DS
1449if test -n "$NROFF"; then
1450 dnl only check for nroff options if an nroff command was found
1451
1452 AC_MSG_CHECKING([how to use *nroff to get plain text from man pages])
1453 MANOPT="-man"
37685848
DS
1454 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
1455 if test -z "$mancheck"; then
773e7e87
DS
1456 MANOPT="-mandoc"
1457 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
1458 if test -z "$mancheck"; then
1459 MANOPT=""
1460 AC_MSG_RESULT([failed])
1461 AC_MSG_WARN([found no *nroff option to get plaintext from man pages])
1462 else
1463 AC_MSG_RESULT([$MANOPT])
1464 fi
37685848
DS
1465 else
1466 AC_MSG_RESULT([$MANOPT])
1467 fi
773e7e87
DS
1468 AC_SUBST(MANOPT)
1469fi
1470
1471if test -z "$MANOPT"
1472then
1473 dnl if no nroff tool was found, or no option that could convert man pages
1474 dnl was found, then disable the built-in manual stuff
1475 AC_MSG_WARN([disabling built-in manual])
1476 USE_MANUAL="no";
37685848 1477fi
37685848 1478
f3663a9d
DS
1479dnl *************************************************************************
1480dnl If the manual variable still is set, then we go with providing a built-in
1481dnl manual
1482
1483if test "$USE_MANUAL" = "1"; then
1484 AC_DEFINE(USE_MANUAL, 1, [If you want to build curl with the built-in manual])
cff90cf3 1485 curl_manual_msg="enabled"
f3663a9d
DS
1486fi
1487
1488dnl set variable for use in automakefile(s)
1489AM_CONDITIONAL(USE_MANUAL, test x"$USE_MANUAL" = x1)
1490
673ff5eb
DS
1491AC_MSG_CHECKING([whether to enable ares])
1492AC_ARG_ENABLE(ares,
1493AC_HELP_STRING([--enable-ares=PATH],[Enable ares for name lookups])
1494AC_HELP_STRING([--disable-ares],[Disable ares for name lookups]),
1495[ case "$enableval" in
1496 no)
1497 AC_MSG_RESULT(no)
1498 ;;
1499 *) AC_MSG_RESULT(yes)
1500
1501 if test "x$IPV6_ENABLED" = "x1"; then
1502 AC_MSG_ERROR([ares doesn't work with ipv6, disable ipv6 to use ares])
1503 fi
1504
1505 AC_DEFINE(USE_ARES, 1, [Define if you want to enable ares support])
1506 dnl substitute HAVE_ARES for curl-config and similar
1507 HAVE_ARES="1"
1508 AC_SUBST(HAVE_ARES)
1509 curl_ares_msg="enabled"
1510
1511 LIBS="$LIBS -lcares"
1512
1513 dnl For backwards compatibility default to includes/lib in srcdir/ares
1514 dnl If a value is specified it is assumed that the libs are in $val/lib
1515 dnl and the includes are in $val/include. This is the default setup for
1516 dnl ares so it should not be a problem.
1517 if test "x$enableval" = "xyes" ; then
1518 if test -d "$srcdir/ares"; then
1519 aresembedded="yes"
1520 AC_CONFIG_SUBDIRS(ares)
1521 aresinc=`cd $srcdir/ares && pwd`
1522 CPPFLAGS="$CPPFLAGS -I$aresinc"
1523
1524 dnl the pwd= below cannot 'cd' into the ares dir to get the full
1525 dnl path to it, since it may not exist yet if we build outside of
1526 dnl the source tree
1527 pwd=`pwd`
1528 LDFLAGS="$LDFLAGS -L$pwd/ares"
1529 fi
1530 else
1531 CPPFLAGS="$CPPFLAGS -I$enableval/include"
1532 LDFLAGS="$LDFLAGS -L$enableval/lib"
1533 fi
1534
1535 if test -z "$aresembedded"; then
1536 dnl verify that a sufficient c-ares is here if we have pointed one
1537 dnl out and don't use the "embedded" ares dir (in which case we don't
1538 dnl check it because it might not have been built yet)
1539 AC_MSG_CHECKING([that c-ares is good and recent enough])
1540 AC_LINK_IFELSE( [
1541#include <ares.h>
1542/* provide a set of dummy functions in case c-ares was built with debug */
1543void curl_dofree() { }
1544void curl_sclose() { }
1545void curl_domalloc() { }
f3663a9d 1546
673ff5eb
DS
1547int main(void)
1548{
1549 ares_channel channel;
1550 ares_cancel(channel);
1551 return 0;
1552}
1553],
1554 AC_MSG_RESULT(yes),
1555 AC_MSG_RESULT(no)
1556 AC_MSG_ERROR([c-ares library defective or too old])
1557 )
1558 fi
1559 ;;
1560 esac ],
1561 AC_MSG_RESULT(no)
1562)
ae1912cb 1563
710e370c
DS
1564dnl ************************************************************
1565dnl disable verbose text strings
1566dnl
1567AC_MSG_CHECKING([whether to enable verbose strings])
1568AC_ARG_ENABLE(verbose,
1569AC_HELP_STRING([--enable-verbose],[Enable verbose strings])
1570AC_HELP_STRING([--disable-verbose],[Disable verbose strings]),
1571[ case "$enableval" in
1572 no)
1573 AC_MSG_RESULT(no)
1574 AC_DEFINE(CURL_DISABLE_VERBOSE_STRINGS, 1, [to disable verbose strings])
1575 AC_SUBST(CURL_DISABLE_VERBOSE_STRINGS)
1576 curl_verbose_msg="no"
1577 ;;
1578 *) AC_MSG_RESULT(yes)
1579 ;;
1580 esac ],
1581 AC_MSG_RESULT(yes)
1582)
1583
8ed31c48
DS
1584dnl ************************************************************
1585dnl enable SSPI support
1586dnl
1587AC_MSG_CHECKING([whether to enable SSPI support (win32 builds only)])
1588AC_ARG_ENABLE(sspi,
1589AC_HELP_STRING([--enable-sspi],[Enable SSPI])
1590AC_HELP_STRING([--disable-sspi],[Disable SSPI]),
1591[ case "$enableval" in
1592 yes)
1593 AC_MSG_RESULT(yes)
1594 AC_DEFINE(USE_WINDOWS_SSPI, 1, [to enable SSPI support])
1595 AC_SUBST(USE_WINDOWS_SSPI)
1596 LIBS="$LIBS -lsecur32"
1597 curl_sspi_msg="yes"
1598 ;;
1599 *)
1600 AC_MSG_RESULT(no)
1601 ;;
1602 esac ],
1603 AC_MSG_RESULT(no)
1604)
1605
3c49b405
DS
1606dnl ************************************************************
1607dnl lame option to switch on debug options
1608dnl
1609AC_MSG_CHECKING([whether to enable debug options])
1610AC_ARG_ENABLE(debug,
f136f435
DS
1611AC_HELP_STRING([--enable-debug],[Enable pedantic debug options])
1612AC_HELP_STRING([--disable-debug],[Disable debug options]),
3c49b405
DS
1613[ case "$enableval" in
1614 no)
1615 AC_MSG_RESULT(no)
1616 ;;
1617 *) AC_MSG_RESULT(yes)
1618
f8c3b3aa 1619 CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
4fa58560 1620 CFLAGS="$CFLAGS -g"
455b1af2 1621
4fa58560
DS
1622 dnl set compiler "debug" options to become more picky, and remove
1623 dnl optimize options from CFLAGS
1624 CURL_CC_DEBUG_OPTS
3c49b405 1625 ;;
4fa58560
DS
1626 esac
1627 ],
3c49b405
DS
1628 AC_MSG_RESULT(no)
1629)
1630
94043b11
DS
1631dnl ************************************************************
1632dnl disable cryptographic authentication
1633dnl
1634AC_MSG_CHECKING([whether to enable cryptographic authentication methods])
1635AC_ARG_ENABLE(crypto-auth,
1636AC_HELP_STRING([--enable-crypto-auth],[Enable cryptographic authentication])
1637AC_HELP_STRING([--disable-crypto-auth],[Disable cryptographic authentication]),
1638[ case "$enableval" in
1639 no)
1640 AC_MSG_RESULT(no)
1641 AC_DEFINE(CURL_DISABLE_CRYPTO_AUTH, 1, [to disable cryptographic authentication])
1642 AC_SUBST(CURL_DISABLE_CRYPTO_AUTH)
1643 ;;
1644 *) AC_MSG_RESULT(yes)
1645 ;;
1646 esac ],
1647 AC_MSG_RESULT(yes)
1648)
1649
ac269a8f
DS
1650dnl ************************************************************
1651dnl disable cookies support
1652dnl
1653AC_MSG_CHECKING([whether to enable support for cookies])
1654AC_ARG_ENABLE(cookies,
1655AC_HELP_STRING([--enable-cookies],[Enable cookies support])
1656AC_HELP_STRING([--disable-cookies],[Disable cookies support]),
1657[ case "$enableval" in
1658 no)
1659 AC_MSG_RESULT(no)
1660 AC_DEFINE(CURL_DISABLE_COOKIES, 1, [to disable cookies support])
1661 AC_SUBST(CURL_DISABLE_COOKIES)
1662 ;;
1663 *) AC_MSG_RESULT(yes)
1664 ;;
1665 esac ],
1666 AC_MSG_RESULT(yes)
1667)
1668
9f3d9da1
DS
1669if test "x$ws2" = "xyes"; then
1670
1671 dnl If ws2_32 is wanted, make sure it is the _last_ lib in LIBS (makes
1672 dnl things work when built with c-ares). But we can't just move it last
1673 dnl since then other stuff (SSL) won't build. So we simply append it to the
1674 dnl end.
1675
1676 LIBS="$LIBS -lws2_32"
1677
1678fi
1679
20705ca3
DS
1680AM_CONDITIONAL(CROSSCOMPILING, test x$cross_compiling = xyes)
1681
93c53424 1682AC_CONFIG_FILES([Makefile \
f71a1485 1683 docs/Makefile \
d54cdf29 1684 docs/examples/Makefile \
e22657ea 1685 docs/libcurl/Makefile \
c3c77398
DS
1686 include/Makefile \
1687 include/curl/Makefile \
ae1912cb 1688 src/Makefile \
172f0ba1 1689 lib/Makefile \
044ca343 1690 tests/Makefile \
b915ca68 1691 tests/data/Makefile \
fd8bf5f1 1692 tests/server/Makefile \
2aa0c6c4 1693 tests/libtest/Makefile \
9ade752f
DS
1694 packages/Makefile \
1695 packages/Win32/Makefile \
fbb9d23a 1696 packages/Win32/cygwin/Makefile \
9ade752f
DS
1697 packages/Linux/Makefile \
1698 packages/Linux/RPM/Makefile \
d54cdf29 1699 packages/Linux/RPM/curl.spec \
aa860990 1700 packages/Linux/RPM/curl-ssl.spec \
c503930b 1701 packages/Solaris/Makefile \
d78ec593 1702 packages/DOS/Makefile \
34f9ab10
DS
1703 packages/EPM/curl.list \
1704 packages/EPM/Makefile \
f19cade5 1705 packages/vms/Makefile \
df3ca591
DS
1706 curl-config \
1707 libcurl.pc
93c53424
DS
1708])
1709AC_OUTPUT
cff90cf3
DS
1710
1711AC_MSG_NOTICE([Configured to build curl/libcurl:
1712
1713 curl version: ${VERSION}
1714 Host setup: ${host}
1715 Install prefix: ${prefix}
1716 Compiler: ${CC}
1717 SSL support: ${curl_ssl_msg}
1718 zlib support: ${curl_zlib_msg}
1719 krb4 support: ${curl_krb4_msg}
1720 GSSAPI support: ${curl_gss_msg}
48975876 1721 SPNEGO support: ${curl_spnego_msg}
cff90cf3
DS
1722 c-ares support: ${curl_ares_msg}
1723 ipv6 support: ${curl_ipv6_msg}
96002646 1724 IDN support: ${curl_idn_msg}
cff90cf3
DS
1725 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
1726 Built-in manual: ${curl_manual_msg}
710e370c 1727 Verbose errors: ${curl_verbose_msg}
8ed31c48 1728 SSPI support: ${curl_sspi_msg}
cff90cf3 1729])