curl-confopts.m4 (22129B)
1 #*************************************************************************** 2 # _ _ ____ _ 3 # Project ___| | | | _ \| | 4 # / __| | | | |_) | | 5 # | (__| |_| | _ <| |___ 6 # \___|\___/|_| \_\_____| 7 # 8 # Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 9 # 10 # This software is licensed as described in the file COPYING, which 11 # you should have received as part of this distribution. The terms 12 # are also available at https://curl.se/docs/copyright.html. 13 # 14 # You may opt to use, copy, modify, merge, publish, distribute and/or sell 15 # copies of the Software, and permit persons to whom the Software is 16 # furnished to do so, under the terms of the COPYING file. 17 # 18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19 # KIND, either express or implied. 20 # 21 # SPDX-License-Identifier: curl 22 # 23 #*************************************************************************** 24 25 # File version for 'aclocal' use. Keep it a single number. 26 # serial 19 27 28 dnl CURL_CHECK_OPTION_THREADED_RESOLVER 29 dnl ------------------------------------------------- 30 dnl Verify if configure has been invoked with option 31 dnl --enable-threaded-resolver or --disable-threaded-resolver, and 32 dnl set shell variable want_threaded_resolver as appropriate. 33 34 AC_DEFUN([CURL_CHECK_OPTION_THREADED_RESOLVER], [ 35 AC_MSG_CHECKING([whether to enable the threaded resolver]) 36 OPT_THRES="default" 37 AC_ARG_ENABLE(threaded_resolver, 38 AS_HELP_STRING([--enable-threaded-resolver],[Enable threaded resolver]) 39 AS_HELP_STRING([--disable-threaded-resolver],[Disable threaded resolver]), 40 OPT_THRES=$enableval) 41 case "$OPT_THRES" in 42 no) 43 dnl --disable-threaded-resolver option used 44 want_threaded_resolver="no" 45 ;; 46 yes) 47 dnl --enable-threaded-resolver option used 48 want_threaded_resolver="yes" 49 ;; 50 *) 51 dnl configure option not specified 52 case $host_os in 53 msdos* | amiga*) 54 want_threaded_resolver="no" 55 ;; 56 *) 57 if test "$want_ares" = "yes"; then 58 want_threaded_resolver="no" 59 else 60 want_threaded_resolver="yes" 61 fi 62 ;; 63 esac 64 ;; 65 esac 66 AC_MSG_RESULT([$want_threaded_resolver]) 67 ]) 68 69 dnl CURL_CHECK_OPTION_ARES 70 dnl ------------------------------------------------- 71 dnl Verify if configure has been invoked with option 72 dnl --enable-ares or --disable-ares, and 73 dnl set shell variable want_ares as appropriate. 74 75 AC_DEFUN([CURL_CHECK_OPTION_ARES], [ 76 dnl AC_BEFORE([$0],[CURL_CHECK_OPTION_THREADS])dnl 77 AC_BEFORE([$0],[CURL_CHECK_LIB_ARES])dnl 78 AC_MSG_CHECKING([whether to enable c-ares for DNS lookups]) 79 OPT_ARES="default" 80 AC_ARG_ENABLE(ares, 81 AS_HELP_STRING([--enable-ares@<:@=PATH@:>@],[Enable c-ares for DNS lookups]) 82 AS_HELP_STRING([--disable-ares],[Disable c-ares for DNS lookups]), 83 OPT_ARES=$enableval) 84 case "$OPT_ARES" in 85 no) 86 dnl --disable-ares option used 87 want_ares="no" 88 ;; 89 default) 90 dnl configure option not specified 91 want_ares="no" 92 ;; 93 *) 94 dnl --enable-ares option used 95 want_ares="yes" 96 if test -n "$enableval" && test "$enableval" != "yes"; then 97 want_ares_path="$enableval" 98 fi 99 ;; 100 esac 101 AC_MSG_RESULT([$want_ares]) 102 ]) 103 104 105 dnl CURL_CHECK_OPTION_CURLDEBUG 106 dnl ------------------------------------------------- 107 dnl Verify if configure has been invoked with option 108 dnl --enable-curldebug or --disable-curldebug, and set 109 dnl shell variable want_curldebug value as appropriate. 110 111 AC_DEFUN([CURL_CHECK_OPTION_CURLDEBUG], [ 112 AC_BEFORE([$0],[CURL_CHECK_CURLDEBUG])dnl 113 AC_MSG_CHECKING([whether to enable curl debug memory tracking]) 114 OPT_CURLDEBUG_BUILD="default" 115 AC_ARG_ENABLE(curldebug, 116 AS_HELP_STRING([--enable-curldebug],[Enable curl debug memory tracking]) 117 AS_HELP_STRING([--disable-curldebug],[Disable curl debug memory tracking]), 118 OPT_CURLDEBUG_BUILD=$enableval) 119 case "$OPT_CURLDEBUG_BUILD" in 120 no) 121 dnl --disable-curldebug option used 122 want_curldebug="no" 123 AC_MSG_RESULT([no]) 124 ;; 125 default) 126 dnl configure's curldebug option not specified. Initially we will 127 dnl handle this as a request to use the same setting as option 128 dnl --enable-debug. IOW, initially, for debug-enabled builds 129 dnl this will be handled as a request to enable curldebug if 130 dnl possible, and for debug-disabled builds this will be handled 131 dnl as a request to disable curldebug. 132 if test "$want_debug" = "yes"; then 133 AC_MSG_RESULT([(assumed) yes]) 134 else 135 AC_MSG_RESULT([no]) 136 fi 137 want_curldebug_assumed="yes" 138 want_curldebug="$want_debug" 139 ;; 140 *) 141 dnl --enable-curldebug option used. 142 dnl The use of this option value is a request to enable curl's 143 dnl debug memory tracking for the libcurl library. This can only 144 dnl be done when some requisites are simultaneously satisfied. 145 dnl Later on, these requisites are verified and if they are not 146 dnl fully satisfied the option will be ignored and act as if 147 dnl --disable-curldebug had been given setting shell variable 148 dnl want_curldebug to 'no'. 149 want_curldebug="yes" 150 AC_MSG_RESULT([yes]) 151 ;; 152 esac 153 ]) 154 155 156 dnl CURL_CHECK_OPTION_DEBUG 157 dnl ------------------------------------------------- 158 dnl Verify if configure has been invoked with option 159 dnl --enable-debug or --disable-debug, and set shell 160 dnl variable want_debug value as appropriate. 161 162 AC_DEFUN([CURL_CHECK_OPTION_DEBUG], [ 163 AC_BEFORE([$0],[CURL_CHECK_OPTION_WARNINGS])dnl 164 AC_BEFORE([$0],[CURL_CHECK_OPTION_CURLDEBUG])dnl 165 AC_BEFORE([$0],[XC_CHECK_PROG_CC])dnl 166 AC_MSG_CHECKING([whether to enable debug build options]) 167 OPT_DEBUG_BUILD="default" 168 AC_ARG_ENABLE(debug, 169 AS_HELP_STRING([--enable-debug],[Enable debug build options]) 170 AS_HELP_STRING([--disable-debug],[Disable debug build options]), 171 OPT_DEBUG_BUILD=$enableval) 172 case "$OPT_DEBUG_BUILD" in 173 no) 174 dnl --disable-debug option used 175 want_debug="no" 176 ;; 177 default) 178 dnl configure option not specified 179 want_debug="no" 180 ;; 181 *) 182 dnl --enable-debug option used 183 want_debug="yes" 184 ;; 185 esac 186 AC_MSG_RESULT([$want_debug]) 187 ]) 188 189 dnl CURL_CHECK_OPTION_OPTIMIZE 190 dnl ------------------------------------------------- 191 dnl Verify if configure has been invoked with option 192 dnl --enable-optimize or --disable-optimize, and set 193 dnl shell variable want_optimize value as appropriate. 194 195 AC_DEFUN([CURL_CHECK_OPTION_OPTIMIZE], [ 196 AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])dnl 197 AC_BEFORE([$0],[XC_CHECK_PROG_CC])dnl 198 AC_MSG_CHECKING([whether to enable compiler optimizer]) 199 OPT_COMPILER_OPTIMIZE="default" 200 AC_ARG_ENABLE(optimize, 201 AS_HELP_STRING([--enable-optimize],[Enable compiler optimizations]) 202 AS_HELP_STRING([--disable-optimize],[Disable compiler optimizations]), 203 OPT_COMPILER_OPTIMIZE=$enableval) 204 case "$OPT_COMPILER_OPTIMIZE" in 205 no) 206 dnl --disable-optimize option used. We will handle this as 207 dnl a request to disable compiler optimizations if possible. 208 dnl If the compiler is known CFLAGS and CPPFLAGS will be 209 dnl overridden, otherwise this can not be honored. 210 want_optimize="no" 211 AC_MSG_RESULT([no]) 212 ;; 213 default) 214 dnl configure's optimize option not specified. Initially we will 215 dnl handle this as a request contrary to configure's setting 216 dnl for --enable-debug. IOW, initially, for debug-enabled builds 217 dnl this will be handled as a request to disable optimizations if 218 dnl possible, and for debug-disabled builds this will be handled 219 dnl initially as a request to enable optimizations if possible. 220 dnl Finally, if the compiler is known and CFLAGS and CPPFLAGS do 221 dnl not have any optimizer flag the request will be honored, in 222 dnl any other case the request can not be honored. 223 dnl IOW, existing optimizer flags defined in CFLAGS or CPPFLAGS 224 dnl will always take precedence over any initial assumption. 225 if test "$want_debug" = "yes"; then 226 want_optimize="assume_no" 227 AC_MSG_RESULT([(assumed) no]) 228 else 229 want_optimize="assume_yes" 230 AC_MSG_RESULT([(assumed) yes]) 231 fi 232 ;; 233 *) 234 dnl --enable-optimize option used. We will handle this as 235 dnl a request to enable compiler optimizations if possible. 236 dnl If the compiler is known CFLAGS and CPPFLAGS will be 237 dnl overridden, otherwise this can not be honored. 238 want_optimize="yes" 239 AC_MSG_RESULT([yes]) 240 ;; 241 esac 242 ]) 243 244 245 dnl CURL_CHECK_OPTION_SYMBOL_HIDING 246 dnl ------------------------------------------------- 247 dnl Verify if configure has been invoked with option 248 dnl --enable-symbol-hiding or --disable-symbol-hiding, 249 dnl setting shell variable want_symbol_hiding value. 250 251 AC_DEFUN([CURL_CHECK_OPTION_SYMBOL_HIDING], [ 252 AC_BEFORE([$0],[CURL_CHECK_COMPILER_SYMBOL_HIDING])dnl 253 AC_MSG_CHECKING([whether to enable hiding of library internal symbols]) 254 OPT_SYMBOL_HIDING="default" 255 AC_ARG_ENABLE(symbol-hiding, 256 AS_HELP_STRING([--enable-symbol-hiding],[Enable hiding of library internal symbols]) 257 AS_HELP_STRING([--disable-symbol-hiding],[Disable hiding of library internal symbols]), 258 OPT_SYMBOL_HIDING=$enableval) 259 case "$OPT_SYMBOL_HIDING" in 260 no) 261 dnl --disable-symbol-hiding option used. 262 dnl This is an indication to not attempt hiding of library internal 263 dnl symbols. Default symbol visibility will be used, which normally 264 dnl exposes all library internal symbols. 265 want_symbol_hiding="no" 266 AC_MSG_RESULT([no]) 267 ;; 268 default) 269 dnl configure's symbol-hiding option not specified. 270 dnl Handle this as if --enable-symbol-hiding option was given. 271 want_symbol_hiding="yes" 272 AC_MSG_RESULT([yes]) 273 ;; 274 *) 275 dnl --enable-symbol-hiding option used. 276 dnl This is an indication to attempt hiding of library internal 277 dnl symbols. This is only supported on some compilers/linkers. 278 want_symbol_hiding="yes" 279 AC_MSG_RESULT([yes]) 280 ;; 281 esac 282 ]) 283 284 285 dnl CURL_CHECK_OPTION_RT 286 dnl ------------------------------------------------- 287 dnl Verify if configure has been invoked with option 288 dnl --disable-rt and set shell variable dontwant_rt 289 dnl as appropriate. 290 291 AC_DEFUN([CURL_CHECK_OPTION_RT], [ 292 AC_BEFORE([$0], [CURL_CHECK_LIB_THREADS])dnl 293 AC_MSG_CHECKING([whether to disable dependency on -lrt]) 294 OPT_RT="default" 295 AC_ARG_ENABLE(rt, 296 AS_HELP_STRING([--disable-rt],[disable dependency on -lrt]), 297 OPT_RT=$enableval) 298 case "$OPT_RT" in 299 no) 300 dnl --disable-rt used (reverse logic) 301 dontwant_rt="yes" 302 AC_MSG_RESULT([yes]) 303 ;; 304 default) 305 dnl configure option not specified (so not disabled) 306 dontwant_rt="no" 307 AC_MSG_RESULT([(assumed no)]) 308 ;; 309 *) 310 dnl --enable-rt option used (reverse logic) 311 dontwant_rt="no" 312 AC_MSG_RESULT([no]) 313 ;; 314 esac 315 ]) 316 317 dnl CURL_CHECK_OPTION_WARNINGS 318 dnl ------------------------------------------------- 319 dnl Verify if configure has been invoked with option 320 dnl --enable-warnings or --disable-warnings, and set 321 dnl shell variable want_warnings as appropriate. 322 323 AC_DEFUN([CURL_CHECK_OPTION_WARNINGS], [ 324 AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])dnl 325 AC_BEFORE([$0],[CURL_CHECK_OPTION_WERROR])dnl 326 AC_BEFORE([$0],[XC_CHECK_PROG_CC])dnl 327 AC_MSG_CHECKING([whether to enable strict compiler warnings]) 328 OPT_COMPILER_WARNINGS="default" 329 AC_ARG_ENABLE(warnings, 330 AS_HELP_STRING([--enable-warnings],[Enable strict compiler warnings]) 331 AS_HELP_STRING([--disable-warnings],[Disable strict compiler warnings]), 332 OPT_COMPILER_WARNINGS=$enableval) 333 case "$OPT_COMPILER_WARNINGS" in 334 no) 335 dnl --disable-warnings option used 336 want_warnings="no" 337 ;; 338 default) 339 dnl configure option not specified, so 340 dnl use same setting as --enable-debug 341 want_warnings="$want_debug" 342 ;; 343 *) 344 dnl --enable-warnings option used 345 want_warnings="yes" 346 ;; 347 esac 348 AC_MSG_RESULT([$want_warnings]) 349 ]) 350 351 dnl CURL_CHECK_OPTION_WERROR 352 dnl ------------------------------------------------- 353 dnl Verify if configure has been invoked with option 354 dnl --enable-werror or --disable-werror, and set 355 dnl shell variable want_werror as appropriate. 356 357 AC_DEFUN([CURL_CHECK_OPTION_WERROR], [ 358 AC_BEFORE([$0],[CURL_CHECK_COMPILER])dnl 359 AC_MSG_CHECKING([whether to enable compiler warnings as errors]) 360 OPT_COMPILER_WERROR="default" 361 AC_ARG_ENABLE(werror, 362 AS_HELP_STRING([--enable-werror],[Enable compiler warnings as errors]) 363 AS_HELP_STRING([--disable-werror],[Disable compiler warnings as errors]), 364 OPT_COMPILER_WERROR=$enableval) 365 case "$OPT_COMPILER_WERROR" in 366 no) 367 dnl --disable-werror option used 368 want_werror="no" 369 ;; 370 default) 371 dnl configure option not specified 372 want_werror="no" 373 ;; 374 *) 375 dnl --enable-werror option used 376 want_werror="yes" 377 ;; 378 esac 379 AC_MSG_RESULT([$want_werror]) 380 ]) 381 382 383 dnl CURL_CHECK_NONBLOCKING_SOCKET 384 dnl ------------------------------------------------- 385 dnl Check for how to set a socket into non-blocking state. 386 387 AC_DEFUN([CURL_CHECK_NONBLOCKING_SOCKET], [ 388 AC_REQUIRE([CURL_CHECK_FUNC_FCNTL])dnl 389 AC_REQUIRE([CURL_CHECK_FUNC_IOCTLSOCKET])dnl 390 AC_REQUIRE([CURL_CHECK_FUNC_IOCTLSOCKET_CAMEL])dnl 391 # 392 tst_method="unknown" 393 394 AC_MSG_CHECKING([how to set a socket into non-blocking mode]) 395 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then 396 tst_method="fcntl O_NONBLOCK" 397 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then 398 tst_method="ioctl FIONBIO" 399 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then 400 tst_method="ioctlsocket FIONBIO" 401 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then 402 tst_method="IoctlSocket FIONBIO" 403 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then 404 tst_method="setsockopt SO_NONBLOCK" 405 fi 406 AC_MSG_RESULT([$tst_method]) 407 if test "$tst_method" = "unknown"; then 408 AC_MSG_WARN([cannot determine non-blocking socket method.]) 409 fi 410 ]) 411 412 413 dnl CURL_CONFIGURE_SYMBOL_HIDING 414 dnl ------------------------------------------------- 415 dnl Depending on --enable-symbol-hiding or --disable-symbol-hiding 416 dnl configure option, and compiler capability to actually honor such 417 dnl option, this will modify compiler flags as appropriate and also 418 dnl provide needed definitions for configuration and Makefile.am files. 419 dnl This macro should not be used until all compilation tests have 420 dnl been done to prevent interferences on other tests. 421 422 AC_DEFUN([CURL_CONFIGURE_SYMBOL_HIDING], [ 423 AC_MSG_CHECKING([whether hiding of library internal symbols will actually happen]) 424 CFLAG_CURL_SYMBOL_HIDING="" 425 doing_symbol_hiding="no" 426 if test "$want_symbol_hiding" = "yes" && 427 test "$supports_symbol_hiding" = "yes"; then 428 doing_symbol_hiding="yes" 429 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS" 430 AC_DEFINE_UNQUOTED(CURL_EXTERN_SYMBOL, $symbol_hiding_EXTERN, 431 [Definition to make a library symbol externally visible.]) 432 AC_MSG_RESULT([yes]) 433 else 434 AC_MSG_RESULT([no]) 435 fi 436 AM_CONDITIONAL(DOING_CURL_SYMBOL_HIDING, test x$doing_symbol_hiding = xyes) 437 AC_SUBST(CFLAG_CURL_SYMBOL_HIDING) 438 ]) 439 440 441 dnl CURL_CHECK_LIB_ARES 442 dnl ------------------------------------------------- 443 dnl When c-ares library support has been requested, performs necessary checks 444 dnl and adjustments needed to enable support of this library. 445 446 AC_DEFUN([CURL_CHECK_LIB_ARES], [ 447 # 448 if test "$want_ares" = "yes"; then 449 dnl c-ares library support has been requested 450 clean_CPPFLAGS="$CPPFLAGS" 451 clean_LDFLAGS="$LDFLAGS" 452 clean_LDFLAGSPC="$LDFLAGSPC" 453 clean_LIBS="$LIBS" 454 configure_runpath=`pwd` 455 if test -n "$want_ares_path"; then 456 dnl c-ares library path has been specified 457 ARES_PCDIR="$want_ares_path/lib/pkgconfig" 458 CURL_CHECK_PKGCONFIG(libcares, [$ARES_PCDIR]) 459 if test "$PKGCONFIG" != "no" ; then 460 ares_LIBS=`CURL_EXPORT_PCDIR([$ARES_PCDIR]) 461 $PKGCONFIG --libs-only-l libcares` 462 ares_LDFLAGS=`CURL_EXPORT_PCDIR([$ARES_PCDIR]) 463 $PKGCONFIG --libs-only-L libcares` 464 ares_CPPFLAGS=`CURL_EXPORT_PCDIR([$ARES_PCDIR]) 465 $PKGCONFIG --cflags-only-I libcares` 466 AC_MSG_NOTICE([pkg-config: ares LIBS: "$ares_LIBS"]) 467 AC_MSG_NOTICE([pkg-config: ares LDFLAGS: "$ares_LDFLAGS"]) 468 AC_MSG_NOTICE([pkg-config: ares CPPFLAGS: "$ares_CPPFLAGS"]) 469 else 470 dnl ... path without pkg-config 471 ares_CPPFLAGS="-I$want_ares_path/include" 472 ares_LDFLAGS="-L$want_ares_path/lib" 473 ares_LIBS="-lcares" 474 fi 475 else 476 dnl c-ares path not specified, use defaults 477 CURL_CHECK_PKGCONFIG(libcares) 478 if test "$PKGCONFIG" != "no" ; then 479 ares_LIBS=`$PKGCONFIG --libs-only-l libcares` 480 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares` 481 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares` 482 AC_MSG_NOTICE([pkg-config: ares_LIBS: "$ares_LIBS"]) 483 AC_MSG_NOTICE([pkg-config: ares_LDFLAGS: "$ares_LDFLAGS"]) 484 AC_MSG_NOTICE([pkg-config: ares_CPPFLAGS: "$ares_CPPFLAGS"]) 485 else 486 ares_CPPFLAGS="" 487 ares_LDFLAGS="" 488 ares_LIBS="-lcares" 489 fi 490 fi 491 # 492 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS" 493 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS" 494 LDFLAGSPC="$clean_LDFLAGSPC $ares_LDFLAGS" 495 LIBS="$ares_LIBS $clean_LIBS" 496 # 497 498 dnl check if c-ares new enough 499 AC_MSG_CHECKING([that c-ares is good and recent enough]) 500 AC_LINK_IFELSE([ 501 AC_LANG_PROGRAM([[ 502 #include <ares.h> 503 /* set of dummy functions in case c-ares was built with debug */ 504 void curl_dofree(void); void curl_dofree(void) {} 505 void curl_sclose(void); void curl_sclose(void) {} 506 void curl_domalloc(void); void curl_domalloc(void) {} 507 void curl_docalloc(void); void curl_docalloc(void) {} 508 void curl_socket(void); void curl_socket(void) {} 509 ]],[[ 510 ares_channel channel; 511 ares_cancel(channel); /* added in 1.2.0 */ 512 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */ 513 ares_dup(&channel, channel); /* added in 1.6.0 */ 514 ]]) 515 ],[ 516 AC_MSG_RESULT([yes]) 517 ],[ 518 AC_MSG_RESULT([no]) 519 AC_MSG_ERROR([c-ares library defective or too old]) 520 dnl restore initial settings 521 CPPFLAGS="$clean_CPPFLAGS" 522 LDFLAGS="$clean_LDFLAGS" 523 LDFLAGSPC="$clean_LDFLAGSPC" 524 LIBS="$clean_LIBS" 525 # prevent usage 526 want_ares="no" 527 ]) 528 529 if test "$want_ares" = "yes"; then 530 dnl finally c-ares will be used 531 AC_DEFINE(USE_ARES, 1, [Define to enable c-ares support]) 532 USE_ARES=1 533 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libcares" 534 curl_res_msg="c-ares" 535 fi 536 fi 537 ]) 538 539 dnl CURL_CHECK_OPTION_HTTPSRR 540 dnl ----------------------------------------------------- 541 dnl Verify whether configure has been invoked with option 542 dnl --enable-httpsrr or --disable-httpsrr, and set 543 dnl shell variable want_httpsrr as appropriate. 544 545 AC_DEFUN([CURL_CHECK_OPTION_HTTPSRR], [ 546 AC_MSG_CHECKING([whether to enable HTTPSRR support]) 547 OPT_HTTPSRR="default" 548 AC_ARG_ENABLE(httpsrr, 549 AS_HELP_STRING([--enable-httpsrr],[Enable HTTPSRR support]) 550 AS_HELP_STRING([--disable-httpsrr],[Disable HTTPSRR support]), 551 OPT_HTTPSRR=$enableval) 552 case "$OPT_HTTPSRR" in 553 no) 554 dnl --disable-httpsrr option used 555 want_httpsrr="no" 556 curl_httpsrr_msg="no (--enable-httpsrr)" 557 AC_MSG_RESULT([no]) 558 ;; 559 default) 560 dnl configure option not specified 561 want_httpsrr="no" 562 curl_httpsrr_msg="no (--enable-httpsrr)" 563 AC_MSG_RESULT([no]) 564 ;; 565 *) 566 dnl --enable-httpsrr option used 567 want_httpsrr="yes" 568 curl_httpsrr_msg="enabled" 569 AC_MSG_RESULT([yes]) 570 ;; 571 esac 572 ]) 573 574 dnl CURL_CHECK_OPTION_ECH 575 dnl ----------------------------------------------------- 576 dnl Verify whether configure has been invoked with option 577 dnl --enable-ech or --disable-ech, and set 578 dnl shell variable want_ech as appropriate. 579 580 AC_DEFUN([CURL_CHECK_OPTION_ECH], [ 581 AC_MSG_CHECKING([whether to enable ECH support]) 582 OPT_ECH="default" 583 AC_ARG_ENABLE(ech, 584 AS_HELP_STRING([--enable-ech],[Enable ECH support]) 585 AS_HELP_STRING([--disable-ech],[Disable ECH support]), 586 OPT_ECH=$enableval) 587 case "$OPT_ECH" in 588 no) 589 dnl --disable-ech option used 590 want_ech="no" 591 curl_ech_msg="no (--enable-ech)" 592 AC_MSG_RESULT([no]) 593 ;; 594 default) 595 dnl configure option not specified 596 want_ech="no" 597 curl_ech_msg="no (--enable-ech)" 598 AC_MSG_RESULT([no]) 599 ;; 600 *) 601 dnl --enable-ech option used 602 want_ech="yes" 603 curl_ech_msg="enabled (--disable-ech)" 604 AC_MSG_RESULT([yes]) 605 ;; 606 esac 607 ]) 608 ]) 609 610 dnl CURL_CHECK_OPTION_SSLS_EXPORT 611 dnl ----------------------------------------------------- 612 dnl Verify whether configure has been invoked with option 613 dnl --enable-ssl-session-export or --disable-ssl-session-export, and set 614 dnl shell variable want_ech as appropriate. 615 616 AC_DEFUN([CURL_CHECK_OPTION_SSLS_EXPORT], [ 617 AC_MSG_CHECKING([whether to enable SSL session export support]) 618 OPT_SSLS_EXPORT="default" 619 AC_ARG_ENABLE(ssls-export, 620 AS_HELP_STRING([--enable-ssls-export], 621 [Enable SSL session export support]) 622 AS_HELP_STRING([--disable-ssls-export], 623 [Disable SSL session export support]), 624 OPT_SSLS_EXPORT=$enableval) 625 case "$OPT_SSLS_EXPORT" in 626 no) 627 dnl --disable-ssls-export option used 628 want_ssls_export="no" 629 curl_ssls_export_msg="no (--enable-ssls-export)" 630 AC_MSG_RESULT([no]) 631 ;; 632 default) 633 dnl configure option not specified 634 want_ssls_export="no" 635 curl_ssls_export_msg="no (--enable-ssls-export)" 636 AC_MSG_RESULT([no]) 637 ;; 638 *) 639 dnl --enable-ssls-export option used 640 want_ssls_export="yes" 641 curl_ssls_export_msg="enabled (--disable-ssls-export)" 642 AC_MSG_RESULT([yes]) 643 ;; 644 esac 645 ]) 646 ])