诸暨麻将添加redis
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

42049 Zeilen
1.1 MiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for curl -.
  4. #
  5. # Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. #
  14. # Copyright (c) 1998 - 2013 Daniel Stenberg, <daniel@haxx.se>
  15. # This configure script may be copied, distributed and modified under the
  16. # terms of the curl license; see COPYING for more details
  17. ## -------------------------------- ##
  18. ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
  19. ## -------------------------------- ##
  20. xc_configure_preamble_ver_major='1'
  21. xc_configure_preamble_ver_minor='0'
  22. #
  23. # Set IFS to space, tab and newline.
  24. #
  25. xc_space=' '
  26. xc_tab=' '
  27. xc_newline='
  28. '
  29. IFS="$xc_space$xc_tab$xc_newline"
  30. #
  31. # Set internationalization behavior variables.
  32. #
  33. LANG='C'
  34. LC_ALL='C'
  35. LANGUAGE='C'
  36. export LANG
  37. export LC_ALL
  38. export LANGUAGE
  39. #
  40. # Some useful variables.
  41. #
  42. xc_msg_warn='configure: WARNING:'
  43. xc_msg_abrt='Can not continue.'
  44. xc_msg_err='configure: error:'
  45. #
  46. # Verify that 'echo' command is available, otherwise abort.
  47. #
  48. xc_tst_str='unknown'
  49. (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
  50. case "x$xc_tst_str" in # ((
  51. xsuccess)
  52. :
  53. ;;
  54. *)
  55. # Try built-in echo, and fail.
  56. echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
  57. exit 1
  58. ;;
  59. esac
  60. #
  61. # Verify that 'test' command is available, otherwise abort.
  62. #
  63. xc_tst_str='unknown'
  64. (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
  65. case "x$xc_tst_str" in # ((
  66. xsuccess)
  67. :
  68. ;;
  69. *)
  70. echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
  71. exit 1
  72. ;;
  73. esac
  74. #
  75. # Verify that 'PATH' variable is set, otherwise abort.
  76. #
  77. xc_tst_str='unknown'
  78. (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
  79. case "x$xc_tst_str" in # ((
  80. xsuccess)
  81. :
  82. ;;
  83. *)
  84. echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
  85. exit 1
  86. ;;
  87. esac
  88. #
  89. # Verify that 'expr' command is available, otherwise abort.
  90. #
  91. xc_tst_str='unknown'
  92. xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
  93. case "x$xc_tst_str" in # ((
  94. x7)
  95. :
  96. ;;
  97. *)
  98. echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
  99. exit 1
  100. ;;
  101. esac
  102. #
  103. # Verify that 'sed' utility is found within 'PATH', otherwise abort.
  104. #
  105. xc_tst_str='unknown'
  106. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  107. | sed -e 's:unknown:success:' 2>/dev/null`
  108. case "x$xc_tst_str" in # ((
  109. xsuccess)
  110. :
  111. ;;
  112. *)
  113. echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
  114. exit 1
  115. ;;
  116. esac
  117. #
  118. # Verify that 'grep' utility is found within 'PATH', otherwise abort.
  119. #
  120. xc_tst_str='unknown'
  121. (`echo "$xc_tst_str" 2>/dev/null \
  122. | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
  123. case "x$xc_tst_str" in # ((
  124. xsuccess)
  125. :
  126. ;;
  127. *)
  128. echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
  129. exit 1
  130. ;;
  131. esac
  132. #
  133. # Verify that 'tr' utility is found within 'PATH', otherwise abort.
  134. #
  135. xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
  136. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  137. | tr -d "0123456789$xc_tab" 2>/dev/null`
  138. case "x$xc_tst_str" in # ((
  139. xsuccess)
  140. :
  141. ;;
  142. *)
  143. echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
  144. exit 1
  145. ;;
  146. esac
  147. #
  148. # Verify that 'wc' utility is found within 'PATH', otherwise abort.
  149. #
  150. xc_tst_str='unknown unknown unknown unknown'
  151. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  152. | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
  153. case "x$xc_tst_str" in # ((
  154. x4)
  155. :
  156. ;;
  157. *)
  158. echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
  159. exit 1
  160. ;;
  161. esac
  162. #
  163. # Verify that 'cat' utility is found within 'PATH', otherwise abort.
  164. #
  165. xc_tst_str='unknown'
  166. xc_tst_str=`cat <<_EOT 2>/dev/null \
  167. | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
  168. unknown
  169. unknown
  170. unknown
  171. _EOT`
  172. case "x$xc_tst_str" in # ((
  173. x3)
  174. :
  175. ;;
  176. *)
  177. echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
  178. exit 1
  179. ;;
  180. esac
  181. #
  182. # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
  183. #
  184. # Directory count in 'PATH' when using a colon separator.
  185. xc_tst_dirs_col='x'
  186. xc_tst_prev_IFS=$IFS; IFS=':'
  187. for xc_tst_dir in $PATH; do
  188. IFS=$xc_tst_prev_IFS
  189. xc_tst_dirs_col="x$xc_tst_dirs_col"
  190. done
  191. IFS=$xc_tst_prev_IFS
  192. xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
  193. # Directory count in 'PATH' when using a semicolon separator.
  194. xc_tst_dirs_sem='x'
  195. xc_tst_prev_IFS=$IFS; IFS=';'
  196. for xc_tst_dir in $PATH; do
  197. IFS=$xc_tst_prev_IFS
  198. xc_tst_dirs_sem="x$xc_tst_dirs_sem"
  199. done
  200. IFS=$xc_tst_prev_IFS
  201. xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
  202. if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
  203. # When both counting methods give the same result we do not want to
  204. # chose one over the other, and consider auto-detection not possible.
  205. if test -z "$PATH_SEPARATOR"; then
  206. # Stop dead until user provides 'PATH_SEPARATOR' definition.
  207. echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
  208. exit 1
  209. fi
  210. else
  211. # Separator with the greater directory count is the auto-detected one.
  212. if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
  213. xc_tst_auto_separator=';'
  214. else
  215. xc_tst_auto_separator=':'
  216. fi
  217. if test -z "$PATH_SEPARATOR"; then
  218. # Simply use the auto-detected one when not already set.
  219. PATH_SEPARATOR=$xc_tst_auto_separator
  220. elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
  221. echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
  222. fi
  223. fi
  224. xc_PATH_SEPARATOR=$PATH_SEPARATOR
  225. xc_configure_preamble_result='yes'
  226. ## -------------------- ##
  227. ## M4sh Initialization. ##
  228. ## -------------------- ##
  229. # Be more Bourne compatible
  230. DUALCASE=1; export DUALCASE # for MKS sh
  231. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  232. emulate sh
  233. NULLCMD=:
  234. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  235. # is contrary to our usage. Disable this feature.
  236. alias -g '${1+"$@"}'='"$@"'
  237. setopt NO_GLOB_SUBST
  238. else
  239. case `(set -o) 2>/dev/null` in #(
  240. *posix*) :
  241. set -o posix ;; #(
  242. *) :
  243. ;;
  244. esac
  245. fi
  246. as_nl='
  247. '
  248. export as_nl
  249. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  250. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  251. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  252. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  253. # Prefer a ksh shell builtin over an external printf program on Solaris,
  254. # but without wasting forks for bash or zsh.
  255. if test -z "$BASH_VERSION$ZSH_VERSION" \
  256. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  257. as_echo='print -r --'
  258. as_echo_n='print -rn --'
  259. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  260. as_echo='printf %s\n'
  261. as_echo_n='printf %s'
  262. else
  263. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  264. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  265. as_echo_n='/usr/ucb/echo -n'
  266. else
  267. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  268. as_echo_n_body='eval
  269. arg=$1;
  270. case $arg in #(
  271. *"$as_nl"*)
  272. expr "X$arg" : "X\\(.*\\)$as_nl";
  273. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  274. esac;
  275. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  276. '
  277. export as_echo_n_body
  278. as_echo_n='sh -c $as_echo_n_body as_echo'
  279. fi
  280. export as_echo_body
  281. as_echo='sh -c $as_echo_body as_echo'
  282. fi
  283. # IFS
  284. # We need space, tab and new line, in precisely that order. Quoting is
  285. # there to prevent editors from complaining about space-tab.
  286. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  287. # splitting by setting IFS to empty value.)
  288. IFS=" "" $as_nl"
  289. # Find who we are. Look in the path if we contain no directory separator.
  290. as_myself=
  291. case $0 in #((
  292. *[\\/]* ) as_myself=$0 ;;
  293. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  294. for as_dir in $PATH
  295. do
  296. IFS=$as_save_IFS
  297. test -z "$as_dir" && as_dir=.
  298. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  299. done
  300. IFS=$as_save_IFS
  301. ;;
  302. esac
  303. # We did not find ourselves, most probably we were run as `sh COMMAND'
  304. # in which case we are not to be found in the path.
  305. if test "x$as_myself" = x; then
  306. as_myself=$0
  307. fi
  308. if test ! -f "$as_myself"; then
  309. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  310. exit 1
  311. fi
  312. # Unset variables that we do not need and which cause bugs (e.g. in
  313. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  314. # suppresses any "Segmentation fault" message there. '((' could
  315. # trigger a bug in pdksh 5.2.14.
  316. for as_var in BASH_ENV ENV MAIL MAILPATH
  317. do eval test x\${$as_var+set} = xset \
  318. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  319. done
  320. PS1='$ '
  321. PS2='> '
  322. PS4='+ '
  323. # NLS nuisances.
  324. LC_ALL=C
  325. export LC_ALL
  326. LANGUAGE=C
  327. export LANGUAGE
  328. # CDPATH.
  329. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  330. # Use a proper internal environment variable to ensure we don't fall
  331. # into an infinite loop, continuously re-executing ourselves.
  332. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  333. _as_can_reexec=no; export _as_can_reexec;
  334. # We cannot yet assume a decent shell, so we have to provide a
  335. # neutralization value for shells without unset; and this also
  336. # works around shells that cannot unset nonexistent variables.
  337. # Preserve -v and -x to the replacement shell.
  338. BASH_ENV=/dev/null
  339. ENV=/dev/null
  340. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  341. case $- in # ((((
  342. *v*x* | *x*v* ) as_opts=-vx ;;
  343. *v* ) as_opts=-v ;;
  344. *x* ) as_opts=-x ;;
  345. * ) as_opts= ;;
  346. esac
  347. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  348. # Admittedly, this is quite paranoid, since all the known shells bail
  349. # out after a failed `exec'.
  350. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  351. as_fn_exit 255
  352. fi
  353. # We don't want this to propagate to other subprocesses.
  354. { _as_can_reexec=; unset _as_can_reexec;}
  355. if test "x$CONFIG_SHELL" = x; then
  356. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  357. emulate sh
  358. NULLCMD=:
  359. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  360. # is contrary to our usage. Disable this feature.
  361. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  362. setopt NO_GLOB_SUBST
  363. else
  364. case \`(set -o) 2>/dev/null\` in #(
  365. *posix*) :
  366. set -o posix ;; #(
  367. *) :
  368. ;;
  369. esac
  370. fi
  371. "
  372. as_required="as_fn_return () { (exit \$1); }
  373. as_fn_success () { as_fn_return 0; }
  374. as_fn_failure () { as_fn_return 1; }
  375. as_fn_ret_success () { return 0; }
  376. as_fn_ret_failure () { return 1; }
  377. exitcode=0
  378. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  379. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  380. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  381. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  382. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  383. else
  384. exitcode=1; echo positional parameters were not saved.
  385. fi
  386. test x\$exitcode = x0 || exit 1
  387. test -x / || exit 1"
  388. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  389. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  390. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  391. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  392. test \$(( 1 + 1 )) = 2 || exit 1
  393. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  394. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  395. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  396. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  397. PATH=/empty FPATH=/empty; export PATH FPATH
  398. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  399. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  400. if (eval "$as_required") 2>/dev/null; then :
  401. as_have_required=yes
  402. else
  403. as_have_required=no
  404. fi
  405. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  406. else
  407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  408. as_found=false
  409. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  410. do
  411. IFS=$as_save_IFS
  412. test -z "$as_dir" && as_dir=.
  413. as_found=:
  414. case $as_dir in #(
  415. /*)
  416. for as_base in sh bash ksh sh5; do
  417. # Try only shells that exist, to save several forks.
  418. as_shell=$as_dir/$as_base
  419. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  420. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  421. CONFIG_SHELL=$as_shell as_have_required=yes
  422. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  423. break 2
  424. fi
  425. fi
  426. done;;
  427. esac
  428. as_found=false
  429. done
  430. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  431. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  432. CONFIG_SHELL=$SHELL as_have_required=yes
  433. fi; }
  434. IFS=$as_save_IFS
  435. if test "x$CONFIG_SHELL" != x; then :
  436. export CONFIG_SHELL
  437. # We cannot yet assume a decent shell, so we have to provide a
  438. # neutralization value for shells without unset; and this also
  439. # works around shells that cannot unset nonexistent variables.
  440. # Preserve -v and -x to the replacement shell.
  441. BASH_ENV=/dev/null
  442. ENV=/dev/null
  443. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  444. case $- in # ((((
  445. *v*x* | *x*v* ) as_opts=-vx ;;
  446. *v* ) as_opts=-v ;;
  447. *x* ) as_opts=-x ;;
  448. * ) as_opts= ;;
  449. esac
  450. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  451. # Admittedly, this is quite paranoid, since all the known shells bail
  452. # out after a failed `exec'.
  453. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  454. exit 255
  455. fi
  456. if test x$as_have_required = xno; then :
  457. $as_echo "$0: This script requires a shell more modern than all"
  458. $as_echo "$0: the shells that I found on your system."
  459. if test x${ZSH_VERSION+set} = xset ; then
  460. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  461. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  462. else
  463. $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
  464. $0: mailing list: http://curl.haxx.se/mail/ about your
  465. $0: system, including any error possibly output before this
  466. $0: message. Then install a modern shell, or manually run
  467. $0: the script under such a shell if you do have one."
  468. fi
  469. exit 1
  470. fi
  471. fi
  472. fi
  473. SHELL=${CONFIG_SHELL-/bin/sh}
  474. export SHELL
  475. # Unset more variables known to interfere with behavior of common tools.
  476. CLICOLOR_FORCE= GREP_OPTIONS=
  477. unset CLICOLOR_FORCE GREP_OPTIONS
  478. ## --------------------- ##
  479. ## M4sh Shell Functions. ##
  480. ## --------------------- ##
  481. # as_fn_unset VAR
  482. # ---------------
  483. # Portably unset VAR.
  484. as_fn_unset ()
  485. {
  486. { eval $1=; unset $1;}
  487. }
  488. as_unset=as_fn_unset
  489. # as_fn_set_status STATUS
  490. # -----------------------
  491. # Set $? to STATUS, without forking.
  492. as_fn_set_status ()
  493. {
  494. return $1
  495. } # as_fn_set_status
  496. # as_fn_exit STATUS
  497. # -----------------
  498. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  499. as_fn_exit ()
  500. {
  501. set +e
  502. as_fn_set_status $1
  503. exit $1
  504. } # as_fn_exit
  505. # as_fn_mkdir_p
  506. # -------------
  507. # Create "$as_dir" as a directory, including parents if necessary.
  508. as_fn_mkdir_p ()
  509. {
  510. case $as_dir in #(
  511. -*) as_dir=./$as_dir;;
  512. esac
  513. test -d "$as_dir" || eval $as_mkdir_p || {
  514. as_dirs=
  515. while :; do
  516. case $as_dir in #(
  517. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  518. *) as_qdir=$as_dir;;
  519. esac
  520. as_dirs="'$as_qdir' $as_dirs"
  521. as_dir=`$as_dirname -- "$as_dir" ||
  522. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  523. X"$as_dir" : 'X\(//\)[^/]' \| \
  524. X"$as_dir" : 'X\(//\)$' \| \
  525. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  526. $as_echo X"$as_dir" |
  527. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  528. s//\1/
  529. q
  530. }
  531. /^X\(\/\/\)[^/].*/{
  532. s//\1/
  533. q
  534. }
  535. /^X\(\/\/\)$/{
  536. s//\1/
  537. q
  538. }
  539. /^X\(\/\).*/{
  540. s//\1/
  541. q
  542. }
  543. s/.*/./; q'`
  544. test -d "$as_dir" && break
  545. done
  546. test -z "$as_dirs" || eval "mkdir $as_dirs"
  547. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  548. } # as_fn_mkdir_p
  549. # as_fn_executable_p FILE
  550. # -----------------------
  551. # Test if FILE is an executable regular file.
  552. as_fn_executable_p ()
  553. {
  554. test -f "$1" && test -x "$1"
  555. } # as_fn_executable_p
  556. # as_fn_append VAR VALUE
  557. # ----------------------
  558. # Append the text in VALUE to the end of the definition contained in VAR. Take
  559. # advantage of any shell optimizations that allow amortized linear growth over
  560. # repeated appends, instead of the typical quadratic growth present in naive
  561. # implementations.
  562. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  563. eval 'as_fn_append ()
  564. {
  565. eval $1+=\$2
  566. }'
  567. else
  568. as_fn_append ()
  569. {
  570. eval $1=\$$1\$2
  571. }
  572. fi # as_fn_append
  573. # as_fn_arith ARG...
  574. # ------------------
  575. # Perform arithmetic evaluation on the ARGs, and store the result in the
  576. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  577. # must be portable across $(()) and expr.
  578. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  579. eval 'as_fn_arith ()
  580. {
  581. as_val=$(( $* ))
  582. }'
  583. else
  584. as_fn_arith ()
  585. {
  586. as_val=`expr "$@" || test $? -eq 1`
  587. }
  588. fi # as_fn_arith
  589. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  590. # ----------------------------------------
  591. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  592. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  593. # script with STATUS, using 1 if that was 0.
  594. as_fn_error ()
  595. {
  596. as_status=$1; test $as_status -eq 0 && as_status=1
  597. if test "$4"; then
  598. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  599. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  600. fi
  601. $as_echo "$as_me: error: $2" >&2
  602. as_fn_exit $as_status
  603. } # as_fn_error
  604. if expr a : '\(a\)' >/dev/null 2>&1 &&
  605. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  606. as_expr=expr
  607. else
  608. as_expr=false
  609. fi
  610. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  611. as_basename=basename
  612. else
  613. as_basename=false
  614. fi
  615. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  616. as_dirname=dirname
  617. else
  618. as_dirname=false
  619. fi
  620. as_me=`$as_basename -- "$0" ||
  621. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  624. $as_echo X/"$0" |
  625. sed '/^.*\/\([^/][^/]*\)\/*$/{
  626. s//\1/
  627. q
  628. }
  629. /^X\/\(\/\/\)$/{
  630. s//\1/
  631. q
  632. }
  633. /^X\/\(\/\).*/{
  634. s//\1/
  635. q
  636. }
  637. s/.*/./; q'`
  638. # Avoid depending upon Character Ranges.
  639. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  640. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  641. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  642. as_cr_digits='0123456789'
  643. as_cr_alnum=$as_cr_Letters$as_cr_digits
  644. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  645. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  646. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  647. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  648. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  649. sed -n '
  650. p
  651. /[$]LINENO/=
  652. ' <$as_myself |
  653. sed '
  654. s/[$]LINENO.*/&-/
  655. t lineno
  656. b
  657. :lineno
  658. N
  659. :loop
  660. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  661. t loop
  662. s/-\n.*//
  663. ' >$as_me.lineno &&
  664. chmod +x "$as_me.lineno" ||
  665. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  666. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  667. # already done that, so ensure we don't try to do so again and fall
  668. # in an infinite loop. This has already happened in practice.
  669. _as_can_reexec=no; export _as_can_reexec
  670. # Don't try to exec as it changes $[0], causing all sort of problems
  671. # (the dirname of $[0] is not the place where we might find the
  672. # original and so on. Autoconf is especially sensitive to this).
  673. . "./$as_me.lineno"
  674. # Exit status is that of the last command.
  675. exit
  676. }
  677. ECHO_C= ECHO_N= ECHO_T=
  678. case `echo -n x` in #(((((
  679. -n*)
  680. case `echo 'xy\c'` in
  681. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  682. xy) ECHO_C='\c';;
  683. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  684. ECHO_T=' ';;
  685. esac;;
  686. *)
  687. ECHO_N='-n';;
  688. esac
  689. rm -f conf$$ conf$$.exe conf$$.file
  690. if test -d conf$$.dir; then
  691. rm -f conf$$.dir/conf$$.file
  692. else
  693. rm -f conf$$.dir
  694. mkdir conf$$.dir 2>/dev/null
  695. fi
  696. if (echo >conf$$.file) 2>/dev/null; then
  697. if ln -s conf$$.file conf$$ 2>/dev/null; then
  698. as_ln_s='ln -s'
  699. # ... but there are two gotchas:
  700. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  701. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  702. # In both cases, we have to default to `cp -pR'.
  703. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  704. as_ln_s='cp -pR'
  705. elif ln conf$$.file conf$$ 2>/dev/null; then
  706. as_ln_s=ln
  707. else
  708. as_ln_s='cp -pR'
  709. fi
  710. else
  711. as_ln_s='cp -pR'
  712. fi
  713. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  714. rmdir conf$$.dir 2>/dev/null
  715. if mkdir -p . 2>/dev/null; then
  716. as_mkdir_p='mkdir -p "$as_dir"'
  717. else
  718. test -d ./-p && rmdir ./-p
  719. as_mkdir_p=false
  720. fi
  721. as_test_x='test -x'
  722. as_executable_p=as_fn_executable_p
  723. # Sed expression to map a string onto a valid CPP name.
  724. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  725. # Sed expression to map a string onto a valid variable name.
  726. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  727. SHELL=${CONFIG_SHELL-/bin/sh}
  728. test -n "$DJDIR" || exec 7<&0 </dev/null
  729. exec 6>&1
  730. # Name of the host.
  731. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  732. # so uname gets run too.
  733. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  734. #
  735. # Initializations.
  736. #
  737. ac_default_prefix=/usr/local
  738. ac_clean_files=
  739. ac_config_libobj_dir=.
  740. LIBOBJS=
  741. cross_compiling=no
  742. subdirs=
  743. MFLAGS=
  744. MAKEFLAGS=
  745. # Identity of this package.
  746. PACKAGE_NAME='curl'
  747. PACKAGE_TARNAME='curl'
  748. PACKAGE_VERSION='-'
  749. PACKAGE_STRING='curl -'
  750. PACKAGE_BUGREPORT='a suitable curl mailing list: http://curl.haxx.se/mail/'
  751. PACKAGE_URL=''
  752. ac_unique_file="lib/urldata.h"
  753. # Factoring default headers for most tests.
  754. ac_includes_default="\
  755. #include <stdio.h>
  756. #ifdef HAVE_SYS_TYPES_H
  757. # include <sys/types.h>
  758. #endif
  759. #ifdef HAVE_SYS_STAT_H
  760. # include <sys/stat.h>
  761. #endif
  762. #ifdef STDC_HEADERS
  763. # include <stdlib.h>
  764. # include <stddef.h>
  765. #else
  766. # ifdef HAVE_STDLIB_H
  767. # include <stdlib.h>
  768. # endif
  769. #endif
  770. #ifdef HAVE_STRING_H
  771. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  772. # include <memory.h>
  773. # endif
  774. # include <string.h>
  775. #endif
  776. #ifdef HAVE_STRINGS_H
  777. # include <strings.h>
  778. #endif
  779. #ifdef HAVE_INTTYPES_H
  780. # include <inttypes.h>
  781. #endif
  782. #ifdef HAVE_STDINT_H
  783. # include <stdint.h>
  784. #endif
  785. #ifdef HAVE_UNISTD_H
  786. # include <unistd.h>
  787. #endif"
  788. enable_option_checking=no
  789. ac_subst_vars='am__EXEEXT_FALSE
  790. am__EXEEXT_TRUE
  791. LTLIBOBJS
  792. LIBOBJS
  793. SUPPORT_PROTOCOLS
  794. SUPPORT_FEATURES
  795. ENABLE_STATIC
  796. ENABLE_SHARED
  797. CROSSCOMPILING_FALSE
  798. CROSSCOMPILING_TRUE
  799. BLANK_AT_MAKETIME
  800. CURL_NETWORK_AND_TIME_LIBS
  801. CURL_NETWORK_LIBS
  802. LIBCURL_LIBS
  803. SONAME_BUMP_FALSE
  804. SONAME_BUMP_TRUE
  805. CFLAG_CURL_SYMBOL_HIDING
  806. DOING_CURL_SYMBOL_HIDING_FALSE
  807. DOING_CURL_SYMBOL_HIDING_TRUE
  808. BUILD_LIBHOSTNAME_FALSE
  809. BUILD_LIBHOSTNAME_TRUE
  810. USE_EMBEDDED_ARES_FALSE
  811. USE_EMBEDDED_ARES_TRUE
  812. USE_ARES
  813. subdirs
  814. USE_MANUAL_FALSE
  815. USE_MANUAL_TRUE
  816. MANOPT
  817. NROFF
  818. PERL
  819. IPV6_ENABLED
  820. IDN_ENABLED
  821. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
  822. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
  823. CURL_LT_SHLIB_VERSIONED_FLAVOUR
  824. USE_LIBRTMP
  825. USE_LIBSSH2
  826. LIBMETALINK_CPPFLAGS
  827. LIBMETALINK_LDFLAGS
  828. LIBMETALINK_LIBS
  829. CURL_CA_BUNDLE
  830. SSL_ENABLED
  831. USE_AXTLS
  832. HAVE_NSS_INITCONTEXT
  833. USE_NSS
  834. USE_CYASSL
  835. USE_POLARSSL
  836. HAVE_GNUTLS_SRP
  837. USE_GNUTLS_NETTLE
  838. USE_GNUTLS
  839. HAVE_SSLEAY_SRP
  840. RANDOM_FILE
  841. USE_SSLEAY
  842. PKGCONFIG
  843. USE_DARWINSSL
  844. USE_WINDOWS_SSPI
  845. USE_SCHANNEL
  846. KRB4_ENABLED
  847. USE_OPENLDAP
  848. ZLIB_LIBS
  849. HAVE_LIBZ_FALSE
  850. HAVE_LIBZ_TRUE
  851. HAVE_LIBZ
  852. CURL_DISABLE_GOPHER
  853. CURL_DISABLE_SMTP
  854. CURL_DISABLE_IMAP
  855. CURL_DISABLE_POP3
  856. CURL_DISABLE_TFTP
  857. CURL_DISABLE_TELNET
  858. CURL_DISABLE_DICT
  859. CURL_DISABLE_PROXY
  860. HAVE_LDAP_SSL
  861. CURL_DISABLE_LDAPS
  862. CURL_DISABLE_LDAP
  863. CURL_DISABLE_FILE
  864. CURL_DISABLE_FTP
  865. CURL_DISABLE_RTSP
  866. CURL_DISABLE_HTTP
  867. DOING_NATIVE_WINDOWS_FALSE
  868. DOING_NATIVE_WINDOWS_TRUE
  869. BUILD_UNITTESTS_FALSE
  870. BUILD_UNITTESTS_TRUE
  871. CURLDEBUG_FALSE
  872. CURLDEBUG_TRUE
  873. USE_EXPLICIT_LIB_DEPS_FALSE
  874. USE_EXPLICIT_LIB_DEPS_TRUE
  875. REQUIRE_LIB_DEPS
  876. CPPFLAG_CURL_STATICLIB
  877. USE_CPPFLAG_CURL_STATICLIB_FALSE
  878. USE_CPPFLAG_CURL_STATICLIB_TRUE
  879. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
  880. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
  881. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
  882. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
  883. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
  884. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
  885. OTOOL64
  886. OTOOL
  887. LIPO
  888. NMEDIT
  889. DSYMUTIL
  890. MANIFEST_TOOL
  891. RANLIB
  892. ac_ct_AR
  893. LN_S
  894. NM
  895. ac_ct_DUMPBIN
  896. DUMPBIN
  897. LD
  898. FGREP
  899. LIBTOOL
  900. OBJDUMP
  901. DLLTOOL
  902. AS
  903. host_os
  904. host_vendor
  905. host_cpu
  906. host
  907. build_os
  908. build_vendor
  909. build_cpu
  910. build
  911. PKGADD_VENDOR
  912. PKGADD_NAME
  913. PKGADD_PKG
  914. VERSIONNUM
  915. CURLVERSION
  916. AM_BACKSLASH
  917. AM_DEFAULT_VERBOSITY
  918. AM_DEFAULT_V
  919. AM_V
  920. am__fastdepCC_FALSE
  921. am__fastdepCC_TRUE
  922. CCDEPMODE
  923. am__nodep
  924. AMDEPBACKSLASH
  925. AMDEP_FALSE
  926. AMDEP_TRUE
  927. am__quote
  928. am__include
  929. DEPDIR
  930. am__untar
  931. am__tar
  932. AMTAR
  933. am__leading_dot
  934. SET_MAKE
  935. AWK
  936. mkdir_p
  937. MKDIR_P
  938. INSTALL_STRIP_PROGRAM
  939. STRIP
  940. install_sh
  941. MAKEINFO
  942. AUTOHEADER
  943. AUTOMAKE
  944. AUTOCONF
  945. ACLOCAL
  946. VERSION
  947. PACKAGE
  948. CYGPATH_W
  949. am__isrc
  950. CPP
  951. OBJEXT
  952. EXEEXT
  953. ac_ct_CC
  954. CPPFLAGS
  955. LDFLAGS
  956. CFLAGS
  957. CC
  958. INSTALL_DATA
  959. INSTALL_SCRIPT
  960. INSTALL_PROGRAM
  961. libext
  962. AR
  963. EGREP
  964. GREP
  965. SED
  966. CURL_CFLAG_EXTRAS
  967. CONFIGURE_OPTIONS
  968. MAINT
  969. MAINTAINER_MODE_FALSE
  970. MAINTAINER_MODE_TRUE
  971. target_alias
  972. host_alias
  973. build_alias
  974. LIBS
  975. ECHO_T
  976. ECHO_N
  977. ECHO_C
  978. DEFS
  979. mandir
  980. localedir
  981. libdir
  982. psdir
  983. pdfdir
  984. dvidir
  985. htmldir
  986. infodir
  987. docdir
  988. oldincludedir
  989. includedir
  990. localstatedir
  991. sharedstatedir
  992. sysconfdir
  993. datadir
  994. datarootdir
  995. libexecdir
  996. sbindir
  997. bindir
  998. program_transform_name
  999. prefix
  1000. exec_prefix
  1001. PACKAGE_URL
  1002. PACKAGE_BUGREPORT
  1003. PACKAGE_STRING
  1004. PACKAGE_VERSION
  1005. PACKAGE_TARNAME
  1006. PACKAGE_NAME
  1007. SHELL
  1008. PATH_SEPARATOR'
  1009. ac_subst_files=''
  1010. ac_user_opts='
  1011. enable_option_checking
  1012. enable_maintainer_mode
  1013. enable_debug
  1014. enable_optimize
  1015. enable_warnings
  1016. enable_werror
  1017. enable_curldebug
  1018. enable_symbol_hiding
  1019. enable_hidden_symbols
  1020. enable_ares
  1021. enable_dependency_tracking
  1022. enable_silent_rules
  1023. enable_largefile
  1024. enable_shared
  1025. enable_static
  1026. with_pic
  1027. enable_fast_install
  1028. with_gnu_ld
  1029. with_sysroot
  1030. enable_libtool_lock
  1031. enable_http
  1032. enable_ftp
  1033. enable_file
  1034. enable_ldap
  1035. enable_ldaps
  1036. enable_rtsp
  1037. enable_proxy
  1038. enable_dict
  1039. enable_telnet
  1040. enable_tftp
  1041. enable_pop3
  1042. enable_imap
  1043. enable_smtp
  1044. enable_gopher
  1045. enable_manual
  1046. enable_libcurl_option
  1047. enable_libgcc
  1048. with_zlib
  1049. with_ldap_lib
  1050. with_lber_lib
  1051. enable_ipv6
  1052. with_krb4_includes
  1053. with_krb4_libs
  1054. with_krb4
  1055. with_spnego
  1056. with_gssapi_includes
  1057. with_gssapi_libs
  1058. with_gssapi
  1059. with_winssl
  1060. with_darwinssl
  1061. with_ssl
  1062. with_egd_socket
  1063. with_random
  1064. with_gnutls
  1065. with_polarssl
  1066. with_cyassl
  1067. with_nss
  1068. with_axtls
  1069. with_ca_bundle
  1070. with_ca_path
  1071. with_libmetalink
  1072. with_libssh2
  1073. with_librtmp
  1074. enable_versioned_symbols
  1075. with_winidn
  1076. with_libidn
  1077. enable_threaded_resolver
  1078. enable_verbose
  1079. enable_sspi
  1080. enable_crypto_auth
  1081. enable_ntlm_wb
  1082. enable_tls_srp
  1083. enable_cookies
  1084. enable_soname_bump
  1085. '
  1086. ac_precious_vars='build_alias
  1087. host_alias
  1088. target_alias
  1089. CC
  1090. CFLAGS
  1091. LDFLAGS
  1092. LIBS
  1093. CPPFLAGS
  1094. CPP'
  1095. ac_subdirs_all='ares'
  1096. # Initialize some variables set by options.
  1097. ac_init_help=
  1098. ac_init_version=false
  1099. ac_unrecognized_opts=
  1100. ac_unrecognized_sep=
  1101. # The variables have the same names as the options, with
  1102. # dashes changed to underlines.
  1103. cache_file=/dev/null
  1104. exec_prefix=NONE
  1105. no_create=
  1106. no_recursion=
  1107. prefix=NONE
  1108. program_prefix=NONE
  1109. program_suffix=NONE
  1110. program_transform_name=s,x,x,
  1111. silent=
  1112. site=
  1113. srcdir=
  1114. verbose=
  1115. x_includes=NONE
  1116. x_libraries=NONE
  1117. # Installation directory options.
  1118. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1119. # and all the variables that are supposed to be based on exec_prefix
  1120. # by default will actually change.
  1121. # Use braces instead of parens because sh, perl, etc. also accept them.
  1122. # (The list follows the same order as the GNU Coding Standards.)
  1123. bindir='${exec_prefix}/bin'
  1124. sbindir='${exec_prefix}/sbin'
  1125. libexecdir='${exec_prefix}/libexec'
  1126. datarootdir='${prefix}/share'
  1127. datadir='${datarootdir}'
  1128. sysconfdir='${prefix}/etc'
  1129. sharedstatedir='${prefix}/com'
  1130. localstatedir='${prefix}/var'
  1131. includedir='${prefix}/include'
  1132. oldincludedir='/usr/include'
  1133. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1134. infodir='${datarootdir}/info'
  1135. htmldir='${docdir}'
  1136. dvidir='${docdir}'
  1137. pdfdir='${docdir}'
  1138. psdir='${docdir}'
  1139. libdir='${exec_prefix}/lib'
  1140. localedir='${datarootdir}/locale'
  1141. mandir='${datarootdir}/man'
  1142. ac_prev=
  1143. ac_dashdash=
  1144. for ac_option
  1145. do
  1146. # If the previous option needs an argument, assign it.
  1147. if test -n "$ac_prev"; then
  1148. eval $ac_prev=\$ac_option
  1149. ac_prev=
  1150. continue
  1151. fi
  1152. case $ac_option in
  1153. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1154. *=) ac_optarg= ;;
  1155. *) ac_optarg=yes ;;
  1156. esac
  1157. # Accept the important Cygnus configure options, so we can diagnose typos.
  1158. case $ac_dashdash$ac_option in
  1159. --)
  1160. ac_dashdash=yes ;;
  1161. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1162. ac_prev=bindir ;;
  1163. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1164. bindir=$ac_optarg ;;
  1165. -build | --build | --buil | --bui | --bu)
  1166. ac_prev=build_alias ;;
  1167. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1168. build_alias=$ac_optarg ;;
  1169. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1170. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1171. ac_prev=cache_file ;;
  1172. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1173. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1174. cache_file=$ac_optarg ;;
  1175. --config-cache | -C)
  1176. cache_file=config.cache ;;
  1177. -datadir | --datadir | --datadi | --datad)
  1178. ac_prev=datadir ;;
  1179. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1180. datadir=$ac_optarg ;;
  1181. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1182. | --dataroo | --dataro | --datar)
  1183. ac_prev=datarootdir ;;
  1184. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1185. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1186. datarootdir=$ac_optarg ;;
  1187. -disable-* | --disable-*)
  1188. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1189. # Reject names that are not valid shell variable names.
  1190. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1191. as_fn_error $? "invalid feature name: $ac_useropt"
  1192. ac_useropt_orig=$ac_useropt
  1193. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1194. case $ac_user_opts in
  1195. *"
  1196. "enable_$ac_useropt"
  1197. "*) ;;
  1198. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1199. ac_unrecognized_sep=', ';;
  1200. esac
  1201. eval enable_$ac_useropt=no ;;
  1202. -docdir | --docdir | --docdi | --doc | --do)
  1203. ac_prev=docdir ;;
  1204. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1205. docdir=$ac_optarg ;;
  1206. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1207. ac_prev=dvidir ;;
  1208. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1209. dvidir=$ac_optarg ;;
  1210. -enable-* | --enable-*)
  1211. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1212. # Reject names that are not valid shell variable names.
  1213. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1214. as_fn_error $? "invalid feature name: $ac_useropt"
  1215. ac_useropt_orig=$ac_useropt
  1216. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1217. case $ac_user_opts in
  1218. *"
  1219. "enable_$ac_useropt"
  1220. "*) ;;
  1221. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1222. ac_unrecognized_sep=', ';;
  1223. esac
  1224. eval enable_$ac_useropt=\$ac_optarg ;;
  1225. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1226. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1227. | --exec | --exe | --ex)
  1228. ac_prev=exec_prefix ;;
  1229. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1230. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1231. | --exec=* | --exe=* | --ex=*)
  1232. exec_prefix=$ac_optarg ;;
  1233. -gas | --gas | --ga | --g)
  1234. # Obsolete; use --with-gas.
  1235. with_gas=yes ;;
  1236. -help | --help | --hel | --he | -h)
  1237. ac_init_help=long ;;
  1238. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1239. ac_init_help=recursive ;;
  1240. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1241. ac_init_help=short ;;
  1242. -host | --host | --hos | --ho)
  1243. ac_prev=host_alias ;;
  1244. -host=* | --host=* | --hos=* | --ho=*)
  1245. host_alias=$ac_optarg ;;
  1246. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1247. ac_prev=htmldir ;;
  1248. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1249. | --ht=*)
  1250. htmldir=$ac_optarg ;;
  1251. -includedir | --includedir | --includedi | --included | --include \
  1252. | --includ | --inclu | --incl | --inc)
  1253. ac_prev=includedir ;;
  1254. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1255. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1256. includedir=$ac_optarg ;;
  1257. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1258. ac_prev=infodir ;;
  1259. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1260. infodir=$ac_optarg ;;
  1261. -libdir | --libdir | --libdi | --libd)
  1262. ac_prev=libdir ;;
  1263. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1264. libdir=$ac_optarg ;;
  1265. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1266. | --libexe | --libex | --libe)
  1267. ac_prev=libexecdir ;;
  1268. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1269. | --libexe=* | --libex=* | --libe=*)
  1270. libexecdir=$ac_optarg ;;
  1271. -localedir | --localedir | --localedi | --localed | --locale)
  1272. ac_prev=localedir ;;
  1273. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1274. localedir=$ac_optarg ;;
  1275. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1276. | --localstate | --localstat | --localsta | --localst | --locals)
  1277. ac_prev=localstatedir ;;
  1278. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1279. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1280. localstatedir=$ac_optarg ;;
  1281. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1282. ac_prev=mandir ;;
  1283. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1284. mandir=$ac_optarg ;;
  1285. -nfp | --nfp | --nf)
  1286. # Obsolete; use --without-fp.
  1287. with_fp=no ;;
  1288. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1289. | --no-cr | --no-c | -n)
  1290. no_create=yes ;;
  1291. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1292. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1293. no_recursion=yes ;;
  1294. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1295. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1296. | --oldin | --oldi | --old | --ol | --o)
  1297. ac_prev=oldincludedir ;;
  1298. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1299. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1300. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1301. oldincludedir=$ac_optarg ;;
  1302. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1303. ac_prev=prefix ;;
  1304. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1305. prefix=$ac_optarg ;;
  1306. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1307. | --program-pre | --program-pr | --program-p)
  1308. ac_prev=program_prefix ;;
  1309. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1310. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1311. program_prefix=$ac_optarg ;;
  1312. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1313. | --program-suf | --program-su | --program-s)
  1314. ac_prev=program_suffix ;;
  1315. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1316. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1317. program_suffix=$ac_optarg ;;
  1318. -program-transform-name | --program-transform-name \
  1319. | --program-transform-nam | --program-transform-na \
  1320. | --program-transform-n | --program-transform- \
  1321. | --program-transform | --program-transfor \
  1322. | --program-transfo | --program-transf \
  1323. | --program-trans | --program-tran \
  1324. | --progr-tra | --program-tr | --program-t)
  1325. ac_prev=program_transform_name ;;
  1326. -program-transform-name=* | --program-transform-name=* \
  1327. | --program-transform-nam=* | --program-transform-na=* \
  1328. | --program-transform-n=* | --program-transform-=* \
  1329. | --program-transform=* | --program-transfor=* \
  1330. | --program-transfo=* | --program-transf=* \
  1331. | --program-trans=* | --program-tran=* \
  1332. | --progr-tra=* | --program-tr=* | --program-t=*)
  1333. program_transform_name=$ac_optarg ;;
  1334. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1335. ac_prev=pdfdir ;;
  1336. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1337. pdfdir=$ac_optarg ;;
  1338. -psdir | --psdir | --psdi | --psd | --ps)
  1339. ac_prev=psdir ;;
  1340. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1341. psdir=$ac_optarg ;;
  1342. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1343. | -silent | --silent | --silen | --sile | --sil)
  1344. silent=yes ;;
  1345. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1346. ac_prev=sbindir ;;
  1347. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1348. | --sbi=* | --sb=*)
  1349. sbindir=$ac_optarg ;;
  1350. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1351. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1352. | --sharedst | --shareds | --shared | --share | --shar \
  1353. | --sha | --sh)
  1354. ac_prev=sharedstatedir ;;
  1355. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1356. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1357. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1358. | --sha=* | --sh=*)
  1359. sharedstatedir=$ac_optarg ;;
  1360. -site | --site | --sit)
  1361. ac_prev=site ;;
  1362. -site=* | --site=* | --sit=*)
  1363. site=$ac_optarg ;;
  1364. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1365. ac_prev=srcdir ;;
  1366. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1367. srcdir=$ac_optarg ;;
  1368. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1369. | --syscon | --sysco | --sysc | --sys | --sy)
  1370. ac_prev=sysconfdir ;;
  1371. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1372. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1373. sysconfdir=$ac_optarg ;;
  1374. -target | --target | --targe | --targ | --tar | --ta | --t)
  1375. ac_prev=target_alias ;;
  1376. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1377. target_alias=$ac_optarg ;;
  1378. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1379. verbose=yes ;;
  1380. -version | --version | --versio | --versi | --vers | -V)
  1381. ac_init_version=: ;;
  1382. -with-* | --with-*)
  1383. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1384. # Reject names that are not valid shell variable names.
  1385. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1386. as_fn_error $? "invalid package name: $ac_useropt"
  1387. ac_useropt_orig=$ac_useropt
  1388. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1389. case $ac_user_opts in
  1390. *"
  1391. "with_$ac_useropt"
  1392. "*) ;;
  1393. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1394. ac_unrecognized_sep=', ';;
  1395. esac
  1396. eval with_$ac_useropt=\$ac_optarg ;;
  1397. -without-* | --without-*)
  1398. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1399. # Reject names that are not valid shell variable names.
  1400. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1401. as_fn_error $? "invalid package name: $ac_useropt"
  1402. ac_useropt_orig=$ac_useropt
  1403. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1404. case $ac_user_opts in
  1405. *"
  1406. "with_$ac_useropt"
  1407. "*) ;;
  1408. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1409. ac_unrecognized_sep=', ';;
  1410. esac
  1411. eval with_$ac_useropt=no ;;
  1412. --x)
  1413. # Obsolete; use --with-x.
  1414. with_x=yes ;;
  1415. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1416. | --x-incl | --x-inc | --x-in | --x-i)
  1417. ac_prev=x_includes ;;
  1418. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1419. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1420. x_includes=$ac_optarg ;;
  1421. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1422. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1423. ac_prev=x_libraries ;;
  1424. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1425. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1426. x_libraries=$ac_optarg ;;
  1427. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1428. Try \`$0 --help' for more information"
  1429. ;;
  1430. *=*)
  1431. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1432. # Reject names that are not valid shell variable names.
  1433. case $ac_envvar in #(
  1434. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1435. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1436. esac
  1437. eval $ac_envvar=\$ac_optarg
  1438. export $ac_envvar ;;
  1439. *)
  1440. # FIXME: should be removed in autoconf 3.0.
  1441. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1442. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1443. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1444. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1445. ;;
  1446. esac
  1447. done
  1448. if test -n "$ac_prev"; then
  1449. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1450. as_fn_error $? "missing argument to $ac_option"
  1451. fi
  1452. if test -n "$ac_unrecognized_opts"; then
  1453. case $enable_option_checking in
  1454. no) ;;
  1455. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1456. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1457. esac
  1458. fi
  1459. # Check all directory arguments for consistency.
  1460. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1461. datadir sysconfdir sharedstatedir localstatedir includedir \
  1462. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1463. libdir localedir mandir
  1464. do
  1465. eval ac_val=\$$ac_var
  1466. # Remove trailing slashes.
  1467. case $ac_val in
  1468. */ )
  1469. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1470. eval $ac_var=\$ac_val;;
  1471. esac
  1472. # Be sure to have absolute directory names.
  1473. case $ac_val in
  1474. [\\/$]* | ?:[\\/]* ) continue;;
  1475. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1476. esac
  1477. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1478. done
  1479. # There might be people who depend on the old broken behavior: `$host'
  1480. # used to hold the argument of --host etc.
  1481. # FIXME: To remove some day.
  1482. build=$build_alias
  1483. host=$host_alias
  1484. target=$target_alias
  1485. # FIXME: To remove some day.
  1486. if test "x$host_alias" != x; then
  1487. if test "x$build_alias" = x; then
  1488. cross_compiling=maybe
  1489. elif test "x$build_alias" != "x$host_alias"; then
  1490. cross_compiling=yes
  1491. fi
  1492. fi
  1493. ac_tool_prefix=
  1494. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1495. test "$silent" = yes && exec 6>/dev/null
  1496. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1497. ac_ls_di=`ls -di .` &&
  1498. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1499. as_fn_error $? "working directory cannot be determined"
  1500. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1501. as_fn_error $? "pwd does not report name of working directory"
  1502. # Find the source files, if location was not specified.
  1503. if test -z "$srcdir"; then
  1504. ac_srcdir_defaulted=yes
  1505. # Try the directory containing this script, then the parent directory.
  1506. ac_confdir=`$as_dirname -- "$as_myself" ||
  1507. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1508. X"$as_myself" : 'X\(//\)[^/]' \| \
  1509. X"$as_myself" : 'X\(//\)$' \| \
  1510. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1511. $as_echo X"$as_myself" |
  1512. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1513. s//\1/
  1514. q
  1515. }
  1516. /^X\(\/\/\)[^/].*/{
  1517. s//\1/
  1518. q
  1519. }
  1520. /^X\(\/\/\)$/{
  1521. s//\1/
  1522. q
  1523. }
  1524. /^X\(\/\).*/{
  1525. s//\1/
  1526. q
  1527. }
  1528. s/.*/./; q'`
  1529. srcdir=$ac_confdir
  1530. if test ! -r "$srcdir/$ac_unique_file"; then
  1531. srcdir=..
  1532. fi
  1533. else
  1534. ac_srcdir_defaulted=no
  1535. fi
  1536. if test ! -r "$srcdir/$ac_unique_file"; then
  1537. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1538. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1539. fi
  1540. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1541. ac_abs_confdir=`(
  1542. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1543. pwd)`
  1544. # When building in place, set srcdir=.
  1545. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1546. srcdir=.
  1547. fi
  1548. # Remove unnecessary trailing slashes from srcdir.
  1549. # Double slashes in file names in object file debugging info
  1550. # mess up M-x gdb in Emacs.
  1551. case $srcdir in
  1552. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1553. esac
  1554. for ac_var in $ac_precious_vars; do
  1555. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1556. eval ac_env_${ac_var}_value=\$${ac_var}
  1557. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1558. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1559. done
  1560. #
  1561. # Report the --help message.
  1562. #
  1563. if test "$ac_init_help" = "long"; then
  1564. # Omit some internal or obsolete options to make the list less imposing.
  1565. # This message is too long to be a string in the A/UX 3.1 sh.
  1566. cat <<_ACEOF
  1567. \`configure' configures curl - to adapt to many kinds of systems.
  1568. Usage: $0 [OPTION]... [VAR=VALUE]...
  1569. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1570. VAR=VALUE. See below for descriptions of some of the useful variables.
  1571. Defaults for the options are specified in brackets.
  1572. Configuration:
  1573. -h, --help display this help and exit
  1574. --help=short display options specific to this package
  1575. --help=recursive display the short help of all the included packages
  1576. -V, --version display version information and exit
  1577. -q, --quiet, --silent do not print \`checking ...' messages
  1578. --cache-file=FILE cache test results in FILE [disabled]
  1579. -C, --config-cache alias for \`--cache-file=config.cache'
  1580. -n, --no-create do not create output files
  1581. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1582. Installation directories:
  1583. --prefix=PREFIX install architecture-independent files in PREFIX
  1584. [$ac_default_prefix]
  1585. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1586. [PREFIX]
  1587. By default, \`make install' will install all the files in
  1588. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1589. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1590. for instance \`--prefix=\$HOME'.
  1591. For better control, use the options below.
  1592. Fine tuning of the installation directories:
  1593. --bindir=DIR user executables [EPREFIX/bin]
  1594. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1595. --libexecdir=DIR program executables [EPREFIX/libexec]
  1596. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1597. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1598. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1599. --libdir=DIR object code libraries [EPREFIX/lib]
  1600. --includedir=DIR C header files [PREFIX/include]
  1601. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1602. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1603. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1604. --infodir=DIR info documentation [DATAROOTDIR/info]
  1605. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1606. --mandir=DIR man documentation [DATAROOTDIR/man]
  1607. --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
  1608. --htmldir=DIR html documentation [DOCDIR]
  1609. --dvidir=DIR dvi documentation [DOCDIR]
  1610. --pdfdir=DIR pdf documentation [DOCDIR]
  1611. --psdir=DIR ps documentation [DOCDIR]
  1612. _ACEOF
  1613. cat <<\_ACEOF
  1614. Program names:
  1615. --program-prefix=PREFIX prepend PREFIX to installed program names
  1616. --program-suffix=SUFFIX append SUFFIX to installed program names
  1617. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1618. System types:
  1619. --build=BUILD configure for building on BUILD [guessed]
  1620. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1621. _ACEOF
  1622. fi
  1623. if test -n "$ac_init_help"; then
  1624. case $ac_init_help in
  1625. short | recursive ) echo "Configuration of curl -:";;
  1626. esac
  1627. cat <<\_ACEOF
  1628. Optional Features:
  1629. --disable-option-checking ignore unrecognized --enable/--with options
  1630. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1631. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1632. --enable-maintainer-mode
  1633. enable make rules and dependencies not useful (and
  1634. sometimes confusing) to the casual installer
  1635. --enable-debug Enable debug build options
  1636. --disable-debug Disable debug build options
  1637. --enable-optimize Enable compiler optimizations
  1638. --disable-optimize Disable compiler optimizations
  1639. --enable-warnings Enable strict compiler warnings
  1640. --disable-warnings Disable strict compiler warnings
  1641. --enable-werror Enable compiler warnings as errors
  1642. --disable-werror Disable compiler warnings as errors
  1643. --enable-curldebug Enable curl debug memory tracking
  1644. --disable-curldebug Disable curl debug memory tracking
  1645. --enable-symbol-hiding Enable hiding of library internal symbols
  1646. --disable-symbol-hiding Disable hiding of library internal symbols
  1647. --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
  1648. --disable-hidden-symbols
  1649. To be deprecated, use --disable-symbol-hiding
  1650. --enable-ares[=PATH] Enable c-ares for DNS lookups
  1651. --disable-ares Disable c-ares for DNS lookups
  1652. --enable-dependency-tracking
  1653. do not reject slow dependency extractors
  1654. --disable-dependency-tracking
  1655. speeds up one-time build
  1656. --enable-silent-rules less verbose build output (undo: "make V=1")
  1657. --disable-silent-rules verbose build output (undo: "make V=0")
  1658. --disable-largefile omit support for large files
  1659. --enable-shared[=PKGS] build shared libraries [default=yes]
  1660. --enable-static[=PKGS] build static libraries [default=yes]
  1661. --enable-fast-install[=PKGS]
  1662. optimize for fast installation [default=yes]
  1663. --disable-libtool-lock avoid locking (might break parallel builds)
  1664. --enable-http Enable HTTP support
  1665. --disable-http Disable HTTP support
  1666. --enable-ftp Enable FTP support
  1667. --disable-ftp Disable FTP support
  1668. --enable-file Enable FILE support
  1669. --disable-file Disable FILE support
  1670. --enable-ldap Enable LDAP support
  1671. --disable-ldap Disable LDAP support
  1672. --enable-ldaps Enable LDAPS support
  1673. --disable-ldaps Disable LDAPS support
  1674. --enable-rtsp Enable RTSP support
  1675. --disable-rtsp Disable RTSP support
  1676. --enable-proxy Enable proxy support
  1677. --disable-proxy Disable proxy support
  1678. --enable-dict Enable DICT support
  1679. --disable-dict Disable DICT support
  1680. --enable-telnet Enable TELNET support
  1681. --disable-telnet Disable TELNET support
  1682. --enable-tftp Enable TFTP support
  1683. --disable-tftp Disable TFTP support
  1684. --enable-pop3 Enable POP3 support
  1685. --disable-pop3 Disable POP3 support
  1686. --enable-imap Enable IMAP support
  1687. --disable-imap Disable IMAP support
  1688. --enable-smtp Enable SMTP support
  1689. --disable-smtp Disable SMTP support
  1690. --enable-gopher Enable Gopher support
  1691. --disable-gopher Disable Gopher support
  1692. --enable-manual Enable built-in manual
  1693. --disable-manual Disable built-in manual
  1694. --enable-libcurl-option Enable --libcurl C code generation support
  1695. --disable-libcurl-option
  1696. Disable --libcurl C code generation support
  1697. --enable-libgcc use libgcc when linking
  1698. --enable-ipv6 Enable ipv6 (with ipv4) support
  1699. --disable-ipv6 Disable ipv6 support
  1700. --enable-versioned-symbols
  1701. Enable versioned symbols in shared library
  1702. --disable-versioned-symbols
  1703. Disable versioned symbols in shared library
  1704. --enable-threaded-resolver
  1705. Enable threaded resolver
  1706. --disable-threaded-resolver
  1707. Disable threaded resolver
  1708. --enable-verbose Enable verbose strings
  1709. --disable-verbose Disable verbose strings
  1710. --enable-sspi Enable SSPI
  1711. --disable-sspi Disable SSPI
  1712. --enable-crypto-auth Enable cryptographic authentication
  1713. --disable-crypto-auth Disable cryptographic authentication
  1714. --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
  1715. helper, where FILE is ntlm_auth's absolute filename
  1716. (default: /usr/bin/ntlm_auth)
  1717. --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
  1718. helper
  1719. --enable-tls-srp Enable TLS-SRP authentication
  1720. --disable-tls-srp Disable TLS-SRP authentication
  1721. --enable-cookies Enable cookies support
  1722. --disable-cookies Disable cookies support
  1723. --enable-soname-bump Enable enforced SONAME bump
  1724. --disable-soname-bump Disable enforced SONAME bump
  1725. Optional Packages:
  1726. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1727. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1728. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1729. both]
  1730. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1731. --with-sysroot=DIR Search for dependent libraries within DIR
  1732. (or the compiler's sysroot if not specified).
  1733. --with-zlib=PATH search for zlib in PATH
  1734. --without-zlib disable use of zlib
  1735. --with-ldap-lib=libname Specify name of ldap lib file
  1736. --with-lber-lib=libname Specify name of lber lib file
  1737. --with-krb4-includes=DIR
  1738. Specify location of kerberos4 headers
  1739. --with-krb4-libs=DIR Specify location of kerberos4 libs
  1740. --with-krb4=DIR where to look for Kerberos4
  1741. --with-spnego=DIR Specify location of SPNEGO library fbopenssl
  1742. --with-gssapi-includes=DIR
  1743. Specify location of GSSAPI header
  1744. --with-gssapi-libs=DIR Specify location of GSSAPI libs
  1745. --with-gssapi=DIR Where to look for GSSAPI
  1746. --with-winssl enable Windows native SSL/TLS
  1747. --without-winssl disable Windows native SSL/TLS
  1748. --with-darwinssl enable iOS/Mac OS X native SSL/TLS
  1749. --without-darwinssl disable iOS/Mac OS X native SSL/TLS
  1750. --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
  1751. installation (default: /usr/local/ssl); when
  1752. possible, set the PKG_CONFIG_PATH environment
  1753. variable instead of using this option
  1754. --without-ssl disable OpenSSL
  1755. --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
  1756. --with-random=FILE read randomness from FILE (default=/dev/urandom)
  1757. --with-gnutls=PATH where to look for GnuTLS, PATH points to the
  1758. installation root
  1759. --without-gnutls disable GnuTLS detection
  1760. --with-polarssl=PATH where to look for PolarSSL, PATH points to the
  1761. installation root
  1762. --without-polarssl disable PolarSSL detection
  1763. --with-cyassl=PATH where to look for CyaSSL, PATH points to the
  1764. installation root (default: system lib default)
  1765. --without-cyassl disable CyaSSL detection
  1766. --with-nss=PATH where to look for NSS, PATH points to the
  1767. installation root
  1768. --without-nss disable NSS detection
  1769. --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
  1770. installation prefix (default: /usr/local). Ignored
  1771. if another SSL engine is selected.
  1772. --without-axtls disable axTLS
  1773. --with-ca-bundle=FILE File name to use as CA bundle
  1774. --without-ca-bundle Don't use a default CA bundle
  1775. --with-ca-path=DIRECTORY
  1776. Directory to use as CA path
  1777. --without-ca-path Don't use a default CA path
  1778. --with-libmetalink=PATH where to look for libmetalink, PATH points to the
  1779. installation root
  1780. --without-libmetalink disable libmetalink detection
  1781. --with-libssh2=PATH Where to look for libssh2, PATH points to the
  1782. LIBSSH2 installation; when possible, set the
  1783. PKG_CONFIG_PATH environment variable instead of
  1784. using this option
  1785. --without-libssh2 disable LIBSSH2
  1786. --with-librtmp=PATH Where to look for librtmp, PATH points to the
  1787. LIBRTMP installation; when possible, set the
  1788. PKG_CONFIG_PATH environment variable instead of
  1789. using this option
  1790. --without-librtmp disable LIBRTMP
  1791. --with-winidn=PATH enable Windows native IDN
  1792. --without-winidn disable Windows native IDN
  1793. --with-libidn=PATH Enable libidn usage
  1794. --without-libidn Disable libidn usage
  1795. Some influential environment variables:
  1796. CC C compiler command
  1797. CFLAGS C compiler flags
  1798. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1799. nonstandard directory <lib dir>
  1800. LIBS libraries to pass to the linker, e.g. -l<library>
  1801. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1802. you have headers in a nonstandard directory <include dir>
  1803. CPP C preprocessor
  1804. Use these variables to override the choices made by `configure' or to help
  1805. it to find libraries and programs with nonstandard names/locations.
  1806. Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
  1807. _ACEOF
  1808. ac_status=$?
  1809. fi
  1810. if test "$ac_init_help" = "recursive"; then
  1811. # If there are subdirs, report their specific --help.
  1812. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1813. test -d "$ac_dir" ||
  1814. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1815. continue
  1816. ac_builddir=.
  1817. case "$ac_dir" in
  1818. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1819. *)
  1820. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1821. # A ".." for each directory in $ac_dir_suffix.
  1822. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1823. case $ac_top_builddir_sub in
  1824. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1825. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1826. esac ;;
  1827. esac
  1828. ac_abs_top_builddir=$ac_pwd
  1829. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1830. # for backward compatibility:
  1831. ac_top_builddir=$ac_top_build_prefix
  1832. case $srcdir in
  1833. .) # We are building in place.
  1834. ac_srcdir=.
  1835. ac_top_srcdir=$ac_top_builddir_sub
  1836. ac_abs_top_srcdir=$ac_pwd ;;
  1837. [\\/]* | ?:[\\/]* ) # Absolute name.
  1838. ac_srcdir=$srcdir$ac_dir_suffix;
  1839. ac_top_srcdir=$srcdir
  1840. ac_abs_top_srcdir=$srcdir ;;
  1841. *) # Relative name.
  1842. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1843. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1844. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1845. esac
  1846. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1847. cd "$ac_dir" || { ac_status=$?; continue; }
  1848. # Check for guested configure.
  1849. if test -f "$ac_srcdir/configure.gnu"; then
  1850. echo &&
  1851. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1852. elif test -f "$ac_srcdir/configure"; then
  1853. echo &&
  1854. $SHELL "$ac_srcdir/configure" --help=recursive
  1855. else
  1856. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1857. fi || ac_status=$?
  1858. cd "$ac_pwd" || { ac_status=$?; break; }
  1859. done
  1860. fi
  1861. test -n "$ac_init_help" && exit $ac_status
  1862. if $ac_init_version; then
  1863. cat <<\_ACEOF
  1864. curl configure -
  1865. generated by GNU Autoconf 2.69
  1866. Copyright (C) 2012 Free Software Foundation, Inc.
  1867. This configure script is free software; the Free Software Foundation
  1868. gives unlimited permission to copy, distribute and modify it.
  1869. Copyright (c) 1998 - 2013 Daniel Stenberg, <daniel@haxx.se>
  1870. This configure script may be copied, distributed and modified under the
  1871. terms of the curl license; see COPYING for more details
  1872. _ACEOF
  1873. exit
  1874. fi
  1875. ## ------------------------ ##
  1876. ## Autoconf initialization. ##
  1877. ## ------------------------ ##
  1878. # ac_fn_c_try_compile LINENO
  1879. # --------------------------
  1880. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1881. ac_fn_c_try_compile ()
  1882. {
  1883. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1884. rm -f conftest.$ac_objext
  1885. if { { ac_try="$ac_compile"
  1886. case "(($ac_try" in
  1887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1888. *) ac_try_echo=$ac_try;;
  1889. esac
  1890. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1891. $as_echo "$ac_try_echo"; } >&5
  1892. (eval "$ac_compile") 2>conftest.err
  1893. ac_status=$?
  1894. if test -s conftest.err; then
  1895. grep -v '^ *+' conftest.err >conftest.er1
  1896. cat conftest.er1 >&5
  1897. mv -f conftest.er1 conftest.err
  1898. fi
  1899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1900. test $ac_status = 0; } && {
  1901. test -z "$ac_c_werror_flag" ||
  1902. test ! -s conftest.err
  1903. } && test -s conftest.$ac_objext; then :
  1904. ac_retval=0
  1905. else
  1906. $as_echo "$as_me: failed program was:" >&5
  1907. sed 's/^/| /' conftest.$ac_ext >&5
  1908. ac_retval=1
  1909. fi
  1910. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1911. as_fn_set_status $ac_retval
  1912. } # ac_fn_c_try_compile
  1913. # ac_fn_c_try_cpp LINENO
  1914. # ----------------------
  1915. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1916. ac_fn_c_try_cpp ()
  1917. {
  1918. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1919. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1920. case "(($ac_try" in
  1921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1922. *) ac_try_echo=$ac_try;;
  1923. esac
  1924. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1925. $as_echo "$ac_try_echo"; } >&5
  1926. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1927. ac_status=$?
  1928. if test -s conftest.err; then
  1929. grep -v '^ *+' conftest.err >conftest.er1
  1930. cat conftest.er1 >&5
  1931. mv -f conftest.er1 conftest.err
  1932. fi
  1933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1934. test $ac_status = 0; } > conftest.i && {
  1935. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1936. test ! -s conftest.err
  1937. }; then :
  1938. ac_retval=0
  1939. else
  1940. $as_echo "$as_me: failed program was:" >&5
  1941. sed 's/^/| /' conftest.$ac_ext >&5
  1942. ac_retval=1
  1943. fi
  1944. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1945. as_fn_set_status $ac_retval
  1946. } # ac_fn_c_try_cpp
  1947. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1948. # -------------------------------------------------------
  1949. # Tests whether HEADER exists and can be compiled using the include files in
  1950. # INCLUDES, setting the cache variable VAR accordingly.
  1951. ac_fn_c_check_header_compile ()
  1952. {
  1953. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1955. $as_echo_n "checking for $2... " >&6; }
  1956. if eval \${$3+:} false; then :
  1957. $as_echo_n "(cached) " >&6
  1958. else
  1959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1960. /* end confdefs.h. */
  1961. $4
  1962. #include <$2>
  1963. _ACEOF
  1964. if ac_fn_c_try_compile "$LINENO"; then :
  1965. eval "$3=yes"
  1966. else
  1967. eval "$3=no"
  1968. fi
  1969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1970. fi
  1971. eval ac_res=\$$3
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1973. $as_echo "$ac_res" >&6; }
  1974. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1975. } # ac_fn_c_check_header_compile
  1976. # ac_fn_c_try_run LINENO
  1977. # ----------------------
  1978. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1979. # that executables *can* be run.
  1980. ac_fn_c_try_run ()
  1981. {
  1982. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1983. if { { ac_try="$ac_link"
  1984. case "(($ac_try" in
  1985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1986. *) ac_try_echo=$ac_try;;
  1987. esac
  1988. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1989. $as_echo "$ac_try_echo"; } >&5
  1990. (eval "$ac_link") 2>&5
  1991. ac_status=$?
  1992. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1993. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1994. { { case "(($ac_try" in
  1995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1996. *) ac_try_echo=$ac_try;;
  1997. esac
  1998. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1999. $as_echo "$ac_try_echo"; } >&5
  2000. (eval "$ac_try") 2>&5
  2001. ac_status=$?
  2002. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2003. test $ac_status = 0; }; }; then :
  2004. ac_retval=0
  2005. else
  2006. $as_echo "$as_me: program exited with status $ac_status" >&5
  2007. $as_echo "$as_me: failed program was:" >&5
  2008. sed 's/^/| /' conftest.$ac_ext >&5
  2009. ac_retval=$ac_status
  2010. fi
  2011. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2012. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2013. as_fn_set_status $ac_retval
  2014. } # ac_fn_c_try_run
  2015. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2016. # --------------------------------------------
  2017. # Tries to find the compile-time value of EXPR in a program that includes
  2018. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2019. # computed
  2020. ac_fn_c_compute_int ()
  2021. {
  2022. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2023. if test "$cross_compiling" = yes; then
  2024. # Depending upon the size, compute the lo and hi bounds.
  2025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2026. /* end confdefs.h. */
  2027. $4
  2028. int main (void)
  2029. {
  2030. static int test_array [1 - 2 * !(($2) >= 0)];
  2031. test_array [0] = 0;
  2032. return test_array [0];
  2033. ;
  2034. return 0;
  2035. }
  2036. _ACEOF
  2037. if ac_fn_c_try_compile "$LINENO"; then :
  2038. ac_lo=0 ac_mid=0
  2039. while :; do
  2040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2041. /* end confdefs.h. */
  2042. $4
  2043. int main (void)
  2044. {
  2045. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2046. test_array [0] = 0;
  2047. return test_array [0];
  2048. ;
  2049. return 0;
  2050. }
  2051. _ACEOF
  2052. if ac_fn_c_try_compile "$LINENO"; then :
  2053. ac_hi=$ac_mid; break
  2054. else
  2055. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2056. if test $ac_lo -le $ac_mid; then
  2057. ac_lo= ac_hi=
  2058. break
  2059. fi
  2060. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2061. fi
  2062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2063. done
  2064. else
  2065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2066. /* end confdefs.h. */
  2067. $4
  2068. int main (void)
  2069. {
  2070. static int test_array [1 - 2 * !(($2) < 0)];
  2071. test_array [0] = 0;
  2072. return test_array [0];
  2073. ;
  2074. return 0;
  2075. }
  2076. _ACEOF
  2077. if ac_fn_c_try_compile "$LINENO"; then :
  2078. ac_hi=-1 ac_mid=-1
  2079. while :; do
  2080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2081. /* end confdefs.h. */
  2082. $4
  2083. int main (void)
  2084. {
  2085. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2086. test_array [0] = 0;
  2087. return test_array [0];
  2088. ;
  2089. return 0;
  2090. }
  2091. _ACEOF
  2092. if ac_fn_c_try_compile "$LINENO"; then :
  2093. ac_lo=$ac_mid; break
  2094. else
  2095. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2096. if test $ac_mid -le $ac_hi; then
  2097. ac_lo= ac_hi=
  2098. break
  2099. fi
  2100. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2101. fi
  2102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2103. done
  2104. else
  2105. ac_lo= ac_hi=
  2106. fi
  2107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2108. fi
  2109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2110. # Binary search between lo and hi bounds.
  2111. while test "x$ac_lo" != "x$ac_hi"; do
  2112. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2114. /* end confdefs.h. */
  2115. $4
  2116. int main (void)
  2117. {
  2118. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2119. test_array [0] = 0;
  2120. return test_array [0];
  2121. ;
  2122. return 0;
  2123. }
  2124. _ACEOF
  2125. if ac_fn_c_try_compile "$LINENO"; then :
  2126. ac_hi=$ac_mid
  2127. else
  2128. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2129. fi
  2130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2131. done
  2132. case $ac_lo in #((
  2133. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2134. '') ac_retval=1 ;;
  2135. esac
  2136. else
  2137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2138. /* end confdefs.h. */
  2139. $4
  2140. static long int longval () { return $2; }
  2141. static unsigned long int ulongval () { return $2; }
  2142. #include <stdio.h>
  2143. #include <stdlib.h>
  2144. int main (void)
  2145. {
  2146. FILE *f = fopen ("conftest.val", "w");
  2147. if (! f)
  2148. return 1;
  2149. if (($2) < 0)
  2150. {
  2151. long int i = longval ();
  2152. if (i != ($2))
  2153. return 1;
  2154. fprintf (f, "%ld", i);
  2155. }
  2156. else
  2157. {
  2158. unsigned long int i = ulongval ();
  2159. if (i != ($2))
  2160. return 1;
  2161. fprintf (f, "%lu", i);
  2162. }
  2163. /* Do not output a trailing newline, as this causes \r\n confusion
  2164. on some platforms. */
  2165. return ferror (f) || fclose (f) != 0;
  2166. ;
  2167. return 0;
  2168. }
  2169. _ACEOF
  2170. if ac_fn_c_try_run "$LINENO"; then :
  2171. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2172. else
  2173. ac_retval=1
  2174. fi
  2175. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2176. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2177. rm -f conftest.val
  2178. fi
  2179. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2180. as_fn_set_status $ac_retval
  2181. } # ac_fn_c_compute_int
  2182. # ac_fn_c_try_link LINENO
  2183. # -----------------------
  2184. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2185. ac_fn_c_try_link ()
  2186. {
  2187. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2188. rm -f conftest.$ac_objext conftest$ac_exeext
  2189. if { { ac_try="$ac_link"
  2190. case "(($ac_try" in
  2191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2192. *) ac_try_echo=$ac_try;;
  2193. esac
  2194. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2195. $as_echo "$ac_try_echo"; } >&5
  2196. (eval "$ac_link") 2>conftest.err
  2197. ac_status=$?
  2198. if test -s conftest.err; then
  2199. grep -v '^ *+' conftest.err >conftest.er1
  2200. cat conftest.er1 >&5
  2201. mv -f conftest.er1 conftest.err
  2202. fi
  2203. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2204. test $ac_status = 0; } && {
  2205. test -z "$ac_c_werror_flag" ||
  2206. test ! -s conftest.err
  2207. } && test -s conftest$ac_exeext && {
  2208. test "$cross_compiling" = yes ||
  2209. test -x conftest$ac_exeext
  2210. }; then :
  2211. ac_retval=0
  2212. else
  2213. $as_echo "$as_me: failed program was:" >&5
  2214. sed 's/^/| /' conftest.$ac_ext >&5
  2215. ac_retval=1
  2216. fi
  2217. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2218. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2219. # interfere with the next link command; also delete a directory that is
  2220. # left behind by Apple's compiler. We do this before executing the actions.
  2221. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2222. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2223. as_fn_set_status $ac_retval
  2224. } # ac_fn_c_try_link
  2225. # ac_fn_c_check_func LINENO FUNC VAR
  2226. # ----------------------------------
  2227. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2228. ac_fn_c_check_func ()
  2229. {
  2230. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2232. $as_echo_n "checking for $2... " >&6; }
  2233. if eval \${$3+:} false; then :
  2234. $as_echo_n "(cached) " >&6
  2235. else
  2236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2237. /* end confdefs.h. */
  2238. #define $2 innocuous_$2
  2239. #ifdef __STDC__
  2240. # include <limits.h>
  2241. #else
  2242. # include <assert.h>
  2243. #endif
  2244. #undef $2
  2245. #ifdef __cplusplus
  2246. extern "C"
  2247. #endif
  2248. char $2 ();
  2249. #if defined __stub_$2 || defined __stub___$2
  2250. choke me
  2251. #endif
  2252. int main (void)
  2253. {
  2254. return $2 ();
  2255. ;
  2256. return 0;
  2257. }
  2258. _ACEOF
  2259. if ac_fn_c_try_link "$LINENO"; then :
  2260. eval "$3=yes"
  2261. else
  2262. eval "$3=no"
  2263. fi
  2264. rm -f core conftest.err conftest.$ac_objext \
  2265. conftest$ac_exeext conftest.$ac_ext
  2266. fi
  2267. eval ac_res=\$$3
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2269. $as_echo "$ac_res" >&6; }
  2270. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2271. } # ac_fn_c_check_func
  2272. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2273. # -------------------------------------------------------
  2274. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2275. # the include files in INCLUDES and setting the cache variable VAR
  2276. # accordingly.
  2277. ac_fn_c_check_header_mongrel ()
  2278. {
  2279. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2280. if eval \${$3+:} false; then :
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2282. $as_echo_n "checking for $2... " >&6; }
  2283. if eval \${$3+:} false; then :
  2284. $as_echo_n "(cached) " >&6
  2285. fi
  2286. eval ac_res=\$$3
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2288. $as_echo "$ac_res" >&6; }
  2289. else
  2290. # Is the header compilable?
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2292. $as_echo_n "checking $2 usability... " >&6; }
  2293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2294. /* end confdefs.h. */
  2295. $4
  2296. #include <$2>
  2297. _ACEOF
  2298. if ac_fn_c_try_compile "$LINENO"; then :
  2299. ac_header_compiler=yes
  2300. else
  2301. ac_header_compiler=no
  2302. fi
  2303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2305. $as_echo "$ac_header_compiler" >&6; }
  2306. # Is the header present?
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2308. $as_echo_n "checking $2 presence... " >&6; }
  2309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2310. /* end confdefs.h. */
  2311. #include <$2>
  2312. _ACEOF
  2313. if ac_fn_c_try_cpp "$LINENO"; then :
  2314. ac_header_preproc=yes
  2315. else
  2316. ac_header_preproc=no
  2317. fi
  2318. rm -f conftest.err conftest.i conftest.$ac_ext
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2320. $as_echo "$ac_header_preproc" >&6; }
  2321. # So? What about this header?
  2322. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2323. yes:no: )
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2325. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2327. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2328. ;;
  2329. no:yes:* )
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2331. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2333. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2335. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2337. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2339. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2340. ( $as_echo "## ---------------------------------------------------------------------- ##
  2341. ## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ##
  2342. ## ---------------------------------------------------------------------- ##"
  2343. ) | sed "s/^/$as_me: WARNING: /" >&2
  2344. ;;
  2345. esac
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2347. $as_echo_n "checking for $2... " >&6; }
  2348. if eval \${$3+:} false; then :
  2349. $as_echo_n "(cached) " >&6
  2350. else
  2351. eval "$3=\$ac_header_compiler"
  2352. fi
  2353. eval ac_res=\$$3
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2355. $as_echo "$ac_res" >&6; }
  2356. fi
  2357. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2358. } # ac_fn_c_check_header_mongrel
  2359. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2360. # -------------------------------------------
  2361. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2362. # variable VAR accordingly.
  2363. ac_fn_c_check_type ()
  2364. {
  2365. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2367. $as_echo_n "checking for $2... " >&6; }
  2368. if eval \${$3+:} false; then :
  2369. $as_echo_n "(cached) " >&6
  2370. else
  2371. eval "$3=no"
  2372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2373. /* end confdefs.h. */
  2374. $4
  2375. int main (void)
  2376. {
  2377. if (sizeof ($2))
  2378. return 0;
  2379. ;
  2380. return 0;
  2381. }
  2382. _ACEOF
  2383. if ac_fn_c_try_compile "$LINENO"; then :
  2384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2385. /* end confdefs.h. */
  2386. $4
  2387. int main (void)
  2388. {
  2389. if (sizeof (($2)))
  2390. return 0;
  2391. ;
  2392. return 0;
  2393. }
  2394. _ACEOF
  2395. if ac_fn_c_try_compile "$LINENO"; then :
  2396. else
  2397. eval "$3=yes"
  2398. fi
  2399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2400. fi
  2401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2402. fi
  2403. eval ac_res=\$$3
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2405. $as_echo "$ac_res" >&6; }
  2406. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2407. } # ac_fn_c_check_type
  2408. cat >config.log <<_ACEOF
  2409. This file contains any messages produced by compilers while
  2410. running configure, to aid debugging if configure makes a mistake.
  2411. It was created by curl $as_me -, which was
  2412. generated by GNU Autoconf 2.69. Invocation command line was
  2413. $ $0 $@
  2414. _ACEOF
  2415. exec 5>>config.log
  2416. {
  2417. cat <<_ASUNAME
  2418. ## --------- ##
  2419. ## Platform. ##
  2420. ## --------- ##
  2421. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2422. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2423. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2424. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2425. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2426. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2427. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2428. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2429. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2430. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2431. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2432. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2433. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2434. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2435. _ASUNAME
  2436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2437. for as_dir in $PATH
  2438. do
  2439. IFS=$as_save_IFS
  2440. test -z "$as_dir" && as_dir=.
  2441. $as_echo "PATH: $as_dir"
  2442. done
  2443. IFS=$as_save_IFS
  2444. } >&5
  2445. cat >&5 <<_ACEOF
  2446. ## ----------- ##
  2447. ## Core tests. ##
  2448. ## ----------- ##
  2449. _ACEOF
  2450. # Keep a trace of the command line.
  2451. # Strip out --no-create and --no-recursion so they do not pile up.
  2452. # Strip out --silent because we don't want to record it for future runs.
  2453. # Also quote any args containing shell meta-characters.
  2454. # Make two passes to allow for proper duplicate-argument suppression.
  2455. ac_configure_args=
  2456. ac_configure_args0=
  2457. ac_configure_args1=
  2458. ac_must_keep_next=false
  2459. for ac_pass in 1 2
  2460. do
  2461. for ac_arg
  2462. do
  2463. case $ac_arg in
  2464. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2465. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2466. | -silent | --silent | --silen | --sile | --sil)
  2467. continue ;;
  2468. *\'*)
  2469. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2470. esac
  2471. case $ac_pass in
  2472. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2473. 2)
  2474. as_fn_append ac_configure_args1 " '$ac_arg'"
  2475. if test $ac_must_keep_next = true; then
  2476. ac_must_keep_next=false # Got value, back to normal.
  2477. else
  2478. case $ac_arg in
  2479. *=* | --config-cache | -C | -disable-* | --disable-* \
  2480. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2481. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2482. | -with-* | --with-* | -without-* | --without-* | --x)
  2483. case "$ac_configure_args0 " in
  2484. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2485. esac
  2486. ;;
  2487. -* ) ac_must_keep_next=true ;;
  2488. esac
  2489. fi
  2490. as_fn_append ac_configure_args " '$ac_arg'"
  2491. ;;
  2492. esac
  2493. done
  2494. done
  2495. { ac_configure_args0=; unset ac_configure_args0;}
  2496. { ac_configure_args1=; unset ac_configure_args1;}
  2497. # When interrupted or exit'd, cleanup temporary files, and complete
  2498. # config.log. We remove comments because anyway the quotes in there
  2499. # would cause problems or look ugly.
  2500. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2501. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2502. trap 'exit_status=$?
  2503. # Save into config.log some information that might help in debugging.
  2504. {
  2505. echo
  2506. $as_echo "## ---------------- ##
  2507. ## Cache variables. ##
  2508. ## ---------------- ##"
  2509. echo
  2510. # The following way of writing the cache mishandles newlines in values,
  2511. (
  2512. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2513. eval ac_val=\$$ac_var
  2514. case $ac_val in #(
  2515. *${as_nl}*)
  2516. case $ac_var in #(
  2517. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2518. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2519. esac
  2520. case $ac_var in #(
  2521. _ | IFS | as_nl) ;; #(
  2522. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2523. *) { eval $ac_var=; unset $ac_var;} ;;
  2524. esac ;;
  2525. esac
  2526. done
  2527. (set) 2>&1 |
  2528. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2529. *${as_nl}ac_space=\ *)
  2530. sed -n \
  2531. "s/'\''/'\''\\\\'\'''\''/g;
  2532. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2533. ;; #(
  2534. *)
  2535. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2536. ;;
  2537. esac |
  2538. sort
  2539. )
  2540. echo
  2541. $as_echo "## ----------------- ##
  2542. ## Output variables. ##
  2543. ## ----------------- ##"
  2544. echo
  2545. for ac_var in $ac_subst_vars
  2546. do
  2547. eval ac_val=\$$ac_var
  2548. case $ac_val in
  2549. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2550. esac
  2551. $as_echo "$ac_var='\''$ac_val'\''"
  2552. done | sort
  2553. echo
  2554. if test -n "$ac_subst_files"; then
  2555. $as_echo "## ------------------- ##
  2556. ## File substitutions. ##
  2557. ## ------------------- ##"
  2558. echo
  2559. for ac_var in $ac_subst_files
  2560. do
  2561. eval ac_val=\$$ac_var
  2562. case $ac_val in
  2563. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2564. esac
  2565. $as_echo "$ac_var='\''$ac_val'\''"
  2566. done | sort
  2567. echo
  2568. fi
  2569. if test -s confdefs.h; then
  2570. $as_echo "## ----------- ##
  2571. ## confdefs.h. ##
  2572. ## ----------- ##"
  2573. echo
  2574. cat confdefs.h
  2575. echo
  2576. fi
  2577. test "$ac_signal" != 0 &&
  2578. $as_echo "$as_me: caught signal $ac_signal"
  2579. $as_echo "$as_me: exit $exit_status"
  2580. } >&5
  2581. rm -f core *.core core.conftest.* &&
  2582. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2583. exit $exit_status
  2584. ' 0
  2585. for ac_signal in 1 2 13 15; do
  2586. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2587. done
  2588. ac_signal=0
  2589. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2590. rm -f -r conftest* confdefs.h
  2591. $as_echo "/* confdefs.h */" > confdefs.h
  2592. # Predefined preprocessor variables.
  2593. cat >>confdefs.h <<_ACEOF
  2594. #define PACKAGE_NAME "$PACKAGE_NAME"
  2595. _ACEOF
  2596. cat >>confdefs.h <<_ACEOF
  2597. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2598. _ACEOF
  2599. cat >>confdefs.h <<_ACEOF
  2600. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2601. _ACEOF
  2602. cat >>confdefs.h <<_ACEOF
  2603. #define PACKAGE_STRING "$PACKAGE_STRING"
  2604. _ACEOF
  2605. cat >>confdefs.h <<_ACEOF
  2606. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2607. _ACEOF
  2608. cat >>confdefs.h <<_ACEOF
  2609. #define PACKAGE_URL "$PACKAGE_URL"
  2610. _ACEOF
  2611. # Let the site file select an alternate cache file if it wants to.
  2612. # Prefer an explicitly selected file to automatically selected ones.
  2613. ac_site_file1=NONE
  2614. ac_site_file2=NONE
  2615. if test -n "$CONFIG_SITE"; then
  2616. # We do not want a PATH search for config.site.
  2617. case $CONFIG_SITE in #((
  2618. -*) ac_site_file1=./$CONFIG_SITE;;
  2619. */*) ac_site_file1=$CONFIG_SITE;;
  2620. *) ac_site_file1=./$CONFIG_SITE;;
  2621. esac
  2622. elif test "x$prefix" != xNONE; then
  2623. ac_site_file1=$prefix/share/config.site
  2624. ac_site_file2=$prefix/etc/config.site
  2625. else
  2626. ac_site_file1=$ac_default_prefix/share/config.site
  2627. ac_site_file2=$ac_default_prefix/etc/config.site
  2628. fi
  2629. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2630. do
  2631. test "x$ac_site_file" = xNONE && continue
  2632. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2634. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2635. sed 's/^/| /' "$ac_site_file" >&5
  2636. . "$ac_site_file" \
  2637. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2638. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2639. as_fn_error $? "failed to load site script $ac_site_file
  2640. See \`config.log' for more details" "$LINENO" 5; }
  2641. fi
  2642. done
  2643. if test -r "$cache_file"; then
  2644. # Some versions of bash will fail to source /dev/null (special files
  2645. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2646. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2648. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2649. case $cache_file in
  2650. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2651. *) . "./$cache_file";;
  2652. esac
  2653. fi
  2654. else
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2656. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2657. >$cache_file
  2658. fi
  2659. # Check that the precious variables saved in the cache have kept the same
  2660. # value.
  2661. ac_cache_corrupted=false
  2662. for ac_var in $ac_precious_vars; do
  2663. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2664. eval ac_new_set=\$ac_env_${ac_var}_set
  2665. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2666. eval ac_new_val=\$ac_env_${ac_var}_value
  2667. case $ac_old_set,$ac_new_set in
  2668. set,)
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2670. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2671. ac_cache_corrupted=: ;;
  2672. ,set)
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2674. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2675. ac_cache_corrupted=: ;;
  2676. ,);;
  2677. *)
  2678. if test "x$ac_old_val" != "x$ac_new_val"; then
  2679. # differences in whitespace do not lead to failure.
  2680. ac_old_val_w=`echo x $ac_old_val`
  2681. ac_new_val_w=`echo x $ac_new_val`
  2682. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2684. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2685. ac_cache_corrupted=:
  2686. else
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2688. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2689. eval $ac_var=\$ac_old_val
  2690. fi
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2692. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2694. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2695. fi;;
  2696. esac
  2697. # Pass precious variables to config.status.
  2698. if test "$ac_new_set" = set; then
  2699. case $ac_new_val in
  2700. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2701. *) ac_arg=$ac_var=$ac_new_val ;;
  2702. esac
  2703. case " $ac_configure_args " in
  2704. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2705. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2706. esac
  2707. fi
  2708. done
  2709. if $ac_cache_corrupted; then
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2711. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2713. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2714. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2715. fi
  2716. ## -------------------- ##
  2717. ## Main body of script. ##
  2718. ## -------------------- ##
  2719. ac_ext=c
  2720. ac_cpp='$CPP $CPPFLAGS'
  2721. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2722. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2723. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2724. # using curl-override.m4
  2725. ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2727. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2728. # Check whether --enable-maintainer-mode was given.
  2729. if test "${enable_maintainer_mode+set}" = set; then :
  2730. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2731. else
  2732. USE_MAINTAINER_MODE=no
  2733. fi
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2735. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2736. if test $USE_MAINTAINER_MODE = yes; then
  2737. MAINTAINER_MODE_TRUE=
  2738. MAINTAINER_MODE_FALSE='#'
  2739. else
  2740. MAINTAINER_MODE_TRUE='#'
  2741. MAINTAINER_MODE_FALSE=
  2742. fi
  2743. MAINT=$MAINTAINER_MODE_TRUE
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
  2745. $as_echo_n "checking whether to enable debug build options... " >&6; }
  2746. OPT_DEBUG_BUILD="default"
  2747. # Check whether --enable-debug was given.
  2748. if test "${enable_debug+set}" = set; then :
  2749. enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
  2750. fi
  2751. case "$OPT_DEBUG_BUILD" in
  2752. no)
  2753. want_debug="no"
  2754. ;;
  2755. default)
  2756. want_debug="no"
  2757. ;;
  2758. *)
  2759. want_debug="yes"
  2760. ;;
  2761. esac
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
  2763. $as_echo "$want_debug" >&6; }
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
  2765. $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
  2766. OPT_COMPILER_OPTIMIZE="default"
  2767. # Check whether --enable-optimize was given.
  2768. if test "${enable_optimize+set}" = set; then :
  2769. enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
  2770. fi
  2771. case "$OPT_COMPILER_OPTIMIZE" in
  2772. no)
  2773. want_optimize="no"
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2775. $as_echo "no" >&6; }
  2776. ;;
  2777. default)
  2778. if test "$want_debug" = "yes"; then
  2779. want_optimize="assume_no"
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
  2781. $as_echo "(assumed) no" >&6; }
  2782. else
  2783. want_optimize="assume_yes"
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  2785. $as_echo "(assumed) yes" >&6; }
  2786. fi
  2787. ;;
  2788. *)
  2789. want_optimize="yes"
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2791. $as_echo "yes" >&6; }
  2792. ;;
  2793. esac
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
  2795. $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
  2796. OPT_COMPILER_WARNINGS="default"
  2797. # Check whether --enable-warnings was given.
  2798. if test "${enable_warnings+set}" = set; then :
  2799. enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
  2800. fi
  2801. case "$OPT_COMPILER_WARNINGS" in
  2802. no)
  2803. want_warnings="no"
  2804. ;;
  2805. default)
  2806. want_warnings="$want_debug"
  2807. ;;
  2808. *)
  2809. want_warnings="yes"
  2810. ;;
  2811. esac
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
  2813. $as_echo "$want_warnings" >&6; }
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
  2815. $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
  2816. OPT_COMPILER_WERROR="default"
  2817. # Check whether --enable-werror was given.
  2818. if test "${enable_werror+set}" = set; then :
  2819. enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
  2820. fi
  2821. case "$OPT_COMPILER_WERROR" in
  2822. no)
  2823. want_werror="no"
  2824. ;;
  2825. default)
  2826. want_werror="no"
  2827. ;;
  2828. *)
  2829. want_werror="yes"
  2830. ;;
  2831. esac
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
  2833. $as_echo "$want_werror" >&6; }
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
  2835. $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
  2836. OPT_CURLDEBUG_BUILD="default"
  2837. # Check whether --enable-curldebug was given.
  2838. if test "${enable_curldebug+set}" = set; then :
  2839. enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
  2840. fi
  2841. case "$OPT_CURLDEBUG_BUILD" in
  2842. no)
  2843. want_curldebug="no"
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2845. $as_echo "no" >&6; }
  2846. ;;
  2847. default)
  2848. if test "$want_debug" = "yes"; then
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  2850. $as_echo "(assumed) yes" >&6; }
  2851. else
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2853. $as_echo "no" >&6; }
  2854. fi
  2855. want_curldebug_assumed="yes"
  2856. want_curldebug="$want_debug"
  2857. ;;
  2858. *)
  2859. want_curldebug="yes"
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2861. $as_echo "yes" >&6; }
  2862. ;;
  2863. esac
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
  2865. $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
  2866. OPT_SYMBOL_HIDING="default"
  2867. # Check whether --enable-symbol-hiding was given.
  2868. if test "${enable_symbol_hiding+set}" = set; then :
  2869. enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
  2870. fi
  2871. # Check whether --enable-hidden-symbols was given.
  2872. if test "${enable_hidden_symbols+set}" = set; then :
  2873. enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
  2874. fi
  2875. case "$OPT_SYMBOL_HIDING" in
  2876. no)
  2877. want_symbol_hiding="no"
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2879. $as_echo "no" >&6; }
  2880. ;;
  2881. default)
  2882. want_symbol_hiding="yes"
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2884. $as_echo "yes" >&6; }
  2885. ;;
  2886. *)
  2887. want_symbol_hiding="yes"
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2889. $as_echo "yes" >&6; }
  2890. ;;
  2891. esac
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
  2893. $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
  2894. OPT_ARES="default"
  2895. # Check whether --enable-ares was given.
  2896. if test "${enable_ares+set}" = set; then :
  2897. enableval=$enable_ares; OPT_ARES=$enableval
  2898. fi
  2899. case "$OPT_ARES" in
  2900. no)
  2901. want_ares="no"
  2902. ;;
  2903. default)
  2904. want_ares="no"
  2905. ;;
  2906. *)
  2907. want_ares="yes"
  2908. if test -n "$enableval" && test "$enableval" != "yes"; then
  2909. want_ares_path="$enableval"
  2910. fi
  2911. ;;
  2912. esac
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
  2914. $as_echo "$want_ares" >&6; }
  2915. #
  2916. # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
  2917. #
  2918. if test -z "$xc_configure_preamble_result"; then
  2919. as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
  2920. fi
  2921. #
  2922. # Check that 'PATH_SEPARATOR' has already been set.
  2923. #
  2924. if test -z "$xc_PATH_SEPARATOR"; then
  2925. as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
  2926. fi
  2927. if test -z "$PATH_SEPARATOR"; then
  2928. as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
  2929. fi
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
  2931. $as_echo_n "checking for path separator... " >&6; }
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
  2933. $as_echo "$PATH_SEPARATOR" >&6; }
  2934. if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
  2936. $as_echo_n "checking for initial path separator... " >&6; }
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
  2938. $as_echo "$xc_PATH_SEPARATOR" >&6; }
  2939. as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
  2940. fi
  2941. #
  2942. # save the configure arguments
  2943. #
  2944. CONFIGURE_OPTIONS="\"$ac_configure_args\""
  2945. CURL_CFLAG_EXTRAS=""
  2946. if test X"$want_werror" = Xyes; then
  2947. CURL_CFLAG_EXTRAS="-Werror"
  2948. fi
  2949. if test -z "$SED"; then
  2950. # Extract the first word of "sed", so it can be a program name with args.
  2951. set dummy sed; ac_word=$2
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2953. $as_echo_n "checking for $ac_word... " >&6; }
  2954. if ${ac_cv_path_SED+:} false; then :
  2955. $as_echo_n "(cached) " >&6
  2956. else
  2957. case $SED in
  2958. [\\/]* | ?:[\\/]*)
  2959. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  2960. ;;
  2961. *)
  2962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2963. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  2964. for as_dir in $as_dummy
  2965. do
  2966. IFS=$as_save_IFS
  2967. test -z "$as_dir" && as_dir=.
  2968. for ac_exec_ext in '' $ac_executable_extensions; do
  2969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2970. ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
  2971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2972. break 2
  2973. fi
  2974. done
  2975. done
  2976. IFS=$as_save_IFS
  2977. test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
  2978. ;;
  2979. esac
  2980. fi
  2981. SED=$ac_cv_path_SED
  2982. if test -n "$SED"; then
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  2984. $as_echo "$SED" >&6; }
  2985. else
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2987. $as_echo "no" >&6; }
  2988. fi
  2989. if test -z "$SED" || test "$SED" = "not_found"; then
  2990. as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
  2991. fi
  2992. fi
  2993. if test -z "$GREP"; then
  2994. # Extract the first word of "grep", so it can be a program name with args.
  2995. set dummy grep; ac_word=$2
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2997. $as_echo_n "checking for $ac_word... " >&6; }
  2998. if ${ac_cv_path_GREP+:} false; then :
  2999. $as_echo_n "(cached) " >&6
  3000. else
  3001. case $GREP in
  3002. [\\/]* | ?:[\\/]*)
  3003. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  3004. ;;
  3005. *)
  3006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3007. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3008. for as_dir in $as_dummy
  3009. do
  3010. IFS=$as_save_IFS
  3011. test -z "$as_dir" && as_dir=.
  3012. for ac_exec_ext in '' $ac_executable_extensions; do
  3013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3014. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  3015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3016. break 2
  3017. fi
  3018. done
  3019. done
  3020. IFS=$as_save_IFS
  3021. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
  3022. ;;
  3023. esac
  3024. fi
  3025. GREP=$ac_cv_path_GREP
  3026. if test -n "$GREP"; then
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  3028. $as_echo "$GREP" >&6; }
  3029. else
  3030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3031. $as_echo "no" >&6; }
  3032. fi
  3033. if test -z "$GREP" || test "$GREP" = "not_found"; then
  3034. as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
  3035. fi
  3036. fi
  3037. if test -z "$EGREP"; then
  3038. if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3040. $as_echo_n "checking for egrep... " >&6; }
  3041. EGREP="$GREP -E"
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
  3043. $as_echo "$EGREP" >&6; }
  3044. else
  3045. # Extract the first word of "egrep", so it can be a program name with args.
  3046. set dummy egrep; ac_word=$2
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3048. $as_echo_n "checking for $ac_word... " >&6; }
  3049. if ${ac_cv_path_EGREP+:} false; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. case $EGREP in
  3053. [\\/]* | ?:[\\/]*)
  3054. ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
  3055. ;;
  3056. *)
  3057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3058. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3059. for as_dir in $as_dummy
  3060. do
  3061. IFS=$as_save_IFS
  3062. test -z "$as_dir" && as_dir=.
  3063. for ac_exec_ext in '' $ac_executable_extensions; do
  3064. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3065. ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
  3066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3067. break 2
  3068. fi
  3069. done
  3070. done
  3071. IFS=$as_save_IFS
  3072. test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
  3073. ;;
  3074. esac
  3075. fi
  3076. EGREP=$ac_cv_path_EGREP
  3077. if test -n "$EGREP"; then
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
  3079. $as_echo "$EGREP" >&6; }
  3080. else
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3082. $as_echo "no" >&6; }
  3083. fi
  3084. fi
  3085. fi
  3086. if test -z "$EGREP" || test "$EGREP" = "not_found"; then
  3087. as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
  3088. fi
  3089. if test -z "$AR"; then
  3090. if test -n "$ac_tool_prefix"; then
  3091. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3092. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3094. $as_echo_n "checking for $ac_word... " >&6; }
  3095. if ${ac_cv_path_AR+:} false; then :
  3096. $as_echo_n "(cached) " >&6
  3097. else
  3098. case $AR in
  3099. [\\/]* | ?:[\\/]*)
  3100. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  3101. ;;
  3102. *)
  3103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3104. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3105. for as_dir in $as_dummy
  3106. do
  3107. IFS=$as_save_IFS
  3108. test -z "$as_dir" && as_dir=.
  3109. for ac_exec_ext in '' $ac_executable_extensions; do
  3110. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3111. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  3112. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3113. break 2
  3114. fi
  3115. done
  3116. done
  3117. IFS=$as_save_IFS
  3118. ;;
  3119. esac
  3120. fi
  3121. AR=$ac_cv_path_AR
  3122. if test -n "$AR"; then
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3124. $as_echo "$AR" >&6; }
  3125. else
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3127. $as_echo "no" >&6; }
  3128. fi
  3129. fi
  3130. if test -z "$ac_cv_path_AR"; then
  3131. ac_pt_AR=$AR
  3132. # Extract the first word of "ar", so it can be a program name with args.
  3133. set dummy ar; ac_word=$2
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3135. $as_echo_n "checking for $ac_word... " >&6; }
  3136. if ${ac_cv_path_ac_pt_AR+:} false; then :
  3137. $as_echo_n "(cached) " >&6
  3138. else
  3139. case $ac_pt_AR in
  3140. [\\/]* | ?:[\\/]*)
  3141. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  3142. ;;
  3143. *)
  3144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3145. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3146. for as_dir in $as_dummy
  3147. do
  3148. IFS=$as_save_IFS
  3149. test -z "$as_dir" && as_dir=.
  3150. for ac_exec_ext in '' $ac_executable_extensions; do
  3151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3152. ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
  3153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3154. break 2
  3155. fi
  3156. done
  3157. done
  3158. IFS=$as_save_IFS
  3159. ;;
  3160. esac
  3161. fi
  3162. ac_pt_AR=$ac_cv_path_ac_pt_AR
  3163. if test -n "$ac_pt_AR"; then
  3164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
  3165. $as_echo "$ac_pt_AR" >&6; }
  3166. else
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3168. $as_echo "no" >&6; }
  3169. fi
  3170. if test "x$ac_pt_AR" = x; then
  3171. AR="not_found"
  3172. else
  3173. case $cross_compiling:$ac_tool_warned in
  3174. yes:)
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3176. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3177. ac_tool_warned=yes ;;
  3178. esac
  3179. AR=$ac_pt_AR
  3180. fi
  3181. else
  3182. AR="$ac_cv_path_AR"
  3183. fi
  3184. if test -z "$AR" || test "$AR" = "not_found"; then
  3185. as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
  3186. fi
  3187. fi
  3188. if test -f ${srcdir}/include/curl/curlbuild.h; then
  3189. rm -f ${srcdir}/include/curl/curlbuild.h
  3190. fi
  3191. CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
  3192. xc_prog_cc_prev_IFS=$IFS
  3193. xc_prog_cc_prev_LIBS=$LIBS
  3194. xc_prog_cc_prev_CFLAGS=$CFLAGS
  3195. xc_prog_cc_prev_LDFLAGS=$LDFLAGS
  3196. xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
  3197. xc_bad_var_libs=no
  3198. for xc_word in $LIBS; do
  3199. case "$xc_word" in
  3200. -l* | --library=*)
  3201. :
  3202. ;;
  3203. *)
  3204. xc_bad_var_libs=yes
  3205. ;;
  3206. esac
  3207. done
  3208. if test $xc_bad_var_libs = yes; then
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
  3210. $as_echo "$as_me: using LIBS: $LIBS" >&6;}
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
  3212. $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
  3213. fi
  3214. xc_bad_var_ldflags=no
  3215. for xc_word in $LDFLAGS; do
  3216. case "$xc_word" in
  3217. -D*)
  3218. xc_bad_var_ldflags=yes
  3219. ;;
  3220. -U*)
  3221. xc_bad_var_ldflags=yes
  3222. ;;
  3223. -I*)
  3224. xc_bad_var_ldflags=yes
  3225. ;;
  3226. -l* | --library=*)
  3227. xc_bad_var_ldflags=yes
  3228. ;;
  3229. esac
  3230. done
  3231. if test $xc_bad_var_ldflags = yes; then
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
  3233. $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
  3234. xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
  3235. for xc_word in $LDFLAGS; do
  3236. case "$xc_word" in
  3237. -D*)
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  3239. $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  3240. ;;
  3241. -U*)
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  3243. $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  3244. ;;
  3245. -I*)
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  3247. $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  3248. ;;
  3249. -l* | --library=*)
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3251. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3252. ;;
  3253. esac
  3254. done
  3255. fi
  3256. xc_bad_var_cppflags=no
  3257. for xc_word in $CPPFLAGS; do
  3258. case "$xc_word" in
  3259. -rpath*)
  3260. xc_bad_var_cppflags=yes
  3261. ;;
  3262. -L* | --library-path=*)
  3263. xc_bad_var_cppflags=yes
  3264. ;;
  3265. -l* | --library=*)
  3266. xc_bad_var_cppflags=yes
  3267. ;;
  3268. esac
  3269. done
  3270. if test $xc_bad_var_cppflags = yes; then
  3271. { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
  3272. $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
  3273. xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
  3274. for xc_word in $CPPFLAGS; do
  3275. case "$xc_word" in
  3276. -rpath*)
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  3278. $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  3279. ;;
  3280. -L* | --library-path=*)
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  3282. $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  3283. ;;
  3284. -l* | --library=*)
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3286. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3287. ;;
  3288. esac
  3289. done
  3290. fi
  3291. xc_bad_var_cflags=no
  3292. for xc_word in $CFLAGS; do
  3293. case "$xc_word" in
  3294. -D*)
  3295. xc_bad_var_cflags=yes
  3296. ;;
  3297. -U*)
  3298. xc_bad_var_cflags=yes
  3299. ;;
  3300. -I*)
  3301. xc_bad_var_cflags=yes
  3302. ;;
  3303. -rpath*)
  3304. xc_bad_var_cflags=yes
  3305. ;;
  3306. -L* | --library-path=*)
  3307. xc_bad_var_cflags=yes
  3308. ;;
  3309. -l* | --library=*)
  3310. xc_bad_var_cflags=yes
  3311. ;;
  3312. esac
  3313. done
  3314. if test $xc_bad_var_cflags = yes; then
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
  3316. $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
  3317. xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
  3318. for xc_word in $CFLAGS; do
  3319. case "$xc_word" in
  3320. -D*)
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  3322. $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  3323. ;;
  3324. -U*)
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  3326. $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  3327. ;;
  3328. -I*)
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  3330. $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  3331. ;;
  3332. -rpath*)
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  3334. $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  3335. ;;
  3336. -L* | --library-path=*)
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  3338. $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  3339. ;;
  3340. -l* | --library=*)
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3342. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3343. ;;
  3344. esac
  3345. done
  3346. fi
  3347. if test $xc_bad_var_libs = yes ||
  3348. test $xc_bad_var_cflags = yes ||
  3349. test $xc_bad_var_ldflags = yes ||
  3350. test $xc_bad_var_cppflags = yes; then
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
  3352. $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
  3353. fi
  3354. ac_aux_dir=
  3355. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3356. if test -f "$ac_dir/install-sh"; then
  3357. ac_aux_dir=$ac_dir
  3358. ac_install_sh="$ac_aux_dir/install-sh -c"
  3359. break
  3360. elif test -f "$ac_dir/install.sh"; then
  3361. ac_aux_dir=$ac_dir
  3362. ac_install_sh="$ac_aux_dir/install.sh -c"
  3363. break
  3364. elif test -f "$ac_dir/shtool"; then
  3365. ac_aux_dir=$ac_dir
  3366. ac_install_sh="$ac_aux_dir/shtool install -c"
  3367. break
  3368. fi
  3369. done
  3370. if test -z "$ac_aux_dir"; then
  3371. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3372. fi
  3373. # These three variables are undocumented and unsupported,
  3374. # and are intended to be withdrawn in a future Autoconf release.
  3375. # They can cause serious problems if a builder's source tree is in a directory
  3376. # whose full name contains unusual characters.
  3377. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3378. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3379. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3380. # Find a good install program. We prefer a C program (faster),
  3381. # so one script is as good as another. But avoid the broken or
  3382. # incompatible versions:
  3383. # SysV /etc/install, /usr/sbin/install
  3384. # SunOS /usr/etc/install
  3385. # IRIX /sbin/install
  3386. # AIX /bin/install
  3387. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3388. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3389. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3390. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3391. # OS/2's system install, which has a completely different semantic
  3392. # ./install, which can be erroneously created by make from ./install.sh.
  3393. # Reject install programs that cannot install multiple files.
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3395. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3396. if test -z "$INSTALL"; then
  3397. if ${ac_cv_path_install+:} false; then :
  3398. $as_echo_n "(cached) " >&6
  3399. else
  3400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3401. for as_dir in $PATH
  3402. do
  3403. IFS=$as_save_IFS
  3404. test -z "$as_dir" && as_dir=.
  3405. # Account for people who put trailing slashes in PATH elements.
  3406. case $as_dir/ in #((
  3407. ./ | .// | /[cC]/* | \
  3408. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3409. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3410. /usr/ucb/* ) ;;
  3411. *)
  3412. # OSF1 and SCO ODT 3.0 have their own names for install.
  3413. # Don't use installbsd from OSF since it installs stuff as root
  3414. # by default.
  3415. for ac_prog in ginstall scoinst install; do
  3416. for ac_exec_ext in '' $ac_executable_extensions; do
  3417. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3418. if test $ac_prog = install &&
  3419. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3420. # AIX install. It has an incompatible calling convention.
  3421. :
  3422. elif test $ac_prog = install &&
  3423. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3424. # program-specific install script used by HP pwplus--don't use.
  3425. :
  3426. else
  3427. rm -rf conftest.one conftest.two conftest.dir
  3428. echo one > conftest.one
  3429. echo two > conftest.two
  3430. mkdir conftest.dir
  3431. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3432. test -s conftest.one && test -s conftest.two &&
  3433. test -s conftest.dir/conftest.one &&
  3434. test -s conftest.dir/conftest.two
  3435. then
  3436. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3437. break 3
  3438. fi
  3439. fi
  3440. fi
  3441. done
  3442. done
  3443. ;;
  3444. esac
  3445. done
  3446. IFS=$as_save_IFS
  3447. rm -rf conftest.one conftest.two conftest.dir
  3448. fi
  3449. if test "${ac_cv_path_install+set}" = set; then
  3450. INSTALL=$ac_cv_path_install
  3451. else
  3452. # As a last resort, use the slow shell script. Don't cache a
  3453. # value for INSTALL within a source directory, because that will
  3454. # break other packages using the cache if that directory is
  3455. # removed, or if the value is a relative name.
  3456. INSTALL=$ac_install_sh
  3457. fi
  3458. fi
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3460. $as_echo "$INSTALL" >&6; }
  3461. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3462. # It thinks the first close brace ends the variable substitution.
  3463. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3464. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3465. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3466. ac_ext=c
  3467. ac_cpp='$CPP $CPPFLAGS'
  3468. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3469. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3470. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3471. if test -n "$ac_tool_prefix"; then
  3472. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3473. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3475. $as_echo_n "checking for $ac_word... " >&6; }
  3476. if ${ac_cv_prog_CC+:} false; then :
  3477. $as_echo_n "(cached) " >&6
  3478. else
  3479. if test -n "$CC"; then
  3480. ac_cv_prog_CC="$CC" # Let the user override the test.
  3481. else
  3482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3483. for as_dir in $PATH
  3484. do
  3485. IFS=$as_save_IFS
  3486. test -z "$as_dir" && as_dir=.
  3487. for ac_exec_ext in '' $ac_executable_extensions; do
  3488. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3489. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3491. break 2
  3492. fi
  3493. done
  3494. done
  3495. IFS=$as_save_IFS
  3496. fi
  3497. fi
  3498. CC=$ac_cv_prog_CC
  3499. if test -n "$CC"; then
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3501. $as_echo "$CC" >&6; }
  3502. else
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3504. $as_echo "no" >&6; }
  3505. fi
  3506. fi
  3507. if test -z "$ac_cv_prog_CC"; then
  3508. ac_ct_CC=$CC
  3509. # Extract the first word of "gcc", so it can be a program name with args.
  3510. set dummy gcc; ac_word=$2
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3512. $as_echo_n "checking for $ac_word... " >&6; }
  3513. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3514. $as_echo_n "(cached) " >&6
  3515. else
  3516. if test -n "$ac_ct_CC"; then
  3517. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3518. else
  3519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3520. for as_dir in $PATH
  3521. do
  3522. IFS=$as_save_IFS
  3523. test -z "$as_dir" && as_dir=.
  3524. for ac_exec_ext in '' $ac_executable_extensions; do
  3525. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3526. ac_cv_prog_ac_ct_CC="gcc"
  3527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3528. break 2
  3529. fi
  3530. done
  3531. done
  3532. IFS=$as_save_IFS
  3533. fi
  3534. fi
  3535. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3536. if test -n "$ac_ct_CC"; then
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3538. $as_echo "$ac_ct_CC" >&6; }
  3539. else
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3541. $as_echo "no" >&6; }
  3542. fi
  3543. if test "x$ac_ct_CC" = x; then
  3544. CC=""
  3545. else
  3546. case $cross_compiling:$ac_tool_warned in
  3547. yes:)
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3549. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3550. ac_tool_warned=yes ;;
  3551. esac
  3552. CC=$ac_ct_CC
  3553. fi
  3554. else
  3555. CC="$ac_cv_prog_CC"
  3556. fi
  3557. if test -z "$CC"; then
  3558. if test -n "$ac_tool_prefix"; then
  3559. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3560. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3562. $as_echo_n "checking for $ac_word... " >&6; }
  3563. if ${ac_cv_prog_CC+:} false; then :
  3564. $as_echo_n "(cached) " >&6
  3565. else
  3566. if test -n "$CC"; then
  3567. ac_cv_prog_CC="$CC" # Let the user override the test.
  3568. else
  3569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3570. for as_dir in $PATH
  3571. do
  3572. IFS=$as_save_IFS
  3573. test -z "$as_dir" && as_dir=.
  3574. for ac_exec_ext in '' $ac_executable_extensions; do
  3575. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3576. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3578. break 2
  3579. fi
  3580. done
  3581. done
  3582. IFS=$as_save_IFS
  3583. fi
  3584. fi
  3585. CC=$ac_cv_prog_CC
  3586. if test -n "$CC"; then
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3588. $as_echo "$CC" >&6; }
  3589. else
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3591. $as_echo "no" >&6; }
  3592. fi
  3593. fi
  3594. fi
  3595. if test -z "$CC"; then
  3596. # Extract the first word of "cc", so it can be a program name with args.
  3597. set dummy cc; ac_word=$2
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3599. $as_echo_n "checking for $ac_word... " >&6; }
  3600. if ${ac_cv_prog_CC+:} false; then :
  3601. $as_echo_n "(cached) " >&6
  3602. else
  3603. if test -n "$CC"; then
  3604. ac_cv_prog_CC="$CC" # Let the user override the test.
  3605. else
  3606. ac_prog_rejected=no
  3607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3608. for as_dir in $PATH
  3609. do
  3610. IFS=$as_save_IFS
  3611. test -z "$as_dir" && as_dir=.
  3612. for ac_exec_ext in '' $ac_executable_extensions; do
  3613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3614. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3615. ac_prog_rejected=yes
  3616. continue
  3617. fi
  3618. ac_cv_prog_CC="cc"
  3619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3620. break 2
  3621. fi
  3622. done
  3623. done
  3624. IFS=$as_save_IFS
  3625. if test $ac_prog_rejected = yes; then
  3626. # We found a bogon in the path, so make sure we never use it.
  3627. set dummy $ac_cv_prog_CC
  3628. shift
  3629. if test $# != 0; then
  3630. # We chose a different compiler from the bogus one.
  3631. # However, it has the same basename, so the bogon will be chosen
  3632. # first if we set CC to just the basename; use the full file name.
  3633. shift
  3634. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3635. fi
  3636. fi
  3637. fi
  3638. fi
  3639. CC=$ac_cv_prog_CC
  3640. if test -n "$CC"; then
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3642. $as_echo "$CC" >&6; }
  3643. else
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3645. $as_echo "no" >&6; }
  3646. fi
  3647. fi
  3648. if test -z "$CC"; then
  3649. if test -n "$ac_tool_prefix"; then
  3650. for ac_prog in cl.exe
  3651. do
  3652. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3653. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3655. $as_echo_n "checking for $ac_word... " >&6; }
  3656. if ${ac_cv_prog_CC+:} false; then :
  3657. $as_echo_n "(cached) " >&6
  3658. else
  3659. if test -n "$CC"; then
  3660. ac_cv_prog_CC="$CC" # Let the user override the test.
  3661. else
  3662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3663. for as_dir in $PATH
  3664. do
  3665. IFS=$as_save_IFS
  3666. test -z "$as_dir" && as_dir=.
  3667. for ac_exec_ext in '' $ac_executable_extensions; do
  3668. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3669. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3670. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3671. break 2
  3672. fi
  3673. done
  3674. done
  3675. IFS=$as_save_IFS
  3676. fi
  3677. fi
  3678. CC=$ac_cv_prog_CC
  3679. if test -n "$CC"; then
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3681. $as_echo "$CC" >&6; }
  3682. else
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3684. $as_echo "no" >&6; }
  3685. fi
  3686. test -n "$CC" && break
  3687. done
  3688. fi
  3689. if test -z "$CC"; then
  3690. ac_ct_CC=$CC
  3691. for ac_prog in cl.exe
  3692. do
  3693. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3694. set dummy $ac_prog; ac_word=$2
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3696. $as_echo_n "checking for $ac_word... " >&6; }
  3697. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3698. $as_echo_n "(cached) " >&6
  3699. else
  3700. if test -n "$ac_ct_CC"; then
  3701. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3702. else
  3703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3704. for as_dir in $PATH
  3705. do
  3706. IFS=$as_save_IFS
  3707. test -z "$as_dir" && as_dir=.
  3708. for ac_exec_ext in '' $ac_executable_extensions; do
  3709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3710. ac_cv_prog_ac_ct_CC="$ac_prog"
  3711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3712. break 2
  3713. fi
  3714. done
  3715. done
  3716. IFS=$as_save_IFS
  3717. fi
  3718. fi
  3719. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3720. if test -n "$ac_ct_CC"; then
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3722. $as_echo "$ac_ct_CC" >&6; }
  3723. else
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3725. $as_echo "no" >&6; }
  3726. fi
  3727. test -n "$ac_ct_CC" && break
  3728. done
  3729. if test "x$ac_ct_CC" = x; then
  3730. CC=""
  3731. else
  3732. case $cross_compiling:$ac_tool_warned in
  3733. yes:)
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3735. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3736. ac_tool_warned=yes ;;
  3737. esac
  3738. CC=$ac_ct_CC
  3739. fi
  3740. fi
  3741. fi
  3742. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3743. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3744. as_fn_error $? "no acceptable C compiler found in \$PATH
  3745. See \`config.log' for more details" "$LINENO" 5; }
  3746. # Provide some information about the compiler.
  3747. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3748. set X $ac_compile
  3749. ac_compiler=$2
  3750. for ac_option in --version -v -V -qversion; do
  3751. { { ac_try="$ac_compiler $ac_option >&5"
  3752. case "(($ac_try" in
  3753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3754. *) ac_try_echo=$ac_try;;
  3755. esac
  3756. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3757. $as_echo "$ac_try_echo"; } >&5
  3758. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3759. ac_status=$?
  3760. if test -s conftest.err; then
  3761. sed '10a\
  3762. ... rest of stderr output deleted ...
  3763. 10q' conftest.err >conftest.er1
  3764. cat conftest.er1 >&5
  3765. fi
  3766. rm -f conftest.er1 conftest.err
  3767. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3768. test $ac_status = 0; }
  3769. done
  3770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3771. /* end confdefs.h. */
  3772. int main (void)
  3773. {
  3774. ;
  3775. return 0;
  3776. }
  3777. _ACEOF
  3778. ac_clean_files_save=$ac_clean_files
  3779. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3780. # Try to create an executable without -o first, disregard a.out.
  3781. # It will help us diagnose broken compilers, and finding out an intuition
  3782. # of exeext.
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3784. $as_echo_n "checking whether the C compiler works... " >&6; }
  3785. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3786. # The possible output files:
  3787. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3788. ac_rmfiles=
  3789. for ac_file in $ac_files
  3790. do
  3791. case $ac_file in
  3792. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3793. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3794. esac
  3795. done
  3796. rm -f $ac_rmfiles
  3797. if { { ac_try="$ac_link_default"
  3798. case "(($ac_try" in
  3799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3800. *) ac_try_echo=$ac_try;;
  3801. esac
  3802. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3803. $as_echo "$ac_try_echo"; } >&5
  3804. (eval "$ac_link_default") 2>&5
  3805. ac_status=$?
  3806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3807. test $ac_status = 0; }; then :
  3808. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3809. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3810. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3811. # so that the user can short-circuit this test for compilers unknown to
  3812. # Autoconf.
  3813. for ac_file in $ac_files ''
  3814. do
  3815. test -f "$ac_file" || continue
  3816. case $ac_file in
  3817. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3818. ;;
  3819. [ab].out )
  3820. # We found the default executable, but exeext='' is most
  3821. # certainly right.
  3822. break;;
  3823. *.* )
  3824. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3825. then :; else
  3826. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3827. fi
  3828. # We set ac_cv_exeext here because the later test for it is not
  3829. # safe: cross compilers may not add the suffix if given an `-o'
  3830. # argument, so we may need to know it at that point already.
  3831. # Even if this section looks crufty: it has the advantage of
  3832. # actually working.
  3833. break;;
  3834. * )
  3835. break;;
  3836. esac
  3837. done
  3838. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3839. else
  3840. ac_file=''
  3841. fi
  3842. if test -z "$ac_file"; then :
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3844. $as_echo "no" >&6; }
  3845. $as_echo "$as_me: failed program was:" >&5
  3846. sed 's/^/| /' conftest.$ac_ext >&5
  3847. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3848. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3849. as_fn_error 77 "C compiler cannot create executables
  3850. See \`config.log' for more details" "$LINENO" 5; }
  3851. else
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3853. $as_echo "yes" >&6; }
  3854. fi
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3856. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3858. $as_echo "$ac_file" >&6; }
  3859. ac_exeext=$ac_cv_exeext
  3860. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3861. ac_clean_files=$ac_clean_files_save
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3863. $as_echo_n "checking for suffix of executables... " >&6; }
  3864. if { { ac_try="$ac_link"
  3865. case "(($ac_try" in
  3866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3867. *) ac_try_echo=$ac_try;;
  3868. esac
  3869. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3870. $as_echo "$ac_try_echo"; } >&5
  3871. (eval "$ac_link") 2>&5
  3872. ac_status=$?
  3873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3874. test $ac_status = 0; }; then :
  3875. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3876. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3877. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3878. # `rm'.
  3879. for ac_file in conftest.exe conftest conftest.*; do
  3880. test -f "$ac_file" || continue
  3881. case $ac_file in
  3882. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3883. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3884. break;;
  3885. * ) break;;
  3886. esac
  3887. done
  3888. else
  3889. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3890. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3891. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3892. See \`config.log' for more details" "$LINENO" 5; }
  3893. fi
  3894. rm -f conftest conftest$ac_cv_exeext
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3896. $as_echo "$ac_cv_exeext" >&6; }
  3897. rm -f conftest.$ac_ext
  3898. EXEEXT=$ac_cv_exeext
  3899. ac_exeext=$EXEEXT
  3900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3901. /* end confdefs.h. */
  3902. #include <stdio.h>
  3903. int main (void)
  3904. {
  3905. FILE *f = fopen ("conftest.out", "w");
  3906. return ferror (f) || fclose (f) != 0;
  3907. ;
  3908. return 0;
  3909. }
  3910. _ACEOF
  3911. ac_clean_files="$ac_clean_files conftest.out"
  3912. # Check that the compiler produces executables we can run. If not, either
  3913. # the compiler is broken, or we cross compile.
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3915. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3916. if test "$cross_compiling" != yes; then
  3917. { { ac_try="$ac_link"
  3918. case "(($ac_try" in
  3919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3920. *) ac_try_echo=$ac_try;;
  3921. esac
  3922. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3923. $as_echo "$ac_try_echo"; } >&5
  3924. (eval "$ac_link") 2>&5
  3925. ac_status=$?
  3926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3927. test $ac_status = 0; }
  3928. if { ac_try='./conftest$ac_cv_exeext'
  3929. { { case "(($ac_try" in
  3930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3931. *) ac_try_echo=$ac_try;;
  3932. esac
  3933. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3934. $as_echo "$ac_try_echo"; } >&5
  3935. (eval "$ac_try") 2>&5
  3936. ac_status=$?
  3937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3938. test $ac_status = 0; }; }; then
  3939. cross_compiling=no
  3940. else
  3941. if test "$cross_compiling" = maybe; then
  3942. cross_compiling=yes
  3943. else
  3944. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3945. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3946. as_fn_error $? "cannot run C compiled programs.
  3947. If you meant to cross compile, use \`--host'.
  3948. See \`config.log' for more details" "$LINENO" 5; }
  3949. fi
  3950. fi
  3951. fi
  3952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3953. $as_echo "$cross_compiling" >&6; }
  3954. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3955. ac_clean_files=$ac_clean_files_save
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3957. $as_echo_n "checking for suffix of object files... " >&6; }
  3958. if ${ac_cv_objext+:} false; then :
  3959. $as_echo_n "(cached) " >&6
  3960. else
  3961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3962. /* end confdefs.h. */
  3963. int main (void)
  3964. {
  3965. ;
  3966. return 0;
  3967. }
  3968. _ACEOF
  3969. rm -f conftest.o conftest.obj
  3970. if { { ac_try="$ac_compile"
  3971. case "(($ac_try" in
  3972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3973. *) ac_try_echo=$ac_try;;
  3974. esac
  3975. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3976. $as_echo "$ac_try_echo"; } >&5
  3977. (eval "$ac_compile") 2>&5
  3978. ac_status=$?
  3979. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3980. test $ac_status = 0; }; then :
  3981. for ac_file in conftest.o conftest.obj conftest.*; do
  3982. test -f "$ac_file" || continue;
  3983. case $ac_file in
  3984. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3985. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3986. break;;
  3987. esac
  3988. done
  3989. else
  3990. $as_echo "$as_me: failed program was:" >&5
  3991. sed 's/^/| /' conftest.$ac_ext >&5
  3992. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3994. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3995. See \`config.log' for more details" "$LINENO" 5; }
  3996. fi
  3997. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3998. fi
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4000. $as_echo "$ac_cv_objext" >&6; }
  4001. OBJEXT=$ac_cv_objext
  4002. ac_objext=$OBJEXT
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4004. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4005. if ${ac_cv_c_compiler_gnu+:} false; then :
  4006. $as_echo_n "(cached) " >&6
  4007. else
  4008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4009. /* end confdefs.h. */
  4010. int main (void)
  4011. {
  4012. #ifndef __GNUC__
  4013. choke me
  4014. #endif
  4015. ;
  4016. return 0;
  4017. }
  4018. _ACEOF
  4019. if ac_fn_c_try_compile "$LINENO"; then :
  4020. ac_compiler_gnu=yes
  4021. else
  4022. ac_compiler_gnu=no
  4023. fi
  4024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4025. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4026. fi
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4028. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4029. if test $ac_compiler_gnu = yes; then
  4030. GCC=yes
  4031. else
  4032. GCC=
  4033. fi
  4034. ac_test_CFLAGS=${CFLAGS+set}
  4035. ac_save_CFLAGS=$CFLAGS
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4037. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4038. if ${ac_cv_prog_cc_g+:} false; then :
  4039. $as_echo_n "(cached) " >&6
  4040. else
  4041. ac_save_c_werror_flag=$ac_c_werror_flag
  4042. ac_c_werror_flag=yes
  4043. ac_cv_prog_cc_g=no
  4044. CFLAGS="-g"
  4045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4046. /* end confdefs.h. */
  4047. int main (void)
  4048. {
  4049. ;
  4050. return 0;
  4051. }
  4052. _ACEOF
  4053. if ac_fn_c_try_compile "$LINENO"; then :
  4054. ac_cv_prog_cc_g=yes
  4055. else
  4056. CFLAGS=""
  4057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4058. /* end confdefs.h. */
  4059. int main (void)
  4060. {
  4061. ;
  4062. return 0;
  4063. }
  4064. _ACEOF
  4065. if ac_fn_c_try_compile "$LINENO"; then :
  4066. else
  4067. ac_c_werror_flag=$ac_save_c_werror_flag
  4068. CFLAGS="-g"
  4069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4070. /* end confdefs.h. */
  4071. int main (void)
  4072. {
  4073. ;
  4074. return 0;
  4075. }
  4076. _ACEOF
  4077. if ac_fn_c_try_compile "$LINENO"; then :
  4078. ac_cv_prog_cc_g=yes
  4079. fi
  4080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4081. fi
  4082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4083. fi
  4084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4085. ac_c_werror_flag=$ac_save_c_werror_flag
  4086. fi
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4088. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4089. if test "$ac_test_CFLAGS" = set; then
  4090. CFLAGS=$ac_save_CFLAGS
  4091. elif test $ac_cv_prog_cc_g = yes; then
  4092. if test "$GCC" = yes; then
  4093. CFLAGS="-g -O2"
  4094. else
  4095. CFLAGS="-g"
  4096. fi
  4097. else
  4098. if test "$GCC" = yes; then
  4099. CFLAGS="-O2"
  4100. else
  4101. CFLAGS=
  4102. fi
  4103. fi
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4105. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4106. if ${ac_cv_prog_cc_c89+:} false; then :
  4107. $as_echo_n "(cached) " >&6
  4108. else
  4109. ac_cv_prog_cc_c89=no
  4110. ac_save_CC=$CC
  4111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4112. /* end confdefs.h. */
  4113. #include <stdarg.h>
  4114. #include <stdio.h>
  4115. struct stat;
  4116. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4117. struct buf { int x; };
  4118. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4119. static char *e (p, i)
  4120. char **p;
  4121. int i;
  4122. {
  4123. return p[i];
  4124. }
  4125. static char *f (char * (*g) (char **, int), char **p, ...)
  4126. {
  4127. char *s;
  4128. va_list v;
  4129. va_start (v,p);
  4130. s = g (p, va_arg (v,int));
  4131. va_end (v);
  4132. return s;
  4133. }
  4134. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4135. function prototypes and stuff, but not '\xHH' hex character constants.
  4136. These don't provoke an error unfortunately, instead are silently treated
  4137. as 'x'. The following induces an error, until -std is added to get
  4138. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4139. array size at least. It's necessary to write '\x00'==0 to get something
  4140. that's true only with -std. */
  4141. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4142. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4143. inside strings and character constants. */
  4144. #define FOO(x) 'x'
  4145. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4146. int test (int i, double x);
  4147. struct s1 {int (*f) (int a);};
  4148. struct s2 {int (*f) (double a);};
  4149. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4150. int argc;
  4151. char **argv;
  4152. int main (void)
  4153. {
  4154. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4155. ;
  4156. return 0;
  4157. }
  4158. _ACEOF
  4159. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4160. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4161. do
  4162. CC="$ac_save_CC $ac_arg"
  4163. if ac_fn_c_try_compile "$LINENO"; then :
  4164. ac_cv_prog_cc_c89=$ac_arg
  4165. fi
  4166. rm -f core conftest.err conftest.$ac_objext
  4167. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4168. done
  4169. rm -f conftest.$ac_ext
  4170. CC=$ac_save_CC
  4171. fi
  4172. # AC_CACHE_VAL
  4173. case "x$ac_cv_prog_cc_c89" in
  4174. x)
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4176. $as_echo "none needed" >&6; } ;;
  4177. xno)
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4179. $as_echo "unsupported" >&6; } ;;
  4180. *)
  4181. CC="$CC $ac_cv_prog_cc_c89"
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4183. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4184. esac
  4185. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4186. fi
  4187. ac_ext=c
  4188. ac_cpp='$CPP $CPPFLAGS'
  4189. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4190. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4191. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4192. if test "x$CC" != xcc; then
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4194. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4195. else
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4197. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4198. fi
  4199. set dummy $CC; ac_cc=`$as_echo "$2" |
  4200. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4201. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4202. $as_echo_n "(cached) " >&6
  4203. else
  4204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4205. /* end confdefs.h. */
  4206. int main (void)
  4207. {
  4208. ;
  4209. return 0;
  4210. }
  4211. _ACEOF
  4212. # Make sure it works both with $CC and with simple cc.
  4213. # We do the test twice because some compilers refuse to overwrite an
  4214. # existing .o file with -o, though they will create one.
  4215. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4216. rm -f conftest2.*
  4217. if { { case "(($ac_try" in
  4218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4219. *) ac_try_echo=$ac_try;;
  4220. esac
  4221. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4222. $as_echo "$ac_try_echo"; } >&5
  4223. (eval "$ac_try") 2>&5
  4224. ac_status=$?
  4225. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4226. test $ac_status = 0; } &&
  4227. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4229. *) ac_try_echo=$ac_try;;
  4230. esac
  4231. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4232. $as_echo "$ac_try_echo"; } >&5
  4233. (eval "$ac_try") 2>&5
  4234. ac_status=$?
  4235. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4236. test $ac_status = 0; };
  4237. then
  4238. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4239. if test "x$CC" != xcc; then
  4240. # Test first that cc exists at all.
  4241. if { ac_try='cc -c conftest.$ac_ext >&5'
  4242. { { case "(($ac_try" in
  4243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4244. *) ac_try_echo=$ac_try;;
  4245. esac
  4246. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4247. $as_echo "$ac_try_echo"; } >&5
  4248. (eval "$ac_try") 2>&5
  4249. ac_status=$?
  4250. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4251. test $ac_status = 0; }; }; then
  4252. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4253. rm -f conftest2.*
  4254. if { { case "(($ac_try" in
  4255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4256. *) ac_try_echo=$ac_try;;
  4257. esac
  4258. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4259. $as_echo "$ac_try_echo"; } >&5
  4260. (eval "$ac_try") 2>&5
  4261. ac_status=$?
  4262. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4263. test $ac_status = 0; } &&
  4264. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4266. *) ac_try_echo=$ac_try;;
  4267. esac
  4268. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4269. $as_echo "$ac_try_echo"; } >&5
  4270. (eval "$ac_try") 2>&5
  4271. ac_status=$?
  4272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4273. test $ac_status = 0; };
  4274. then
  4275. # cc works too.
  4276. :
  4277. else
  4278. # cc exists but doesn't like -o.
  4279. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4280. fi
  4281. fi
  4282. fi
  4283. else
  4284. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4285. fi
  4286. rm -f core conftest*
  4287. fi
  4288. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4290. $as_echo "yes" >&6; }
  4291. else
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4293. $as_echo "no" >&6; }
  4294. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4295. fi
  4296. # expand $ac_aux_dir to an absolute path
  4297. am_aux_dir=`cd $ac_aux_dir && pwd`
  4298. # FIXME: we rely on the cache variable name because
  4299. # there is no other way.
  4300. set dummy $CC
  4301. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4302. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4303. if test "$am_t" != yes; then
  4304. # Losing compiler, so override with the script.
  4305. # FIXME: It is wrong to rewrite CC.
  4306. # But if we don't then we get into trouble of one sort or another.
  4307. # A longer-term fix would be to have automake use am__CC in this case,
  4308. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4309. CC="$am_aux_dir/compile $CC"
  4310. fi
  4311. ac_ext=c
  4312. ac_cpp='$CPP $CPPFLAGS'
  4313. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4314. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4315. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4317. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4318. # On Suns, sometimes $CPP names a directory.
  4319. if test -n "$CPP" && test -d "$CPP"; then
  4320. CPP=
  4321. fi
  4322. if test -z "$CPP"; then
  4323. if ${ac_cv_prog_CPP+:} false; then :
  4324. $as_echo_n "(cached) " >&6
  4325. else
  4326. # Double quotes because CPP needs to be expanded
  4327. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4328. do
  4329. ac_preproc_ok=false
  4330. for ac_c_preproc_warn_flag in '' yes
  4331. do
  4332. # Use a header file that comes with gcc, so configuring glibc
  4333. # with a fresh cross-compiler works.
  4334. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4335. # <limits.h> exists even on freestanding compilers.
  4336. # On the NeXT, cc -E runs the code through the compiler's parser,
  4337. # not just through cpp. "Syntax error" is here to catch this case.
  4338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4339. /* end confdefs.h. */
  4340. #ifdef __STDC__
  4341. # include <limits.h>
  4342. #else
  4343. # include <assert.h>
  4344. #endif
  4345. Syntax error
  4346. _ACEOF
  4347. if ac_fn_c_try_cpp "$LINENO"; then :
  4348. else
  4349. # Broken: fails on valid input.
  4350. continue
  4351. fi
  4352. rm -f conftest.err conftest.i conftest.$ac_ext
  4353. # OK, works on sane cases. Now check whether nonexistent headers
  4354. # can be detected and how.
  4355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4356. /* end confdefs.h. */
  4357. #include <ac_nonexistent.h>
  4358. _ACEOF
  4359. if ac_fn_c_try_cpp "$LINENO"; then :
  4360. # Broken: success on invalid input.
  4361. continue
  4362. else
  4363. # Passes both tests.
  4364. ac_preproc_ok=:
  4365. break
  4366. fi
  4367. rm -f conftest.err conftest.i conftest.$ac_ext
  4368. done
  4369. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4370. rm -f conftest.i conftest.err conftest.$ac_ext
  4371. if $ac_preproc_ok; then :
  4372. break
  4373. fi
  4374. done
  4375. ac_cv_prog_CPP=$CPP
  4376. fi
  4377. CPP=$ac_cv_prog_CPP
  4378. else
  4379. ac_cv_prog_CPP=$CPP
  4380. fi
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4382. $as_echo "$CPP" >&6; }
  4383. ac_preproc_ok=false
  4384. for ac_c_preproc_warn_flag in '' yes
  4385. do
  4386. # Use a header file that comes with gcc, so configuring glibc
  4387. # with a fresh cross-compiler works.
  4388. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4389. # <limits.h> exists even on freestanding compilers.
  4390. # On the NeXT, cc -E runs the code through the compiler's parser,
  4391. # not just through cpp. "Syntax error" is here to catch this case.
  4392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4393. /* end confdefs.h. */
  4394. #ifdef __STDC__
  4395. # include <limits.h>
  4396. #else
  4397. # include <assert.h>
  4398. #endif
  4399. Syntax error
  4400. _ACEOF
  4401. if ac_fn_c_try_cpp "$LINENO"; then :
  4402. else
  4403. # Broken: fails on valid input.
  4404. continue
  4405. fi
  4406. rm -f conftest.err conftest.i conftest.$ac_ext
  4407. # OK, works on sane cases. Now check whether nonexistent headers
  4408. # can be detected and how.
  4409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4410. /* end confdefs.h. */
  4411. #include <ac_nonexistent.h>
  4412. _ACEOF
  4413. if ac_fn_c_try_cpp "$LINENO"; then :
  4414. # Broken: success on invalid input.
  4415. continue
  4416. else
  4417. # Passes both tests.
  4418. ac_preproc_ok=:
  4419. break
  4420. fi
  4421. rm -f conftest.err conftest.i conftest.$ac_ext
  4422. done
  4423. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4424. rm -f conftest.i conftest.err conftest.$ac_ext
  4425. if $ac_preproc_ok; then :
  4426. else
  4427. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4428. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4429. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4430. See \`config.log' for more details" "$LINENO" 5; }
  4431. fi
  4432. ac_ext=c
  4433. ac_cpp='$CPP $CPPFLAGS'
  4434. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4435. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4436. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4437. IFS=$xc_prog_cc_prev_IFS
  4438. LIBS=$xc_prog_cc_prev_LIBS
  4439. CFLAGS=$xc_prog_cc_prev_CFLAGS
  4440. LDFLAGS=$xc_prog_cc_prev_LDFLAGS
  4441. CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
  4442. am__api_version='1.13'
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  4444. $as_echo_n "checking whether build environment is sane... " >&6; }
  4445. # Reject unsafe characters in $srcdir or the absolute working directory
  4446. # name. Accept space and tab only in the latter.
  4447. am_lf='
  4448. '
  4449. case `pwd` in
  4450. *[\\\"\#\$\&\'\`$am_lf]*)
  4451. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  4452. esac
  4453. case $srcdir in
  4454. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  4455. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  4456. esac
  4457. # Do 'set' in a subshell so we don't clobber the current shell's
  4458. # arguments. Must try -L first in case configure is actually a
  4459. # symlink; some systems play weird games with the mod time of symlinks
  4460. # (eg FreeBSD returns the mod time of the symlink's containing
  4461. # directory).
  4462. if (
  4463. am_has_slept=no
  4464. for am_try in 1 2; do
  4465. echo "timestamp, slept: $am_has_slept" > conftest.file
  4466. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  4467. if test "$*" = "X"; then
  4468. # -L didn't work.
  4469. set X `ls -t "$srcdir/configure" conftest.file`
  4470. fi
  4471. if test "$*" != "X $srcdir/configure conftest.file" \
  4472. && test "$*" != "X conftest.file $srcdir/configure"; then
  4473. # If neither matched, then we have a broken ls. This can happen
  4474. # if, for instance, CONFIG_SHELL is bash and it inherits a
  4475. # broken ls alias from the environment. This has actually
  4476. # happened. Such a system could not be considered "sane".
  4477. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  4478. alias in your environment" "$LINENO" 5
  4479. fi
  4480. if test "$2" = conftest.file || test $am_try -eq 2; then
  4481. break
  4482. fi
  4483. # Just in case.
  4484. sleep 1
  4485. am_has_slept=yes
  4486. done
  4487. test "$2" = conftest.file
  4488. )
  4489. then
  4490. # Ok.
  4491. :
  4492. else
  4493. as_fn_error $? "newly created file is older than distributed files!
  4494. Check your system clock" "$LINENO" 5
  4495. fi
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4497. $as_echo "yes" >&6; }
  4498. # If we didn't sleep, we still need to ensure time stamps of config.status and
  4499. # generated files are strictly newer.
  4500. am_sleep_pid=
  4501. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  4502. ( sleep 1 ) &
  4503. am_sleep_pid=$!
  4504. fi
  4505. rm -f conftest.file
  4506. test "$program_prefix" != NONE &&
  4507. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4508. # Use a double $ so make ignores it.
  4509. test "$program_suffix" != NONE &&
  4510. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4511. # Double any \ or $.
  4512. # By default was `s,x,x', remove it if useless.
  4513. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4514. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4515. test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\""
  4516. # Use eval to expand $SHELL
  4517. if eval "$MISSING --run true"; then
  4518. am_missing_run="$MISSING --run "
  4519. else
  4520. am_missing_run=
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  4522. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  4523. fi
  4524. if test x"${install_sh}" != xset; then
  4525. case $am_aux_dir in
  4526. *\ * | *\ *)
  4527. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  4528. *)
  4529. install_sh="\${SHELL} $am_aux_dir/install-sh"
  4530. esac
  4531. fi
  4532. # Installed binaries are usually stripped using 'strip' when the user
  4533. # run "make install-strip". However 'strip' might not be the right
  4534. # tool to use in cross-compilation environments, therefore Automake
  4535. # will honor the 'STRIP' environment variable to overrule this program.
  4536. if test "$cross_compiling" != no; then
  4537. if test -n "$ac_tool_prefix"; then
  4538. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4539. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4541. $as_echo_n "checking for $ac_word... " >&6; }
  4542. if ${ac_cv_prog_STRIP+:} false; then :
  4543. $as_echo_n "(cached) " >&6
  4544. else
  4545. if test -n "$STRIP"; then
  4546. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4547. else
  4548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4549. for as_dir in $PATH
  4550. do
  4551. IFS=$as_save_IFS
  4552. test -z "$as_dir" && as_dir=.
  4553. for ac_exec_ext in '' $ac_executable_extensions; do
  4554. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4555. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4557. break 2
  4558. fi
  4559. done
  4560. done
  4561. IFS=$as_save_IFS
  4562. fi
  4563. fi
  4564. STRIP=$ac_cv_prog_STRIP
  4565. if test -n "$STRIP"; then
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4567. $as_echo "$STRIP" >&6; }
  4568. else
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4570. $as_echo "no" >&6; }
  4571. fi
  4572. fi
  4573. if test -z "$ac_cv_prog_STRIP"; then
  4574. ac_ct_STRIP=$STRIP
  4575. # Extract the first word of "strip", so it can be a program name with args.
  4576. set dummy strip; ac_word=$2
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4578. $as_echo_n "checking for $ac_word... " >&6; }
  4579. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4580. $as_echo_n "(cached) " >&6
  4581. else
  4582. if test -n "$ac_ct_STRIP"; then
  4583. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4584. else
  4585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4586. for as_dir in $PATH
  4587. do
  4588. IFS=$as_save_IFS
  4589. test -z "$as_dir" && as_dir=.
  4590. for ac_exec_ext in '' $ac_executable_extensions; do
  4591. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4592. ac_cv_prog_ac_ct_STRIP="strip"
  4593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4594. break 2
  4595. fi
  4596. done
  4597. done
  4598. IFS=$as_save_IFS
  4599. fi
  4600. fi
  4601. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4602. if test -n "$ac_ct_STRIP"; then
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4604. $as_echo "$ac_ct_STRIP" >&6; }
  4605. else
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4607. $as_echo "no" >&6; }
  4608. fi
  4609. if test "x$ac_ct_STRIP" = x; then
  4610. STRIP=":"
  4611. else
  4612. case $cross_compiling:$ac_tool_warned in
  4613. yes:)
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4616. ac_tool_warned=yes ;;
  4617. esac
  4618. STRIP=$ac_ct_STRIP
  4619. fi
  4620. else
  4621. STRIP="$ac_cv_prog_STRIP"
  4622. fi
  4623. fi
  4624. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  4626. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  4627. if test -z "$MKDIR_P"; then
  4628. if ${ac_cv_path_mkdir+:} false; then :
  4629. $as_echo_n "(cached) " >&6
  4630. else
  4631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4632. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4633. do
  4634. IFS=$as_save_IFS
  4635. test -z "$as_dir" && as_dir=.
  4636. for ac_prog in mkdir gmkdir; do
  4637. for ac_exec_ext in '' $ac_executable_extensions; do
  4638. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  4639. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4640. 'mkdir (GNU coreutils) '* | \
  4641. 'mkdir (coreutils) '* | \
  4642. 'mkdir (fileutils) '4.1*)
  4643. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  4644. break 3;;
  4645. esac
  4646. done
  4647. done
  4648. done
  4649. IFS=$as_save_IFS
  4650. fi
  4651. test -d ./--version && rmdir ./--version
  4652. if test "${ac_cv_path_mkdir+set}" = set; then
  4653. MKDIR_P="$ac_cv_path_mkdir -p"
  4654. else
  4655. # As a last resort, use the slow shell script. Don't cache a
  4656. # value for MKDIR_P within a source directory, because that will
  4657. # break other packages using the cache if that directory is
  4658. # removed, or if the value is a relative name.
  4659. MKDIR_P="$ac_install_sh -d"
  4660. fi
  4661. fi
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  4663. $as_echo "$MKDIR_P" >&6; }
  4664. for ac_prog in gawk mawk nawk awk
  4665. do
  4666. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4667. set dummy $ac_prog; ac_word=$2
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4669. $as_echo_n "checking for $ac_word... " >&6; }
  4670. if ${ac_cv_prog_AWK+:} false; then :
  4671. $as_echo_n "(cached) " >&6
  4672. else
  4673. if test -n "$AWK"; then
  4674. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4675. else
  4676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4677. for as_dir in $PATH
  4678. do
  4679. IFS=$as_save_IFS
  4680. test -z "$as_dir" && as_dir=.
  4681. for ac_exec_ext in '' $ac_executable_extensions; do
  4682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4683. ac_cv_prog_AWK="$ac_prog"
  4684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4685. break 2
  4686. fi
  4687. done
  4688. done
  4689. IFS=$as_save_IFS
  4690. fi
  4691. fi
  4692. AWK=$ac_cv_prog_AWK
  4693. if test -n "$AWK"; then
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4695. $as_echo "$AWK" >&6; }
  4696. else
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4698. $as_echo "no" >&6; }
  4699. fi
  4700. test -n "$AWK" && break
  4701. done
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4703. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4704. set x ${MAKE-make}
  4705. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4706. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4707. $as_echo_n "(cached) " >&6
  4708. else
  4709. cat >conftest.make <<\_ACEOF
  4710. SHELL = /bin/sh
  4711. all:
  4712. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4713. _ACEOF
  4714. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4715. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4716. *@@@%%%=?*=@@@%%%*)
  4717. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4718. *)
  4719. eval ac_cv_prog_make_${ac_make}_set=no;;
  4720. esac
  4721. rm -f conftest.make
  4722. fi
  4723. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4725. $as_echo "yes" >&6; }
  4726. SET_MAKE=
  4727. else
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4729. $as_echo "no" >&6; }
  4730. SET_MAKE="MAKE=${MAKE-make}"
  4731. fi
  4732. rm -rf .tst 2>/dev/null
  4733. mkdir .tst 2>/dev/null
  4734. if test -d .tst; then
  4735. am__leading_dot=.
  4736. else
  4737. am__leading_dot=_
  4738. fi
  4739. rmdir .tst 2>/dev/null
  4740. DEPDIR="${am__leading_dot}deps"
  4741. ac_config_commands="$ac_config_commands depfiles"
  4742. am_make=${MAKE-make}
  4743. cat > confinc << 'END'
  4744. am__doit:
  4745. @echo this is the am__doit target
  4746. .PHONY: am__doit
  4747. END
  4748. # If we don't find an include directive, just comment out the code.
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4750. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4751. am__include="#"
  4752. am__quote=
  4753. _am_result=none
  4754. # First try GNU make style include.
  4755. echo "include confinc" > confmf
  4756. # Ignore all kinds of additional output from 'make'.
  4757. case `$am_make -s -f confmf 2> /dev/null` in #(
  4758. *the\ am__doit\ target*)
  4759. am__include=include
  4760. am__quote=
  4761. _am_result=GNU
  4762. ;;
  4763. esac
  4764. # Now try BSD make style include.
  4765. if test "$am__include" = "#"; then
  4766. echo '.include "confinc"' > confmf
  4767. case `$am_make -s -f confmf 2> /dev/null` in #(
  4768. *the\ am__doit\ target*)
  4769. am__include=.include
  4770. am__quote="\""
  4771. _am_result=BSD
  4772. ;;
  4773. esac
  4774. fi
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4776. $as_echo "$_am_result" >&6; }
  4777. rm -f confinc confmf
  4778. # Check whether --enable-dependency-tracking was given.
  4779. if test "${enable_dependency_tracking+set}" = set; then :
  4780. enableval=$enable_dependency_tracking;
  4781. fi
  4782. if test "x$enable_dependency_tracking" != xno; then
  4783. am_depcomp="$ac_aux_dir/depcomp"
  4784. AMDEPBACKSLASH='\'
  4785. am__nodep='_no'
  4786. fi
  4787. if test "x$enable_dependency_tracking" != xno; then
  4788. AMDEP_TRUE=
  4789. AMDEP_FALSE='#'
  4790. else
  4791. AMDEP_TRUE='#'
  4792. AMDEP_FALSE=
  4793. fi
  4794. # Check whether --enable-silent-rules was given.
  4795. if test "${enable_silent_rules+set}" = set; then :
  4796. enableval=$enable_silent_rules;
  4797. fi
  4798. case $enable_silent_rules in # (((
  4799. yes) AM_DEFAULT_VERBOSITY=0;;
  4800. no) AM_DEFAULT_VERBOSITY=1;;
  4801. *) AM_DEFAULT_VERBOSITY=1;;
  4802. esac
  4803. am_make=${MAKE-make}
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4805. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4806. if ${am_cv_make_support_nested_variables+:} false; then :
  4807. $as_echo_n "(cached) " >&6
  4808. else
  4809. if $as_echo 'TRUE=$(BAR$(V))
  4810. BAR0=false
  4811. BAR1=true
  4812. V=1
  4813. am__doit:
  4814. @$(TRUE)
  4815. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4816. am_cv_make_support_nested_variables=yes
  4817. else
  4818. am_cv_make_support_nested_variables=no
  4819. fi
  4820. fi
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4822. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4823. if test $am_cv_make_support_nested_variables = yes; then
  4824. AM_V='$(V)'
  4825. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4826. else
  4827. AM_V=$AM_DEFAULT_VERBOSITY
  4828. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4829. fi
  4830. AM_BACKSLASH='\'
  4831. ## --------------------------------------- ##
  4832. ## Start of automake initialization code ##
  4833. ## --------------------------------------- ##
  4834. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4835. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4836. # is not polluted with repeated "-I."
  4837. am__isrc=' -I$(srcdir)'
  4838. # test to see if srcdir already configured
  4839. if test -f $srcdir/config.status; then
  4840. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4841. fi
  4842. fi
  4843. # test whether we have cygpath
  4844. if test -z "$CYGPATH_W"; then
  4845. if (cygpath --version) >/dev/null 2>/dev/null; then
  4846. CYGPATH_W='cygpath -w'
  4847. else
  4848. CYGPATH_W=echo
  4849. fi
  4850. fi
  4851. # Define the identity of the package.
  4852. PACKAGE='curl'
  4853. VERSION='-'
  4854. cat >>confdefs.h <<_ACEOF
  4855. #define PACKAGE "$PACKAGE"
  4856. _ACEOF
  4857. cat >>confdefs.h <<_ACEOF
  4858. #define VERSION "$VERSION"
  4859. _ACEOF
  4860. # Some tools Automake needs.
  4861. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4862. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4863. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4864. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  4865. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  4866. # For better backward compatibility. To be removed once Automake 1.9.x
  4867. # dies out for good. For more background, see:
  4868. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  4869. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  4870. mkdir_p='$(MKDIR_P)'
  4871. # We need awk for the "check" target. The system "awk" is bad on
  4872. # some platforms.
  4873. # Always define AMTAR for backward compatibility. Yes, it's still used
  4874. # in the wild :-( We should find a proper way to deprecate it ...
  4875. AMTAR='$${TAR-tar}'
  4876. # We'll loop over all known methods to create a tar archive until one works.
  4877. _am_tools='gnutar pax cpio none'
  4878. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  4879. depcc="$CC" am_compiler_list=
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4881. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4882. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4883. $as_echo_n "(cached) " >&6
  4884. else
  4885. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4886. # We make a subdir and do the tests there. Otherwise we can end up
  4887. # making bogus files that we don't know about and never remove. For
  4888. # instance it was reported that on HP-UX the gcc test will end up
  4889. # making a dummy file named 'D' -- because '-MD' means "put the output
  4890. # in D".
  4891. rm -rf conftest.dir
  4892. mkdir conftest.dir
  4893. # Copy depcomp to subdir because otherwise we won't find it if we're
  4894. # using a relative directory.
  4895. cp "$am_depcomp" conftest.dir
  4896. cd conftest.dir
  4897. # We will build objects and dependencies in a subdirectory because
  4898. # it helps to detect inapplicable dependency modes. For instance
  4899. # both Tru64's cc and ICC support -MD to output dependencies as a
  4900. # side effect of compilation, but ICC will put the dependencies in
  4901. # the current directory while Tru64 will put them in the object
  4902. # directory.
  4903. mkdir sub
  4904. am_cv_CC_dependencies_compiler_type=none
  4905. if test "$am_compiler_list" = ""; then
  4906. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4907. fi
  4908. am__universal=false
  4909. case " $depcc " in #(
  4910. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4911. esac
  4912. for depmode in $am_compiler_list; do
  4913. # Setup a source with many dependencies, because some compilers
  4914. # like to wrap large dependency lists on column 80 (with \), and
  4915. # we should not choose a depcomp mode which is confused by this.
  4916. #
  4917. # We need to recreate these files for each test, as the compiler may
  4918. # overwrite some of them when testing with obscure command lines.
  4919. # This happens at least with the AIX C compiler.
  4920. : > sub/conftest.c
  4921. for i in 1 2 3 4 5 6; do
  4922. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4923. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4924. # Solaris 10 /bin/sh.
  4925. echo '/* dummy */' > sub/conftst$i.h
  4926. done
  4927. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4928. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4929. # mode. It turns out that the SunPro C++ compiler does not properly
  4930. # handle '-M -o', and we need to detect this. Also, some Intel
  4931. # versions had trouble with output in subdirs.
  4932. am__obj=sub/conftest.${OBJEXT-o}
  4933. am__minus_obj="-o $am__obj"
  4934. case $depmode in
  4935. gcc)
  4936. # This depmode causes a compiler race in universal mode.
  4937. test "$am__universal" = false || continue
  4938. ;;
  4939. nosideeffect)
  4940. # After this tag, mechanisms are not by side-effect, so they'll
  4941. # only be used when explicitly requested.
  4942. if test "x$enable_dependency_tracking" = xyes; then
  4943. continue
  4944. else
  4945. break
  4946. fi
  4947. ;;
  4948. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4949. # This compiler won't grok '-c -o', but also, the minuso test has
  4950. # not run yet. These depmodes are late enough in the game, and
  4951. # so weak that their functioning should not be impacted.
  4952. am__obj=conftest.${OBJEXT-o}
  4953. am__minus_obj=
  4954. ;;
  4955. none) break ;;
  4956. esac
  4957. if depmode=$depmode \
  4958. source=sub/conftest.c object=$am__obj \
  4959. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4960. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4961. >/dev/null 2>conftest.err &&
  4962. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4963. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4964. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4965. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4966. # icc doesn't choke on unknown options, it will just issue warnings
  4967. # or remarks (even with -Werror). So we grep stderr for any message
  4968. # that says an option was ignored or not supported.
  4969. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4970. # icc: Command line warning: ignoring option '-M'; no argument required
  4971. # The diagnosis changed in icc 8.0:
  4972. # icc: Command line remark: option '-MP' not supported
  4973. if (grep 'ignoring option' conftest.err ||
  4974. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4975. am_cv_CC_dependencies_compiler_type=$depmode
  4976. break
  4977. fi
  4978. fi
  4979. done
  4980. cd ..
  4981. rm -rf conftest.dir
  4982. else
  4983. am_cv_CC_dependencies_compiler_type=none
  4984. fi
  4985. fi
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4987. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4988. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4989. if
  4990. test "x$enable_dependency_tracking" != xno \
  4991. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4992. am__fastdepCC_TRUE=
  4993. am__fastdepCC_FALSE='#'
  4994. else
  4995. am__fastdepCC_TRUE='#'
  4996. am__fastdepCC_FALSE=
  4997. fi
  4998. ## ------------------------------------- ##
  4999. ## End of automake initialization code ##
  5000. ## ------------------------------------- ##
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
  5002. $as_echo_n "checking curl version... " >&6; }
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
  5004. $as_echo "$CURLVERSION" >&6; }
  5005. VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
  5006. PKGADD_PKG="HAXXcurl"
  5007. PKGADD_NAME="cURL - a client that groks URLs"
  5008. PKGADD_VENDOR="curl.haxx.se"
  5009. curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )"
  5010. curl_ssh_msg="no (--with-libssh2)"
  5011. curl_zlib_msg="no (--with-zlib)"
  5012. curl_krb4_msg="no (--with-krb4*)"
  5013. curl_gss_msg="no (--with-gssapi)"
  5014. curl_spnego_msg="no (--with-spnego)"
  5015. curl_tls_srp_msg="no (--enable-tls-srp)"
  5016. curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
  5017. curl_ipv6_msg="no (--enable-ipv6)"
  5018. curl_idn_msg="no (--with-{libidn,winidn})"
  5019. curl_manual_msg="no (--enable-manual)"
  5020. curl_libcurl_msg="enabled (--disable-libcurl-option)"
  5021. curl_verbose_msg="enabled (--disable-verbose)"
  5022. curl_sspi_msg="no (--enable-sspi)"
  5023. curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
  5024. curl_ldaps_msg="no (--enable-ldaps)"
  5025. curl_rtsp_msg="no (--enable-rtsp)"
  5026. curl_rtmp_msg="no (--with-librtmp)"
  5027. curl_mtlnk_msg="no (--with-libmetalink)"
  5028. init_ssl_msg=${curl_ssl_msg}
  5029. INITIAL_LDFLAGS=$LDFLAGS
  5030. INITIAL_LIBS=$LIBS
  5031. # Make sure we can run config.sub.
  5032. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  5033. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  5035. $as_echo_n "checking build system type... " >&6; }
  5036. if ${ac_cv_build+:} false; then :
  5037. $as_echo_n "(cached) " >&6
  5038. else
  5039. ac_build_alias=$build_alias
  5040. test "x$ac_build_alias" = x &&
  5041. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  5042. test "x$ac_build_alias" = x &&
  5043. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  5044. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  5045. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  5046. fi
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  5048. $as_echo "$ac_cv_build" >&6; }
  5049. case $ac_cv_build in
  5050. *-*-*) ;;
  5051. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  5052. esac
  5053. build=$ac_cv_build
  5054. ac_save_IFS=$IFS; IFS='-'
  5055. set x $ac_cv_build
  5056. shift
  5057. build_cpu=$1
  5058. build_vendor=$2
  5059. shift; shift
  5060. # Remember, the first character of IFS is used to create $*,
  5061. # except with old shells:
  5062. build_os=$*
  5063. IFS=$ac_save_IFS
  5064. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  5066. $as_echo_n "checking host system type... " >&6; }
  5067. if ${ac_cv_host+:} false; then :
  5068. $as_echo_n "(cached) " >&6
  5069. else
  5070. if test "x$host_alias" = x; then
  5071. ac_cv_host=$ac_cv_build
  5072. else
  5073. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  5074. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  5075. fi
  5076. fi
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  5078. $as_echo "$ac_cv_host" >&6; }
  5079. case $ac_cv_host in
  5080. *-*-*) ;;
  5081. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  5082. esac
  5083. host=$ac_cv_host
  5084. ac_save_IFS=$IFS; IFS='-'
  5085. set x $ac_cv_host
  5086. shift
  5087. host_cpu=$1
  5088. host_vendor=$2
  5089. shift; shift
  5090. # Remember, the first character of IFS is used to create $*,
  5091. # except with old shells:
  5092. host_os=$*
  5093. IFS=$ac_save_IFS
  5094. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  5095. cat >>confdefs.h <<_ACEOF
  5096. #define OS "${host}"
  5097. _ACEOF
  5098. curl_includes_inttypes="\
  5099. /* includes start */
  5100. #ifdef HAVE_SYS_TYPES_H
  5101. # include <sys/types.h>
  5102. #endif
  5103. #ifdef HAVE_STDINT_H
  5104. # include <stdint.h>
  5105. #endif
  5106. #ifdef HAVE_INTTYPES_H
  5107. # include <inttypes.h>
  5108. #endif
  5109. /* includes end */"
  5110. case $host_os in
  5111. irix*)
  5112. ac_cv_header_stdint_h="no"
  5113. ;;
  5114. esac
  5115. for ac_header in sys/types.h stdint.h inttypes.h
  5116. do :
  5117. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5118. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
  5119. "
  5120. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5121. cat >>confdefs.h <<_ACEOF
  5122. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5123. _ACEOF
  5124. fi
  5125. done
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5127. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5128. if ${ac_cv_path_GREP+:} false; then :
  5129. $as_echo_n "(cached) " >&6
  5130. else
  5131. if test -z "$GREP"; then
  5132. ac_path_GREP_found=false
  5133. # Loop through the user's path and test for each of PROGNAME-LIST
  5134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5135. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5136. do
  5137. IFS=$as_save_IFS
  5138. test -z "$as_dir" && as_dir=.
  5139. for ac_prog in grep ggrep; do
  5140. for ac_exec_ext in '' $ac_executable_extensions; do
  5141. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5142. as_fn_executable_p "$ac_path_GREP" || continue
  5143. # Check for GNU ac_path_GREP and select it if it is found.
  5144. # Check for GNU $ac_path_GREP
  5145. case `"$ac_path_GREP" --version 2>&1` in
  5146. *GNU*)
  5147. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5148. *)
  5149. ac_count=0
  5150. $as_echo_n 0123456789 >"conftest.in"
  5151. while :
  5152. do
  5153. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5154. mv "conftest.tmp" "conftest.in"
  5155. cp "conftest.in" "conftest.nl"
  5156. $as_echo 'GREP' >> "conftest.nl"
  5157. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5158. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5159. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5160. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5161. # Best one so far, save it but keep looking for a better one
  5162. ac_cv_path_GREP="$ac_path_GREP"
  5163. ac_path_GREP_max=$ac_count
  5164. fi
  5165. # 10*(2^10) chars as input seems more than enough
  5166. test $ac_count -gt 10 && break
  5167. done
  5168. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5169. esac
  5170. $ac_path_GREP_found && break 3
  5171. done
  5172. done
  5173. done
  5174. IFS=$as_save_IFS
  5175. if test -z "$ac_cv_path_GREP"; then
  5176. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5177. fi
  5178. else
  5179. ac_cv_path_GREP=$GREP
  5180. fi
  5181. fi
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5183. $as_echo "$ac_cv_path_GREP" >&6; }
  5184. GREP="$ac_cv_path_GREP"
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5186. $as_echo_n "checking for egrep... " >&6; }
  5187. if ${ac_cv_path_EGREP+:} false; then :
  5188. $as_echo_n "(cached) " >&6
  5189. else
  5190. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5191. then ac_cv_path_EGREP="$GREP -E"
  5192. else
  5193. if test -z "$EGREP"; then
  5194. ac_path_EGREP_found=false
  5195. # Loop through the user's path and test for each of PROGNAME-LIST
  5196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5197. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5198. do
  5199. IFS=$as_save_IFS
  5200. test -z "$as_dir" && as_dir=.
  5201. for ac_prog in egrep; do
  5202. for ac_exec_ext in '' $ac_executable_extensions; do
  5203. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5204. as_fn_executable_p "$ac_path_EGREP" || continue
  5205. # Check for GNU ac_path_EGREP and select it if it is found.
  5206. # Check for GNU $ac_path_EGREP
  5207. case `"$ac_path_EGREP" --version 2>&1` in
  5208. *GNU*)
  5209. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5210. *)
  5211. ac_count=0
  5212. $as_echo_n 0123456789 >"conftest.in"
  5213. while :
  5214. do
  5215. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5216. mv "conftest.tmp" "conftest.in"
  5217. cp "conftest.in" "conftest.nl"
  5218. $as_echo 'EGREP' >> "conftest.nl"
  5219. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5220. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5221. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5222. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5223. # Best one so far, save it but keep looking for a better one
  5224. ac_cv_path_EGREP="$ac_path_EGREP"
  5225. ac_path_EGREP_max=$ac_count
  5226. fi
  5227. # 10*(2^10) chars as input seems more than enough
  5228. test $ac_count -gt 10 && break
  5229. done
  5230. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5231. esac
  5232. $ac_path_EGREP_found && break 3
  5233. done
  5234. done
  5235. done
  5236. IFS=$as_save_IFS
  5237. if test -z "$ac_cv_path_EGREP"; then
  5238. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5239. fi
  5240. else
  5241. ac_cv_path_EGREP=$EGREP
  5242. fi
  5243. fi
  5244. fi
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5246. $as_echo "$ac_cv_path_EGREP" >&6; }
  5247. EGREP="$ac_cv_path_EGREP"
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5249. $as_echo_n "checking for ANSI C header files... " >&6; }
  5250. if ${ac_cv_header_stdc+:} false; then :
  5251. $as_echo_n "(cached) " >&6
  5252. else
  5253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5254. /* end confdefs.h. */
  5255. #include <stdlib.h>
  5256. #include <stdarg.h>
  5257. #include <string.h>
  5258. #include <float.h>
  5259. int main (void)
  5260. {
  5261. ;
  5262. return 0;
  5263. }
  5264. _ACEOF
  5265. if ac_fn_c_try_compile "$LINENO"; then :
  5266. ac_cv_header_stdc=yes
  5267. else
  5268. ac_cv_header_stdc=no
  5269. fi
  5270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5271. if test $ac_cv_header_stdc = yes; then
  5272. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5274. /* end confdefs.h. */
  5275. #include <string.h>
  5276. _ACEOF
  5277. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5278. $EGREP "memchr" >/dev/null 2>&1; then :
  5279. else
  5280. ac_cv_header_stdc=no
  5281. fi
  5282. rm -f conftest*
  5283. fi
  5284. if test $ac_cv_header_stdc = yes; then
  5285. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5287. /* end confdefs.h. */
  5288. #include <stdlib.h>
  5289. _ACEOF
  5290. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5291. $EGREP "free" >/dev/null 2>&1; then :
  5292. else
  5293. ac_cv_header_stdc=no
  5294. fi
  5295. rm -f conftest*
  5296. fi
  5297. if test $ac_cv_header_stdc = yes; then
  5298. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5299. if test "$cross_compiling" = yes; then :
  5300. :
  5301. else
  5302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5303. /* end confdefs.h. */
  5304. #include <ctype.h>
  5305. #include <stdlib.h>
  5306. #if ((' ' & 0x0FF) == 0x020)
  5307. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5308. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5309. #else
  5310. # define ISLOWER(c) \
  5311. (('a' <= (c) && (c) <= 'i') \
  5312. || ('j' <= (c) && (c) <= 'r') \
  5313. || ('s' <= (c) && (c) <= 'z'))
  5314. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5315. #endif
  5316. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5317. int
  5318. main ()
  5319. {
  5320. int i;
  5321. for (i = 0; i < 256; i++)
  5322. if (XOR (islower (i), ISLOWER (i))
  5323. || toupper (i) != TOUPPER (i))
  5324. return 2;
  5325. return 0;
  5326. }
  5327. _ACEOF
  5328. if ac_fn_c_try_run "$LINENO"; then :
  5329. else
  5330. ac_cv_header_stdc=no
  5331. fi
  5332. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5333. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5334. fi
  5335. fi
  5336. fi
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5338. $as_echo "$ac_cv_header_stdc" >&6; }
  5339. if test $ac_cv_header_stdc = yes; then
  5340. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5341. fi
  5342. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5343. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5344. inttypes.h stdint.h unistd.h
  5345. do :
  5346. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5347. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5348. "
  5349. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5350. cat >>confdefs.h <<_ACEOF
  5351. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5352. _ACEOF
  5353. fi
  5354. done
  5355. #
  5356. #
  5357. if test -z "$SED"; then
  5358. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  5359. fi
  5360. #
  5361. # The cast to long int works around a bug in the HP C Compiler
  5362. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5363. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5364. # This bug is HP SR number 8606223364.
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  5366. $as_echo_n "checking size of long... " >&6; }
  5367. if ${ac_cv_sizeof_long+:} false; then :
  5368. $as_echo_n "(cached) " >&6
  5369. else
  5370. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  5371. else
  5372. if test "$ac_cv_type_long" = yes; then
  5373. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5374. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5375. as_fn_error 77 "cannot compute sizeof (long)
  5376. See \`config.log' for more details" "$LINENO" 5; }
  5377. else
  5378. ac_cv_sizeof_long=0
  5379. fi
  5380. fi
  5381. fi
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  5383. $as_echo "$ac_cv_sizeof_long" >&6; }
  5384. cat >>confdefs.h <<_ACEOF
  5385. #define SIZEOF_LONG $ac_cv_sizeof_long
  5386. _ACEOF
  5387. # The cast to long int works around a bug in the HP C Compiler
  5388. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5389. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5390. # This bug is HP SR number 8606223364.
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
  5392. $as_echo_n "checking size of void*... " >&6; }
  5393. if ${ac_cv_sizeof_voidp+:} false; then :
  5394. $as_echo_n "(cached) " >&6
  5395. else
  5396. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
  5397. else
  5398. if test "$ac_cv_type_voidp" = yes; then
  5399. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5400. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5401. as_fn_error 77 "cannot compute sizeof (void*)
  5402. See \`config.log' for more details" "$LINENO" 5; }
  5403. else
  5404. ac_cv_sizeof_voidp=0
  5405. fi
  5406. fi
  5407. fi
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
  5409. $as_echo "$ac_cv_sizeof_voidp" >&6; }
  5410. cat >>confdefs.h <<_ACEOF
  5411. #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
  5412. _ACEOF
  5413. #
  5414. if test -z "$ac_cv_sizeof_long" ||
  5415. test "$ac_cv_sizeof_long" -eq "0"; then
  5416. as_fn_error $? "cannot find out size of long." "$LINENO" 5
  5417. fi
  5418. if test -z "$ac_cv_sizeof_voidp" ||
  5419. test "$ac_cv_sizeof_voidp" -eq "0"; then
  5420. as_fn_error $? "cannot find out size of void*." "$LINENO" 5
  5421. fi
  5422. #
  5423. x_LP64_long=""
  5424. x_LP32_long=""
  5425. x_LP16_long=""
  5426. #
  5427. if test "$ac_cv_sizeof_long" -eq "8" &&
  5428. test "$ac_cv_sizeof_voidp" -ge "8"; then
  5429. x_LP64_long="long"
  5430. elif test "$ac_cv_sizeof_long" -eq "4" &&
  5431. test "$ac_cv_sizeof_voidp" -ge "4"; then
  5432. x_LP32_long="long"
  5433. elif test "$ac_cv_sizeof_long" -eq "2" &&
  5434. test "$ac_cv_sizeof_voidp" -ge "2"; then
  5435. x_LP16_long="long"
  5436. fi
  5437. #
  5438. #
  5439. curl_typeof_curl_off_t="unknown"
  5440. curl_sizeof_curl_off_t="unknown"
  5441. curl_format_curl_off_t="unknown"
  5442. curl_format_curl_off_tu="unknown"
  5443. #
  5444. if test "$curl_typeof_curl_off_t" = "unknown"; then
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
  5446. $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
  5447. for t8 in \
  5448. "$x_LP64_long" \
  5449. 'int64_t' \
  5450. '__int64' \
  5451. 'long long' \
  5452. '__longlong' \
  5453. '__longlong_t' ; do
  5454. if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
  5455. tmp_includes=""
  5456. tmp_source=""
  5457. tmp_fmt=""
  5458. case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
  5459. int64_t)
  5460. tmp_includes="$curl_includes_inttypes"
  5461. tmp_source="char f[] = PRId64;"
  5462. tmp_fmt="PRId64"
  5463. ;;
  5464. int32_t)
  5465. tmp_includes="$curl_includes_inttypes"
  5466. tmp_source="char f[] = PRId32;"
  5467. tmp_fmt="PRId32"
  5468. ;;
  5469. int16_t)
  5470. tmp_includes="$curl_includes_inttypes"
  5471. tmp_source="char f[] = PRId16;"
  5472. tmp_fmt="PRId16"
  5473. ;;
  5474. esac
  5475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5476. /* end confdefs.h. */
  5477. $tmp_includes
  5478. typedef $t8 curl_off_t;
  5479. typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
  5480. int main (void)
  5481. {
  5482. $tmp_source
  5483. curl_off_t dummy;
  5484. ;
  5485. return 0;
  5486. }
  5487. _ACEOF
  5488. if ac_fn_c_try_compile "$LINENO"; then :
  5489. if test -z "$tmp_fmt"; then
  5490. curl_typeof_curl_off_t="$t8"
  5491. curl_sizeof_curl_off_t="8"
  5492. else
  5493. as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5494. as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5495. if test -z "$SED"; then
  5496. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  5497. fi
  5498. if test -z "$GREP"; then
  5499. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  5500. fi
  5501. tmp_exp=""
  5502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5503. /* end confdefs.h. */
  5504. $curl_includes_inttypes
  5505. #ifdef $tmp_fmt
  5506. CURL_DEF_TOKEN $tmp_fmt
  5507. #endif
  5508. _ACEOF
  5509. if ac_fn_c_try_cpp "$LINENO"; then :
  5510. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  5511. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  5512. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  5513. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  5514. if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
  5515. tmp_exp=""
  5516. fi
  5517. fi
  5518. rm -f conftest.err conftest.i conftest.$ac_ext
  5519. if test -z "$tmp_exp"; then
  5520. eval "$as_ac_HaveDef=no"
  5521. else
  5522. eval "$as_ac_HaveDef=yes"
  5523. eval "$as_ac_Def=\$tmp_exp"
  5524. fi
  5525. as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5526. as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5527. if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
  5528. curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
  5529. curl_typeof_curl_off_t="$t8"
  5530. curl_sizeof_curl_off_t="8"
  5531. fi
  5532. fi
  5533. fi
  5534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5535. fi
  5536. done
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
  5538. $as_echo "$curl_typeof_curl_off_t" >&6; }
  5539. fi
  5540. if test "$curl_typeof_curl_off_t" = "unknown"; then
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
  5542. $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
  5543. for t4 in \
  5544. "$x_LP32_long" \
  5545. 'int32_t' \
  5546. '__int32' \
  5547. 'int' ; do
  5548. if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
  5549. tmp_includes=""
  5550. tmp_source=""
  5551. tmp_fmt=""
  5552. case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
  5553. int64_t)
  5554. tmp_includes="$curl_includes_inttypes"
  5555. tmp_source="char f[] = PRId64;"
  5556. tmp_fmt="PRId64"
  5557. ;;
  5558. int32_t)
  5559. tmp_includes="$curl_includes_inttypes"
  5560. tmp_source="char f[] = PRId32;"
  5561. tmp_fmt="PRId32"
  5562. ;;
  5563. int16_t)
  5564. tmp_includes="$curl_includes_inttypes"
  5565. tmp_source="char f[] = PRId16;"
  5566. tmp_fmt="PRId16"
  5567. ;;
  5568. esac
  5569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5570. /* end confdefs.h. */
  5571. $tmp_includes
  5572. typedef $t4 curl_off_t;
  5573. typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
  5574. int main (void)
  5575. {
  5576. $tmp_source
  5577. curl_off_t dummy;
  5578. ;
  5579. return 0;
  5580. }
  5581. _ACEOF
  5582. if ac_fn_c_try_compile "$LINENO"; then :
  5583. if test -z "$tmp_fmt"; then
  5584. curl_typeof_curl_off_t="$t4"
  5585. curl_sizeof_curl_off_t="4"
  5586. else
  5587. as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5588. as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5589. if test -z "$SED"; then
  5590. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  5591. fi
  5592. if test -z "$GREP"; then
  5593. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  5594. fi
  5595. tmp_exp=""
  5596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5597. /* end confdefs.h. */
  5598. $curl_includes_inttypes
  5599. #ifdef $tmp_fmt
  5600. CURL_DEF_TOKEN $tmp_fmt
  5601. #endif
  5602. _ACEOF
  5603. if ac_fn_c_try_cpp "$LINENO"; then :
  5604. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  5605. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  5606. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  5607. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  5608. if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
  5609. tmp_exp=""
  5610. fi
  5611. fi
  5612. rm -f conftest.err conftest.i conftest.$ac_ext
  5613. if test -z "$tmp_exp"; then
  5614. eval "$as_ac_HaveDef=no"
  5615. else
  5616. eval "$as_ac_HaveDef=yes"
  5617. eval "$as_ac_Def=\$tmp_exp"
  5618. fi
  5619. as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5620. as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5621. if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
  5622. curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
  5623. curl_typeof_curl_off_t="$t4"
  5624. curl_sizeof_curl_off_t="4"
  5625. fi
  5626. fi
  5627. fi
  5628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5629. fi
  5630. done
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
  5632. $as_echo "$curl_typeof_curl_off_t" >&6; }
  5633. fi
  5634. if test "$curl_typeof_curl_off_t" = "unknown"; then
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5
  5636. $as_echo_n "checking for 16-bit curl_off_t data type... " >&6; }
  5637. for t2 in \
  5638. "$x_LP16_long" \
  5639. 'int16_t' \
  5640. '__int16' \
  5641. 'int' ; do
  5642. if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
  5643. tmp_includes=""
  5644. tmp_source=""
  5645. tmp_fmt=""
  5646. case `echo "$t2" | sed 's/[^a-zA-Z0-9_]/_/g'` in
  5647. int64_t)
  5648. tmp_includes="$curl_includes_inttypes"
  5649. tmp_source="char f[] = PRId64;"
  5650. tmp_fmt="PRId64"
  5651. ;;
  5652. int32_t)
  5653. tmp_includes="$curl_includes_inttypes"
  5654. tmp_source="char f[] = PRId32;"
  5655. tmp_fmt="PRId32"
  5656. ;;
  5657. int16_t)
  5658. tmp_includes="$curl_includes_inttypes"
  5659. tmp_source="char f[] = PRId16;"
  5660. tmp_fmt="PRId16"
  5661. ;;
  5662. esac
  5663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5664. /* end confdefs.h. */
  5665. $tmp_includes
  5666. typedef $t2 curl_off_t;
  5667. typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
  5668. int main (void)
  5669. {
  5670. $tmp_source
  5671. curl_off_t dummy;
  5672. ;
  5673. return 0;
  5674. }
  5675. _ACEOF
  5676. if ac_fn_c_try_compile "$LINENO"; then :
  5677. if test -z "$tmp_fmt"; then
  5678. curl_typeof_curl_off_t="$t2"
  5679. curl_sizeof_curl_off_t="2"
  5680. else
  5681. as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5682. as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5683. if test -z "$SED"; then
  5684. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  5685. fi
  5686. if test -z "$GREP"; then
  5687. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  5688. fi
  5689. tmp_exp=""
  5690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5691. /* end confdefs.h. */
  5692. $curl_includes_inttypes
  5693. #ifdef $tmp_fmt
  5694. CURL_DEF_TOKEN $tmp_fmt
  5695. #endif
  5696. _ACEOF
  5697. if ac_fn_c_try_cpp "$LINENO"; then :
  5698. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  5699. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  5700. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  5701. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  5702. if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
  5703. tmp_exp=""
  5704. fi
  5705. fi
  5706. rm -f conftest.err conftest.i conftest.$ac_ext
  5707. if test -z "$tmp_exp"; then
  5708. eval "$as_ac_HaveDef=no"
  5709. else
  5710. eval "$as_ac_HaveDef=yes"
  5711. eval "$as_ac_Def=\$tmp_exp"
  5712. fi
  5713. as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5714. as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5715. if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
  5716. curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
  5717. curl_typeof_curl_off_t="$t2"
  5718. curl_sizeof_curl_off_t="2"
  5719. fi
  5720. fi
  5721. fi
  5722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5723. fi
  5724. done
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
  5726. $as_echo "$curl_typeof_curl_off_t" >&6; }
  5727. fi
  5728. if test "$curl_typeof_curl_off_t" = "unknown"; then
  5729. as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
  5730. fi
  5731. #
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
  5733. $as_echo_n "checking size of curl_off_t... " >&6; }
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
  5735. $as_echo "$curl_sizeof_curl_off_t" >&6; }
  5736. #
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
  5738. $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
  5739. if test "$curl_format_curl_off_t" != "unknown"; then
  5740. x_pull_headers="yes"
  5741. curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
  5742. curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
  5743. curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
  5744. curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
  5745. else
  5746. x_pull_headers="no"
  5747. case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
  5748. long_long | __longlong | __longlong_t)
  5749. curl_format_curl_off_t="lld"
  5750. curl_format_curl_off_tu="llu"
  5751. ;;
  5752. long)
  5753. curl_format_curl_off_t="ld"
  5754. curl_format_curl_off_tu="lu"
  5755. ;;
  5756. int)
  5757. curl_format_curl_off_t="d"
  5758. curl_format_curl_off_tu="u"
  5759. ;;
  5760. __int64)
  5761. curl_format_curl_off_t="I64d"
  5762. curl_format_curl_off_tu="I64u"
  5763. ;;
  5764. __int32)
  5765. curl_format_curl_off_t="I32d"
  5766. curl_format_curl_off_tu="I32u"
  5767. ;;
  5768. __int16)
  5769. curl_format_curl_off_t="I16d"
  5770. curl_format_curl_off_tu="I16u"
  5771. ;;
  5772. *)
  5773. as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
  5774. ;;
  5775. esac
  5776. fi
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
  5778. $as_echo "\"$curl_format_curl_off_t\"" >&6; }
  5779. #
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
  5781. $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
  5783. $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
  5784. #
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
  5786. $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
  5787. #
  5788. curl_suffix_curl_off_t="unknown"
  5789. curl_suffix_curl_off_tu="unknown"
  5790. #
  5791. case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
  5792. long_long | __longlong | __longlong_t)
  5793. tst_suffixes="LL::"
  5794. ;;
  5795. long)
  5796. tst_suffixes="L::"
  5797. ;;
  5798. int)
  5799. tst_suffixes="::"
  5800. ;;
  5801. __int64 | int64_t)
  5802. tst_suffixes="LL:i64::"
  5803. ;;
  5804. __int32 | int32_t)
  5805. tst_suffixes="L:i32::"
  5806. ;;
  5807. __int16 | int16_t)
  5808. tst_suffixes="L:i16::"
  5809. ;;
  5810. *)
  5811. as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
  5812. ;;
  5813. esac
  5814. #
  5815. old_IFS=$IFS; IFS=':'
  5816. for tmp_ssuf in $tst_suffixes ; do
  5817. IFS=$old_IFS
  5818. if test "x$curl_suffix_curl_off_t" = "xunknown"; then
  5819. case $tmp_ssuf in
  5820. i64 | i32 | i16)
  5821. tmp_usuf="u$tmp_ssuf"
  5822. ;;
  5823. LL | L)
  5824. tmp_usuf="U$tmp_ssuf"
  5825. ;;
  5826. *)
  5827. tmp_usuf=""
  5828. ;;
  5829. esac
  5830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5831. /* end confdefs.h. */
  5832. $curl_includes_inttypes
  5833. typedef $curl_typeof_curl_off_t new_t;
  5834. int main (void)
  5835. {
  5836. new_t s1;
  5837. new_t s2;
  5838. s1 = -10$tmp_ssuf ;
  5839. s2 = 20$tmp_ssuf ;
  5840. if(s1 > s2)
  5841. return 1;
  5842. ;
  5843. return 0;
  5844. }
  5845. _ACEOF
  5846. if ac_fn_c_try_compile "$LINENO"; then :
  5847. curl_suffix_curl_off_t="$tmp_ssuf"
  5848. curl_suffix_curl_off_tu="$tmp_usuf"
  5849. fi
  5850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5851. fi
  5852. done
  5853. IFS=$old_IFS
  5854. #
  5855. if test "x$curl_suffix_curl_off_t" = "xunknown"; then
  5856. as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
  5857. else
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
  5859. $as_echo "$curl_suffix_curl_off_t" >&6; }
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
  5861. $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
  5863. $as_echo "$curl_suffix_curl_off_tu" >&6; }
  5864. fi
  5865. #
  5866. #
  5867. if test "$x_pull_headers" = "yes"; then
  5868. if test "x$ac_cv_header_sys_types_h" = "xyes"; then
  5869. cat >>confdefs.h <<_EOF
  5870. #define CURL_PULL_SYS_TYPES_H 1
  5871. _EOF
  5872. fi
  5873. if test "x$ac_cv_header_stdint_h" = "xyes"; then
  5874. cat >>confdefs.h <<_EOF
  5875. #define CURL_PULL_STDINT_H 1
  5876. _EOF
  5877. fi
  5878. if test "x$ac_cv_header_inttypes_h" = "xyes"; then
  5879. cat >>confdefs.h <<_EOF
  5880. #define CURL_PULL_INTTYPES_H 1
  5881. _EOF
  5882. fi
  5883. fi
  5884. #
  5885. cat >>confdefs.h <<_EOF
  5886. #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
  5887. _EOF
  5888. cat >>confdefs.h <<_EOF
  5889. #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
  5890. _EOF
  5891. cat >>confdefs.h <<_EOF
  5892. #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
  5893. _EOF
  5894. cat >>confdefs.h <<_EOF
  5895. #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
  5896. _EOF
  5897. cat >>confdefs.h <<_EOF
  5898. #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
  5899. _EOF
  5900. cat >>confdefs.h <<_EOF
  5901. #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
  5902. _EOF
  5903. cat >>confdefs.h <<_EOF
  5904. #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
  5905. _EOF
  5906. #
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
  5908. $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
  5909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5910. /* end confdefs.h. */
  5911. #ifdef _AIX
  5912. yes_this_is_aix
  5913. #endif
  5914. _ACEOF
  5915. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5916. $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5918. $as_echo "yes" >&6; }
  5919. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5920. else
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5922. $as_echo "no" >&6; }
  5923. fi
  5924. rm -f conftest*
  5925. #
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
  5927. $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
  5928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5929. /* end confdefs.h. */
  5930. int main (void)
  5931. {
  5932. #ifdef _THREAD_SAFE
  5933. int dummy=1;
  5934. #else
  5935. force compilation error
  5936. #endif
  5937. ;
  5938. return 0;
  5939. }
  5940. _ACEOF
  5941. if ac_fn_c_try_compile "$LINENO"; then :
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5943. $as_echo "yes" >&6; }
  5944. tmp_thread_safe_initially_defined="yes"
  5945. else
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5947. $as_echo "no" >&6; }
  5948. tmp_thread_safe_initially_defined="no"
  5949. fi
  5950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5951. #
  5952. if test "$tmp_thread_safe_initially_defined" = "no"; then
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
  5954. $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
  5955. case $host_os in
  5956. aix[123].* | aix4.[012].*)
  5957. tmp_need_thread_safe="no"
  5958. ;;
  5959. aix*)
  5960. tmp_need_thread_safe="yes"
  5961. ;;
  5962. *)
  5963. tmp_need_thread_safe="no"
  5964. ;;
  5965. esac
  5966. if test "$tmp_need_thread_safe" = "yes"; then
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5968. $as_echo "yes" >&6; }
  5969. else
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5971. $as_echo "no" >&6; }
  5972. fi
  5973. fi
  5974. #
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
  5976. $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
  5977. if test "$tmp_thread_safe_initially_defined" = "yes" ||
  5978. test "$tmp_need_thread_safe" = "yes"; then
  5979. $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
  5980. cat >>confdefs.h <<_EOF
  5981. #ifndef _THREAD_SAFE
  5982. # define _THREAD_SAFE
  5983. #endif
  5984. _EOF
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5986. $as_echo "yes" >&6; }
  5987. else
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5989. $as_echo "no" >&6; }
  5990. fi
  5991. #
  5992. #
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
  5994. $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
  5995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5996. /* end confdefs.h. */
  5997. int main (void)
  5998. {
  5999. #ifdef _REENTRANT
  6000. int dummy=1;
  6001. #else
  6002. force compilation error
  6003. #endif
  6004. ;
  6005. return 0;
  6006. }
  6007. _ACEOF
  6008. if ac_fn_c_try_compile "$LINENO"; then :
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6010. $as_echo "yes" >&6; }
  6011. tmp_reentrant_initially_defined="yes"
  6012. else
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6014. $as_echo "no" >&6; }
  6015. tmp_reentrant_initially_defined="no"
  6016. fi
  6017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6018. #
  6019. if test "$tmp_reentrant_initially_defined" = "no"; then
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
  6021. $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
  6022. case $host_os in
  6023. solaris*)
  6024. tmp_need_reentrant="yes"
  6025. ;;
  6026. *)
  6027. tmp_need_reentrant="no"
  6028. ;;
  6029. esac
  6030. if test "$tmp_need_reentrant" = "no"; then
  6031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6032. /* end confdefs.h. */
  6033. #include <errno.h>
  6034. int main (void)
  6035. {
  6036. if(0 != errno)
  6037. return 1;
  6038. ;
  6039. return 0;
  6040. }
  6041. _ACEOF
  6042. if ac_fn_c_try_compile "$LINENO"; then :
  6043. tmp_errno="yes"
  6044. else
  6045. tmp_errno="no"
  6046. fi
  6047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6048. if test "$tmp_errno" = "yes"; then
  6049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6050. /* end confdefs.h. */
  6051. #include <errno.h>
  6052. int main (void)
  6053. {
  6054. #ifdef errno
  6055. int dummy=1;
  6056. #else
  6057. force compilation error
  6058. #endif
  6059. ;
  6060. return 0;
  6061. }
  6062. _ACEOF
  6063. if ac_fn_c_try_compile "$LINENO"; then :
  6064. tmp_errno="errno_macro_defined"
  6065. else
  6066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6067. /* end confdefs.h. */
  6068. #define _REENTRANT
  6069. #include <errno.h>
  6070. int main (void)
  6071. {
  6072. #ifdef errno
  6073. int dummy=1;
  6074. #else
  6075. force compilation error
  6076. #endif
  6077. ;
  6078. return 0;
  6079. }
  6080. _ACEOF
  6081. if ac_fn_c_try_compile "$LINENO"; then :
  6082. tmp_errno="errno_macro_needs_reentrant"
  6083. tmp_need_reentrant="yes"
  6084. fi
  6085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6086. fi
  6087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6088. fi
  6089. fi
  6090. if test "$tmp_need_reentrant" = "no"; then
  6091. if test "$tmp_need_reentrant" = "no"; then
  6092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6093. /* end confdefs.h. */
  6094. #define gmtime_r innocuous_gmtime_r
  6095. #ifdef __STDC__
  6096. # include <limits.h>
  6097. #else
  6098. # include <assert.h>
  6099. #endif
  6100. #undef gmtime_r
  6101. #ifdef __cplusplus
  6102. extern "C"
  6103. #endif
  6104. char gmtime_r ();
  6105. #if defined __stub_gmtime_r || defined __stub___gmtime_r
  6106. choke me
  6107. #endif
  6108. int main (void)
  6109. {
  6110. return gmtime_r ();
  6111. ;
  6112. return 0;
  6113. }
  6114. _ACEOF
  6115. if ac_fn_c_try_link "$LINENO"; then :
  6116. tmp_gmtime_r="yes"
  6117. else
  6118. tmp_gmtime_r="no"
  6119. fi
  6120. rm -f core conftest.err conftest.$ac_objext \
  6121. conftest$ac_exeext conftest.$ac_ext
  6122. if test "$tmp_gmtime_r" = "yes"; then
  6123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6124. /* end confdefs.h. */
  6125. #include <sys/types.h>
  6126. #include <time.h>
  6127. _ACEOF
  6128. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6129. $EGREP "gmtime_r" >/dev/null 2>&1; then :
  6130. tmp_gmtime_r="proto_declared"
  6131. else
  6132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6133. /* end confdefs.h. */
  6134. #define _REENTRANT
  6135. #include <sys/types.h>
  6136. #include <time.h>
  6137. _ACEOF
  6138. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6139. $EGREP "gmtime_r" >/dev/null 2>&1; then :
  6140. tmp_gmtime_r="proto_needs_reentrant"
  6141. tmp_need_reentrant="yes"
  6142. fi
  6143. rm -f conftest*
  6144. fi
  6145. rm -f conftest*
  6146. fi
  6147. fi
  6148. if test "$tmp_need_reentrant" = "no"; then
  6149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6150. /* end confdefs.h. */
  6151. #define localtime_r innocuous_localtime_r
  6152. #ifdef __STDC__
  6153. # include <limits.h>
  6154. #else
  6155. # include <assert.h>
  6156. #endif
  6157. #undef localtime_r
  6158. #ifdef __cplusplus
  6159. extern "C"
  6160. #endif
  6161. char localtime_r ();
  6162. #if defined __stub_localtime_r || defined __stub___localtime_r
  6163. choke me
  6164. #endif
  6165. int main (void)
  6166. {
  6167. return localtime_r ();
  6168. ;
  6169. return 0;
  6170. }
  6171. _ACEOF
  6172. if ac_fn_c_try_link "$LINENO"; then :
  6173. tmp_localtime_r="yes"
  6174. else
  6175. tmp_localtime_r="no"
  6176. fi
  6177. rm -f core conftest.err conftest.$ac_objext \
  6178. conftest$ac_exeext conftest.$ac_ext
  6179. if test "$tmp_localtime_r" = "yes"; then
  6180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6181. /* end confdefs.h. */
  6182. #include <sys/types.h>
  6183. #include <time.h>
  6184. _ACEOF
  6185. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6186. $EGREP "localtime_r" >/dev/null 2>&1; then :
  6187. tmp_localtime_r="proto_declared"
  6188. else
  6189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6190. /* end confdefs.h. */
  6191. #define _REENTRANT
  6192. #include <sys/types.h>
  6193. #include <time.h>
  6194. _ACEOF
  6195. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6196. $EGREP "localtime_r" >/dev/null 2>&1; then :
  6197. tmp_localtime_r="proto_needs_reentrant"
  6198. tmp_need_reentrant="yes"
  6199. fi
  6200. rm -f conftest*
  6201. fi
  6202. rm -f conftest*
  6203. fi
  6204. fi
  6205. if test "$tmp_need_reentrant" = "no"; then
  6206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6207. /* end confdefs.h. */
  6208. #define strerror_r innocuous_strerror_r
  6209. #ifdef __STDC__
  6210. # include <limits.h>
  6211. #else
  6212. # include <assert.h>
  6213. #endif
  6214. #undef strerror_r
  6215. #ifdef __cplusplus
  6216. extern "C"
  6217. #endif
  6218. char strerror_r ();
  6219. #if defined __stub_strerror_r || defined __stub___strerror_r
  6220. choke me
  6221. #endif
  6222. int main (void)
  6223. {
  6224. return strerror_r ();
  6225. ;
  6226. return 0;
  6227. }
  6228. _ACEOF
  6229. if ac_fn_c_try_link "$LINENO"; then :
  6230. tmp_strerror_r="yes"
  6231. else
  6232. tmp_strerror_r="no"
  6233. fi
  6234. rm -f core conftest.err conftest.$ac_objext \
  6235. conftest$ac_exeext conftest.$ac_ext
  6236. if test "$tmp_strerror_r" = "yes"; then
  6237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6238. /* end confdefs.h. */
  6239. #include <sys/types.h>
  6240. #include <string.h>
  6241. _ACEOF
  6242. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6243. $EGREP "strerror_r" >/dev/null 2>&1; then :
  6244. tmp_strerror_r="proto_declared"
  6245. else
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. #define _REENTRANT
  6249. #include <sys/types.h>
  6250. #include <string.h>
  6251. _ACEOF
  6252. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6253. $EGREP "strerror_r" >/dev/null 2>&1; then :
  6254. tmp_strerror_r="proto_needs_reentrant"
  6255. tmp_need_reentrant="yes"
  6256. fi
  6257. rm -f conftest*
  6258. fi
  6259. rm -f conftest*
  6260. fi
  6261. fi
  6262. if test "$tmp_need_reentrant" = "no"; then
  6263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6264. /* end confdefs.h. */
  6265. #define strtok_r innocuous_strtok_r
  6266. #ifdef __STDC__
  6267. # include <limits.h>
  6268. #else
  6269. # include <assert.h>
  6270. #endif
  6271. #undef strtok_r
  6272. #ifdef __cplusplus
  6273. extern "C"
  6274. #endif
  6275. char strtok_r ();
  6276. #if defined __stub_strtok_r || defined __stub___strtok_r
  6277. choke me
  6278. #endif
  6279. int main (void)
  6280. {
  6281. return strtok_r ();
  6282. ;
  6283. return 0;
  6284. }
  6285. _ACEOF
  6286. if ac_fn_c_try_link "$LINENO"; then :
  6287. tmp_strtok_r="yes"
  6288. else
  6289. tmp_strtok_r="no"
  6290. fi
  6291. rm -f core conftest.err conftest.$ac_objext \
  6292. conftest$ac_exeext conftest.$ac_ext
  6293. if test "$tmp_strtok_r" = "yes"; then
  6294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6295. /* end confdefs.h. */
  6296. #include <sys/types.h>
  6297. #include <string.h>
  6298. _ACEOF
  6299. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6300. $EGREP "strtok_r" >/dev/null 2>&1; then :
  6301. tmp_strtok_r="proto_declared"
  6302. else
  6303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6304. /* end confdefs.h. */
  6305. #define _REENTRANT
  6306. #include <sys/types.h>
  6307. #include <string.h>
  6308. _ACEOF
  6309. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6310. $EGREP "strtok_r" >/dev/null 2>&1; then :
  6311. tmp_strtok_r="proto_needs_reentrant"
  6312. tmp_need_reentrant="yes"
  6313. fi
  6314. rm -f conftest*
  6315. fi
  6316. rm -f conftest*
  6317. fi
  6318. fi
  6319. if test "$tmp_need_reentrant" = "no"; then
  6320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6321. /* end confdefs.h. */
  6322. #define inet_ntoa_r innocuous_inet_ntoa_r
  6323. #ifdef __STDC__
  6324. # include <limits.h>
  6325. #else
  6326. # include <assert.h>
  6327. #endif
  6328. #undef inet_ntoa_r
  6329. #ifdef __cplusplus
  6330. extern "C"
  6331. #endif
  6332. char inet_ntoa_r ();
  6333. #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
  6334. choke me
  6335. #endif
  6336. int main (void)
  6337. {
  6338. return inet_ntoa_r ();
  6339. ;
  6340. return 0;
  6341. }
  6342. _ACEOF
  6343. if ac_fn_c_try_link "$LINENO"; then :
  6344. tmp_inet_ntoa_r="yes"
  6345. else
  6346. tmp_inet_ntoa_r="no"
  6347. fi
  6348. rm -f core conftest.err conftest.$ac_objext \
  6349. conftest$ac_exeext conftest.$ac_ext
  6350. if test "$tmp_inet_ntoa_r" = "yes"; then
  6351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6352. /* end confdefs.h. */
  6353. #include <sys/types.h>
  6354. #include <sys/socket.h>
  6355. #include <netinet/in.h>
  6356. #include <arpa/inet.h>
  6357. _ACEOF
  6358. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6359. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
  6360. tmp_inet_ntoa_r="proto_declared"
  6361. else
  6362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6363. /* end confdefs.h. */
  6364. #define _REENTRANT
  6365. #include <sys/types.h>
  6366. #include <sys/socket.h>
  6367. #include <netinet/in.h>
  6368. #include <arpa/inet.h>
  6369. _ACEOF
  6370. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6371. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
  6372. tmp_inet_ntoa_r="proto_needs_reentrant"
  6373. tmp_need_reentrant="yes"
  6374. fi
  6375. rm -f conftest*
  6376. fi
  6377. rm -f conftest*
  6378. fi
  6379. fi
  6380. if test "$tmp_need_reentrant" = "no"; then
  6381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6382. /* end confdefs.h. */
  6383. #define gethostbyaddr_r innocuous_gethostbyaddr_r
  6384. #ifdef __STDC__
  6385. # include <limits.h>
  6386. #else
  6387. # include <assert.h>
  6388. #endif
  6389. #undef gethostbyaddr_r
  6390. #ifdef __cplusplus
  6391. extern "C"
  6392. #endif
  6393. char gethostbyaddr_r ();
  6394. #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
  6395. choke me
  6396. #endif
  6397. int main (void)
  6398. {
  6399. return gethostbyaddr_r ();
  6400. ;
  6401. return 0;
  6402. }
  6403. _ACEOF
  6404. if ac_fn_c_try_link "$LINENO"; then :
  6405. tmp_gethostbyaddr_r="yes"
  6406. else
  6407. tmp_gethostbyaddr_r="no"
  6408. fi
  6409. rm -f core conftest.err conftest.$ac_objext \
  6410. conftest$ac_exeext conftest.$ac_ext
  6411. if test "$tmp_gethostbyaddr_r" = "yes"; then
  6412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6413. /* end confdefs.h. */
  6414. #include <sys/types.h>
  6415. #include <netdb.h>
  6416. _ACEOF
  6417. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6418. $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
  6419. tmp_gethostbyaddr_r="proto_declared"
  6420. else
  6421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6422. /* end confdefs.h. */
  6423. #define _REENTRANT
  6424. #include <sys/types.h>
  6425. #include <netdb.h>
  6426. _ACEOF
  6427. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6428. $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
  6429. tmp_gethostbyaddr_r="proto_needs_reentrant"
  6430. tmp_need_reentrant="yes"
  6431. fi
  6432. rm -f conftest*
  6433. fi
  6434. rm -f conftest*
  6435. fi
  6436. fi
  6437. if test "$tmp_need_reentrant" = "no"; then
  6438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6439. /* end confdefs.h. */
  6440. #define gethostbyname_r innocuous_gethostbyname_r
  6441. #ifdef __STDC__
  6442. # include <limits.h>
  6443. #else
  6444. # include <assert.h>
  6445. #endif
  6446. #undef gethostbyname_r
  6447. #ifdef __cplusplus
  6448. extern "C"
  6449. #endif
  6450. char gethostbyname_r ();
  6451. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  6452. choke me
  6453. #endif
  6454. int main (void)
  6455. {
  6456. return gethostbyname_r ();
  6457. ;
  6458. return 0;
  6459. }
  6460. _ACEOF
  6461. if ac_fn_c_try_link "$LINENO"; then :
  6462. tmp_gethostbyname_r="yes"
  6463. else
  6464. tmp_gethostbyname_r="no"
  6465. fi
  6466. rm -f core conftest.err conftest.$ac_objext \
  6467. conftest$ac_exeext conftest.$ac_ext
  6468. if test "$tmp_gethostbyname_r" = "yes"; then
  6469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6470. /* end confdefs.h. */
  6471. #include <sys/types.h>
  6472. #include <netdb.h>
  6473. _ACEOF
  6474. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6475. $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
  6476. tmp_gethostbyname_r="proto_declared"
  6477. else
  6478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6479. /* end confdefs.h. */
  6480. #define _REENTRANT
  6481. #include <sys/types.h>
  6482. #include <netdb.h>
  6483. _ACEOF
  6484. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6485. $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
  6486. tmp_gethostbyname_r="proto_needs_reentrant"
  6487. tmp_need_reentrant="yes"
  6488. fi
  6489. rm -f conftest*
  6490. fi
  6491. rm -f conftest*
  6492. fi
  6493. fi
  6494. if test "$tmp_need_reentrant" = "no"; then
  6495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6496. /* end confdefs.h. */
  6497. #define getprotobyname_r innocuous_getprotobyname_r
  6498. #ifdef __STDC__
  6499. # include <limits.h>
  6500. #else
  6501. # include <assert.h>
  6502. #endif
  6503. #undef getprotobyname_r
  6504. #ifdef __cplusplus
  6505. extern "C"
  6506. #endif
  6507. char getprotobyname_r ();
  6508. #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
  6509. choke me
  6510. #endif
  6511. int main (void)
  6512. {
  6513. return getprotobyname_r ();
  6514. ;
  6515. return 0;
  6516. }
  6517. _ACEOF
  6518. if ac_fn_c_try_link "$LINENO"; then :
  6519. tmp_getprotobyname_r="yes"
  6520. else
  6521. tmp_getprotobyname_r="no"
  6522. fi
  6523. rm -f core conftest.err conftest.$ac_objext \
  6524. conftest$ac_exeext conftest.$ac_ext
  6525. if test "$tmp_getprotobyname_r" = "yes"; then
  6526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6527. /* end confdefs.h. */
  6528. #include <sys/types.h>
  6529. #include <netdb.h>
  6530. _ACEOF
  6531. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6532. $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
  6533. tmp_getprotobyname_r="proto_declared"
  6534. else
  6535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6536. /* end confdefs.h. */
  6537. #define _REENTRANT
  6538. #include <sys/types.h>
  6539. #include <netdb.h>
  6540. _ACEOF
  6541. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6542. $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
  6543. tmp_getprotobyname_r="proto_needs_reentrant"
  6544. tmp_need_reentrant="yes"
  6545. fi
  6546. rm -f conftest*
  6547. fi
  6548. rm -f conftest*
  6549. fi
  6550. fi
  6551. if test "$tmp_need_reentrant" = "no"; then
  6552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6553. /* end confdefs.h. */
  6554. #define getservbyport_r innocuous_getservbyport_r
  6555. #ifdef __STDC__
  6556. # include <limits.h>
  6557. #else
  6558. # include <assert.h>
  6559. #endif
  6560. #undef getservbyport_r
  6561. #ifdef __cplusplus
  6562. extern "C"
  6563. #endif
  6564. char getservbyport_r ();
  6565. #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
  6566. choke me
  6567. #endif
  6568. int main (void)
  6569. {
  6570. return getservbyport_r ();
  6571. ;
  6572. return 0;
  6573. }
  6574. _ACEOF
  6575. if ac_fn_c_try_link "$LINENO"; then :
  6576. tmp_getservbyport_r="yes"
  6577. else
  6578. tmp_getservbyport_r="no"
  6579. fi
  6580. rm -f core conftest.err conftest.$ac_objext \
  6581. conftest$ac_exeext conftest.$ac_ext
  6582. if test "$tmp_getservbyport_r" = "yes"; then
  6583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6584. /* end confdefs.h. */
  6585. #include <sys/types.h>
  6586. #include <netdb.h>
  6587. _ACEOF
  6588. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6589. $EGREP "getservbyport_r" >/dev/null 2>&1; then :
  6590. tmp_getservbyport_r="proto_declared"
  6591. else
  6592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6593. /* end confdefs.h. */
  6594. #define _REENTRANT
  6595. #include <sys/types.h>
  6596. #include <netdb.h>
  6597. _ACEOF
  6598. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6599. $EGREP "getservbyport_r" >/dev/null 2>&1; then :
  6600. tmp_getservbyport_r="proto_needs_reentrant"
  6601. tmp_need_reentrant="yes"
  6602. fi
  6603. rm -f conftest*
  6604. fi
  6605. rm -f conftest*
  6606. fi
  6607. fi
  6608. fi
  6609. if test "$tmp_need_reentrant" = "yes"; then
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6611. $as_echo "yes" >&6; }
  6612. else
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6614. $as_echo "no" >&6; }
  6615. fi
  6616. fi
  6617. #
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
  6619. $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
  6620. if test "$tmp_reentrant_initially_defined" = "yes" ||
  6621. test "$tmp_need_reentrant" = "yes"; then
  6622. $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
  6623. cat >>confdefs.h <<_EOF
  6624. #ifndef _REENTRANT
  6625. # define _REENTRANT
  6626. #endif
  6627. _EOF
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6629. $as_echo "yes" >&6; }
  6630. else
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6632. $as_echo "no" >&6; }
  6633. fi
  6634. #
  6635. # Check whether --enable-largefile was given.
  6636. if test "${enable_largefile+set}" = set; then :
  6637. enableval=$enable_largefile;
  6638. fi
  6639. if test "$enable_largefile" != no; then
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  6641. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  6642. if ${ac_cv_sys_largefile_CC+:} false; then :
  6643. $as_echo_n "(cached) " >&6
  6644. else
  6645. ac_cv_sys_largefile_CC=no
  6646. if test "$GCC" != yes; then
  6647. ac_save_CC=$CC
  6648. while :; do
  6649. # IRIX 6.2 and later do not support large files by default,
  6650. # so use the C compiler's -n32 option if that helps.
  6651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6652. /* end confdefs.h. */
  6653. #include <sys/types.h>
  6654. /* Check that off_t can represent 2**63 - 1 correctly.
  6655. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6656. since some C++ compilers masquerading as C compilers
  6657. incorrectly reject 9223372036854775807. */
  6658. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6659. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6660. && LARGE_OFF_T % 2147483647 == 1)
  6661. ? 1 : -1];
  6662. int main (void)
  6663. {
  6664. ;
  6665. return 0;
  6666. }
  6667. _ACEOF
  6668. if ac_fn_c_try_compile "$LINENO"; then :
  6669. break
  6670. fi
  6671. rm -f core conftest.err conftest.$ac_objext
  6672. CC="$CC -n32"
  6673. if ac_fn_c_try_compile "$LINENO"; then :
  6674. ac_cv_sys_largefile_CC=' -n32'; break
  6675. fi
  6676. rm -f core conftest.err conftest.$ac_objext
  6677. break
  6678. done
  6679. CC=$ac_save_CC
  6680. rm -f conftest.$ac_ext
  6681. fi
  6682. fi
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  6684. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  6685. if test "$ac_cv_sys_largefile_CC" != no; then
  6686. CC=$CC$ac_cv_sys_largefile_CC
  6687. fi
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  6689. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  6690. if ${ac_cv_sys_file_offset_bits+:} false; then :
  6691. $as_echo_n "(cached) " >&6
  6692. else
  6693. while :; do
  6694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6695. /* end confdefs.h. */
  6696. #include <sys/types.h>
  6697. /* Check that off_t can represent 2**63 - 1 correctly.
  6698. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6699. since some C++ compilers masquerading as C compilers
  6700. incorrectly reject 9223372036854775807. */
  6701. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6702. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6703. && LARGE_OFF_T % 2147483647 == 1)
  6704. ? 1 : -1];
  6705. int main (void)
  6706. {
  6707. ;
  6708. return 0;
  6709. }
  6710. _ACEOF
  6711. if ac_fn_c_try_compile "$LINENO"; then :
  6712. ac_cv_sys_file_offset_bits=no; break
  6713. fi
  6714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6716. /* end confdefs.h. */
  6717. #define _FILE_OFFSET_BITS 64
  6718. #include <sys/types.h>
  6719. /* Check that off_t can represent 2**63 - 1 correctly.
  6720. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6721. since some C++ compilers masquerading as C compilers
  6722. incorrectly reject 9223372036854775807. */
  6723. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6724. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6725. && LARGE_OFF_T % 2147483647 == 1)
  6726. ? 1 : -1];
  6727. int main (void)
  6728. {
  6729. ;
  6730. return 0;
  6731. }
  6732. _ACEOF
  6733. if ac_fn_c_try_compile "$LINENO"; then :
  6734. ac_cv_sys_file_offset_bits=64; break
  6735. fi
  6736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6737. ac_cv_sys_file_offset_bits=unknown
  6738. break
  6739. done
  6740. fi
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  6742. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  6743. case $ac_cv_sys_file_offset_bits in #(
  6744. no | unknown) ;;
  6745. *)
  6746. cat >>confdefs.h <<_ACEOF
  6747. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  6748. _ACEOF
  6749. ;;
  6750. esac
  6751. rm -rf conftest*
  6752. if test $ac_cv_sys_file_offset_bits = unknown; then
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  6754. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  6755. if ${ac_cv_sys_large_files+:} false; then :
  6756. $as_echo_n "(cached) " >&6
  6757. else
  6758. while :; do
  6759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6760. /* end confdefs.h. */
  6761. #include <sys/types.h>
  6762. /* Check that off_t can represent 2**63 - 1 correctly.
  6763. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6764. since some C++ compilers masquerading as C compilers
  6765. incorrectly reject 9223372036854775807. */
  6766. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6767. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6768. && LARGE_OFF_T % 2147483647 == 1)
  6769. ? 1 : -1];
  6770. int main (void)
  6771. {
  6772. ;
  6773. return 0;
  6774. }
  6775. _ACEOF
  6776. if ac_fn_c_try_compile "$LINENO"; then :
  6777. ac_cv_sys_large_files=no; break
  6778. fi
  6779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6781. /* end confdefs.h. */
  6782. #define _LARGE_FILES 1
  6783. #include <sys/types.h>
  6784. /* Check that off_t can represent 2**63 - 1 correctly.
  6785. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6786. since some C++ compilers masquerading as C compilers
  6787. incorrectly reject 9223372036854775807. */
  6788. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6789. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6790. && LARGE_OFF_T % 2147483647 == 1)
  6791. ? 1 : -1];
  6792. int main (void)
  6793. {
  6794. ;
  6795. return 0;
  6796. }
  6797. _ACEOF
  6798. if ac_fn_c_try_compile "$LINENO"; then :
  6799. ac_cv_sys_large_files=1; break
  6800. fi
  6801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6802. ac_cv_sys_large_files=unknown
  6803. break
  6804. done
  6805. fi
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  6807. $as_echo "$ac_cv_sys_large_files" >&6; }
  6808. case $ac_cv_sys_large_files in #(
  6809. no | unknown) ;;
  6810. *)
  6811. cat >>confdefs.h <<_ACEOF
  6812. #define _LARGE_FILES $ac_cv_sys_large_files
  6813. _ACEOF
  6814. ;;
  6815. esac
  6816. rm -rf conftest*
  6817. fi
  6818. fi
  6819. case `pwd` in
  6820. *\ * | *\ *)
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6822. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6823. esac
  6824. macro_version='2.4.2'
  6825. macro_revision='1.3337'
  6826. ltmain="$ac_aux_dir/ltmain.sh"
  6827. # Backslashify metacharacters that are still active within
  6828. # double-quoted strings.
  6829. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6830. # Same as above, but do not quote variable references.
  6831. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6832. # Sed substitution to delay expansion of an escaped shell variable in a
  6833. # double_quote_subst'ed string.
  6834. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6835. # Sed substitution to delay expansion of an escaped single quote.
  6836. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6837. # Sed substitution to avoid accidental globbing in evaled expressions
  6838. no_glob_subst='s/\*/\\\*/g'
  6839. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6840. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6841. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6843. $as_echo_n "checking how to print strings... " >&6; }
  6844. # Test print first, because it will be a builtin if present.
  6845. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  6846. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6847. ECHO='print -r --'
  6848. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6849. ECHO='printf %s\n'
  6850. else
  6851. # Use this function as a fallback that always works.
  6852. func_fallback_echo ()
  6853. {
  6854. eval 'cat <<_LTECHO_EOF
  6855. $1
  6856. _LTECHO_EOF'
  6857. }
  6858. ECHO='func_fallback_echo'
  6859. fi
  6860. # func_echo_all arg...
  6861. # Invoke $ECHO with all args, space-separated.
  6862. func_echo_all ()
  6863. {
  6864. $ECHO ""
  6865. }
  6866. case "$ECHO" in
  6867. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  6868. $as_echo "printf" >&6; } ;;
  6869. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  6870. $as_echo "print -r" >&6; } ;;
  6871. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  6872. $as_echo "cat" >&6; } ;;
  6873. esac
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6875. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6876. if ${ac_cv_path_SED+:} false; then :
  6877. $as_echo_n "(cached) " >&6
  6878. else
  6879. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6880. for ac_i in 1 2 3 4 5 6 7; do
  6881. ac_script="$ac_script$as_nl$ac_script"
  6882. done
  6883. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6884. { ac_script=; unset ac_script;}
  6885. if test -z "$SED"; then
  6886. ac_path_SED_found=false
  6887. # Loop through the user's path and test for each of PROGNAME-LIST
  6888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6889. for as_dir in $PATH
  6890. do
  6891. IFS=$as_save_IFS
  6892. test -z "$as_dir" && as_dir=.
  6893. for ac_prog in sed gsed; do
  6894. for ac_exec_ext in '' $ac_executable_extensions; do
  6895. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6896. as_fn_executable_p "$ac_path_SED" || continue
  6897. # Check for GNU ac_path_SED and select it if it is found.
  6898. # Check for GNU $ac_path_SED
  6899. case `"$ac_path_SED" --version 2>&1` in
  6900. *GNU*)
  6901. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6902. *)
  6903. ac_count=0
  6904. $as_echo_n 0123456789 >"conftest.in"
  6905. while :
  6906. do
  6907. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6908. mv "conftest.tmp" "conftest.in"
  6909. cp "conftest.in" "conftest.nl"
  6910. $as_echo '' >> "conftest.nl"
  6911. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6912. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6913. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6914. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6915. # Best one so far, save it but keep looking for a better one
  6916. ac_cv_path_SED="$ac_path_SED"
  6917. ac_path_SED_max=$ac_count
  6918. fi
  6919. # 10*(2^10) chars as input seems more than enough
  6920. test $ac_count -gt 10 && break
  6921. done
  6922. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6923. esac
  6924. $ac_path_SED_found && break 3
  6925. done
  6926. done
  6927. done
  6928. IFS=$as_save_IFS
  6929. if test -z "$ac_cv_path_SED"; then
  6930. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6931. fi
  6932. else
  6933. ac_cv_path_SED=$SED
  6934. fi
  6935. fi
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6937. $as_echo "$ac_cv_path_SED" >&6; }
  6938. SED="$ac_cv_path_SED"
  6939. rm -f conftest.sed
  6940. test -z "$SED" && SED=sed
  6941. Xsed="$SED -e 1s/^X//"
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  6943. $as_echo_n "checking for fgrep... " >&6; }
  6944. if ${ac_cv_path_FGREP+:} false; then :
  6945. $as_echo_n "(cached) " >&6
  6946. else
  6947. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6948. then ac_cv_path_FGREP="$GREP -F"
  6949. else
  6950. if test -z "$FGREP"; then
  6951. ac_path_FGREP_found=false
  6952. # Loop through the user's path and test for each of PROGNAME-LIST
  6953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6954. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6955. do
  6956. IFS=$as_save_IFS
  6957. test -z "$as_dir" && as_dir=.
  6958. for ac_prog in fgrep; do
  6959. for ac_exec_ext in '' $ac_executable_extensions; do
  6960. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  6961. as_fn_executable_p "$ac_path_FGREP" || continue
  6962. # Check for GNU ac_path_FGREP and select it if it is found.
  6963. # Check for GNU $ac_path_FGREP
  6964. case `"$ac_path_FGREP" --version 2>&1` in
  6965. *GNU*)
  6966. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6967. *)
  6968. ac_count=0
  6969. $as_echo_n 0123456789 >"conftest.in"
  6970. while :
  6971. do
  6972. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6973. mv "conftest.tmp" "conftest.in"
  6974. cp "conftest.in" "conftest.nl"
  6975. $as_echo 'FGREP' >> "conftest.nl"
  6976. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6977. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6978. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6979. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6980. # Best one so far, save it but keep looking for a better one
  6981. ac_cv_path_FGREP="$ac_path_FGREP"
  6982. ac_path_FGREP_max=$ac_count
  6983. fi
  6984. # 10*(2^10) chars as input seems more than enough
  6985. test $ac_count -gt 10 && break
  6986. done
  6987. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6988. esac
  6989. $ac_path_FGREP_found && break 3
  6990. done
  6991. done
  6992. done
  6993. IFS=$as_save_IFS
  6994. if test -z "$ac_cv_path_FGREP"; then
  6995. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6996. fi
  6997. else
  6998. ac_cv_path_FGREP=$FGREP
  6999. fi
  7000. fi
  7001. fi
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  7003. $as_echo "$ac_cv_path_FGREP" >&6; }
  7004. FGREP="$ac_cv_path_FGREP"
  7005. test -z "$GREP" && GREP=grep
  7006. # Check whether --with-gnu-ld was given.
  7007. if test "${with_gnu_ld+set}" = set; then :
  7008. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7009. else
  7010. with_gnu_ld=no
  7011. fi
  7012. ac_prog=ld
  7013. if test "$GCC" = yes; then
  7014. # Check if gcc -print-prog-name=ld gives a path.
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  7016. $as_echo_n "checking for ld used by $CC... " >&6; }
  7017. case $host in
  7018. *-*-mingw*)
  7019. # gcc leaves a trailing carriage return which upsets mingw
  7020. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7021. *)
  7022. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7023. esac
  7024. case $ac_prog in
  7025. # Accept absolute paths.
  7026. [\\/]* | ?:[\\/]*)
  7027. re_direlt='/[^/][^/]*/\.\./'
  7028. # Canonicalize the pathname of ld
  7029. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  7030. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  7031. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  7032. done
  7033. test -z "$LD" && LD="$ac_prog"
  7034. ;;
  7035. "")
  7036. # If it fails, then pretend we aren't using GCC.
  7037. ac_prog=ld
  7038. ;;
  7039. *)
  7040. # If it is relative, then search for the first ld in PATH.
  7041. with_gnu_ld=unknown
  7042. ;;
  7043. esac
  7044. elif test "$with_gnu_ld" = yes; then
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  7046. $as_echo_n "checking for GNU ld... " >&6; }
  7047. else
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  7049. $as_echo_n "checking for non-GNU ld... " >&6; }
  7050. fi
  7051. if ${lt_cv_path_LD+:} false; then :
  7052. $as_echo_n "(cached) " >&6
  7053. else
  7054. if test -z "$LD"; then
  7055. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7056. for ac_dir in $PATH; do
  7057. IFS="$lt_save_ifs"
  7058. test -z "$ac_dir" && ac_dir=.
  7059. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7060. lt_cv_path_LD="$ac_dir/$ac_prog"
  7061. # Check to see if the program is GNU ld. I'd rather use --version,
  7062. # but apparently some variants of GNU ld only accept -v.
  7063. # Break only if it was the GNU/non-GNU ld that we prefer.
  7064. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7065. *GNU* | *'with BFD'*)
  7066. test "$with_gnu_ld" != no && break
  7067. ;;
  7068. *)
  7069. test "$with_gnu_ld" != yes && break
  7070. ;;
  7071. esac
  7072. fi
  7073. done
  7074. IFS="$lt_save_ifs"
  7075. else
  7076. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  7077. fi
  7078. fi
  7079. LD="$lt_cv_path_LD"
  7080. if test -n "$LD"; then
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7082. $as_echo "$LD" >&6; }
  7083. else
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7085. $as_echo "no" >&6; }
  7086. fi
  7087. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  7089. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  7090. if ${lt_cv_prog_gnu_ld+:} false; then :
  7091. $as_echo_n "(cached) " >&6
  7092. else
  7093. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7094. case `$LD -v 2>&1 </dev/null` in
  7095. *GNU* | *'with BFD'*)
  7096. lt_cv_prog_gnu_ld=yes
  7097. ;;
  7098. *)
  7099. lt_cv_prog_gnu_ld=no
  7100. ;;
  7101. esac
  7102. fi
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  7104. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  7105. with_gnu_ld=$lt_cv_prog_gnu_ld
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  7107. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  7108. if ${lt_cv_path_NM+:} false; then :
  7109. $as_echo_n "(cached) " >&6
  7110. else
  7111. if test -n "$NM"; then
  7112. # Let the user override the test.
  7113. lt_cv_path_NM="$NM"
  7114. else
  7115. lt_nm_to_check="${ac_tool_prefix}nm"
  7116. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7117. lt_nm_to_check="$lt_nm_to_check nm"
  7118. fi
  7119. for lt_tmp_nm in $lt_nm_to_check; do
  7120. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7121. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7122. IFS="$lt_save_ifs"
  7123. test -z "$ac_dir" && ac_dir=.
  7124. tmp_nm="$ac_dir/$lt_tmp_nm"
  7125. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  7126. # Check to see if the nm accepts a BSD-compat flag.
  7127. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  7128. # nm: unknown option "B" ignored
  7129. # Tru64's nm complains that /dev/null is an invalid object file
  7130. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  7131. */dev/null* | *'Invalid file or object type'*)
  7132. lt_cv_path_NM="$tmp_nm -B"
  7133. break
  7134. ;;
  7135. *)
  7136. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7137. */dev/null*)
  7138. lt_cv_path_NM="$tmp_nm -p"
  7139. break
  7140. ;;
  7141. *)
  7142. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7143. continue # so that we can try to find one that supports BSD flags
  7144. ;;
  7145. esac
  7146. ;;
  7147. esac
  7148. fi
  7149. done
  7150. IFS="$lt_save_ifs"
  7151. done
  7152. : ${lt_cv_path_NM=no}
  7153. fi
  7154. fi
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  7156. $as_echo "$lt_cv_path_NM" >&6; }
  7157. if test "$lt_cv_path_NM" != "no"; then
  7158. NM="$lt_cv_path_NM"
  7159. else
  7160. # Didn't find any BSD compatible name lister, look for dumpbin.
  7161. if test -n "$DUMPBIN"; then :
  7162. # Let the user override the test.
  7163. else
  7164. if test -n "$ac_tool_prefix"; then
  7165. for ac_prog in dumpbin "link -dump"
  7166. do
  7167. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7168. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7170. $as_echo_n "checking for $ac_word... " >&6; }
  7171. if ${ac_cv_prog_DUMPBIN+:} false; then :
  7172. $as_echo_n "(cached) " >&6
  7173. else
  7174. if test -n "$DUMPBIN"; then
  7175. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  7176. else
  7177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7178. for as_dir in $PATH
  7179. do
  7180. IFS=$as_save_IFS
  7181. test -z "$as_dir" && as_dir=.
  7182. for ac_exec_ext in '' $ac_executable_extensions; do
  7183. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7184. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  7185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7186. break 2
  7187. fi
  7188. done
  7189. done
  7190. IFS=$as_save_IFS
  7191. fi
  7192. fi
  7193. DUMPBIN=$ac_cv_prog_DUMPBIN
  7194. if test -n "$DUMPBIN"; then
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  7196. $as_echo "$DUMPBIN" >&6; }
  7197. else
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7199. $as_echo "no" >&6; }
  7200. fi
  7201. test -n "$DUMPBIN" && break
  7202. done
  7203. fi
  7204. if test -z "$DUMPBIN"; then
  7205. ac_ct_DUMPBIN=$DUMPBIN
  7206. for ac_prog in dumpbin "link -dump"
  7207. do
  7208. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7209. set dummy $ac_prog; ac_word=$2
  7210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7211. $as_echo_n "checking for $ac_word... " >&6; }
  7212. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  7213. $as_echo_n "(cached) " >&6
  7214. else
  7215. if test -n "$ac_ct_DUMPBIN"; then
  7216. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  7217. else
  7218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7219. for as_dir in $PATH
  7220. do
  7221. IFS=$as_save_IFS
  7222. test -z "$as_dir" && as_dir=.
  7223. for ac_exec_ext in '' $ac_executable_extensions; do
  7224. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7225. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  7226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7227. break 2
  7228. fi
  7229. done
  7230. done
  7231. IFS=$as_save_IFS
  7232. fi
  7233. fi
  7234. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  7235. if test -n "$ac_ct_DUMPBIN"; then
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  7237. $as_echo "$ac_ct_DUMPBIN" >&6; }
  7238. else
  7239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7240. $as_echo "no" >&6; }
  7241. fi
  7242. test -n "$ac_ct_DUMPBIN" && break
  7243. done
  7244. if test "x$ac_ct_DUMPBIN" = x; then
  7245. DUMPBIN=":"
  7246. else
  7247. case $cross_compiling:$ac_tool_warned in
  7248. yes:)
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7250. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7251. ac_tool_warned=yes ;;
  7252. esac
  7253. DUMPBIN=$ac_ct_DUMPBIN
  7254. fi
  7255. fi
  7256. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  7257. *COFF*)
  7258. DUMPBIN="$DUMPBIN -symbols"
  7259. ;;
  7260. *)
  7261. DUMPBIN=:
  7262. ;;
  7263. esac
  7264. fi
  7265. if test "$DUMPBIN" != ":"; then
  7266. NM="$DUMPBIN"
  7267. fi
  7268. fi
  7269. test -z "$NM" && NM=nm
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  7271. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  7272. if ${lt_cv_nm_interface+:} false; then :
  7273. $as_echo_n "(cached) " >&6
  7274. else
  7275. lt_cv_nm_interface="BSD nm"
  7276. echo "int some_variable = 0;" > conftest.$ac_ext
  7277. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  7278. (eval "$ac_compile" 2>conftest.err)
  7279. cat conftest.err >&5
  7280. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7281. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7282. cat conftest.err >&5
  7283. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  7284. cat conftest.out >&5
  7285. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7286. lt_cv_nm_interface="MS dumpbin"
  7287. fi
  7288. rm -f conftest*
  7289. fi
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  7291. $as_echo "$lt_cv_nm_interface" >&6; }
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7293. $as_echo_n "checking whether ln -s works... " >&6; }
  7294. LN_S=$as_ln_s
  7295. if test "$LN_S" = "ln -s"; then
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7297. $as_echo "yes" >&6; }
  7298. else
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7300. $as_echo "no, using $LN_S" >&6; }
  7301. fi
  7302. # find the maximum length of command line arguments
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  7304. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  7305. if ${lt_cv_sys_max_cmd_len+:} false; then :
  7306. $as_echo_n "(cached) " >&6
  7307. else
  7308. i=0
  7309. teststring="ABCD"
  7310. case $build_os in
  7311. msdosdjgpp*)
  7312. # On DJGPP, this test can blow up pretty badly due to problems in libc
  7313. # (any single argument exceeding 2000 bytes causes a buffer overrun
  7314. # during glob expansion). Even if it were fixed, the result of this
  7315. # check would be larger than it should be.
  7316. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7317. ;;
  7318. gnu*)
  7319. # Under GNU Hurd, this test is not required because there is
  7320. # no limit to the length of command line arguments.
  7321. # Libtool will interpret -1 as no limit whatsoever
  7322. lt_cv_sys_max_cmd_len=-1;
  7323. ;;
  7324. cygwin* | mingw* | cegcc*)
  7325. # On Win9x/ME, this test blows up -- it succeeds, but takes
  7326. # about 5 minutes as the teststring grows exponentially.
  7327. # Worse, since 9x/ME are not pre-emptively multitasking,
  7328. # you end up with a "frozen" computer, even though with patience
  7329. # the test eventually succeeds (with a max line length of 256k).
  7330. # Instead, let's just punt: use the minimum linelength reported by
  7331. # all of the supported platforms: 8192 (on NT/2K/XP).
  7332. lt_cv_sys_max_cmd_len=8192;
  7333. ;;
  7334. mint*)
  7335. # On MiNT this can take a long time and run out of memory.
  7336. lt_cv_sys_max_cmd_len=8192;
  7337. ;;
  7338. amigaos*)
  7339. # On AmigaOS with pdksh, this test takes hours, literally.
  7340. # So we just punt and use a minimum line length of 8192.
  7341. lt_cv_sys_max_cmd_len=8192;
  7342. ;;
  7343. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  7344. # This has been around since 386BSD, at least. Likely further.
  7345. if test -x /sbin/sysctl; then
  7346. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7347. elif test -x /usr/sbin/sysctl; then
  7348. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7349. else
  7350. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7351. fi
  7352. # And add a safety zone
  7353. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7354. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7355. ;;
  7356. interix*)
  7357. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7358. lt_cv_sys_max_cmd_len=196608
  7359. ;;
  7360. os2*)
  7361. # The test takes a long time on OS/2.
  7362. lt_cv_sys_max_cmd_len=8192
  7363. ;;
  7364. osf*)
  7365. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7366. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7367. # nice to cause kernel panics so lets avoid the loop below.
  7368. # First set a reasonable default.
  7369. lt_cv_sys_max_cmd_len=16384
  7370. #
  7371. if test -x /sbin/sysconfig; then
  7372. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7373. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7374. esac
  7375. fi
  7376. ;;
  7377. sco3.2v5*)
  7378. lt_cv_sys_max_cmd_len=102400
  7379. ;;
  7380. sysv5* | sco5v6* | sysv4.2uw2*)
  7381. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7382. if test -n "$kargmax"; then
  7383. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7384. else
  7385. lt_cv_sys_max_cmd_len=32768
  7386. fi
  7387. ;;
  7388. *)
  7389. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7390. if test -n "$lt_cv_sys_max_cmd_len" && \
  7391. test undefined != "$lt_cv_sys_max_cmd_len"; then
  7392. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7393. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7394. else
  7395. # Make teststring a little bigger before we do anything with it.
  7396. # a 1K string should be a reasonable start.
  7397. for i in 1 2 3 4 5 6 7 8 ; do
  7398. teststring=$teststring$teststring
  7399. done
  7400. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7401. # If test is not a shell built-in, we'll probably end up computing a
  7402. # maximum length that is only half of the actual maximum length, but
  7403. # we can't tell.
  7404. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  7405. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  7406. test $i != 17 # 1/2 MB should be enough
  7407. do
  7408. i=`expr $i + 1`
  7409. teststring=$teststring$teststring
  7410. done
  7411. # Only check the string length outside the loop.
  7412. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7413. teststring=
  7414. # Add a significant safety factor because C++ compilers can tack on
  7415. # massive amounts of additional arguments before passing them to the
  7416. # linker. It appears as though 1/2 is a usable value.
  7417. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7418. fi
  7419. ;;
  7420. esac
  7421. fi
  7422. if test -n $lt_cv_sys_max_cmd_len ; then
  7423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7424. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  7425. else
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7427. $as_echo "none" >&6; }
  7428. fi
  7429. max_cmd_len=$lt_cv_sys_max_cmd_len
  7430. : ${CP="cp -f"}
  7431. : ${MV="mv -f"}
  7432. : ${RM="rm -f"}
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  7434. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  7435. # Try some XSI features
  7436. xsi_shell=no
  7437. ( _lt_dummy="a/b/c"
  7438. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7439. = c,a/b,b/c, \
  7440. && eval 'test $(( 1 + 1 )) -eq 2 \
  7441. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7442. && xsi_shell=yes
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  7444. $as_echo "$xsi_shell" >&6; }
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  7446. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  7447. lt_shell_append=no
  7448. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  7449. >/dev/null 2>&1 \
  7450. && lt_shell_append=yes
  7451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  7452. $as_echo "$lt_shell_append" >&6; }
  7453. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7454. lt_unset=unset
  7455. else
  7456. lt_unset=false
  7457. fi
  7458. # test EBCDIC or ASCII
  7459. case `echo X|tr X '\101'` in
  7460. A) # ASCII based system
  7461. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7462. lt_SP2NL='tr \040 \012'
  7463. lt_NL2SP='tr \015\012 \040\040'
  7464. ;;
  7465. *) # EBCDIC based system
  7466. lt_SP2NL='tr \100 \n'
  7467. lt_NL2SP='tr \r\n \100\100'
  7468. ;;
  7469. esac
  7470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7471. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  7472. if ${lt_cv_to_host_file_cmd+:} false; then :
  7473. $as_echo_n "(cached) " >&6
  7474. else
  7475. case $host in
  7476. *-*-mingw* )
  7477. case $build in
  7478. *-*-mingw* ) # actually msys
  7479. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7480. ;;
  7481. *-*-cygwin* )
  7482. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7483. ;;
  7484. * ) # otherwise, assume *nix
  7485. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7486. ;;
  7487. esac
  7488. ;;
  7489. *-*-cygwin* )
  7490. case $build in
  7491. *-*-mingw* ) # actually msys
  7492. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7493. ;;
  7494. *-*-cygwin* )
  7495. lt_cv_to_host_file_cmd=func_convert_file_noop
  7496. ;;
  7497. * ) # otherwise, assume *nix
  7498. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7499. ;;
  7500. esac
  7501. ;;
  7502. * ) # unhandled hosts (and "normal" native builds)
  7503. lt_cv_to_host_file_cmd=func_convert_file_noop
  7504. ;;
  7505. esac
  7506. fi
  7507. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7509. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  7510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7511. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  7512. if ${lt_cv_to_tool_file_cmd+:} false; then :
  7513. $as_echo_n "(cached) " >&6
  7514. else
  7515. #assume ordinary cross tools, or native build.
  7516. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7517. case $host in
  7518. *-*-mingw* )
  7519. case $build in
  7520. *-*-mingw* ) # actually msys
  7521. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7522. ;;
  7523. esac
  7524. ;;
  7525. esac
  7526. fi
  7527. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7529. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7531. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7532. if ${lt_cv_ld_reload_flag+:} false; then :
  7533. $as_echo_n "(cached) " >&6
  7534. else
  7535. lt_cv_ld_reload_flag='-r'
  7536. fi
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7538. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7539. reload_flag=$lt_cv_ld_reload_flag
  7540. case $reload_flag in
  7541. "" | " "*) ;;
  7542. *) reload_flag=" $reload_flag" ;;
  7543. esac
  7544. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7545. case $host_os in
  7546. cygwin* | mingw* | pw32* | cegcc*)
  7547. if test "$GCC" != yes; then
  7548. reload_cmds=false
  7549. fi
  7550. ;;
  7551. darwin*)
  7552. if test "$GCC" = yes; then
  7553. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  7554. else
  7555. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7556. fi
  7557. ;;
  7558. esac
  7559. if test -n "$ac_tool_prefix"; then
  7560. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7561. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7563. $as_echo_n "checking for $ac_word... " >&6; }
  7564. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7565. $as_echo_n "(cached) " >&6
  7566. else
  7567. if test -n "$OBJDUMP"; then
  7568. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7569. else
  7570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7571. for as_dir in $PATH
  7572. do
  7573. IFS=$as_save_IFS
  7574. test -z "$as_dir" && as_dir=.
  7575. for ac_exec_ext in '' $ac_executable_extensions; do
  7576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7577. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7579. break 2
  7580. fi
  7581. done
  7582. done
  7583. IFS=$as_save_IFS
  7584. fi
  7585. fi
  7586. OBJDUMP=$ac_cv_prog_OBJDUMP
  7587. if test -n "$OBJDUMP"; then
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7589. $as_echo "$OBJDUMP" >&6; }
  7590. else
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7592. $as_echo "no" >&6; }
  7593. fi
  7594. fi
  7595. if test -z "$ac_cv_prog_OBJDUMP"; then
  7596. ac_ct_OBJDUMP=$OBJDUMP
  7597. # Extract the first word of "objdump", so it can be a program name with args.
  7598. set dummy objdump; ac_word=$2
  7599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7600. $as_echo_n "checking for $ac_word... " >&6; }
  7601. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7602. $as_echo_n "(cached) " >&6
  7603. else
  7604. if test -n "$ac_ct_OBJDUMP"; then
  7605. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7606. else
  7607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7608. for as_dir in $PATH
  7609. do
  7610. IFS=$as_save_IFS
  7611. test -z "$as_dir" && as_dir=.
  7612. for ac_exec_ext in '' $ac_executable_extensions; do
  7613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7614. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7616. break 2
  7617. fi
  7618. done
  7619. done
  7620. IFS=$as_save_IFS
  7621. fi
  7622. fi
  7623. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7624. if test -n "$ac_ct_OBJDUMP"; then
  7625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7626. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7627. else
  7628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7629. $as_echo "no" >&6; }
  7630. fi
  7631. if test "x$ac_ct_OBJDUMP" = x; then
  7632. OBJDUMP="false"
  7633. else
  7634. case $cross_compiling:$ac_tool_warned in
  7635. yes:)
  7636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7637. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7638. ac_tool_warned=yes ;;
  7639. esac
  7640. OBJDUMP=$ac_ct_OBJDUMP
  7641. fi
  7642. else
  7643. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7644. fi
  7645. test -z "$OBJDUMP" && OBJDUMP=objdump
  7646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7647. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7648. if ${lt_cv_deplibs_check_method+:} false; then :
  7649. $as_echo_n "(cached) " >&6
  7650. else
  7651. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7652. lt_cv_file_magic_test_file=
  7653. lt_cv_deplibs_check_method='unknown'
  7654. # Need to set the preceding variable on all platforms that support
  7655. # interlibrary dependencies.
  7656. # 'none' -- dependencies not supported.
  7657. # `unknown' -- same as none, but documents that we really don't know.
  7658. # 'pass_all' -- all dependencies passed with no checks.
  7659. # 'test_compile' -- check by making test program.
  7660. # 'file_magic [[regex]]' -- check by looking for files in library path
  7661. # which responds to the $file_magic_cmd with a given extended regex.
  7662. # If you have `file' or equivalent on your system and you're not sure
  7663. # whether `pass_all' will *always* work, you probably want this one.
  7664. case $host_os in
  7665. aix[4-9]*)
  7666. lt_cv_deplibs_check_method=pass_all
  7667. ;;
  7668. beos*)
  7669. lt_cv_deplibs_check_method=pass_all
  7670. ;;
  7671. bsdi[45]*)
  7672. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7673. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7674. lt_cv_file_magic_test_file=/shlib/libc.so
  7675. ;;
  7676. cygwin*)
  7677. # func_win32_libid is a shell function defined in ltmain.sh
  7678. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7679. lt_cv_file_magic_cmd='func_win32_libid'
  7680. ;;
  7681. mingw* | pw32*)
  7682. # Base MSYS/MinGW do not provide the 'file' command needed by
  7683. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7684. # unless we find 'file', for example because we are cross-compiling.
  7685. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  7686. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  7687. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7688. lt_cv_file_magic_cmd='func_win32_libid'
  7689. else
  7690. # Keep this pattern in sync with the one in func_win32_libid.
  7691. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7692. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7693. fi
  7694. ;;
  7695. cegcc*)
  7696. # use the weaker test based on 'objdump'. See mingw*.
  7697. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7698. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7699. ;;
  7700. darwin* | rhapsody*)
  7701. lt_cv_deplibs_check_method=pass_all
  7702. ;;
  7703. freebsd* | dragonfly*)
  7704. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7705. case $host_cpu in
  7706. i*86 )
  7707. # Not sure whether the presence of OpenBSD here was a mistake.
  7708. # Let's accept both of them until this is cleared up.
  7709. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7710. lt_cv_file_magic_cmd=/usr/bin/file
  7711. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7712. ;;
  7713. esac
  7714. else
  7715. lt_cv_deplibs_check_method=pass_all
  7716. fi
  7717. ;;
  7718. haiku*)
  7719. lt_cv_deplibs_check_method=pass_all
  7720. ;;
  7721. hpux10.20* | hpux11*)
  7722. lt_cv_file_magic_cmd=/usr/bin/file
  7723. case $host_cpu in
  7724. ia64*)
  7725. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7726. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7727. ;;
  7728. hppa*64*)
  7729. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  7730. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7731. ;;
  7732. *)
  7733. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7734. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7735. ;;
  7736. esac
  7737. ;;
  7738. interix[3-9]*)
  7739. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7740. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7741. ;;
  7742. irix5* | irix6* | nonstopux*)
  7743. case $LD in
  7744. *-32|*"-32 ") libmagic=32-bit;;
  7745. *-n32|*"-n32 ") libmagic=N32;;
  7746. *-64|*"-64 ") libmagic=64-bit;;
  7747. *) libmagic=never-match;;
  7748. esac
  7749. lt_cv_deplibs_check_method=pass_all
  7750. ;;
  7751. # This must be glibc/ELF.
  7752. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7753. lt_cv_deplibs_check_method=pass_all
  7754. ;;
  7755. netbsd* | netbsdelf*-gnu)
  7756. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7757. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7758. else
  7759. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7760. fi
  7761. ;;
  7762. newos6*)
  7763. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7764. lt_cv_file_magic_cmd=/usr/bin/file
  7765. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7766. ;;
  7767. *nto* | *qnx*)
  7768. lt_cv_deplibs_check_method=pass_all
  7769. ;;
  7770. openbsd*)
  7771. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7772. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7773. else
  7774. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7775. fi
  7776. ;;
  7777. osf3* | osf4* | osf5*)
  7778. lt_cv_deplibs_check_method=pass_all
  7779. ;;
  7780. rdos*)
  7781. lt_cv_deplibs_check_method=pass_all
  7782. ;;
  7783. solaris*)
  7784. lt_cv_deplibs_check_method=pass_all
  7785. ;;
  7786. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7787. lt_cv_deplibs_check_method=pass_all
  7788. ;;
  7789. sysv4 | sysv4.3*)
  7790. case $host_vendor in
  7791. motorola)
  7792. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  7793. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7794. ;;
  7795. ncr)
  7796. lt_cv_deplibs_check_method=pass_all
  7797. ;;
  7798. sequent)
  7799. lt_cv_file_magic_cmd='/bin/file'
  7800. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7801. ;;
  7802. sni)
  7803. lt_cv_file_magic_cmd='/bin/file'
  7804. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7805. lt_cv_file_magic_test_file=/lib/libc.so
  7806. ;;
  7807. siemens)
  7808. lt_cv_deplibs_check_method=pass_all
  7809. ;;
  7810. pc)
  7811. lt_cv_deplibs_check_method=pass_all
  7812. ;;
  7813. esac
  7814. ;;
  7815. tpf*)
  7816. lt_cv_deplibs_check_method=pass_all
  7817. ;;
  7818. esac
  7819. fi
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7821. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7822. file_magic_glob=
  7823. want_nocaseglob=no
  7824. if test "$build" = "$host"; then
  7825. case $host_os in
  7826. mingw* | pw32*)
  7827. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7828. want_nocaseglob=yes
  7829. else
  7830. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7831. fi
  7832. ;;
  7833. esac
  7834. fi
  7835. file_magic_cmd=$lt_cv_file_magic_cmd
  7836. deplibs_check_method=$lt_cv_deplibs_check_method
  7837. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7838. if test -n "$ac_tool_prefix"; then
  7839. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7840. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7842. $as_echo_n "checking for $ac_word... " >&6; }
  7843. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7844. $as_echo_n "(cached) " >&6
  7845. else
  7846. if test -n "$DLLTOOL"; then
  7847. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7848. else
  7849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7850. for as_dir in $PATH
  7851. do
  7852. IFS=$as_save_IFS
  7853. test -z "$as_dir" && as_dir=.
  7854. for ac_exec_ext in '' $ac_executable_extensions; do
  7855. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7856. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7857. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7858. break 2
  7859. fi
  7860. done
  7861. done
  7862. IFS=$as_save_IFS
  7863. fi
  7864. fi
  7865. DLLTOOL=$ac_cv_prog_DLLTOOL
  7866. if test -n "$DLLTOOL"; then
  7867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7868. $as_echo "$DLLTOOL" >&6; }
  7869. else
  7870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7871. $as_echo "no" >&6; }
  7872. fi
  7873. fi
  7874. if test -z "$ac_cv_prog_DLLTOOL"; then
  7875. ac_ct_DLLTOOL=$DLLTOOL
  7876. # Extract the first word of "dlltool", so it can be a program name with args.
  7877. set dummy dlltool; ac_word=$2
  7878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7879. $as_echo_n "checking for $ac_word... " >&6; }
  7880. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7881. $as_echo_n "(cached) " >&6
  7882. else
  7883. if test -n "$ac_ct_DLLTOOL"; then
  7884. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7885. else
  7886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7887. for as_dir in $PATH
  7888. do
  7889. IFS=$as_save_IFS
  7890. test -z "$as_dir" && as_dir=.
  7891. for ac_exec_ext in '' $ac_executable_extensions; do
  7892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7893. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7895. break 2
  7896. fi
  7897. done
  7898. done
  7899. IFS=$as_save_IFS
  7900. fi
  7901. fi
  7902. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7903. if test -n "$ac_ct_DLLTOOL"; then
  7904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7905. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7906. else
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7908. $as_echo "no" >&6; }
  7909. fi
  7910. if test "x$ac_ct_DLLTOOL" = x; then
  7911. DLLTOOL="false"
  7912. else
  7913. case $cross_compiling:$ac_tool_warned in
  7914. yes:)
  7915. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7916. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7917. ac_tool_warned=yes ;;
  7918. esac
  7919. DLLTOOL=$ac_ct_DLLTOOL
  7920. fi
  7921. else
  7922. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7923. fi
  7924. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7926. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  7927. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  7928. $as_echo_n "(cached) " >&6
  7929. else
  7930. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7931. case $host_os in
  7932. cygwin* | mingw* | pw32* | cegcc*)
  7933. # two different shell functions defined in ltmain.sh
  7934. # decide which to use based on capabilities of $DLLTOOL
  7935. case `$DLLTOOL --help 2>&1` in
  7936. *--identify-strict*)
  7937. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7938. ;;
  7939. *)
  7940. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7941. ;;
  7942. esac
  7943. ;;
  7944. *)
  7945. # fallback: assume linklib IS sharedlib
  7946. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  7947. ;;
  7948. esac
  7949. fi
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7951. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7952. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7953. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7954. if test -n "$ac_tool_prefix"; then
  7955. for ac_prog in ar
  7956. do
  7957. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7958. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7960. $as_echo_n "checking for $ac_word... " >&6; }
  7961. if ${ac_cv_prog_AR+:} false; then :
  7962. $as_echo_n "(cached) " >&6
  7963. else
  7964. if test -n "$AR"; then
  7965. ac_cv_prog_AR="$AR" # Let the user override the test.
  7966. else
  7967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7968. for as_dir in $PATH
  7969. do
  7970. IFS=$as_save_IFS
  7971. test -z "$as_dir" && as_dir=.
  7972. for ac_exec_ext in '' $ac_executable_extensions; do
  7973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7974. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7976. break 2
  7977. fi
  7978. done
  7979. done
  7980. IFS=$as_save_IFS
  7981. fi
  7982. fi
  7983. AR=$ac_cv_prog_AR
  7984. if test -n "$AR"; then
  7985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7986. $as_echo "$AR" >&6; }
  7987. else
  7988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7989. $as_echo "no" >&6; }
  7990. fi
  7991. test -n "$AR" && break
  7992. done
  7993. fi
  7994. if test -z "$AR"; then
  7995. ac_ct_AR=$AR
  7996. for ac_prog in ar
  7997. do
  7998. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7999. set dummy $ac_prog; ac_word=$2
  8000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8001. $as_echo_n "checking for $ac_word... " >&6; }
  8002. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  8003. $as_echo_n "(cached) " >&6
  8004. else
  8005. if test -n "$ac_ct_AR"; then
  8006. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8007. else
  8008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8009. for as_dir in $PATH
  8010. do
  8011. IFS=$as_save_IFS
  8012. test -z "$as_dir" && as_dir=.
  8013. for ac_exec_ext in '' $ac_executable_extensions; do
  8014. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8015. ac_cv_prog_ac_ct_AR="$ac_prog"
  8016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8017. break 2
  8018. fi
  8019. done
  8020. done
  8021. IFS=$as_save_IFS
  8022. fi
  8023. fi
  8024. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8025. if test -n "$ac_ct_AR"; then
  8026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8027. $as_echo "$ac_ct_AR" >&6; }
  8028. else
  8029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8030. $as_echo "no" >&6; }
  8031. fi
  8032. test -n "$ac_ct_AR" && break
  8033. done
  8034. if test "x$ac_ct_AR" = x; then
  8035. AR="false"
  8036. else
  8037. case $cross_compiling:$ac_tool_warned in
  8038. yes:)
  8039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8040. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8041. ac_tool_warned=yes ;;
  8042. esac
  8043. AR=$ac_ct_AR
  8044. fi
  8045. fi
  8046. : ${AR=ar}
  8047. : ${AR_FLAGS=cru}
  8048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  8049. $as_echo_n "checking for archiver @FILE support... " >&6; }
  8050. if ${lt_cv_ar_at_file+:} false; then :
  8051. $as_echo_n "(cached) " >&6
  8052. else
  8053. lt_cv_ar_at_file=no
  8054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8055. /* end confdefs.h. */
  8056. int main (void)
  8057. {
  8058. ;
  8059. return 0;
  8060. }
  8061. _ACEOF
  8062. if ac_fn_c_try_compile "$LINENO"; then :
  8063. echo conftest.$ac_objext > conftest.lst
  8064. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  8065. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8066. (eval $lt_ar_try) 2>&5
  8067. ac_status=$?
  8068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8069. test $ac_status = 0; }
  8070. if test "$ac_status" -eq 0; then
  8071. # Ensure the archiver fails upon bogus file names.
  8072. rm -f conftest.$ac_objext libconftest.a
  8073. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8074. (eval $lt_ar_try) 2>&5
  8075. ac_status=$?
  8076. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8077. test $ac_status = 0; }
  8078. if test "$ac_status" -ne 0; then
  8079. lt_cv_ar_at_file=@
  8080. fi
  8081. fi
  8082. rm -f conftest.* libconftest.a
  8083. fi
  8084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8085. fi
  8086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  8087. $as_echo "$lt_cv_ar_at_file" >&6; }
  8088. if test "x$lt_cv_ar_at_file" = xno; then
  8089. archiver_list_spec=
  8090. else
  8091. archiver_list_spec=$lt_cv_ar_at_file
  8092. fi
  8093. if test -n "$ac_tool_prefix"; then
  8094. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8095. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8097. $as_echo_n "checking for $ac_word... " >&6; }
  8098. if ${ac_cv_prog_STRIP+:} false; then :
  8099. $as_echo_n "(cached) " >&6
  8100. else
  8101. if test -n "$STRIP"; then
  8102. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8103. else
  8104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8105. for as_dir in $PATH
  8106. do
  8107. IFS=$as_save_IFS
  8108. test -z "$as_dir" && as_dir=.
  8109. for ac_exec_ext in '' $ac_executable_extensions; do
  8110. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8111. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8112. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8113. break 2
  8114. fi
  8115. done
  8116. done
  8117. IFS=$as_save_IFS
  8118. fi
  8119. fi
  8120. STRIP=$ac_cv_prog_STRIP
  8121. if test -n "$STRIP"; then
  8122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8123. $as_echo "$STRIP" >&6; }
  8124. else
  8125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8126. $as_echo "no" >&6; }
  8127. fi
  8128. fi
  8129. if test -z "$ac_cv_prog_STRIP"; then
  8130. ac_ct_STRIP=$STRIP
  8131. # Extract the first word of "strip", so it can be a program name with args.
  8132. set dummy strip; ac_word=$2
  8133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8134. $as_echo_n "checking for $ac_word... " >&6; }
  8135. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  8136. $as_echo_n "(cached) " >&6
  8137. else
  8138. if test -n "$ac_ct_STRIP"; then
  8139. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8140. else
  8141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8142. for as_dir in $PATH
  8143. do
  8144. IFS=$as_save_IFS
  8145. test -z "$as_dir" && as_dir=.
  8146. for ac_exec_ext in '' $ac_executable_extensions; do
  8147. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8148. ac_cv_prog_ac_ct_STRIP="strip"
  8149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8150. break 2
  8151. fi
  8152. done
  8153. done
  8154. IFS=$as_save_IFS
  8155. fi
  8156. fi
  8157. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8158. if test -n "$ac_ct_STRIP"; then
  8159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8160. $as_echo "$ac_ct_STRIP" >&6; }
  8161. else
  8162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8163. $as_echo "no" >&6; }
  8164. fi
  8165. if test "x$ac_ct_STRIP" = x; then
  8166. STRIP=":"
  8167. else
  8168. case $cross_compiling:$ac_tool_warned in
  8169. yes:)
  8170. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8171. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8172. ac_tool_warned=yes ;;
  8173. esac
  8174. STRIP=$ac_ct_STRIP
  8175. fi
  8176. else
  8177. STRIP="$ac_cv_prog_STRIP"
  8178. fi
  8179. test -z "$STRIP" && STRIP=:
  8180. if test -n "$ac_tool_prefix"; then
  8181. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8182. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8184. $as_echo_n "checking for $ac_word... " >&6; }
  8185. if ${ac_cv_prog_RANLIB+:} false; then :
  8186. $as_echo_n "(cached) " >&6
  8187. else
  8188. if test -n "$RANLIB"; then
  8189. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8190. else
  8191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8192. for as_dir in $PATH
  8193. do
  8194. IFS=$as_save_IFS
  8195. test -z "$as_dir" && as_dir=.
  8196. for ac_exec_ext in '' $ac_executable_extensions; do
  8197. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8198. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8200. break 2
  8201. fi
  8202. done
  8203. done
  8204. IFS=$as_save_IFS
  8205. fi
  8206. fi
  8207. RANLIB=$ac_cv_prog_RANLIB
  8208. if test -n "$RANLIB"; then
  8209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8210. $as_echo "$RANLIB" >&6; }
  8211. else
  8212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8213. $as_echo "no" >&6; }
  8214. fi
  8215. fi
  8216. if test -z "$ac_cv_prog_RANLIB"; then
  8217. ac_ct_RANLIB=$RANLIB
  8218. # Extract the first word of "ranlib", so it can be a program name with args.
  8219. set dummy ranlib; ac_word=$2
  8220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8221. $as_echo_n "checking for $ac_word... " >&6; }
  8222. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  8223. $as_echo_n "(cached) " >&6
  8224. else
  8225. if test -n "$ac_ct_RANLIB"; then
  8226. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8227. else
  8228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8229. for as_dir in $PATH
  8230. do
  8231. IFS=$as_save_IFS
  8232. test -z "$as_dir" && as_dir=.
  8233. for ac_exec_ext in '' $ac_executable_extensions; do
  8234. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8235. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8237. break 2
  8238. fi
  8239. done
  8240. done
  8241. IFS=$as_save_IFS
  8242. fi
  8243. fi
  8244. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8245. if test -n "$ac_ct_RANLIB"; then
  8246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8247. $as_echo "$ac_ct_RANLIB" >&6; }
  8248. else
  8249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8250. $as_echo "no" >&6; }
  8251. fi
  8252. if test "x$ac_ct_RANLIB" = x; then
  8253. RANLIB=":"
  8254. else
  8255. case $cross_compiling:$ac_tool_warned in
  8256. yes:)
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8258. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8259. ac_tool_warned=yes ;;
  8260. esac
  8261. RANLIB=$ac_ct_RANLIB
  8262. fi
  8263. else
  8264. RANLIB="$ac_cv_prog_RANLIB"
  8265. fi
  8266. test -z "$RANLIB" && RANLIB=:
  8267. # Determine commands to create old-style static archives.
  8268. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8269. old_postinstall_cmds='chmod 644 $oldlib'
  8270. old_postuninstall_cmds=
  8271. if test -n "$RANLIB"; then
  8272. case $host_os in
  8273. openbsd*)
  8274. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  8275. ;;
  8276. *)
  8277. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  8278. ;;
  8279. esac
  8280. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  8281. fi
  8282. case $host_os in
  8283. darwin*)
  8284. lock_old_archive_extraction=yes ;;
  8285. *)
  8286. lock_old_archive_extraction=no ;;
  8287. esac
  8288. # If no C compiler was specified, use CC.
  8289. LTCC=${LTCC-"$CC"}
  8290. # If no C compiler flags were specified, use CFLAGS.
  8291. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8292. # Allow CC to be a program name with arguments.
  8293. compiler=$CC
  8294. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8296. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  8297. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  8298. $as_echo_n "(cached) " >&6
  8299. else
  8300. # These are sane defaults that work on at least a few old systems.
  8301. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8302. # Character class describing NM global symbol codes.
  8303. symcode='[BCDEGRST]'
  8304. # Regexp to match symbols that can be accessed directly from C.
  8305. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8306. # Define system-specific variables.
  8307. case $host_os in
  8308. aix*)
  8309. symcode='[BCDT]'
  8310. ;;
  8311. cygwin* | mingw* | pw32* | cegcc*)
  8312. symcode='[ABCDGISTW]'
  8313. ;;
  8314. hpux*)
  8315. if test "$host_cpu" = ia64; then
  8316. symcode='[ABCDEGRST]'
  8317. fi
  8318. ;;
  8319. irix* | nonstopux*)
  8320. symcode='[BCDEGRST]'
  8321. ;;
  8322. osf*)
  8323. symcode='[BCDEGQRST]'
  8324. ;;
  8325. solaris*)
  8326. symcode='[BDRT]'
  8327. ;;
  8328. sco3.2v5*)
  8329. symcode='[DT]'
  8330. ;;
  8331. sysv4.2uw2*)
  8332. symcode='[DT]'
  8333. ;;
  8334. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8335. symcode='[ABDT]'
  8336. ;;
  8337. sysv4)
  8338. symcode='[DFNSTU]'
  8339. ;;
  8340. esac
  8341. # If we're using GNU nm, then use its standard symbol codes.
  8342. case `$NM -V 2>&1` in
  8343. *GNU* | *'with BFD'*)
  8344. symcode='[ABCDGIRSTW]' ;;
  8345. esac
  8346. # Transform an extracted symbol line into a proper C declaration.
  8347. # Some systems (esp. on ia64) link data and code symbols differently,
  8348. # so use this general approach.
  8349. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8350. # Transform an extracted symbol line into symbol name and symbol address
  8351. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  8352. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  8353. # Handle CRLF in mingw tool chain
  8354. opt_cr=
  8355. case $build_os in
  8356. mingw*)
  8357. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8358. ;;
  8359. esac
  8360. # Try without a prefix underscore, then with it.
  8361. for ac_symprfx in "" "_"; do
  8362. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8363. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8364. # Write the raw and C identifiers.
  8365. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8366. # Fake it for dumpbin and say T for any non-static function
  8367. # and D for any global variable.
  8368. # Also find C++ and __fastcall symbols from MSVC++,
  8369. # which start with @ or ?.
  8370. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8371. " {last_section=section; section=\$ 3};"\
  8372. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  8373. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8374. " \$ 0!~/External *\|/{next};"\
  8375. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8376. " {if(hide[section]) next};"\
  8377. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  8378. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  8379. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  8380. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  8381. " ' prfx=^$ac_symprfx"
  8382. else
  8383. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8384. fi
  8385. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  8386. # Check to see that the pipe works correctly.
  8387. pipe_works=no
  8388. rm -f conftest*
  8389. cat > conftest.$ac_ext <<_LT_EOF
  8390. #ifdef __cplusplus
  8391. extern "C" {
  8392. #endif
  8393. char nm_test_var;
  8394. void nm_test_func(void);
  8395. void nm_test_func(void){}
  8396. #ifdef __cplusplus
  8397. }
  8398. #endif
  8399. int main(){nm_test_var='a';nm_test_func();return(0);}
  8400. _LT_EOF
  8401. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8402. (eval $ac_compile) 2>&5
  8403. ac_status=$?
  8404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8405. test $ac_status = 0; }; then
  8406. # Now try to grab the symbols.
  8407. nlist=conftest.nm
  8408. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  8409. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  8410. ac_status=$?
  8411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8412. test $ac_status = 0; } && test -s "$nlist"; then
  8413. # Try sorting and uniquifying the output.
  8414. if sort "$nlist" | uniq > "$nlist"T; then
  8415. mv -f "$nlist"T "$nlist"
  8416. else
  8417. rm -f "$nlist"T
  8418. fi
  8419. # Make sure that we snagged all the symbols we need.
  8420. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8421. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8422. cat <<_LT_EOF > conftest.$ac_ext
  8423. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  8424. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  8425. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  8426. relocations are performed -- see ld's documentation on pseudo-relocs. */
  8427. # define LT_DLSYM_CONST
  8428. #elif defined(__osf__)
  8429. /* This system does not cope well with relocations in const data. */
  8430. # define LT_DLSYM_CONST
  8431. #else
  8432. # define LT_DLSYM_CONST const
  8433. #endif
  8434. #ifdef __cplusplus
  8435. extern "C" {
  8436. #endif
  8437. _LT_EOF
  8438. # Now generate the symbol file.
  8439. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8440. cat <<_LT_EOF >> conftest.$ac_ext
  8441. /* The mapping between symbol names and symbols. */
  8442. LT_DLSYM_CONST struct {
  8443. const char *name;
  8444. void *address;
  8445. }
  8446. lt__PROGRAM__LTX_preloaded_symbols[] =
  8447. {
  8448. { "@PROGRAM@", (void *) 0 },
  8449. _LT_EOF
  8450. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8451. cat <<\_LT_EOF >> conftest.$ac_ext
  8452. {0, (void *) 0}
  8453. };
  8454. /* This works around a problem in FreeBSD linker */
  8455. #ifdef FREEBSD_WORKAROUND
  8456. static const void *lt_preloaded_setup() {
  8457. return lt__PROGRAM__LTX_preloaded_symbols;
  8458. }
  8459. #endif
  8460. #ifdef __cplusplus
  8461. }
  8462. #endif
  8463. _LT_EOF
  8464. # Now try linking the two files.
  8465. mv -f conftest.$ac_objext conftstm.$ac_objext
  8466. lt_globsym_save_LIBS=$LIBS
  8467. lt_globsym_save_CFLAGS=$CFLAGS
  8468. LIBS="conftstm.$ac_objext"
  8469. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8470. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8471. (eval $ac_link) 2>&5
  8472. ac_status=$?
  8473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8474. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  8475. pipe_works=yes
  8476. fi
  8477. LIBS=$lt_globsym_save_LIBS
  8478. CFLAGS=$lt_globsym_save_CFLAGS
  8479. else
  8480. echo "cannot find nm_test_func in $nlist" >&5
  8481. fi
  8482. else
  8483. echo "cannot find nm_test_var in $nlist" >&5
  8484. fi
  8485. else
  8486. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8487. fi
  8488. else
  8489. echo "$progname: failed program was:" >&5
  8490. cat conftest.$ac_ext >&5
  8491. fi
  8492. rm -rf conftest* conftst*
  8493. # Do not use the global_symbol_pipe unless it works.
  8494. if test "$pipe_works" = yes; then
  8495. break
  8496. else
  8497. lt_cv_sys_global_symbol_pipe=
  8498. fi
  8499. done
  8500. fi
  8501. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8502. lt_cv_sys_global_symbol_to_cdecl=
  8503. fi
  8504. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8506. $as_echo "failed" >&6; }
  8507. else
  8508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8509. $as_echo "ok" >&6; }
  8510. fi
  8511. # Response file support.
  8512. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8513. nm_file_list_spec='@'
  8514. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  8515. nm_file_list_spec='@'
  8516. fi
  8517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  8518. $as_echo_n "checking for sysroot... " >&6; }
  8519. # Check whether --with-sysroot was given.
  8520. if test "${with_sysroot+set}" = set; then :
  8521. withval=$with_sysroot;
  8522. else
  8523. with_sysroot=no
  8524. fi
  8525. lt_sysroot=
  8526. case ${with_sysroot} in #(
  8527. yes)
  8528. if test "$GCC" = yes; then
  8529. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  8530. fi
  8531. ;; #(
  8532. /*)
  8533. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  8534. ;; #(
  8535. no|'')
  8536. ;; #(
  8537. *)
  8538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  8539. $as_echo "${with_sysroot}" >&6; }
  8540. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  8541. ;;
  8542. esac
  8543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  8544. $as_echo "${lt_sysroot:-no}" >&6; }
  8545. # Check whether --enable-libtool-lock was given.
  8546. if test "${enable_libtool_lock+set}" = set; then :
  8547. enableval=$enable_libtool_lock;
  8548. fi
  8549. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8550. # Some flags need to be propagated to the compiler or linker for good
  8551. # libtool support.
  8552. case $host in
  8553. ia64-*-hpux*)
  8554. # Find out which ABI we are using.
  8555. echo 'int i;' > conftest.$ac_ext
  8556. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8557. (eval $ac_compile) 2>&5
  8558. ac_status=$?
  8559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8560. test $ac_status = 0; }; then
  8561. case `/usr/bin/file conftest.$ac_objext` in
  8562. *ELF-32*)
  8563. HPUX_IA64_MODE="32"
  8564. ;;
  8565. *ELF-64*)
  8566. HPUX_IA64_MODE="64"
  8567. ;;
  8568. esac
  8569. fi
  8570. rm -rf conftest*
  8571. ;;
  8572. *-*-irix6*)
  8573. # Find out which ABI we are using.
  8574. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8575. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8576. (eval $ac_compile) 2>&5
  8577. ac_status=$?
  8578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8579. test $ac_status = 0; }; then
  8580. if test "$lt_cv_prog_gnu_ld" = yes; then
  8581. case `/usr/bin/file conftest.$ac_objext` in
  8582. *32-bit*)
  8583. LD="${LD-ld} -melf32bsmip"
  8584. ;;
  8585. *N32*)
  8586. LD="${LD-ld} -melf32bmipn32"
  8587. ;;
  8588. *64-bit*)
  8589. LD="${LD-ld} -melf64bmip"
  8590. ;;
  8591. esac
  8592. else
  8593. case `/usr/bin/file conftest.$ac_objext` in
  8594. *32-bit*)
  8595. LD="${LD-ld} -32"
  8596. ;;
  8597. *N32*)
  8598. LD="${LD-ld} -n32"
  8599. ;;
  8600. *64-bit*)
  8601. LD="${LD-ld} -64"
  8602. ;;
  8603. esac
  8604. fi
  8605. fi
  8606. rm -rf conftest*
  8607. ;;
  8608. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  8609. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8610. # Find out which ABI we are using.
  8611. echo 'int i;' > conftest.$ac_ext
  8612. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8613. (eval $ac_compile) 2>&5
  8614. ac_status=$?
  8615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8616. test $ac_status = 0; }; then
  8617. case `/usr/bin/file conftest.o` in
  8618. *32-bit*)
  8619. case $host in
  8620. x86_64-*kfreebsd*-gnu)
  8621. LD="${LD-ld} -m elf_i386_fbsd"
  8622. ;;
  8623. x86_64-*linux*)
  8624. case `/usr/bin/file conftest.o` in
  8625. *x86-64*)
  8626. LD="${LD-ld} -m elf32_x86_64"
  8627. ;;
  8628. *)
  8629. LD="${LD-ld} -m elf_i386"
  8630. ;;
  8631. esac
  8632. ;;
  8633. ppc64-*linux*|powerpc64-*linux*)
  8634. LD="${LD-ld} -m elf32ppclinux"
  8635. ;;
  8636. s390x-*linux*)
  8637. LD="${LD-ld} -m elf_s390"
  8638. ;;
  8639. sparc64-*linux*)
  8640. LD="${LD-ld} -m elf32_sparc"
  8641. ;;
  8642. esac
  8643. ;;
  8644. *64-bit*)
  8645. case $host in
  8646. x86_64-*kfreebsd*-gnu)
  8647. LD="${LD-ld} -m elf_x86_64_fbsd"
  8648. ;;
  8649. x86_64-*linux*)
  8650. LD="${LD-ld} -m elf_x86_64"
  8651. ;;
  8652. ppc*-*linux*|powerpc*-*linux*)
  8653. LD="${LD-ld} -m elf64ppc"
  8654. ;;
  8655. s390*-*linux*|s390*-*tpf*)
  8656. LD="${LD-ld} -m elf64_s390"
  8657. ;;
  8658. sparc*-*linux*)
  8659. LD="${LD-ld} -m elf64_sparc"
  8660. ;;
  8661. esac
  8662. ;;
  8663. esac
  8664. fi
  8665. rm -rf conftest*
  8666. ;;
  8667. *-*-sco3.2v5*)
  8668. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8669. SAVE_CFLAGS="$CFLAGS"
  8670. CFLAGS="$CFLAGS -belf"
  8671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8672. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8673. if ${lt_cv_cc_needs_belf+:} false; then :
  8674. $as_echo_n "(cached) " >&6
  8675. else
  8676. ac_ext=c
  8677. ac_cpp='$CPP $CPPFLAGS'
  8678. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8679. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8680. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8682. /* end confdefs.h. */
  8683. int main (void)
  8684. {
  8685. ;
  8686. return 0;
  8687. }
  8688. _ACEOF
  8689. if ac_fn_c_try_link "$LINENO"; then :
  8690. lt_cv_cc_needs_belf=yes
  8691. else
  8692. lt_cv_cc_needs_belf=no
  8693. fi
  8694. rm -f core conftest.err conftest.$ac_objext \
  8695. conftest$ac_exeext conftest.$ac_ext
  8696. ac_ext=c
  8697. ac_cpp='$CPP $CPPFLAGS'
  8698. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8699. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8700. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8701. fi
  8702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8703. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8704. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  8705. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8706. CFLAGS="$SAVE_CFLAGS"
  8707. fi
  8708. ;;
  8709. *-*solaris*)
  8710. # Find out which ABI we are using.
  8711. echo 'int i;' > conftest.$ac_ext
  8712. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8713. (eval $ac_compile) 2>&5
  8714. ac_status=$?
  8715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8716. test $ac_status = 0; }; then
  8717. case `/usr/bin/file conftest.o` in
  8718. *64-bit*)
  8719. case $lt_cv_prog_gnu_ld in
  8720. yes*)
  8721. case $host in
  8722. i?86-*-solaris*)
  8723. LD="${LD-ld} -m elf_x86_64"
  8724. ;;
  8725. sparc*-*-solaris*)
  8726. LD="${LD-ld} -m elf64_sparc"
  8727. ;;
  8728. esac
  8729. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8730. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8731. LD="${LD-ld}_sol2"
  8732. fi
  8733. ;;
  8734. *)
  8735. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8736. LD="${LD-ld} -64"
  8737. fi
  8738. ;;
  8739. esac
  8740. ;;
  8741. esac
  8742. fi
  8743. rm -rf conftest*
  8744. ;;
  8745. esac
  8746. need_locks="$enable_libtool_lock"
  8747. if test -n "$ac_tool_prefix"; then
  8748. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8749. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8751. $as_echo_n "checking for $ac_word... " >&6; }
  8752. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  8753. $as_echo_n "(cached) " >&6
  8754. else
  8755. if test -n "$MANIFEST_TOOL"; then
  8756. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8757. else
  8758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8759. for as_dir in $PATH
  8760. do
  8761. IFS=$as_save_IFS
  8762. test -z "$as_dir" && as_dir=.
  8763. for ac_exec_ext in '' $ac_executable_extensions; do
  8764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8765. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8767. break 2
  8768. fi
  8769. done
  8770. done
  8771. IFS=$as_save_IFS
  8772. fi
  8773. fi
  8774. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8775. if test -n "$MANIFEST_TOOL"; then
  8776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8777. $as_echo "$MANIFEST_TOOL" >&6; }
  8778. else
  8779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8780. $as_echo "no" >&6; }
  8781. fi
  8782. fi
  8783. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8784. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8785. # Extract the first word of "mt", so it can be a program name with args.
  8786. set dummy mt; ac_word=$2
  8787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8788. $as_echo_n "checking for $ac_word... " >&6; }
  8789. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  8790. $as_echo_n "(cached) " >&6
  8791. else
  8792. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8793. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8794. else
  8795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8796. for as_dir in $PATH
  8797. do
  8798. IFS=$as_save_IFS
  8799. test -z "$as_dir" && as_dir=.
  8800. for ac_exec_ext in '' $ac_executable_extensions; do
  8801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8802. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  8803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8804. break 2
  8805. fi
  8806. done
  8807. done
  8808. IFS=$as_save_IFS
  8809. fi
  8810. fi
  8811. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8812. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8814. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  8815. else
  8816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8817. $as_echo "no" >&6; }
  8818. fi
  8819. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8820. MANIFEST_TOOL=":"
  8821. else
  8822. case $cross_compiling:$ac_tool_warned in
  8823. yes:)
  8824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8825. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8826. ac_tool_warned=yes ;;
  8827. esac
  8828. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8829. fi
  8830. else
  8831. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8832. fi
  8833. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8835. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8836. if ${lt_cv_path_mainfest_tool+:} false; then :
  8837. $as_echo_n "(cached) " >&6
  8838. else
  8839. lt_cv_path_mainfest_tool=no
  8840. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8841. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8842. cat conftest.err >&5
  8843. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8844. lt_cv_path_mainfest_tool=yes
  8845. fi
  8846. rm -f conftest*
  8847. fi
  8848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8849. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8850. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  8851. MANIFEST_TOOL=:
  8852. fi
  8853. case $host_os in
  8854. rhapsody* | darwin*)
  8855. if test -n "$ac_tool_prefix"; then
  8856. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8857. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8859. $as_echo_n "checking for $ac_word... " >&6; }
  8860. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8861. $as_echo_n "(cached) " >&6
  8862. else
  8863. if test -n "$DSYMUTIL"; then
  8864. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8865. else
  8866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8867. for as_dir in $PATH
  8868. do
  8869. IFS=$as_save_IFS
  8870. test -z "$as_dir" && as_dir=.
  8871. for ac_exec_ext in '' $ac_executable_extensions; do
  8872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8873. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8875. break 2
  8876. fi
  8877. done
  8878. done
  8879. IFS=$as_save_IFS
  8880. fi
  8881. fi
  8882. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8883. if test -n "$DSYMUTIL"; then
  8884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8885. $as_echo "$DSYMUTIL" >&6; }
  8886. else
  8887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8888. $as_echo "no" >&6; }
  8889. fi
  8890. fi
  8891. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8892. ac_ct_DSYMUTIL=$DSYMUTIL
  8893. # Extract the first word of "dsymutil", so it can be a program name with args.
  8894. set dummy dsymutil; ac_word=$2
  8895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8896. $as_echo_n "checking for $ac_word... " >&6; }
  8897. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8898. $as_echo_n "(cached) " >&6
  8899. else
  8900. if test -n "$ac_ct_DSYMUTIL"; then
  8901. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8902. else
  8903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8904. for as_dir in $PATH
  8905. do
  8906. IFS=$as_save_IFS
  8907. test -z "$as_dir" && as_dir=.
  8908. for ac_exec_ext in '' $ac_executable_extensions; do
  8909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8910. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8912. break 2
  8913. fi
  8914. done
  8915. done
  8916. IFS=$as_save_IFS
  8917. fi
  8918. fi
  8919. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8920. if test -n "$ac_ct_DSYMUTIL"; then
  8921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8922. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8923. else
  8924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8925. $as_echo "no" >&6; }
  8926. fi
  8927. if test "x$ac_ct_DSYMUTIL" = x; then
  8928. DSYMUTIL=":"
  8929. else
  8930. case $cross_compiling:$ac_tool_warned in
  8931. yes:)
  8932. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8933. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8934. ac_tool_warned=yes ;;
  8935. esac
  8936. DSYMUTIL=$ac_ct_DSYMUTIL
  8937. fi
  8938. else
  8939. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8940. fi
  8941. if test -n "$ac_tool_prefix"; then
  8942. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8943. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8945. $as_echo_n "checking for $ac_word... " >&6; }
  8946. if ${ac_cv_prog_NMEDIT+:} false; then :
  8947. $as_echo_n "(cached) " >&6
  8948. else
  8949. if test -n "$NMEDIT"; then
  8950. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8951. else
  8952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8953. for as_dir in $PATH
  8954. do
  8955. IFS=$as_save_IFS
  8956. test -z "$as_dir" && as_dir=.
  8957. for ac_exec_ext in '' $ac_executable_extensions; do
  8958. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8959. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8961. break 2
  8962. fi
  8963. done
  8964. done
  8965. IFS=$as_save_IFS
  8966. fi
  8967. fi
  8968. NMEDIT=$ac_cv_prog_NMEDIT
  8969. if test -n "$NMEDIT"; then
  8970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8971. $as_echo "$NMEDIT" >&6; }
  8972. else
  8973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8974. $as_echo "no" >&6; }
  8975. fi
  8976. fi
  8977. if test -z "$ac_cv_prog_NMEDIT"; then
  8978. ac_ct_NMEDIT=$NMEDIT
  8979. # Extract the first word of "nmedit", so it can be a program name with args.
  8980. set dummy nmedit; ac_word=$2
  8981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8982. $as_echo_n "checking for $ac_word... " >&6; }
  8983. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8984. $as_echo_n "(cached) " >&6
  8985. else
  8986. if test -n "$ac_ct_NMEDIT"; then
  8987. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8988. else
  8989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8990. for as_dir in $PATH
  8991. do
  8992. IFS=$as_save_IFS
  8993. test -z "$as_dir" && as_dir=.
  8994. for ac_exec_ext in '' $ac_executable_extensions; do
  8995. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8996. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8998. break 2
  8999. fi
  9000. done
  9001. done
  9002. IFS=$as_save_IFS
  9003. fi
  9004. fi
  9005. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  9006. if test -n "$ac_ct_NMEDIT"; then
  9007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  9008. $as_echo "$ac_ct_NMEDIT" >&6; }
  9009. else
  9010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9011. $as_echo "no" >&6; }
  9012. fi
  9013. if test "x$ac_ct_NMEDIT" = x; then
  9014. NMEDIT=":"
  9015. else
  9016. case $cross_compiling:$ac_tool_warned in
  9017. yes:)
  9018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9019. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9020. ac_tool_warned=yes ;;
  9021. esac
  9022. NMEDIT=$ac_ct_NMEDIT
  9023. fi
  9024. else
  9025. NMEDIT="$ac_cv_prog_NMEDIT"
  9026. fi
  9027. if test -n "$ac_tool_prefix"; then
  9028. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  9029. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  9030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9031. $as_echo_n "checking for $ac_word... " >&6; }
  9032. if ${ac_cv_prog_LIPO+:} false; then :
  9033. $as_echo_n "(cached) " >&6
  9034. else
  9035. if test -n "$LIPO"; then
  9036. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  9037. else
  9038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9039. for as_dir in $PATH
  9040. do
  9041. IFS=$as_save_IFS
  9042. test -z "$as_dir" && as_dir=.
  9043. for ac_exec_ext in '' $ac_executable_extensions; do
  9044. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9045. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  9046. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9047. break 2
  9048. fi
  9049. done
  9050. done
  9051. IFS=$as_save_IFS
  9052. fi
  9053. fi
  9054. LIPO=$ac_cv_prog_LIPO
  9055. if test -n "$LIPO"; then
  9056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  9057. $as_echo "$LIPO" >&6; }
  9058. else
  9059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9060. $as_echo "no" >&6; }
  9061. fi
  9062. fi
  9063. if test -z "$ac_cv_prog_LIPO"; then
  9064. ac_ct_LIPO=$LIPO
  9065. # Extract the first word of "lipo", so it can be a program name with args.
  9066. set dummy lipo; ac_word=$2
  9067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9068. $as_echo_n "checking for $ac_word... " >&6; }
  9069. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  9070. $as_echo_n "(cached) " >&6
  9071. else
  9072. if test -n "$ac_ct_LIPO"; then
  9073. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  9074. else
  9075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9076. for as_dir in $PATH
  9077. do
  9078. IFS=$as_save_IFS
  9079. test -z "$as_dir" && as_dir=.
  9080. for ac_exec_ext in '' $ac_executable_extensions; do
  9081. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9082. ac_cv_prog_ac_ct_LIPO="lipo"
  9083. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9084. break 2
  9085. fi
  9086. done
  9087. done
  9088. IFS=$as_save_IFS
  9089. fi
  9090. fi
  9091. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  9092. if test -n "$ac_ct_LIPO"; then
  9093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  9094. $as_echo "$ac_ct_LIPO" >&6; }
  9095. else
  9096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9097. $as_echo "no" >&6; }
  9098. fi
  9099. if test "x$ac_ct_LIPO" = x; then
  9100. LIPO=":"
  9101. else
  9102. case $cross_compiling:$ac_tool_warned in
  9103. yes:)
  9104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9105. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9106. ac_tool_warned=yes ;;
  9107. esac
  9108. LIPO=$ac_ct_LIPO
  9109. fi
  9110. else
  9111. LIPO="$ac_cv_prog_LIPO"
  9112. fi
  9113. if test -n "$ac_tool_prefix"; then
  9114. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  9115. set dummy ${ac_tool_prefix}otool; ac_word=$2
  9116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9117. $as_echo_n "checking for $ac_word... " >&6; }
  9118. if ${ac_cv_prog_OTOOL+:} false; then :
  9119. $as_echo_n "(cached) " >&6
  9120. else
  9121. if test -n "$OTOOL"; then
  9122. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  9123. else
  9124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9125. for as_dir in $PATH
  9126. do
  9127. IFS=$as_save_IFS
  9128. test -z "$as_dir" && as_dir=.
  9129. for ac_exec_ext in '' $ac_executable_extensions; do
  9130. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9131. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  9132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9133. break 2
  9134. fi
  9135. done
  9136. done
  9137. IFS=$as_save_IFS
  9138. fi
  9139. fi
  9140. OTOOL=$ac_cv_prog_OTOOL
  9141. if test -n "$OTOOL"; then
  9142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  9143. $as_echo "$OTOOL" >&6; }
  9144. else
  9145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9146. $as_echo "no" >&6; }
  9147. fi
  9148. fi
  9149. if test -z "$ac_cv_prog_OTOOL"; then
  9150. ac_ct_OTOOL=$OTOOL
  9151. # Extract the first word of "otool", so it can be a program name with args.
  9152. set dummy otool; ac_word=$2
  9153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9154. $as_echo_n "checking for $ac_word... " >&6; }
  9155. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  9156. $as_echo_n "(cached) " >&6
  9157. else
  9158. if test -n "$ac_ct_OTOOL"; then
  9159. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  9160. else
  9161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9162. for as_dir in $PATH
  9163. do
  9164. IFS=$as_save_IFS
  9165. test -z "$as_dir" && as_dir=.
  9166. for ac_exec_ext in '' $ac_executable_extensions; do
  9167. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9168. ac_cv_prog_ac_ct_OTOOL="otool"
  9169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9170. break 2
  9171. fi
  9172. done
  9173. done
  9174. IFS=$as_save_IFS
  9175. fi
  9176. fi
  9177. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  9178. if test -n "$ac_ct_OTOOL"; then
  9179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  9180. $as_echo "$ac_ct_OTOOL" >&6; }
  9181. else
  9182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9183. $as_echo "no" >&6; }
  9184. fi
  9185. if test "x$ac_ct_OTOOL" = x; then
  9186. OTOOL=":"
  9187. else
  9188. case $cross_compiling:$ac_tool_warned in
  9189. yes:)
  9190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9191. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9192. ac_tool_warned=yes ;;
  9193. esac
  9194. OTOOL=$ac_ct_OTOOL
  9195. fi
  9196. else
  9197. OTOOL="$ac_cv_prog_OTOOL"
  9198. fi
  9199. if test -n "$ac_tool_prefix"; then
  9200. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  9201. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  9202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9203. $as_echo_n "checking for $ac_word... " >&6; }
  9204. if ${ac_cv_prog_OTOOL64+:} false; then :
  9205. $as_echo_n "(cached) " >&6
  9206. else
  9207. if test -n "$OTOOL64"; then
  9208. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  9209. else
  9210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9211. for as_dir in $PATH
  9212. do
  9213. IFS=$as_save_IFS
  9214. test -z "$as_dir" && as_dir=.
  9215. for ac_exec_ext in '' $ac_executable_extensions; do
  9216. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9217. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  9218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9219. break 2
  9220. fi
  9221. done
  9222. done
  9223. IFS=$as_save_IFS
  9224. fi
  9225. fi
  9226. OTOOL64=$ac_cv_prog_OTOOL64
  9227. if test -n "$OTOOL64"; then
  9228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  9229. $as_echo "$OTOOL64" >&6; }
  9230. else
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9232. $as_echo "no" >&6; }
  9233. fi
  9234. fi
  9235. if test -z "$ac_cv_prog_OTOOL64"; then
  9236. ac_ct_OTOOL64=$OTOOL64
  9237. # Extract the first word of "otool64", so it can be a program name with args.
  9238. set dummy otool64; ac_word=$2
  9239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9240. $as_echo_n "checking for $ac_word... " >&6; }
  9241. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  9242. $as_echo_n "(cached) " >&6
  9243. else
  9244. if test -n "$ac_ct_OTOOL64"; then
  9245. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  9246. else
  9247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9248. for as_dir in $PATH
  9249. do
  9250. IFS=$as_save_IFS
  9251. test -z "$as_dir" && as_dir=.
  9252. for ac_exec_ext in '' $ac_executable_extensions; do
  9253. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9254. ac_cv_prog_ac_ct_OTOOL64="otool64"
  9255. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9256. break 2
  9257. fi
  9258. done
  9259. done
  9260. IFS=$as_save_IFS
  9261. fi
  9262. fi
  9263. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  9264. if test -n "$ac_ct_OTOOL64"; then
  9265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  9266. $as_echo "$ac_ct_OTOOL64" >&6; }
  9267. else
  9268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9269. $as_echo "no" >&6; }
  9270. fi
  9271. if test "x$ac_ct_OTOOL64" = x; then
  9272. OTOOL64=":"
  9273. else
  9274. case $cross_compiling:$ac_tool_warned in
  9275. yes:)
  9276. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9277. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9278. ac_tool_warned=yes ;;
  9279. esac
  9280. OTOOL64=$ac_ct_OTOOL64
  9281. fi
  9282. else
  9283. OTOOL64="$ac_cv_prog_OTOOL64"
  9284. fi
  9285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  9286. $as_echo_n "checking for -single_module linker flag... " >&6; }
  9287. if ${lt_cv_apple_cc_single_mod+:} false; then :
  9288. $as_echo_n "(cached) " >&6
  9289. else
  9290. lt_cv_apple_cc_single_mod=no
  9291. if test -z "${LT_MULTI_MODULE}"; then
  9292. # By default we will add the -single_module flag. You can override
  9293. # by either setting the environment variable LT_MULTI_MODULE
  9294. # non-empty at configure time, or by adding -multi_module to the
  9295. # link flags.
  9296. rm -rf libconftest.dylib*
  9297. echo "int foo(void){return 1;}" > conftest.c
  9298. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9299. -dynamiclib -Wl,-single_module conftest.c" >&5
  9300. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9301. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  9302. _lt_result=$?
  9303. # If there is a non-empty error log, and "single_module"
  9304. # appears in it, assume the flag caused a linker warning
  9305. if test -s conftest.err && $GREP single_module conftest.err; then
  9306. cat conftest.err >&5
  9307. # Otherwise, if the output was created with a 0 exit code from
  9308. # the compiler, it worked.
  9309. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  9310. lt_cv_apple_cc_single_mod=yes
  9311. else
  9312. cat conftest.err >&5
  9313. fi
  9314. rm -rf libconftest.dylib*
  9315. rm -f conftest.*
  9316. fi
  9317. fi
  9318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  9319. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  9320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  9321. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  9322. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  9323. $as_echo_n "(cached) " >&6
  9324. else
  9325. lt_cv_ld_exported_symbols_list=no
  9326. save_LDFLAGS=$LDFLAGS
  9327. echo "_main" > conftest.sym
  9328. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  9329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9330. /* end confdefs.h. */
  9331. int main (void)
  9332. {
  9333. ;
  9334. return 0;
  9335. }
  9336. _ACEOF
  9337. if ac_fn_c_try_link "$LINENO"; then :
  9338. lt_cv_ld_exported_symbols_list=yes
  9339. else
  9340. lt_cv_ld_exported_symbols_list=no
  9341. fi
  9342. rm -f core conftest.err conftest.$ac_objext \
  9343. conftest$ac_exeext conftest.$ac_ext
  9344. LDFLAGS="$save_LDFLAGS"
  9345. fi
  9346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  9347. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  9348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  9349. $as_echo_n "checking for -force_load linker flag... " >&6; }
  9350. if ${lt_cv_ld_force_load+:} false; then :
  9351. $as_echo_n "(cached) " >&6
  9352. else
  9353. lt_cv_ld_force_load=no
  9354. cat > conftest.c << _LT_EOF
  9355. int forced_loaded() { return 2;}
  9356. _LT_EOF
  9357. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  9358. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  9359. echo "$AR cru libconftest.a conftest.o" >&5
  9360. $AR cru libconftest.a conftest.o 2>&5
  9361. echo "$RANLIB libconftest.a" >&5
  9362. $RANLIB libconftest.a 2>&5
  9363. cat > conftest.c << _LT_EOF
  9364. int main() { return 0;}
  9365. _LT_EOF
  9366. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  9367. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  9368. _lt_result=$?
  9369. if test -s conftest.err && $GREP force_load conftest.err; then
  9370. cat conftest.err >&5
  9371. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  9372. lt_cv_ld_force_load=yes
  9373. else
  9374. cat conftest.err >&5
  9375. fi
  9376. rm -f conftest.err libconftest.a conftest conftest.c
  9377. rm -rf conftest.dSYM
  9378. fi
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  9380. $as_echo "$lt_cv_ld_force_load" >&6; }
  9381. case $host_os in
  9382. rhapsody* | darwin1.[012])
  9383. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  9384. darwin1.*)
  9385. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9386. darwin*) # darwin 5.x on
  9387. # if running on 10.5 or later, the deployment target defaults
  9388. # to the OS version, if on x86, and 10.4, the deployment
  9389. # target defaults to 10.4. Don't you love it?
  9390. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9391. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  9392. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9393. 10.[012]*)
  9394. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9395. 10.*)
  9396. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9397. esac
  9398. ;;
  9399. esac
  9400. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  9401. _lt_dar_single_mod='$single_module'
  9402. fi
  9403. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  9404. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  9405. else
  9406. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9407. fi
  9408. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  9409. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9410. else
  9411. _lt_dsymutil=
  9412. fi
  9413. ;;
  9414. esac
  9415. for ac_header in dlfcn.h
  9416. do :
  9417. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9418. "
  9419. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9420. cat >>confdefs.h <<_ACEOF
  9421. #define HAVE_DLFCN_H 1
  9422. _ACEOF
  9423. fi
  9424. done
  9425. # ------------------------------------ #
  9426. # Determine libtool default behavior #
  9427. # ------------------------------------ #
  9428. #
  9429. # Default behavior is to enable shared and static libraries on systems
  9430. # where libtool knows how to build both library versions, and does not
  9431. # require separate configuration and build runs for each flavor.
  9432. #
  9433. xc_lt_want_enable_shared='yes'
  9434. xc_lt_want_enable_static='yes'
  9435. #
  9436. # User may have disabled shared or static libraries.
  9437. #
  9438. case "x$enable_shared" in # (
  9439. xno)
  9440. xc_lt_want_enable_shared='no'
  9441. ;;
  9442. esac
  9443. case "x$enable_static" in # (
  9444. xno)
  9445. xc_lt_want_enable_static='no'
  9446. ;;
  9447. esac
  9448. if test "x$xc_lt_want_enable_shared" = 'xno' &&
  9449. test "x$xc_lt_want_enable_static" = 'xno'; then
  9450. as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
  9451. fi
  9452. #
  9453. # Default behavior on systems that require independent configuration
  9454. # and build runs for shared and static is to enable shared libraries
  9455. # and disable static ones. On these systems option '--disable-shared'
  9456. # must be used in order to build a proper static library.
  9457. #
  9458. if test "x$xc_lt_want_enable_shared" = 'xyes' &&
  9459. test "x$xc_lt_want_enable_static" = 'xyes'; then
  9460. case $host_os in # (
  9461. mingw* | pw32* | cegcc* | os2* | aix*)
  9462. xc_lt_want_enable_static='no'
  9463. ;;
  9464. esac
  9465. fi
  9466. #
  9467. # Make libtool aware of current shared and static library preferences
  9468. # taking in account that, depending on host characteristics, libtool
  9469. # may modify these option preferences later in this configure script.
  9470. #
  9471. enable_shared=$xc_lt_want_enable_shared
  9472. enable_static=$xc_lt_want_enable_static
  9473. #
  9474. # Default behavior is to build PIC objects for shared libraries and
  9475. # non-PIC objects for static libraries.
  9476. #
  9477. xc_lt_want_with_pic='default'
  9478. #
  9479. # User may have specified PIC preference.
  9480. #
  9481. case "x$with_pic" in # ((
  9482. xno)
  9483. xc_lt_want_with_pic='no'
  9484. ;;
  9485. xyes)
  9486. xc_lt_want_with_pic='yes'
  9487. ;;
  9488. esac
  9489. #
  9490. # Default behavior on some systems where building a shared library out
  9491. # of non-PIC compiled objects will fail with following linker error
  9492. # "relocation R_X86_64_32 can not be used when making a shared object"
  9493. # is to build PIC objects even for static libraries. This behavior may
  9494. # be overriden using 'configure --disable-shared --without-pic'.
  9495. #
  9496. if test "x$xc_lt_want_with_pic" = 'xdefault'; then
  9497. case $host_cpu in # (
  9498. x86_64 | amd64 | ia64)
  9499. case $host_os in # (
  9500. linux* | freebsd*)
  9501. xc_lt_want_with_pic='yes'
  9502. ;;
  9503. esac
  9504. ;;
  9505. esac
  9506. fi
  9507. #
  9508. # Make libtool aware of current PIC preference taking in account that,
  9509. # depending on host characteristics, libtool may modify PIC default
  9510. # behavior to fit host system idiosyncrasies later in this script.
  9511. #
  9512. with_pic=$xc_lt_want_with_pic
  9513. ## ----------------------- ##
  9514. ## Start of libtool code ##
  9515. ## ----------------------- ##
  9516. # Set options
  9517. enable_win32_dll=yes
  9518. case $host in
  9519. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  9520. if test -n "$ac_tool_prefix"; then
  9521. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  9522. set dummy ${ac_tool_prefix}as; ac_word=$2
  9523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9524. $as_echo_n "checking for $ac_word... " >&6; }
  9525. if ${ac_cv_prog_AS+:} false; then :
  9526. $as_echo_n "(cached) " >&6
  9527. else
  9528. if test -n "$AS"; then
  9529. ac_cv_prog_AS="$AS" # Let the user override the test.
  9530. else
  9531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9532. for as_dir in $PATH
  9533. do
  9534. IFS=$as_save_IFS
  9535. test -z "$as_dir" && as_dir=.
  9536. for ac_exec_ext in '' $ac_executable_extensions; do
  9537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9538. ac_cv_prog_AS="${ac_tool_prefix}as"
  9539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9540. break 2
  9541. fi
  9542. done
  9543. done
  9544. IFS=$as_save_IFS
  9545. fi
  9546. fi
  9547. AS=$ac_cv_prog_AS
  9548. if test -n "$AS"; then
  9549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  9550. $as_echo "$AS" >&6; }
  9551. else
  9552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9553. $as_echo "no" >&6; }
  9554. fi
  9555. fi
  9556. if test -z "$ac_cv_prog_AS"; then
  9557. ac_ct_AS=$AS
  9558. # Extract the first word of "as", so it can be a program name with args.
  9559. set dummy as; ac_word=$2
  9560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9561. $as_echo_n "checking for $ac_word... " >&6; }
  9562. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  9563. $as_echo_n "(cached) " >&6
  9564. else
  9565. if test -n "$ac_ct_AS"; then
  9566. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  9567. else
  9568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9569. for as_dir in $PATH
  9570. do
  9571. IFS=$as_save_IFS
  9572. test -z "$as_dir" && as_dir=.
  9573. for ac_exec_ext in '' $ac_executable_extensions; do
  9574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9575. ac_cv_prog_ac_ct_AS="as"
  9576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9577. break 2
  9578. fi
  9579. done
  9580. done
  9581. IFS=$as_save_IFS
  9582. fi
  9583. fi
  9584. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  9585. if test -n "$ac_ct_AS"; then
  9586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  9587. $as_echo "$ac_ct_AS" >&6; }
  9588. else
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9590. $as_echo "no" >&6; }
  9591. fi
  9592. if test "x$ac_ct_AS" = x; then
  9593. AS="false"
  9594. else
  9595. case $cross_compiling:$ac_tool_warned in
  9596. yes:)
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9598. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9599. ac_tool_warned=yes ;;
  9600. esac
  9601. AS=$ac_ct_AS
  9602. fi
  9603. else
  9604. AS="$ac_cv_prog_AS"
  9605. fi
  9606. if test -n "$ac_tool_prefix"; then
  9607. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  9608. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  9609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9610. $as_echo_n "checking for $ac_word... " >&6; }
  9611. if ${ac_cv_prog_DLLTOOL+:} false; then :
  9612. $as_echo_n "(cached) " >&6
  9613. else
  9614. if test -n "$DLLTOOL"; then
  9615. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  9616. else
  9617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9618. for as_dir in $PATH
  9619. do
  9620. IFS=$as_save_IFS
  9621. test -z "$as_dir" && as_dir=.
  9622. for ac_exec_ext in '' $ac_executable_extensions; do
  9623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9624. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  9625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9626. break 2
  9627. fi
  9628. done
  9629. done
  9630. IFS=$as_save_IFS
  9631. fi
  9632. fi
  9633. DLLTOOL=$ac_cv_prog_DLLTOOL
  9634. if test -n "$DLLTOOL"; then
  9635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  9636. $as_echo "$DLLTOOL" >&6; }
  9637. else
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9639. $as_echo "no" >&6; }
  9640. fi
  9641. fi
  9642. if test -z "$ac_cv_prog_DLLTOOL"; then
  9643. ac_ct_DLLTOOL=$DLLTOOL
  9644. # Extract the first word of "dlltool", so it can be a program name with args.
  9645. set dummy dlltool; ac_word=$2
  9646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9647. $as_echo_n "checking for $ac_word... " >&6; }
  9648. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  9649. $as_echo_n "(cached) " >&6
  9650. else
  9651. if test -n "$ac_ct_DLLTOOL"; then
  9652. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  9653. else
  9654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9655. for as_dir in $PATH
  9656. do
  9657. IFS=$as_save_IFS
  9658. test -z "$as_dir" && as_dir=.
  9659. for ac_exec_ext in '' $ac_executable_extensions; do
  9660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9661. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  9662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9663. break 2
  9664. fi
  9665. done
  9666. done
  9667. IFS=$as_save_IFS
  9668. fi
  9669. fi
  9670. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  9671. if test -n "$ac_ct_DLLTOOL"; then
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  9673. $as_echo "$ac_ct_DLLTOOL" >&6; }
  9674. else
  9675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9676. $as_echo "no" >&6; }
  9677. fi
  9678. if test "x$ac_ct_DLLTOOL" = x; then
  9679. DLLTOOL="false"
  9680. else
  9681. case $cross_compiling:$ac_tool_warned in
  9682. yes:)
  9683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9685. ac_tool_warned=yes ;;
  9686. esac
  9687. DLLTOOL=$ac_ct_DLLTOOL
  9688. fi
  9689. else
  9690. DLLTOOL="$ac_cv_prog_DLLTOOL"
  9691. fi
  9692. if test -n "$ac_tool_prefix"; then
  9693. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  9694. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  9695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9696. $as_echo_n "checking for $ac_word... " >&6; }
  9697. if ${ac_cv_prog_OBJDUMP+:} false; then :
  9698. $as_echo_n "(cached) " >&6
  9699. else
  9700. if test -n "$OBJDUMP"; then
  9701. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9702. else
  9703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9704. for as_dir in $PATH
  9705. do
  9706. IFS=$as_save_IFS
  9707. test -z "$as_dir" && as_dir=.
  9708. for ac_exec_ext in '' $ac_executable_extensions; do
  9709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9710. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  9711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9712. break 2
  9713. fi
  9714. done
  9715. done
  9716. IFS=$as_save_IFS
  9717. fi
  9718. fi
  9719. OBJDUMP=$ac_cv_prog_OBJDUMP
  9720. if test -n "$OBJDUMP"; then
  9721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9722. $as_echo "$OBJDUMP" >&6; }
  9723. else
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9725. $as_echo "no" >&6; }
  9726. fi
  9727. fi
  9728. if test -z "$ac_cv_prog_OBJDUMP"; then
  9729. ac_ct_OBJDUMP=$OBJDUMP
  9730. # Extract the first word of "objdump", so it can be a program name with args.
  9731. set dummy objdump; ac_word=$2
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9733. $as_echo_n "checking for $ac_word... " >&6; }
  9734. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  9735. $as_echo_n "(cached) " >&6
  9736. else
  9737. if test -n "$ac_ct_OBJDUMP"; then
  9738. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  9739. else
  9740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9741. for as_dir in $PATH
  9742. do
  9743. IFS=$as_save_IFS
  9744. test -z "$as_dir" && as_dir=.
  9745. for ac_exec_ext in '' $ac_executable_extensions; do
  9746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9747. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  9748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9749. break 2
  9750. fi
  9751. done
  9752. done
  9753. IFS=$as_save_IFS
  9754. fi
  9755. fi
  9756. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  9757. if test -n "$ac_ct_OBJDUMP"; then
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  9759. $as_echo "$ac_ct_OBJDUMP" >&6; }
  9760. else
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9762. $as_echo "no" >&6; }
  9763. fi
  9764. if test "x$ac_ct_OBJDUMP" = x; then
  9765. OBJDUMP="false"
  9766. else
  9767. case $cross_compiling:$ac_tool_warned in
  9768. yes:)
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9770. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9771. ac_tool_warned=yes ;;
  9772. esac
  9773. OBJDUMP=$ac_ct_OBJDUMP
  9774. fi
  9775. else
  9776. OBJDUMP="$ac_cv_prog_OBJDUMP"
  9777. fi
  9778. ;;
  9779. esac
  9780. test -z "$AS" && AS=as
  9781. test -z "$DLLTOOL" && DLLTOOL=dlltool
  9782. test -z "$OBJDUMP" && OBJDUMP=objdump
  9783. enable_dlopen=no
  9784. # Check whether --enable-shared was given.
  9785. if test "${enable_shared+set}" = set; then :
  9786. enableval=$enable_shared; p=${PACKAGE-default}
  9787. case $enableval in
  9788. yes) enable_shared=yes ;;
  9789. no) enable_shared=no ;;
  9790. *)
  9791. enable_shared=no
  9792. # Look at the argument we got. We use all the common list separators.
  9793. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9794. for pkg in $enableval; do
  9795. IFS="$lt_save_ifs"
  9796. if test "X$pkg" = "X$p"; then
  9797. enable_shared=yes
  9798. fi
  9799. done
  9800. IFS="$lt_save_ifs"
  9801. ;;
  9802. esac
  9803. else
  9804. enable_shared=yes
  9805. fi
  9806. # Check whether --enable-static was given.
  9807. if test "${enable_static+set}" = set; then :
  9808. enableval=$enable_static; p=${PACKAGE-default}
  9809. case $enableval in
  9810. yes) enable_static=yes ;;
  9811. no) enable_static=no ;;
  9812. *)
  9813. enable_static=no
  9814. # Look at the argument we got. We use all the common list separators.
  9815. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9816. for pkg in $enableval; do
  9817. IFS="$lt_save_ifs"
  9818. if test "X$pkg" = "X$p"; then
  9819. enable_static=yes
  9820. fi
  9821. done
  9822. IFS="$lt_save_ifs"
  9823. ;;
  9824. esac
  9825. else
  9826. enable_static=yes
  9827. fi
  9828. # Check whether --with-pic was given.
  9829. if test "${with_pic+set}" = set; then :
  9830. withval=$with_pic; lt_p=${PACKAGE-default}
  9831. case $withval in
  9832. yes|no) pic_mode=$withval ;;
  9833. *)
  9834. pic_mode=default
  9835. # Look at the argument we got. We use all the common list separators.
  9836. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9837. for lt_pkg in $withval; do
  9838. IFS="$lt_save_ifs"
  9839. if test "X$lt_pkg" = "X$lt_p"; then
  9840. pic_mode=yes
  9841. fi
  9842. done
  9843. IFS="$lt_save_ifs"
  9844. ;;
  9845. esac
  9846. else
  9847. pic_mode=default
  9848. fi
  9849. test -z "$pic_mode" && pic_mode=default
  9850. # Check whether --enable-fast-install was given.
  9851. if test "${enable_fast_install+set}" = set; then :
  9852. enableval=$enable_fast_install; p=${PACKAGE-default}
  9853. case $enableval in
  9854. yes) enable_fast_install=yes ;;
  9855. no) enable_fast_install=no ;;
  9856. *)
  9857. enable_fast_install=no
  9858. # Look at the argument we got. We use all the common list separators.
  9859. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9860. for pkg in $enableval; do
  9861. IFS="$lt_save_ifs"
  9862. if test "X$pkg" = "X$p"; then
  9863. enable_fast_install=yes
  9864. fi
  9865. done
  9866. IFS="$lt_save_ifs"
  9867. ;;
  9868. esac
  9869. else
  9870. enable_fast_install=yes
  9871. fi
  9872. # This can be used to rebuild libtool when needed
  9873. LIBTOOL_DEPS="$ltmain"
  9874. # Always use our own libtool.
  9875. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9876. test -z "$LN_S" && LN_S="ln -s"
  9877. if test -n "${ZSH_VERSION+set}" ; then
  9878. setopt NO_GLOB_SUBST
  9879. fi
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9881. $as_echo_n "checking for objdir... " >&6; }
  9882. if ${lt_cv_objdir+:} false; then :
  9883. $as_echo_n "(cached) " >&6
  9884. else
  9885. rm -f .libs 2>/dev/null
  9886. mkdir .libs 2>/dev/null
  9887. if test -d .libs; then
  9888. lt_cv_objdir=.libs
  9889. else
  9890. # MS-DOS does not allow filenames that begin with a dot.
  9891. lt_cv_objdir=_libs
  9892. fi
  9893. rmdir .libs 2>/dev/null
  9894. fi
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9896. $as_echo "$lt_cv_objdir" >&6; }
  9897. objdir=$lt_cv_objdir
  9898. cat >>confdefs.h <<_ACEOF
  9899. #define LT_OBJDIR "$lt_cv_objdir/"
  9900. _ACEOF
  9901. case $host_os in
  9902. aix3*)
  9903. # AIX sometimes has problems with the GCC collect2 program. For some
  9904. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9905. # vanish in a puff of smoke.
  9906. if test "X${COLLECT_NAMES+set}" != Xset; then
  9907. COLLECT_NAMES=
  9908. export COLLECT_NAMES
  9909. fi
  9910. ;;
  9911. esac
  9912. # Global variables:
  9913. ofile=libtool
  9914. can_build_shared=yes
  9915. # All known linkers require a `.a' archive for static linking (except MSVC,
  9916. # which needs '.lib').
  9917. libext=a
  9918. with_gnu_ld="$lt_cv_prog_gnu_ld"
  9919. old_CC="$CC"
  9920. old_CFLAGS="$CFLAGS"
  9921. # Set sane defaults for various variables
  9922. test -z "$CC" && CC=cc
  9923. test -z "$LTCC" && LTCC=$CC
  9924. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9925. test -z "$LD" && LD=ld
  9926. test -z "$ac_objext" && ac_objext=o
  9927. for cc_temp in $compiler""; do
  9928. case $cc_temp in
  9929. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9930. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9931. \-*) ;;
  9932. *) break;;
  9933. esac
  9934. done
  9935. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9936. # Only perform the check for file, if the check method requires it
  9937. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9938. case $deplibs_check_method in
  9939. file_magic*)
  9940. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9942. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9943. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9944. $as_echo_n "(cached) " >&6
  9945. else
  9946. case $MAGIC_CMD in
  9947. [\\/*] | ?:[\\/]*)
  9948. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9949. ;;
  9950. *)
  9951. lt_save_MAGIC_CMD="$MAGIC_CMD"
  9952. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9953. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9954. for ac_dir in $ac_dummy; do
  9955. IFS="$lt_save_ifs"
  9956. test -z "$ac_dir" && ac_dir=.
  9957. if test -f $ac_dir/${ac_tool_prefix}file; then
  9958. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  9959. if test -n "$file_magic_test_file"; then
  9960. case $deplibs_check_method in
  9961. "file_magic "*)
  9962. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9963. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9964. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9965. $EGREP "$file_magic_regex" > /dev/null; then
  9966. :
  9967. else
  9968. cat <<_LT_EOF 1>&2
  9969. *** Warning: the command libtool uses to detect shared libraries,
  9970. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9971. *** The result is that libtool may fail to recognize shared libraries
  9972. *** as such. This will affect the creation of libtool libraries that
  9973. *** depend on shared libraries, but programs linked with such libtool
  9974. *** libraries will work regardless of this problem. Nevertheless, you
  9975. *** may want to report the problem to your system manager and/or to
  9976. *** bug-libtool@gnu.org
  9977. _LT_EOF
  9978. fi ;;
  9979. esac
  9980. fi
  9981. break
  9982. fi
  9983. done
  9984. IFS="$lt_save_ifs"
  9985. MAGIC_CMD="$lt_save_MAGIC_CMD"
  9986. ;;
  9987. esac
  9988. fi
  9989. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9990. if test -n "$MAGIC_CMD"; then
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9992. $as_echo "$MAGIC_CMD" >&6; }
  9993. else
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9995. $as_echo "no" >&6; }
  9996. fi
  9997. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9998. if test -n "$ac_tool_prefix"; then
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  10000. $as_echo_n "checking for file... " >&6; }
  10001. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  10002. $as_echo_n "(cached) " >&6
  10003. else
  10004. case $MAGIC_CMD in
  10005. [\\/*] | ?:[\\/]*)
  10006. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  10007. ;;
  10008. *)
  10009. lt_save_MAGIC_CMD="$MAGIC_CMD"
  10010. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10011. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  10012. for ac_dir in $ac_dummy; do
  10013. IFS="$lt_save_ifs"
  10014. test -z "$ac_dir" && ac_dir=.
  10015. if test -f $ac_dir/file; then
  10016. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  10017. if test -n "$file_magic_test_file"; then
  10018. case $deplibs_check_method in
  10019. "file_magic "*)
  10020. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10021. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  10022. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10023. $EGREP "$file_magic_regex" > /dev/null; then
  10024. :
  10025. else
  10026. cat <<_LT_EOF 1>&2
  10027. *** Warning: the command libtool uses to detect shared libraries,
  10028. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10029. *** The result is that libtool may fail to recognize shared libraries
  10030. *** as such. This will affect the creation of libtool libraries that
  10031. *** depend on shared libraries, but programs linked with such libtool
  10032. *** libraries will work regardless of this problem. Nevertheless, you
  10033. *** may want to report the problem to your system manager and/or to
  10034. *** bug-libtool@gnu.org
  10035. _LT_EOF
  10036. fi ;;
  10037. esac
  10038. fi
  10039. break
  10040. fi
  10041. done
  10042. IFS="$lt_save_ifs"
  10043. MAGIC_CMD="$lt_save_MAGIC_CMD"
  10044. ;;
  10045. esac
  10046. fi
  10047. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  10048. if test -n "$MAGIC_CMD"; then
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10050. $as_echo "$MAGIC_CMD" >&6; }
  10051. else
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10053. $as_echo "no" >&6; }
  10054. fi
  10055. else
  10056. MAGIC_CMD=:
  10057. fi
  10058. fi
  10059. fi
  10060. ;;
  10061. esac
  10062. # Use C for the default configuration in the libtool script
  10063. lt_save_CC="$CC"
  10064. ac_ext=c
  10065. ac_cpp='$CPP $CPPFLAGS'
  10066. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10067. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10068. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10069. # Source file extension for C test sources.
  10070. ac_ext=c
  10071. # Object file extension for compiled C test sources.
  10072. objext=o
  10073. objext=$objext
  10074. # Code to be used in simple compile tests
  10075. lt_simple_compile_test_code="int some_variable = 0;"
  10076. # Code to be used in simple link tests
  10077. lt_simple_link_test_code='int main(){return(0);}'
  10078. # If no C compiler was specified, use CC.
  10079. LTCC=${LTCC-"$CC"}
  10080. # If no C compiler flags were specified, use CFLAGS.
  10081. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10082. # Allow CC to be a program name with arguments.
  10083. compiler=$CC
  10084. # Save the default compiler, since it gets overwritten when the other
  10085. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  10086. compiler_DEFAULT=$CC
  10087. # save warnings/boilerplate of simple test code
  10088. ac_outfile=conftest.$ac_objext
  10089. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10090. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10091. _lt_compiler_boilerplate=`cat conftest.err`
  10092. $RM conftest*
  10093. ac_outfile=conftest.$ac_objext
  10094. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10095. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10096. _lt_linker_boilerplate=`cat conftest.err`
  10097. $RM -r conftest*
  10098. ## CAVEAT EMPTOR:
  10099. ## There is no encapsulation within the following macros, do not change
  10100. ## the running order or otherwise move them around unless you know exactly
  10101. ## what you are doing...
  10102. if test -n "$compiler"; then
  10103. lt_prog_compiler_no_builtin_flag=
  10104. if test "$GCC" = yes; then
  10105. case $cc_basename in
  10106. nvcc*)
  10107. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  10108. *)
  10109. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  10110. esac
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10112. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10113. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  10114. $as_echo_n "(cached) " >&6
  10115. else
  10116. lt_cv_prog_compiler_rtti_exceptions=no
  10117. ac_outfile=conftest.$ac_objext
  10118. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10119. lt_compiler_flag="-fno-rtti -fno-exceptions"
  10120. # Insert the option either (1) after the last *FLAGS variable, or
  10121. # (2) before a word containing "conftest.", or (3) at the end.
  10122. # Note that $ac_compile itself does not contain backslashes and begins
  10123. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10124. # The option is referenced via a variable to avoid confusing sed.
  10125. lt_compile=`echo "$ac_compile" | $SED \
  10126. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10127. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10128. -e 's:$: $lt_compiler_flag:'`
  10129. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10130. (eval "$lt_compile" 2>conftest.err)
  10131. ac_status=$?
  10132. cat conftest.err >&5
  10133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10134. if (exit $ac_status) && test -s "$ac_outfile"; then
  10135. # The compiler can only warn and ignore the option if not recognized
  10136. # So say no if there are warnings other than the usual output.
  10137. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10138. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10139. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10140. lt_cv_prog_compiler_rtti_exceptions=yes
  10141. fi
  10142. fi
  10143. $RM conftest*
  10144. fi
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10146. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10147. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  10148. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  10149. else
  10150. :
  10151. fi
  10152. fi
  10153. lt_prog_compiler_wl=
  10154. lt_prog_compiler_pic=
  10155. lt_prog_compiler_static=
  10156. if test "$GCC" = yes; then
  10157. lt_prog_compiler_wl='-Wl,'
  10158. lt_prog_compiler_static='-static'
  10159. case $host_os in
  10160. aix*)
  10161. # All AIX code is PIC.
  10162. if test "$host_cpu" = ia64; then
  10163. # AIX 5 now supports IA64 processor
  10164. lt_prog_compiler_static='-Bstatic'
  10165. fi
  10166. ;;
  10167. amigaos*)
  10168. case $host_cpu in
  10169. powerpc)
  10170. # see comment about AmigaOS4 .so support
  10171. lt_prog_compiler_pic='-fPIC'
  10172. ;;
  10173. m68k)
  10174. # FIXME: we need at least 68020 code to build shared libraries, but
  10175. # adding the `-m68020' flag to GCC prevents building anything better,
  10176. # like `-m68040'.
  10177. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  10178. ;;
  10179. esac
  10180. ;;
  10181. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10182. # PIC is the default for these OSes.
  10183. ;;
  10184. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10185. # This hack is so that the source file can tell whether it is being
  10186. # built for inclusion in a dll (and should export symbols for example).
  10187. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10188. # (--disable-auto-import) libraries
  10189. lt_prog_compiler_pic='-DDLL_EXPORT'
  10190. ;;
  10191. darwin* | rhapsody*)
  10192. # PIC is the default on this platform
  10193. # Common symbols not allowed in MH_DYLIB files
  10194. lt_prog_compiler_pic='-fno-common'
  10195. ;;
  10196. haiku*)
  10197. # PIC is the default for Haiku.
  10198. # The "-static" flag exists, but is broken.
  10199. lt_prog_compiler_static=
  10200. ;;
  10201. hpux*)
  10202. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10203. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10204. # sets the default TLS model and affects inlining.
  10205. case $host_cpu in
  10206. hppa*64*)
  10207. # +Z the default
  10208. ;;
  10209. *)
  10210. lt_prog_compiler_pic='-fPIC'
  10211. ;;
  10212. esac
  10213. ;;
  10214. interix[3-9]*)
  10215. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10216. # Instead, we relocate shared libraries at runtime.
  10217. ;;
  10218. msdosdjgpp*)
  10219. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10220. # on systems that don't support them.
  10221. lt_prog_compiler_can_build_shared=no
  10222. enable_shared=no
  10223. ;;
  10224. *nto* | *qnx*)
  10225. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10226. # it will coredump.
  10227. lt_prog_compiler_pic='-fPIC -shared'
  10228. ;;
  10229. sysv4*MP*)
  10230. if test -d /usr/nec; then
  10231. lt_prog_compiler_pic=-Kconform_pic
  10232. fi
  10233. ;;
  10234. *)
  10235. lt_prog_compiler_pic='-fPIC'
  10236. ;;
  10237. esac
  10238. case $cc_basename in
  10239. nvcc*) # Cuda Compiler Driver 2.2
  10240. lt_prog_compiler_wl='-Xlinker '
  10241. if test -n "$lt_prog_compiler_pic"; then
  10242. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  10243. fi
  10244. ;;
  10245. esac
  10246. else
  10247. # PORTME Check for flag to pass linker flags through the system compiler.
  10248. case $host_os in
  10249. aix*)
  10250. lt_prog_compiler_wl='-Wl,'
  10251. if test "$host_cpu" = ia64; then
  10252. # AIX 5 now supports IA64 processor
  10253. lt_prog_compiler_static='-Bstatic'
  10254. else
  10255. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  10256. fi
  10257. ;;
  10258. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10259. # This hack is so that the source file can tell whether it is being
  10260. # built for inclusion in a dll (and should export symbols for example).
  10261. lt_prog_compiler_pic='-DDLL_EXPORT'
  10262. ;;
  10263. hpux9* | hpux10* | hpux11*)
  10264. lt_prog_compiler_wl='-Wl,'
  10265. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10266. # not for PA HP-UX.
  10267. case $host_cpu in
  10268. hppa*64*|ia64*)
  10269. # +Z the default
  10270. ;;
  10271. *)
  10272. lt_prog_compiler_pic='+Z'
  10273. ;;
  10274. esac
  10275. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10276. lt_prog_compiler_static='${wl}-a ${wl}archive'
  10277. ;;
  10278. irix5* | irix6* | nonstopux*)
  10279. lt_prog_compiler_wl='-Wl,'
  10280. # PIC (with -KPIC) is the default.
  10281. lt_prog_compiler_static='-non_shared'
  10282. ;;
  10283. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10284. case $cc_basename in
  10285. # old Intel for x86_64 which still supported -KPIC.
  10286. ecc*)
  10287. lt_prog_compiler_wl='-Wl,'
  10288. lt_prog_compiler_pic='-KPIC'
  10289. lt_prog_compiler_static='-static'
  10290. ;;
  10291. # icc used to be incompatible with GCC.
  10292. # ICC 10 doesn't accept -KPIC any more.
  10293. icc* | ifort*)
  10294. lt_prog_compiler_wl='-Wl,'
  10295. lt_prog_compiler_pic='-fPIC'
  10296. lt_prog_compiler_static='-static'
  10297. ;;
  10298. # Lahey Fortran 8.1.
  10299. lf95*)
  10300. lt_prog_compiler_wl='-Wl,'
  10301. lt_prog_compiler_pic='--shared'
  10302. lt_prog_compiler_static='--static'
  10303. ;;
  10304. nagfor*)
  10305. # NAG Fortran compiler
  10306. lt_prog_compiler_wl='-Wl,-Wl,,'
  10307. lt_prog_compiler_pic='-PIC'
  10308. lt_prog_compiler_static='-Bstatic'
  10309. ;;
  10310. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10311. # Portland Group compilers (*not* the Pentium gcc compiler,
  10312. # which looks to be a dead project)
  10313. lt_prog_compiler_wl='-Wl,'
  10314. lt_prog_compiler_pic='-fpic'
  10315. lt_prog_compiler_static='-Bstatic'
  10316. ;;
  10317. ccc*)
  10318. lt_prog_compiler_wl='-Wl,'
  10319. # All Alpha code is PIC.
  10320. lt_prog_compiler_static='-non_shared'
  10321. ;;
  10322. xl* | bgxl* | bgf* | mpixl*)
  10323. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10324. lt_prog_compiler_wl='-Wl,'
  10325. lt_prog_compiler_pic='-qpic'
  10326. lt_prog_compiler_static='-qstaticlink'
  10327. ;;
  10328. *)
  10329. case `$CC -V 2>&1 | sed 5q` in
  10330. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  10331. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10332. lt_prog_compiler_pic='-KPIC'
  10333. lt_prog_compiler_static='-Bstatic'
  10334. lt_prog_compiler_wl=''
  10335. ;;
  10336. *Sun\ F* | *Sun*Fortran*)
  10337. lt_prog_compiler_pic='-KPIC'
  10338. lt_prog_compiler_static='-Bstatic'
  10339. lt_prog_compiler_wl='-Qoption ld '
  10340. ;;
  10341. *Sun\ C*)
  10342. # Sun C 5.9
  10343. lt_prog_compiler_pic='-KPIC'
  10344. lt_prog_compiler_static='-Bstatic'
  10345. lt_prog_compiler_wl='-Wl,'
  10346. ;;
  10347. *Intel*\ [CF]*Compiler*)
  10348. lt_prog_compiler_wl='-Wl,'
  10349. lt_prog_compiler_pic='-fPIC'
  10350. lt_prog_compiler_static='-static'
  10351. ;;
  10352. *Portland\ Group*)
  10353. lt_prog_compiler_wl='-Wl,'
  10354. lt_prog_compiler_pic='-fpic'
  10355. lt_prog_compiler_static='-Bstatic'
  10356. ;;
  10357. esac
  10358. ;;
  10359. esac
  10360. ;;
  10361. newsos6)
  10362. lt_prog_compiler_pic='-KPIC'
  10363. lt_prog_compiler_static='-Bstatic'
  10364. ;;
  10365. *nto* | *qnx*)
  10366. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10367. # it will coredump.
  10368. lt_prog_compiler_pic='-fPIC -shared'
  10369. ;;
  10370. osf3* | osf4* | osf5*)
  10371. lt_prog_compiler_wl='-Wl,'
  10372. # All OSF/1 code is PIC.
  10373. lt_prog_compiler_static='-non_shared'
  10374. ;;
  10375. rdos*)
  10376. lt_prog_compiler_static='-non_shared'
  10377. ;;
  10378. solaris*)
  10379. lt_prog_compiler_pic='-KPIC'
  10380. lt_prog_compiler_static='-Bstatic'
  10381. case $cc_basename in
  10382. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  10383. lt_prog_compiler_wl='-Qoption ld ';;
  10384. *)
  10385. lt_prog_compiler_wl='-Wl,';;
  10386. esac
  10387. ;;
  10388. sunos4*)
  10389. lt_prog_compiler_wl='-Qoption ld '
  10390. lt_prog_compiler_pic='-PIC'
  10391. lt_prog_compiler_static='-Bstatic'
  10392. ;;
  10393. sysv4 | sysv4.2uw2* | sysv4.3*)
  10394. lt_prog_compiler_wl='-Wl,'
  10395. lt_prog_compiler_pic='-KPIC'
  10396. lt_prog_compiler_static='-Bstatic'
  10397. ;;
  10398. sysv4*MP*)
  10399. if test -d /usr/nec ;then
  10400. lt_prog_compiler_pic='-Kconform_pic'
  10401. lt_prog_compiler_static='-Bstatic'
  10402. fi
  10403. ;;
  10404. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10405. lt_prog_compiler_wl='-Wl,'
  10406. lt_prog_compiler_pic='-KPIC'
  10407. lt_prog_compiler_static='-Bstatic'
  10408. ;;
  10409. unicos*)
  10410. lt_prog_compiler_wl='-Wl,'
  10411. lt_prog_compiler_can_build_shared=no
  10412. ;;
  10413. uts4*)
  10414. lt_prog_compiler_pic='-pic'
  10415. lt_prog_compiler_static='-Bstatic'
  10416. ;;
  10417. *)
  10418. lt_prog_compiler_can_build_shared=no
  10419. ;;
  10420. esac
  10421. fi
  10422. case $host_os in
  10423. # For platforms which do not support PIC, -DPIC is meaningless:
  10424. *djgpp*)
  10425. lt_prog_compiler_pic=
  10426. ;;
  10427. *)
  10428. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  10429. ;;
  10430. esac
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10432. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10433. if ${lt_cv_prog_compiler_pic+:} false; then :
  10434. $as_echo_n "(cached) " >&6
  10435. else
  10436. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  10437. fi
  10438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  10439. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  10440. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  10441. #
  10442. # Check to make sure the PIC flag actually works.
  10443. #
  10444. if test -n "$lt_prog_compiler_pic"; then
  10445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  10446. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  10447. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  10448. $as_echo_n "(cached) " >&6
  10449. else
  10450. lt_cv_prog_compiler_pic_works=no
  10451. ac_outfile=conftest.$ac_objext
  10452. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10453. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  10454. # Insert the option either (1) after the last *FLAGS variable, or
  10455. # (2) before a word containing "conftest.", or (3) at the end.
  10456. # Note that $ac_compile itself does not contain backslashes and begins
  10457. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10458. # The option is referenced via a variable to avoid confusing sed.
  10459. lt_compile=`echo "$ac_compile" | $SED \
  10460. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10461. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10462. -e 's:$: $lt_compiler_flag:'`
  10463. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10464. (eval "$lt_compile" 2>conftest.err)
  10465. ac_status=$?
  10466. cat conftest.err >&5
  10467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10468. if (exit $ac_status) && test -s "$ac_outfile"; then
  10469. # The compiler can only warn and ignore the option if not recognized
  10470. # So say no if there are warnings other than the usual output.
  10471. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10472. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10473. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10474. lt_cv_prog_compiler_pic_works=yes
  10475. fi
  10476. fi
  10477. $RM conftest*
  10478. fi
  10479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  10480. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  10481. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  10482. case $lt_prog_compiler_pic in
  10483. "" | " "*) ;;
  10484. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  10485. esac
  10486. else
  10487. lt_prog_compiler_pic=
  10488. lt_prog_compiler_can_build_shared=no
  10489. fi
  10490. fi
  10491. #
  10492. # Check to make sure the static flag actually works.
  10493. #
  10494. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10496. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10497. if ${lt_cv_prog_compiler_static_works+:} false; then :
  10498. $as_echo_n "(cached) " >&6
  10499. else
  10500. lt_cv_prog_compiler_static_works=no
  10501. save_LDFLAGS="$LDFLAGS"
  10502. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10503. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10504. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10505. # The linker can only warn and ignore the option if not recognized
  10506. # So say no if there are warnings
  10507. if test -s conftest.err; then
  10508. # Append any errors to the config.log.
  10509. cat conftest.err 1>&5
  10510. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10511. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10512. if diff conftest.exp conftest.er2 >/dev/null; then
  10513. lt_cv_prog_compiler_static_works=yes
  10514. fi
  10515. else
  10516. lt_cv_prog_compiler_static_works=yes
  10517. fi
  10518. fi
  10519. $RM -r conftest*
  10520. LDFLAGS="$save_LDFLAGS"
  10521. fi
  10522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  10523. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  10524. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  10525. :
  10526. else
  10527. lt_prog_compiler_static=
  10528. fi
  10529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10530. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10531. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10532. $as_echo_n "(cached) " >&6
  10533. else
  10534. lt_cv_prog_compiler_c_o=no
  10535. $RM -r conftest 2>/dev/null
  10536. mkdir conftest
  10537. cd conftest
  10538. mkdir out
  10539. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10540. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10541. # Insert the option either (1) after the last *FLAGS variable, or
  10542. # (2) before a word containing "conftest.", or (3) at the end.
  10543. # Note that $ac_compile itself does not contain backslashes and begins
  10544. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10545. lt_compile=`echo "$ac_compile" | $SED \
  10546. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10547. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10548. -e 's:$: $lt_compiler_flag:'`
  10549. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10550. (eval "$lt_compile" 2>out/conftest.err)
  10551. ac_status=$?
  10552. cat out/conftest.err >&5
  10553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10554. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10555. then
  10556. # The compiler can only warn and ignore the option if not recognized
  10557. # So say no if there are warnings
  10558. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10559. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10560. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10561. lt_cv_prog_compiler_c_o=yes
  10562. fi
  10563. fi
  10564. chmod u+w . 2>&5
  10565. $RM conftest*
  10566. # SGI C++ compiler will create directory out/ii_files/ for
  10567. # template instantiation
  10568. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10569. $RM out/* && rmdir out
  10570. cd ..
  10571. $RM -r conftest
  10572. $RM conftest*
  10573. fi
  10574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10575. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10577. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10578. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10579. $as_echo_n "(cached) " >&6
  10580. else
  10581. lt_cv_prog_compiler_c_o=no
  10582. $RM -r conftest 2>/dev/null
  10583. mkdir conftest
  10584. cd conftest
  10585. mkdir out
  10586. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10587. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10588. # Insert the option either (1) after the last *FLAGS variable, or
  10589. # (2) before a word containing "conftest.", or (3) at the end.
  10590. # Note that $ac_compile itself does not contain backslashes and begins
  10591. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10592. lt_compile=`echo "$ac_compile" | $SED \
  10593. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10594. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10595. -e 's:$: $lt_compiler_flag:'`
  10596. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10597. (eval "$lt_compile" 2>out/conftest.err)
  10598. ac_status=$?
  10599. cat out/conftest.err >&5
  10600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10601. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10602. then
  10603. # The compiler can only warn and ignore the option if not recognized
  10604. # So say no if there are warnings
  10605. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10606. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10607. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10608. lt_cv_prog_compiler_c_o=yes
  10609. fi
  10610. fi
  10611. chmod u+w . 2>&5
  10612. $RM conftest*
  10613. # SGI C++ compiler will create directory out/ii_files/ for
  10614. # template instantiation
  10615. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10616. $RM out/* && rmdir out
  10617. cd ..
  10618. $RM -r conftest
  10619. $RM conftest*
  10620. fi
  10621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10622. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10623. hard_links="nottested"
  10624. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  10625. # do not overwrite the value of need_locks provided by the user
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10627. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10628. hard_links=yes
  10629. $RM conftest*
  10630. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10631. touch conftest.a
  10632. ln conftest.a conftest.b 2>&5 || hard_links=no
  10633. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10635. $as_echo "$hard_links" >&6; }
  10636. if test "$hard_links" = no; then
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10638. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10639. need_locks=warn
  10640. fi
  10641. else
  10642. need_locks=no
  10643. fi
  10644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10645. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10646. runpath_var=
  10647. allow_undefined_flag=
  10648. always_export_symbols=no
  10649. archive_cmds=
  10650. archive_expsym_cmds=
  10651. compiler_needs_object=no
  10652. enable_shared_with_static_runtimes=no
  10653. export_dynamic_flag_spec=
  10654. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10655. hardcode_automatic=no
  10656. hardcode_direct=no
  10657. hardcode_direct_absolute=no
  10658. hardcode_libdir_flag_spec=
  10659. hardcode_libdir_separator=
  10660. hardcode_minus_L=no
  10661. hardcode_shlibpath_var=unsupported
  10662. inherit_rpath=no
  10663. link_all_deplibs=unknown
  10664. module_cmds=
  10665. module_expsym_cmds=
  10666. old_archive_from_new_cmds=
  10667. old_archive_from_expsyms_cmds=
  10668. thread_safe_flag_spec=
  10669. whole_archive_flag_spec=
  10670. # include_expsyms should be a list of space-separated symbols to be *always*
  10671. # included in the symbol list
  10672. include_expsyms=
  10673. # exclude_expsyms can be an extended regexp of symbols to exclude
  10674. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  10675. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  10676. # as well as any symbol that contains `d'.
  10677. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10678. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10679. # platforms (ab)use it in PIC code, but their linkers get confused if
  10680. # the symbol is explicitly referenced. Since portable code cannot
  10681. # rely on this symbol name, it's probably fine to never include it in
  10682. # preloaded symbol tables.
  10683. # Exclude shared library initialization/finalization symbols.
  10684. extract_expsyms_cmds=
  10685. case $host_os in
  10686. cygwin* | mingw* | pw32* | cegcc*)
  10687. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10688. # When not using gcc, we currently assume that we are using
  10689. # Microsoft Visual C++.
  10690. if test "$GCC" != yes; then
  10691. with_gnu_ld=no
  10692. fi
  10693. ;;
  10694. interix*)
  10695. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10696. with_gnu_ld=yes
  10697. ;;
  10698. openbsd*)
  10699. with_gnu_ld=no
  10700. ;;
  10701. linux* | k*bsd*-gnu | gnu*)
  10702. link_all_deplibs=no
  10703. ;;
  10704. esac
  10705. ld_shlibs=yes
  10706. # On some targets, GNU ld is compatible enough with the native linker
  10707. # that we're better off using the native interface for both.
  10708. lt_use_gnu_ld_interface=no
  10709. if test "$with_gnu_ld" = yes; then
  10710. case $host_os in
  10711. aix*)
  10712. # The AIX port of GNU ld has always aspired to compatibility
  10713. # with the native linker. However, as the warning in the GNU ld
  10714. # block says, versions before 2.19.5* couldn't really create working
  10715. # shared libraries, regardless of the interface used.
  10716. case `$LD -v 2>&1` in
  10717. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10718. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10719. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10720. *)
  10721. lt_use_gnu_ld_interface=yes
  10722. ;;
  10723. esac
  10724. ;;
  10725. *)
  10726. lt_use_gnu_ld_interface=yes
  10727. ;;
  10728. esac
  10729. fi
  10730. if test "$lt_use_gnu_ld_interface" = yes; then
  10731. # If archive_cmds runs LD, not CC, wlarc should be empty
  10732. wlarc='${wl}'
  10733. # Set some defaults for GNU ld with shared library support. These
  10734. # are reset later if shared libraries are not supported. Putting them
  10735. # here allows them to be overridden if necessary.
  10736. runpath_var=LD_RUN_PATH
  10737. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10738. export_dynamic_flag_spec='${wl}--export-dynamic'
  10739. # ancient GNU ld didn't support --whole-archive et. al.
  10740. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10741. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10742. else
  10743. whole_archive_flag_spec=
  10744. fi
  10745. supports_anon_versioning=no
  10746. case `$LD -v 2>&1` in
  10747. *GNU\ gold*) supports_anon_versioning=yes ;;
  10748. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10749. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10750. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10751. *\ 2.11.*) ;; # other 2.11 versions
  10752. *) supports_anon_versioning=yes ;;
  10753. esac
  10754. # See if GNU ld supports shared libraries.
  10755. case $host_os in
  10756. aix[3-9]*)
  10757. # On AIX/PPC, the GNU linker is very broken
  10758. if test "$host_cpu" != ia64; then
  10759. ld_shlibs=no
  10760. cat <<_LT_EOF 1>&2
  10761. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10762. *** to be unable to reliably create shared libraries on AIX.
  10763. *** Therefore, libtool is disabling shared libraries support. If you
  10764. *** really care for shared libraries, you may want to install binutils
  10765. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10766. *** You will then need to restart the configuration process.
  10767. _LT_EOF
  10768. fi
  10769. ;;
  10770. amigaos*)
  10771. case $host_cpu in
  10772. powerpc)
  10773. # see comment about AmigaOS4 .so support
  10774. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10775. archive_expsym_cmds=''
  10776. ;;
  10777. m68k)
  10778. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  10779. hardcode_libdir_flag_spec='-L$libdir'
  10780. hardcode_minus_L=yes
  10781. ;;
  10782. esac
  10783. ;;
  10784. beos*)
  10785. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10786. allow_undefined_flag=unsupported
  10787. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10788. # support --undefined. This deserves some investigation. FIXME
  10789. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10790. else
  10791. ld_shlibs=no
  10792. fi
  10793. ;;
  10794. cygwin* | mingw* | pw32* | cegcc*)
  10795. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10796. # as there is no search path for DLLs.
  10797. hardcode_libdir_flag_spec='-L$libdir'
  10798. export_dynamic_flag_spec='${wl}--export-all-symbols'
  10799. allow_undefined_flag=unsupported
  10800. always_export_symbols=no
  10801. enable_shared_with_static_runtimes=yes
  10802. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  10803. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10804. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10805. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10806. # If the export-symbols file already is a .def file (1st line
  10807. # is EXPORTS), use it as is; otherwise, prepend...
  10808. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10809. cp $export_symbols $output_objdir/$soname.def;
  10810. else
  10811. echo EXPORTS > $output_objdir/$soname.def;
  10812. cat $export_symbols >> $output_objdir/$soname.def;
  10813. fi~
  10814. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10815. else
  10816. ld_shlibs=no
  10817. fi
  10818. ;;
  10819. haiku*)
  10820. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10821. link_all_deplibs=yes
  10822. ;;
  10823. interix[3-9]*)
  10824. hardcode_direct=no
  10825. hardcode_shlibpath_var=no
  10826. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10827. export_dynamic_flag_spec='${wl}-E'
  10828. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10829. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10830. # default) and relocated if they conflict, which is a slow very memory
  10831. # consuming and fragmenting process. To avoid this, we pick a random,
  10832. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10833. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10834. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10835. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10836. ;;
  10837. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10838. tmp_diet=no
  10839. if test "$host_os" = linux-dietlibc; then
  10840. case $cc_basename in
  10841. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10842. esac
  10843. fi
  10844. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10845. && test "$tmp_diet" = no
  10846. then
  10847. tmp_addflag=' $pic_flag'
  10848. tmp_sharedflag='-shared'
  10849. case $cc_basename,$host_cpu in
  10850. pgcc*) # Portland Group C compiler
  10851. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10852. tmp_addflag=' $pic_flag'
  10853. ;;
  10854. pgf77* | pgf90* | pgf95* | pgfortran*)
  10855. # Portland Group f77 and f90 compilers
  10856. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10857. tmp_addflag=' $pic_flag -Mnomain' ;;
  10858. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10859. tmp_addflag=' -i_dynamic' ;;
  10860. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10861. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10862. ifc* | ifort*) # Intel Fortran compiler
  10863. tmp_addflag=' -nofor_main' ;;
  10864. lf95*) # Lahey Fortran 8.1
  10865. whole_archive_flag_spec=
  10866. tmp_sharedflag='--shared' ;;
  10867. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10868. tmp_sharedflag='-qmkshrobj'
  10869. tmp_addflag= ;;
  10870. nvcc*) # Cuda Compiler Driver 2.2
  10871. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10872. compiler_needs_object=yes
  10873. ;;
  10874. esac
  10875. case `$CC -V 2>&1 | sed 5q` in
  10876. *Sun\ C*) # Sun C 5.9
  10877. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10878. compiler_needs_object=yes
  10879. tmp_sharedflag='-G' ;;
  10880. *Sun\ F*) # Sun Fortran 8.3
  10881. tmp_sharedflag='-G' ;;
  10882. esac
  10883. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10884. if test "x$supports_anon_versioning" = xyes; then
  10885. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10886. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10887. echo "local: *; };" >> $output_objdir/$libname.ver~
  10888. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10889. fi
  10890. case $cc_basename in
  10891. xlf* | bgf* | bgxlf* | mpixlf*)
  10892. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10893. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10894. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10895. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10896. if test "x$supports_anon_versioning" = xyes; then
  10897. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10898. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10899. echo "local: *; };" >> $output_objdir/$libname.ver~
  10900. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10901. fi
  10902. ;;
  10903. esac
  10904. else
  10905. ld_shlibs=no
  10906. fi
  10907. ;;
  10908. netbsd* | netbsdelf*-gnu)
  10909. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10910. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10911. wlarc=
  10912. else
  10913. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10914. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10915. fi
  10916. ;;
  10917. solaris*)
  10918. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10919. ld_shlibs=no
  10920. cat <<_LT_EOF 1>&2
  10921. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10922. *** create shared libraries on Solaris systems. Therefore, libtool
  10923. *** is disabling shared libraries support. We urge you to upgrade GNU
  10924. *** binutils to release 2.9.1 or newer. Another option is to modify
  10925. *** your PATH or compiler configuration so that the native linker is
  10926. *** used, and then restart.
  10927. _LT_EOF
  10928. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10929. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10930. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10931. else
  10932. ld_shlibs=no
  10933. fi
  10934. ;;
  10935. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10936. case `$LD -v 2>&1` in
  10937. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10938. ld_shlibs=no
  10939. cat <<_LT_EOF 1>&2
  10940. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  10941. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10942. *** is disabling shared libraries support. We urge you to upgrade GNU
  10943. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10944. *** your PATH or compiler configuration so that the native linker is
  10945. *** used, and then restart.
  10946. _LT_EOF
  10947. ;;
  10948. *)
  10949. # For security reasons, it is highly recommended that you always
  10950. # use absolute paths for naming shared libraries, and exclude the
  10951. # DT_RUNPATH tag from executables and libraries. But doing so
  10952. # requires that you compile everything twice, which is a pain.
  10953. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10954. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10955. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10956. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10957. else
  10958. ld_shlibs=no
  10959. fi
  10960. ;;
  10961. esac
  10962. ;;
  10963. sunos4*)
  10964. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10965. wlarc=
  10966. hardcode_direct=yes
  10967. hardcode_shlibpath_var=no
  10968. ;;
  10969. *)
  10970. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10971. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10972. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10973. else
  10974. ld_shlibs=no
  10975. fi
  10976. ;;
  10977. esac
  10978. if test "$ld_shlibs" = no; then
  10979. runpath_var=
  10980. hardcode_libdir_flag_spec=
  10981. export_dynamic_flag_spec=
  10982. whole_archive_flag_spec=
  10983. fi
  10984. else
  10985. # PORTME fill in a description of your system's linker (not GNU ld)
  10986. case $host_os in
  10987. aix3*)
  10988. allow_undefined_flag=unsupported
  10989. always_export_symbols=yes
  10990. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  10991. # Note: this linker hardcodes the directories in LIBPATH if there
  10992. # are no directories specified by -L.
  10993. hardcode_minus_L=yes
  10994. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  10995. # Neither direct hardcoding nor static linking is supported with a
  10996. # broken collect2.
  10997. hardcode_direct=unsupported
  10998. fi
  10999. ;;
  11000. aix[4-9]*)
  11001. if test "$host_cpu" = ia64; then
  11002. # On IA64, the linker does run time linking by default, so we don't
  11003. # have to do anything special.
  11004. aix_use_runtimelinking=no
  11005. exp_sym_flag='-Bexport'
  11006. no_entry_flag=""
  11007. else
  11008. # If we're using GNU nm, then we don't want the "-C" option.
  11009. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11010. # Also, AIX nm treats weak defined symbols like other global
  11011. # defined symbols, whereas GNU nm marks them as "W".
  11012. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11013. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11014. else
  11015. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11016. fi
  11017. aix_use_runtimelinking=no
  11018. # Test if we are trying to use run time linking or normal
  11019. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11020. # need to do runtime linking.
  11021. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11022. for ld_flag in $LDFLAGS; do
  11023. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11024. aix_use_runtimelinking=yes
  11025. break
  11026. fi
  11027. done
  11028. ;;
  11029. esac
  11030. exp_sym_flag='-bexport'
  11031. no_entry_flag='-bnoentry'
  11032. fi
  11033. # When large executables or shared objects are built, AIX ld can
  11034. # have problems creating the table of contents. If linking a library
  11035. # or program results in "error TOC overflow" add -mminimal-toc to
  11036. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11037. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11038. archive_cmds=''
  11039. hardcode_direct=yes
  11040. hardcode_direct_absolute=yes
  11041. hardcode_libdir_separator=':'
  11042. link_all_deplibs=yes
  11043. file_list_spec='${wl}-f,'
  11044. if test "$GCC" = yes; then
  11045. case $host_os in aix4.[012]|aix4.[012].*)
  11046. # We only want to do this on AIX 4.2 and lower, the check
  11047. # below for broken collect2 doesn't work under 4.3+
  11048. collect2name=`${CC} -print-prog-name=collect2`
  11049. if test -f "$collect2name" &&
  11050. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11051. then
  11052. # We have reworked collect2
  11053. :
  11054. else
  11055. # We have old collect2
  11056. hardcode_direct=unsupported
  11057. # It fails to find uninstalled libraries when the uninstalled
  11058. # path is not listed in the libpath. Setting hardcode_minus_L
  11059. # to unsupported forces relinking
  11060. hardcode_minus_L=yes
  11061. hardcode_libdir_flag_spec='-L$libdir'
  11062. hardcode_libdir_separator=
  11063. fi
  11064. ;;
  11065. esac
  11066. shared_flag='-shared'
  11067. if test "$aix_use_runtimelinking" = yes; then
  11068. shared_flag="$shared_flag "'${wl}-G'
  11069. fi
  11070. link_all_deplibs=no
  11071. else
  11072. # not using gcc
  11073. if test "$host_cpu" = ia64; then
  11074. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11075. # chokes on -Wl,-G. The following line is correct:
  11076. shared_flag='-G'
  11077. else
  11078. if test "$aix_use_runtimelinking" = yes; then
  11079. shared_flag='${wl}-G'
  11080. else
  11081. shared_flag='${wl}-bM:SRE'
  11082. fi
  11083. fi
  11084. fi
  11085. export_dynamic_flag_spec='${wl}-bexpall'
  11086. # It seems that -bexpall does not export symbols beginning with
  11087. # underscore (_), so it is better to generate a list of symbols to export.
  11088. always_export_symbols=yes
  11089. if test "$aix_use_runtimelinking" = yes; then
  11090. # Warning - without using the other runtime loading flags (-brtl),
  11091. # -berok will link without error, but may produce a broken library.
  11092. allow_undefined_flag='-berok'
  11093. # Determine the default libpath from the value encoded in an
  11094. # empty executable.
  11095. if test "${lt_cv_aix_libpath+set}" = set; then
  11096. aix_libpath=$lt_cv_aix_libpath
  11097. else
  11098. if ${lt_cv_aix_libpath_+:} false; then :
  11099. $as_echo_n "(cached) " >&6
  11100. else
  11101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11102. /* end confdefs.h. */
  11103. int main (void)
  11104. {
  11105. ;
  11106. return 0;
  11107. }
  11108. _ACEOF
  11109. if ac_fn_c_try_link "$LINENO"; then :
  11110. lt_aix_libpath_sed='
  11111. /Import File Strings/,/^$/ {
  11112. /^0/ {
  11113. s/^0 *\([^ ]*\) *$/\1/
  11114. p
  11115. }
  11116. }'
  11117. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11118. # Check for a 64-bit object if we didn't find anything.
  11119. if test -z "$lt_cv_aix_libpath_"; then
  11120. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11121. fi
  11122. fi
  11123. rm -f core conftest.err conftest.$ac_objext \
  11124. conftest$ac_exeext conftest.$ac_ext
  11125. if test -z "$lt_cv_aix_libpath_"; then
  11126. lt_cv_aix_libpath_="/usr/lib:/lib"
  11127. fi
  11128. fi
  11129. aix_libpath=$lt_cv_aix_libpath_
  11130. fi
  11131. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  11132. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11133. else
  11134. if test "$host_cpu" = ia64; then
  11135. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  11136. allow_undefined_flag="-z nodefs"
  11137. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  11138. else
  11139. # Determine the default libpath from the value encoded in an
  11140. # empty executable.
  11141. if test "${lt_cv_aix_libpath+set}" = set; then
  11142. aix_libpath=$lt_cv_aix_libpath
  11143. else
  11144. if ${lt_cv_aix_libpath_+:} false; then :
  11145. $as_echo_n "(cached) " >&6
  11146. else
  11147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11148. /* end confdefs.h. */
  11149. int main (void)
  11150. {
  11151. ;
  11152. return 0;
  11153. }
  11154. _ACEOF
  11155. if ac_fn_c_try_link "$LINENO"; then :
  11156. lt_aix_libpath_sed='
  11157. /Import File Strings/,/^$/ {
  11158. /^0/ {
  11159. s/^0 *\([^ ]*\) *$/\1/
  11160. p
  11161. }
  11162. }'
  11163. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11164. # Check for a 64-bit object if we didn't find anything.
  11165. if test -z "$lt_cv_aix_libpath_"; then
  11166. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11167. fi
  11168. fi
  11169. rm -f core conftest.err conftest.$ac_objext \
  11170. conftest$ac_exeext conftest.$ac_ext
  11171. if test -z "$lt_cv_aix_libpath_"; then
  11172. lt_cv_aix_libpath_="/usr/lib:/lib"
  11173. fi
  11174. fi
  11175. aix_libpath=$lt_cv_aix_libpath_
  11176. fi
  11177. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  11178. # Warning - without using the other run time loading flags,
  11179. # -berok will link without error, but may produce a broken library.
  11180. no_undefined_flag=' ${wl}-bernotok'
  11181. allow_undefined_flag=' ${wl}-berok'
  11182. if test "$with_gnu_ld" = yes; then
  11183. # We only use this code for GNU lds that support --whole-archive.
  11184. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11185. else
  11186. # Exported symbols can be pulled into shared objects from archives
  11187. whole_archive_flag_spec='$convenience'
  11188. fi
  11189. archive_cmds_need_lc=yes
  11190. # This is similar to how AIX traditionally builds its shared libraries.
  11191. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11192. fi
  11193. fi
  11194. ;;
  11195. amigaos*)
  11196. case $host_cpu in
  11197. powerpc)
  11198. # see comment about AmigaOS4 .so support
  11199. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11200. archive_expsym_cmds=''
  11201. ;;
  11202. m68k)
  11203. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  11204. hardcode_libdir_flag_spec='-L$libdir'
  11205. hardcode_minus_L=yes
  11206. ;;
  11207. esac
  11208. ;;
  11209. bsdi[45]*)
  11210. export_dynamic_flag_spec=-rdynamic
  11211. ;;
  11212. cygwin* | mingw* | pw32* | cegcc*)
  11213. # When not using gcc, we currently assume that we are using
  11214. # Microsoft Visual C++.
  11215. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11216. # no search path for DLLs.
  11217. case $cc_basename in
  11218. cl*)
  11219. # Native MSVC
  11220. hardcode_libdir_flag_spec=' '
  11221. allow_undefined_flag=unsupported
  11222. always_export_symbols=yes
  11223. file_list_spec='@'
  11224. # Tell ltmain to make .lib files, not .a files.
  11225. libext=lib
  11226. # Tell ltmain to make .dll files, not .so files.
  11227. shrext_cmds=".dll"
  11228. # FIXME: Setting linknames here is a bad hack.
  11229. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11230. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11231. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11232. else
  11233. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11234. fi~
  11235. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11236. linknames='
  11237. # The linker will not automatically build a static lib if we build a DLL.
  11238. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  11239. enable_shared_with_static_runtimes=yes
  11240. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  11241. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11242. # Don't use ranlib
  11243. old_postinstall_cmds='chmod 644 $oldlib'
  11244. postlink_cmds='lt_outputfile="@OUTPUT@"~
  11245. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11246. case $lt_outputfile in
  11247. *.exe|*.EXE) ;;
  11248. *)
  11249. lt_outputfile="$lt_outputfile.exe"
  11250. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11251. ;;
  11252. esac~
  11253. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11254. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11255. $RM "$lt_outputfile.manifest";
  11256. fi'
  11257. ;;
  11258. *)
  11259. # Assume MSVC wrapper
  11260. hardcode_libdir_flag_spec=' '
  11261. allow_undefined_flag=unsupported
  11262. # Tell ltmain to make .lib files, not .a files.
  11263. libext=lib
  11264. # Tell ltmain to make .dll files, not .so files.
  11265. shrext_cmds=".dll"
  11266. # FIXME: Setting linknames here is a bad hack.
  11267. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11268. # The linker will automatically build a .lib file if we build a DLL.
  11269. old_archive_from_new_cmds='true'
  11270. # FIXME: Should let the user specify the lib program.
  11271. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11272. enable_shared_with_static_runtimes=yes
  11273. ;;
  11274. esac
  11275. ;;
  11276. darwin* | rhapsody*)
  11277. archive_cmds_need_lc=no
  11278. hardcode_direct=no
  11279. hardcode_automatic=yes
  11280. hardcode_shlibpath_var=unsupported
  11281. if test "$lt_cv_ld_force_load" = "yes"; then
  11282. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11283. else
  11284. whole_archive_flag_spec=''
  11285. fi
  11286. link_all_deplibs=yes
  11287. allow_undefined_flag="$_lt_dar_allow_undefined"
  11288. case $cc_basename in
  11289. ifort*) _lt_dar_can_shared=yes ;;
  11290. *) _lt_dar_can_shared=$GCC ;;
  11291. esac
  11292. if test "$_lt_dar_can_shared" = "yes"; then
  11293. output_verbose_link_cmd=func_echo_all
  11294. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11295. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11296. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11297. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11298. else
  11299. ld_shlibs=no
  11300. fi
  11301. ;;
  11302. dgux*)
  11303. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11304. hardcode_libdir_flag_spec='-L$libdir'
  11305. hardcode_shlibpath_var=no
  11306. ;;
  11307. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11308. # support. Future versions do this automatically, but an explicit c++rt0.o
  11309. # does not break anything, and helps significantly (at the cost of a little
  11310. # extra space).
  11311. freebsd2.2*)
  11312. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11313. hardcode_libdir_flag_spec='-R$libdir'
  11314. hardcode_direct=yes
  11315. hardcode_shlibpath_var=no
  11316. ;;
  11317. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11318. freebsd2.*)
  11319. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11320. hardcode_direct=yes
  11321. hardcode_minus_L=yes
  11322. hardcode_shlibpath_var=no
  11323. ;;
  11324. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11325. freebsd* | dragonfly*)
  11326. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11327. hardcode_libdir_flag_spec='-R$libdir'
  11328. hardcode_direct=yes
  11329. hardcode_shlibpath_var=no
  11330. ;;
  11331. hpux9*)
  11332. if test "$GCC" = yes; then
  11333. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
  11334. else
  11335. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
  11336. fi
  11337. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  11338. hardcode_libdir_separator=:
  11339. hardcode_direct=yes
  11340. # hardcode_minus_L: Not really in the search PATH,
  11341. # but as the default location of the library.
  11342. hardcode_minus_L=yes
  11343. export_dynamic_flag_spec='${wl}-E'
  11344. ;;
  11345. hpux10*)
  11346. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11347. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11348. else
  11349. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11350. fi
  11351. if test "$with_gnu_ld" = no; then
  11352. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  11353. hardcode_libdir_separator=:
  11354. hardcode_direct=yes
  11355. hardcode_direct_absolute=yes
  11356. export_dynamic_flag_spec='${wl}-E'
  11357. # hardcode_minus_L: Not really in the search PATH,
  11358. # but as the default location of the library.
  11359. hardcode_minus_L=yes
  11360. fi
  11361. ;;
  11362. hpux11*)
  11363. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11364. case $host_cpu in
  11365. hppa*64*)
  11366. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11367. ;;
  11368. ia64*)
  11369. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11370. ;;
  11371. *)
  11372. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11373. ;;
  11374. esac
  11375. else
  11376. case $host_cpu in
  11377. hppa*64*)
  11378. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11379. ;;
  11380. ia64*)
  11381. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11382. ;;
  11383. *)
  11384. # Older versions of the 11.00 compiler do not understand -b yet
  11385. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  11386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  11387. $as_echo_n "checking if $CC understands -b... " >&6; }
  11388. if ${lt_cv_prog_compiler__b+:} false; then :
  11389. $as_echo_n "(cached) " >&6
  11390. else
  11391. lt_cv_prog_compiler__b=no
  11392. save_LDFLAGS="$LDFLAGS"
  11393. LDFLAGS="$LDFLAGS -b"
  11394. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11395. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11396. # The linker can only warn and ignore the option if not recognized
  11397. # So say no if there are warnings
  11398. if test -s conftest.err; then
  11399. # Append any errors to the config.log.
  11400. cat conftest.err 1>&5
  11401. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11402. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11403. if diff conftest.exp conftest.er2 >/dev/null; then
  11404. lt_cv_prog_compiler__b=yes
  11405. fi
  11406. else
  11407. lt_cv_prog_compiler__b=yes
  11408. fi
  11409. fi
  11410. $RM -r conftest*
  11411. LDFLAGS="$save_LDFLAGS"
  11412. fi
  11413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  11414. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  11415. if test x"$lt_cv_prog_compiler__b" = xyes; then
  11416. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11417. else
  11418. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11419. fi
  11420. ;;
  11421. esac
  11422. fi
  11423. if test "$with_gnu_ld" = no; then
  11424. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  11425. hardcode_libdir_separator=:
  11426. case $host_cpu in
  11427. hppa*64*|ia64*)
  11428. hardcode_direct=no
  11429. hardcode_shlibpath_var=no
  11430. ;;
  11431. *)
  11432. hardcode_direct=yes
  11433. hardcode_direct_absolute=yes
  11434. export_dynamic_flag_spec='${wl}-E'
  11435. # hardcode_minus_L: Not really in the search PATH,
  11436. # but as the default location of the library.
  11437. hardcode_minus_L=yes
  11438. ;;
  11439. esac
  11440. fi
  11441. ;;
  11442. irix5* | irix6* | nonstopux*)
  11443. if test "$GCC" = yes; then
  11444. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11445. # Try to use the -exported_symbol ld option, if it does not
  11446. # work, assume that -exports_file does not work either and
  11447. # implicitly export all symbols.
  11448. # This should be the same for all languages, so no per-tag cache variable.
  11449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  11450. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  11451. if ${lt_cv_irix_exported_symbol+:} false; then :
  11452. $as_echo_n "(cached) " >&6
  11453. else
  11454. save_LDFLAGS="$LDFLAGS"
  11455. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  11456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11457. /* end confdefs.h. */
  11458. int foo (void) { return 0; }
  11459. _ACEOF
  11460. if ac_fn_c_try_link "$LINENO"; then :
  11461. lt_cv_irix_exported_symbol=yes
  11462. else
  11463. lt_cv_irix_exported_symbol=no
  11464. fi
  11465. rm -f core conftest.err conftest.$ac_objext \
  11466. conftest$ac_exeext conftest.$ac_ext
  11467. LDFLAGS="$save_LDFLAGS"
  11468. fi
  11469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  11470. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  11471. if test "$lt_cv_irix_exported_symbol" = yes; then
  11472. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  11473. fi
  11474. else
  11475. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11476. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  11477. fi
  11478. archive_cmds_need_lc='no'
  11479. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11480. hardcode_libdir_separator=:
  11481. inherit_rpath=yes
  11482. link_all_deplibs=yes
  11483. ;;
  11484. netbsd* | netbsdelf*-gnu)
  11485. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11486. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11487. else
  11488. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11489. fi
  11490. hardcode_libdir_flag_spec='-R$libdir'
  11491. hardcode_direct=yes
  11492. hardcode_shlibpath_var=no
  11493. ;;
  11494. newsos6)
  11495. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11496. hardcode_direct=yes
  11497. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11498. hardcode_libdir_separator=:
  11499. hardcode_shlibpath_var=no
  11500. ;;
  11501. *nto* | *qnx*)
  11502. ;;
  11503. openbsd*)
  11504. if test -f /usr/libexec/ld.so; then
  11505. hardcode_direct=yes
  11506. hardcode_shlibpath_var=no
  11507. hardcode_direct_absolute=yes
  11508. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11509. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11510. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11511. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  11512. export_dynamic_flag_spec='${wl}-E'
  11513. else
  11514. case $host_os in
  11515. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  11516. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11517. hardcode_libdir_flag_spec='-R$libdir'
  11518. ;;
  11519. *)
  11520. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11521. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  11522. ;;
  11523. esac
  11524. fi
  11525. else
  11526. ld_shlibs=no
  11527. fi
  11528. ;;
  11529. os2*)
  11530. hardcode_libdir_flag_spec='-L$libdir'
  11531. hardcode_minus_L=yes
  11532. allow_undefined_flag=unsupported
  11533. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  11534. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11535. ;;
  11536. osf3*)
  11537. if test "$GCC" = yes; then
  11538. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  11539. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11540. else
  11541. allow_undefined_flag=' -expect_unresolved \*'
  11542. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11543. fi
  11544. archive_cmds_need_lc='no'
  11545. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11546. hardcode_libdir_separator=:
  11547. ;;
  11548. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11549. if test "$GCC" = yes; then
  11550. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  11551. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11552. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11553. else
  11554. allow_undefined_flag=' -expect_unresolved \*'
  11555. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11556. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  11557. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  11558. # Both c and cxx compiler support -rpath directly
  11559. hardcode_libdir_flag_spec='-rpath $libdir'
  11560. fi
  11561. archive_cmds_need_lc='no'
  11562. hardcode_libdir_separator=:
  11563. ;;
  11564. solaris*)
  11565. no_undefined_flag=' -z defs'
  11566. if test "$GCC" = yes; then
  11567. wlarc='${wl}'
  11568. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11569. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11570. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11571. else
  11572. case `$CC -V 2>&1` in
  11573. *"Compilers 5.0"*)
  11574. wlarc=''
  11575. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11576. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11577. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11578. ;;
  11579. *)
  11580. wlarc='${wl}'
  11581. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11582. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11583. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11584. ;;
  11585. esac
  11586. fi
  11587. hardcode_libdir_flag_spec='-R$libdir'
  11588. hardcode_shlibpath_var=no
  11589. case $host_os in
  11590. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11591. *)
  11592. # The compiler driver will combine and reorder linker options,
  11593. # but understands `-z linker_flag'. GCC discards it without `$wl',
  11594. # but is careful enough not to reorder.
  11595. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11596. if test "$GCC" = yes; then
  11597. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11598. else
  11599. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  11600. fi
  11601. ;;
  11602. esac
  11603. link_all_deplibs=yes
  11604. ;;
  11605. sunos4*)
  11606. if test "x$host_vendor" = xsequent; then
  11607. # Use $CC to link under sequent, because it throws in some extra .o
  11608. # files that make .init and .fini sections work.
  11609. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11610. else
  11611. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11612. fi
  11613. hardcode_libdir_flag_spec='-L$libdir'
  11614. hardcode_direct=yes
  11615. hardcode_minus_L=yes
  11616. hardcode_shlibpath_var=no
  11617. ;;
  11618. sysv4)
  11619. case $host_vendor in
  11620. sni)
  11621. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11622. hardcode_direct=yes # is this really true???
  11623. ;;
  11624. siemens)
  11625. ## LD is ld it makes a PLAMLIB
  11626. ## CC just makes a GrossModule.
  11627. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11628. reload_cmds='$CC -r -o $output$reload_objs'
  11629. hardcode_direct=no
  11630. ;;
  11631. motorola)
  11632. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11633. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  11634. ;;
  11635. esac
  11636. runpath_var='LD_RUN_PATH'
  11637. hardcode_shlibpath_var=no
  11638. ;;
  11639. sysv4.3*)
  11640. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11641. hardcode_shlibpath_var=no
  11642. export_dynamic_flag_spec='-Bexport'
  11643. ;;
  11644. sysv4*MP*)
  11645. if test -d /usr/nec; then
  11646. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11647. hardcode_shlibpath_var=no
  11648. runpath_var=LD_RUN_PATH
  11649. hardcode_runpath_var=yes
  11650. ld_shlibs=yes
  11651. fi
  11652. ;;
  11653. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11654. no_undefined_flag='${wl}-z,text'
  11655. archive_cmds_need_lc=no
  11656. hardcode_shlibpath_var=no
  11657. runpath_var='LD_RUN_PATH'
  11658. if test "$GCC" = yes; then
  11659. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11660. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11661. else
  11662. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11663. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11664. fi
  11665. ;;
  11666. sysv5* | sco3.2v5* | sco5v6*)
  11667. # Note: We can NOT use -z defs as we might desire, because we do not
  11668. # link with -lc, and that would cause any symbols used from libc to
  11669. # always be unresolved, which means just about no library would
  11670. # ever link correctly. If we're not using GNU ld we use -z text
  11671. # though, which does catch some bad symbols but isn't as heavy-handed
  11672. # as -z defs.
  11673. no_undefined_flag='${wl}-z,text'
  11674. allow_undefined_flag='${wl}-z,nodefs'
  11675. archive_cmds_need_lc=no
  11676. hardcode_shlibpath_var=no
  11677. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  11678. hardcode_libdir_separator=':'
  11679. link_all_deplibs=yes
  11680. export_dynamic_flag_spec='${wl}-Bexport'
  11681. runpath_var='LD_RUN_PATH'
  11682. if test "$GCC" = yes; then
  11683. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11684. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11685. else
  11686. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11687. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11688. fi
  11689. ;;
  11690. uts4*)
  11691. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11692. hardcode_libdir_flag_spec='-L$libdir'
  11693. hardcode_shlibpath_var=no
  11694. ;;
  11695. *)
  11696. ld_shlibs=no
  11697. ;;
  11698. esac
  11699. if test x$host_vendor = xsni; then
  11700. case $host in
  11701. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11702. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11703. ;;
  11704. esac
  11705. fi
  11706. fi
  11707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11708. $as_echo "$ld_shlibs" >&6; }
  11709. test "$ld_shlibs" = no && can_build_shared=no
  11710. with_gnu_ld=$with_gnu_ld
  11711. #
  11712. # Do we need to explicitly link libc?
  11713. #
  11714. case "x$archive_cmds_need_lc" in
  11715. x|xyes)
  11716. # Assume -lc should be added
  11717. archive_cmds_need_lc=yes
  11718. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11719. case $archive_cmds in
  11720. *'~'*)
  11721. # FIXME: we may have to deal with multi-command sequences.
  11722. ;;
  11723. '$CC '*)
  11724. # Test whether the compiler implicitly links with -lc since on some
  11725. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11726. # to ld, don't add -lc before -lgcc.
  11727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11728. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11729. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  11730. $as_echo_n "(cached) " >&6
  11731. else
  11732. $RM conftest*
  11733. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11734. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11735. (eval $ac_compile) 2>&5
  11736. ac_status=$?
  11737. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11738. test $ac_status = 0; } 2>conftest.err; then
  11739. soname=conftest
  11740. lib=conftest
  11741. libobjs=conftest.$ac_objext
  11742. deplibs=
  11743. wl=$lt_prog_compiler_wl
  11744. pic_flag=$lt_prog_compiler_pic
  11745. compiler_flags=-v
  11746. linker_flags=-v
  11747. verstring=
  11748. output_objdir=.
  11749. libname=conftest
  11750. lt_save_allow_undefined_flag=$allow_undefined_flag
  11751. allow_undefined_flag=
  11752. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11753. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11754. ac_status=$?
  11755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11756. test $ac_status = 0; }
  11757. then
  11758. lt_cv_archive_cmds_need_lc=no
  11759. else
  11760. lt_cv_archive_cmds_need_lc=yes
  11761. fi
  11762. allow_undefined_flag=$lt_save_allow_undefined_flag
  11763. else
  11764. cat conftest.err 1>&5
  11765. fi
  11766. $RM conftest*
  11767. fi
  11768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11769. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  11770. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11771. ;;
  11772. esac
  11773. fi
  11774. ;;
  11775. esac
  11776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11777. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11778. if test "$GCC" = yes; then
  11779. case $host_os in
  11780. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  11781. *) lt_awk_arg="/^libraries:/" ;;
  11782. esac
  11783. case $host_os in
  11784. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  11785. *) lt_sed_strip_eq="s,=/,/,g" ;;
  11786. esac
  11787. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11788. case $lt_search_path_spec in
  11789. *\;*)
  11790. # if the path contains ";" then we assume it to be the separator
  11791. # otherwise default to the standard path separator (i.e. ":") - it is
  11792. # assumed that no part of a normal pathname contains ";" but that should
  11793. # okay in the real world where ";" in dirpaths is itself problematic.
  11794. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11795. ;;
  11796. *)
  11797. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11798. ;;
  11799. esac
  11800. # Ok, now we have the path, separated by spaces, we can step through it
  11801. # and add multilib dir if necessary.
  11802. lt_tmp_lt_search_path_spec=
  11803. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11804. for lt_sys_path in $lt_search_path_spec; do
  11805. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  11806. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  11807. else
  11808. test -d "$lt_sys_path" && \
  11809. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11810. fi
  11811. done
  11812. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11813. BEGIN {RS=" "; FS="/|\n";} {
  11814. lt_foo="";
  11815. lt_count=0;
  11816. for (lt_i = NF; lt_i > 0; lt_i--) {
  11817. if ($lt_i != "" && $lt_i != ".") {
  11818. if ($lt_i == "..") {
  11819. lt_count++;
  11820. } else {
  11821. if (lt_count == 0) {
  11822. lt_foo="/" $lt_i lt_foo;
  11823. } else {
  11824. lt_count--;
  11825. }
  11826. }
  11827. }
  11828. }
  11829. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11830. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11831. }'`
  11832. # AWK program above erroneously prepends '/' to C:/dos/paths
  11833. # for these hosts.
  11834. case $host_os in
  11835. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11836. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  11837. esac
  11838. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11839. else
  11840. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11841. fi
  11842. library_names_spec=
  11843. libname_spec='lib$name'
  11844. soname_spec=
  11845. shrext_cmds=".so"
  11846. postinstall_cmds=
  11847. postuninstall_cmds=
  11848. finish_cmds=
  11849. finish_eval=
  11850. shlibpath_var=
  11851. shlibpath_overrides_runpath=unknown
  11852. version_type=none
  11853. dynamic_linker="$host_os ld.so"
  11854. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11855. need_lib_prefix=unknown
  11856. hardcode_into_libs=no
  11857. # when you set need_version to no, make sure it does not cause -set_version
  11858. # flags to be left without arguments
  11859. need_version=unknown
  11860. case $host_os in
  11861. aix3*)
  11862. version_type=linux # correct to gnu/linux during the next big refactor
  11863. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11864. shlibpath_var=LIBPATH
  11865. # AIX 3 has no versioning support, so we append a major version to the name.
  11866. soname_spec='${libname}${release}${shared_ext}$major'
  11867. ;;
  11868. aix[4-9]*)
  11869. version_type=linux # correct to gnu/linux during the next big refactor
  11870. need_lib_prefix=no
  11871. need_version=no
  11872. hardcode_into_libs=yes
  11873. if test "$host_cpu" = ia64; then
  11874. # AIX 5 supports IA64
  11875. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11876. shlibpath_var=LD_LIBRARY_PATH
  11877. else
  11878. # With GCC up to 2.95.x, collect2 would create an import file
  11879. # for dependence libraries. The import file would start with
  11880. # the line `#! .'. This would cause the generated library to
  11881. # depend on `.', always an invalid library. This was fixed in
  11882. # development snapshots of GCC prior to 3.0.
  11883. case $host_os in
  11884. aix4 | aix4.[01] | aix4.[01].*)
  11885. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11886. echo ' yes '
  11887. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11888. :
  11889. else
  11890. can_build_shared=no
  11891. fi
  11892. ;;
  11893. esac
  11894. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11895. # soname into executable. Probably we can add versioning support to
  11896. # collect2, so additional links can be useful in future.
  11897. if test "$aix_use_runtimelinking" = yes; then
  11898. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11899. # instead of lib<name>.a to let people know that these are not
  11900. # typical AIX shared libraries.
  11901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11902. else
  11903. # We preserve .a as extension for shared libraries through AIX4.2
  11904. # and later when we are not doing run time linking.
  11905. library_names_spec='${libname}${release}.a $libname.a'
  11906. soname_spec='${libname}${release}${shared_ext}$major'
  11907. fi
  11908. shlibpath_var=LIBPATH
  11909. fi
  11910. ;;
  11911. amigaos*)
  11912. case $host_cpu in
  11913. powerpc)
  11914. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11915. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11917. ;;
  11918. m68k)
  11919. library_names_spec='$libname.ixlibrary $libname.a'
  11920. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11921. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11922. ;;
  11923. esac
  11924. ;;
  11925. beos*)
  11926. library_names_spec='${libname}${shared_ext}'
  11927. dynamic_linker="$host_os ld.so"
  11928. shlibpath_var=LIBRARY_PATH
  11929. ;;
  11930. bsdi[45]*)
  11931. version_type=linux # correct to gnu/linux during the next big refactor
  11932. need_version=no
  11933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11934. soname_spec='${libname}${release}${shared_ext}$major'
  11935. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11936. shlibpath_var=LD_LIBRARY_PATH
  11937. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11938. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11939. # the default ld.so.conf also contains /usr/contrib/lib and
  11940. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11941. # libtool to hard-code these into programs
  11942. ;;
  11943. cygwin* | mingw* | pw32* | cegcc*)
  11944. version_type=windows
  11945. shrext_cmds=".dll"
  11946. need_version=no
  11947. need_lib_prefix=no
  11948. case $GCC,$cc_basename in
  11949. yes,*)
  11950. # gcc
  11951. library_names_spec='$libname.dll.a'
  11952. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11953. postinstall_cmds='base_file=`basename \${file}`~
  11954. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11955. dldir=$destdir/`dirname \$dlpath`~
  11956. test -d \$dldir || mkdir -p \$dldir~
  11957. $install_prog $dir/$dlname \$dldir/$dlname~
  11958. chmod a+x \$dldir/$dlname~
  11959. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11960. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11961. fi'
  11962. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11963. dlpath=$dir/\$dldll~
  11964. $RM \$dlpath'
  11965. shlibpath_overrides_runpath=yes
  11966. case $host_os in
  11967. cygwin*)
  11968. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11969. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11970. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11971. ;;
  11972. mingw* | cegcc*)
  11973. # MinGW DLLs use traditional 'lib' prefix
  11974. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11975. ;;
  11976. pw32*)
  11977. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11978. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11979. ;;
  11980. esac
  11981. dynamic_linker='Win32 ld.exe'
  11982. ;;
  11983. *,cl*)
  11984. # Native MSVC
  11985. libname_spec='$name'
  11986. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11987. library_names_spec='${libname}.dll.lib'
  11988. case $build_os in
  11989. mingw*)
  11990. sys_lib_search_path_spec=
  11991. lt_save_ifs=$IFS
  11992. IFS=';'
  11993. for lt_path in $LIB
  11994. do
  11995. IFS=$lt_save_ifs
  11996. # Let DOS variable expansion print the short 8.3 style file name.
  11997. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11998. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11999. done
  12000. IFS=$lt_save_ifs
  12001. # Convert to MSYS style.
  12002. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12003. ;;
  12004. cygwin*)
  12005. # Convert to unix form, then to dos form, then back to unix form
  12006. # but this time dos style (no spaces!) so that the unix form looks
  12007. # like /cygdrive/c/PROGRA~1:/cygdr...
  12008. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12009. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12010. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12011. ;;
  12012. *)
  12013. sys_lib_search_path_spec="$LIB"
  12014. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12015. # It is most probably a Windows format PATH.
  12016. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12017. else
  12018. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12019. fi
  12020. # FIXME: find the short name or the path components, as spaces are
  12021. # common. (e.g. "Program Files" -> "PROGRA~1")
  12022. ;;
  12023. esac
  12024. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12025. postinstall_cmds='base_file=`basename \${file}`~
  12026. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12027. dldir=$destdir/`dirname \$dlpath`~
  12028. test -d \$dldir || mkdir -p \$dldir~
  12029. $install_prog $dir/$dlname \$dldir/$dlname'
  12030. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12031. dlpath=$dir/\$dldll~
  12032. $RM \$dlpath'
  12033. shlibpath_overrides_runpath=yes
  12034. dynamic_linker='Win32 link.exe'
  12035. ;;
  12036. *)
  12037. # Assume MSVC wrapper
  12038. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12039. dynamic_linker='Win32 ld.exe'
  12040. ;;
  12041. esac
  12042. # FIXME: first we should search . and the directory the executable is in
  12043. shlibpath_var=PATH
  12044. ;;
  12045. darwin* | rhapsody*)
  12046. dynamic_linker="$host_os dyld"
  12047. version_type=darwin
  12048. need_lib_prefix=no
  12049. need_version=no
  12050. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12051. soname_spec='${libname}${release}${major}$shared_ext'
  12052. shlibpath_overrides_runpath=yes
  12053. shlibpath_var=DYLD_LIBRARY_PATH
  12054. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12055. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  12056. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12057. ;;
  12058. dgux*)
  12059. version_type=linux # correct to gnu/linux during the next big refactor
  12060. need_lib_prefix=no
  12061. need_version=no
  12062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12063. soname_spec='${libname}${release}${shared_ext}$major'
  12064. shlibpath_var=LD_LIBRARY_PATH
  12065. ;;
  12066. freebsd* | dragonfly*)
  12067. # DragonFly does not have aout. When/if they implement a new
  12068. # versioning mechanism, adjust this.
  12069. if test -x /usr/bin/objformat; then
  12070. objformat=`/usr/bin/objformat`
  12071. else
  12072. case $host_os in
  12073. freebsd[23].*) objformat=aout ;;
  12074. *) objformat=elf ;;
  12075. esac
  12076. fi
  12077. version_type=freebsd-$objformat
  12078. case $version_type in
  12079. freebsd-elf*)
  12080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12081. need_version=no
  12082. need_lib_prefix=no
  12083. ;;
  12084. freebsd-*)
  12085. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12086. need_version=yes
  12087. ;;
  12088. esac
  12089. shlibpath_var=LD_LIBRARY_PATH
  12090. case $host_os in
  12091. freebsd2.*)
  12092. shlibpath_overrides_runpath=yes
  12093. ;;
  12094. freebsd3.[01]* | freebsdelf3.[01]*)
  12095. shlibpath_overrides_runpath=yes
  12096. hardcode_into_libs=yes
  12097. ;;
  12098. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12099. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12100. shlibpath_overrides_runpath=no
  12101. hardcode_into_libs=yes
  12102. ;;
  12103. *) # from 4.6 on, and DragonFly
  12104. shlibpath_overrides_runpath=yes
  12105. hardcode_into_libs=yes
  12106. ;;
  12107. esac
  12108. ;;
  12109. haiku*)
  12110. version_type=linux # correct to gnu/linux during the next big refactor
  12111. need_lib_prefix=no
  12112. need_version=no
  12113. dynamic_linker="$host_os runtime_loader"
  12114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12115. soname_spec='${libname}${release}${shared_ext}$major'
  12116. shlibpath_var=LIBRARY_PATH
  12117. shlibpath_overrides_runpath=yes
  12118. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12119. hardcode_into_libs=yes
  12120. ;;
  12121. hpux9* | hpux10* | hpux11*)
  12122. # Give a soname corresponding to the major version so that dld.sl refuses to
  12123. # link against other versions.
  12124. version_type=sunos
  12125. need_lib_prefix=no
  12126. need_version=no
  12127. case $host_cpu in
  12128. ia64*)
  12129. shrext_cmds='.so'
  12130. hardcode_into_libs=yes
  12131. dynamic_linker="$host_os dld.so"
  12132. shlibpath_var=LD_LIBRARY_PATH
  12133. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12135. soname_spec='${libname}${release}${shared_ext}$major'
  12136. if test "X$HPUX_IA64_MODE" = X32; then
  12137. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12138. else
  12139. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12140. fi
  12141. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12142. ;;
  12143. hppa*64*)
  12144. shrext_cmds='.sl'
  12145. hardcode_into_libs=yes
  12146. dynamic_linker="$host_os dld.sl"
  12147. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12148. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12150. soname_spec='${libname}${release}${shared_ext}$major'
  12151. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12152. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12153. ;;
  12154. *)
  12155. shrext_cmds='.sl'
  12156. dynamic_linker="$host_os dld.sl"
  12157. shlibpath_var=SHLIB_PATH
  12158. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12160. soname_spec='${libname}${release}${shared_ext}$major'
  12161. ;;
  12162. esac
  12163. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12164. postinstall_cmds='chmod 555 $lib'
  12165. # or fails outright, so override atomically:
  12166. install_override_mode=555
  12167. ;;
  12168. interix[3-9]*)
  12169. version_type=linux # correct to gnu/linux during the next big refactor
  12170. need_lib_prefix=no
  12171. need_version=no
  12172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12173. soname_spec='${libname}${release}${shared_ext}$major'
  12174. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12175. shlibpath_var=LD_LIBRARY_PATH
  12176. shlibpath_overrides_runpath=no
  12177. hardcode_into_libs=yes
  12178. ;;
  12179. irix5* | irix6* | nonstopux*)
  12180. case $host_os in
  12181. nonstopux*) version_type=nonstopux ;;
  12182. *)
  12183. if test "$lt_cv_prog_gnu_ld" = yes; then
  12184. version_type=linux # correct to gnu/linux during the next big refactor
  12185. else
  12186. version_type=irix
  12187. fi ;;
  12188. esac
  12189. need_lib_prefix=no
  12190. need_version=no
  12191. soname_spec='${libname}${release}${shared_ext}$major'
  12192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12193. case $host_os in
  12194. irix5* | nonstopux*)
  12195. libsuff= shlibsuff=
  12196. ;;
  12197. *)
  12198. case $LD in # libtool.m4 will add one of these switches to LD
  12199. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12200. libsuff= shlibsuff= libmagic=32-bit;;
  12201. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12202. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12203. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12204. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12205. *) libsuff= shlibsuff= libmagic=never-match;;
  12206. esac
  12207. ;;
  12208. esac
  12209. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12210. shlibpath_overrides_runpath=no
  12211. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12212. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12213. hardcode_into_libs=yes
  12214. ;;
  12215. # No shared lib support for Linux oldld, aout, or coff.
  12216. linux*oldld* | linux*aout* | linux*coff*)
  12217. dynamic_linker=no
  12218. ;;
  12219. # This must be glibc/ELF.
  12220. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12221. version_type=linux # correct to gnu/linux during the next big refactor
  12222. need_lib_prefix=no
  12223. need_version=no
  12224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12225. soname_spec='${libname}${release}${shared_ext}$major'
  12226. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12227. shlibpath_var=LD_LIBRARY_PATH
  12228. shlibpath_overrides_runpath=no
  12229. # Some binutils ld are patched to set DT_RUNPATH
  12230. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12231. $as_echo_n "(cached) " >&6
  12232. else
  12233. lt_cv_shlibpath_overrides_runpath=no
  12234. save_LDFLAGS=$LDFLAGS
  12235. save_libdir=$libdir
  12236. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  12237. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  12238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12239. /* end confdefs.h. */
  12240. int main (void)
  12241. {
  12242. ;
  12243. return 0;
  12244. }
  12245. _ACEOF
  12246. if ac_fn_c_try_link "$LINENO"; then :
  12247. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12248. lt_cv_shlibpath_overrides_runpath=yes
  12249. fi
  12250. fi
  12251. rm -f core conftest.err conftest.$ac_objext \
  12252. conftest$ac_exeext conftest.$ac_ext
  12253. LDFLAGS=$save_LDFLAGS
  12254. libdir=$save_libdir
  12255. fi
  12256. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12257. # This implies no fast_install, which is unacceptable.
  12258. # Some rework will be needed to allow for fast_install
  12259. # before this can be enabled.
  12260. hardcode_into_libs=yes
  12261. # Append ld.so.conf contents to the search path
  12262. if test -f /etc/ld.so.conf; then
  12263. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  12264. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12265. fi
  12266. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12267. # powerpc, because MkLinux only supported shared libraries with the
  12268. # GNU dynamic linker. Since this was broken with cross compilers,
  12269. # most powerpc-linux boxes support dynamic linking these days and
  12270. # people can always --disable-shared, the test was removed, and we
  12271. # assume the GNU/Linux dynamic linker is in use.
  12272. dynamic_linker='GNU/Linux ld.so'
  12273. ;;
  12274. netbsdelf*-gnu)
  12275. version_type=linux
  12276. need_lib_prefix=no
  12277. need_version=no
  12278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12279. soname_spec='${libname}${release}${shared_ext}$major'
  12280. shlibpath_var=LD_LIBRARY_PATH
  12281. shlibpath_overrides_runpath=no
  12282. hardcode_into_libs=yes
  12283. dynamic_linker='NetBSD ld.elf_so'
  12284. ;;
  12285. netbsd*)
  12286. version_type=sunos
  12287. need_lib_prefix=no
  12288. need_version=no
  12289. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12291. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12292. dynamic_linker='NetBSD (a.out) ld.so'
  12293. else
  12294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12295. soname_spec='${libname}${release}${shared_ext}$major'
  12296. dynamic_linker='NetBSD ld.elf_so'
  12297. fi
  12298. shlibpath_var=LD_LIBRARY_PATH
  12299. shlibpath_overrides_runpath=yes
  12300. hardcode_into_libs=yes
  12301. ;;
  12302. newsos6)
  12303. version_type=linux # correct to gnu/linux during the next big refactor
  12304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12305. shlibpath_var=LD_LIBRARY_PATH
  12306. shlibpath_overrides_runpath=yes
  12307. ;;
  12308. *nto* | *qnx*)
  12309. version_type=qnx
  12310. need_lib_prefix=no
  12311. need_version=no
  12312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12313. soname_spec='${libname}${release}${shared_ext}$major'
  12314. shlibpath_var=LD_LIBRARY_PATH
  12315. shlibpath_overrides_runpath=no
  12316. hardcode_into_libs=yes
  12317. dynamic_linker='ldqnx.so'
  12318. ;;
  12319. openbsd*)
  12320. version_type=sunos
  12321. sys_lib_dlsearch_path_spec="/usr/lib"
  12322. need_lib_prefix=no
  12323. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12324. case $host_os in
  12325. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12326. *) need_version=no ;;
  12327. esac
  12328. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12329. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12330. shlibpath_var=LD_LIBRARY_PATH
  12331. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12332. case $host_os in
  12333. openbsd2.[89] | openbsd2.[89].*)
  12334. shlibpath_overrides_runpath=no
  12335. ;;
  12336. *)
  12337. shlibpath_overrides_runpath=yes
  12338. ;;
  12339. esac
  12340. else
  12341. shlibpath_overrides_runpath=yes
  12342. fi
  12343. ;;
  12344. os2*)
  12345. libname_spec='$name'
  12346. shrext_cmds=".dll"
  12347. need_lib_prefix=no
  12348. library_names_spec='$libname${shared_ext} $libname.a'
  12349. dynamic_linker='OS/2 ld.exe'
  12350. shlibpath_var=LIBPATH
  12351. ;;
  12352. osf3* | osf4* | osf5*)
  12353. version_type=osf
  12354. need_lib_prefix=no
  12355. need_version=no
  12356. soname_spec='${libname}${release}${shared_ext}$major'
  12357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12358. shlibpath_var=LD_LIBRARY_PATH
  12359. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12360. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12361. ;;
  12362. rdos*)
  12363. dynamic_linker=no
  12364. ;;
  12365. solaris*)
  12366. version_type=linux # correct to gnu/linux during the next big refactor
  12367. need_lib_prefix=no
  12368. need_version=no
  12369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12370. soname_spec='${libname}${release}${shared_ext}$major'
  12371. shlibpath_var=LD_LIBRARY_PATH
  12372. shlibpath_overrides_runpath=yes
  12373. hardcode_into_libs=yes
  12374. # ldd complains unless libraries are executable
  12375. postinstall_cmds='chmod +x $lib'
  12376. ;;
  12377. sunos4*)
  12378. version_type=sunos
  12379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12380. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12381. shlibpath_var=LD_LIBRARY_PATH
  12382. shlibpath_overrides_runpath=yes
  12383. if test "$with_gnu_ld" = yes; then
  12384. need_lib_prefix=no
  12385. fi
  12386. need_version=yes
  12387. ;;
  12388. sysv4 | sysv4.3*)
  12389. version_type=linux # correct to gnu/linux during the next big refactor
  12390. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12391. soname_spec='${libname}${release}${shared_ext}$major'
  12392. shlibpath_var=LD_LIBRARY_PATH
  12393. case $host_vendor in
  12394. sni)
  12395. shlibpath_overrides_runpath=no
  12396. need_lib_prefix=no
  12397. runpath_var=LD_RUN_PATH
  12398. ;;
  12399. siemens)
  12400. need_lib_prefix=no
  12401. ;;
  12402. motorola)
  12403. need_lib_prefix=no
  12404. need_version=no
  12405. shlibpath_overrides_runpath=no
  12406. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12407. ;;
  12408. esac
  12409. ;;
  12410. sysv4*MP*)
  12411. if test -d /usr/nec ;then
  12412. version_type=linux # correct to gnu/linux during the next big refactor
  12413. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12414. soname_spec='$libname${shared_ext}.$major'
  12415. shlibpath_var=LD_LIBRARY_PATH
  12416. fi
  12417. ;;
  12418. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12419. version_type=freebsd-elf
  12420. need_lib_prefix=no
  12421. need_version=no
  12422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12423. soname_spec='${libname}${release}${shared_ext}$major'
  12424. shlibpath_var=LD_LIBRARY_PATH
  12425. shlibpath_overrides_runpath=yes
  12426. hardcode_into_libs=yes
  12427. if test "$with_gnu_ld" = yes; then
  12428. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12429. else
  12430. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12431. case $host_os in
  12432. sco3.2v5*)
  12433. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12434. ;;
  12435. esac
  12436. fi
  12437. sys_lib_dlsearch_path_spec='/usr/lib'
  12438. ;;
  12439. tpf*)
  12440. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12441. version_type=linux # correct to gnu/linux during the next big refactor
  12442. need_lib_prefix=no
  12443. need_version=no
  12444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12445. shlibpath_var=LD_LIBRARY_PATH
  12446. shlibpath_overrides_runpath=no
  12447. hardcode_into_libs=yes
  12448. ;;
  12449. uts4*)
  12450. version_type=linux # correct to gnu/linux during the next big refactor
  12451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12452. soname_spec='${libname}${release}${shared_ext}$major'
  12453. shlibpath_var=LD_LIBRARY_PATH
  12454. ;;
  12455. *)
  12456. dynamic_linker=no
  12457. ;;
  12458. esac
  12459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12460. $as_echo "$dynamic_linker" >&6; }
  12461. test "$dynamic_linker" = no && can_build_shared=no
  12462. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12463. if test "$GCC" = yes; then
  12464. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12465. fi
  12466. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12467. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12468. fi
  12469. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12470. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12471. fi
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12473. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12474. hardcode_action=
  12475. if test -n "$hardcode_libdir_flag_spec" ||
  12476. test -n "$runpath_var" ||
  12477. test "X$hardcode_automatic" = "Xyes" ; then
  12478. # We can hardcode non-existent directories.
  12479. if test "$hardcode_direct" != no &&
  12480. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12481. # have to relink, otherwise we might link with an installed library
  12482. # when we should be linking with a yet-to-be-installed one
  12483. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  12484. test "$hardcode_minus_L" != no; then
  12485. # Linking always hardcodes the temporary library directory.
  12486. hardcode_action=relink
  12487. else
  12488. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12489. hardcode_action=immediate
  12490. fi
  12491. else
  12492. # We cannot hardcode anything, or else we can only hardcode existing
  12493. # directories.
  12494. hardcode_action=unsupported
  12495. fi
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  12497. $as_echo "$hardcode_action" >&6; }
  12498. if test "$hardcode_action" = relink ||
  12499. test "$inherit_rpath" = yes; then
  12500. # Fast installation is not supported
  12501. enable_fast_install=no
  12502. elif test "$shlibpath_overrides_runpath" = yes ||
  12503. test "$enable_shared" = no; then
  12504. # Fast installation is not necessary
  12505. enable_fast_install=needless
  12506. fi
  12507. if test "x$enable_dlopen" != xyes; then
  12508. enable_dlopen=unknown
  12509. enable_dlopen_self=unknown
  12510. enable_dlopen_self_static=unknown
  12511. else
  12512. lt_cv_dlopen=no
  12513. lt_cv_dlopen_libs=
  12514. case $host_os in
  12515. beos*)
  12516. lt_cv_dlopen="load_add_on"
  12517. lt_cv_dlopen_libs=
  12518. lt_cv_dlopen_self=yes
  12519. ;;
  12520. mingw* | pw32* | cegcc*)
  12521. lt_cv_dlopen="LoadLibrary"
  12522. lt_cv_dlopen_libs=
  12523. ;;
  12524. cygwin*)
  12525. lt_cv_dlopen="dlopen"
  12526. lt_cv_dlopen_libs=
  12527. ;;
  12528. darwin*)
  12529. # if libdl is installed we need to link against it
  12530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12531. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12532. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12533. $as_echo_n "(cached) " >&6
  12534. else
  12535. ac_check_lib_save_LIBS=$LIBS
  12536. LIBS="-ldl $LIBS"
  12537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12538. /* end confdefs.h. */
  12539. #ifdef __cplusplus
  12540. extern "C"
  12541. #endif
  12542. char dlopen ();
  12543. int main (void)
  12544. {
  12545. return dlopen ();
  12546. ;
  12547. return 0;
  12548. }
  12549. _ACEOF
  12550. if ac_fn_c_try_link "$LINENO"; then :
  12551. ac_cv_lib_dl_dlopen=yes
  12552. else
  12553. ac_cv_lib_dl_dlopen=no
  12554. fi
  12555. rm -f core conftest.err conftest.$ac_objext \
  12556. conftest$ac_exeext conftest.$ac_ext
  12557. LIBS=$ac_check_lib_save_LIBS
  12558. fi
  12559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12560. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12561. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12562. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12563. else
  12564. lt_cv_dlopen="dyld"
  12565. lt_cv_dlopen_libs=
  12566. lt_cv_dlopen_self=yes
  12567. fi
  12568. ;;
  12569. *)
  12570. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12571. if test "x$ac_cv_func_shl_load" = xyes; then :
  12572. lt_cv_dlopen="shl_load"
  12573. else
  12574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12575. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  12576. if ${ac_cv_lib_dld_shl_load+:} false; then :
  12577. $as_echo_n "(cached) " >&6
  12578. else
  12579. ac_check_lib_save_LIBS=$LIBS
  12580. LIBS="-ldld $LIBS"
  12581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12582. /* end confdefs.h. */
  12583. #ifdef __cplusplus
  12584. extern "C"
  12585. #endif
  12586. char shl_load ();
  12587. int main (void)
  12588. {
  12589. return shl_load ();
  12590. ;
  12591. return 0;
  12592. }
  12593. _ACEOF
  12594. if ac_fn_c_try_link "$LINENO"; then :
  12595. ac_cv_lib_dld_shl_load=yes
  12596. else
  12597. ac_cv_lib_dld_shl_load=no
  12598. fi
  12599. rm -f core conftest.err conftest.$ac_objext \
  12600. conftest$ac_exeext conftest.$ac_ext
  12601. LIBS=$ac_check_lib_save_LIBS
  12602. fi
  12603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12604. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  12605. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  12606. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  12607. else
  12608. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12609. if test "x$ac_cv_func_dlopen" = xyes; then :
  12610. lt_cv_dlopen="dlopen"
  12611. else
  12612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12613. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12614. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12615. $as_echo_n "(cached) " >&6
  12616. else
  12617. ac_check_lib_save_LIBS=$LIBS
  12618. LIBS="-ldl $LIBS"
  12619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12620. /* end confdefs.h. */
  12621. #ifdef __cplusplus
  12622. extern "C"
  12623. #endif
  12624. char dlopen ();
  12625. int main (void)
  12626. {
  12627. return dlopen ();
  12628. ;
  12629. return 0;
  12630. }
  12631. _ACEOF
  12632. if ac_fn_c_try_link "$LINENO"; then :
  12633. ac_cv_lib_dl_dlopen=yes
  12634. else
  12635. ac_cv_lib_dl_dlopen=no
  12636. fi
  12637. rm -f core conftest.err conftest.$ac_objext \
  12638. conftest$ac_exeext conftest.$ac_ext
  12639. LIBS=$ac_check_lib_save_LIBS
  12640. fi
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12642. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12643. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12644. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12645. else
  12646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12647. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  12648. if ${ac_cv_lib_svld_dlopen+:} false; then :
  12649. $as_echo_n "(cached) " >&6
  12650. else
  12651. ac_check_lib_save_LIBS=$LIBS
  12652. LIBS="-lsvld $LIBS"
  12653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12654. /* end confdefs.h. */
  12655. #ifdef __cplusplus
  12656. extern "C"
  12657. #endif
  12658. char dlopen ();
  12659. int main (void)
  12660. {
  12661. return dlopen ();
  12662. ;
  12663. return 0;
  12664. }
  12665. _ACEOF
  12666. if ac_fn_c_try_link "$LINENO"; then :
  12667. ac_cv_lib_svld_dlopen=yes
  12668. else
  12669. ac_cv_lib_svld_dlopen=no
  12670. fi
  12671. rm -f core conftest.err conftest.$ac_objext \
  12672. conftest$ac_exeext conftest.$ac_ext
  12673. LIBS=$ac_check_lib_save_LIBS
  12674. fi
  12675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12676. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  12677. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  12678. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12679. else
  12680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12681. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  12682. if ${ac_cv_lib_dld_dld_link+:} false; then :
  12683. $as_echo_n "(cached) " >&6
  12684. else
  12685. ac_check_lib_save_LIBS=$LIBS
  12686. LIBS="-ldld $LIBS"
  12687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12688. /* end confdefs.h. */
  12689. #ifdef __cplusplus
  12690. extern "C"
  12691. #endif
  12692. char dld_link ();
  12693. int main (void)
  12694. {
  12695. return dld_link ();
  12696. ;
  12697. return 0;
  12698. }
  12699. _ACEOF
  12700. if ac_fn_c_try_link "$LINENO"; then :
  12701. ac_cv_lib_dld_dld_link=yes
  12702. else
  12703. ac_cv_lib_dld_dld_link=no
  12704. fi
  12705. rm -f core conftest.err conftest.$ac_objext \
  12706. conftest$ac_exeext conftest.$ac_ext
  12707. LIBS=$ac_check_lib_save_LIBS
  12708. fi
  12709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12710. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12711. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  12712. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  12713. fi
  12714. fi
  12715. fi
  12716. fi
  12717. fi
  12718. fi
  12719. ;;
  12720. esac
  12721. if test "x$lt_cv_dlopen" != xno; then
  12722. enable_dlopen=yes
  12723. else
  12724. enable_dlopen=no
  12725. fi
  12726. case $lt_cv_dlopen in
  12727. dlopen)
  12728. save_CPPFLAGS="$CPPFLAGS"
  12729. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12730. save_LDFLAGS="$LDFLAGS"
  12731. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12732. save_LIBS="$LIBS"
  12733. LIBS="$lt_cv_dlopen_libs $LIBS"
  12734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12735. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12736. if ${lt_cv_dlopen_self+:} false; then :
  12737. $as_echo_n "(cached) " >&6
  12738. else
  12739. if test "$cross_compiling" = yes; then :
  12740. lt_cv_dlopen_self=cross
  12741. else
  12742. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12743. lt_status=$lt_dlunknown
  12744. cat > conftest.$ac_ext <<_LT_EOF
  12745. #line $LINENO "configure"
  12746. #include "confdefs.h"
  12747. #if HAVE_DLFCN_H
  12748. #include <dlfcn.h>
  12749. #endif
  12750. #include <stdio.h>
  12751. #ifdef RTLD_GLOBAL
  12752. # define LT_DLGLOBAL RTLD_GLOBAL
  12753. #else
  12754. # ifdef DL_GLOBAL
  12755. # define LT_DLGLOBAL DL_GLOBAL
  12756. # else
  12757. # define LT_DLGLOBAL 0
  12758. # endif
  12759. #endif
  12760. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12761. find out it does not work in some platform. */
  12762. #ifndef LT_DLLAZY_OR_NOW
  12763. # ifdef RTLD_LAZY
  12764. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12765. # else
  12766. # ifdef DL_LAZY
  12767. # define LT_DLLAZY_OR_NOW DL_LAZY
  12768. # else
  12769. # ifdef RTLD_NOW
  12770. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12771. # else
  12772. # ifdef DL_NOW
  12773. # define LT_DLLAZY_OR_NOW DL_NOW
  12774. # else
  12775. # define LT_DLLAZY_OR_NOW 0
  12776. # endif
  12777. # endif
  12778. # endif
  12779. # endif
  12780. #endif
  12781. /* When -fvisbility=hidden is used, assume the code has been annotated
  12782. correspondingly for the symbols needed. */
  12783. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12784. int fnord () __attribute__((visibility("default")));
  12785. #endif
  12786. int fnord () { return 42; }
  12787. int main ()
  12788. {
  12789. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12790. int status = $lt_dlunknown;
  12791. if (self)
  12792. {
  12793. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12794. else
  12795. {
  12796. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12797. else puts (dlerror ());
  12798. }
  12799. /* dlclose (self); */
  12800. }
  12801. else
  12802. puts (dlerror ());
  12803. return status;
  12804. }
  12805. _LT_EOF
  12806. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12807. (eval $ac_link) 2>&5
  12808. ac_status=$?
  12809. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12810. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  12811. (./conftest; exit; ) >&5 2>/dev/null
  12812. lt_status=$?
  12813. case x$lt_status in
  12814. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12815. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12816. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12817. esac
  12818. else :
  12819. # compilation failed
  12820. lt_cv_dlopen_self=no
  12821. fi
  12822. fi
  12823. rm -fr conftest*
  12824. fi
  12825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12826. $as_echo "$lt_cv_dlopen_self" >&6; }
  12827. if test "x$lt_cv_dlopen_self" = xyes; then
  12828. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12830. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12831. if ${lt_cv_dlopen_self_static+:} false; then :
  12832. $as_echo_n "(cached) " >&6
  12833. else
  12834. if test "$cross_compiling" = yes; then :
  12835. lt_cv_dlopen_self_static=cross
  12836. else
  12837. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12838. lt_status=$lt_dlunknown
  12839. cat > conftest.$ac_ext <<_LT_EOF
  12840. #line $LINENO "configure"
  12841. #include "confdefs.h"
  12842. #if HAVE_DLFCN_H
  12843. #include <dlfcn.h>
  12844. #endif
  12845. #include <stdio.h>
  12846. #ifdef RTLD_GLOBAL
  12847. # define LT_DLGLOBAL RTLD_GLOBAL
  12848. #else
  12849. # ifdef DL_GLOBAL
  12850. # define LT_DLGLOBAL DL_GLOBAL
  12851. # else
  12852. # define LT_DLGLOBAL 0
  12853. # endif
  12854. #endif
  12855. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12856. find out it does not work in some platform. */
  12857. #ifndef LT_DLLAZY_OR_NOW
  12858. # ifdef RTLD_LAZY
  12859. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12860. # else
  12861. # ifdef DL_LAZY
  12862. # define LT_DLLAZY_OR_NOW DL_LAZY
  12863. # else
  12864. # ifdef RTLD_NOW
  12865. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12866. # else
  12867. # ifdef DL_NOW
  12868. # define LT_DLLAZY_OR_NOW DL_NOW
  12869. # else
  12870. # define LT_DLLAZY_OR_NOW 0
  12871. # endif
  12872. # endif
  12873. # endif
  12874. # endif
  12875. #endif
  12876. /* When -fvisbility=hidden is used, assume the code has been annotated
  12877. correspondingly for the symbols needed. */
  12878. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12879. int fnord () __attribute__((visibility("default")));
  12880. #endif
  12881. int fnord () { return 42; }
  12882. int main ()
  12883. {
  12884. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12885. int status = $lt_dlunknown;
  12886. if (self)
  12887. {
  12888. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12889. else
  12890. {
  12891. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12892. else puts (dlerror ());
  12893. }
  12894. /* dlclose (self); */
  12895. }
  12896. else
  12897. puts (dlerror ());
  12898. return status;
  12899. }
  12900. _LT_EOF
  12901. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12902. (eval $ac_link) 2>&5
  12903. ac_status=$?
  12904. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12905. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  12906. (./conftest; exit; ) >&5 2>/dev/null
  12907. lt_status=$?
  12908. case x$lt_status in
  12909. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12910. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12911. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12912. esac
  12913. else :
  12914. # compilation failed
  12915. lt_cv_dlopen_self_static=no
  12916. fi
  12917. fi
  12918. rm -fr conftest*
  12919. fi
  12920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12921. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12922. fi
  12923. CPPFLAGS="$save_CPPFLAGS"
  12924. LDFLAGS="$save_LDFLAGS"
  12925. LIBS="$save_LIBS"
  12926. ;;
  12927. esac
  12928. case $lt_cv_dlopen_self in
  12929. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12930. *) enable_dlopen_self=unknown ;;
  12931. esac
  12932. case $lt_cv_dlopen_self_static in
  12933. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12934. *) enable_dlopen_self_static=unknown ;;
  12935. esac
  12936. fi
  12937. striplib=
  12938. old_striplib=
  12939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12940. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12941. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12942. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12943. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12945. $as_echo "yes" >&6; }
  12946. else
  12947. # FIXME - insert some real tests, host_os isn't really good enough
  12948. case $host_os in
  12949. darwin*)
  12950. if test -n "$STRIP" ; then
  12951. striplib="$STRIP -x"
  12952. old_striplib="$STRIP -S"
  12953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12954. $as_echo "yes" >&6; }
  12955. else
  12956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12957. $as_echo "no" >&6; }
  12958. fi
  12959. ;;
  12960. *)
  12961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12962. $as_echo "no" >&6; }
  12963. ;;
  12964. esac
  12965. fi
  12966. # Report which library types will actually be built
  12967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12968. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12970. $as_echo "$can_build_shared" >&6; }
  12971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12972. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12973. test "$can_build_shared" = "no" && enable_shared=no
  12974. # On AIX, shared libraries and static libraries use the same namespace, and
  12975. # are all built from PIC.
  12976. case $host_os in
  12977. aix3*)
  12978. test "$enable_shared" = yes && enable_static=no
  12979. if test -n "$RANLIB"; then
  12980. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12981. postinstall_cmds='$RANLIB $lib'
  12982. fi
  12983. ;;
  12984. aix[4-9]*)
  12985. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12986. test "$enable_shared" = yes && enable_static=no
  12987. fi
  12988. ;;
  12989. esac
  12990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12991. $as_echo "$enable_shared" >&6; }
  12992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12993. $as_echo_n "checking whether to build static libraries... " >&6; }
  12994. # Make sure either enable_shared or enable_static is yes.
  12995. test "$enable_shared" = yes || enable_static=yes
  12996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12997. $as_echo "$enable_static" >&6; }
  12998. fi
  12999. ac_ext=c
  13000. ac_cpp='$CPP $CPPFLAGS'
  13001. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13002. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13003. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13004. CC="$lt_save_CC"
  13005. ac_config_commands="$ac_config_commands libtool"
  13006. # Only expand once:
  13007. ## --------------------- ##
  13008. ## End of libtool code ##
  13009. ## --------------------- ##
  13010. #
  13011. # Verify if finally libtool shared libraries will be built
  13012. #
  13013. case "x$enable_shared" in # ((
  13014. xyes | xno)
  13015. xc_lt_build_shared=$enable_shared
  13016. ;;
  13017. *)
  13018. as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
  13019. ;;
  13020. esac
  13021. #
  13022. # Verify if finally libtool static libraries will be built
  13023. #
  13024. case "x$enable_static" in # ((
  13025. xyes | xno)
  13026. xc_lt_build_static=$enable_static
  13027. ;;
  13028. *)
  13029. as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
  13030. ;;
  13031. esac
  13032. #
  13033. # Verify if libtool shared libraries should be linked using flag -version-info
  13034. #
  13035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
  13036. $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
  13037. xc_lt_shlib_use_version_info='yes'
  13038. if test "x$version_type" = 'xnone'; then
  13039. xc_lt_shlib_use_version_info='no'
  13040. fi
  13041. case $host_os in # (
  13042. amigaos*)
  13043. xc_lt_shlib_use_version_info='yes'
  13044. ;;
  13045. esac
  13046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
  13047. $as_echo "$xc_lt_shlib_use_version_info" >&6; }
  13048. #
  13049. # Verify if libtool shared libraries should be linked using flag -no-undefined
  13050. #
  13051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
  13052. $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
  13053. xc_lt_shlib_use_no_undefined='no'
  13054. if test "x$allow_undefined" = 'xno'; then
  13055. xc_lt_shlib_use_no_undefined='yes'
  13056. elif test "x$allow_undefined_flag" = 'xunsupported'; then
  13057. xc_lt_shlib_use_no_undefined='yes'
  13058. fi
  13059. case $host_os in # (
  13060. cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
  13061. xc_lt_shlib_use_no_undefined='yes'
  13062. ;;
  13063. esac
  13064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
  13065. $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
  13066. #
  13067. # Verify if libtool shared libraries should be linked using flag -mimpure-text
  13068. #
  13069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
  13070. $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
  13071. xc_lt_shlib_use_mimpure_text='no'
  13072. case $host_os in # (
  13073. solaris2*)
  13074. if test "x$GCC" = 'xyes'; then
  13075. xc_lt_shlib_use_mimpure_text='yes'
  13076. fi
  13077. ;;
  13078. esac
  13079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
  13080. $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
  13081. #
  13082. # Find out wether libtool libraries would be built wit PIC
  13083. #
  13084. case "x$pic_mode" in # ((((
  13085. xdefault)
  13086. xc_lt_build_shared_with_pic='yes'
  13087. xc_lt_build_static_with_pic='no'
  13088. ;;
  13089. xyes)
  13090. xc_lt_build_shared_with_pic='yes'
  13091. xc_lt_build_static_with_pic='yes'
  13092. ;;
  13093. xno)
  13094. xc_lt_build_shared_with_pic='no'
  13095. xc_lt_build_static_with_pic='no'
  13096. ;;
  13097. *)
  13098. xc_lt_build_shared_with_pic='unknown'
  13099. xc_lt_build_static_with_pic='unknown'
  13100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
  13101. $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
  13102. ;;
  13103. esac
  13104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
  13105. $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
  13106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
  13107. $as_echo "$xc_lt_build_shared_with_pic" >&6; }
  13108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
  13109. $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
  13110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
  13111. $as_echo "$xc_lt_build_static_with_pic" >&6; }
  13112. #
  13113. # Verify if libtool shared libraries will be built while static not built
  13114. #
  13115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
  13116. $as_echo_n "checking whether to build shared libraries only... " >&6; }
  13117. if test "$xc_lt_build_shared" = 'yes' &&
  13118. test "$xc_lt_build_static" = 'no'; then
  13119. xc_lt_build_shared_only='yes'
  13120. else
  13121. xc_lt_build_shared_only='no'
  13122. fi
  13123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
  13124. $as_echo "$xc_lt_build_shared_only" >&6; }
  13125. #
  13126. # Verify if libtool static libraries will be built while shared not built
  13127. #
  13128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
  13129. $as_echo_n "checking whether to build static libraries only... " >&6; }
  13130. if test "$xc_lt_build_static" = 'yes' &&
  13131. test "$xc_lt_build_shared" = 'no'; then
  13132. xc_lt_build_static_only='yes'
  13133. else
  13134. xc_lt_build_static_only='no'
  13135. fi
  13136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
  13137. $as_echo "$xc_lt_build_static_only" >&6; }
  13138. #
  13139. # Automake conditionals based on libtool related checks
  13140. #
  13141. if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
  13142. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
  13143. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
  13144. else
  13145. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
  13146. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
  13147. fi
  13148. if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
  13149. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
  13150. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
  13151. else
  13152. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
  13153. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
  13154. fi
  13155. if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
  13156. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
  13157. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
  13158. else
  13159. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
  13160. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
  13161. fi
  13162. #
  13163. # Due to libtool and automake machinery limitations of not allowing
  13164. # specifying separate CPPFLAGS or CFLAGS when compiling objects for
  13165. # inclusion of these in shared or static libraries, we are forced to
  13166. # build using separate configure runs for shared and static libraries
  13167. # on systems where different CPPFLAGS or CFLAGS are mandatory in order
  13168. # to compile objects for each kind of library. Notice that relying on
  13169. # the '-DPIC' CFLAG that libtool provides is not valid given that the
  13170. # user might for example choose to build static libraries with PIC.
  13171. #
  13172. #
  13173. # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
  13174. # targeting a static library and not building its shared counterpart.
  13175. #
  13176. if test "x$xc_lt_build_static_only" = 'xyes'; then
  13177. USE_CPPFLAG_CURL_STATICLIB_TRUE=
  13178. USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
  13179. else
  13180. USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
  13181. USE_CPPFLAG_CURL_STATICLIB_FALSE=
  13182. fi
  13183. #
  13184. # Make staticlib CPPFLAG variable and its definition visible in output
  13185. # files unconditionally, providing an empty definition unless strictly
  13186. # targeting a static library and not building its shared counterpart.
  13187. #
  13188. CPPFLAG_CURL_STATICLIB=
  13189. if test "x$xc_lt_build_static_only" = 'xyes'; then
  13190. CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
  13191. fi
  13192. # Determine whether all dependent libraries must be specified when linking
  13193. if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
  13194. then
  13195. REQUIRE_LIB_DEPS=no
  13196. else
  13197. REQUIRE_LIB_DEPS=yes
  13198. fi
  13199. if test x$REQUIRE_LIB_DEPS = xyes; then
  13200. USE_EXPLICIT_LIB_DEPS_TRUE=
  13201. USE_EXPLICIT_LIB_DEPS_FALSE='#'
  13202. else
  13203. USE_EXPLICIT_LIB_DEPS_TRUE='#'
  13204. USE_EXPLICIT_LIB_DEPS_FALSE=
  13205. fi
  13206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13207. $as_echo_n "checking for inline... " >&6; }
  13208. if ${ac_cv_c_inline+:} false; then :
  13209. $as_echo_n "(cached) " >&6
  13210. else
  13211. ac_cv_c_inline=no
  13212. for ac_kw in inline __inline__ __inline; do
  13213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13214. /* end confdefs.h. */
  13215. #ifndef __cplusplus
  13216. typedef int foo_t;
  13217. static $ac_kw foo_t static_foo () {return 0; }
  13218. $ac_kw foo_t foo () {return 0; }
  13219. #endif
  13220. _ACEOF
  13221. if ac_fn_c_try_compile "$LINENO"; then :
  13222. ac_cv_c_inline=$ac_kw
  13223. fi
  13224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13225. test "$ac_cv_c_inline" != no && break
  13226. done
  13227. fi
  13228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13229. $as_echo "$ac_cv_c_inline" >&6; }
  13230. case $ac_cv_c_inline in
  13231. inline | yes) ;;
  13232. *)
  13233. case $ac_cv_c_inline in
  13234. no) ac_val=;;
  13235. *) ac_val=$ac_cv_c_inline;;
  13236. esac
  13237. cat >>confdefs.h <<_ACEOF
  13238. #ifndef __cplusplus
  13239. #define inline $ac_val
  13240. #endif
  13241. _ACEOF
  13242. ;;
  13243. esac
  13244. #
  13245. compiler_id="unknown"
  13246. compiler_num="0"
  13247. #
  13248. flags_dbg_all="unknown"
  13249. flags_dbg_yes="unknown"
  13250. flags_dbg_off="unknown"
  13251. flags_opt_all="unknown"
  13252. flags_opt_yes="unknown"
  13253. flags_opt_off="unknown"
  13254. #
  13255. flags_prefer_cppflags="no"
  13256. #
  13257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
  13258. $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
  13259. if test -z "$SED"; then
  13260. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13261. fi
  13262. if test -z "$GREP"; then
  13263. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13264. fi
  13265. tmp_exp=""
  13266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13267. /* end confdefs.h. */
  13268. #ifdef __DECC
  13269. CURL_DEF_TOKEN __DECC
  13270. #endif
  13271. _ACEOF
  13272. if ac_fn_c_try_cpp "$LINENO"; then :
  13273. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13274. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13275. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13276. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13277. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
  13278. tmp_exp=""
  13279. fi
  13280. fi
  13281. rm -f conftest.err conftest.i conftest.$ac_ext
  13282. if test -z "$tmp_exp"; then
  13283. curl_cv_have_def___DECC=no
  13284. else
  13285. curl_cv_have_def___DECC=yes
  13286. curl_cv_def___DECC=$tmp_exp
  13287. fi
  13288. if test -z "$SED"; then
  13289. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13290. fi
  13291. if test -z "$GREP"; then
  13292. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13293. fi
  13294. tmp_exp=""
  13295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13296. /* end confdefs.h. */
  13297. #ifdef __DECC_VER
  13298. CURL_DEF_TOKEN __DECC_VER
  13299. #endif
  13300. _ACEOF
  13301. if ac_fn_c_try_cpp "$LINENO"; then :
  13302. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13303. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13304. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13305. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13306. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
  13307. tmp_exp=""
  13308. fi
  13309. fi
  13310. rm -f conftest.err conftest.i conftest.$ac_ext
  13311. if test -z "$tmp_exp"; then
  13312. curl_cv_have_def___DECC_VER=no
  13313. else
  13314. curl_cv_have_def___DECC_VER=yes
  13315. curl_cv_def___DECC_VER=$tmp_exp
  13316. fi
  13317. if test "$curl_cv_have_def___DECC" = "yes" &&
  13318. test "$curl_cv_have_def___DECC_VER" = "yes"; then
  13319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13320. $as_echo "yes" >&6; }
  13321. compiler_id="DEC_C"
  13322. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13323. flags_dbg_yes="-g2"
  13324. flags_dbg_off=""
  13325. flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
  13326. flags_opt_yes="-O1"
  13327. flags_opt_off="-O0"
  13328. else
  13329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13330. $as_echo "no" >&6; }
  13331. fi
  13332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
  13333. $as_echo_n "checking if compiler is HP-UX C... " >&6; }
  13334. if test -z "$SED"; then
  13335. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13336. fi
  13337. if test -z "$GREP"; then
  13338. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13339. fi
  13340. tmp_exp=""
  13341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13342. /* end confdefs.h. */
  13343. #ifdef __HP_cc
  13344. CURL_DEF_TOKEN __HP_cc
  13345. #endif
  13346. _ACEOF
  13347. if ac_fn_c_try_cpp "$LINENO"; then :
  13348. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13349. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13350. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13351. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13352. if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
  13353. tmp_exp=""
  13354. fi
  13355. fi
  13356. rm -f conftest.err conftest.i conftest.$ac_ext
  13357. if test -z "$tmp_exp"; then
  13358. curl_cv_have_def___HP_cc=no
  13359. else
  13360. curl_cv_have_def___HP_cc=yes
  13361. curl_cv_def___HP_cc=$tmp_exp
  13362. fi
  13363. if test "$curl_cv_have_def___HP_cc" = "yes"; then
  13364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13365. $as_echo "yes" >&6; }
  13366. compiler_id="HP_UX_C"
  13367. flags_dbg_all="-g -s"
  13368. flags_dbg_yes="-g"
  13369. flags_dbg_off="-s"
  13370. flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
  13371. flags_opt_yes="+O2"
  13372. flags_opt_off="+O0"
  13373. else
  13374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13375. $as_echo "no" >&6; }
  13376. fi
  13377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
  13378. $as_echo_n "checking if compiler is IBM C... " >&6; }
  13379. if test -z "$SED"; then
  13380. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13381. fi
  13382. if test -z "$GREP"; then
  13383. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13384. fi
  13385. tmp_exp=""
  13386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13387. /* end confdefs.h. */
  13388. #ifdef __IBMC__
  13389. CURL_DEF_TOKEN __IBMC__
  13390. #endif
  13391. _ACEOF
  13392. if ac_fn_c_try_cpp "$LINENO"; then :
  13393. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13394. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13395. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13396. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13397. if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
  13398. tmp_exp=""
  13399. fi
  13400. fi
  13401. rm -f conftest.err conftest.i conftest.$ac_ext
  13402. if test -z "$tmp_exp"; then
  13403. curl_cv_have_def___IBMC__=no
  13404. else
  13405. curl_cv_have_def___IBMC__=yes
  13406. curl_cv_def___IBMC__=$tmp_exp
  13407. fi
  13408. if test "$curl_cv_have_def___IBMC__" = "yes"; then
  13409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13410. $as_echo "yes" >&6; }
  13411. compiler_id="IBM_C"
  13412. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13413. flags_dbg_yes="-g"
  13414. flags_dbg_off=""
  13415. flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
  13416. flags_opt_all="$flags_opt_all -qnooptimize"
  13417. flags_opt_all="$flags_opt_all -qoptimize=0"
  13418. flags_opt_all="$flags_opt_all -qoptimize=1"
  13419. flags_opt_all="$flags_opt_all -qoptimize=2"
  13420. flags_opt_all="$flags_opt_all -qoptimize=3"
  13421. flags_opt_all="$flags_opt_all -qoptimize=4"
  13422. flags_opt_all="$flags_opt_all -qoptimize=5"
  13423. flags_opt_yes="-O2"
  13424. flags_opt_off="-qnooptimize"
  13425. flags_prefer_cppflags="yes"
  13426. else
  13427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13428. $as_echo "no" >&6; }
  13429. fi
  13430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
  13431. $as_echo_n "checking if compiler is Intel C... " >&6; }
  13432. if test -z "$SED"; then
  13433. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13434. fi
  13435. if test -z "$GREP"; then
  13436. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13437. fi
  13438. tmp_exp=""
  13439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13440. /* end confdefs.h. */
  13441. #ifdef __INTEL_COMPILER
  13442. CURL_DEF_TOKEN __INTEL_COMPILER
  13443. #endif
  13444. _ACEOF
  13445. if ac_fn_c_try_cpp "$LINENO"; then :
  13446. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13447. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13448. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13449. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13450. if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
  13451. tmp_exp=""
  13452. fi
  13453. fi
  13454. rm -f conftest.err conftest.i conftest.$ac_ext
  13455. if test -z "$tmp_exp"; then
  13456. curl_cv_have_def___INTEL_COMPILER=no
  13457. else
  13458. curl_cv_have_def___INTEL_COMPILER=yes
  13459. curl_cv_def___INTEL_COMPILER=$tmp_exp
  13460. fi
  13461. if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13463. $as_echo "yes" >&6; }
  13464. compiler_num="$curl_cv_def___INTEL_COMPILER"
  13465. if test -z "$SED"; then
  13466. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13467. fi
  13468. if test -z "$GREP"; then
  13469. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13470. fi
  13471. tmp_exp=""
  13472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13473. /* end confdefs.h. */
  13474. #ifdef __unix__
  13475. CURL_DEF_TOKEN __unix__
  13476. #endif
  13477. _ACEOF
  13478. if ac_fn_c_try_cpp "$LINENO"; then :
  13479. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13480. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13481. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13482. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13483. if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
  13484. tmp_exp=""
  13485. fi
  13486. fi
  13487. rm -f conftest.err conftest.i conftest.$ac_ext
  13488. if test -z "$tmp_exp"; then
  13489. curl_cv_have_def___unix__=no
  13490. else
  13491. curl_cv_have_def___unix__=yes
  13492. curl_cv_def___unix__=$tmp_exp
  13493. fi
  13494. if test "$curl_cv_have_def___unix__" = "yes"; then
  13495. compiler_id="INTEL_UNIX_C"
  13496. flags_dbg_all="-g -g0"
  13497. flags_dbg_yes="-g"
  13498. flags_dbg_off=""
  13499. flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
  13500. flags_opt_yes="-O2"
  13501. flags_opt_off="-O0"
  13502. else
  13503. compiler_id="INTEL_WINDOWS_C"
  13504. flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
  13505. flags_dbg_all="$flags_dbg_all /debug"
  13506. flags_dbg_all="$flags_dbg_all /debug:none"
  13507. flags_dbg_all="$flags_dbg_all /debug:minimal"
  13508. flags_dbg_all="$flags_dbg_all /debug:partial"
  13509. flags_dbg_all="$flags_dbg_all /debug:full"
  13510. flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
  13511. flags_dbg_all="$flags_dbg_all /debug:extended"
  13512. flags_dbg_yes="/Zi /Oy-"
  13513. flags_dbg_off="/debug:none /Oy-"
  13514. flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
  13515. flags_opt_yes="/O2"
  13516. flags_opt_off="/Od"
  13517. fi
  13518. else
  13519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13520. $as_echo "no" >&6; }
  13521. fi
  13522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
  13523. $as_echo_n "checking if compiler is clang... " >&6; }
  13524. if test -z "$SED"; then
  13525. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13526. fi
  13527. if test -z "$GREP"; then
  13528. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13529. fi
  13530. tmp_exp=""
  13531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13532. /* end confdefs.h. */
  13533. #ifdef __clang__
  13534. CURL_DEF_TOKEN __clang__
  13535. #endif
  13536. _ACEOF
  13537. if ac_fn_c_try_cpp "$LINENO"; then :
  13538. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13539. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13540. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13541. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13542. if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
  13543. tmp_exp=""
  13544. fi
  13545. fi
  13546. rm -f conftest.err conftest.i conftest.$ac_ext
  13547. if test -z "$tmp_exp"; then
  13548. curl_cv_have_def___clang__=no
  13549. else
  13550. curl_cv_have_def___clang__=yes
  13551. curl_cv_def___clang__=$tmp_exp
  13552. fi
  13553. if test "$curl_cv_have_def___clang__" = "yes"; then
  13554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13555. $as_echo "yes" >&6; }
  13556. compiler_id="CLANG"
  13557. clangver=`$CC -dumpversion`
  13558. clangvhi=`echo $clangver | cut -d . -f1`
  13559. clangvlo=`echo $clangver | cut -d . -f2`
  13560. compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
  13561. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13562. flags_dbg_all="$flags_dbg_all -ggdb"
  13563. flags_dbg_all="$flags_dbg_all -gstabs"
  13564. flags_dbg_all="$flags_dbg_all -gstabs+"
  13565. flags_dbg_all="$flags_dbg_all -gcoff"
  13566. flags_dbg_all="$flags_dbg_all -gxcoff"
  13567. flags_dbg_all="$flags_dbg_all -gdwarf-2"
  13568. flags_dbg_all="$flags_dbg_all -gvms"
  13569. flags_dbg_yes="-g"
  13570. flags_dbg_off=""
  13571. flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
  13572. flags_opt_yes="-Os"
  13573. flags_opt_off="-O0"
  13574. else
  13575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13576. $as_echo "no" >&6; }
  13577. fi
  13578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
  13579. $as_echo_n "checking if compiler is GNU C... " >&6; }
  13580. if test -z "$SED"; then
  13581. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13582. fi
  13583. if test -z "$GREP"; then
  13584. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13585. fi
  13586. tmp_exp=""
  13587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13588. /* end confdefs.h. */
  13589. #ifdef __GNUC__
  13590. CURL_DEF_TOKEN __GNUC__
  13591. #endif
  13592. _ACEOF
  13593. if ac_fn_c_try_cpp "$LINENO"; then :
  13594. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13595. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13596. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13597. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13598. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  13599. tmp_exp=""
  13600. fi
  13601. fi
  13602. rm -f conftest.err conftest.i conftest.$ac_ext
  13603. if test -z "$tmp_exp"; then
  13604. curl_cv_have_def___GNUC__=no
  13605. else
  13606. curl_cv_have_def___GNUC__=yes
  13607. curl_cv_def___GNUC__=$tmp_exp
  13608. fi
  13609. if test "$curl_cv_have_def___GNUC__" = "yes" &&
  13610. test "$compiler_id" = "unknown"; then
  13611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13612. $as_echo "yes" >&6; }
  13613. compiler_id="GNU_C"
  13614. gccver=`$CC -dumpversion`
  13615. gccvhi=`echo $gccver | cut -d . -f1`
  13616. gccvlo=`echo $gccver | cut -d . -f2`
  13617. compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
  13618. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13619. flags_dbg_all="$flags_dbg_all -ggdb"
  13620. flags_dbg_all="$flags_dbg_all -gstabs"
  13621. flags_dbg_all="$flags_dbg_all -gstabs+"
  13622. flags_dbg_all="$flags_dbg_all -gcoff"
  13623. flags_dbg_all="$flags_dbg_all -gxcoff"
  13624. flags_dbg_all="$flags_dbg_all -gdwarf-2"
  13625. flags_dbg_all="$flags_dbg_all -gvms"
  13626. flags_dbg_yes="-g"
  13627. flags_dbg_off=""
  13628. flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
  13629. flags_opt_yes="-O2"
  13630. flags_opt_off="-O0"
  13631. if test -z "$SED"; then
  13632. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13633. fi
  13634. if test -z "$GREP"; then
  13635. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13636. fi
  13637. tmp_exp=""
  13638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13639. /* end confdefs.h. */
  13640. #ifdef _WIN32
  13641. CURL_DEF_TOKEN _WIN32
  13642. #endif
  13643. _ACEOF
  13644. if ac_fn_c_try_cpp "$LINENO"; then :
  13645. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13646. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13647. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13648. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13649. if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
  13650. tmp_exp=""
  13651. fi
  13652. fi
  13653. rm -f conftest.err conftest.i conftest.$ac_ext
  13654. if test -z "$tmp_exp"; then
  13655. curl_cv_have_def__WIN32=no
  13656. else
  13657. curl_cv_have_def__WIN32=yes
  13658. curl_cv_def__WIN32=$tmp_exp
  13659. fi
  13660. else
  13661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13662. $as_echo "no" >&6; }
  13663. fi
  13664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
  13665. $as_echo_n "checking if compiler is LCC... " >&6; }
  13666. if test -z "$SED"; then
  13667. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13668. fi
  13669. if test -z "$GREP"; then
  13670. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13671. fi
  13672. tmp_exp=""
  13673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13674. /* end confdefs.h. */
  13675. #ifdef __LCC__
  13676. CURL_DEF_TOKEN __LCC__
  13677. #endif
  13678. _ACEOF
  13679. if ac_fn_c_try_cpp "$LINENO"; then :
  13680. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13681. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13682. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13683. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13684. if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
  13685. tmp_exp=""
  13686. fi
  13687. fi
  13688. rm -f conftest.err conftest.i conftest.$ac_ext
  13689. if test -z "$tmp_exp"; then
  13690. curl_cv_have_def___LCC__=no
  13691. else
  13692. curl_cv_have_def___LCC__=yes
  13693. curl_cv_def___LCC__=$tmp_exp
  13694. fi
  13695. if test "$curl_cv_have_def___LCC__" = "yes"; then
  13696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13697. $as_echo "yes" >&6; }
  13698. compiler_id="LCC"
  13699. flags_dbg_all="-g"
  13700. flags_dbg_yes="-g"
  13701. flags_dbg_off=""
  13702. flags_opt_all=""
  13703. flags_opt_yes=""
  13704. flags_opt_off=""
  13705. else
  13706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13707. $as_echo "no" >&6; }
  13708. fi
  13709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
  13710. $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
  13711. if test -z "$SED"; then
  13712. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13713. fi
  13714. if test -z "$GREP"; then
  13715. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13716. fi
  13717. tmp_exp=""
  13718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13719. /* end confdefs.h. */
  13720. #ifdef __GNUC__
  13721. CURL_DEF_TOKEN __GNUC__
  13722. #endif
  13723. _ACEOF
  13724. if ac_fn_c_try_cpp "$LINENO"; then :
  13725. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13726. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13727. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13728. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13729. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  13730. tmp_exp=""
  13731. fi
  13732. fi
  13733. rm -f conftest.err conftest.i conftest.$ac_ext
  13734. if test -z "$tmp_exp"; then
  13735. curl_cv_have_def___GNUC__=no
  13736. else
  13737. curl_cv_have_def___GNUC__=yes
  13738. curl_cv_def___GNUC__=$tmp_exp
  13739. fi
  13740. if test -z "$SED"; then
  13741. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13742. fi
  13743. if test -z "$GREP"; then
  13744. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13745. fi
  13746. tmp_exp=""
  13747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13748. /* end confdefs.h. */
  13749. #ifdef _COMPILER_VERSION
  13750. CURL_DEF_TOKEN _COMPILER_VERSION
  13751. #endif
  13752. _ACEOF
  13753. if ac_fn_c_try_cpp "$LINENO"; then :
  13754. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13755. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13756. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13757. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13758. if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
  13759. tmp_exp=""
  13760. fi
  13761. fi
  13762. rm -f conftest.err conftest.i conftest.$ac_ext
  13763. if test -z "$tmp_exp"; then
  13764. curl_cv_have_def__COMPILER_VERSION=no
  13765. else
  13766. curl_cv_have_def__COMPILER_VERSION=yes
  13767. curl_cv_def__COMPILER_VERSION=$tmp_exp
  13768. fi
  13769. if test -z "$SED"; then
  13770. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13771. fi
  13772. if test -z "$GREP"; then
  13773. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13774. fi
  13775. tmp_exp=""
  13776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13777. /* end confdefs.h. */
  13778. #ifdef _SGI_COMPILER_VERSION
  13779. CURL_DEF_TOKEN _SGI_COMPILER_VERSION
  13780. #endif
  13781. _ACEOF
  13782. if ac_fn_c_try_cpp "$LINENO"; then :
  13783. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13784. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13785. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13786. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13787. if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
  13788. tmp_exp=""
  13789. fi
  13790. fi
  13791. rm -f conftest.err conftest.i conftest.$ac_ext
  13792. if test -z "$tmp_exp"; then
  13793. curl_cv_have_def__SGI_COMPILER_VERSION=no
  13794. else
  13795. curl_cv_have_def__SGI_COMPILER_VERSION=yes
  13796. curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
  13797. fi
  13798. if test "$curl_cv_have_def___GNUC__" = "no" &&
  13799. (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
  13800. test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
  13801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13802. $as_echo "yes" >&6; }
  13803. compiler_id="SGI_MIPSPRO_C"
  13804. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13805. flags_dbg_yes="-g"
  13806. flags_dbg_off=""
  13807. flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
  13808. flags_opt_yes="-O2"
  13809. flags_opt_off="-O0"
  13810. else
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13812. $as_echo "no" >&6; }
  13813. fi
  13814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
  13815. $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
  13816. if test -z "$SED"; then
  13817. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13818. fi
  13819. if test -z "$GREP"; then
  13820. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13821. fi
  13822. tmp_exp=""
  13823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13824. /* end confdefs.h. */
  13825. #ifdef __GNUC__
  13826. CURL_DEF_TOKEN __GNUC__
  13827. #endif
  13828. _ACEOF
  13829. if ac_fn_c_try_cpp "$LINENO"; then :
  13830. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13831. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13832. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13833. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13834. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  13835. tmp_exp=""
  13836. fi
  13837. fi
  13838. rm -f conftest.err conftest.i conftest.$ac_ext
  13839. if test -z "$tmp_exp"; then
  13840. curl_cv_have_def___GNUC__=no
  13841. else
  13842. curl_cv_have_def___GNUC__=yes
  13843. curl_cv_def___GNUC__=$tmp_exp
  13844. fi
  13845. if test -z "$SED"; then
  13846. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13847. fi
  13848. if test -z "$GREP"; then
  13849. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13850. fi
  13851. tmp_exp=""
  13852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13853. /* end confdefs.h. */
  13854. #ifdef __sgi
  13855. CURL_DEF_TOKEN __sgi
  13856. #endif
  13857. _ACEOF
  13858. if ac_fn_c_try_cpp "$LINENO"; then :
  13859. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13860. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13861. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13862. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13863. if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
  13864. tmp_exp=""
  13865. fi
  13866. fi
  13867. rm -f conftest.err conftest.i conftest.$ac_ext
  13868. if test -z "$tmp_exp"; then
  13869. curl_cv_have_def___sgi=no
  13870. else
  13871. curl_cv_have_def___sgi=yes
  13872. curl_cv_def___sgi=$tmp_exp
  13873. fi
  13874. if test "$curl_cv_have_def___GNUC__" = "no" &&
  13875. test "$curl_cv_have_def___sgi" = "yes" &&
  13876. test "$compiler_id" = "unknown"; then
  13877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13878. $as_echo "yes" >&6; }
  13879. compiler_id="SGI_MIPS_C"
  13880. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13881. flags_dbg_yes="-g"
  13882. flags_dbg_off=""
  13883. flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
  13884. flags_opt_yes="-O2"
  13885. flags_opt_off="-O0"
  13886. else
  13887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13888. $as_echo "no" >&6; }
  13889. fi
  13890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
  13891. $as_echo_n "checking if compiler is SunPro C... " >&6; }
  13892. if test -z "$SED"; then
  13893. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13894. fi
  13895. if test -z "$GREP"; then
  13896. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13897. fi
  13898. tmp_exp=""
  13899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13900. /* end confdefs.h. */
  13901. #ifdef __SUNPRO_C
  13902. CURL_DEF_TOKEN __SUNPRO_C
  13903. #endif
  13904. _ACEOF
  13905. if ac_fn_c_try_cpp "$LINENO"; then :
  13906. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13907. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13908. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13909. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13910. if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
  13911. tmp_exp=""
  13912. fi
  13913. fi
  13914. rm -f conftest.err conftest.i conftest.$ac_ext
  13915. if test -z "$tmp_exp"; then
  13916. curl_cv_have_def___SUNPRO_C=no
  13917. else
  13918. curl_cv_have_def___SUNPRO_C=yes
  13919. curl_cv_def___SUNPRO_C=$tmp_exp
  13920. fi
  13921. if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
  13922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13923. $as_echo "yes" >&6; }
  13924. compiler_id="SUNPRO_C"
  13925. flags_dbg_all="-g -s"
  13926. flags_dbg_yes="-g"
  13927. flags_dbg_off="-s"
  13928. flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
  13929. flags_opt_yes="-xO2"
  13930. flags_opt_off=""
  13931. else
  13932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13933. $as_echo "no" >&6; }
  13934. fi
  13935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
  13936. $as_echo_n "checking if compiler is Tiny C... " >&6; }
  13937. if test -z "$SED"; then
  13938. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13939. fi
  13940. if test -z "$GREP"; then
  13941. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13942. fi
  13943. tmp_exp=""
  13944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13945. /* end confdefs.h. */
  13946. #ifdef __TINYC__
  13947. CURL_DEF_TOKEN __TINYC__
  13948. #endif
  13949. _ACEOF
  13950. if ac_fn_c_try_cpp "$LINENO"; then :
  13951. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13952. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13953. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13954. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13955. if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
  13956. tmp_exp=""
  13957. fi
  13958. fi
  13959. rm -f conftest.err conftest.i conftest.$ac_ext
  13960. if test -z "$tmp_exp"; then
  13961. curl_cv_have_def___TINYC__=no
  13962. else
  13963. curl_cv_have_def___TINYC__=yes
  13964. curl_cv_def___TINYC__=$tmp_exp
  13965. fi
  13966. if test "$curl_cv_have_def___TINYC__" = "yes"; then
  13967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13968. $as_echo "yes" >&6; }
  13969. compiler_id="TINY_C"
  13970. flags_dbg_all="-g -b"
  13971. flags_dbg_yes="-g"
  13972. flags_dbg_off=""
  13973. flags_opt_all=""
  13974. flags_opt_yes=""
  13975. flags_opt_off=""
  13976. else
  13977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13978. $as_echo "no" >&6; }
  13979. fi
  13980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
  13981. $as_echo_n "checking if compiler is Watcom C... " >&6; }
  13982. if test -z "$SED"; then
  13983. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13984. fi
  13985. if test -z "$GREP"; then
  13986. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13987. fi
  13988. tmp_exp=""
  13989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13990. /* end confdefs.h. */
  13991. #ifdef __WATCOMC__
  13992. CURL_DEF_TOKEN __WATCOMC__
  13993. #endif
  13994. _ACEOF
  13995. if ac_fn_c_try_cpp "$LINENO"; then :
  13996. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13997. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13998. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13999. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14000. if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
  14001. tmp_exp=""
  14002. fi
  14003. fi
  14004. rm -f conftest.err conftest.i conftest.$ac_ext
  14005. if test -z "$tmp_exp"; then
  14006. curl_cv_have_def___WATCOMC__=no
  14007. else
  14008. curl_cv_have_def___WATCOMC__=yes
  14009. curl_cv_def___WATCOMC__=$tmp_exp
  14010. fi
  14011. if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
  14012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14013. $as_echo "yes" >&6; }
  14014. if test -z "$SED"; then
  14015. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14016. fi
  14017. if test -z "$GREP"; then
  14018. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14019. fi
  14020. tmp_exp=""
  14021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14022. /* end confdefs.h. */
  14023. #ifdef __UNIX__
  14024. CURL_DEF_TOKEN __UNIX__
  14025. #endif
  14026. _ACEOF
  14027. if ac_fn_c_try_cpp "$LINENO"; then :
  14028. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14029. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14030. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14031. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14032. if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
  14033. tmp_exp=""
  14034. fi
  14035. fi
  14036. rm -f conftest.err conftest.i conftest.$ac_ext
  14037. if test -z "$tmp_exp"; then
  14038. curl_cv_have_def___UNIX__=no
  14039. else
  14040. curl_cv_have_def___UNIX__=yes
  14041. curl_cv_def___UNIX__=$tmp_exp
  14042. fi
  14043. if test "$curl_cv_have_def___UNIX__" = "yes"; then
  14044. compiler_id="WATCOM_UNIX_C"
  14045. flags_dbg_all="-g1 -g1+ -g2 -g3"
  14046. flags_dbg_yes="-g2"
  14047. flags_dbg_off=""
  14048. flags_opt_all="-O0 -O1 -O2 -O3"
  14049. flags_opt_yes="-O2"
  14050. flags_opt_off="-O0"
  14051. else
  14052. compiler_id="WATCOM_WINDOWS_C"
  14053. flags_dbg_all=""
  14054. flags_dbg_yes=""
  14055. flags_dbg_off=""
  14056. flags_opt_all=""
  14057. flags_opt_yes=""
  14058. flags_opt_off=""
  14059. fi
  14060. else
  14061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14062. $as_echo "no" >&6; }
  14063. fi
  14064. #
  14065. if test "$compiler_id" = "unknown"; then
  14066. cat <<_EOF 1>&2
  14067. ***
  14068. *** Warning: This configure script does not have information about the
  14069. *** compiler you are using, relative to the flags required to enable or
  14070. *** disable generation of debug info, optimization options or warnings.
  14071. ***
  14072. *** Whatever settings are present in CFLAGS will be used for this run.
  14073. ***
  14074. *** If you wish to help the cURL project to better support your compiler
  14075. *** you can report this and the required info on the libcurl development
  14076. *** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
  14077. ***
  14078. _EOF
  14079. fi
  14080. squeeze() {
  14081. _sqz_result=""
  14082. eval _sqz_input=\$$1
  14083. for _sqz_token in $_sqz_input; do
  14084. if test -z "$_sqz_result"; then
  14085. _sqz_result="$_sqz_token"
  14086. else
  14087. _sqz_result="$_sqz_result $_sqz_token"
  14088. fi
  14089. done
  14090. eval $1=\$_sqz_result
  14091. return 0
  14092. }
  14093. #
  14094. if test "$compiler_id" != "unknown"; then
  14095. #
  14096. if test "$compiler_id" = "GNU_C" ||
  14097. test "$compiler_id" = "CLANG"; then
  14098. if test "$compiler_id" = "GNU_C" ||
  14099. test "$compiler_id" = "CLANG"; then
  14100. tmp_has_include="no"
  14101. tmp_chg_FLAGS="$CFLAGS"
  14102. for word1 in $tmp_chg_FLAGS; do
  14103. case "$word1" in
  14104. -I*)
  14105. tmp_has_include="yes"
  14106. ;;
  14107. esac
  14108. done
  14109. if test "$tmp_has_include" = "yes"; then
  14110. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
  14111. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
  14112. CFLAGS="$tmp_chg_FLAGS"
  14113. squeeze CFLAGS
  14114. fi
  14115. tmp_has_include="no"
  14116. tmp_chg_FLAGS="$CPPFLAGS"
  14117. for word1 in $tmp_chg_FLAGS; do
  14118. case "$word1" in
  14119. -I*)
  14120. tmp_has_include="yes"
  14121. ;;
  14122. esac
  14123. done
  14124. if test "$tmp_has_include" = "yes"; then
  14125. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
  14126. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
  14127. CPPFLAGS="$tmp_chg_FLAGS"
  14128. squeeze CPPFLAGS
  14129. fi
  14130. fi
  14131. fi
  14132. #
  14133. tmp_save_CPPFLAGS="$CPPFLAGS"
  14134. tmp_save_CFLAGS="$CFLAGS"
  14135. tmp_CPPFLAGS=""
  14136. tmp_CFLAGS=""
  14137. #
  14138. case "$compiler_id" in
  14139. #
  14140. CLANG)
  14141. #
  14142. tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
  14143. ;;
  14144. #
  14145. DEC_C)
  14146. #
  14147. tmp_CFLAGS="$tmp_CFLAGS -std1"
  14148. tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
  14149. tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
  14150. tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
  14151. ;;
  14152. #
  14153. GNU_C)
  14154. #
  14155. tmp_CFLAGS="$tmp_CFLAGS"
  14156. ;;
  14157. #
  14158. HP_UX_C)
  14159. #
  14160. tmp_CFLAGS="$tmp_CFLAGS -z"
  14161. tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
  14162. ;;
  14163. #
  14164. IBM_C)
  14165. #
  14166. tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
  14167. tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
  14168. tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
  14169. ;;
  14170. #
  14171. INTEL_UNIX_C)
  14172. #
  14173. tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
  14174. tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
  14175. tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
  14176. ;;
  14177. #
  14178. INTEL_WINDOWS_C)
  14179. #
  14180. tmp_CFLAGS="$tmp_CFLAGS"
  14181. ;;
  14182. #
  14183. LCC)
  14184. #
  14185. tmp_CFLAGS="$tmp_CFLAGS -n"
  14186. ;;
  14187. #
  14188. SGI_MIPS_C)
  14189. #
  14190. tmp_CFLAGS="$tmp_CFLAGS"
  14191. ;;
  14192. #
  14193. SGI_MIPSPRO_C)
  14194. #
  14195. tmp_CFLAGS="$tmp_CFLAGS"
  14196. ;;
  14197. #
  14198. SUNPRO_C)
  14199. #
  14200. tmp_CFLAGS="$tmp_CFLAGS"
  14201. ;;
  14202. #
  14203. TINY_C)
  14204. #
  14205. tmp_CFLAGS="$tmp_CFLAGS"
  14206. ;;
  14207. #
  14208. WATCOM_UNIX_C)
  14209. #
  14210. tmp_CFLAGS="$tmp_CFLAGS"
  14211. ;;
  14212. #
  14213. WATCOM_WINDOWS_C)
  14214. #
  14215. tmp_CFLAGS="$tmp_CFLAGS"
  14216. ;;
  14217. #
  14218. esac
  14219. #
  14220. squeeze tmp_CPPFLAGS
  14221. squeeze tmp_CFLAGS
  14222. #
  14223. if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
  14224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
  14225. $as_echo_n "checking if compiler accepts some basic options... " >&6; }
  14226. CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
  14227. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  14228. squeeze CPPFLAGS
  14229. squeeze CFLAGS
  14230. tmp_compiler_works="unknown"
  14231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14232. /* end confdefs.h. */
  14233. int main (void)
  14234. {
  14235. int i = 1;
  14236. return i;
  14237. ;
  14238. return 0;
  14239. }
  14240. _ACEOF
  14241. if ac_fn_c_try_compile "$LINENO"; then :
  14242. tmp_compiler_works="yes"
  14243. else
  14244. tmp_compiler_works="no"
  14245. echo " " >&6
  14246. sed 's/^/cc-fail: /' conftest.err >&6
  14247. echo " " >&6
  14248. fi
  14249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14250. if test "$tmp_compiler_works" = "yes"; then
  14251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14252. /* end confdefs.h. */
  14253. int main (void)
  14254. {
  14255. int i = 1;
  14256. return i;
  14257. ;
  14258. return 0;
  14259. }
  14260. _ACEOF
  14261. if ac_fn_c_try_link "$LINENO"; then :
  14262. tmp_compiler_works="yes"
  14263. else
  14264. tmp_compiler_works="no"
  14265. echo " " >&6
  14266. sed 's/^/link-fail: /' conftest.err >&6
  14267. echo " " >&6
  14268. fi
  14269. rm -f core conftest.err conftest.$ac_objext \
  14270. conftest$ac_exeext conftest.$ac_ext
  14271. fi
  14272. if test "x$cross_compiling" != "xyes" &&
  14273. test "$tmp_compiler_works" = "yes"; then
  14274. if test "$cross_compiling" = yes; then :
  14275. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14276. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14277. as_fn_error $? "cannot run test program while cross compiling
  14278. See \`config.log' for more details" "$LINENO" 5; }
  14279. else
  14280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14281. /* end confdefs.h. */
  14282. # ifdef __STDC__
  14283. # include <stdlib.h>
  14284. # endif
  14285. int main (void)
  14286. {
  14287. int i = 0;
  14288. exit(i);
  14289. ;
  14290. return 0;
  14291. }
  14292. _ACEOF
  14293. if ac_fn_c_try_run "$LINENO"; then :
  14294. tmp_compiler_works="yes"
  14295. else
  14296. tmp_compiler_works="no"
  14297. echo " " >&6
  14298. echo "run-fail: test program exited with status $ac_status" >&6
  14299. echo " " >&6
  14300. fi
  14301. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14302. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14303. fi
  14304. fi
  14305. if test "$tmp_compiler_works" = "yes"; then
  14306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14307. $as_echo "yes" >&6; }
  14308. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  14309. $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
  14310. else
  14311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14312. $as_echo "no" >&6; }
  14313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  14314. $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
  14315. CPPFLAGS="$tmp_save_CPPFLAGS"
  14316. CFLAGS="$tmp_save_CFLAGS"
  14317. fi
  14318. fi
  14319. #
  14320. fi
  14321. #
  14322. if test "$compiler_id" != "unknown"; then
  14323. #
  14324. tmp_save_CFLAGS="$CFLAGS"
  14325. tmp_save_CPPFLAGS="$CPPFLAGS"
  14326. #
  14327. tmp_options=""
  14328. tmp_CFLAGS="$CFLAGS"
  14329. tmp_CPPFLAGS="$CPPFLAGS"
  14330. ac_var_stripped=""
  14331. for word1 in $tmp_CFLAGS; do
  14332. ac_var_strip_word="no"
  14333. for word2 in $flags_dbg_all; do
  14334. if test "$word1" = "$word2"; then
  14335. ac_var_strip_word="yes"
  14336. fi
  14337. done
  14338. if test "$ac_var_strip_word" = "no"; then
  14339. ac_var_stripped="$ac_var_stripped $word1"
  14340. fi
  14341. done
  14342. tmp_CFLAGS="$ac_var_stripped"
  14343. squeeze tmp_CFLAGS
  14344. ac_var_stripped=""
  14345. for word1 in $tmp_CPPFLAGS; do
  14346. ac_var_strip_word="no"
  14347. for word2 in $flags_dbg_all; do
  14348. if test "$word1" = "$word2"; then
  14349. ac_var_strip_word="yes"
  14350. fi
  14351. done
  14352. if test "$ac_var_strip_word" = "no"; then
  14353. ac_var_stripped="$ac_var_stripped $word1"
  14354. fi
  14355. done
  14356. tmp_CPPFLAGS="$ac_var_stripped"
  14357. squeeze tmp_CPPFLAGS
  14358. #
  14359. if test "$want_debug" = "yes"; then
  14360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
  14361. $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
  14362. tmp_options="$flags_dbg_yes"
  14363. fi
  14364. if test "$want_debug" = "no"; then
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
  14366. $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
  14367. tmp_options="$flags_dbg_off"
  14368. fi
  14369. #
  14370. if test "$flags_prefer_cppflags" = "yes"; then
  14371. CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
  14372. CFLAGS="$tmp_CFLAGS"
  14373. else
  14374. CPPFLAGS="$tmp_CPPFLAGS"
  14375. CFLAGS="$tmp_CFLAGS $tmp_options"
  14376. fi
  14377. squeeze CPPFLAGS
  14378. squeeze CFLAGS
  14379. tmp_compiler_works="unknown"
  14380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14381. /* end confdefs.h. */
  14382. int main (void)
  14383. {
  14384. int i = 1;
  14385. return i;
  14386. ;
  14387. return 0;
  14388. }
  14389. _ACEOF
  14390. if ac_fn_c_try_compile "$LINENO"; then :
  14391. tmp_compiler_works="yes"
  14392. else
  14393. tmp_compiler_works="no"
  14394. echo " " >&6
  14395. sed 's/^/cc-fail: /' conftest.err >&6
  14396. echo " " >&6
  14397. fi
  14398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14399. if test "$tmp_compiler_works" = "yes"; then
  14400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14401. /* end confdefs.h. */
  14402. int main (void)
  14403. {
  14404. int i = 1;
  14405. return i;
  14406. ;
  14407. return 0;
  14408. }
  14409. _ACEOF
  14410. if ac_fn_c_try_link "$LINENO"; then :
  14411. tmp_compiler_works="yes"
  14412. else
  14413. tmp_compiler_works="no"
  14414. echo " " >&6
  14415. sed 's/^/link-fail: /' conftest.err >&6
  14416. echo " " >&6
  14417. fi
  14418. rm -f core conftest.err conftest.$ac_objext \
  14419. conftest$ac_exeext conftest.$ac_ext
  14420. fi
  14421. if test "x$cross_compiling" != "xyes" &&
  14422. test "$tmp_compiler_works" = "yes"; then
  14423. if test "$cross_compiling" = yes; then :
  14424. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14425. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14426. as_fn_error $? "cannot run test program while cross compiling
  14427. See \`config.log' for more details" "$LINENO" 5; }
  14428. else
  14429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14430. /* end confdefs.h. */
  14431. # ifdef __STDC__
  14432. # include <stdlib.h>
  14433. # endif
  14434. int main (void)
  14435. {
  14436. int i = 0;
  14437. exit(i);
  14438. ;
  14439. return 0;
  14440. }
  14441. _ACEOF
  14442. if ac_fn_c_try_run "$LINENO"; then :
  14443. tmp_compiler_works="yes"
  14444. else
  14445. tmp_compiler_works="no"
  14446. echo " " >&6
  14447. echo "run-fail: test program exited with status $ac_status" >&6
  14448. echo " " >&6
  14449. fi
  14450. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14451. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14452. fi
  14453. fi
  14454. if test "$tmp_compiler_works" = "yes"; then
  14455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14456. $as_echo "yes" >&6; }
  14457. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
  14458. $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
  14459. else
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14461. $as_echo "no" >&6; }
  14462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
  14463. $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
  14464. CPPFLAGS="$tmp_save_CPPFLAGS"
  14465. CFLAGS="$tmp_save_CFLAGS"
  14466. fi
  14467. #
  14468. fi
  14469. #
  14470. if test "$compiler_id" != "unknown"; then
  14471. #
  14472. tmp_save_CFLAGS="$CFLAGS"
  14473. tmp_save_CPPFLAGS="$CPPFLAGS"
  14474. #
  14475. tmp_options=""
  14476. tmp_CFLAGS="$CFLAGS"
  14477. tmp_CPPFLAGS="$CPPFLAGS"
  14478. honor_optimize_option="yes"
  14479. #
  14480. #
  14481. if test "$want_optimize" = "assume_no" ||
  14482. test "$want_optimize" = "assume_yes"; then
  14483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
  14484. $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
  14485. ac_var_match_word="no"
  14486. for word1 in $tmp_CFLAGS; do
  14487. for word2 in $flags_opt_all; do
  14488. if test "$word1" = "$word2"; then
  14489. ac_var_match_word="yes"
  14490. fi
  14491. done
  14492. done
  14493. if test "$ac_var_match_word" = "yes"; then
  14494. honor_optimize_option="no"
  14495. fi
  14496. ac_var_match_word="no"
  14497. for word1 in $tmp_CPPFLAGS; do
  14498. for word2 in $flags_opt_all; do
  14499. if test "$word1" = "$word2"; then
  14500. ac_var_match_word="yes"
  14501. fi
  14502. done
  14503. done
  14504. if test "$ac_var_match_word" = "yes"; then
  14505. honor_optimize_option="no"
  14506. fi
  14507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
  14508. $as_echo "$honor_optimize_option" >&6; }
  14509. if test "$honor_optimize_option" = "yes"; then
  14510. if test "$want_optimize" = "assume_yes"; then
  14511. want_optimize="yes"
  14512. fi
  14513. if test "$want_optimize" = "assume_no"; then
  14514. want_optimize="no"
  14515. fi
  14516. fi
  14517. fi
  14518. #
  14519. if test "$honor_optimize_option" = "yes"; then
  14520. ac_var_stripped=""
  14521. for word1 in $tmp_CFLAGS; do
  14522. ac_var_strip_word="no"
  14523. for word2 in $flags_opt_all; do
  14524. if test "$word1" = "$word2"; then
  14525. ac_var_strip_word="yes"
  14526. fi
  14527. done
  14528. if test "$ac_var_strip_word" = "no"; then
  14529. ac_var_stripped="$ac_var_stripped $word1"
  14530. fi
  14531. done
  14532. tmp_CFLAGS="$ac_var_stripped"
  14533. squeeze tmp_CFLAGS
  14534. ac_var_stripped=""
  14535. for word1 in $tmp_CPPFLAGS; do
  14536. ac_var_strip_word="no"
  14537. for word2 in $flags_opt_all; do
  14538. if test "$word1" = "$word2"; then
  14539. ac_var_strip_word="yes"
  14540. fi
  14541. done
  14542. if test "$ac_var_strip_word" = "no"; then
  14543. ac_var_stripped="$ac_var_stripped $word1"
  14544. fi
  14545. done
  14546. tmp_CPPFLAGS="$ac_var_stripped"
  14547. squeeze tmp_CPPFLAGS
  14548. if test "$want_optimize" = "yes"; then
  14549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
  14550. $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
  14551. tmp_options="$flags_opt_yes"
  14552. fi
  14553. if test "$want_optimize" = "no"; then
  14554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
  14555. $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
  14556. tmp_options="$flags_opt_off"
  14557. fi
  14558. if test "$flags_prefer_cppflags" = "yes"; then
  14559. CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
  14560. CFLAGS="$tmp_CFLAGS"
  14561. else
  14562. CPPFLAGS="$tmp_CPPFLAGS"
  14563. CFLAGS="$tmp_CFLAGS $tmp_options"
  14564. fi
  14565. squeeze CPPFLAGS
  14566. squeeze CFLAGS
  14567. tmp_compiler_works="unknown"
  14568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14569. /* end confdefs.h. */
  14570. int main (void)
  14571. {
  14572. int i = 1;
  14573. return i;
  14574. ;
  14575. return 0;
  14576. }
  14577. _ACEOF
  14578. if ac_fn_c_try_compile "$LINENO"; then :
  14579. tmp_compiler_works="yes"
  14580. else
  14581. tmp_compiler_works="no"
  14582. echo " " >&6
  14583. sed 's/^/cc-fail: /' conftest.err >&6
  14584. echo " " >&6
  14585. fi
  14586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14587. if test "$tmp_compiler_works" = "yes"; then
  14588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14589. /* end confdefs.h. */
  14590. int main (void)
  14591. {
  14592. int i = 1;
  14593. return i;
  14594. ;
  14595. return 0;
  14596. }
  14597. _ACEOF
  14598. if ac_fn_c_try_link "$LINENO"; then :
  14599. tmp_compiler_works="yes"
  14600. else
  14601. tmp_compiler_works="no"
  14602. echo " " >&6
  14603. sed 's/^/link-fail: /' conftest.err >&6
  14604. echo " " >&6
  14605. fi
  14606. rm -f core conftest.err conftest.$ac_objext \
  14607. conftest$ac_exeext conftest.$ac_ext
  14608. fi
  14609. if test "x$cross_compiling" != "xyes" &&
  14610. test "$tmp_compiler_works" = "yes"; then
  14611. if test "$cross_compiling" = yes; then :
  14612. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14613. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14614. as_fn_error $? "cannot run test program while cross compiling
  14615. See \`config.log' for more details" "$LINENO" 5; }
  14616. else
  14617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14618. /* end confdefs.h. */
  14619. # ifdef __STDC__
  14620. # include <stdlib.h>
  14621. # endif
  14622. int main (void)
  14623. {
  14624. int i = 0;
  14625. exit(i);
  14626. ;
  14627. return 0;
  14628. }
  14629. _ACEOF
  14630. if ac_fn_c_try_run "$LINENO"; then :
  14631. tmp_compiler_works="yes"
  14632. else
  14633. tmp_compiler_works="no"
  14634. echo " " >&6
  14635. echo "run-fail: test program exited with status $ac_status" >&6
  14636. echo " " >&6
  14637. fi
  14638. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14639. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14640. fi
  14641. fi
  14642. if test "$tmp_compiler_works" = "yes"; then
  14643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14644. $as_echo "yes" >&6; }
  14645. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
  14646. $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
  14647. else
  14648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14649. $as_echo "no" >&6; }
  14650. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
  14651. $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
  14652. CPPFLAGS="$tmp_save_CPPFLAGS"
  14653. CFLAGS="$tmp_save_CFLAGS"
  14654. fi
  14655. fi
  14656. #
  14657. fi
  14658. #
  14659. if test "$compiler_id" != "unknown"; then
  14660. #
  14661. tmp_save_CPPFLAGS="$CPPFLAGS"
  14662. tmp_save_CFLAGS="$CFLAGS"
  14663. tmp_CPPFLAGS=""
  14664. tmp_CFLAGS=""
  14665. #
  14666. case "$compiler_id" in
  14667. #
  14668. CLANG)
  14669. #
  14670. if test "$want_warnings" = "yes"; then
  14671. tmp_CFLAGS="$tmp_CFLAGS -pedantic"
  14672. tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
  14673. tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
  14674. tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
  14675. tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
  14676. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
  14677. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
  14678. tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
  14679. tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
  14680. tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
  14681. tmp_CFLAGS="$tmp_CFLAGS -Wundef"
  14682. tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
  14683. tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
  14684. tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
  14685. tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
  14686. tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
  14687. tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
  14688. #
  14689. if test "$compiler_num" -ge "101"; then
  14690. tmp_CFLAGS="$tmp_CFLAGS -Wunused"
  14691. fi
  14692. fi
  14693. ;;
  14694. #
  14695. DEC_C)
  14696. #
  14697. if test "$want_warnings" = "yes"; then
  14698. tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
  14699. fi
  14700. ;;
  14701. #
  14702. GNU_C)
  14703. #
  14704. if test "$want_warnings" = "yes"; then
  14705. #
  14706. if test "x$cross_compiling" != "xyes" ||
  14707. test "$compiler_num" -ge "300"; then
  14708. tmp_CFLAGS="$tmp_CFLAGS -pedantic"
  14709. fi
  14710. #
  14711. tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
  14712. #
  14713. if test "$compiler_num" -ge "104"; then
  14714. tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
  14715. if test "x$cross_compiling" != "xyes" ||
  14716. test "$compiler_num" -ge "300"; then
  14717. tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
  14718. fi
  14719. fi
  14720. #
  14721. if test "$compiler_num" -ge "207"; then
  14722. tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
  14723. if test "x$cross_compiling" != "xyes" ||
  14724. test "$compiler_num" -ge "300"; then
  14725. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
  14726. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
  14727. fi
  14728. fi
  14729. #
  14730. if test "$compiler_num" -ge "295"; then
  14731. tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
  14732. fi
  14733. #
  14734. if test "$compiler_num" -ge "296"; then
  14735. tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
  14736. tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
  14737. tmp_CFLAGS="$tmp_CFLAGS -Wundef"
  14738. fi
  14739. #
  14740. if test "$compiler_num" -ge "297"; then
  14741. tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
  14742. fi
  14743. #
  14744. if test "$compiler_num" -ge "300"; then
  14745. tmp_CFLAGS="$tmp_CFLAGS"
  14746. fi
  14747. #
  14748. if test "$compiler_num" -ge "303"; then
  14749. tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
  14750. fi
  14751. #
  14752. if test "$compiler_num" -ge "304"; then
  14753. tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
  14754. fi
  14755. #
  14756. if test "$compiler_num" -ge "400"; then
  14757. tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
  14758. fi
  14759. #
  14760. if test "$compiler_num" -ge "402"; then
  14761. tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
  14762. fi
  14763. #
  14764. if test "$compiler_num" -ge "403"; then
  14765. tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
  14766. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
  14767. tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
  14768. tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
  14769. fi
  14770. #
  14771. if test "$compiler_num" -ge "405"; then
  14772. if test "$curl_cv_have_def__WIN32" = "yes"; then
  14773. tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
  14774. fi
  14775. fi
  14776. #
  14777. fi
  14778. #
  14779. if test "$compiler_num" -ge "300"; then
  14780. tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
  14781. else
  14782. if test "x$cross_compiling" = "xyes"; then
  14783. if test "$compiler_num" -ge "104"; then
  14784. tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
  14785. fi
  14786. if test "$compiler_num" -ge "207"; then
  14787. tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
  14788. tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
  14789. fi
  14790. fi
  14791. fi
  14792. ;;
  14793. #
  14794. HP_UX_C)
  14795. #
  14796. if test "$want_warnings" = "yes"; then
  14797. tmp_CFLAGS="$tmp_CFLAGS +w1"
  14798. fi
  14799. ;;
  14800. #
  14801. IBM_C)
  14802. #
  14803. tmp_CFLAGS="$tmp_CFLAGS"
  14804. ;;
  14805. #
  14806. INTEL_UNIX_C)
  14807. #
  14808. if test "$want_warnings" = "yes"; then
  14809. if test "$compiler_num" -gt "600"; then
  14810. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
  14811. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
  14812. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
  14813. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
  14814. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
  14815. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
  14816. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
  14817. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
  14818. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
  14819. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
  14820. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
  14821. fi
  14822. fi
  14823. tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
  14824. tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
  14825. tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
  14826. if test "$compiler_num" -ge "1000"; then
  14827. tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
  14828. fi
  14829. ;;
  14830. #
  14831. INTEL_WINDOWS_C)
  14832. #
  14833. tmp_CFLAGS="$tmp_CFLAGS"
  14834. ;;
  14835. #
  14836. LCC)
  14837. #
  14838. if test "$want_warnings" = "yes"; then
  14839. tmp_CFLAGS="$tmp_CFLAGS"
  14840. fi
  14841. ;;
  14842. #
  14843. SGI_MIPS_C)
  14844. #
  14845. if test "$want_warnings" = "yes"; then
  14846. tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
  14847. fi
  14848. ;;
  14849. #
  14850. SGI_MIPSPRO_C)
  14851. #
  14852. if test "$want_warnings" = "yes"; then
  14853. tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
  14854. tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
  14855. fi
  14856. ;;
  14857. #
  14858. SUNPRO_C)
  14859. #
  14860. if test "$want_warnings" = "yes"; then
  14861. tmp_CFLAGS="$tmp_CFLAGS -v"
  14862. fi
  14863. ;;
  14864. #
  14865. TINY_C)
  14866. #
  14867. if test "$want_warnings" = "yes"; then
  14868. tmp_CFLAGS="$tmp_CFLAGS -Wall"
  14869. tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
  14870. tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
  14871. fi
  14872. ;;
  14873. #
  14874. WATCOM_UNIX_C)
  14875. #
  14876. if test "$want_warnings" = "yes"; then
  14877. tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
  14878. fi
  14879. ;;
  14880. #
  14881. WATCOM_WINDOWS_C)
  14882. #
  14883. tmp_CFLAGS="$tmp_CFLAGS"
  14884. ;;
  14885. #
  14886. esac
  14887. #
  14888. squeeze tmp_CPPFLAGS
  14889. squeeze tmp_CFLAGS
  14890. #
  14891. if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
  14892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
  14893. $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
  14894. CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
  14895. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  14896. squeeze CPPFLAGS
  14897. squeeze CFLAGS
  14898. tmp_compiler_works="unknown"
  14899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14900. /* end confdefs.h. */
  14901. int main (void)
  14902. {
  14903. int i = 1;
  14904. return i;
  14905. ;
  14906. return 0;
  14907. }
  14908. _ACEOF
  14909. if ac_fn_c_try_compile "$LINENO"; then :
  14910. tmp_compiler_works="yes"
  14911. else
  14912. tmp_compiler_works="no"
  14913. echo " " >&6
  14914. sed 's/^/cc-fail: /' conftest.err >&6
  14915. echo " " >&6
  14916. fi
  14917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14918. if test "$tmp_compiler_works" = "yes"; then
  14919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14920. /* end confdefs.h. */
  14921. int main (void)
  14922. {
  14923. int i = 1;
  14924. return i;
  14925. ;
  14926. return 0;
  14927. }
  14928. _ACEOF
  14929. if ac_fn_c_try_link "$LINENO"; then :
  14930. tmp_compiler_works="yes"
  14931. else
  14932. tmp_compiler_works="no"
  14933. echo " " >&6
  14934. sed 's/^/link-fail: /' conftest.err >&6
  14935. echo " " >&6
  14936. fi
  14937. rm -f core conftest.err conftest.$ac_objext \
  14938. conftest$ac_exeext conftest.$ac_ext
  14939. fi
  14940. if test "x$cross_compiling" != "xyes" &&
  14941. test "$tmp_compiler_works" = "yes"; then
  14942. if test "$cross_compiling" = yes; then :
  14943. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14944. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14945. as_fn_error $? "cannot run test program while cross compiling
  14946. See \`config.log' for more details" "$LINENO" 5; }
  14947. else
  14948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14949. /* end confdefs.h. */
  14950. # ifdef __STDC__
  14951. # include <stdlib.h>
  14952. # endif
  14953. int main (void)
  14954. {
  14955. int i = 0;
  14956. exit(i);
  14957. ;
  14958. return 0;
  14959. }
  14960. _ACEOF
  14961. if ac_fn_c_try_run "$LINENO"; then :
  14962. tmp_compiler_works="yes"
  14963. else
  14964. tmp_compiler_works="no"
  14965. echo " " >&6
  14966. echo "run-fail: test program exited with status $ac_status" >&6
  14967. echo " " >&6
  14968. fi
  14969. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14970. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14971. fi
  14972. fi
  14973. if test "$tmp_compiler_works" = "yes"; then
  14974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14975. $as_echo "yes" >&6; }
  14976. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  14977. $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
  14978. else
  14979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14980. $as_echo "no" >&6; }
  14981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  14982. $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
  14983. CPPFLAGS="$tmp_save_CPPFLAGS"
  14984. CFLAGS="$tmp_save_CFLAGS"
  14985. fi
  14986. fi
  14987. #
  14988. fi
  14989. if test "$compiler_id" = "INTEL_UNIX_C"; then
  14990. #
  14991. if test "$compiler_num" -ge "1000"; then
  14992. CFLAGS="$CFLAGS -shared-intel"
  14993. elif test "$compiler_num" -ge "900"; then
  14994. CFLAGS="$CFLAGS -i-dynamic"
  14995. fi
  14996. #
  14997. fi
  14998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
  14999. $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
  15000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15001. /* end confdefs.h. */
  15002. int main (void)
  15003. {
  15004. force compilation error
  15005. ;
  15006. return 0;
  15007. }
  15008. _ACEOF
  15009. if ac_fn_c_try_compile "$LINENO"; then :
  15010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15011. $as_echo "no" >&6; }
  15012. as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
  15013. else
  15014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15015. $as_echo "yes" >&6; }
  15016. fi
  15017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
  15019. $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
  15020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15021. /* end confdefs.h. */
  15022. typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
  15023. int main (void)
  15024. {
  15025. bad_t dummy;
  15026. ;
  15027. return 0;
  15028. }
  15029. _ACEOF
  15030. if ac_fn_c_try_compile "$LINENO"; then :
  15031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15032. $as_echo "no" >&6; }
  15033. as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
  15034. else
  15035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15036. $as_echo "yes" >&6; }
  15037. fi
  15038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
  15040. $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
  15041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15042. /* end confdefs.h. */
  15043. # include <stdlib.h>
  15044. int rand(int n);
  15045. int rand(int n)
  15046. {
  15047. if(n)
  15048. return ++n;
  15049. else
  15050. return n;
  15051. }
  15052. int main (void)
  15053. {
  15054. int i[2];
  15055. int j = rand(i[0]);
  15056. if(j)
  15057. return j;
  15058. ;
  15059. return 0;
  15060. }
  15061. _ACEOF
  15062. if ac_fn_c_try_compile "$LINENO"; then :
  15063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15064. $as_echo "no" >&6; }
  15065. as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
  15066. else
  15067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15068. $as_echo "yes" >&6; }
  15069. fi
  15070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
  15072. $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
  15073. supports_symbol_hiding="no"
  15074. symbol_hiding_CFLAGS=""
  15075. symbol_hiding_EXTERN=""
  15076. tmp_CFLAGS=""
  15077. tmp_EXTERN=""
  15078. case "$compiler_id" in
  15079. CLANG)
  15080. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  15081. tmp_CFLAGS="-fvisibility=hidden"
  15082. supports_symbol_hiding="yes"
  15083. ;;
  15084. GNU_C)
  15085. if test "$compiler_num" -ge "304"; then
  15086. if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
  15087. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  15088. tmp_CFLAGS="-fvisibility=hidden"
  15089. supports_symbol_hiding="yes"
  15090. fi
  15091. fi
  15092. ;;
  15093. INTEL_UNIX_C)
  15094. if test "$compiler_num" -ge "900"; then
  15095. if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
  15096. tmp_save_CFLAGS="$CFLAGS"
  15097. CFLAGS="$CFLAGS -fvisibility=hidden"
  15098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15099. /* end confdefs.h. */
  15100. # include <stdio.h>
  15101. int main (void)
  15102. {
  15103. printf("icc fvisibility bug test");
  15104. ;
  15105. return 0;
  15106. }
  15107. _ACEOF
  15108. if ac_fn_c_try_link "$LINENO"; then :
  15109. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  15110. tmp_CFLAGS="-fvisibility=hidden"
  15111. supports_symbol_hiding="yes"
  15112. fi
  15113. rm -f core conftest.err conftest.$ac_objext \
  15114. conftest$ac_exeext conftest.$ac_ext
  15115. CFLAGS="$tmp_save_CFLAGS"
  15116. fi
  15117. fi
  15118. ;;
  15119. SUNPRO_C)
  15120. if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
  15121. tmp_EXTERN="__global"
  15122. tmp_CFLAGS="-xldscope=hidden"
  15123. supports_symbol_hiding="yes"
  15124. fi
  15125. ;;
  15126. esac
  15127. if test "$supports_symbol_hiding" = "yes"; then
  15128. tmp_save_CFLAGS="$CFLAGS"
  15129. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  15130. squeeze CFLAGS
  15131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15132. /* end confdefs.h. */
  15133. $tmp_EXTERN char *dummy(char *buff);
  15134. char *dummy(char *buff)
  15135. {
  15136. if(buff)
  15137. return ++buff;
  15138. else
  15139. return buff;
  15140. }
  15141. int main (void)
  15142. {
  15143. char b[16];
  15144. char *r = dummy(&b[0]);
  15145. if(r)
  15146. return (int)*r;
  15147. ;
  15148. return 0;
  15149. }
  15150. _ACEOF
  15151. if ac_fn_c_try_compile "$LINENO"; then :
  15152. supports_symbol_hiding="yes"
  15153. if test -f conftest.err; then
  15154. grep 'visibility' conftest.err >/dev/null
  15155. if test "$?" -eq "0"; then
  15156. supports_symbol_hiding="no"
  15157. fi
  15158. fi
  15159. else
  15160. supports_symbol_hiding="no"
  15161. echo " " >&6
  15162. sed 's/^/cc-src: /' conftest.$ac_ext >&6
  15163. sed 's/^/cc-err: /' conftest.err >&6
  15164. echo " " >&6
  15165. fi
  15166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15167. CFLAGS="$tmp_save_CFLAGS"
  15168. fi
  15169. if test "$supports_symbol_hiding" = "yes"; then
  15170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15171. $as_echo "yes" >&6; }
  15172. symbol_hiding_CFLAGS="$tmp_CFLAGS"
  15173. symbol_hiding_EXTERN="$tmp_EXTERN"
  15174. else
  15175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15176. $as_echo "no" >&6; }
  15177. fi
  15178. supports_curldebug="unknown"
  15179. if test "$want_curldebug" = "yes"; then
  15180. if test "x$enable_shared" != "xno" &&
  15181. test "x$enable_shared" != "xyes"; then
  15182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
  15183. $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
  15184. supports_curldebug="no"
  15185. fi
  15186. if test "x$enable_static" != "xno" &&
  15187. test "x$enable_static" != "xyes"; then
  15188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
  15189. $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
  15190. supports_curldebug="no"
  15191. fi
  15192. if test "$supports_curldebug" != "no"; then
  15193. if test "$enable_shared" = "yes" &&
  15194. test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
  15195. supports_curldebug="no"
  15196. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
  15197. $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
  15198. fi
  15199. fi
  15200. fi
  15201. #
  15202. if test "$want_curldebug" = "yes"; then
  15203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
  15204. $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
  15205. test "$supports_curldebug" = "no" || supports_curldebug="yes"
  15206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
  15207. $as_echo "$supports_curldebug" >&6; }
  15208. if test "$supports_curldebug" = "no"; then
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
  15210. $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
  15211. want_curldebug="no"
  15212. fi
  15213. fi
  15214. #
  15215. if test "$want_curldebug" = "yes"; then
  15216. CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
  15217. squeeze CPPFLAGS
  15218. fi
  15219. if test "$want_debug" = "yes"; then
  15220. CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
  15221. squeeze CPPFLAGS
  15222. fi
  15223. if test x$want_curldebug = xyes; then
  15224. CURLDEBUG_TRUE=
  15225. CURLDEBUG_FALSE='#'
  15226. else
  15227. CURLDEBUG_TRUE='#'
  15228. CURLDEBUG_FALSE=
  15229. fi
  15230. supports_unittests=yes
  15231. # cross-compilation of unit tests static library/programs fails when
  15232. # libcurl shared library is built. This might be due to a libtool or
  15233. # automake issue. In this case we disable unit tests.
  15234. if test "x$cross_compiling" != "xno" &&
  15235. test "x$enable_shared" != "xno"; then
  15236. supports_unittests=no
  15237. fi
  15238. # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
  15239. # a problem related with OpenSSL headers and library versions not matching.
  15240. # Disable unit tests while time to further investigate this is found.
  15241. case $host in
  15242. mips-sgi-irix6.5)
  15243. if test "$compiler_id" = "GNU_C"; then
  15244. supports_unittests=no
  15245. fi
  15246. ;;
  15247. esac
  15248. # All AIX autobuilds fails unit tests linking against unittests library
  15249. # due to unittests library being built with no symbols or members. Libtool ?
  15250. # Disable unit tests while time to further investigate this is found.
  15251. case $host_os in
  15252. aix*)
  15253. supports_unittests=no
  15254. ;;
  15255. esac
  15256. if test "x$want_debug" = "xyes" &&
  15257. test "x$supports_unittests" = "xyes"; then
  15258. want_unittests=yes
  15259. else
  15260. want_unittests=no
  15261. fi
  15262. if test x$want_unittests = xyes; then
  15263. BUILD_UNITTESTS_TRUE=
  15264. BUILD_UNITTESTS_FALSE='#'
  15265. else
  15266. BUILD_UNITTESTS_TRUE='#'
  15267. BUILD_UNITTESTS_FALSE=
  15268. fi
  15269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  15270. $as_echo_n "checking for windows.h... " >&6; }
  15271. if ${ac_cv_header_windows_h+:} false; then :
  15272. $as_echo_n "(cached) " >&6
  15273. else
  15274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15275. /* end confdefs.h. */
  15276. #undef inline
  15277. #ifndef WIN32_LEAN_AND_MEAN
  15278. #define WIN32_LEAN_AND_MEAN
  15279. #endif
  15280. #include <windows.h>
  15281. int main (void)
  15282. {
  15283. #if defined(__CYGWIN__) || defined(__CEGCC__)
  15284. HAVE_WINDOWS_H shall not be defined.
  15285. #else
  15286. int dummy=2*WINVER;
  15287. #endif
  15288. ;
  15289. return 0;
  15290. }
  15291. _ACEOF
  15292. if ac_fn_c_try_compile "$LINENO"; then :
  15293. ac_cv_header_windows_h="yes"
  15294. else
  15295. ac_cv_header_windows_h="no"
  15296. fi
  15297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15298. fi
  15299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
  15300. $as_echo "$ac_cv_header_windows_h" >&6; }
  15301. case "$ac_cv_header_windows_h" in
  15302. yes)
  15303. cat >>confdefs.h <<_ACEOF
  15304. #define HAVE_WINDOWS_H 1
  15305. _ACEOF
  15306. cat >>confdefs.h <<_ACEOF
  15307. #define WIN32_LEAN_AND_MEAN 1
  15308. _ACEOF
  15309. ;;
  15310. esac
  15311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
  15312. $as_echo_n "checking whether build target is a native Windows one... " >&6; }
  15313. if ${ac_cv_native_windows+:} false; then :
  15314. $as_echo_n "(cached) " >&6
  15315. else
  15316. if test "$ac_cv_header_windows_h" = "no"; then
  15317. ac_cv_native_windows="no"
  15318. else
  15319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15320. /* end confdefs.h. */
  15321. int main (void)
  15322. {
  15323. #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
  15324. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
  15325. int dummy=1;
  15326. #else
  15327. Not a native Windows build target.
  15328. #endif
  15329. ;
  15330. return 0;
  15331. }
  15332. _ACEOF
  15333. if ac_fn_c_try_compile "$LINENO"; then :
  15334. ac_cv_native_windows="yes"
  15335. else
  15336. ac_cv_native_windows="no"
  15337. fi
  15338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15339. fi
  15340. fi
  15341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
  15342. $as_echo "$ac_cv_native_windows" >&6; }
  15343. if test "x$ac_cv_native_windows" = xyes; then
  15344. DOING_NATIVE_WINDOWS_TRUE=
  15345. DOING_NATIVE_WINDOWS_FALSE='#'
  15346. else
  15347. DOING_NATIVE_WINDOWS_TRUE='#'
  15348. DOING_NATIVE_WINDOWS_FALSE=
  15349. fi
  15350. case X-"$ac_cv_native_windows" in
  15351. X-yes)
  15352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
  15353. $as_echo_n "checking for winsock.h... " >&6; }
  15354. if ${ac_cv_header_winsock_h+:} false; then :
  15355. $as_echo_n "(cached) " >&6
  15356. else
  15357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15358. /* end confdefs.h. */
  15359. #undef inline
  15360. #ifndef WIN32_LEAN_AND_MEAN
  15361. #define WIN32_LEAN_AND_MEAN
  15362. #endif
  15363. #include <windows.h>
  15364. #include <winsock.h>
  15365. int main (void)
  15366. {
  15367. #if defined(__CYGWIN__) || defined(__CEGCC__)
  15368. HAVE_WINSOCK_H shall not be defined.
  15369. #else
  15370. int dummy=WSACleanup();
  15371. #endif
  15372. ;
  15373. return 0;
  15374. }
  15375. _ACEOF
  15376. if ac_fn_c_try_compile "$LINENO"; then :
  15377. ac_cv_header_winsock_h="yes"
  15378. else
  15379. ac_cv_header_winsock_h="no"
  15380. fi
  15381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15382. fi
  15383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
  15384. $as_echo "$ac_cv_header_winsock_h" >&6; }
  15385. case "$ac_cv_header_winsock_h" in
  15386. yes)
  15387. cat >>confdefs.h <<_ACEOF
  15388. #define HAVE_WINSOCK_H 1
  15389. _ACEOF
  15390. ;;
  15391. esac
  15392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  15393. $as_echo_n "checking for winsock2.h... " >&6; }
  15394. if ${ac_cv_header_winsock2_h+:} false; then :
  15395. $as_echo_n "(cached) " >&6
  15396. else
  15397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15398. /* end confdefs.h. */
  15399. #undef inline
  15400. #ifndef WIN32_LEAN_AND_MEAN
  15401. #define WIN32_LEAN_AND_MEAN
  15402. #endif
  15403. #include <windows.h>
  15404. #include <winsock2.h>
  15405. int main (void)
  15406. {
  15407. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  15408. HAVE_WINSOCK2_H shall not be defined.
  15409. #else
  15410. int dummy=2*IPPROTO_ESP;
  15411. #endif
  15412. ;
  15413. return 0;
  15414. }
  15415. _ACEOF
  15416. if ac_fn_c_try_compile "$LINENO"; then :
  15417. ac_cv_header_winsock2_h="yes"
  15418. else
  15419. ac_cv_header_winsock2_h="no"
  15420. fi
  15421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15422. fi
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
  15424. $as_echo "$ac_cv_header_winsock2_h" >&6; }
  15425. case "$ac_cv_header_winsock2_h" in
  15426. yes)
  15427. cat >>confdefs.h <<_ACEOF
  15428. #define HAVE_WINSOCK2_H 1
  15429. _ACEOF
  15430. ;;
  15431. esac
  15432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
  15433. $as_echo_n "checking for ws2tcpip.h... " >&6; }
  15434. if ${ac_cv_header_ws2tcpip_h+:} false; then :
  15435. $as_echo_n "(cached) " >&6
  15436. else
  15437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15438. /* end confdefs.h. */
  15439. #undef inline
  15440. #ifndef WIN32_LEAN_AND_MEAN
  15441. #define WIN32_LEAN_AND_MEAN
  15442. #endif
  15443. #include <windows.h>
  15444. #include <winsock2.h>
  15445. #include <ws2tcpip.h>
  15446. int main (void)
  15447. {
  15448. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  15449. HAVE_WS2TCPIP_H shall not be defined.
  15450. #else
  15451. int dummy=2*IP_PKTINFO;
  15452. #endif
  15453. ;
  15454. return 0;
  15455. }
  15456. _ACEOF
  15457. if ac_fn_c_try_compile "$LINENO"; then :
  15458. ac_cv_header_ws2tcpip_h="yes"
  15459. else
  15460. ac_cv_header_ws2tcpip_h="no"
  15461. fi
  15462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15463. fi
  15464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
  15465. $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
  15466. case "$ac_cv_header_ws2tcpip_h" in
  15467. yes)
  15468. cat >>confdefs.h <<_ACEOF
  15469. #define HAVE_WS2TCPIP_H 1
  15470. _ACEOF
  15471. ;;
  15472. esac
  15473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
  15474. $as_echo_n "checking for winldap.h... " >&6; }
  15475. if ${ac_cv_header_winldap_h+:} false; then :
  15476. $as_echo_n "(cached) " >&6
  15477. else
  15478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15479. /* end confdefs.h. */
  15480. #undef inline
  15481. #ifdef HAVE_WINDOWS_H
  15482. #ifndef WIN32_LEAN_AND_MEAN
  15483. #define WIN32_LEAN_AND_MEAN
  15484. #endif
  15485. #include <windows.h>
  15486. #endif
  15487. #include <winldap.h>
  15488. int main (void)
  15489. {
  15490. #if defined(__CYGWIN__) || defined(__CEGCC__)
  15491. HAVE_WINLDAP_H shall not be defined.
  15492. #else
  15493. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  15494. ULONG res = ldap_unbind(ldp);
  15495. #endif
  15496. ;
  15497. return 0;
  15498. }
  15499. _ACEOF
  15500. if ac_fn_c_try_compile "$LINENO"; then :
  15501. ac_cv_header_winldap_h="yes"
  15502. else
  15503. ac_cv_header_winldap_h="no"
  15504. fi
  15505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15506. fi
  15507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5
  15508. $as_echo "$ac_cv_header_winldap_h" >&6; }
  15509. case "$ac_cv_header_winldap_h" in
  15510. yes)
  15511. cat >>confdefs.h <<_ACEOF
  15512. #define HAVE_WINLDAP_H 1
  15513. _ACEOF
  15514. ;;
  15515. esac
  15516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
  15517. $as_echo_n "checking for winber.h... " >&6; }
  15518. if ${ac_cv_header_winber_h+:} false; then :
  15519. $as_echo_n "(cached) " >&6
  15520. else
  15521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15522. /* end confdefs.h. */
  15523. #undef inline
  15524. #ifdef HAVE_WINDOWS_H
  15525. #ifndef WIN32_LEAN_AND_MEAN
  15526. #define WIN32_LEAN_AND_MEAN
  15527. #endif
  15528. #include <windows.h>
  15529. #endif
  15530. #include <winldap.h>
  15531. #include <winber.h>
  15532. int main (void)
  15533. {
  15534. #if defined(__CYGWIN__) || defined(__CEGCC__)
  15535. HAVE_WINBER_H shall not be defined.
  15536. #else
  15537. BERVAL *bvp = NULL;
  15538. BerElement *bep = ber_init(bvp);
  15539. ber_free(bep, 1);
  15540. #endif
  15541. ;
  15542. return 0;
  15543. }
  15544. _ACEOF
  15545. if ac_fn_c_try_compile "$LINENO"; then :
  15546. ac_cv_header_winber_h="yes"
  15547. else
  15548. ac_cv_header_winber_h="no"
  15549. fi
  15550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15551. fi
  15552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
  15553. $as_echo "$ac_cv_header_winber_h" >&6; }
  15554. case "$ac_cv_header_winber_h" in
  15555. yes)
  15556. cat >>confdefs.h <<_ACEOF
  15557. #define HAVE_WINBER_H 1
  15558. _ACEOF
  15559. ;;
  15560. esac
  15561. ;;
  15562. *)
  15563. ac_cv_header_winsock_h="no"
  15564. ac_cv_header_winsock2_h="no"
  15565. ac_cv_header_ws2tcpip_h="no"
  15566. ac_cv_header_winldap_h="no"
  15567. ac_cv_header_winber_h="no"
  15568. ;;
  15569. esac
  15570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
  15571. $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
  15572. curl_win32_file_api="no"
  15573. if test "$ac_cv_header_windows_h" = "yes"; then
  15574. if test x"$enable_largefile" != "xno"; then
  15575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15576. /* end confdefs.h. */
  15577. int main (void)
  15578. {
  15579. #if !defined(_WIN32_WCE) && \
  15580. (defined(__MINGW32__) || \
  15581. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
  15582. int dummy=1;
  15583. #else
  15584. WIN32 large file API not supported.
  15585. #endif
  15586. ;
  15587. return 0;
  15588. }
  15589. _ACEOF
  15590. if ac_fn_c_try_compile "$LINENO"; then :
  15591. curl_win32_file_api="win32_large_files"
  15592. fi
  15593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15594. fi
  15595. if test "$curl_win32_file_api" = "no"; then
  15596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15597. /* end confdefs.h. */
  15598. int main (void)
  15599. {
  15600. #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
  15601. int dummy=1;
  15602. #else
  15603. WIN32 small file API not supported.
  15604. #endif
  15605. ;
  15606. return 0;
  15607. }
  15608. _ACEOF
  15609. if ac_fn_c_try_compile "$LINENO"; then :
  15610. curl_win32_file_api="win32_small_files"
  15611. fi
  15612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15613. fi
  15614. fi
  15615. case "$curl_win32_file_api" in
  15616. win32_large_files)
  15617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
  15618. $as_echo "yes (large file enabled)" >&6; }
  15619. cat >>confdefs.h <<_ACEOF
  15620. #define USE_WIN32_LARGE_FILES 1
  15621. _ACEOF
  15622. ;;
  15623. win32_small_files)
  15624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
  15625. $as_echo "yes (large file disabled)" >&6; }
  15626. cat >>confdefs.h <<_ACEOF
  15627. #define USE_WIN32_SMALL_FILES 1
  15628. _ACEOF
  15629. ;;
  15630. *)
  15631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15632. $as_echo "no" >&6; }
  15633. ;;
  15634. esac
  15635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
  15636. $as_echo_n "checking whether to support http... " >&6; }
  15637. # Check whether --enable-http was given.
  15638. if test "${enable_http+set}" = set; then :
  15639. enableval=$enable_http; case "$enableval" in
  15640. no)
  15641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15642. $as_echo "no" >&6; }
  15643. $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
  15644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
  15645. $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
  15646. CURL_DISABLE_HTTP=1
  15647. $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
  15648. CURL_DISABLE_RTSP=1
  15649. ;;
  15650. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15651. $as_echo "yes" >&6; }
  15652. ;;
  15653. esac
  15654. else
  15655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15656. $as_echo "yes" >&6; }
  15657. fi
  15658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
  15659. $as_echo_n "checking whether to support ftp... " >&6; }
  15660. # Check whether --enable-ftp was given.
  15661. if test "${enable_ftp+set}" = set; then :
  15662. enableval=$enable_ftp; case "$enableval" in
  15663. no)
  15664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15665. $as_echo "no" >&6; }
  15666. $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
  15667. CURL_DISABLE_FTP=1
  15668. ;;
  15669. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15670. $as_echo "yes" >&6; }
  15671. ;;
  15672. esac
  15673. else
  15674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15675. $as_echo "yes" >&6; }
  15676. fi
  15677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
  15678. $as_echo_n "checking whether to support file... " >&6; }
  15679. # Check whether --enable-file was given.
  15680. if test "${enable_file+set}" = set; then :
  15681. enableval=$enable_file; case "$enableval" in
  15682. no)
  15683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15684. $as_echo "no" >&6; }
  15685. $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
  15686. CURL_DISABLE_FILE=1
  15687. ;;
  15688. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15689. $as_echo "yes" >&6; }
  15690. ;;
  15691. esac
  15692. else
  15693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15694. $as_echo "yes" >&6; }
  15695. fi
  15696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
  15697. $as_echo_n "checking whether to support ldap... " >&6; }
  15698. # Check whether --enable-ldap was given.
  15699. if test "${enable_ldap+set}" = set; then :
  15700. enableval=$enable_ldap; case "$enableval" in
  15701. no)
  15702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15703. $as_echo "no" >&6; }
  15704. $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  15705. CURL_DISABLE_LDAP=1
  15706. ;;
  15707. *)
  15708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15709. $as_echo "yes" >&6; }
  15710. ;;
  15711. esac
  15712. else
  15713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15714. $as_echo "yes" >&6; }
  15715. fi
  15716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
  15717. $as_echo_n "checking whether to support ldaps... " >&6; }
  15718. # Check whether --enable-ldaps was given.
  15719. if test "${enable_ldaps+set}" = set; then :
  15720. enableval=$enable_ldaps; case "$enableval" in
  15721. no)
  15722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15723. $as_echo "no" >&6; }
  15724. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  15725. CURL_DISABLE_LDAPS=1
  15726. ;;
  15727. *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
  15728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
  15729. $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
  15730. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  15731. CURL_DISABLE_LDAPS=1
  15732. else
  15733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15734. $as_echo "yes" >&6; }
  15735. $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
  15736. HAVE_LDAP_SSL=1
  15737. fi
  15738. ;;
  15739. esac
  15740. else
  15741. if test "x$CURL_DISABLE_LDAP" = "x1" ; then
  15742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15743. $as_echo "no" >&6; }
  15744. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  15745. CURL_DISABLE_LDAPS=1
  15746. else
  15747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15748. $as_echo "yes" >&6; }
  15749. $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
  15750. HAVE_LDAP_SSL=1
  15751. fi
  15752. fi
  15753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
  15754. $as_echo_n "checking whether to support rtsp... " >&6; }
  15755. # Check whether --enable-rtsp was given.
  15756. if test "${enable_rtsp+set}" = set; then :
  15757. enableval=$enable_rtsp; case "$enableval" in
  15758. no)
  15759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15760. $as_echo "no" >&6; }
  15761. $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
  15762. CURL_DISABLE_RTSP=1
  15763. ;;
  15764. *) if test x$CURL_DISABLE_HTTP = x1 ; then
  15765. as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
  15766. else
  15767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15768. $as_echo "yes" >&6; }
  15769. curl_rtsp_msg="enabled"
  15770. fi
  15771. ;;
  15772. esac
  15773. else
  15774. if test "x$CURL_DISABLE_HTTP" != "x1"; then
  15775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15776. $as_echo "yes" >&6; }
  15777. curl_rtsp_msg="enabled"
  15778. else
  15779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15780. $as_echo "no" >&6; }
  15781. fi
  15782. fi
  15783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
  15784. $as_echo_n "checking whether to support proxies... " >&6; }
  15785. # Check whether --enable-proxy was given.
  15786. if test "${enable_proxy+set}" = set; then :
  15787. enableval=$enable_proxy; case "$enableval" in
  15788. no)
  15789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15790. $as_echo "no" >&6; }
  15791. $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
  15792. CURL_DISABLE_PROXY=1
  15793. ;;
  15794. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15795. $as_echo "yes" >&6; }
  15796. ;;
  15797. esac
  15798. else
  15799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15800. $as_echo "yes" >&6; }
  15801. fi
  15802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
  15803. $as_echo_n "checking whether to support dict... " >&6; }
  15804. # Check whether --enable-dict was given.
  15805. if test "${enable_dict+set}" = set; then :
  15806. enableval=$enable_dict; case "$enableval" in
  15807. no)
  15808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15809. $as_echo "no" >&6; }
  15810. $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
  15811. CURL_DISABLE_DICT=1
  15812. ;;
  15813. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15814. $as_echo "yes" >&6; }
  15815. ;;
  15816. esac
  15817. else
  15818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15819. $as_echo "yes" >&6; }
  15820. fi
  15821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
  15822. $as_echo_n "checking whether to support telnet... " >&6; }
  15823. # Check whether --enable-telnet was given.
  15824. if test "${enable_telnet+set}" = set; then :
  15825. enableval=$enable_telnet; case "$enableval" in
  15826. no)
  15827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15828. $as_echo "no" >&6; }
  15829. $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
  15830. CURL_DISABLE_TELNET=1
  15831. ;;
  15832. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15833. $as_echo "yes" >&6; }
  15834. ;;
  15835. esac
  15836. else
  15837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15838. $as_echo "yes" >&6; }
  15839. fi
  15840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
  15841. $as_echo_n "checking whether to support tftp... " >&6; }
  15842. # Check whether --enable-tftp was given.
  15843. if test "${enable_tftp+set}" = set; then :
  15844. enableval=$enable_tftp; case "$enableval" in
  15845. no)
  15846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15847. $as_echo "no" >&6; }
  15848. $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
  15849. CURL_DISABLE_TFTP=1
  15850. ;;
  15851. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15852. $as_echo "yes" >&6; }
  15853. ;;
  15854. esac
  15855. else
  15856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15857. $as_echo "yes" >&6; }
  15858. fi
  15859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
  15860. $as_echo_n "checking whether to support pop3... " >&6; }
  15861. # Check whether --enable-pop3 was given.
  15862. if test "${enable_pop3+set}" = set; then :
  15863. enableval=$enable_pop3; case "$enableval" in
  15864. no)
  15865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15866. $as_echo "no" >&6; }
  15867. $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
  15868. CURL_DISABLE_POP3=1
  15869. ;;
  15870. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15871. $as_echo "yes" >&6; }
  15872. ;;
  15873. esac
  15874. else
  15875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15876. $as_echo "yes" >&6; }
  15877. fi
  15878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
  15879. $as_echo_n "checking whether to support imap... " >&6; }
  15880. # Check whether --enable-imap was given.
  15881. if test "${enable_imap+set}" = set; then :
  15882. enableval=$enable_imap; case "$enableval" in
  15883. no)
  15884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15885. $as_echo "no" >&6; }
  15886. $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
  15887. CURL_DISABLE_IMAP=1
  15888. ;;
  15889. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15890. $as_echo "yes" >&6; }
  15891. ;;
  15892. esac
  15893. else
  15894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15895. $as_echo "yes" >&6; }
  15896. fi
  15897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
  15898. $as_echo_n "checking whether to support smtp... " >&6; }
  15899. # Check whether --enable-smtp was given.
  15900. if test "${enable_smtp+set}" = set; then :
  15901. enableval=$enable_smtp; case "$enableval" in
  15902. no)
  15903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15904. $as_echo "no" >&6; }
  15905. $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
  15906. CURL_DISABLE_SMTP=1
  15907. ;;
  15908. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15909. $as_echo "yes" >&6; }
  15910. ;;
  15911. esac
  15912. else
  15913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15914. $as_echo "yes" >&6; }
  15915. fi
  15916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
  15917. $as_echo_n "checking whether to support gopher... " >&6; }
  15918. # Check whether --enable-gopher was given.
  15919. if test "${enable_gopher+set}" = set; then :
  15920. enableval=$enable_gopher; case "$enableval" in
  15921. no)
  15922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15923. $as_echo "no" >&6; }
  15924. $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
  15925. CURL_DISABLE_GOPHER=1
  15926. ;;
  15927. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15928. $as_echo "yes" >&6; }
  15929. ;;
  15930. esac
  15931. else
  15932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15933. $as_echo "yes" >&6; }
  15934. fi
  15935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
  15936. $as_echo_n "checking whether to provide built-in manual... " >&6; }
  15937. # Check whether --enable-manual was given.
  15938. if test "${enable_manual+set}" = set; then :
  15939. enableval=$enable_manual; case "$enableval" in
  15940. no)
  15941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15942. $as_echo "no" >&6; }
  15943. ;;
  15944. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15945. $as_echo "yes" >&6; }
  15946. USE_MANUAL="1"
  15947. ;;
  15948. esac
  15949. else
  15950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15951. $as_echo "yes" >&6; }
  15952. USE_MANUAL="1"
  15953. fi
  15954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
  15955. $as_echo_n "checking whether to enable generation of C code... " >&6; }
  15956. # Check whether --enable-libcurl_option was given.
  15957. if test "${enable_libcurl_option+set}" = set; then :
  15958. enableval=$enable_libcurl_option; case "$enableval" in
  15959. no)
  15960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15961. $as_echo "no" >&6; }
  15962. $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
  15963. curl_libcurl_msg="no"
  15964. ;;
  15965. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15966. $as_echo "yes" >&6; }
  15967. ;;
  15968. esac
  15969. else
  15970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15971. $as_echo "yes" >&6; }
  15972. fi
  15973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
  15974. $as_echo_n "checking whether to use libgcc... " >&6; }
  15975. # Check whether --enable-libgcc was given.
  15976. if test "${enable_libgcc+set}" = set; then :
  15977. enableval=$enable_libgcc; case "$enableval" in
  15978. yes)
  15979. LIBS="-lgcc $LIBS"
  15980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15981. $as_echo "yes" >&6; }
  15982. ;;
  15983. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15984. $as_echo "no" >&6; }
  15985. ;;
  15986. esac
  15987. else
  15988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15989. $as_echo "no" >&6; }
  15990. fi
  15991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
  15992. $as_echo_n "checking if X/Open network library is required... " >&6; }
  15993. tst_lib_xnet_required="no"
  15994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15995. /* end confdefs.h. */
  15996. int main (void)
  15997. {
  15998. #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
  15999. return 0;
  16000. #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
  16001. return 0;
  16002. #else
  16003. force compilation error
  16004. #endif
  16005. }
  16006. _ACEOF
  16007. if ac_fn_c_try_compile "$LINENO"; then :
  16008. tst_lib_xnet_required="yes"
  16009. LIBS="-lxnet $LIBS"
  16010. fi
  16011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
  16013. $as_echo "$tst_lib_xnet_required" >&6; }
  16014. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16015. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16016. HAVE_GETHOSTBYNAME="1"
  16017. else
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16019. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16020. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16021. $as_echo_n "(cached) " >&6
  16022. else
  16023. ac_check_lib_save_LIBS=$LIBS
  16024. LIBS="-lnsl $LIBS"
  16025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16026. /* end confdefs.h. */
  16027. #ifdef __cplusplus
  16028. extern "C"
  16029. #endif
  16030. char gethostbyname ();
  16031. int main (void)
  16032. {
  16033. return gethostbyname ();
  16034. ;
  16035. return 0;
  16036. }
  16037. _ACEOF
  16038. if ac_fn_c_try_link "$LINENO"; then :
  16039. ac_cv_lib_nsl_gethostbyname=yes
  16040. else
  16041. ac_cv_lib_nsl_gethostbyname=no
  16042. fi
  16043. rm -f core conftest.err conftest.$ac_objext \
  16044. conftest$ac_exeext conftest.$ac_ext
  16045. LIBS=$ac_check_lib_save_LIBS
  16046. fi
  16047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16048. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16049. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16050. HAVE_GETHOSTBYNAME="1"
  16051. LIBS="-lnsl $LIBS"
  16052. fi
  16053. fi
  16054. if test "$HAVE_GETHOSTBYNAME" != "1"
  16055. then
  16056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
  16057. $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
  16058. if ${ac_cv_lib_socket_gethostbyname+:} false; then :
  16059. $as_echo_n "(cached) " >&6
  16060. else
  16061. ac_check_lib_save_LIBS=$LIBS
  16062. LIBS="-lsocket $LIBS"
  16063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16064. /* end confdefs.h. */
  16065. #ifdef __cplusplus
  16066. extern "C"
  16067. #endif
  16068. char gethostbyname ();
  16069. int main (void)
  16070. {
  16071. return gethostbyname ();
  16072. ;
  16073. return 0;
  16074. }
  16075. _ACEOF
  16076. if ac_fn_c_try_link "$LINENO"; then :
  16077. ac_cv_lib_socket_gethostbyname=yes
  16078. else
  16079. ac_cv_lib_socket_gethostbyname=no
  16080. fi
  16081. rm -f core conftest.err conftest.$ac_objext \
  16082. conftest$ac_exeext conftest.$ac_ext
  16083. LIBS=$ac_check_lib_save_LIBS
  16084. fi
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
  16086. $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
  16087. if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
  16088. HAVE_GETHOSTBYNAME="1"
  16089. LIBS="-lsocket $LIBS"
  16090. fi
  16091. fi
  16092. if test "$HAVE_GETHOSTBYNAME" != "1"
  16093. then
  16094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
  16095. $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
  16096. if ${ac_cv_lib_watt_gethostbyname+:} false; then :
  16097. $as_echo_n "(cached) " >&6
  16098. else
  16099. ac_check_lib_save_LIBS=$LIBS
  16100. LIBS="-lwatt $LIBS"
  16101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16102. /* end confdefs.h. */
  16103. #ifdef __cplusplus
  16104. extern "C"
  16105. #endif
  16106. char gethostbyname ();
  16107. int main (void)
  16108. {
  16109. return gethostbyname ();
  16110. ;
  16111. return 0;
  16112. }
  16113. _ACEOF
  16114. if ac_fn_c_try_link "$LINENO"; then :
  16115. ac_cv_lib_watt_gethostbyname=yes
  16116. else
  16117. ac_cv_lib_watt_gethostbyname=no
  16118. fi
  16119. rm -f core conftest.err conftest.$ac_objext \
  16120. conftest$ac_exeext conftest.$ac_ext
  16121. LIBS=$ac_check_lib_save_LIBS
  16122. fi
  16123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
  16124. $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
  16125. if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
  16126. HAVE_GETHOSTBYNAME="1"
  16127. CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
  16128. LDFLAGS="-L/dev/env/WATT_ROOT/lib"
  16129. LIBS="-lwatt $LIBS"
  16130. fi
  16131. fi
  16132. if test "$HAVE_GETHOSTBYNAME" != "1"
  16133. then
  16134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
  16135. $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
  16136. my_ac_save_LIBS=$LIBS
  16137. LIBS="-lnsl -lsocket $LIBS"
  16138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16139. /* end confdefs.h. */
  16140. int main (void)
  16141. {
  16142. gethostbyname();
  16143. ;
  16144. return 0;
  16145. }
  16146. _ACEOF
  16147. if ac_fn_c_try_link "$LINENO"; then :
  16148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16149. $as_echo "yes" >&6; }
  16150. HAVE_GETHOSTBYNAME="1"
  16151. else
  16152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16153. $as_echo "no" >&6; }
  16154. LIBS=$my_ac_save_LIBS
  16155. fi
  16156. rm -f core conftest.err conftest.$ac_objext \
  16157. conftest$ac_exeext conftest.$ac_ext
  16158. fi
  16159. if test "$HAVE_GETHOSTBYNAME" != "1"
  16160. then
  16161. if test "$ac_cv_header_windows_h" = "yes"; then
  16162. if test "$ac_cv_header_winsock_h" = "yes"; then
  16163. case $host in
  16164. *-*-mingw32ce*)
  16165. winsock_LIB="-lwinsock"
  16166. ;;
  16167. *)
  16168. winsock_LIB="-lwsock32"
  16169. ;;
  16170. esac
  16171. fi
  16172. if test "$ac_cv_header_winsock2_h" = "yes"; then
  16173. winsock_LIB="-lws2_32"
  16174. fi
  16175. if test ! -z "$winsock_LIB"; then
  16176. my_ac_save_LIBS=$LIBS
  16177. LIBS="$winsock_LIB $LIBS"
  16178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
  16179. $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
  16180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16181. /* end confdefs.h. */
  16182. #ifdef HAVE_WINDOWS_H
  16183. #ifndef WIN32_LEAN_AND_MEAN
  16184. #define WIN32_LEAN_AND_MEAN
  16185. #endif
  16186. #include <windows.h>
  16187. #ifdef HAVE_WINSOCK2_H
  16188. #include <winsock2.h>
  16189. #else
  16190. #ifdef HAVE_WINSOCK_H
  16191. #include <winsock.h>
  16192. #endif
  16193. #endif
  16194. #endif
  16195. int main (void)
  16196. {
  16197. gethostbyname("www.dummysite.com");
  16198. ;
  16199. return 0;
  16200. }
  16201. _ACEOF
  16202. if ac_fn_c_try_link "$LINENO"; then :
  16203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16204. $as_echo "yes" >&6; }
  16205. HAVE_GETHOSTBYNAME="1"
  16206. else
  16207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16208. $as_echo "no" >&6; }
  16209. winsock_LIB=""
  16210. LIBS=$my_ac_save_LIBS
  16211. fi
  16212. rm -f core conftest.err conftest.$ac_objext \
  16213. conftest$ac_exeext conftest.$ac_ext
  16214. fi
  16215. fi
  16216. fi
  16217. if test "$HAVE_GETHOSTBYNAME" != "1"
  16218. then
  16219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
  16220. $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
  16221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16222. /* end confdefs.h. */
  16223. /* Older Minix versions may need <net/gen/netdb.h> here instead */
  16224. #include <netdb.h>
  16225. int main (void)
  16226. {
  16227. gethostbyname("www.dummysite.com");
  16228. ;
  16229. return 0;
  16230. }
  16231. _ACEOF
  16232. if ac_fn_c_try_link "$LINENO"; then :
  16233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16234. $as_echo "yes" >&6; }
  16235. HAVE_GETHOSTBYNAME="1"
  16236. else
  16237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16238. $as_echo "no" >&6; }
  16239. fi
  16240. rm -f core conftest.err conftest.$ac_objext \
  16241. conftest$ac_exeext conftest.$ac_ext
  16242. fi
  16243. if test "$HAVE_GETHOSTBYNAME" != "1"
  16244. then
  16245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
  16246. $as_echo_n "checking for gethostbyname for eCos... " >&6; }
  16247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16248. /* end confdefs.h. */
  16249. #include <stdio.h>
  16250. #include <netdb.h>
  16251. int main (void)
  16252. {
  16253. gethostbyname("www.dummysite.com");
  16254. ;
  16255. return 0;
  16256. }
  16257. _ACEOF
  16258. if ac_fn_c_try_link "$LINENO"; then :
  16259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16260. $as_echo "yes" >&6; }
  16261. HAVE_GETHOSTBYNAME="1"
  16262. else
  16263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16264. $as_echo "no" >&6; }
  16265. fi
  16266. rm -f core conftest.err conftest.$ac_objext \
  16267. conftest$ac_exeext conftest.$ac_ext
  16268. fi
  16269. if test "$HAVE_GETHOSTBYNAME" != "1"
  16270. then
  16271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
  16272. $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
  16273. if ${ac_cv_lib_network_gethostbyname+:} false; then :
  16274. $as_echo_n "(cached) " >&6
  16275. else
  16276. ac_check_lib_save_LIBS=$LIBS
  16277. LIBS="-lnetwork $LIBS"
  16278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16279. /* end confdefs.h. */
  16280. #ifdef __cplusplus
  16281. extern "C"
  16282. #endif
  16283. char gethostbyname ();
  16284. int main (void)
  16285. {
  16286. return gethostbyname ();
  16287. ;
  16288. return 0;
  16289. }
  16290. _ACEOF
  16291. if ac_fn_c_try_link "$LINENO"; then :
  16292. ac_cv_lib_network_gethostbyname=yes
  16293. else
  16294. ac_cv_lib_network_gethostbyname=no
  16295. fi
  16296. rm -f core conftest.err conftest.$ac_objext \
  16297. conftest$ac_exeext conftest.$ac_ext
  16298. LIBS=$ac_check_lib_save_LIBS
  16299. fi
  16300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
  16301. $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
  16302. if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
  16303. HAVE_GETHOSTBYNAME="1"
  16304. LIBS="-lnetwork $LIBS"
  16305. fi
  16306. fi
  16307. if test "$HAVE_GETHOSTBYNAME" != "1"
  16308. then
  16309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
  16310. $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
  16311. if ${ac_cv_lib_net_gethostbyname+:} false; then :
  16312. $as_echo_n "(cached) " >&6
  16313. else
  16314. ac_check_lib_save_LIBS=$LIBS
  16315. LIBS="-lnet $LIBS"
  16316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16317. /* end confdefs.h. */
  16318. #ifdef __cplusplus
  16319. extern "C"
  16320. #endif
  16321. char gethostbyname ();
  16322. int main (void)
  16323. {
  16324. return gethostbyname ();
  16325. ;
  16326. return 0;
  16327. }
  16328. _ACEOF
  16329. if ac_fn_c_try_link "$LINENO"; then :
  16330. ac_cv_lib_net_gethostbyname=yes
  16331. else
  16332. ac_cv_lib_net_gethostbyname=no
  16333. fi
  16334. rm -f core conftest.err conftest.$ac_objext \
  16335. conftest$ac_exeext conftest.$ac_ext
  16336. LIBS=$ac_check_lib_save_LIBS
  16337. fi
  16338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
  16339. $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
  16340. if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
  16341. HAVE_GETHOSTBYNAME="1"
  16342. LIBS="-lnet $LIBS"
  16343. fi
  16344. fi
  16345. if test "$HAVE_GETHOSTBYNAME" != "1"; then
  16346. as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
  16347. fi
  16348. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16349. if test "x$ac_cv_func_strcasecmp" = xyes; then :
  16350. else
  16351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
  16352. $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
  16353. if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
  16354. $as_echo_n "(cached) " >&6
  16355. else
  16356. ac_check_lib_save_LIBS=$LIBS
  16357. LIBS="-lresolve $LIBS"
  16358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16359. /* end confdefs.h. */
  16360. #ifdef __cplusplus
  16361. extern "C"
  16362. #endif
  16363. char strcasecmp ();
  16364. int main (void)
  16365. {
  16366. return strcasecmp ();
  16367. ;
  16368. return 0;
  16369. }
  16370. _ACEOF
  16371. if ac_fn_c_try_link "$LINENO"; then :
  16372. ac_cv_lib_resolve_strcasecmp=yes
  16373. else
  16374. ac_cv_lib_resolve_strcasecmp=no
  16375. fi
  16376. rm -f core conftest.err conftest.$ac_objext \
  16377. conftest$ac_exeext conftest.$ac_ext
  16378. LIBS=$ac_check_lib_save_LIBS
  16379. fi
  16380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
  16381. $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
  16382. if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
  16383. cat >>confdefs.h <<_ACEOF
  16384. #define HAVE_LIBRESOLVE 1
  16385. _ACEOF
  16386. LIBS="-lresolve $LIBS"
  16387. fi
  16388. fi
  16389. if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
  16390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
  16391. $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
  16392. if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
  16393. $as_echo_n "(cached) " >&6
  16394. else
  16395. ac_check_lib_save_LIBS=$LIBS
  16396. LIBS="-lresolve -lnsl $LIBS"
  16397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16398. /* end confdefs.h. */
  16399. #ifdef __cplusplus
  16400. extern "C"
  16401. #endif
  16402. char strcasecmp ();
  16403. int main (void)
  16404. {
  16405. return strcasecmp ();
  16406. ;
  16407. return 0;
  16408. }
  16409. _ACEOF
  16410. if ac_fn_c_try_link "$LINENO"; then :
  16411. ac_cv_lib_resolve_strcasecmp=yes
  16412. else
  16413. ac_cv_lib_resolve_strcasecmp=no
  16414. fi
  16415. rm -f core conftest.err conftest.$ac_objext \
  16416. conftest$ac_exeext conftest.$ac_ext
  16417. LIBS=$ac_check_lib_save_LIBS
  16418. fi
  16419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
  16420. $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
  16421. if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
  16422. LIBS="-lresolve $LIBS"
  16423. fi
  16424. fi
  16425. ac_cv_func_strcasecmp="no"
  16426. curl_includes_winsock2="\
  16427. /* includes start */
  16428. #ifdef HAVE_WINDOWS_H
  16429. # ifndef WIN32_LEAN_AND_MEAN
  16430. # define WIN32_LEAN_AND_MEAN
  16431. # endif
  16432. # include <windows.h>
  16433. # ifdef HAVE_WINSOCK2_H
  16434. # include <winsock2.h>
  16435. # else
  16436. # ifdef HAVE_WINSOCK_H
  16437. # include <winsock.h>
  16438. # endif
  16439. # endif
  16440. #endif
  16441. /* includes end */"
  16442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  16443. $as_echo_n "checking for windows.h... " >&6; }
  16444. if ${ac_cv_header_windows_h+:} false; then :
  16445. $as_echo_n "(cached) " >&6
  16446. else
  16447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16448. /* end confdefs.h. */
  16449. #undef inline
  16450. #ifndef WIN32_LEAN_AND_MEAN
  16451. #define WIN32_LEAN_AND_MEAN
  16452. #endif
  16453. #include <windows.h>
  16454. int main (void)
  16455. {
  16456. #if defined(__CYGWIN__) || defined(__CEGCC__)
  16457. HAVE_WINDOWS_H shall not be defined.
  16458. #else
  16459. int dummy=2*WINVER;
  16460. #endif
  16461. ;
  16462. return 0;
  16463. }
  16464. _ACEOF
  16465. if ac_fn_c_try_compile "$LINENO"; then :
  16466. ac_cv_header_windows_h="yes"
  16467. else
  16468. ac_cv_header_windows_h="no"
  16469. fi
  16470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16471. fi
  16472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
  16473. $as_echo "$ac_cv_header_windows_h" >&6; }
  16474. case "$ac_cv_header_windows_h" in
  16475. yes)
  16476. cat >>confdefs.h <<_ACEOF
  16477. #define HAVE_WINDOWS_H 1
  16478. _ACEOF
  16479. cat >>confdefs.h <<_ACEOF
  16480. #define WIN32_LEAN_AND_MEAN 1
  16481. _ACEOF
  16482. ;;
  16483. esac
  16484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
  16485. $as_echo_n "checking for winsock.h... " >&6; }
  16486. if ${ac_cv_header_winsock_h+:} false; then :
  16487. $as_echo_n "(cached) " >&6
  16488. else
  16489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16490. /* end confdefs.h. */
  16491. #undef inline
  16492. #ifndef WIN32_LEAN_AND_MEAN
  16493. #define WIN32_LEAN_AND_MEAN
  16494. #endif
  16495. #include <windows.h>
  16496. #include <winsock.h>
  16497. int main (void)
  16498. {
  16499. #if defined(__CYGWIN__) || defined(__CEGCC__)
  16500. HAVE_WINSOCK_H shall not be defined.
  16501. #else
  16502. int dummy=WSACleanup();
  16503. #endif
  16504. ;
  16505. return 0;
  16506. }
  16507. _ACEOF
  16508. if ac_fn_c_try_compile "$LINENO"; then :
  16509. ac_cv_header_winsock_h="yes"
  16510. else
  16511. ac_cv_header_winsock_h="no"
  16512. fi
  16513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16514. fi
  16515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
  16516. $as_echo "$ac_cv_header_winsock_h" >&6; }
  16517. case "$ac_cv_header_winsock_h" in
  16518. yes)
  16519. cat >>confdefs.h <<_ACEOF
  16520. #define HAVE_WINSOCK_H 1
  16521. _ACEOF
  16522. ;;
  16523. esac
  16524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  16525. $as_echo_n "checking for winsock2.h... " >&6; }
  16526. if ${ac_cv_header_winsock2_h+:} false; then :
  16527. $as_echo_n "(cached) " >&6
  16528. else
  16529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16530. /* end confdefs.h. */
  16531. #undef inline
  16532. #ifndef WIN32_LEAN_AND_MEAN
  16533. #define WIN32_LEAN_AND_MEAN
  16534. #endif
  16535. #include <windows.h>
  16536. #include <winsock2.h>
  16537. int main (void)
  16538. {
  16539. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  16540. HAVE_WINSOCK2_H shall not be defined.
  16541. #else
  16542. int dummy=2*IPPROTO_ESP;
  16543. #endif
  16544. ;
  16545. return 0;
  16546. }
  16547. _ACEOF
  16548. if ac_fn_c_try_compile "$LINENO"; then :
  16549. ac_cv_header_winsock2_h="yes"
  16550. else
  16551. ac_cv_header_winsock2_h="no"
  16552. fi
  16553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16554. fi
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
  16556. $as_echo "$ac_cv_header_winsock2_h" >&6; }
  16557. case "$ac_cv_header_winsock2_h" in
  16558. yes)
  16559. cat >>confdefs.h <<_ACEOF
  16560. #define HAVE_WINSOCK2_H 1
  16561. _ACEOF
  16562. ;;
  16563. esac
  16564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
  16565. $as_echo_n "checking for connect in libraries... " >&6; }
  16566. tst_connect_save_LIBS="$LIBS"
  16567. tst_connect_need_LIBS="unknown"
  16568. for tst_lib in '' '-lsocket' ; do
  16569. if test "$tst_connect_need_LIBS" = "unknown"; then
  16570. LIBS="$tst_lib $tst_connect_save_LIBS"
  16571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16572. /* end confdefs.h. */
  16573. $curl_includes_winsock2
  16574. #ifndef HAVE_WINDOWS_H
  16575. int connect(int, void*, int);
  16576. #endif
  16577. int main (void)
  16578. {
  16579. if(0 != connect(0, 0, 0))
  16580. return 1;
  16581. ;
  16582. return 0;
  16583. }
  16584. _ACEOF
  16585. if ac_fn_c_try_link "$LINENO"; then :
  16586. tst_connect_need_LIBS="$tst_lib"
  16587. fi
  16588. rm -f core conftest.err conftest.$ac_objext \
  16589. conftest$ac_exeext conftest.$ac_ext
  16590. fi
  16591. done
  16592. LIBS="$tst_connect_save_LIBS"
  16593. #
  16594. case X-"$tst_connect_need_LIBS" in
  16595. X-unknown)
  16596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
  16597. $as_echo "cannot find connect" >&6; }
  16598. as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
  16599. ;;
  16600. X-)
  16601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16602. $as_echo "yes" >&6; }
  16603. ;;
  16604. *)
  16605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
  16606. $as_echo "$tst_connect_need_LIBS" >&6; }
  16607. LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
  16608. ;;
  16609. esac
  16610. CURL_NETWORK_LIBS=$LIBS
  16611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  16612. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  16613. if ${ac_cv_header_time+:} false; then :
  16614. $as_echo_n "(cached) " >&6
  16615. else
  16616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16617. /* end confdefs.h. */
  16618. #include <sys/types.h>
  16619. #include <sys/time.h>
  16620. #include <time.h>
  16621. int main (void)
  16622. {
  16623. if ((struct tm *) 0)
  16624. return 0;
  16625. ;
  16626. return 0;
  16627. }
  16628. _ACEOF
  16629. if ac_fn_c_try_compile "$LINENO"; then :
  16630. ac_cv_header_time=yes
  16631. else
  16632. ac_cv_header_time=no
  16633. fi
  16634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16635. fi
  16636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  16637. $as_echo "$ac_cv_header_time" >&6; }
  16638. if test $ac_cv_header_time = yes; then
  16639. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  16640. fi
  16641. for ac_header in sys/types.h sys/time.h time.h
  16642. do :
  16643. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16644. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16645. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16646. cat >>confdefs.h <<_ACEOF
  16647. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16648. _ACEOF
  16649. fi
  16650. done
  16651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
  16652. $as_echo_n "checking for monotonic clock_gettime... " >&6; }
  16653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16654. /* end confdefs.h. */
  16655. #ifdef HAVE_SYS_TYPES_H
  16656. #include <sys/types.h>
  16657. #endif
  16658. #ifdef HAVE_SYS_TIME_H
  16659. #include <sys/time.h>
  16660. #ifdef TIME_WITH_SYS_TIME
  16661. #include <time.h>
  16662. #endif
  16663. #else
  16664. #ifdef HAVE_TIME_H
  16665. #include <time.h>
  16666. #endif
  16667. #endif
  16668. int main (void)
  16669. {
  16670. struct timespec ts;
  16671. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  16672. ;
  16673. return 0;
  16674. }
  16675. _ACEOF
  16676. if ac_fn_c_try_compile "$LINENO"; then :
  16677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16678. $as_echo "yes" >&6; }
  16679. ac_cv_func_clock_gettime="yes"
  16680. else
  16681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16682. $as_echo "no" >&6; }
  16683. ac_cv_func_clock_gettime="no"
  16684. fi
  16685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16686. #
  16687. if test "$ac_cv_func_clock_gettime" = "yes"; then
  16688. #
  16689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
  16690. $as_echo_n "checking for clock_gettime in libraries... " >&6; }
  16691. #
  16692. curl_cv_save_LIBS="$LIBS"
  16693. curl_cv_gclk_LIBS="unknown"
  16694. #
  16695. for x_xlibs in '' '-lrt' '-lposix4' ; do
  16696. if test "$curl_cv_gclk_LIBS" = "unknown"; then
  16697. if test -z "$x_xlibs"; then
  16698. LIBS="$curl_cv_save_LIBS"
  16699. else
  16700. LIBS="$x_xlibs $curl_cv_save_LIBS"
  16701. fi
  16702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16703. /* end confdefs.h. */
  16704. #ifdef HAVE_SYS_TYPES_H
  16705. #include <sys/types.h>
  16706. #endif
  16707. #ifdef HAVE_SYS_TIME_H
  16708. #include <sys/time.h>
  16709. #ifdef TIME_WITH_SYS_TIME
  16710. #include <time.h>
  16711. #endif
  16712. #else
  16713. #ifdef HAVE_TIME_H
  16714. #include <time.h>
  16715. #endif
  16716. #endif
  16717. int main (void)
  16718. {
  16719. struct timespec ts;
  16720. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  16721. ;
  16722. return 0;
  16723. }
  16724. _ACEOF
  16725. if ac_fn_c_try_link "$LINENO"; then :
  16726. curl_cv_gclk_LIBS="$x_xlibs"
  16727. fi
  16728. rm -f core conftest.err conftest.$ac_objext \
  16729. conftest$ac_exeext conftest.$ac_ext
  16730. fi
  16731. done
  16732. #
  16733. LIBS="$curl_cv_save_LIBS"
  16734. #
  16735. case X-"$curl_cv_gclk_LIBS" in
  16736. X-unknown)
  16737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
  16738. $as_echo "cannot find clock_gettime" >&6; }
  16739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  16740. $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  16741. ac_cv_func_clock_gettime="no"
  16742. ;;
  16743. X-)
  16744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
  16745. $as_echo "no additional lib required" >&6; }
  16746. ac_cv_func_clock_gettime="yes"
  16747. ;;
  16748. *)
  16749. if test -z "$curl_cv_save_LIBS"; then
  16750. LIBS="$curl_cv_gclk_LIBS"
  16751. else
  16752. LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
  16753. fi
  16754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
  16755. $as_echo "$curl_cv_gclk_LIBS" >&6; }
  16756. ac_cv_func_clock_gettime="yes"
  16757. ;;
  16758. esac
  16759. #
  16760. if test "x$cross_compiling" != "xyes" &&
  16761. test "$ac_cv_func_clock_gettime" = "yes"; then
  16762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
  16763. $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
  16764. if test "$cross_compiling" = yes; then :
  16765. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16766. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16767. as_fn_error $? "cannot run test program while cross compiling
  16768. See \`config.log' for more details" "$LINENO" 5; }
  16769. else
  16770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16771. /* end confdefs.h. */
  16772. #ifdef HAVE_STDLIB_H
  16773. #include <stdlib.h>
  16774. #endif
  16775. #ifdef HAVE_SYS_TYPES_H
  16776. #include <sys/types.h>
  16777. #endif
  16778. #ifdef HAVE_SYS_TIME_H
  16779. #include <sys/time.h>
  16780. #ifdef TIME_WITH_SYS_TIME
  16781. #include <time.h>
  16782. #endif
  16783. #else
  16784. #ifdef HAVE_TIME_H
  16785. #include <time.h>
  16786. #endif
  16787. #endif
  16788. int main (void)
  16789. {
  16790. struct timespec ts;
  16791. if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
  16792. exit(0);
  16793. else
  16794. exit(1);
  16795. ;
  16796. return 0;
  16797. }
  16798. _ACEOF
  16799. if ac_fn_c_try_run "$LINENO"; then :
  16800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16801. $as_echo "yes" >&6; }
  16802. else
  16803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16804. $as_echo "no" >&6; }
  16805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  16806. $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  16807. ac_cv_func_clock_gettime="no"
  16808. LIBS="$curl_cv_save_LIBS"
  16809. fi
  16810. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16811. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16812. fi
  16813. fi
  16814. #
  16815. case "$ac_cv_func_clock_gettime" in
  16816. yes)
  16817. cat >>confdefs.h <<_ACEOF
  16818. #define HAVE_CLOCK_GETTIME_MONOTONIC 1
  16819. _ACEOF
  16820. ;;
  16821. esac
  16822. #
  16823. fi
  16824. #
  16825. CURL_NETWORK_AND_TIME_LIBS=$LIBS
  16826. clean_CPPFLAGS=$CPPFLAGS
  16827. clean_LDFLAGS=$LDFLAGS
  16828. clean_LIBS=$LIBS
  16829. ZLIB_LIBS=""
  16830. # Check whether --with-zlib was given.
  16831. if test "${with_zlib+set}" = set; then :
  16832. withval=$with_zlib; OPT_ZLIB="$withval"
  16833. fi
  16834. if test "$OPT_ZLIB" = "no" ; then
  16835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
  16836. $as_echo "$as_me: WARNING: zlib disabled" >&2;}
  16837. else
  16838. if test "$OPT_ZLIB" = "yes" ; then
  16839. OPT_ZLIB=""
  16840. fi
  16841. if test -z "$OPT_ZLIB" ; then
  16842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
  16843. $as_echo_n "checking for inflateEnd in -lz... " >&6; }
  16844. if ${ac_cv_lib_z_inflateEnd+:} false; then :
  16845. $as_echo_n "(cached) " >&6
  16846. else
  16847. ac_check_lib_save_LIBS=$LIBS
  16848. LIBS="-lz $LIBS"
  16849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16850. /* end confdefs.h. */
  16851. #ifdef __cplusplus
  16852. extern "C"
  16853. #endif
  16854. char inflateEnd ();
  16855. int main (void)
  16856. {
  16857. return inflateEnd ();
  16858. ;
  16859. return 0;
  16860. }
  16861. _ACEOF
  16862. if ac_fn_c_try_link "$LINENO"; then :
  16863. ac_cv_lib_z_inflateEnd=yes
  16864. else
  16865. ac_cv_lib_z_inflateEnd=no
  16866. fi
  16867. rm -f core conftest.err conftest.$ac_objext \
  16868. conftest$ac_exeext conftest.$ac_ext
  16869. LIBS=$ac_check_lib_save_LIBS
  16870. fi
  16871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
  16872. $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
  16873. if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
  16874. HAVE_LIBZ="1"
  16875. LIBS="-lz $LIBS"
  16876. else
  16877. OPT_ZLIB="/usr/local"
  16878. fi
  16879. fi
  16880. if test -n "$OPT_ZLIB"; then
  16881. CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
  16882. LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
  16883. fi
  16884. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  16885. if test "x$ac_cv_header_zlib_h" = xyes; then :
  16886. HAVE_ZLIB_H="1"
  16887. if test "$HAVE_LIBZ" != "1"; then
  16888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
  16889. $as_echo_n "checking for gzread in -lz... " >&6; }
  16890. if ${ac_cv_lib_z_gzread+:} false; then :
  16891. $as_echo_n "(cached) " >&6
  16892. else
  16893. ac_check_lib_save_LIBS=$LIBS
  16894. LIBS="-lz $LIBS"
  16895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16896. /* end confdefs.h. */
  16897. #ifdef __cplusplus
  16898. extern "C"
  16899. #endif
  16900. char gzread ();
  16901. int main (void)
  16902. {
  16903. return gzread ();
  16904. ;
  16905. return 0;
  16906. }
  16907. _ACEOF
  16908. if ac_fn_c_try_link "$LINENO"; then :
  16909. ac_cv_lib_z_gzread=yes
  16910. else
  16911. ac_cv_lib_z_gzread=no
  16912. fi
  16913. rm -f core conftest.err conftest.$ac_objext \
  16914. conftest$ac_exeext conftest.$ac_ext
  16915. LIBS=$ac_check_lib_save_LIBS
  16916. fi
  16917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
  16918. $as_echo "$ac_cv_lib_z_gzread" >&6; }
  16919. if test "x$ac_cv_lib_z_gzread" = xyes; then :
  16920. HAVE_LIBZ="1"
  16921. LIBS="-lz $LIBS"
  16922. else
  16923. CPPFLAGS=$clean_CPPFLAGS
  16924. LDFLAGS=$clean_LDFLAGS
  16925. fi
  16926. fi
  16927. else
  16928. CPPFLAGS=$clean_CPPFLAGS
  16929. LDFLAGS=$clean_LDFLAGS
  16930. fi
  16931. if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
  16932. then
  16933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
  16934. $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
  16935. HAVE_LIBZ=""
  16936. CPPFLAGS=$clean_CPPFLAGS
  16937. LDFLAGS=$clean_LDFLAGS
  16938. LIBS=$clean_LIBS
  16939. elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
  16940. then
  16941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
  16942. $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
  16943. CPPFLAGS=$clean_CPPFLAGS
  16944. LDFLAGS=$clean_LDFLAGS
  16945. LIBS=$clean_LIBS
  16946. elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
  16947. then
  16948. $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
  16949. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  16950. ZLIB_LIBS="-lz"
  16951. LIBS="-lz $clean_LIBS"
  16952. AMFIXLIB="1"
  16953. { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
  16954. $as_echo "$as_me: found both libz and libz.h header" >&6;}
  16955. curl_zlib_msg="enabled"
  16956. fi
  16957. fi
  16958. if test x"$AMFIXLIB" = x1; then
  16959. HAVE_LIBZ_TRUE=
  16960. HAVE_LIBZ_FALSE='#'
  16961. else
  16962. HAVE_LIBZ_TRUE='#'
  16963. HAVE_LIBZ_FALSE=
  16964. fi
  16965. LDAPLIBNAME=""
  16966. # Check whether --with-ldap-lib was given.
  16967. if test "${with_ldap_lib+set}" = set; then :
  16968. withval=$with_ldap_lib; LDAPLIBNAME="$withval"
  16969. fi
  16970. LBERLIBNAME=""
  16971. # Check whether --with-lber-lib was given.
  16972. if test "${with_lber_lib+set}" = set; then :
  16973. withval=$with_lber_lib; LBERLIBNAME="$withval"
  16974. fi
  16975. if test x$CURL_DISABLE_LDAP != x1 ; then
  16976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
  16977. $as_echo_n "checking for lber.h... " >&6; }
  16978. if ${ac_cv_header_lber_h+:} false; then :
  16979. $as_echo_n "(cached) " >&6
  16980. else
  16981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16982. /* end confdefs.h. */
  16983. #undef inline
  16984. #ifdef HAVE_WINDOWS_H
  16985. #ifndef WIN32_LEAN_AND_MEAN
  16986. #define WIN32_LEAN_AND_MEAN
  16987. #endif
  16988. #include <windows.h>
  16989. #else
  16990. #ifdef HAVE_SYS_TYPES_H
  16991. #include <sys/types.h>
  16992. #endif
  16993. #endif
  16994. #ifndef NULL
  16995. #define NULL (void *)0
  16996. #endif
  16997. #include <lber.h>
  16998. int main (void)
  16999. {
  17000. BerValue *bvp = NULL;
  17001. BerElement *bep = ber_init(bvp);
  17002. ber_free(bep, 1);
  17003. ;
  17004. return 0;
  17005. }
  17006. _ACEOF
  17007. if ac_fn_c_try_compile "$LINENO"; then :
  17008. ac_cv_header_lber_h="yes"
  17009. else
  17010. ac_cv_header_lber_h="no"
  17011. fi
  17012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17013. fi
  17014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
  17015. $as_echo "$ac_cv_header_lber_h" >&6; }
  17016. if test "$ac_cv_header_lber_h" = "yes"; then
  17017. cat >>confdefs.h <<_ACEOF
  17018. #define HAVE_LBER_H 1
  17019. _ACEOF
  17020. #
  17021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17022. /* end confdefs.h. */
  17023. #undef inline
  17024. #ifdef HAVE_WINDOWS_H
  17025. #ifndef WIN32_LEAN_AND_MEAN
  17026. #define WIN32_LEAN_AND_MEAN
  17027. #endif
  17028. #include <windows.h>
  17029. #else
  17030. #ifdef HAVE_SYS_TYPES_H
  17031. #include <sys/types.h>
  17032. #endif
  17033. #endif
  17034. #ifndef NULL
  17035. #define NULL (void *)0
  17036. #endif
  17037. #ifndef LDAP_DEPRECATED
  17038. #define LDAP_DEPRECATED 1
  17039. #endif
  17040. #include <ldap.h>
  17041. int main (void)
  17042. {
  17043. BerValue *bvp = NULL;
  17044. BerElement *bep = ber_init(bvp);
  17045. ber_free(bep, 1);
  17046. ;
  17047. return 0;
  17048. }
  17049. _ACEOF
  17050. if ac_fn_c_try_compile "$LINENO"; then :
  17051. curl_cv_need_header_lber_h="no"
  17052. else
  17053. curl_cv_need_header_lber_h="yes"
  17054. fi
  17055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17056. #
  17057. case "$curl_cv_need_header_lber_h" in
  17058. yes)
  17059. cat >>confdefs.h <<_ACEOF
  17060. #define NEED_LBER_H 1
  17061. _ACEOF
  17062. ;;
  17063. esac
  17064. fi
  17065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
  17066. $as_echo_n "checking for ldap.h... " >&6; }
  17067. if ${ac_cv_header_ldap_h+:} false; then :
  17068. $as_echo_n "(cached) " >&6
  17069. else
  17070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17071. /* end confdefs.h. */
  17072. #undef inline
  17073. #ifdef HAVE_WINDOWS_H
  17074. #ifndef WIN32_LEAN_AND_MEAN
  17075. #define WIN32_LEAN_AND_MEAN
  17076. #endif
  17077. #include <windows.h>
  17078. #else
  17079. #ifdef HAVE_SYS_TYPES_H
  17080. #include <sys/types.h>
  17081. #endif
  17082. #endif
  17083. #ifndef LDAP_DEPRECATED
  17084. #define LDAP_DEPRECATED 1
  17085. #endif
  17086. #ifdef NEED_LBER_H
  17087. #include <lber.h>
  17088. #endif
  17089. #include <ldap.h>
  17090. int main (void)
  17091. {
  17092. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  17093. int res = ldap_unbind(ldp);
  17094. ;
  17095. return 0;
  17096. }
  17097. _ACEOF
  17098. if ac_fn_c_try_compile "$LINENO"; then :
  17099. ac_cv_header_ldap_h="yes"
  17100. else
  17101. ac_cv_header_ldap_h="no"
  17102. fi
  17103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17104. fi
  17105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
  17106. $as_echo "$ac_cv_header_ldap_h" >&6; }
  17107. case "$ac_cv_header_ldap_h" in
  17108. yes)
  17109. cat >>confdefs.h <<_ACEOF
  17110. #define HAVE_LDAP_H 1
  17111. _ACEOF
  17112. ;;
  17113. esac
  17114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
  17115. $as_echo_n "checking for ldapssl.h... " >&6; }
  17116. if ${ac_cv_header_ldapssl_h+:} false; then :
  17117. $as_echo_n "(cached) " >&6
  17118. else
  17119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17120. /* end confdefs.h. */
  17121. #undef inline
  17122. #ifdef HAVE_WINDOWS_H
  17123. #ifndef WIN32_LEAN_AND_MEAN
  17124. #define WIN32_LEAN_AND_MEAN
  17125. #endif
  17126. #include <windows.h>
  17127. #else
  17128. #ifdef HAVE_SYS_TYPES_H
  17129. #include <sys/types.h>
  17130. #endif
  17131. #endif
  17132. #ifndef NULL
  17133. #define NULL (void *)0
  17134. #endif
  17135. #ifndef LDAP_DEPRECATED
  17136. #define LDAP_DEPRECATED 1
  17137. #endif
  17138. #ifdef NEED_LBER_H
  17139. #include <lber.h>
  17140. #endif
  17141. #ifdef HAVE_LDAP_H
  17142. #include <ldap.h>
  17143. #endif
  17144. #include <ldapssl.h>
  17145. int main (void)
  17146. {
  17147. char *cert_label = NULL;
  17148. LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
  17149. ;
  17150. return 0;
  17151. }
  17152. _ACEOF
  17153. if ac_fn_c_try_compile "$LINENO"; then :
  17154. ac_cv_header_ldapssl_h="yes"
  17155. else
  17156. ac_cv_header_ldapssl_h="no"
  17157. fi
  17158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17159. fi
  17160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
  17161. $as_echo "$ac_cv_header_ldapssl_h" >&6; }
  17162. case "$ac_cv_header_ldapssl_h" in
  17163. yes)
  17164. cat >>confdefs.h <<_ACEOF
  17165. #define HAVE_LDAPSSL_H 1
  17166. _ACEOF
  17167. ;;
  17168. esac
  17169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
  17170. $as_echo_n "checking for ldap_ssl.h... " >&6; }
  17171. if ${ac_cv_header_ldap_ssl_h+:} false; then :
  17172. $as_echo_n "(cached) " >&6
  17173. else
  17174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17175. /* end confdefs.h. */
  17176. #undef inline
  17177. #ifdef HAVE_WINDOWS_H
  17178. #ifndef WIN32_LEAN_AND_MEAN
  17179. #define WIN32_LEAN_AND_MEAN
  17180. #endif
  17181. #include <windows.h>
  17182. #else
  17183. #ifdef HAVE_SYS_TYPES_H
  17184. #include <sys/types.h>
  17185. #endif
  17186. #endif
  17187. #ifndef LDAP_DEPRECATED
  17188. #define LDAP_DEPRECATED 1
  17189. #endif
  17190. #ifdef NEED_LBER_H
  17191. #include <lber.h>
  17192. #endif
  17193. #ifdef HAVE_LDAP_H
  17194. #include <ldap.h>
  17195. #endif
  17196. #include <ldap_ssl.h>
  17197. int main (void)
  17198. {
  17199. LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
  17200. ;
  17201. return 0;
  17202. }
  17203. _ACEOF
  17204. if ac_fn_c_try_compile "$LINENO"; then :
  17205. ac_cv_header_ldap_ssl_h="yes"
  17206. else
  17207. ac_cv_header_ldap_ssl_h="no"
  17208. fi
  17209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17210. fi
  17211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
  17212. $as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
  17213. case "$ac_cv_header_ldap_ssl_h" in
  17214. yes)
  17215. cat >>confdefs.h <<_ACEOF
  17216. #define HAVE_LDAP_SSL_H 1
  17217. _ACEOF
  17218. ;;
  17219. esac
  17220. if test -z "$LDAPLIBNAME" ; then
  17221. if test "$ac_cv_native_windows" = "yes"; then
  17222. LDAPLIBNAME="wldap32"
  17223. LBERLIBNAME="no"
  17224. fi
  17225. fi
  17226. if test "$LDAPLIBNAME" ; then
  17227. as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
  17228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
  17229. $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
  17230. if eval \${$as_ac_Lib+:} false; then :
  17231. $as_echo_n "(cached) " >&6
  17232. else
  17233. ac_check_lib_save_LIBS=$LIBS
  17234. LIBS="-l"$LDAPLIBNAME" $LIBS"
  17235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17236. /* end confdefs.h. */
  17237. #ifdef __cplusplus
  17238. extern "C"
  17239. #endif
  17240. char ldap_init ();
  17241. int main (void)
  17242. {
  17243. return ldap_init ();
  17244. ;
  17245. return 0;
  17246. }
  17247. _ACEOF
  17248. if ac_fn_c_try_link "$LINENO"; then :
  17249. eval "$as_ac_Lib=yes"
  17250. else
  17251. eval "$as_ac_Lib=no"
  17252. fi
  17253. rm -f core conftest.err conftest.$ac_objext \
  17254. conftest$ac_exeext conftest.$ac_ext
  17255. LIBS=$ac_check_lib_save_LIBS
  17256. fi
  17257. eval ac_res=\$$as_ac_Lib
  17258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17259. $as_echo "$ac_res" >&6; }
  17260. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17261. cat >>confdefs.h <<_ACEOF
  17262. #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
  17263. _ACEOF
  17264. LIBS="-l"$LDAPLIBNAME" $LIBS"
  17265. else
  17266. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
  17267. $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
  17268. $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  17269. CURL_DISABLE_LDAP=1
  17270. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  17271. CURL_DISABLE_LDAPS=1
  17272. fi
  17273. else
  17274. #
  17275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
  17276. $as_echo_n "checking for LDAP libraries... " >&6; }
  17277. #
  17278. u_libs=""
  17279. #
  17280. #
  17281. curl_cv_save_LIBS="$LIBS"
  17282. curl_cv_ldap_LIBS="unknown"
  17283. #
  17284. for x_nlibs in '' "$u_libs" \
  17285. '-lldap' \
  17286. '-llber -lldap' \
  17287. '-lldap -llber' \
  17288. '-lldapssl -lldapx -lldapsdk' \
  17289. '-lldapsdk -lldapx -lldapssl' ; do
  17290. if test "$curl_cv_ldap_LIBS" = "unknown"; then
  17291. if test -z "$x_nlibs"; then
  17292. LIBS="$curl_cv_save_LIBS"
  17293. else
  17294. LIBS="$x_nlibs $curl_cv_save_LIBS"
  17295. fi
  17296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17297. /* end confdefs.h. */
  17298. #undef inline
  17299. #ifdef HAVE_WINDOWS_H
  17300. #ifndef WIN32_LEAN_AND_MEAN
  17301. #define WIN32_LEAN_AND_MEAN
  17302. #endif
  17303. #include <windows.h>
  17304. #else
  17305. #ifdef HAVE_SYS_TYPES_H
  17306. #include <sys/types.h>
  17307. #endif
  17308. #endif
  17309. #ifndef NULL
  17310. #define NULL (void *)0
  17311. #endif
  17312. #ifndef LDAP_DEPRECATED
  17313. #define LDAP_DEPRECATED 1
  17314. #endif
  17315. #ifdef NEED_LBER_H
  17316. #include <lber.h>
  17317. #endif
  17318. #ifdef HAVE_LDAP_H
  17319. #include <ldap.h>
  17320. #endif
  17321. int main (void)
  17322. {
  17323. BerValue *bvp = NULL;
  17324. BerElement *bep = ber_init(bvp);
  17325. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  17326. int res = ldap_unbind(ldp);
  17327. ber_free(bep, 1);
  17328. ;
  17329. return 0;
  17330. }
  17331. _ACEOF
  17332. if ac_fn_c_try_link "$LINENO"; then :
  17333. curl_cv_ldap_LIBS="$x_nlibs"
  17334. fi
  17335. rm -f core conftest.err conftest.$ac_objext \
  17336. conftest$ac_exeext conftest.$ac_ext
  17337. fi
  17338. done
  17339. #
  17340. LIBS="$curl_cv_save_LIBS"
  17341. #
  17342. case X-"$curl_cv_ldap_LIBS" in
  17343. X-unknown)
  17344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
  17345. $as_echo "cannot find LDAP libraries" >&6; }
  17346. ;;
  17347. X-)
  17348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
  17349. $as_echo "no additional lib required" >&6; }
  17350. ;;
  17351. *)
  17352. if test -z "$curl_cv_save_LIBS"; then
  17353. LIBS="$curl_cv_ldap_LIBS"
  17354. else
  17355. LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
  17356. fi
  17357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
  17358. $as_echo "$curl_cv_ldap_LIBS" >&6; }
  17359. ;;
  17360. esac
  17361. #
  17362. case X-"$curl_cv_ldap_LIBS" in
  17363. X-unknown)
  17364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
  17365. $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
  17366. $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  17367. CURL_DISABLE_LDAP=1
  17368. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  17369. CURL_DISABLE_LDAPS=1
  17370. ;;
  17371. esac
  17372. fi
  17373. fi
  17374. if test x$CURL_DISABLE_LDAP != x1 ; then
  17375. if test "$LBERLIBNAME" ; then
  17376. if test "$LBERLIBNAME" != "no" ; then
  17377. as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
  17378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
  17379. $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
  17380. if eval \${$as_ac_Lib+:} false; then :
  17381. $as_echo_n "(cached) " >&6
  17382. else
  17383. ac_check_lib_save_LIBS=$LIBS
  17384. LIBS="-l"$LBERLIBNAME" $LIBS"
  17385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17386. /* end confdefs.h. */
  17387. #ifdef __cplusplus
  17388. extern "C"
  17389. #endif
  17390. char ber_free ();
  17391. int main (void)
  17392. {
  17393. return ber_free ();
  17394. ;
  17395. return 0;
  17396. }
  17397. _ACEOF
  17398. if ac_fn_c_try_link "$LINENO"; then :
  17399. eval "$as_ac_Lib=yes"
  17400. else
  17401. eval "$as_ac_Lib=no"
  17402. fi
  17403. rm -f core conftest.err conftest.$ac_objext \
  17404. conftest$ac_exeext conftest.$ac_ext
  17405. LIBS=$ac_check_lib_save_LIBS
  17406. fi
  17407. eval ac_res=\$$as_ac_Lib
  17408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17409. $as_echo "$ac_res" >&6; }
  17410. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17411. cat >>confdefs.h <<_ACEOF
  17412. #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
  17413. _ACEOF
  17414. LIBS="-l"$LBERLIBNAME" $LIBS"
  17415. else
  17416. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
  17417. $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
  17418. $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  17419. CURL_DISABLE_LDAP=1
  17420. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  17421. CURL_DISABLE_LDAPS=1
  17422. fi
  17423. fi
  17424. fi
  17425. fi
  17426. if test x$CURL_DISABLE_LDAP != x1 ; then
  17427. for ac_func in ldap_url_parse ldap_init_fd
  17428. do :
  17429. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17430. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17431. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17432. cat >>confdefs.h <<_ACEOF
  17433. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17434. _ACEOF
  17435. fi
  17436. done
  17437. if test "$LDAPLIBNAME" = "wldap32"; then
  17438. curl_ldap_msg="enabled (winldap)"
  17439. $as_echo "#define CURL_LDAP_WIN 1" >>confdefs.h
  17440. else
  17441. curl_ldap_msg="enabled (OpenLDAP)"
  17442. if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
  17443. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  17444. USE_OPENLDAP=1
  17445. fi
  17446. fi
  17447. fi
  17448. if test x$CURL_DISABLE_LDAPS != x1 ; then
  17449. curl_ldaps_msg="enabled"
  17450. fi
  17451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
  17452. $as_echo_n "checking whether to enable ipv6... " >&6; }
  17453. # Check whether --enable-ipv6 was given.
  17454. if test "${enable_ipv6+set}" = set; then :
  17455. enableval=$enable_ipv6; case "$enableval" in
  17456. no)
  17457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17458. $as_echo "no" >&6; }
  17459. ipv6=no
  17460. ;;
  17461. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17462. $as_echo "yes" >&6; }
  17463. ipv6=yes
  17464. ;;
  17465. esac
  17466. else
  17467. if test "$cross_compiling" = yes; then :
  17468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17469. $as_echo "no" >&6; }
  17470. ipv6=no
  17471. else
  17472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17473. /* end confdefs.h. */
  17474. /* is AF_INET6 available? */
  17475. #include <sys/types.h>
  17476. #include <sys/socket.h>
  17477. main()
  17478. {
  17479. if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
  17480. exit(1);
  17481. else
  17482. exit(0);
  17483. }
  17484. _ACEOF
  17485. if ac_fn_c_try_run "$LINENO"; then :
  17486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17487. $as_echo "yes" >&6; }
  17488. ipv6=yes
  17489. else
  17490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17491. $as_echo "no" >&6; }
  17492. ipv6=no
  17493. fi
  17494. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17495. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17496. fi
  17497. fi
  17498. if test "$ipv6" = "yes"; then
  17499. curl_ipv6_msg="enabled"
  17500. fi
  17501. # Check if struct sockaddr_in6 have sin6_scope_id member
  17502. if test "$ipv6" = yes; then
  17503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
  17504. $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
  17505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17506. /* end confdefs.h. */
  17507. #include <sys/types.h>
  17508. #include <netinet/in.h>
  17509. int main (void)
  17510. {
  17511. struct sockaddr_in6 s; s.sin6_scope_id = 0;
  17512. ;
  17513. return 0;
  17514. }
  17515. _ACEOF
  17516. if ac_fn_c_try_compile "$LINENO"; then :
  17517. have_sin6_scope_id=yes
  17518. fi
  17519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17520. if test "$have_sin6_scope_id" = yes; then
  17521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17522. $as_echo "yes" >&6; }
  17523. $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
  17524. else
  17525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17526. $as_echo "no" >&6; }
  17527. fi
  17528. fi
  17529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
  17530. $as_echo_n "checking if argv can be written to... " >&6; }
  17531. if test "$cross_compiling" = yes; then :
  17532. curl_cv_writable_argv=cross
  17533. else
  17534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17535. /* end confdefs.h. */
  17536. int main(int argc, char ** argv) {
  17537. argv[0][0] = ' ';
  17538. return (argv[0][0] == ' ')?0:1;
  17539. }
  17540. _ACEOF
  17541. if ac_fn_c_try_run "$LINENO"; then :
  17542. curl_cv_writable_argv=yes
  17543. else
  17544. curl_cv_writable_argv=no
  17545. fi
  17546. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17547. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17548. fi
  17549. case $curl_cv_writable_argv in
  17550. yes)
  17551. $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
  17552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17553. $as_echo "yes" >&6; }
  17554. ;;
  17555. no)
  17556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17557. $as_echo "no" >&6; }
  17558. ;;
  17559. *)
  17560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17561. $as_echo "no" >&6; }
  17562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
  17563. $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
  17564. ;;
  17565. esac
  17566. # Check whether --with-krb4-includes was given.
  17567. if test "${with_krb4_includes+set}" = set; then :
  17568. withval=$with_krb4_includes;
  17569. CPPFLAGS="$CPPFLAGS -I$withval"
  17570. KRB4INC="$withval"
  17571. want_krb4=yes
  17572. fi
  17573. # Check whether --with-krb4-libs was given.
  17574. if test "${with_krb4_libs+set}" = set; then :
  17575. withval=$with_krb4_libs;
  17576. LDFLAGS="$LDFLAGS -L$withval"
  17577. KRB4LIB="$withval"
  17578. want_krb4=yes
  17579. fi
  17580. OPT_KRB4=off
  17581. # Check whether --with-krb4 was given.
  17582. if test "${with_krb4+set}" = set; then :
  17583. withval=$with_krb4;
  17584. OPT_KRB4="$withval"
  17585. if test X"$OPT_KRB4" != Xno; then
  17586. want_krb4="yes"
  17587. if test X"$OPT_KRB4" != Xyes; then
  17588. LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
  17589. KRB4LIB="$OPT_KRB4/lib$libsuff"
  17590. CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
  17591. KRB4INC="$OPT_KRB4/include"
  17592. fi
  17593. fi
  17594. fi
  17595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Kerberos4 support is requested" >&5
  17596. $as_echo_n "checking if Kerberos4 support is requested... " >&6; }
  17597. if test "$want_krb4" = yes
  17598. then
  17599. if test "$ipv6" = "yes"; then
  17600. echo krb4 is not compatible with IPv6
  17601. exit 1
  17602. fi
  17603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17604. $as_echo "yes" >&6; }
  17605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to look for Kerberos4" >&5
  17606. $as_echo_n "checking where to look for Kerberos4... " >&6; }
  17607. if test X"$OPT_KRB4" = Xyes
  17608. then
  17609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaults" >&5
  17610. $as_echo "defaults" >&6; }
  17611. else
  17612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
  17613. $as_echo "libs in $KRB4LIB, headers in $KRB4INC" >&6; }
  17614. fi
  17615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_pcbc_encrypt in -ldes" >&5
  17616. $as_echo_n "checking for des_pcbc_encrypt in -ldes... " >&6; }
  17617. if ${ac_cv_lib_des_des_pcbc_encrypt+:} false; then :
  17618. $as_echo_n "(cached) " >&6
  17619. else
  17620. ac_check_lib_save_LIBS=$LIBS
  17621. LIBS="-ldes $LIBS"
  17622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17623. /* end confdefs.h. */
  17624. #ifdef __cplusplus
  17625. extern "C"
  17626. #endif
  17627. char des_pcbc_encrypt ();
  17628. int main (void)
  17629. {
  17630. return des_pcbc_encrypt ();
  17631. ;
  17632. return 0;
  17633. }
  17634. _ACEOF
  17635. if ac_fn_c_try_link "$LINENO"; then :
  17636. ac_cv_lib_des_des_pcbc_encrypt=yes
  17637. else
  17638. ac_cv_lib_des_des_pcbc_encrypt=no
  17639. fi
  17640. rm -f core conftest.err conftest.$ac_objext \
  17641. conftest$ac_exeext conftest.$ac_ext
  17642. LIBS=$ac_check_lib_save_LIBS
  17643. fi
  17644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
  17645. $as_echo "$ac_cv_lib_des_des_pcbc_encrypt" >&6; }
  17646. if test "x$ac_cv_lib_des_des_pcbc_encrypt" = xyes; then :
  17647. for ac_header in des.h
  17648. do :
  17649. ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
  17650. if test "x$ac_cv_header_des_h" = xyes; then :
  17651. cat >>confdefs.h <<_ACEOF
  17652. #define HAVE_DES_H 1
  17653. _ACEOF
  17654. fi
  17655. done
  17656. ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
  17657. if test "x$ac_cv_func_res_search" = xyes; then :
  17658. else
  17659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
  17660. $as_echo_n "checking for res_search in -lresolv... " >&6; }
  17661. if ${ac_cv_lib_resolv_res_search+:} false; then :
  17662. $as_echo_n "(cached) " >&6
  17663. else
  17664. ac_check_lib_save_LIBS=$LIBS
  17665. LIBS="-lresolv $LIBS"
  17666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17667. /* end confdefs.h. */
  17668. #ifdef __cplusplus
  17669. extern "C"
  17670. #endif
  17671. char res_search ();
  17672. int main (void)
  17673. {
  17674. return res_search ();
  17675. ;
  17676. return 0;
  17677. }
  17678. _ACEOF
  17679. if ac_fn_c_try_link "$LINENO"; then :
  17680. ac_cv_lib_resolv_res_search=yes
  17681. else
  17682. ac_cv_lib_resolv_res_search=no
  17683. fi
  17684. rm -f core conftest.err conftest.$ac_objext \
  17685. conftest$ac_exeext conftest.$ac_ext
  17686. LIBS=$ac_check_lib_save_LIBS
  17687. fi
  17688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
  17689. $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
  17690. if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
  17691. cat >>confdefs.h <<_ACEOF
  17692. #define HAVE_LIBRESOLV 1
  17693. _ACEOF
  17694. LIBS="-lresolv $LIBS"
  17695. fi
  17696. fi
  17697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_net_read in -lkrb" >&5
  17698. $as_echo_n "checking for krb_net_read in -lkrb... " >&6; }
  17699. if ${ac_cv_lib_krb_krb_net_read+:} false; then :
  17700. $as_echo_n "(cached) " >&6
  17701. else
  17702. ac_check_lib_save_LIBS=$LIBS
  17703. LIBS="-lkrb $LIBS"
  17704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17705. /* end confdefs.h. */
  17706. #ifdef __cplusplus
  17707. extern "C"
  17708. #endif
  17709. char krb_net_read ();
  17710. int main (void)
  17711. {
  17712. return krb_net_read ();
  17713. ;
  17714. return 0;
  17715. }
  17716. _ACEOF
  17717. if ac_fn_c_try_link "$LINENO"; then :
  17718. ac_cv_lib_krb_krb_net_read=yes
  17719. else
  17720. ac_cv_lib_krb_krb_net_read=no
  17721. fi
  17722. rm -f core conftest.err conftest.$ac_objext \
  17723. conftest$ac_exeext conftest.$ac_ext
  17724. LIBS=$ac_check_lib_save_LIBS
  17725. fi
  17726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_net_read" >&5
  17727. $as_echo "$ac_cv_lib_krb_krb_net_read" >&6; }
  17728. if test "x$ac_cv_lib_krb_krb_net_read" = xyes; then :
  17729. for ac_header in krb.h
  17730. do :
  17731. ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
  17732. if test "x$ac_cv_header_krb_h" = xyes; then :
  17733. cat >>confdefs.h <<_ACEOF
  17734. #define HAVE_KRB_H 1
  17735. _ACEOF
  17736. fi
  17737. done
  17738. LIBS="-lkrb -lcom_err -ldes $LIBS"
  17739. for ac_func in krb_get_our_ip_for_realm
  17740. do :
  17741. ac_fn_c_check_func "$LINENO" "krb_get_our_ip_for_realm" "ac_cv_func_krb_get_our_ip_for_realm"
  17742. if test "x$ac_cv_func_krb_get_our_ip_for_realm" = xyes; then :
  17743. cat >>confdefs.h <<_ACEOF
  17744. #define HAVE_KRB_GET_OUR_IP_FOR_REALM 1
  17745. _ACEOF
  17746. fi
  17747. done
  17748. $as_echo "#define HAVE_KRB4 1" >>confdefs.h
  17749. KRB4_ENABLED=1
  17750. curl_krb4_msg="enabled"
  17751. for ac_func in strlcpy
  17752. do :
  17753. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  17754. if test "x$ac_cv_func_strlcpy" = xyes; then :
  17755. cat >>confdefs.h <<_ACEOF
  17756. #define HAVE_STRLCPY 1
  17757. _ACEOF
  17758. fi
  17759. done
  17760. fi
  17761. fi
  17762. else
  17763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17764. $as_echo "no" >&6; }
  17765. fi
  17766. # Check whether --with-spnego was given.
  17767. if test "${with_spnego+set}" = set; then :
  17768. withval=$with_spnego;
  17769. SPNEGO_ROOT="$withval"
  17770. if test x"$SPNEGO_ROOT" != xno; then
  17771. want_spnego="yes"
  17772. fi
  17773. fi
  17774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SPNEGO support is requested" >&5
  17775. $as_echo_n "checking if SPNEGO support is requested... " >&6; }
  17776. if test x"$want_spnego" = xyes; then
  17777. if test X"$SPNEGO_ROOT" = Xyes; then
  17778. as_fn_error $? "FBOpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
  17779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17780. $as_echo "no" >&6; }
  17781. else
  17782. if test -z "$SPNEGO_LIB_DIR"; then
  17783. LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
  17784. else
  17785. LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
  17786. fi
  17787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17788. $as_echo "yes" >&6; }
  17789. $as_echo "#define HAVE_SPNEGO 1" >>confdefs.h
  17790. curl_spnego_msg="enabled"
  17791. fi
  17792. else
  17793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17794. $as_echo "no" >&6; }
  17795. fi
  17796. GSSAPI_ROOT="/usr"
  17797. # Check whether --with-gssapi-includes was given.
  17798. if test "${with_gssapi_includes+set}" = set; then :
  17799. withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
  17800. want_gss="yes"
  17801. fi
  17802. # Check whether --with-gssapi-libs was given.
  17803. if test "${with_gssapi_libs+set}" = set; then :
  17804. withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
  17805. want_gss="yes"
  17806. fi
  17807. # Check whether --with-gssapi was given.
  17808. if test "${with_gssapi+set}" = set; then :
  17809. withval=$with_gssapi;
  17810. GSSAPI_ROOT="$withval"
  17811. if test x"$GSSAPI_ROOT" != xno; then
  17812. want_gss="yes"
  17813. if test x"$GSSAPI_ROOT" = xyes; then
  17814. GSSAPI_ROOT="/usr"
  17815. fi
  17816. fi
  17817. fi
  17818. save_CPPFLAGS="$CPPFLAGS"
  17819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSSAPI support is requested" >&5
  17820. $as_echo_n "checking if GSSAPI support is requested... " >&6; }
  17821. if test x"$want_gss" = xyes; then
  17822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17823. $as_echo "yes" >&6; }
  17824. if test -z "$GSSAPI_INCS"; then
  17825. if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
  17826. GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
  17827. elif test "$GSSAPI_ROOT" != "yes"; then
  17828. GSSAPI_INCS="-I$GSSAPI_ROOT/include"
  17829. fi
  17830. fi
  17831. CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
  17832. ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
  17833. if test "x$ac_cv_header_gss_h" = xyes; then :
  17834. $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
  17835. gnu_gss=yes
  17836. else
  17837. for ac_header in gssapi/gssapi.h
  17838. do :
  17839. ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
  17840. if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
  17841. cat >>confdefs.h <<_ACEOF
  17842. #define HAVE_GSSAPI_GSSAPI_H 1
  17843. _ACEOF
  17844. else
  17845. not_mit=1
  17846. fi
  17847. done
  17848. for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
  17849. do :
  17850. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17851. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  17852. $ac_includes_default
  17853. #ifdef HAVE_GSSAPI_GSSAPI_H
  17854. #include <gssapi/gssapi.h>
  17855. #endif
  17856. "
  17857. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17858. cat >>confdefs.h <<_ACEOF
  17859. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17860. _ACEOF
  17861. else
  17862. not_mit=1
  17863. fi
  17864. done
  17865. if test "x$not_mit" = "x1"; then
  17866. ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
  17867. if test "x$ac_cv_header_gssapi_h" = xyes; then :
  17868. $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
  17869. else
  17870. want_gss=no
  17871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSSAPI since no header files was found" >&5
  17872. $as_echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;}
  17873. fi
  17874. else
  17875. $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
  17876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
  17877. $as_echo_n "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
  17878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17879. /* end confdefs.h. */
  17880. #include <gssapi/gssapi.h>
  17881. #include <gssapi/gssapi_generic.h>
  17882. #include <gssapi/gssapi_krb5.h>
  17883. int main (void)
  17884. {
  17885. gss_import_name(
  17886. (OM_uint32 *)0,
  17887. (gss_buffer_t)0,
  17888. GSS_C_NT_HOSTBASED_SERVICE,
  17889. (gss_name_t *)0);
  17890. ;
  17891. return 0;
  17892. }
  17893. _ACEOF
  17894. if ac_fn_c_try_compile "$LINENO"; then :
  17895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17896. $as_echo "yes" >&6; }
  17897. else
  17898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17899. $as_echo "no" >&6; }
  17900. $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
  17901. fi
  17902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17903. fi
  17904. fi
  17905. else
  17906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17907. $as_echo "no" >&6; }
  17908. fi
  17909. if test x"$want_gss" = xyes; then
  17910. $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
  17911. curl_gss_msg="enabled (MIT/Heimdal)"
  17912. if test -n "$gnu_gss"; then
  17913. curl_gss_msg="enabled (GNU GSS)"
  17914. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  17915. LIBS="-lgss $LIBS"
  17916. elif test -z "$GSSAPI_LIB_DIR"; then
  17917. case $host in
  17918. *-*-darwin*)
  17919. LIBS="-lgssapi_krb5 -lresolv $LIBS"
  17920. ;;
  17921. *)
  17922. if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
  17923. gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
  17924. LIBS="$gss_libs $LIBS"
  17925. elif test "$GSSAPI_ROOT" != "yes"; then
  17926. LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
  17927. LIBS="-lgssapi $LIBS"
  17928. else
  17929. LIBS="-lgssapi $LIBS"
  17930. fi
  17931. ;;
  17932. esac
  17933. else
  17934. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  17935. LIBS="-lgssapi $LIBS"
  17936. fi
  17937. else
  17938. CPPFLAGS="$save_CPPFLAGS"
  17939. fi
  17940. OPT_WINSSL=no
  17941. # Check whether --with-winssl was given.
  17942. if test "${with_winssl+set}" = set; then :
  17943. withval=$with_winssl; OPT_WINSSL=$withval
  17944. fi
  17945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
  17946. $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
  17947. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  17948. if test "x$OPT_WINSSL" != "xno" &&
  17949. test "x$ac_cv_native_windows" = "xyes"; then
  17950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17951. $as_echo "yes" >&6; }
  17952. $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
  17953. USE_SCHANNEL=1
  17954. curl_ssl_msg="enabled (Windows-native)"
  17955. WINSSL_ENABLED=1
  17956. # --with-winssl implies --enable-sspi
  17957. $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
  17958. USE_WINDOWS_SSPI=1
  17959. curl_sspi_msg="enabled"
  17960. else
  17961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17962. $as_echo "no" >&6; }
  17963. fi
  17964. else
  17965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17966. $as_echo "no" >&6; }
  17967. fi
  17968. OPT_DARWINSSL=no
  17969. # Check whether --with-darwinssl was given.
  17970. if test "${with_darwinssl+set}" = set; then :
  17971. withval=$with_darwinssl; OPT_DARWINSSL=$withval
  17972. fi
  17973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
  17974. $as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
  17975. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  17976. if test "x$OPT_DARWINSSL" != "xno" &&
  17977. test -d "/System/Library/Frameworks/Security.framework"; then
  17978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17979. $as_echo "yes" >&6; }
  17980. $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
  17981. USE_DARWINSSL=1
  17982. curl_ssl_msg="enabled (iOS/Mac OS X-native)"
  17983. DARWINSSL_ENABLED=1
  17984. LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
  17985. else
  17986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17987. $as_echo "no" >&6; }
  17988. fi
  17989. else
  17990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17991. $as_echo "no" >&6; }
  17992. fi
  17993. OPT_SSL=off
  17994. ca="no"
  17995. # Check whether --with-ssl was given.
  17996. if test "${with_ssl+set}" = set; then :
  17997. withval=$with_ssl; OPT_SSL=$withval
  17998. fi
  17999. if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
  18000. CLEANLDFLAGS="$LDFLAGS"
  18001. CLEANCPPFLAGS="$CPPFLAGS"
  18002. CLEANLIBS="$LIBS"
  18003. case "$OPT_SSL" in
  18004. yes)
  18005. if test x$cross_compiling != xyes; then
  18006. PKGTEST="yes"
  18007. fi
  18008. PREFIX_OPENSSL=/usr/local/ssl
  18009. LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
  18010. ;;
  18011. off)
  18012. if test x$cross_compiling != xyes; then
  18013. PKGTEST="yes"
  18014. fi
  18015. PREFIX_OPENSSL=
  18016. ;;
  18017. *)
  18018. PKGTEST="no"
  18019. PREFIX_OPENSSL=$OPT_SSL
  18020. OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
  18021. { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
  18022. $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
  18023. if test -f "$OPENSSL_PCDIR/openssl.pc"; then
  18024. PKGTEST="yes"
  18025. fi
  18026. LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
  18027. if test "$PREFIX_OPENSSL" != "/usr" ; then
  18028. SSL_LDFLAGS="-L$LIB_OPENSSL"
  18029. SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
  18030. fi
  18031. SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
  18032. ;;
  18033. esac
  18034. if test "$PKGTEST" = "yes"; then
  18035. PKGCONFIG="no"
  18036. if test -n "$ac_tool_prefix"; then
  18037. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  18038. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  18039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18040. $as_echo_n "checking for $ac_word... " >&6; }
  18041. if ${ac_cv_path_PKGCONFIG+:} false; then :
  18042. $as_echo_n "(cached) " >&6
  18043. else
  18044. case $PKGCONFIG in
  18045. [\\/]* | ?:[\\/]*)
  18046. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  18047. ;;
  18048. *)
  18049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18050. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  18051. for as_dir in $as_dummy
  18052. do
  18053. IFS=$as_save_IFS
  18054. test -z "$as_dir" && as_dir=.
  18055. for ac_exec_ext in '' $ac_executable_extensions; do
  18056. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18057. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18058. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18059. break 2
  18060. fi
  18061. done
  18062. done
  18063. IFS=$as_save_IFS
  18064. ;;
  18065. esac
  18066. fi
  18067. PKGCONFIG=$ac_cv_path_PKGCONFIG
  18068. if test -n "$PKGCONFIG"; then
  18069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  18070. $as_echo "$PKGCONFIG" >&6; }
  18071. else
  18072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18073. $as_echo "no" >&6; }
  18074. fi
  18075. fi
  18076. if test -z "$ac_cv_path_PKGCONFIG"; then
  18077. ac_pt_PKGCONFIG=$PKGCONFIG
  18078. # Extract the first word of "pkg-config", so it can be a program name with args.
  18079. set dummy pkg-config; ac_word=$2
  18080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18081. $as_echo_n "checking for $ac_word... " >&6; }
  18082. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  18083. $as_echo_n "(cached) " >&6
  18084. else
  18085. case $ac_pt_PKGCONFIG in
  18086. [\\/]* | ?:[\\/]*)
  18087. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  18088. ;;
  18089. *)
  18090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18091. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  18092. for as_dir in $as_dummy
  18093. do
  18094. IFS=$as_save_IFS
  18095. test -z "$as_dir" && as_dir=.
  18096. for ac_exec_ext in '' $ac_executable_extensions; do
  18097. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18098. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18099. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18100. break 2
  18101. fi
  18102. done
  18103. done
  18104. IFS=$as_save_IFS
  18105. ;;
  18106. esac
  18107. fi
  18108. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  18109. if test -n "$ac_pt_PKGCONFIG"; then
  18110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  18111. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  18112. else
  18113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18114. $as_echo "no" >&6; }
  18115. fi
  18116. if test "x$ac_pt_PKGCONFIG" = x; then
  18117. PKGCONFIG="no"
  18118. else
  18119. case $cross_compiling:$ac_tool_warned in
  18120. yes:)
  18121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18122. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18123. ac_tool_warned=yes ;;
  18124. esac
  18125. PKGCONFIG=$ac_pt_PKGCONFIG
  18126. fi
  18127. else
  18128. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  18129. fi
  18130. if test x$PKGCONFIG != xno; then
  18131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
  18132. $as_echo_n "checking for openssl options with pkg-config... " >&6; }
  18133. itexists=`
  18134. if test -n "$OPENSSL_PCDIR"; then
  18135. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  18136. export PKG_CONFIG_LIBDIR
  18137. fi
  18138. $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
  18139. if test -z "$itexists"; then
  18140. PKGCONFIG="no"
  18141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18142. $as_echo "no" >&6; }
  18143. else
  18144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  18145. $as_echo "found" >&6; }
  18146. fi
  18147. fi
  18148. if test "$PKGCONFIG" != "no" ; then
  18149. SSL_LIBS=`
  18150. if test -n "$OPENSSL_PCDIR"; then
  18151. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  18152. export PKG_CONFIG_LIBDIR
  18153. fi
  18154. $PKGCONFIG --libs-only-l openssl 2>/dev/null`
  18155. SSL_LDFLAGS=`
  18156. if test -n "$OPENSSL_PCDIR"; then
  18157. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  18158. export PKG_CONFIG_LIBDIR
  18159. fi
  18160. $PKGCONFIG --libs-only-L openssl 2>/dev/null`
  18161. SSL_CPPFLAGS=`
  18162. if test -n "$OPENSSL_PCDIR"; then
  18163. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  18164. export PKG_CONFIG_LIBDIR
  18165. fi
  18166. $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
  18167. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
  18168. $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
  18169. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
  18170. $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
  18171. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
  18172. $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
  18173. LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
  18174. LIBS="$SSL_LIBS $LIBS"
  18175. fi
  18176. fi
  18177. CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
  18178. LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
  18179. case $host in
  18180. *-*-msys* | *-*-mingw*)
  18181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
  18182. $as_echo_n "checking for gdi32... " >&6; }
  18183. my_ac_save_LIBS=$LIBS
  18184. LIBS="-lgdi32 $LIBS"
  18185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18186. /* end confdefs.h. */
  18187. #include <windef.h>
  18188. #include <wingdi.h>
  18189. int main (void)
  18190. {
  18191. GdiFlush();
  18192. ;
  18193. return 0;
  18194. }
  18195. _ACEOF
  18196. if ac_fn_c_try_link "$LINENO"; then :
  18197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18198. $as_echo "yes" >&6; }
  18199. else
  18200. LIBS=$my_ac_save_LIBS
  18201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18202. $as_echo "no" >&6; }
  18203. fi
  18204. rm -f core conftest.err conftest.$ac_objext \
  18205. conftest$ac_exeext conftest.$ac_ext
  18206. ;;
  18207. esac
  18208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
  18209. $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
  18210. if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
  18211. $as_echo_n "(cached) " >&6
  18212. else
  18213. ac_check_lib_save_LIBS=$LIBS
  18214. LIBS="-lcrypto $LIBS"
  18215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18216. /* end confdefs.h. */
  18217. #ifdef __cplusplus
  18218. extern "C"
  18219. #endif
  18220. char CRYPTO_lock ();
  18221. int main (void)
  18222. {
  18223. return CRYPTO_lock ();
  18224. ;
  18225. return 0;
  18226. }
  18227. _ACEOF
  18228. if ac_fn_c_try_link "$LINENO"; then :
  18229. ac_cv_lib_crypto_CRYPTO_lock=yes
  18230. else
  18231. ac_cv_lib_crypto_CRYPTO_lock=no
  18232. fi
  18233. rm -f core conftest.err conftest.$ac_objext \
  18234. conftest$ac_exeext conftest.$ac_ext
  18235. LIBS=$ac_check_lib_save_LIBS
  18236. fi
  18237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
  18238. $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
  18239. if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
  18240. HAVECRYPTO="yes"
  18241. LIBS="-lcrypto $LIBS"
  18242. else
  18243. LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
  18244. CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
  18245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5
  18246. $as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; }
  18247. if ${ac_cv_lib_crypto_CRYPTO_add_lock+:} false; then :
  18248. $as_echo_n "(cached) " >&6
  18249. else
  18250. ac_check_lib_save_LIBS=$LIBS
  18251. LIBS="-lcrypto $LIBS"
  18252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18253. /* end confdefs.h. */
  18254. #ifdef __cplusplus
  18255. extern "C"
  18256. #endif
  18257. char CRYPTO_add_lock ();
  18258. int main (void)
  18259. {
  18260. return CRYPTO_add_lock ();
  18261. ;
  18262. return 0;
  18263. }
  18264. _ACEOF
  18265. if ac_fn_c_try_link "$LINENO"; then :
  18266. ac_cv_lib_crypto_CRYPTO_add_lock=yes
  18267. else
  18268. ac_cv_lib_crypto_CRYPTO_add_lock=no
  18269. fi
  18270. rm -f core conftest.err conftest.$ac_objext \
  18271. conftest$ac_exeext conftest.$ac_ext
  18272. LIBS=$ac_check_lib_save_LIBS
  18273. fi
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
  18275. $as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
  18276. if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = xyes; then :
  18277. HAVECRYPTO="yes"
  18278. LIBS="-lcrypto $LIBS"
  18279. else
  18280. LDFLAGS="$CLEANLDFLAGS"
  18281. CPPFLAGS="$CLEANCPPFLAGS"
  18282. LIBS="$CLEANLIBS"
  18283. fi
  18284. fi
  18285. if test X"$HAVECRYPTO" = X"yes"; then
  18286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
  18287. $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
  18288. if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
  18289. $as_echo_n "(cached) " >&6
  18290. else
  18291. ac_check_lib_save_LIBS=$LIBS
  18292. LIBS="-lssl $LIBS"
  18293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18294. /* end confdefs.h. */
  18295. #ifdef __cplusplus
  18296. extern "C"
  18297. #endif
  18298. char SSL_connect ();
  18299. int main (void)
  18300. {
  18301. return SSL_connect ();
  18302. ;
  18303. return 0;
  18304. }
  18305. _ACEOF
  18306. if ac_fn_c_try_link "$LINENO"; then :
  18307. ac_cv_lib_ssl_SSL_connect=yes
  18308. else
  18309. ac_cv_lib_ssl_SSL_connect=no
  18310. fi
  18311. rm -f core conftest.err conftest.$ac_objext \
  18312. conftest$ac_exeext conftest.$ac_ext
  18313. LIBS=$ac_check_lib_save_LIBS
  18314. fi
  18315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
  18316. $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
  18317. if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
  18318. cat >>confdefs.h <<_ACEOF
  18319. #define HAVE_LIBSSL 1
  18320. _ACEOF
  18321. LIBS="-lssl $LIBS"
  18322. fi
  18323. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  18324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
  18325. $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
  18326. OLIBS=$LIBS
  18327. LIBS="-lRSAglue -lrsaref $LIBS"
  18328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
  18329. $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
  18330. if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
  18331. $as_echo_n "(cached) " >&6
  18332. else
  18333. ac_check_lib_save_LIBS=$LIBS
  18334. LIBS="-lssl $LIBS"
  18335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18336. /* end confdefs.h. */
  18337. #ifdef __cplusplus
  18338. extern "C"
  18339. #endif
  18340. char SSL_connect ();
  18341. int main (void)
  18342. {
  18343. return SSL_connect ();
  18344. ;
  18345. return 0;
  18346. }
  18347. _ACEOF
  18348. if ac_fn_c_try_link "$LINENO"; then :
  18349. ac_cv_lib_ssl_SSL_connect=yes
  18350. else
  18351. ac_cv_lib_ssl_SSL_connect=no
  18352. fi
  18353. rm -f core conftest.err conftest.$ac_objext \
  18354. conftest$ac_exeext conftest.$ac_ext
  18355. LIBS=$ac_check_lib_save_LIBS
  18356. fi
  18357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
  18358. $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
  18359. if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
  18360. cat >>confdefs.h <<_ACEOF
  18361. #define HAVE_LIBSSL 1
  18362. _ACEOF
  18363. LIBS="-lssl $LIBS"
  18364. fi
  18365. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  18366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18367. $as_echo "no" >&6; }
  18368. LIBS=$OLIBS
  18369. else
  18370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18371. $as_echo "yes" >&6; }
  18372. fi
  18373. else
  18374. for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
  18375. openssl/pem.h openssl/ssl.h openssl/err.h
  18376. do :
  18377. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18378. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  18379. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  18380. cat >>confdefs.h <<_ACEOF
  18381. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18382. _ACEOF
  18383. curl_ssl_msg="enabled (OpenSSL)"
  18384. OPENSSL_ENABLED=1
  18385. $as_echo "#define USE_OPENSSL 1" >>confdefs.h
  18386. fi
  18387. done
  18388. if test $ac_cv_header_openssl_x509_h = no; then
  18389. for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
  18390. do :
  18391. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18392. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  18393. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  18394. cat >>confdefs.h <<_ACEOF
  18395. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18396. _ACEOF
  18397. fi
  18398. done
  18399. if test $ac_cv_header_x509_h = yes &&
  18400. test $ac_cv_header_crypto_h = yes &&
  18401. test $ac_cv_header_ssl_h = yes; then
  18402. curl_ssl_msg="enabled (OpenSSL)"
  18403. OPENSSL_ENABLED=1
  18404. fi
  18405. fi
  18406. fi
  18407. if test X"$OPENSSL_ENABLED" = X"1"; then
  18408. $as_echo "#define USE_SSLEAY 1" >>confdefs.h
  18409. for ac_header in openssl/pkcs12.h
  18410. do :
  18411. ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
  18412. if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
  18413. cat >>confdefs.h <<_ACEOF
  18414. #define HAVE_OPENSSL_PKCS12_H 1
  18415. _ACEOF
  18416. fi
  18417. done
  18418. else
  18419. LIBS="$CLEANLIBS"
  18420. fi
  18421. USE_SSLEAY="$OPENSSL_ENABLED"
  18422. if test X"$OPT_SSL" != Xoff &&
  18423. test "$OPENSSL_ENABLED" != "1"; then
  18424. as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
  18425. fi
  18426. fi
  18427. if test X"$OPENSSL_ENABLED" = X"1"; then
  18428. ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
  18429. if test "x$ac_cv_func_ENGINE_init" = xyes; then :
  18430. for ac_header in openssl/engine.h
  18431. do :
  18432. ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
  18433. if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
  18434. cat >>confdefs.h <<_ACEOF
  18435. #define HAVE_OPENSSL_ENGINE_H 1
  18436. _ACEOF
  18437. fi
  18438. done
  18439. for ac_func in ENGINE_load_builtin_engines
  18440. do :
  18441. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18442. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18443. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18444. cat >>confdefs.h <<_ACEOF
  18445. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18446. _ACEOF
  18447. fi
  18448. done
  18449. fi
  18450. for ac_func in RAND_status \
  18451. RAND_screen \
  18452. RAND_egd \
  18453. ENGINE_cleanup \
  18454. CRYPTO_cleanup_all_ex_data \
  18455. SSL_get_shutdown \
  18456. SSLv2_client_method
  18457. do :
  18458. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18459. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18460. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18461. cat >>confdefs.h <<_ACEOF
  18462. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18463. _ACEOF
  18464. fi
  18465. done
  18466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaSSL using OpenSSL compatibility mode" >&5
  18467. $as_echo_n "checking for yaSSL using OpenSSL compatibility mode... " >&6; }
  18468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18469. /* end confdefs.h. */
  18470. #include <openssl/ssl.h>
  18471. int main (void)
  18472. {
  18473. #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
  18474. int dummy = SSL_ERROR_NONE;
  18475. #else
  18476. Not the yaSSL OpenSSL compatibility header.
  18477. #endif
  18478. ;
  18479. return 0;
  18480. }
  18481. _ACEOF
  18482. if ac_fn_c_try_compile "$LINENO"; then :
  18483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18484. $as_echo "yes" >&6; }
  18485. cat >>confdefs.h <<_ACEOF
  18486. #define USE_YASSLEMUL 1
  18487. _ACEOF
  18488. curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
  18489. else
  18490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18491. $as_echo "no" >&6; }
  18492. fi
  18493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18494. fi
  18495. if test "$OPENSSL_ENABLED" = "1"; then
  18496. if test -n "$LIB_OPENSSL"; then
  18497. if test "x$cross_compiling" != "xyes"; then
  18498. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
  18499. export LD_LIBRARY_PATH
  18500. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
  18501. $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
  18502. fi
  18503. fi
  18504. #
  18505. #
  18506. tst_api="unknown"
  18507. #
  18508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
  18509. $as_echo_n "checking for OpenSSL headers version... " >&6; }
  18510. if test -z "$SED"; then
  18511. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18512. fi
  18513. if test -z "$GREP"; then
  18514. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18515. fi
  18516. tmp_exp=""
  18517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18518. /* end confdefs.h. */
  18519. # ifdef USE_OPENSSL
  18520. # include <openssl/crypto.h>
  18521. # else
  18522. # include <crypto.h>
  18523. # endif
  18524. #ifdef OPENSSL_VERSION_NUMBER
  18525. CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
  18526. #endif
  18527. _ACEOF
  18528. if ac_fn_c_try_cpp "$LINENO"; then :
  18529. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18530. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18531. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18532. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18533. if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
  18534. tmp_exp=""
  18535. fi
  18536. fi
  18537. rm -f conftest.err conftest.i conftest.$ac_ext
  18538. if test -z "$tmp_exp"; then
  18539. curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
  18540. else
  18541. curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
  18542. curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
  18543. fi
  18544. if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
  18545. tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
  18546. case "x$tst_verlen" in
  18547. x6)
  18548. tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
  18549. tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
  18550. tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
  18551. tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
  18552. ;;
  18553. x11|x10)
  18554. tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
  18555. tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
  18556. tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
  18557. tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
  18558. ;;
  18559. *)
  18560. tst_api="unknown"
  18561. ;;
  18562. esac
  18563. case $tst_api in
  18564. 0x110) tst_show="1.1.0" ;;
  18565. 0x101) tst_show="1.0.1" ;;
  18566. 0x100) tst_show="1.0.0" ;;
  18567. 0x099) tst_show="0.9.9" ;;
  18568. 0x098) tst_show="0.9.8" ;;
  18569. 0x097) tst_show="0.9.7" ;;
  18570. 0x096) tst_show="0.9.6" ;;
  18571. 0x095) tst_show="0.9.5" ;;
  18572. 0x094) tst_show="0.9.4" ;;
  18573. 0x093) tst_show="0.9.3" ;;
  18574. 0x092) tst_show="0.9.2" ;;
  18575. 0x091) tst_show="0.9.1" ;;
  18576. *) tst_show="unknown" ;;
  18577. esac
  18578. tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
  18579. else
  18580. tst_show="unknown"
  18581. fi
  18582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
  18583. $as_echo "$tst_show" >&6; }
  18584. #
  18585. curl_openssl_api_headers=$tst_api
  18586. #
  18587. tst_api="unknown"
  18588. #
  18589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
  18590. $as_echo_n "checking for OpenSSL library version... " >&6; }
  18591. if test "$tst_api" = "unknown"; then
  18592. case $host in
  18593. *-*-vms*)
  18594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18595. /* end confdefs.h. */
  18596. #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
  18597. #ifdef __STDC__
  18598. # include <limits.h>
  18599. #else
  18600. # include <assert.h>
  18601. #endif
  18602. #undef SSL_CTX_set_not_resumbl_sess_cb
  18603. #ifdef __cplusplus
  18604. extern "C"
  18605. #endif
  18606. char SSL_CTX_set_not_resumbl_sess_cb ();
  18607. #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
  18608. choke me
  18609. #endif
  18610. int main (void)
  18611. {
  18612. return SSL_CTX_set_not_resumbl_sess_cb ();
  18613. ;
  18614. return 0;
  18615. }
  18616. _ACEOF
  18617. if ac_fn_c_try_link "$LINENO"; then :
  18618. tst_api="0x110"
  18619. fi
  18620. rm -f core conftest.err conftest.$ac_objext \
  18621. conftest$ac_exeext conftest.$ac_ext
  18622. ;;
  18623. *)
  18624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18625. /* end confdefs.h. */
  18626. #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
  18627. #ifdef __STDC__
  18628. # include <limits.h>
  18629. #else
  18630. # include <assert.h>
  18631. #endif
  18632. #undef SSL_CTX_set_not_resumable_session_callback
  18633. #ifdef __cplusplus
  18634. extern "C"
  18635. #endif
  18636. char SSL_CTX_set_not_resumable_session_callback ();
  18637. #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
  18638. choke me
  18639. #endif
  18640. int main (void)
  18641. {
  18642. return SSL_CTX_set_not_resumable_session_callback ();
  18643. ;
  18644. return 0;
  18645. }
  18646. _ACEOF
  18647. if ac_fn_c_try_link "$LINENO"; then :
  18648. tst_api="0x110"
  18649. fi
  18650. rm -f core conftest.err conftest.$ac_objext \
  18651. conftest$ac_exeext conftest.$ac_ext
  18652. ;;
  18653. esac
  18654. fi
  18655. if test "$tst_api" = "unknown"; then
  18656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18657. /* end confdefs.h. */
  18658. #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
  18659. #ifdef __STDC__
  18660. # include <limits.h>
  18661. #else
  18662. # include <assert.h>
  18663. #endif
  18664. #undef SSL_renegotiate_abbreviated
  18665. #ifdef __cplusplus
  18666. extern "C"
  18667. #endif
  18668. char SSL_renegotiate_abbreviated ();
  18669. #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
  18670. choke me
  18671. #endif
  18672. int main (void)
  18673. {
  18674. return SSL_renegotiate_abbreviated ();
  18675. ;
  18676. return 0;
  18677. }
  18678. _ACEOF
  18679. if ac_fn_c_try_link "$LINENO"; then :
  18680. tst_api="0x101"
  18681. fi
  18682. rm -f core conftest.err conftest.$ac_objext \
  18683. conftest$ac_exeext conftest.$ac_ext
  18684. fi
  18685. if test "$tst_api" = "unknown"; then
  18686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18687. /* end confdefs.h. */
  18688. #define OBJ_add_sigid innocuous_OBJ_add_sigid
  18689. #ifdef __STDC__
  18690. # include <limits.h>
  18691. #else
  18692. # include <assert.h>
  18693. #endif
  18694. #undef OBJ_add_sigid
  18695. #ifdef __cplusplus
  18696. extern "C"
  18697. #endif
  18698. char OBJ_add_sigid ();
  18699. #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
  18700. choke me
  18701. #endif
  18702. int main (void)
  18703. {
  18704. return OBJ_add_sigid ();
  18705. ;
  18706. return 0;
  18707. }
  18708. _ACEOF
  18709. if ac_fn_c_try_link "$LINENO"; then :
  18710. tst_api="0x100"
  18711. fi
  18712. rm -f core conftest.err conftest.$ac_objext \
  18713. conftest$ac_exeext conftest.$ac_ext
  18714. fi
  18715. if test "$tst_api" = "unknown"; then
  18716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18717. /* end confdefs.h. */
  18718. #define ERR_set_mark innocuous_ERR_set_mark
  18719. #ifdef __STDC__
  18720. # include <limits.h>
  18721. #else
  18722. # include <assert.h>
  18723. #endif
  18724. #undef ERR_set_mark
  18725. #ifdef __cplusplus
  18726. extern "C"
  18727. #endif
  18728. char ERR_set_mark ();
  18729. #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
  18730. choke me
  18731. #endif
  18732. int main (void)
  18733. {
  18734. return ERR_set_mark ();
  18735. ;
  18736. return 0;
  18737. }
  18738. _ACEOF
  18739. if ac_fn_c_try_link "$LINENO"; then :
  18740. tst_api="0x098"
  18741. fi
  18742. rm -f core conftest.err conftest.$ac_objext \
  18743. conftest$ac_exeext conftest.$ac_ext
  18744. fi
  18745. if test "$tst_api" = "unknown"; then
  18746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18747. /* end confdefs.h. */
  18748. #define ERR_peek_last_error innocuous_ERR_peek_last_error
  18749. #ifdef __STDC__
  18750. # include <limits.h>
  18751. #else
  18752. # include <assert.h>
  18753. #endif
  18754. #undef ERR_peek_last_error
  18755. #ifdef __cplusplus
  18756. extern "C"
  18757. #endif
  18758. char ERR_peek_last_error ();
  18759. #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
  18760. choke me
  18761. #endif
  18762. int main (void)
  18763. {
  18764. return ERR_peek_last_error ();
  18765. ;
  18766. return 0;
  18767. }
  18768. _ACEOF
  18769. if ac_fn_c_try_link "$LINENO"; then :
  18770. tst_api="0x097"
  18771. fi
  18772. rm -f core conftest.err conftest.$ac_objext \
  18773. conftest$ac_exeext conftest.$ac_ext
  18774. fi
  18775. if test "$tst_api" = "unknown"; then
  18776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18777. /* end confdefs.h. */
  18778. #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
  18779. #ifdef __STDC__
  18780. # include <limits.h>
  18781. #else
  18782. # include <assert.h>
  18783. #endif
  18784. #undef c2i_ASN1_OBJECT
  18785. #ifdef __cplusplus
  18786. extern "C"
  18787. #endif
  18788. char c2i_ASN1_OBJECT ();
  18789. #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
  18790. choke me
  18791. #endif
  18792. int main (void)
  18793. {
  18794. return c2i_ASN1_OBJECT ();
  18795. ;
  18796. return 0;
  18797. }
  18798. _ACEOF
  18799. if ac_fn_c_try_link "$LINENO"; then :
  18800. tst_api="0x096"
  18801. fi
  18802. rm -f core conftest.err conftest.$ac_objext \
  18803. conftest$ac_exeext conftest.$ac_ext
  18804. fi
  18805. if test "$tst_api" = "unknown"; then
  18806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18807. /* end confdefs.h. */
  18808. #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
  18809. #ifdef __STDC__
  18810. # include <limits.h>
  18811. #else
  18812. # include <assert.h>
  18813. #endif
  18814. #undef SSL_CTX_set_purpose
  18815. #ifdef __cplusplus
  18816. extern "C"
  18817. #endif
  18818. char SSL_CTX_set_purpose ();
  18819. #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
  18820. choke me
  18821. #endif
  18822. int main (void)
  18823. {
  18824. return SSL_CTX_set_purpose ();
  18825. ;
  18826. return 0;
  18827. }
  18828. _ACEOF
  18829. if ac_fn_c_try_link "$LINENO"; then :
  18830. tst_api="0x095"
  18831. fi
  18832. rm -f core conftest.err conftest.$ac_objext \
  18833. conftest$ac_exeext conftest.$ac_ext
  18834. fi
  18835. if test "$tst_api" = "unknown"; then
  18836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18837. /* end confdefs.h. */
  18838. #define OBJ_obj2txt innocuous_OBJ_obj2txt
  18839. #ifdef __STDC__
  18840. # include <limits.h>
  18841. #else
  18842. # include <assert.h>
  18843. #endif
  18844. #undef OBJ_obj2txt
  18845. #ifdef __cplusplus
  18846. extern "C"
  18847. #endif
  18848. char OBJ_obj2txt ();
  18849. #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
  18850. choke me
  18851. #endif
  18852. int main (void)
  18853. {
  18854. return OBJ_obj2txt ();
  18855. ;
  18856. return 0;
  18857. }
  18858. _ACEOF
  18859. if ac_fn_c_try_link "$LINENO"; then :
  18860. tst_api="0x094"
  18861. fi
  18862. rm -f core conftest.err conftest.$ac_objext \
  18863. conftest$ac_exeext conftest.$ac_ext
  18864. fi
  18865. if test "$tst_api" = "unknown"; then
  18866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18867. /* end confdefs.h. */
  18868. #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
  18869. #ifdef __STDC__
  18870. # include <limits.h>
  18871. #else
  18872. # include <assert.h>
  18873. #endif
  18874. #undef SSL_get_verify_depth
  18875. #ifdef __cplusplus
  18876. extern "C"
  18877. #endif
  18878. char SSL_get_verify_depth ();
  18879. #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
  18880. choke me
  18881. #endif
  18882. int main (void)
  18883. {
  18884. return SSL_get_verify_depth ();
  18885. ;
  18886. return 0;
  18887. }
  18888. _ACEOF
  18889. if ac_fn_c_try_link "$LINENO"; then :
  18890. tst_api="0x093"
  18891. fi
  18892. rm -f core conftest.err conftest.$ac_objext \
  18893. conftest$ac_exeext conftest.$ac_ext
  18894. fi
  18895. if test "$tst_api" = "unknown"; then
  18896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18897. /* end confdefs.h. */
  18898. #define SSL_library_init innocuous_SSL_library_init
  18899. #ifdef __STDC__
  18900. # include <limits.h>
  18901. #else
  18902. # include <assert.h>
  18903. #endif
  18904. #undef SSL_library_init
  18905. #ifdef __cplusplus
  18906. extern "C"
  18907. #endif
  18908. char SSL_library_init ();
  18909. #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
  18910. choke me
  18911. #endif
  18912. int main (void)
  18913. {
  18914. return SSL_library_init ();
  18915. ;
  18916. return 0;
  18917. }
  18918. _ACEOF
  18919. if ac_fn_c_try_link "$LINENO"; then :
  18920. tst_api="0x092"
  18921. fi
  18922. rm -f core conftest.err conftest.$ac_objext \
  18923. conftest$ac_exeext conftest.$ac_ext
  18924. fi
  18925. if test "$tst_api" = "unknown"; then
  18926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18927. /* end confdefs.h. */
  18928. #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
  18929. #ifdef __STDC__
  18930. # include <limits.h>
  18931. #else
  18932. # include <assert.h>
  18933. #endif
  18934. #undef SSL_CTX_set_cipher_list
  18935. #ifdef __cplusplus
  18936. extern "C"
  18937. #endif
  18938. char SSL_CTX_set_cipher_list ();
  18939. #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
  18940. choke me
  18941. #endif
  18942. int main (void)
  18943. {
  18944. return SSL_CTX_set_cipher_list ();
  18945. ;
  18946. return 0;
  18947. }
  18948. _ACEOF
  18949. if ac_fn_c_try_link "$LINENO"; then :
  18950. tst_api="0x091"
  18951. fi
  18952. rm -f core conftest.err conftest.$ac_objext \
  18953. conftest$ac_exeext conftest.$ac_ext
  18954. fi
  18955. case $tst_api in
  18956. 0x110) tst_show="1.1.0" ;;
  18957. 0x101) tst_show="1.0.1" ;;
  18958. 0x100) tst_show="1.0.0" ;;
  18959. 0x099) tst_show="0.9.9" ;;
  18960. 0x098) tst_show="0.9.8" ;;
  18961. 0x097) tst_show="0.9.7" ;;
  18962. 0x096) tst_show="0.9.6" ;;
  18963. 0x095) tst_show="0.9.5" ;;
  18964. 0x094) tst_show="0.9.4" ;;
  18965. 0x093) tst_show="0.9.3" ;;
  18966. 0x092) tst_show="0.9.2" ;;
  18967. 0x091) tst_show="0.9.1" ;;
  18968. *) tst_show="unknown" ;;
  18969. esac
  18970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
  18971. $as_echo "$tst_show" >&6; }
  18972. #
  18973. curl_openssl_api_library=$tst_api
  18974. #
  18975. tst_match="yes"
  18976. #
  18977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
  18978. $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
  18979. if test "$curl_openssl_api_headers" = "unknown" ||
  18980. test "$curl_openssl_api_library" = "unknown"; then
  18981. tst_match="fail"
  18982. tst_warns="Can not compare OpenSSL headers and library versions."
  18983. elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
  18984. tst_match="no"
  18985. tst_warns="OpenSSL headers and library versions do not match."
  18986. fi
  18987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
  18988. $as_echo "$tst_match" >&6; }
  18989. if test "$tst_match" != "yes"; then
  18990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
  18991. $as_echo "$as_me: WARNING: $tst_warns" >&2;}
  18992. fi
  18993. fi
  18994. fi
  18995. if test X"$OPENSSL_ENABLED" = X"1"; then
  18996. # Check whether --with-egd-socket was given.
  18997. if test "${with_egd_socket+set}" = set; then :
  18998. withval=$with_egd_socket; EGD_SOCKET="$withval"
  18999. fi
  19000. if test -n "$EGD_SOCKET" ; then
  19001. cat >>confdefs.h <<_ACEOF
  19002. #define EGD_SOCKET "$EGD_SOCKET"
  19003. _ACEOF
  19004. fi
  19005. # Check whether --with-random was given.
  19006. if test "${with_random+set}" = set; then :
  19007. withval=$with_random; RANDOM_FILE="$withval"
  19008. else
  19009. if test x$cross_compiling != xyes; then
  19010. as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
  19011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
  19012. $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
  19013. if eval \${$as_ac_File+:} false; then :
  19014. $as_echo_n "(cached) " >&6
  19015. else
  19016. test "$cross_compiling" = yes &&
  19017. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  19018. if test -r ""/dev/urandom""; then
  19019. eval "$as_ac_File=yes"
  19020. else
  19021. eval "$as_ac_File=no"
  19022. fi
  19023. fi
  19024. eval ac_res=\$$as_ac_File
  19025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19026. $as_echo "$ac_res" >&6; }
  19027. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  19028. RANDOM_FILE="/dev/urandom"
  19029. fi
  19030. else
  19031. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
  19032. $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
  19033. fi
  19034. fi
  19035. if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
  19036. cat >>confdefs.h <<_ACEOF
  19037. #define RANDOM_FILE "$RANDOM_FILE"
  19038. _ACEOF
  19039. fi
  19040. fi
  19041. if test "$OPENSSL_ENABLED" = "1"; then
  19042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
  19043. $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
  19044. if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
  19045. $as_echo_n "(cached) " >&6
  19046. else
  19047. ac_check_lib_save_LIBS=$LIBS
  19048. LIBS="-lcrypto $LIBS"
  19049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19050. /* end confdefs.h. */
  19051. #ifdef __cplusplus
  19052. extern "C"
  19053. #endif
  19054. char SRP_Calc_client_key ();
  19055. int main (void)
  19056. {
  19057. return SRP_Calc_client_key ();
  19058. ;
  19059. return 0;
  19060. }
  19061. _ACEOF
  19062. if ac_fn_c_try_link "$LINENO"; then :
  19063. ac_cv_lib_crypto_SRP_Calc_client_key=yes
  19064. else
  19065. ac_cv_lib_crypto_SRP_Calc_client_key=no
  19066. fi
  19067. rm -f core conftest.err conftest.$ac_objext \
  19068. conftest$ac_exeext conftest.$ac_ext
  19069. LIBS=$ac_check_lib_save_LIBS
  19070. fi
  19071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
  19072. $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
  19073. if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
  19074. $as_echo "#define HAVE_SSLEAY_SRP 1" >>confdefs.h
  19075. HAVE_SSLEAY_SRP=1
  19076. fi
  19077. fi
  19078. OPT_GNUTLS=no
  19079. # Check whether --with-gnutls was given.
  19080. if test "${with_gnutls+set}" = set; then :
  19081. withval=$with_gnutls; OPT_GNUTLS=$withval
  19082. fi
  19083. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  19084. if test X"$OPT_GNUTLS" != Xno; then
  19085. addld=""
  19086. addlib=""
  19087. gtlslib=""
  19088. version=""
  19089. addcflags=""
  19090. if test "x$OPT_GNUTLS" = "xyes"; then
  19091. PKGCONFIG="no"
  19092. if test -n "$ac_tool_prefix"; then
  19093. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19094. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19096. $as_echo_n "checking for $ac_word... " >&6; }
  19097. if ${ac_cv_path_PKGCONFIG+:} false; then :
  19098. $as_echo_n "(cached) " >&6
  19099. else
  19100. case $PKGCONFIG in
  19101. [\\/]* | ?:[\\/]*)
  19102. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  19103. ;;
  19104. *)
  19105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19106. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19107. for as_dir in $as_dummy
  19108. do
  19109. IFS=$as_save_IFS
  19110. test -z "$as_dir" && as_dir=.
  19111. for ac_exec_ext in '' $ac_executable_extensions; do
  19112. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19113. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  19114. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19115. break 2
  19116. fi
  19117. done
  19118. done
  19119. IFS=$as_save_IFS
  19120. ;;
  19121. esac
  19122. fi
  19123. PKGCONFIG=$ac_cv_path_PKGCONFIG
  19124. if test -n "$PKGCONFIG"; then
  19125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  19126. $as_echo "$PKGCONFIG" >&6; }
  19127. else
  19128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19129. $as_echo "no" >&6; }
  19130. fi
  19131. fi
  19132. if test -z "$ac_cv_path_PKGCONFIG"; then
  19133. ac_pt_PKGCONFIG=$PKGCONFIG
  19134. # Extract the first word of "pkg-config", so it can be a program name with args.
  19135. set dummy pkg-config; ac_word=$2
  19136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19137. $as_echo_n "checking for $ac_word... " >&6; }
  19138. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  19139. $as_echo_n "(cached) " >&6
  19140. else
  19141. case $ac_pt_PKGCONFIG in
  19142. [\\/]* | ?:[\\/]*)
  19143. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  19144. ;;
  19145. *)
  19146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19147. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19148. for as_dir in $as_dummy
  19149. do
  19150. IFS=$as_save_IFS
  19151. test -z "$as_dir" && as_dir=.
  19152. for ac_exec_ext in '' $ac_executable_extensions; do
  19153. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19154. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  19155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19156. break 2
  19157. fi
  19158. done
  19159. done
  19160. IFS=$as_save_IFS
  19161. ;;
  19162. esac
  19163. fi
  19164. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  19165. if test -n "$ac_pt_PKGCONFIG"; then
  19166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  19167. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  19168. else
  19169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19170. $as_echo "no" >&6; }
  19171. fi
  19172. if test "x$ac_pt_PKGCONFIG" = x; then
  19173. PKGCONFIG="no"
  19174. else
  19175. case $cross_compiling:$ac_tool_warned in
  19176. yes:)
  19177. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19178. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19179. ac_tool_warned=yes ;;
  19180. esac
  19181. PKGCONFIG=$ac_pt_PKGCONFIG
  19182. fi
  19183. else
  19184. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  19185. fi
  19186. if test x$PKGCONFIG != xno; then
  19187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
  19188. $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
  19189. itexists=`
  19190. if test -n ""; then
  19191. PKG_CONFIG_LIBDIR=""
  19192. export PKG_CONFIG_LIBDIR
  19193. fi
  19194. $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
  19195. if test -z "$itexists"; then
  19196. PKGCONFIG="no"
  19197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19198. $as_echo "no" >&6; }
  19199. else
  19200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  19201. $as_echo "found" >&6; }
  19202. fi
  19203. fi
  19204. if test "$PKGCONFIG" != "no" ; then
  19205. addlib=`$PKGCONFIG --libs-only-l gnutls`
  19206. addld=`$PKGCONFIG --libs-only-L gnutls`
  19207. addcflags=`$PKGCONFIG --cflags-only-I gnutls`
  19208. version=`$PKGCONFIG --modversion gnutls`
  19209. gtlslib=`echo $addld | $SED -e 's/-L//'`
  19210. else
  19211. check=`libgnutls-config --version 2>/dev/null`
  19212. if test -n "$check"; then
  19213. addlib=`libgnutls-config --libs`
  19214. addcflags=`libgnutls-config --cflags`
  19215. version=`libgnutls-config --version`
  19216. gtlslib=`libgnutls-config --prefix`/lib$libsuff
  19217. fi
  19218. fi
  19219. else
  19220. cfg=$OPT_GNUTLS/bin/libgnutls-config
  19221. check=`$cfg --version 2>/dev/null`
  19222. if test -n "$check"; then
  19223. addlib=`$cfg --libs`
  19224. addcflags=`$cfg --cflags`
  19225. version=`$cfg --version`
  19226. gtlslib=`$cfg --prefix`/lib$libsuff
  19227. else
  19228. addlib=-lgnutls
  19229. addld=-L$OPT_GNUTLS/lib$libsuff
  19230. addcflags=-I$OPT_GNUTLS/include
  19231. version="" # we just don't know
  19232. gtlslib=$OPT_GNUTLS/lib$libsuff
  19233. fi
  19234. fi
  19235. if test -z "$version"; then
  19236. version="unknown"
  19237. fi
  19238. if test -n "$addlib"; then
  19239. CLEANLIBS="$LIBS"
  19240. CLEANCPPFLAGS="$CPPFLAGS"
  19241. CLEANLDFLAGS="$LDFLAGS"
  19242. LIBS="$addlib $LIBS"
  19243. LDFLAGS="$LDFLAGS $addld"
  19244. if test "$addcflags" != "-I/usr/include"; then
  19245. CPPFLAGS="$CPPFLAGS $addcflags"
  19246. fi
  19247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
  19248. $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
  19249. if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
  19250. $as_echo_n "(cached) " >&6
  19251. else
  19252. ac_check_lib_save_LIBS=$LIBS
  19253. LIBS="-lgnutls $LIBS"
  19254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19255. /* end confdefs.h. */
  19256. #ifdef __cplusplus
  19257. extern "C"
  19258. #endif
  19259. char gnutls_check_version ();
  19260. int main (void)
  19261. {
  19262. return gnutls_check_version ();
  19263. ;
  19264. return 0;
  19265. }
  19266. _ACEOF
  19267. if ac_fn_c_try_link "$LINENO"; then :
  19268. ac_cv_lib_gnutls_gnutls_check_version=yes
  19269. else
  19270. ac_cv_lib_gnutls_gnutls_check_version=no
  19271. fi
  19272. rm -f core conftest.err conftest.$ac_objext \
  19273. conftest$ac_exeext conftest.$ac_ext
  19274. LIBS=$ac_check_lib_save_LIBS
  19275. fi
  19276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
  19277. $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
  19278. if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
  19279. $as_echo "#define USE_GNUTLS 1" >>confdefs.h
  19280. USE_GNUTLS=1
  19281. GNUTLS_ENABLED=1
  19282. USE_GNUTLS="yes"
  19283. curl_ssl_msg="enabled (GnuTLS)"
  19284. else
  19285. LIBS="$CLEANLIBS"
  19286. CPPFLAGS="$CLEANCPPFLAGS"
  19287. fi
  19288. if test "x$USE_GNUTLS" = "xyes"; then
  19289. { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
  19290. $as_echo "$as_me: detected GnuTLS version $version" >&6;}
  19291. if test -n "$gtlslib"; then
  19292. if test "x$cross_compiling" != "xyes"; then
  19293. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
  19294. export LD_LIBRARY_PATH
  19295. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
  19296. $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
  19297. fi
  19298. fi
  19299. fi
  19300. fi
  19301. fi
  19302. fi
  19303. if test "$GNUTLS_ENABLED" = "1"; then
  19304. USE_GNUTLS_NETTLE=
  19305. # First check if we can detect either crypto library via transitive linking
  19306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
  19307. $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
  19308. if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
  19309. $as_echo_n "(cached) " >&6
  19310. else
  19311. ac_check_lib_save_LIBS=$LIBS
  19312. LIBS="-lgnutls $LIBS"
  19313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19314. /* end confdefs.h. */
  19315. #ifdef __cplusplus
  19316. extern "C"
  19317. #endif
  19318. char nettle_MD5Init ();
  19319. int main (void)
  19320. {
  19321. return nettle_MD5Init ();
  19322. ;
  19323. return 0;
  19324. }
  19325. _ACEOF
  19326. if ac_fn_c_try_link "$LINENO"; then :
  19327. ac_cv_lib_gnutls_nettle_MD5Init=yes
  19328. else
  19329. ac_cv_lib_gnutls_nettle_MD5Init=no
  19330. fi
  19331. rm -f core conftest.err conftest.$ac_objext \
  19332. conftest$ac_exeext conftest.$ac_ext
  19333. LIBS=$ac_check_lib_save_LIBS
  19334. fi
  19335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
  19336. $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
  19337. if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
  19338. USE_GNUTLS_NETTLE=1
  19339. fi
  19340. if test "$USE_GNUTLS_NETTLE" = ""; then
  19341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
  19342. $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
  19343. if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
  19344. $as_echo_n "(cached) " >&6
  19345. else
  19346. ac_check_lib_save_LIBS=$LIBS
  19347. LIBS="-lgnutls $LIBS"
  19348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19349. /* end confdefs.h. */
  19350. #ifdef __cplusplus
  19351. extern "C"
  19352. #endif
  19353. char gcry_control ();
  19354. int main (void)
  19355. {
  19356. return gcry_control ();
  19357. ;
  19358. return 0;
  19359. }
  19360. _ACEOF
  19361. if ac_fn_c_try_link "$LINENO"; then :
  19362. ac_cv_lib_gnutls_gcry_control=yes
  19363. else
  19364. ac_cv_lib_gnutls_gcry_control=no
  19365. fi
  19366. rm -f core conftest.err conftest.$ac_objext \
  19367. conftest$ac_exeext conftest.$ac_ext
  19368. LIBS=$ac_check_lib_save_LIBS
  19369. fi
  19370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
  19371. $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
  19372. if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
  19373. USE_GNUTLS_NETTLE=0
  19374. fi
  19375. fi
  19376. # If not, try linking directly to both of them to see if they are available
  19377. if test "$USE_GNUTLS_NETTLE" = ""; then
  19378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
  19379. $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
  19380. if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
  19381. $as_echo_n "(cached) " >&6
  19382. else
  19383. ac_check_lib_save_LIBS=$LIBS
  19384. LIBS="-lnettle $LIBS"
  19385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19386. /* end confdefs.h. */
  19387. #ifdef __cplusplus
  19388. extern "C"
  19389. #endif
  19390. char nettle_MD5Init ();
  19391. int main (void)
  19392. {
  19393. return nettle_MD5Init ();
  19394. ;
  19395. return 0;
  19396. }
  19397. _ACEOF
  19398. if ac_fn_c_try_link "$LINENO"; then :
  19399. ac_cv_lib_nettle_nettle_MD5Init=yes
  19400. else
  19401. ac_cv_lib_nettle_nettle_MD5Init=no
  19402. fi
  19403. rm -f core conftest.err conftest.$ac_objext \
  19404. conftest$ac_exeext conftest.$ac_ext
  19405. LIBS=$ac_check_lib_save_LIBS
  19406. fi
  19407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
  19408. $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
  19409. if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
  19410. USE_GNUTLS_NETTLE=1
  19411. fi
  19412. fi
  19413. if test "$USE_GNUTLS_NETTLE" = ""; then
  19414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
  19415. $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
  19416. if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
  19417. $as_echo_n "(cached) " >&6
  19418. else
  19419. ac_check_lib_save_LIBS=$LIBS
  19420. LIBS="-lgcrypt $LIBS"
  19421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19422. /* end confdefs.h. */
  19423. #ifdef __cplusplus
  19424. extern "C"
  19425. #endif
  19426. char gcry_control ();
  19427. int main (void)
  19428. {
  19429. return gcry_control ();
  19430. ;
  19431. return 0;
  19432. }
  19433. _ACEOF
  19434. if ac_fn_c_try_link "$LINENO"; then :
  19435. ac_cv_lib_gcrypt_gcry_control=yes
  19436. else
  19437. ac_cv_lib_gcrypt_gcry_control=no
  19438. fi
  19439. rm -f core conftest.err conftest.$ac_objext \
  19440. conftest$ac_exeext conftest.$ac_ext
  19441. LIBS=$ac_check_lib_save_LIBS
  19442. fi
  19443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
  19444. $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
  19445. if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
  19446. USE_GNUTLS_NETTLE=0
  19447. fi
  19448. fi
  19449. if test "$USE_GNUTLS_NETTLE" = ""; then
  19450. as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
  19451. fi
  19452. if test "$USE_GNUTLS_NETTLE" = "1"; then
  19453. $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
  19454. USE_GNUTLS_NETTLE=1
  19455. LIBS="-lnettle $LIBS"
  19456. else
  19457. LIBS="-lgcrypt $LIBS"
  19458. fi
  19459. fi
  19460. if test "$GNUTLS_ENABLED" = "1"; then
  19461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
  19462. $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
  19463. if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
  19464. $as_echo_n "(cached) " >&6
  19465. else
  19466. ac_check_lib_save_LIBS=$LIBS
  19467. LIBS="-lgnutls $LIBS"
  19468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19469. /* end confdefs.h. */
  19470. #ifdef __cplusplus
  19471. extern "C"
  19472. #endif
  19473. char gnutls_srp_verifier ();
  19474. int main (void)
  19475. {
  19476. return gnutls_srp_verifier ();
  19477. ;
  19478. return 0;
  19479. }
  19480. _ACEOF
  19481. if ac_fn_c_try_link "$LINENO"; then :
  19482. ac_cv_lib_gnutls_gnutls_srp_verifier=yes
  19483. else
  19484. ac_cv_lib_gnutls_gnutls_srp_verifier=no
  19485. fi
  19486. rm -f core conftest.err conftest.$ac_objext \
  19487. conftest$ac_exeext conftest.$ac_ext
  19488. LIBS=$ac_check_lib_save_LIBS
  19489. fi
  19490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
  19491. $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
  19492. if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
  19493. $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
  19494. HAVE_GNUTLS_SRP=1
  19495. fi
  19496. fi
  19497. OPT_POLARSSL=no
  19498. _cppflags=$CPPFLAGS
  19499. _ldflags=$LDFLAGS
  19500. # Check whether --with-polarssl was given.
  19501. if test "${with_polarssl+set}" = set; then :
  19502. withval=$with_polarssl; OPT_POLARSSL=$withval
  19503. fi
  19504. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  19505. if test X"$OPT_POLARSSL" != Xno; then
  19506. if test "$OPT_POLARSSL" = "yes"; then
  19507. OPT_POLARSSL=""
  19508. fi
  19509. if test -z "$OPT_POLARSSL" ; then
  19510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
  19511. $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
  19512. if ${ac_cv_lib_polarssl_havege_init+:} false; then :
  19513. $as_echo_n "(cached) " >&6
  19514. else
  19515. ac_check_lib_save_LIBS=$LIBS
  19516. LIBS="-lpolarssl $LIBS"
  19517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19518. /* end confdefs.h. */
  19519. #ifdef __cplusplus
  19520. extern "C"
  19521. #endif
  19522. char havege_init ();
  19523. int main (void)
  19524. {
  19525. return havege_init ();
  19526. ;
  19527. return 0;
  19528. }
  19529. _ACEOF
  19530. if ac_fn_c_try_link "$LINENO"; then :
  19531. ac_cv_lib_polarssl_havege_init=yes
  19532. else
  19533. ac_cv_lib_polarssl_havege_init=no
  19534. fi
  19535. rm -f core conftest.err conftest.$ac_objext \
  19536. conftest$ac_exeext conftest.$ac_ext
  19537. LIBS=$ac_check_lib_save_LIBS
  19538. fi
  19539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
  19540. $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
  19541. if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
  19542. $as_echo "#define USE_POLARSSL 1" >>confdefs.h
  19543. USE_POLARSSL=1
  19544. POLARSSL_ENABLED=1
  19545. USE_POLARSSL="yes"
  19546. curl_ssl_msg="enabled (PolarSSL)"
  19547. fi
  19548. fi
  19549. addld=""
  19550. addlib=""
  19551. addcflags=""
  19552. polarssllib=""
  19553. if test "x$USE_POLARSSL" != "xyes"; then
  19554. addld=-L$OPT_POLARSSL/lib$libsuff
  19555. addcflags=-I$OPT_POLARSSL/include
  19556. polarssllib=$OPT_POLARSSL/lib$libsuff
  19557. LDFLAGS="$LDFLAGS $addld"
  19558. if test "$addcflags" != "-I/usr/include"; then
  19559. CPPFLAGS="$CPPFLAGS $addcflags"
  19560. fi
  19561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
  19562. $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
  19563. if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
  19564. $as_echo_n "(cached) " >&6
  19565. else
  19566. ac_check_lib_save_LIBS=$LIBS
  19567. LIBS="-lpolarssl $LIBS"
  19568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19569. /* end confdefs.h. */
  19570. #ifdef __cplusplus
  19571. extern "C"
  19572. #endif
  19573. char ssl_init ();
  19574. int main (void)
  19575. {
  19576. return ssl_init ();
  19577. ;
  19578. return 0;
  19579. }
  19580. _ACEOF
  19581. if ac_fn_c_try_link "$LINENO"; then :
  19582. ac_cv_lib_polarssl_ssl_init=yes
  19583. else
  19584. ac_cv_lib_polarssl_ssl_init=no
  19585. fi
  19586. rm -f core conftest.err conftest.$ac_objext \
  19587. conftest$ac_exeext conftest.$ac_ext
  19588. LIBS=$ac_check_lib_save_LIBS
  19589. fi
  19590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
  19591. $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
  19592. if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
  19593. $as_echo "#define USE_POLARSSL 1" >>confdefs.h
  19594. USE_POLARSSL=1
  19595. POLARSSL_ENABLED=1
  19596. USE_POLARSSL="yes"
  19597. curl_ssl_msg="enabled (PolarSSL)"
  19598. else
  19599. CPPFLAGS=$_cppflags
  19600. LDFLAGS=$_ldflags
  19601. fi
  19602. fi
  19603. if test "x$USE_POLARSSL" = "xyes"; then
  19604. { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
  19605. $as_echo "$as_me: detected PolarSSL" >&6;}
  19606. LIBS="-lpolarssl $LIBS"
  19607. if test -n "$polarssllib"; then
  19608. if test "x$cross_compiling" != "xyes"; then
  19609. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
  19610. export LD_LIBRARY_PATH
  19611. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
  19612. $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
  19613. fi
  19614. fi
  19615. fi
  19616. fi
  19617. fi
  19618. OPT_CYASSL=no
  19619. _cppflags=$CPPFLAGS
  19620. _ldflags=$LDFLAGS
  19621. # Check whether --with-cyassl was given.
  19622. if test "${with_cyassl+set}" = set; then :
  19623. withval=$with_cyassl; OPT_CYASSL=$withval
  19624. fi
  19625. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  19626. if test X"$OPT_CYASSL" != Xno; then
  19627. if test "$OPT_CYASSL" = "yes"; then
  19628. OPT_CYASSL=""
  19629. fi
  19630. if test -z "$OPT_CYASSL" ; then
  19631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
  19632. $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
  19633. if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
  19634. $as_echo_n "(cached) " >&6
  19635. else
  19636. ac_check_lib_save_LIBS=$LIBS
  19637. LIBS="-lcyassl $LIBS"
  19638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19639. /* end confdefs.h. */
  19640. #ifdef __cplusplus
  19641. extern "C"
  19642. #endif
  19643. char CyaSSL_Init ();
  19644. int main (void)
  19645. {
  19646. return CyaSSL_Init ();
  19647. ;
  19648. return 0;
  19649. }
  19650. _ACEOF
  19651. if ac_fn_c_try_link "$LINENO"; then :
  19652. ac_cv_lib_cyassl_CyaSSL_Init=yes
  19653. else
  19654. ac_cv_lib_cyassl_CyaSSL_Init=no
  19655. fi
  19656. rm -f core conftest.err conftest.$ac_objext \
  19657. conftest$ac_exeext conftest.$ac_ext
  19658. LIBS=$ac_check_lib_save_LIBS
  19659. fi
  19660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
  19661. $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
  19662. if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
  19663. $as_echo "#define USE_CYASSL 1" >>confdefs.h
  19664. USE_CYASSL=1
  19665. CYASSL_ENABLED=1
  19666. USE_CYASSL="yes"
  19667. curl_ssl_msg="enabled (CyaSSL)"
  19668. fi
  19669. fi
  19670. addld=""
  19671. addlib=""
  19672. addcflags=""
  19673. cyassllib=""
  19674. if test "x$USE_CYASSL" != "xyes"; then
  19675. addld=-L$OPT_CYASSL/lib$libsuff
  19676. addcflags=-I$OPT_CYASSL/include
  19677. cyassllib=$OPT_CYASSL/lib$libsuff
  19678. LDFLAGS="$LDFLAGS $addld"
  19679. if test "$addcflags" != "-I/usr/include"; then
  19680. CPPFLAGS="$CPPFLAGS $addcflags"
  19681. fi
  19682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
  19683. $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
  19684. if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
  19685. $as_echo_n "(cached) " >&6
  19686. else
  19687. ac_check_lib_save_LIBS=$LIBS
  19688. LIBS="-lcyassl $LIBS"
  19689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19690. /* end confdefs.h. */
  19691. #ifdef __cplusplus
  19692. extern "C"
  19693. #endif
  19694. char CyaSSL_Init ();
  19695. int main (void)
  19696. {
  19697. return CyaSSL_Init ();
  19698. ;
  19699. return 0;
  19700. }
  19701. _ACEOF
  19702. if ac_fn_c_try_link "$LINENO"; then :
  19703. ac_cv_lib_cyassl_CyaSSL_Init=yes
  19704. else
  19705. ac_cv_lib_cyassl_CyaSSL_Init=no
  19706. fi
  19707. rm -f core conftest.err conftest.$ac_objext \
  19708. conftest$ac_exeext conftest.$ac_ext
  19709. LIBS=$ac_check_lib_save_LIBS
  19710. fi
  19711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
  19712. $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
  19713. if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
  19714. $as_echo "#define USE_CYASSL 1" >>confdefs.h
  19715. USE_CYASSL=1
  19716. CYASSL_ENABLED=1
  19717. USE_CYASSL="yes"
  19718. curl_ssl_msg="enabled (CyaSSL)"
  19719. else
  19720. CPPFLAGS=$_cppflags
  19721. LDFLAGS=$_ldflags
  19722. fi
  19723. fi
  19724. if test "x$USE_CYASSL" = "xyes"; then
  19725. { $as_echo "$as_me:${as_lineno-$LINENO}: detected CyaSSL" >&5
  19726. $as_echo "$as_me: detected CyaSSL" >&6;}
  19727. LIBS="-lcyassl -lm $LIBS"
  19728. if test -n "$cyassllib"; then
  19729. if test "x$cross_compiling" != "xyes"; then
  19730. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
  19731. export LD_LIBRARY_PATH
  19732. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
  19733. $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
  19734. fi
  19735. fi
  19736. fi
  19737. fi
  19738. fi
  19739. OPT_NSS=no
  19740. # Check whether --with-nss was given.
  19741. if test "${with_nss+set}" = set; then :
  19742. withval=$with_nss; OPT_NSS=$withval
  19743. fi
  19744. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  19745. if test X"$OPT_NSS" != Xno; then
  19746. addld=""
  19747. addlib=""
  19748. addcflags=""
  19749. nssprefix=""
  19750. version=""
  19751. if test "x$OPT_NSS" = "xyes"; then
  19752. PKGCONFIG="no"
  19753. if test -n "$ac_tool_prefix"; then
  19754. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19755. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19757. $as_echo_n "checking for $ac_word... " >&6; }
  19758. if ${ac_cv_path_PKGCONFIG+:} false; then :
  19759. $as_echo_n "(cached) " >&6
  19760. else
  19761. case $PKGCONFIG in
  19762. [\\/]* | ?:[\\/]*)
  19763. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  19764. ;;
  19765. *)
  19766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19767. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19768. for as_dir in $as_dummy
  19769. do
  19770. IFS=$as_save_IFS
  19771. test -z "$as_dir" && as_dir=.
  19772. for ac_exec_ext in '' $ac_executable_extensions; do
  19773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19774. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  19775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19776. break 2
  19777. fi
  19778. done
  19779. done
  19780. IFS=$as_save_IFS
  19781. ;;
  19782. esac
  19783. fi
  19784. PKGCONFIG=$ac_cv_path_PKGCONFIG
  19785. if test -n "$PKGCONFIG"; then
  19786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  19787. $as_echo "$PKGCONFIG" >&6; }
  19788. else
  19789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19790. $as_echo "no" >&6; }
  19791. fi
  19792. fi
  19793. if test -z "$ac_cv_path_PKGCONFIG"; then
  19794. ac_pt_PKGCONFIG=$PKGCONFIG
  19795. # Extract the first word of "pkg-config", so it can be a program name with args.
  19796. set dummy pkg-config; ac_word=$2
  19797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19798. $as_echo_n "checking for $ac_word... " >&6; }
  19799. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  19800. $as_echo_n "(cached) " >&6
  19801. else
  19802. case $ac_pt_PKGCONFIG in
  19803. [\\/]* | ?:[\\/]*)
  19804. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  19805. ;;
  19806. *)
  19807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19808. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19809. for as_dir in $as_dummy
  19810. do
  19811. IFS=$as_save_IFS
  19812. test -z "$as_dir" && as_dir=.
  19813. for ac_exec_ext in '' $ac_executable_extensions; do
  19814. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19815. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  19816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19817. break 2
  19818. fi
  19819. done
  19820. done
  19821. IFS=$as_save_IFS
  19822. ;;
  19823. esac
  19824. fi
  19825. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  19826. if test -n "$ac_pt_PKGCONFIG"; then
  19827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  19828. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  19829. else
  19830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19831. $as_echo "no" >&6; }
  19832. fi
  19833. if test "x$ac_pt_PKGCONFIG" = x; then
  19834. PKGCONFIG="no"
  19835. else
  19836. case $cross_compiling:$ac_tool_warned in
  19837. yes:)
  19838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19839. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19840. ac_tool_warned=yes ;;
  19841. esac
  19842. PKGCONFIG=$ac_pt_PKGCONFIG
  19843. fi
  19844. else
  19845. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  19846. fi
  19847. if test x$PKGCONFIG != xno; then
  19848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
  19849. $as_echo_n "checking for nss options with pkg-config... " >&6; }
  19850. itexists=`
  19851. if test -n ""; then
  19852. PKG_CONFIG_LIBDIR=""
  19853. export PKG_CONFIG_LIBDIR
  19854. fi
  19855. $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
  19856. if test -z "$itexists"; then
  19857. PKGCONFIG="no"
  19858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19859. $as_echo "no" >&6; }
  19860. else
  19861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  19862. $as_echo "found" >&6; }
  19863. fi
  19864. fi
  19865. if test "$PKGCONFIG" != "no" ; then
  19866. addlib=`$PKGCONFIG --libs nss`
  19867. addcflags=`$PKGCONFIG --cflags nss`
  19868. version=`$PKGCONFIG --modversion nss`
  19869. nssprefix=`$PKGCONFIG --variable=prefix nss`
  19870. else
  19871. check=`nss-config --version 2>/dev/null`
  19872. if test -n "$check"; then
  19873. addlib=`nss-config --libs`
  19874. addcflags=`nss-config --cflags`
  19875. version=`nss-config --version`
  19876. nssprefix=`nss-config --prefix`
  19877. else
  19878. addlib="-lnss3"
  19879. addcflags=""
  19880. version="unknown"
  19881. fi
  19882. fi
  19883. else
  19884. # Without pkg-config, we'll kludge in some defaults
  19885. addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
  19886. addcflags="-I$OPT_NSS/include"
  19887. version="unknown"
  19888. nssprefix=$OPT_NSS
  19889. fi
  19890. if test -n "$addlib"; then
  19891. CLEANLIBS="$LIBS"
  19892. CLEANCPPFLAGS="$CPPFLAGS"
  19893. LIBS="$addlib $LIBS"
  19894. if test "$addcflags" != "-I/usr/include"; then
  19895. CPPFLAGS="$CPPFLAGS $addcflags"
  19896. fi
  19897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreateGenericObject in -lnss3" >&5
  19898. $as_echo_n "checking for PK11_CreateGenericObject in -lnss3... " >&6; }
  19899. if ${ac_cv_lib_nss3_PK11_CreateGenericObject+:} false; then :
  19900. $as_echo_n "(cached) " >&6
  19901. else
  19902. ac_check_lib_save_LIBS=$LIBS
  19903. LIBS="-lnss3 $LIBS"
  19904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19905. /* end confdefs.h. */
  19906. #ifdef __cplusplus
  19907. extern "C"
  19908. #endif
  19909. char PK11_CreateGenericObject ();
  19910. int main (void)
  19911. {
  19912. return PK11_CreateGenericObject ();
  19913. ;
  19914. return 0;
  19915. }
  19916. _ACEOF
  19917. if ac_fn_c_try_link "$LINENO"; then :
  19918. ac_cv_lib_nss3_PK11_CreateGenericObject=yes
  19919. else
  19920. ac_cv_lib_nss3_PK11_CreateGenericObject=no
  19921. fi
  19922. rm -f core conftest.err conftest.$ac_objext \
  19923. conftest$ac_exeext conftest.$ac_ext
  19924. LIBS=$ac_check_lib_save_LIBS
  19925. fi
  19926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreateGenericObject" >&5
  19927. $as_echo "$ac_cv_lib_nss3_PK11_CreateGenericObject" >&6; }
  19928. if test "x$ac_cv_lib_nss3_PK11_CreateGenericObject" = xyes; then :
  19929. $as_echo "#define USE_NSS 1" >>confdefs.h
  19930. USE_NSS=1
  19931. USE_NSS="yes"
  19932. NSS_ENABLED=1
  19933. curl_ssl_msg="enabled (NSS)"
  19934. else
  19935. LIBS="$CLEANLIBS"
  19936. CPPFLAGS="$CLEANCPPFLAGS"
  19937. fi
  19938. if test "x$USE_NSS" = "xyes"; then
  19939. { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
  19940. $as_echo "$as_me: detected NSS version $version" >&6;}
  19941. ac_fn_c_check_func "$LINENO" "NSS_InitContext" "ac_cv_func_NSS_InitContext"
  19942. if test "x$ac_cv_func_NSS_InitContext" = xyes; then :
  19943. $as_echo "#define HAVE_NSS_INITCONTEXT 1" >>confdefs.h
  19944. HAVE_NSS_INITCONTEXT=1
  19945. fi
  19946. if test "x$cross_compiling" != "xyes"; then
  19947. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
  19948. export LD_LIBRARY_PATH
  19949. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
  19950. $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
  19951. fi
  19952. fi
  19953. fi
  19954. fi
  19955. fi
  19956. OPT_AXTLS=off
  19957. # Check whether --with-axtls was given.
  19958. if test "${with_axtls+set}" = set; then :
  19959. withval=$with_axtls; OPT_AXTLS=$withval
  19960. fi
  19961. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  19962. if test X"$OPT_AXTLS" != Xno; then
  19963. CLEANLDFLAGS="$LDFLAGS"
  19964. CLEANCPPFLAGS="$CPPFLAGS"
  19965. CLEANLIBS="$LIBS"
  19966. case "$OPT_AXTLS" in
  19967. yes)
  19968. PREFIX_AXTLS=/usr/local
  19969. LIB_AXTLS="$PREFIX_AXTLS/lib"
  19970. LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
  19971. CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
  19972. ;;
  19973. off)
  19974. PREFIX_AXTLS=
  19975. ;;
  19976. *)
  19977. PREFIX_AXTLS=$OPT_AXTLS
  19978. LIB_AXTLS="$PREFIX_AXTLS/lib"
  19979. LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
  19980. CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
  19981. ;;
  19982. esac
  19983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
  19984. $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
  19985. if ${ac_cv_lib_axtls_ssl_version+:} false; then :
  19986. $as_echo_n "(cached) " >&6
  19987. else
  19988. ac_check_lib_save_LIBS=$LIBS
  19989. LIBS="-laxtls $LIBS"
  19990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19991. /* end confdefs.h. */
  19992. #ifdef __cplusplus
  19993. extern "C"
  19994. #endif
  19995. char ssl_version ();
  19996. int main (void)
  19997. {
  19998. return ssl_version ();
  19999. ;
  20000. return 0;
  20001. }
  20002. _ACEOF
  20003. if ac_fn_c_try_link "$LINENO"; then :
  20004. ac_cv_lib_axtls_ssl_version=yes
  20005. else
  20006. ac_cv_lib_axtls_ssl_version=no
  20007. fi
  20008. rm -f core conftest.err conftest.$ac_objext \
  20009. conftest$ac_exeext conftest.$ac_ext
  20010. LIBS=$ac_check_lib_save_LIBS
  20011. fi
  20012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
  20013. $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
  20014. if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
  20015. LIBS="-laxtls $LIBS"
  20016. $as_echo "#define USE_AXTLS 1" >>confdefs.h
  20017. USE_AXTLS=1
  20018. AXTLS_ENABLED=1
  20019. USE_AXTLS="yes"
  20020. curl_ssl_msg="enabled (axTLS)"
  20021. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
  20022. export LD_LIBRARY_PATH
  20023. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
  20024. $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
  20025. else
  20026. LDFLAGS="$CLEANLDFLAGS"
  20027. CPPFLAGS="$CLEANCPPFLAGS"
  20028. LIBS="$CLEANLIBS"
  20029. fi
  20030. fi
  20031. fi
  20032. if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
  20033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
  20034. $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
  20035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&5
  20036. $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&2;}
  20037. else
  20038. # SSL is enabled, genericly
  20039. SSL_ENABLED="1"
  20040. fi
  20041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
  20042. $as_echo_n "checking default CA cert bundle/path... " >&6; }
  20043. # Check whether --with-ca-bundle was given.
  20044. if test "${with_ca_bundle+set}" = set; then :
  20045. withval=$with_ca_bundle;
  20046. want_ca="$withval"
  20047. if test "x$want_ca" = "xyes"; then
  20048. as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
  20049. fi
  20050. else
  20051. want_ca="unset"
  20052. fi
  20053. # Check whether --with-ca-path was given.
  20054. if test "${with_ca_path+set}" = set; then :
  20055. withval=$with_ca_path;
  20056. want_capath="$withval"
  20057. if test "x$want_capath" = "xyes"; then
  20058. as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
  20059. fi
  20060. else
  20061. want_capath="unset"
  20062. fi
  20063. if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
  20064. "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
  20065. as_fn_error $? "Can't specify both --with-ca-bundle and --with-ca-path." "$LINENO" 5
  20066. elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
  20067. ca="$want_ca"
  20068. capath="no"
  20069. elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
  20070. if test "x$OPENSSL_ENABLED" != "x1"; then
  20071. as_fn_error $? "--with-ca-path only works with openSSL" "$LINENO" 5
  20072. fi
  20073. capath="$want_capath"
  20074. ca="no"
  20075. elif test "x$cross_compiling" != "xyes"; then
  20076. ca="no"
  20077. capath="no"
  20078. if test "x$want_ca" = "xunset"; then
  20079. if test "x$prefix" != xNONE; then
  20080. cac="${prefix}/share/curl/curl-ca-bundle.crt"
  20081. else
  20082. cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
  20083. fi
  20084. for a in /etc/ssl/certs/ca-certificates.crt \
  20085. /etc/pki/tls/certs/ca-bundle.crt \
  20086. /usr/share/ssl/certs/ca-bundle.crt \
  20087. /usr/local/share/certs/ca-root.crt \
  20088. /etc/ssl/cert.pem \
  20089. "$cac"; do
  20090. if test -f "$a"; then
  20091. ca="$a"
  20092. break
  20093. fi
  20094. done
  20095. fi
  20096. if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
  20097. "x$OPENSSL_ENABLED" = "x1"; then
  20098. for a in /etc/ssl/certs/; do
  20099. if test -d "$a" && ls "$a"/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0 >/dev/null 2>/dev/null; then
  20100. capath="$a"
  20101. break
  20102. fi
  20103. done
  20104. fi
  20105. else
  20106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
  20107. $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
  20108. fi
  20109. if test "x$ca" != "xno"; then
  20110. CURL_CA_BUNDLE='"'$ca'"'
  20111. cat >>confdefs.h <<_ACEOF
  20112. #define CURL_CA_BUNDLE "$ca"
  20113. _ACEOF
  20114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
  20115. $as_echo "$ca" >&6; }
  20116. elif test "x$capath" != "xno"; then
  20117. CURL_CA_PATH="\"$capath\""
  20118. cat >>confdefs.h <<_ACEOF
  20119. #define CURL_CA_PATH "$capath"
  20120. _ACEOF
  20121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
  20122. $as_echo "$capath (capath)" >&6; }
  20123. else
  20124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20125. $as_echo "no" >&6; }
  20126. fi
  20127. OPT_LIBMETALINK=no
  20128. # Check whether --with-libmetalink was given.
  20129. if test "${with_libmetalink+set}" = set; then :
  20130. withval=$with_libmetalink; OPT_LIBMETALINK=$withval
  20131. fi
  20132. if test X"$OPT_LIBMETALINK" != Xno; then
  20133. addld=""
  20134. addlib=""
  20135. addcflags=""
  20136. version=""
  20137. libmetalinklib=""
  20138. PKGTEST="no"
  20139. if test "x$OPT_LIBMETALINK" = "xyes"; then
  20140. PKGTEST="yes"
  20141. PKGCONFIG="no"
  20142. if test -n "$ac_tool_prefix"; then
  20143. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20144. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20146. $as_echo_n "checking for $ac_word... " >&6; }
  20147. if ${ac_cv_path_PKGCONFIG+:} false; then :
  20148. $as_echo_n "(cached) " >&6
  20149. else
  20150. case $PKGCONFIG in
  20151. [\\/]* | ?:[\\/]*)
  20152. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20153. ;;
  20154. *)
  20155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20156. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20157. for as_dir in $as_dummy
  20158. do
  20159. IFS=$as_save_IFS
  20160. test -z "$as_dir" && as_dir=.
  20161. for ac_exec_ext in '' $ac_executable_extensions; do
  20162. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20163. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20165. break 2
  20166. fi
  20167. done
  20168. done
  20169. IFS=$as_save_IFS
  20170. ;;
  20171. esac
  20172. fi
  20173. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20174. if test -n "$PKGCONFIG"; then
  20175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20176. $as_echo "$PKGCONFIG" >&6; }
  20177. else
  20178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20179. $as_echo "no" >&6; }
  20180. fi
  20181. fi
  20182. if test -z "$ac_cv_path_PKGCONFIG"; then
  20183. ac_pt_PKGCONFIG=$PKGCONFIG
  20184. # Extract the first word of "pkg-config", so it can be a program name with args.
  20185. set dummy pkg-config; ac_word=$2
  20186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20187. $as_echo_n "checking for $ac_word... " >&6; }
  20188. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  20189. $as_echo_n "(cached) " >&6
  20190. else
  20191. case $ac_pt_PKGCONFIG in
  20192. [\\/]* | ?:[\\/]*)
  20193. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20194. ;;
  20195. *)
  20196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20197. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20198. for as_dir in $as_dummy
  20199. do
  20200. IFS=$as_save_IFS
  20201. test -z "$as_dir" && as_dir=.
  20202. for ac_exec_ext in '' $ac_executable_extensions; do
  20203. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20204. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20205. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20206. break 2
  20207. fi
  20208. done
  20209. done
  20210. IFS=$as_save_IFS
  20211. ;;
  20212. esac
  20213. fi
  20214. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20215. if test -n "$ac_pt_PKGCONFIG"; then
  20216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20217. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  20218. else
  20219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20220. $as_echo "no" >&6; }
  20221. fi
  20222. if test "x$ac_pt_PKGCONFIG" = x; then
  20223. PKGCONFIG="no"
  20224. else
  20225. case $cross_compiling:$ac_tool_warned in
  20226. yes:)
  20227. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20228. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20229. ac_tool_warned=yes ;;
  20230. esac
  20231. PKGCONFIG=$ac_pt_PKGCONFIG
  20232. fi
  20233. else
  20234. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20235. fi
  20236. if test x$PKGCONFIG != xno; then
  20237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
  20238. $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
  20239. itexists=`
  20240. if test -n ""; then
  20241. PKG_CONFIG_LIBDIR=""
  20242. export PKG_CONFIG_LIBDIR
  20243. fi
  20244. $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
  20245. if test -z "$itexists"; then
  20246. PKGCONFIG="no"
  20247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20248. $as_echo "no" >&6; }
  20249. else
  20250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20251. $as_echo "found" >&6; }
  20252. fi
  20253. fi
  20254. else
  20255. LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
  20256. { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
  20257. $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
  20258. if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
  20259. PKGTEST="yes"
  20260. fi
  20261. if test "$PKGTEST" = "yes"; then
  20262. PKGCONFIG="no"
  20263. if test -n "$ac_tool_prefix"; then
  20264. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20265. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20267. $as_echo_n "checking for $ac_word... " >&6; }
  20268. if ${ac_cv_path_PKGCONFIG+:} false; then :
  20269. $as_echo_n "(cached) " >&6
  20270. else
  20271. case $PKGCONFIG in
  20272. [\\/]* | ?:[\\/]*)
  20273. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20274. ;;
  20275. *)
  20276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20277. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20278. for as_dir in $as_dummy
  20279. do
  20280. IFS=$as_save_IFS
  20281. test -z "$as_dir" && as_dir=.
  20282. for ac_exec_ext in '' $ac_executable_extensions; do
  20283. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20284. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20286. break 2
  20287. fi
  20288. done
  20289. done
  20290. IFS=$as_save_IFS
  20291. ;;
  20292. esac
  20293. fi
  20294. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20295. if test -n "$PKGCONFIG"; then
  20296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20297. $as_echo "$PKGCONFIG" >&6; }
  20298. else
  20299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20300. $as_echo "no" >&6; }
  20301. fi
  20302. fi
  20303. if test -z "$ac_cv_path_PKGCONFIG"; then
  20304. ac_pt_PKGCONFIG=$PKGCONFIG
  20305. # Extract the first word of "pkg-config", so it can be a program name with args.
  20306. set dummy pkg-config; ac_word=$2
  20307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20308. $as_echo_n "checking for $ac_word... " >&6; }
  20309. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  20310. $as_echo_n "(cached) " >&6
  20311. else
  20312. case $ac_pt_PKGCONFIG in
  20313. [\\/]* | ?:[\\/]*)
  20314. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20315. ;;
  20316. *)
  20317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20318. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20319. for as_dir in $as_dummy
  20320. do
  20321. IFS=$as_save_IFS
  20322. test -z "$as_dir" && as_dir=.
  20323. for ac_exec_ext in '' $ac_executable_extensions; do
  20324. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20325. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20327. break 2
  20328. fi
  20329. done
  20330. done
  20331. IFS=$as_save_IFS
  20332. ;;
  20333. esac
  20334. fi
  20335. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20336. if test -n "$ac_pt_PKGCONFIG"; then
  20337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20338. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  20339. else
  20340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20341. $as_echo "no" >&6; }
  20342. fi
  20343. if test "x$ac_pt_PKGCONFIG" = x; then
  20344. PKGCONFIG="no"
  20345. else
  20346. case $cross_compiling:$ac_tool_warned in
  20347. yes:)
  20348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20349. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20350. ac_tool_warned=yes ;;
  20351. esac
  20352. PKGCONFIG=$ac_pt_PKGCONFIG
  20353. fi
  20354. else
  20355. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20356. fi
  20357. if test x$PKGCONFIG != xno; then
  20358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
  20359. $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
  20360. itexists=`
  20361. if test -n "$LIBMETALINK_PCDIR"; then
  20362. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  20363. export PKG_CONFIG_LIBDIR
  20364. fi
  20365. $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
  20366. if test -z "$itexists"; then
  20367. PKGCONFIG="no"
  20368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20369. $as_echo "no" >&6; }
  20370. else
  20371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20372. $as_echo "found" >&6; }
  20373. fi
  20374. fi
  20375. fi
  20376. fi
  20377. if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
  20378. addlib=`
  20379. if test -n "$LIBMETALINK_PCDIR"; then
  20380. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  20381. export PKG_CONFIG_LIBDIR
  20382. fi
  20383. $PKGCONFIG --libs-only-l libmetalink`
  20384. addld=`
  20385. if test -n "$LIBMETALINK_PCDIR"; then
  20386. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  20387. export PKG_CONFIG_LIBDIR
  20388. fi
  20389. $PKGCONFIG --libs-only-L libmetalink`
  20390. addcflags=`
  20391. if test -n "$LIBMETALINK_PCDIR"; then
  20392. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  20393. export PKG_CONFIG_LIBDIR
  20394. fi
  20395. $PKGCONFIG --cflags-only-I libmetalink`
  20396. version=`
  20397. if test -n "$LIBMETALINK_PCDIR"; then
  20398. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  20399. export PKG_CONFIG_LIBDIR
  20400. fi
  20401. $PKGCONFIG --modversion libmetalink`
  20402. libmetalinklib=`echo $addld | $SED -e 's/-L//'`
  20403. fi
  20404. if test -n "$addlib"; then
  20405. clean_CPPFLAGS="$CPPFLAGS"
  20406. clean_LDFLAGS="$LDFLAGS"
  20407. clean_LIBS="$LIBS"
  20408. CPPFLAGS="$addcflags $clean_CPPFLAGS"
  20409. LDFLAGS="$addld $clean_LDFLAGS"
  20410. LIBS="$addlib $clean_LIBS"
  20411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
  20412. $as_echo_n "checking if libmetalink is recent enough... " >&6; }
  20413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20414. /* end confdefs.h. */
  20415. # include <metalink/metalink.h>
  20416. int main (void)
  20417. {
  20418. if(0 != metalink_strerror(0)) /* added in 0.1.0 */
  20419. return 1;
  20420. ;
  20421. return 0;
  20422. }
  20423. _ACEOF
  20424. if ac_fn_c_try_link "$LINENO"; then :
  20425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
  20426. $as_echo "yes ($version)" >&6; }
  20427. want_metalink="yes"
  20428. else
  20429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
  20430. $as_echo "no ($version)" >&6; }
  20431. { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
  20432. $as_echo "$as_me: libmetalink library defective or too old" >&6;}
  20433. want_metalink="no"
  20434. fi
  20435. rm -f core conftest.err conftest.$ac_objext \
  20436. conftest$ac_exeext conftest.$ac_ext
  20437. CPPFLAGS="$clean_CPPFLAGS"
  20438. LDFLAGS="$clean_LDFLAGS"
  20439. LIBS="$clean_LIBS"
  20440. if test "$want_metalink" = "yes"; then
  20441. $as_echo "#define USE_METALINK 1" >>confdefs.h
  20442. LIBMETALINK_LIBS=$addlib
  20443. LIBMETALINK_LDFLAGS=$addld
  20444. LIBMETALINK_CPPFLAGS=$addcflags
  20445. curl_mtlnk_msg="enabled"
  20446. fi
  20447. fi
  20448. fi
  20449. OPT_LIBSSH2=off
  20450. # Check whether --with-libssh2 was given.
  20451. if test "${with_libssh2+set}" = set; then :
  20452. withval=$with_libssh2; OPT_LIBSSH2=$withval
  20453. fi
  20454. if test X"$OPT_LIBSSH2" != Xno; then
  20455. CLEANLDFLAGS="$LDFLAGS"
  20456. CLEANCPPFLAGS="$CPPFLAGS"
  20457. CLEANLIBS="$LIBS"
  20458. case "$OPT_LIBSSH2" in
  20459. yes)
  20460. PKGCONFIG="no"
  20461. if test -n "$ac_tool_prefix"; then
  20462. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20463. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20465. $as_echo_n "checking for $ac_word... " >&6; }
  20466. if ${ac_cv_path_PKGCONFIG+:} false; then :
  20467. $as_echo_n "(cached) " >&6
  20468. else
  20469. case $PKGCONFIG in
  20470. [\\/]* | ?:[\\/]*)
  20471. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20472. ;;
  20473. *)
  20474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20475. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20476. for as_dir in $as_dummy
  20477. do
  20478. IFS=$as_save_IFS
  20479. test -z "$as_dir" && as_dir=.
  20480. for ac_exec_ext in '' $ac_executable_extensions; do
  20481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20482. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20484. break 2
  20485. fi
  20486. done
  20487. done
  20488. IFS=$as_save_IFS
  20489. ;;
  20490. esac
  20491. fi
  20492. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20493. if test -n "$PKGCONFIG"; then
  20494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20495. $as_echo "$PKGCONFIG" >&6; }
  20496. else
  20497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20498. $as_echo "no" >&6; }
  20499. fi
  20500. fi
  20501. if test -z "$ac_cv_path_PKGCONFIG"; then
  20502. ac_pt_PKGCONFIG=$PKGCONFIG
  20503. # Extract the first word of "pkg-config", so it can be a program name with args.
  20504. set dummy pkg-config; ac_word=$2
  20505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20506. $as_echo_n "checking for $ac_word... " >&6; }
  20507. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  20508. $as_echo_n "(cached) " >&6
  20509. else
  20510. case $ac_pt_PKGCONFIG in
  20511. [\\/]* | ?:[\\/]*)
  20512. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20513. ;;
  20514. *)
  20515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20516. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20517. for as_dir in $as_dummy
  20518. do
  20519. IFS=$as_save_IFS
  20520. test -z "$as_dir" && as_dir=.
  20521. for ac_exec_ext in '' $ac_executable_extensions; do
  20522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20523. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20525. break 2
  20526. fi
  20527. done
  20528. done
  20529. IFS=$as_save_IFS
  20530. ;;
  20531. esac
  20532. fi
  20533. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20534. if test -n "$ac_pt_PKGCONFIG"; then
  20535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20536. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  20537. else
  20538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20539. $as_echo "no" >&6; }
  20540. fi
  20541. if test "x$ac_pt_PKGCONFIG" = x; then
  20542. PKGCONFIG="no"
  20543. else
  20544. case $cross_compiling:$ac_tool_warned in
  20545. yes:)
  20546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20547. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20548. ac_tool_warned=yes ;;
  20549. esac
  20550. PKGCONFIG=$ac_pt_PKGCONFIG
  20551. fi
  20552. else
  20553. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20554. fi
  20555. if test x$PKGCONFIG != xno; then
  20556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
  20557. $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
  20558. itexists=`
  20559. if test -n ""; then
  20560. PKG_CONFIG_LIBDIR=""
  20561. export PKG_CONFIG_LIBDIR
  20562. fi
  20563. $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
  20564. if test -z "$itexists"; then
  20565. PKGCONFIG="no"
  20566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20567. $as_echo "no" >&6; }
  20568. else
  20569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20570. $as_echo "found" >&6; }
  20571. fi
  20572. fi
  20573. if test "$PKGCONFIG" != "no" ; then
  20574. LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
  20575. LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
  20576. CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
  20577. version=`$PKGCONFIG --modversion libssh2`
  20578. DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
  20579. fi
  20580. ;;
  20581. off)
  20582. ;;
  20583. *)
  20584. PREFIX_SSH2=$OPT_LIBSSH2
  20585. ;;
  20586. esac
  20587. if test -n "$PREFIX_SSH2"; then
  20588. LIB_SSH2="-lssh2"
  20589. LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
  20590. CPP_SSH2=-I${PREFIX_SSH2}/include
  20591. DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
  20592. fi
  20593. LDFLAGS="$LDFLAGS $LD_SSH2"
  20594. CPPFLAGS="$CPPFLAGS $CPP_SSH2"
  20595. LIBS="$LIB_SSH2 $LIBS"
  20596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
  20597. $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
  20598. if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
  20599. $as_echo_n "(cached) " >&6
  20600. else
  20601. ac_check_lib_save_LIBS=$LIBS
  20602. LIBS="-lssh2 $LIBS"
  20603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20604. /* end confdefs.h. */
  20605. #ifdef __cplusplus
  20606. extern "C"
  20607. #endif
  20608. char libssh2_channel_open_ex ();
  20609. int main (void)
  20610. {
  20611. return libssh2_channel_open_ex ();
  20612. ;
  20613. return 0;
  20614. }
  20615. _ACEOF
  20616. if ac_fn_c_try_link "$LINENO"; then :
  20617. ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
  20618. else
  20619. ac_cv_lib_ssh2_libssh2_channel_open_ex=no
  20620. fi
  20621. rm -f core conftest.err conftest.$ac_objext \
  20622. conftest$ac_exeext conftest.$ac_ext
  20623. LIBS=$ac_check_lib_save_LIBS
  20624. fi
  20625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
  20626. $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
  20627. if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
  20628. cat >>confdefs.h <<_ACEOF
  20629. #define HAVE_LIBSSH2 1
  20630. _ACEOF
  20631. LIBS="-lssh2 $LIBS"
  20632. fi
  20633. for ac_header in libssh2.h
  20634. do :
  20635. ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
  20636. if test "x$ac_cv_header_libssh2_h" = xyes; then :
  20637. cat >>confdefs.h <<_ACEOF
  20638. #define HAVE_LIBSSH2_H 1
  20639. _ACEOF
  20640. curl_ssh_msg="enabled (libSSH2)"
  20641. LIBSSH2_ENABLED=1
  20642. $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
  20643. USE_LIBSSH2=1
  20644. fi
  20645. done
  20646. if test X"$OPT_LIBSSH2" != Xoff &&
  20647. test "$LIBSSH2_ENABLED" != "1"; then
  20648. as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
  20649. fi
  20650. if test "$LIBSSH2_ENABLED" = "1"; then
  20651. if test -n "$DIR_SSH2"; then
  20652. for ac_func in libssh2_version libssh2_init libssh2_exit \
  20653. libssh2_scp_send64 libssh2_session_handshake
  20654. do :
  20655. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20656. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20657. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20658. cat >>confdefs.h <<_ACEOF
  20659. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20660. _ACEOF
  20661. fi
  20662. done
  20663. if test "x$cross_compiling" != "xyes"; then
  20664. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
  20665. export LD_LIBRARY_PATH
  20666. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
  20667. $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
  20668. fi
  20669. fi
  20670. else
  20671. LDFLAGS=$CLEANLDFLAGS
  20672. CPPFLAGS=$CLEANCPPFLAGS
  20673. LIBS=$CLEANLIBS
  20674. fi
  20675. fi
  20676. OPT_LIBRTMP=off
  20677. # Check whether --with-librtmp was given.
  20678. if test "${with_librtmp+set}" = set; then :
  20679. withval=$with_librtmp; OPT_LIBRTMP=$withval
  20680. fi
  20681. if test X"$OPT_LIBRTMP" != Xno; then
  20682. CLEANLDFLAGS="$LDFLAGS"
  20683. CLEANCPPFLAGS="$CPPFLAGS"
  20684. CLEANLIBS="$LIBS"
  20685. case "$OPT_LIBRTMP" in
  20686. yes)
  20687. PKGCONFIG="no"
  20688. if test -n "$ac_tool_prefix"; then
  20689. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20690. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20692. $as_echo_n "checking for $ac_word... " >&6; }
  20693. if ${ac_cv_path_PKGCONFIG+:} false; then :
  20694. $as_echo_n "(cached) " >&6
  20695. else
  20696. case $PKGCONFIG in
  20697. [\\/]* | ?:[\\/]*)
  20698. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20699. ;;
  20700. *)
  20701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20702. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20703. for as_dir in $as_dummy
  20704. do
  20705. IFS=$as_save_IFS
  20706. test -z "$as_dir" && as_dir=.
  20707. for ac_exec_ext in '' $ac_executable_extensions; do
  20708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20709. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20711. break 2
  20712. fi
  20713. done
  20714. done
  20715. IFS=$as_save_IFS
  20716. ;;
  20717. esac
  20718. fi
  20719. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20720. if test -n "$PKGCONFIG"; then
  20721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20722. $as_echo "$PKGCONFIG" >&6; }
  20723. else
  20724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20725. $as_echo "no" >&6; }
  20726. fi
  20727. fi
  20728. if test -z "$ac_cv_path_PKGCONFIG"; then
  20729. ac_pt_PKGCONFIG=$PKGCONFIG
  20730. # Extract the first word of "pkg-config", so it can be a program name with args.
  20731. set dummy pkg-config; ac_word=$2
  20732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20733. $as_echo_n "checking for $ac_word... " >&6; }
  20734. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  20735. $as_echo_n "(cached) " >&6
  20736. else
  20737. case $ac_pt_PKGCONFIG in
  20738. [\\/]* | ?:[\\/]*)
  20739. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20740. ;;
  20741. *)
  20742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20743. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20744. for as_dir in $as_dummy
  20745. do
  20746. IFS=$as_save_IFS
  20747. test -z "$as_dir" && as_dir=.
  20748. for ac_exec_ext in '' $ac_executable_extensions; do
  20749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20750. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20752. break 2
  20753. fi
  20754. done
  20755. done
  20756. IFS=$as_save_IFS
  20757. ;;
  20758. esac
  20759. fi
  20760. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20761. if test -n "$ac_pt_PKGCONFIG"; then
  20762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20763. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  20764. else
  20765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20766. $as_echo "no" >&6; }
  20767. fi
  20768. if test "x$ac_pt_PKGCONFIG" = x; then
  20769. PKGCONFIG="no"
  20770. else
  20771. case $cross_compiling:$ac_tool_warned in
  20772. yes:)
  20773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20774. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20775. ac_tool_warned=yes ;;
  20776. esac
  20777. PKGCONFIG=$ac_pt_PKGCONFIG
  20778. fi
  20779. else
  20780. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20781. fi
  20782. if test x$PKGCONFIG != xno; then
  20783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
  20784. $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
  20785. itexists=`
  20786. if test -n ""; then
  20787. PKG_CONFIG_LIBDIR=""
  20788. export PKG_CONFIG_LIBDIR
  20789. fi
  20790. $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
  20791. if test -z "$itexists"; then
  20792. PKGCONFIG="no"
  20793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20794. $as_echo "no" >&6; }
  20795. else
  20796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20797. $as_echo "found" >&6; }
  20798. fi
  20799. fi
  20800. if test "$PKGCONFIG" != "no" ; then
  20801. LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
  20802. LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
  20803. CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
  20804. version=`$PKGCONFIG --modversion librtmp`
  20805. DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
  20806. else
  20807. as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
  20808. fi
  20809. ;;
  20810. off)
  20811. LIB_RTMP="-lrtmp"
  20812. ;;
  20813. *)
  20814. PREFIX_RTMP=$OPT_LIBRTMP
  20815. ;;
  20816. esac
  20817. if test -n "$PREFIX_RTMP"; then
  20818. LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
  20819. CPP_RTMP=-I${PREFIX_RTMP}/include
  20820. DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
  20821. fi
  20822. LDFLAGS="$LDFLAGS $LD_RTMP"
  20823. CPPFLAGS="$CPPFLAGS $CPP_RTMP"
  20824. LIBS="$LIB_RTMP $LIBS"
  20825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
  20826. $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
  20827. if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
  20828. $as_echo_n "(cached) " >&6
  20829. else
  20830. ac_check_lib_save_LIBS=$LIBS
  20831. LIBS="-lrtmp $LIBS"
  20832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20833. /* end confdefs.h. */
  20834. #ifdef __cplusplus
  20835. extern "C"
  20836. #endif
  20837. char RTMP_Init ();
  20838. int main (void)
  20839. {
  20840. return RTMP_Init ();
  20841. ;
  20842. return 0;
  20843. }
  20844. _ACEOF
  20845. if ac_fn_c_try_link "$LINENO"; then :
  20846. ac_cv_lib_rtmp_RTMP_Init=yes
  20847. else
  20848. ac_cv_lib_rtmp_RTMP_Init=no
  20849. fi
  20850. rm -f core conftest.err conftest.$ac_objext \
  20851. conftest$ac_exeext conftest.$ac_ext
  20852. LIBS=$ac_check_lib_save_LIBS
  20853. fi
  20854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
  20855. $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
  20856. if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
  20857. for ac_header in librtmp/rtmp.h
  20858. do :
  20859. ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
  20860. if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
  20861. cat >>confdefs.h <<_ACEOF
  20862. #define HAVE_LIBRTMP_RTMP_H 1
  20863. _ACEOF
  20864. curl_rtmp_msg="enabled (librtmp)"
  20865. LIBRTMP_ENABLED=1
  20866. $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
  20867. USE_LIBRTMP=1
  20868. fi
  20869. done
  20870. else
  20871. LDFLAGS=$CLEANLDFLAGS
  20872. CPPFLAGS=$CLEANCPPFLAGS
  20873. LIBS=$CLEANLIBS
  20874. fi
  20875. if test X"$OPT_LIBRTMP" != Xoff &&
  20876. test "$LIBRTMP_ENABLED" != "1"; then
  20877. as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
  20878. fi
  20879. fi
  20880. versioned_symbols_flavour=
  20881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
  20882. $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
  20883. # Check whether --enable-versioned-symbols was given.
  20884. if test "${enable_versioned_symbols+set}" = set; then :
  20885. enableval=$enable_versioned_symbols; case "$enableval" in
  20886. yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20887. $as_echo "yes" >&6; }
  20888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
  20889. $as_echo_n "checking if libraries can be versioned... " >&6; }
  20890. GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
  20891. if test -z "$GLD"; then
  20892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20893. $as_echo "no" >&6; }
  20894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
  20895. $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
  20896. else
  20897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20898. $as_echo "yes" >&6; }
  20899. if test "x$OPENSSL_ENABLED" = "x1"; then
  20900. versioned_symbols_flavour="OPENSSL_"
  20901. elif test "x$GNUTLS_ENABLED" == "x1"; then
  20902. versioned_symbols_flavour="GNUTLS_"
  20903. elif test "x$NSS_ENABLED" == "x1"; then
  20904. versioned_symbols_flavour="NSS_"
  20905. elif test "x$POLARSSL_ENABLED" == "x1"; then
  20906. versioned_symbols_flavour="POLARSSL_"
  20907. elif test "x$CYASSL_ENABLED" == "x1"; then
  20908. versioned_symbols_flavour="CYASSL_"
  20909. elif test "x$AXTLS_ENABLED" == "x1"; then
  20910. versioned_symbols_flavour="AXTLS_"
  20911. elif test "x$WINSSL_ENABLED" == "x1"; then
  20912. versioned_symbols_flavour="WINSSL_"
  20913. elif test "x$DARWINSSL_ENABLED" == "x1"; then
  20914. versioned_symbols_flavour="DARWINSSL_"
  20915. else
  20916. versioned_symbols_flavour=""
  20917. fi
  20918. versioned_symbols="yes"
  20919. fi
  20920. ;;
  20921. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20922. $as_echo "no" >&6; }
  20923. ;;
  20924. esac
  20925. else
  20926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20927. $as_echo "no" >&6; }
  20928. fi
  20929. CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
  20930. if test "x$versioned_symbols" = 'xyes'; then
  20931. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
  20932. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
  20933. else
  20934. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
  20935. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
  20936. fi
  20937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
  20938. $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
  20939. OPT_WINIDN="default"
  20940. # Check whether --with-winidn was given.
  20941. if test "${with_winidn+set}" = set; then :
  20942. withval=$with_winidn; OPT_WINIDN=$withval
  20943. fi
  20944. case "$OPT_WINIDN" in
  20945. no|default)
  20946. want_winidn="no"
  20947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20948. $as_echo "no" >&6; }
  20949. ;;
  20950. yes)
  20951. want_winidn="yes"
  20952. want_winidn_path="default"
  20953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20954. $as_echo "yes" >&6; }
  20955. ;;
  20956. *)
  20957. want_winidn="yes"
  20958. want_winidn_path="$withval"
  20959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
  20960. $as_echo "yes ($withval)" >&6; }
  20961. ;;
  20962. esac
  20963. if test "$want_winidn" = "yes"; then
  20964. clean_CPPFLAGS="$CPPFLAGS"
  20965. clean_LDFLAGS="$LDFLAGS"
  20966. clean_LIBS="$LIBS"
  20967. WINIDN_LIBS="-lnormaliz"
  20968. #
  20969. if test "$want_winidn_path" != "default"; then
  20970. WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
  20971. WINIDN_CPPFLAGS="-I$want_winidn_path/include"
  20972. WINIDN_DIR="$want_winidn_path/lib$libsuff"
  20973. fi
  20974. #
  20975. CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
  20976. LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
  20977. LIBS="$WINIDN_LIBS $LIBS"
  20978. #
  20979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
  20980. $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
  20981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20982. /* end confdefs.h. */
  20983. #define IdnToUnicode innocuous_IdnToUnicode
  20984. #ifdef __STDC__
  20985. # include <limits.h>
  20986. #else
  20987. # include <assert.h>
  20988. #endif
  20989. #undef IdnToUnicode
  20990. #ifdef __cplusplus
  20991. extern "C"
  20992. #endif
  20993. char IdnToUnicode ();
  20994. #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
  20995. choke me
  20996. #endif
  20997. int main (void)
  20998. {
  20999. return IdnToUnicode ();
  21000. ;
  21001. return 0;
  21002. }
  21003. _ACEOF
  21004. if ac_fn_c_try_link "$LINENO"; then :
  21005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21006. $as_echo "yes" >&6; }
  21007. tst_links_winidn="yes"
  21008. else
  21009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21010. $as_echo "no" >&6; }
  21011. tst_links_winidn="no"
  21012. fi
  21013. rm -f core conftest.err conftest.$ac_objext \
  21014. conftest$ac_exeext conftest.$ac_ext
  21015. #
  21016. if test "$tst_links_winidn" = "yes"; then
  21017. $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
  21018. $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
  21019. IDN_ENABLED=1
  21020. curl_idn_msg="enabled (Windows-native)"
  21021. else
  21022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
  21023. $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
  21024. CPPFLAGS="$clean_CPPFLAGS"
  21025. LDFLAGS="$clean_LDFLAGS"
  21026. LIBS="$clean_LIBS"
  21027. fi
  21028. fi
  21029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
  21030. $as_echo_n "checking whether to build with libidn... " >&6; }
  21031. OPT_IDN="default"
  21032. # Check whether --with-libidn was given.
  21033. if test "${with_libidn+set}" = set; then :
  21034. withval=$with_libidn; OPT_IDN=$withval
  21035. fi
  21036. case "$OPT_IDN" in
  21037. no)
  21038. want_idn="no"
  21039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21040. $as_echo "no" >&6; }
  21041. ;;
  21042. default)
  21043. want_idn="yes"
  21044. want_idn_path="default"
  21045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  21046. $as_echo "(assumed) yes" >&6; }
  21047. ;;
  21048. yes)
  21049. want_idn="yes"
  21050. want_idn_path="default"
  21051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21052. $as_echo "yes" >&6; }
  21053. ;;
  21054. *)
  21055. want_idn="yes"
  21056. want_idn_path="$withval"
  21057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
  21058. $as_echo "yes ($withval)" >&6; }
  21059. ;;
  21060. esac
  21061. if test "$want_idn" = "yes"; then
  21062. clean_CPPFLAGS="$CPPFLAGS"
  21063. clean_LDFLAGS="$LDFLAGS"
  21064. clean_LIBS="$LIBS"
  21065. PKGCONFIG="no"
  21066. #
  21067. if test "$want_idn_path" != "default"; then
  21068. IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
  21069. PKGCONFIG="no"
  21070. if test -n "$ac_tool_prefix"; then
  21071. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  21072. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  21073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21074. $as_echo_n "checking for $ac_word... " >&6; }
  21075. if ${ac_cv_path_PKGCONFIG+:} false; then :
  21076. $as_echo_n "(cached) " >&6
  21077. else
  21078. case $PKGCONFIG in
  21079. [\\/]* | ?:[\\/]*)
  21080. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  21081. ;;
  21082. *)
  21083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21084. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21085. for as_dir in $as_dummy
  21086. do
  21087. IFS=$as_save_IFS
  21088. test -z "$as_dir" && as_dir=.
  21089. for ac_exec_ext in '' $ac_executable_extensions; do
  21090. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21091. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21093. break 2
  21094. fi
  21095. done
  21096. done
  21097. IFS=$as_save_IFS
  21098. ;;
  21099. esac
  21100. fi
  21101. PKGCONFIG=$ac_cv_path_PKGCONFIG
  21102. if test -n "$PKGCONFIG"; then
  21103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  21104. $as_echo "$PKGCONFIG" >&6; }
  21105. else
  21106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21107. $as_echo "no" >&6; }
  21108. fi
  21109. fi
  21110. if test -z "$ac_cv_path_PKGCONFIG"; then
  21111. ac_pt_PKGCONFIG=$PKGCONFIG
  21112. # Extract the first word of "pkg-config", so it can be a program name with args.
  21113. set dummy pkg-config; ac_word=$2
  21114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21115. $as_echo_n "checking for $ac_word... " >&6; }
  21116. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  21117. $as_echo_n "(cached) " >&6
  21118. else
  21119. case $ac_pt_PKGCONFIG in
  21120. [\\/]* | ?:[\\/]*)
  21121. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  21122. ;;
  21123. *)
  21124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21125. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21126. for as_dir in $as_dummy
  21127. do
  21128. IFS=$as_save_IFS
  21129. test -z "$as_dir" && as_dir=.
  21130. for ac_exec_ext in '' $ac_executable_extensions; do
  21131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21132. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21134. break 2
  21135. fi
  21136. done
  21137. done
  21138. IFS=$as_save_IFS
  21139. ;;
  21140. esac
  21141. fi
  21142. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  21143. if test -n "$ac_pt_PKGCONFIG"; then
  21144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  21145. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  21146. else
  21147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21148. $as_echo "no" >&6; }
  21149. fi
  21150. if test "x$ac_pt_PKGCONFIG" = x; then
  21151. PKGCONFIG="no"
  21152. else
  21153. case $cross_compiling:$ac_tool_warned in
  21154. yes:)
  21155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21156. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21157. ac_tool_warned=yes ;;
  21158. esac
  21159. PKGCONFIG=$ac_pt_PKGCONFIG
  21160. fi
  21161. else
  21162. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  21163. fi
  21164. if test x$PKGCONFIG != xno; then
  21165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
  21166. $as_echo_n "checking for libidn options with pkg-config... " >&6; }
  21167. itexists=`
  21168. if test -n "$IDN_PCDIR"; then
  21169. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  21170. export PKG_CONFIG_LIBDIR
  21171. fi
  21172. $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
  21173. if test -z "$itexists"; then
  21174. PKGCONFIG="no"
  21175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21176. $as_echo "no" >&6; }
  21177. else
  21178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21179. $as_echo "found" >&6; }
  21180. fi
  21181. fi
  21182. if test "$PKGCONFIG" != "no"; then
  21183. IDN_LIBS=`
  21184. if test -n "$IDN_PCDIR"; then
  21185. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  21186. export PKG_CONFIG_LIBDIR
  21187. fi
  21188. $PKGCONFIG --libs-only-l libidn 2>/dev/null`
  21189. IDN_LDFLAGS=`
  21190. if test -n "$IDN_PCDIR"; then
  21191. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  21192. export PKG_CONFIG_LIBDIR
  21193. fi
  21194. $PKGCONFIG --libs-only-L libidn 2>/dev/null`
  21195. IDN_CPPFLAGS=`
  21196. if test -n "$IDN_PCDIR"; then
  21197. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  21198. export PKG_CONFIG_LIBDIR
  21199. fi
  21200. $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
  21201. IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
  21202. else
  21203. IDN_LIBS="-lidn"
  21204. IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
  21205. IDN_CPPFLAGS="-I$want_idn_path/include"
  21206. IDN_DIR="$want_idn_path/lib$libsuff"
  21207. fi
  21208. else
  21209. PKGCONFIG="no"
  21210. if test -n "$ac_tool_prefix"; then
  21211. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  21212. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  21213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21214. $as_echo_n "checking for $ac_word... " >&6; }
  21215. if ${ac_cv_path_PKGCONFIG+:} false; then :
  21216. $as_echo_n "(cached) " >&6
  21217. else
  21218. case $PKGCONFIG in
  21219. [\\/]* | ?:[\\/]*)
  21220. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  21221. ;;
  21222. *)
  21223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21224. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21225. for as_dir in $as_dummy
  21226. do
  21227. IFS=$as_save_IFS
  21228. test -z "$as_dir" && as_dir=.
  21229. for ac_exec_ext in '' $ac_executable_extensions; do
  21230. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21231. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21233. break 2
  21234. fi
  21235. done
  21236. done
  21237. IFS=$as_save_IFS
  21238. ;;
  21239. esac
  21240. fi
  21241. PKGCONFIG=$ac_cv_path_PKGCONFIG
  21242. if test -n "$PKGCONFIG"; then
  21243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  21244. $as_echo "$PKGCONFIG" >&6; }
  21245. else
  21246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21247. $as_echo "no" >&6; }
  21248. fi
  21249. fi
  21250. if test -z "$ac_cv_path_PKGCONFIG"; then
  21251. ac_pt_PKGCONFIG=$PKGCONFIG
  21252. # Extract the first word of "pkg-config", so it can be a program name with args.
  21253. set dummy pkg-config; ac_word=$2
  21254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21255. $as_echo_n "checking for $ac_word... " >&6; }
  21256. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  21257. $as_echo_n "(cached) " >&6
  21258. else
  21259. case $ac_pt_PKGCONFIG in
  21260. [\\/]* | ?:[\\/]*)
  21261. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  21262. ;;
  21263. *)
  21264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21265. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21266. for as_dir in $as_dummy
  21267. do
  21268. IFS=$as_save_IFS
  21269. test -z "$as_dir" && as_dir=.
  21270. for ac_exec_ext in '' $ac_executable_extensions; do
  21271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21272. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21274. break 2
  21275. fi
  21276. done
  21277. done
  21278. IFS=$as_save_IFS
  21279. ;;
  21280. esac
  21281. fi
  21282. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  21283. if test -n "$ac_pt_PKGCONFIG"; then
  21284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  21285. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  21286. else
  21287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21288. $as_echo "no" >&6; }
  21289. fi
  21290. if test "x$ac_pt_PKGCONFIG" = x; then
  21291. PKGCONFIG="no"
  21292. else
  21293. case $cross_compiling:$ac_tool_warned in
  21294. yes:)
  21295. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21296. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21297. ac_tool_warned=yes ;;
  21298. esac
  21299. PKGCONFIG=$ac_pt_PKGCONFIG
  21300. fi
  21301. else
  21302. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  21303. fi
  21304. if test x$PKGCONFIG != xno; then
  21305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
  21306. $as_echo_n "checking for libidn options with pkg-config... " >&6; }
  21307. itexists=`
  21308. if test -n ""; then
  21309. PKG_CONFIG_LIBDIR=""
  21310. export PKG_CONFIG_LIBDIR
  21311. fi
  21312. $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
  21313. if test -z "$itexists"; then
  21314. PKGCONFIG="no"
  21315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21316. $as_echo "no" >&6; }
  21317. else
  21318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21319. $as_echo "found" >&6; }
  21320. fi
  21321. fi
  21322. if test "$PKGCONFIG" != "no"; then
  21323. IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
  21324. IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
  21325. IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
  21326. IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
  21327. else
  21328. IDN_LIBS="-lidn"
  21329. fi
  21330. fi
  21331. #
  21332. if test "$PKGCONFIG" != "no"; then
  21333. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
  21334. $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
  21335. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
  21336. $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
  21337. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
  21338. $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
  21339. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
  21340. $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
  21341. else
  21342. { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
  21343. $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
  21344. { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
  21345. $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
  21346. { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
  21347. $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
  21348. { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
  21349. $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
  21350. fi
  21351. #
  21352. CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
  21353. LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
  21354. LIBS="$IDN_LIBS $LIBS"
  21355. #
  21356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
  21357. $as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
  21358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21359. /* end confdefs.h. */
  21360. #define idna_to_ascii_4i innocuous_idna_to_ascii_4i
  21361. #ifdef __STDC__
  21362. # include <limits.h>
  21363. #else
  21364. # include <assert.h>
  21365. #endif
  21366. #undef idna_to_ascii_4i
  21367. #ifdef __cplusplus
  21368. extern "C"
  21369. #endif
  21370. char idna_to_ascii_4i ();
  21371. #if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
  21372. choke me
  21373. #endif
  21374. int main (void)
  21375. {
  21376. return idna_to_ascii_4i ();
  21377. ;
  21378. return 0;
  21379. }
  21380. _ACEOF
  21381. if ac_fn_c_try_link "$LINENO"; then :
  21382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21383. $as_echo "yes" >&6; }
  21384. tst_links_libidn="yes"
  21385. else
  21386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21387. $as_echo "no" >&6; }
  21388. tst_links_libidn="no"
  21389. fi
  21390. rm -f core conftest.err conftest.$ac_objext \
  21391. conftest$ac_exeext conftest.$ac_ext
  21392. if test "$tst_links_libidn" = "no"; then
  21393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
  21394. $as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
  21395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21396. /* end confdefs.h. */
  21397. #define idna_to_ascii_lz innocuous_idna_to_ascii_lz
  21398. #ifdef __STDC__
  21399. # include <limits.h>
  21400. #else
  21401. # include <assert.h>
  21402. #endif
  21403. #undef idna_to_ascii_lz
  21404. #ifdef __cplusplus
  21405. extern "C"
  21406. #endif
  21407. char idna_to_ascii_lz ();
  21408. #if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
  21409. choke me
  21410. #endif
  21411. int main (void)
  21412. {
  21413. return idna_to_ascii_lz ();
  21414. ;
  21415. return 0;
  21416. }
  21417. _ACEOF
  21418. if ac_fn_c_try_link "$LINENO"; then :
  21419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21420. $as_echo "yes" >&6; }
  21421. tst_links_libidn="yes"
  21422. else
  21423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21424. $as_echo "no" >&6; }
  21425. tst_links_libidn="no"
  21426. fi
  21427. rm -f core conftest.err conftest.$ac_objext \
  21428. conftest$ac_exeext conftest.$ac_ext
  21429. fi
  21430. #
  21431. if test "$tst_links_libidn" = "yes"; then
  21432. $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
  21433. for ac_func in idn_free idna_strerror tld_strerror
  21434. do :
  21435. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21436. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21437. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21438. cat >>confdefs.h <<_ACEOF
  21439. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21440. _ACEOF
  21441. fi
  21442. done
  21443. for ac_header in idn-free.h tld.h
  21444. do :
  21445. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21446. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  21447. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21448. cat >>confdefs.h <<_ACEOF
  21449. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21450. _ACEOF
  21451. fi
  21452. done
  21453. if test "x$ac_cv_header_tld_h" = "xyes"; then
  21454. IDN_ENABLED=1
  21455. curl_idn_msg="enabled"
  21456. if test -n "$IDN_DIR"; then
  21457. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
  21458. export LD_LIBRARY_PATH
  21459. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
  21460. $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
  21461. fi
  21462. else
  21463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
  21464. $as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
  21465. CPPFLAGS="$clean_CPPFLAGS"
  21466. LDFLAGS="$clean_LDFLAGS"
  21467. LIBS="$clean_LIBS"
  21468. fi
  21469. else
  21470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
  21471. $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
  21472. CPPFLAGS="$clean_CPPFLAGS"
  21473. LDFLAGS="$clean_LDFLAGS"
  21474. LIBS="$clean_LIBS"
  21475. fi
  21476. fi
  21477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  21478. $as_echo_n "checking for ANSI C header files... " >&6; }
  21479. if ${ac_cv_header_stdc+:} false; then :
  21480. $as_echo_n "(cached) " >&6
  21481. else
  21482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21483. /* end confdefs.h. */
  21484. #include <stdlib.h>
  21485. #include <stdarg.h>
  21486. #include <string.h>
  21487. #include <float.h>
  21488. int main (void)
  21489. {
  21490. ;
  21491. return 0;
  21492. }
  21493. _ACEOF
  21494. if ac_fn_c_try_compile "$LINENO"; then :
  21495. ac_cv_header_stdc=yes
  21496. else
  21497. ac_cv_header_stdc=no
  21498. fi
  21499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21500. if test $ac_cv_header_stdc = yes; then
  21501. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  21502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21503. /* end confdefs.h. */
  21504. #include <string.h>
  21505. _ACEOF
  21506. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21507. $EGREP "memchr" >/dev/null 2>&1; then :
  21508. else
  21509. ac_cv_header_stdc=no
  21510. fi
  21511. rm -f conftest*
  21512. fi
  21513. if test $ac_cv_header_stdc = yes; then
  21514. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  21515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21516. /* end confdefs.h. */
  21517. #include <stdlib.h>
  21518. _ACEOF
  21519. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21520. $EGREP "free" >/dev/null 2>&1; then :
  21521. else
  21522. ac_cv_header_stdc=no
  21523. fi
  21524. rm -f conftest*
  21525. fi
  21526. if test $ac_cv_header_stdc = yes; then
  21527. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  21528. if test "$cross_compiling" = yes; then :
  21529. :
  21530. else
  21531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21532. /* end confdefs.h. */
  21533. #include <ctype.h>
  21534. #include <stdlib.h>
  21535. #if ((' ' & 0x0FF) == 0x020)
  21536. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  21537. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  21538. #else
  21539. # define ISLOWER(c) \
  21540. (('a' <= (c) && (c) <= 'i') \
  21541. || ('j' <= (c) && (c) <= 'r') \
  21542. || ('s' <= (c) && (c) <= 'z'))
  21543. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  21544. #endif
  21545. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  21546. int
  21547. main ()
  21548. {
  21549. int i;
  21550. for (i = 0; i < 256; i++)
  21551. if (XOR (islower (i), ISLOWER (i))
  21552. || toupper (i) != TOUPPER (i))
  21553. return 2;
  21554. return 0;
  21555. }
  21556. _ACEOF
  21557. if ac_fn_c_try_run "$LINENO"; then :
  21558. else
  21559. ac_cv_header_stdc=no
  21560. fi
  21561. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21562. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21563. fi
  21564. fi
  21565. fi
  21566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  21567. $as_echo "$ac_cv_header_stdc" >&6; }
  21568. if test $ac_cv_header_stdc = yes; then
  21569. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  21570. fi
  21571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
  21572. $as_echo_n "checking for malloc.h... " >&6; }
  21573. if ${ac_cv_header_malloc_h+:} false; then :
  21574. $as_echo_n "(cached) " >&6
  21575. else
  21576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21577. /* end confdefs.h. */
  21578. #include <malloc.h>
  21579. int main (void)
  21580. {
  21581. void *p = malloc(10);
  21582. void *q = calloc(10,10);
  21583. free(p);
  21584. free(q);
  21585. ;
  21586. return 0;
  21587. }
  21588. _ACEOF
  21589. if ac_fn_c_try_compile "$LINENO"; then :
  21590. ac_cv_header_malloc_h="yes"
  21591. else
  21592. ac_cv_header_malloc_h="no"
  21593. fi
  21594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21595. fi
  21596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
  21597. $as_echo "$ac_cv_header_malloc_h" >&6; }
  21598. if test "$ac_cv_header_malloc_h" = "yes"; then
  21599. cat >>confdefs.h <<_ACEOF
  21600. #define HAVE_MALLOC_H 1
  21601. _ACEOF
  21602. #
  21603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21604. /* end confdefs.h. */
  21605. #include <stdlib.h>
  21606. int main (void)
  21607. {
  21608. void *p = malloc(10);
  21609. void *q = calloc(10,10);
  21610. free(p);
  21611. free(q);
  21612. ;
  21613. return 0;
  21614. }
  21615. _ACEOF
  21616. if ac_fn_c_try_compile "$LINENO"; then :
  21617. curl_cv_need_header_malloc_h="no"
  21618. else
  21619. curl_cv_need_header_malloc_h="yes"
  21620. fi
  21621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21622. #
  21623. case "$curl_cv_need_header_malloc_h" in
  21624. yes)
  21625. cat >>confdefs.h <<_ACEOF
  21626. #define NEED_MALLOC_H 1
  21627. _ACEOF
  21628. ;;
  21629. esac
  21630. fi
  21631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
  21632. $as_echo_n "checking for memory.h... " >&6; }
  21633. if ${ac_cv_header_memory_h+:} false; then :
  21634. $as_echo_n "(cached) " >&6
  21635. else
  21636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21637. /* end confdefs.h. */
  21638. #include <memory.h>
  21639. int main (void)
  21640. {
  21641. void *p = malloc(10);
  21642. void *q = calloc(10,10);
  21643. free(p);
  21644. free(q);
  21645. ;
  21646. return 0;
  21647. }
  21648. _ACEOF
  21649. if ac_fn_c_try_compile "$LINENO"; then :
  21650. ac_cv_header_memory_h="yes"
  21651. else
  21652. ac_cv_header_memory_h="no"
  21653. fi
  21654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21655. fi
  21656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
  21657. $as_echo "$ac_cv_header_memory_h" >&6; }
  21658. if test "$ac_cv_header_memory_h" = "yes"; then
  21659. cat >>confdefs.h <<_ACEOF
  21660. #define HAVE_MEMORY_H 1
  21661. _ACEOF
  21662. #
  21663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21664. /* end confdefs.h. */
  21665. #include <stdlib.h>
  21666. int main (void)
  21667. {
  21668. void *p = malloc(10);
  21669. void *q = calloc(10,10);
  21670. free(p);
  21671. free(q);
  21672. ;
  21673. return 0;
  21674. }
  21675. _ACEOF
  21676. if ac_fn_c_try_compile "$LINENO"; then :
  21677. curl_cv_need_header_memory_h="no"
  21678. else
  21679. curl_cv_need_header_memory_h="yes"
  21680. fi
  21681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21682. #
  21683. case "$curl_cv_need_header_memory_h" in
  21684. yes)
  21685. cat >>confdefs.h <<_ACEOF
  21686. #define NEED_MEMORY_H 1
  21687. _ACEOF
  21688. ;;
  21689. esac
  21690. fi
  21691. for ac_header in sys/types.h \
  21692. sys/time.h \
  21693. sys/select.h \
  21694. sys/socket.h \
  21695. sys/ioctl.h \
  21696. sys/uio.h \
  21697. assert.h \
  21698. unistd.h \
  21699. stdlib.h \
  21700. limits.h \
  21701. arpa/inet.h \
  21702. net/if.h \
  21703. netinet/in.h \
  21704. sys/un.h \
  21705. netinet/tcp.h \
  21706. netdb.h \
  21707. sys/sockio.h \
  21708. sys/stat.h \
  21709. sys/param.h \
  21710. termios.h \
  21711. termio.h \
  21712. sgtty.h \
  21713. fcntl.h \
  21714. alloca.h \
  21715. time.h \
  21716. io.h \
  21717. pwd.h \
  21718. utime.h \
  21719. sys/utime.h \
  21720. sys/poll.h \
  21721. poll.h \
  21722. socket.h \
  21723. sys/resource.h \
  21724. libgen.h \
  21725. locale.h \
  21726. errno.h \
  21727. stdbool.h \
  21728. arpa/tftp.h \
  21729. sys/filio.h \
  21730. sys/wait.h \
  21731. setjmp.h
  21732. do :
  21733. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21734. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  21735. #ifdef HAVE_SYS_TYPES_H
  21736. #include <sys/types.h>
  21737. #endif
  21738. #ifdef HAVE_SYS_TIME_H
  21739. #include <sys/time.h>
  21740. #endif
  21741. #ifdef HAVE_SYS_SELECT_H
  21742. #include <sys/select.h>
  21743. #endif
  21744. #ifdef HAVE_SYS_SOCKET_H
  21745. #include <sys/socket.h>
  21746. #endif
  21747. #ifdef HAVE_NETINET_IN_H
  21748. #include <netinet/in.h>
  21749. #endif
  21750. #ifdef HAVE_SYS_UN_H
  21751. #include <sys/un.h>
  21752. #endif
  21753. "
  21754. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21755. cat >>confdefs.h <<_ACEOF
  21756. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21757. _ACEOF
  21758. fi
  21759. done
  21760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  21761. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  21762. if ${ac_cv_c_const+:} false; then :
  21763. $as_echo_n "(cached) " >&6
  21764. else
  21765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21766. /* end confdefs.h. */
  21767. int main (void)
  21768. {
  21769. #ifndef __cplusplus
  21770. /* Ultrix mips cc rejects this sort of thing. */
  21771. typedef int charset[2];
  21772. const charset cs = { 0, 0 };
  21773. /* SunOS 4.1.1 cc rejects this. */
  21774. char const *const *pcpcc;
  21775. char **ppc;
  21776. /* NEC SVR4.0.2 mips cc rejects this. */
  21777. struct point {int x, y;};
  21778. static struct point const zero = {0,0};
  21779. /* AIX XL C 1.02.0.0 rejects this.
  21780. It does not let you subtract one const X* pointer from another in
  21781. an arm of an if-expression whose if-part is not a constant
  21782. expression */
  21783. const char *g = "string";
  21784. pcpcc = &g + (g ? g-g : 0);
  21785. /* HPUX 7.0 cc rejects these. */
  21786. ++pcpcc;
  21787. ppc = (char**) pcpcc;
  21788. pcpcc = (char const *const *) ppc;
  21789. { /* SCO 3.2v4 cc rejects this sort of thing. */
  21790. char tx;
  21791. char *t = &tx;
  21792. char const *s = 0 ? (char *) 0 : (char const *) 0;
  21793. *t++ = 0;
  21794. if (s) return 0;
  21795. }
  21796. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  21797. int x[] = {25, 17};
  21798. const int *foo = &x[0];
  21799. ++foo;
  21800. }
  21801. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  21802. typedef const int *iptr;
  21803. iptr p = 0;
  21804. ++p;
  21805. }
  21806. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  21807. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  21808. struct s { int j; const int *ap[3]; } bx;
  21809. struct s *b = &bx; b->j = 5;
  21810. }
  21811. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  21812. const int foo = 10;
  21813. if (!foo) return 0;
  21814. }
  21815. return !cs[0] && !zero.x;
  21816. #endif
  21817. ;
  21818. return 0;
  21819. }
  21820. _ACEOF
  21821. if ac_fn_c_try_compile "$LINENO"; then :
  21822. ac_cv_c_const=yes
  21823. else
  21824. ac_cv_c_const=no
  21825. fi
  21826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21827. fi
  21828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  21829. $as_echo "$ac_cv_c_const" >&6; }
  21830. if test $ac_cv_c_const = no; then
  21831. $as_echo "#define const /**/" >>confdefs.h
  21832. fi
  21833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
  21834. $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
  21835. if ${curl_cv_variadic_macros_c99+:} false; then :
  21836. $as_echo_n "(cached) " >&6
  21837. else
  21838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21839. /* end confdefs.h. */
  21840. #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
  21841. #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
  21842. int fun3(int arg1, int arg2, int arg3);
  21843. int fun2(int arg1, int arg2);
  21844. int fun3(int arg1, int arg2, int arg3)
  21845. { return arg1 + arg2 + arg3; }
  21846. int fun2(int arg1, int arg2)
  21847. { return arg1 + arg2; }
  21848. int main (void)
  21849. {
  21850. int res3 = c99_vmacro3(1, 2, 3);
  21851. int res2 = c99_vmacro2(1, 2);
  21852. ;
  21853. return 0;
  21854. }
  21855. _ACEOF
  21856. if ac_fn_c_try_compile "$LINENO"; then :
  21857. curl_cv_variadic_macros_c99="yes"
  21858. else
  21859. curl_cv_variadic_macros_c99="no"
  21860. fi
  21861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21862. fi
  21863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
  21864. $as_echo "$curl_cv_variadic_macros_c99" >&6; }
  21865. case "$curl_cv_variadic_macros_c99" in
  21866. yes)
  21867. cat >>confdefs.h <<_ACEOF
  21868. #define HAVE_VARIADIC_MACROS_C99 1
  21869. _ACEOF
  21870. ;;
  21871. esac
  21872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
  21873. $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
  21874. if ${curl_cv_variadic_macros_gcc+:} false; then :
  21875. $as_echo_n "(cached) " >&6
  21876. else
  21877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21878. /* end confdefs.h. */
  21879. #define gcc_vmacro3(first, args...) fun3(first, args)
  21880. #define gcc_vmacro2(first, args...) fun2(first, args)
  21881. int fun3(int arg1, int arg2, int arg3);
  21882. int fun2(int arg1, int arg2);
  21883. int fun3(int arg1, int arg2, int arg3)
  21884. { return arg1 + arg2 + arg3; }
  21885. int fun2(int arg1, int arg2)
  21886. { return arg1 + arg2; }
  21887. int main (void)
  21888. {
  21889. int res3 = gcc_vmacro3(1, 2, 3);
  21890. int res2 = gcc_vmacro2(1, 2);
  21891. ;
  21892. return 0;
  21893. }
  21894. _ACEOF
  21895. if ac_fn_c_try_compile "$LINENO"; then :
  21896. curl_cv_variadic_macros_gcc="yes"
  21897. else
  21898. curl_cv_variadic_macros_gcc="no"
  21899. fi
  21900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21901. fi
  21902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
  21903. $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
  21904. case "$curl_cv_variadic_macros_gcc" in
  21905. yes)
  21906. cat >>confdefs.h <<_ACEOF
  21907. #define HAVE_VARIADIC_MACROS_GCC 1
  21908. _ACEOF
  21909. ;;
  21910. esac
  21911. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  21912. if test "x$ac_cv_type_size_t" = xyes; then :
  21913. else
  21914. cat >>confdefs.h <<_ACEOF
  21915. #define size_t unsigned int
  21916. _ACEOF
  21917. fi
  21918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  21919. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  21920. if ${ac_cv_header_time+:} false; then :
  21921. $as_echo_n "(cached) " >&6
  21922. else
  21923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21924. /* end confdefs.h. */
  21925. #include <sys/types.h>
  21926. #include <sys/time.h>
  21927. #include <time.h>
  21928. int main (void)
  21929. {
  21930. if ((struct tm *) 0)
  21931. return 0;
  21932. ;
  21933. return 0;
  21934. }
  21935. _ACEOF
  21936. if ac_fn_c_try_compile "$LINENO"; then :
  21937. ac_cv_header_time=yes
  21938. else
  21939. ac_cv_header_time=no
  21940. fi
  21941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21942. fi
  21943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  21944. $as_echo "$ac_cv_header_time" >&6; }
  21945. if test $ac_cv_header_time = yes; then
  21946. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  21947. fi
  21948. for ac_header in sys/types.h sys/time.h time.h sys/socket.h
  21949. do :
  21950. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21951. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  21952. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21953. cat >>confdefs.h <<_ACEOF
  21954. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21955. _ACEOF
  21956. fi
  21957. done
  21958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
  21959. $as_echo_n "checking for struct timeval... " >&6; }
  21960. if ${ac_cv_struct_timeval+:} false; then :
  21961. $as_echo_n "(cached) " >&6
  21962. else
  21963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21964. /* end confdefs.h. */
  21965. #undef inline
  21966. #ifdef HAVE_WINDOWS_H
  21967. #ifndef WIN32_LEAN_AND_MEAN
  21968. #define WIN32_LEAN_AND_MEAN
  21969. #endif
  21970. #include <windows.h>
  21971. #ifdef HAVE_WINSOCK2_H
  21972. #include <winsock2.h>
  21973. #else
  21974. #ifdef HAVE_WINSOCK_H
  21975. #include <winsock.h>
  21976. #endif
  21977. #endif
  21978. #endif
  21979. #ifdef HAVE_SYS_TYPES_H
  21980. #include <sys/types.h>
  21981. #endif
  21982. #ifdef HAVE_SYS_TIME_H
  21983. #include <sys/time.h>
  21984. #ifdef TIME_WITH_SYS_TIME
  21985. #include <time.h>
  21986. #endif
  21987. #else
  21988. #ifdef HAVE_TIME_H
  21989. #include <time.h>
  21990. #endif
  21991. #endif
  21992. #ifdef HAVE_SYS_SOCKET_H
  21993. #include <sys/socket.h>
  21994. #endif
  21995. int main (void)
  21996. {
  21997. struct timeval ts;
  21998. ts.tv_sec = 0;
  21999. ts.tv_usec = 0;
  22000. ;
  22001. return 0;
  22002. }
  22003. _ACEOF
  22004. if ac_fn_c_try_compile "$LINENO"; then :
  22005. ac_cv_struct_timeval="yes"
  22006. else
  22007. ac_cv_struct_timeval="no"
  22008. fi
  22009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22010. fi
  22011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
  22012. $as_echo "$ac_cv_struct_timeval" >&6; }
  22013. case "$ac_cv_struct_timeval" in
  22014. yes)
  22015. cat >>confdefs.h <<_ACEOF
  22016. #define HAVE_STRUCT_TIMEVAL 1
  22017. _ACEOF
  22018. ;;
  22019. esac
  22020. if test "x$cross_compiling" != xyes; then
  22021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
  22022. $as_echo_n "checking run-time libs availability... " >&6; }
  22023. if test "$cross_compiling" = yes; then :
  22024. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22025. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22026. as_fn_error $? "cannot run test program while cross compiling
  22027. See \`config.log' for more details" "$LINENO" 5; }
  22028. else
  22029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22030. /* end confdefs.h. */
  22031. main()
  22032. {
  22033. return 0;
  22034. }
  22035. _ACEOF
  22036. if ac_fn_c_try_run "$LINENO"; then :
  22037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
  22038. $as_echo "fine" >&6; }
  22039. else
  22040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  22041. $as_echo "failed" >&6; }
  22042. as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
  22043. fi
  22044. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  22045. conftest.$ac_objext conftest.beam conftest.$ac_ext
  22046. fi
  22047. fi
  22048. # The cast to long int works around a bug in the HP C Compiler
  22049. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22050. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22051. # This bug is HP SR number 8606223364.
  22052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  22053. $as_echo_n "checking size of size_t... " >&6; }
  22054. if ${ac_cv_sizeof_size_t+:} false; then :
  22055. $as_echo_n "(cached) " >&6
  22056. else
  22057. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  22058. else
  22059. if test "$ac_cv_type_size_t" = yes; then
  22060. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22061. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22062. as_fn_error 77 "cannot compute sizeof (size_t)
  22063. See \`config.log' for more details" "$LINENO" 5; }
  22064. else
  22065. ac_cv_sizeof_size_t=0
  22066. fi
  22067. fi
  22068. fi
  22069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  22070. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  22071. cat >>confdefs.h <<_ACEOF
  22072. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  22073. _ACEOF
  22074. # The cast to long int works around a bug in the HP C Compiler
  22075. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22076. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22077. # This bug is HP SR number 8606223364.
  22078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  22079. $as_echo_n "checking size of long... " >&6; }
  22080. if ${ac_cv_sizeof_long+:} false; then :
  22081. $as_echo_n "(cached) " >&6
  22082. else
  22083. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  22084. else
  22085. if test "$ac_cv_type_long" = yes; then
  22086. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22087. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22088. as_fn_error 77 "cannot compute sizeof (long)
  22089. See \`config.log' for more details" "$LINENO" 5; }
  22090. else
  22091. ac_cv_sizeof_long=0
  22092. fi
  22093. fi
  22094. fi
  22095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  22096. $as_echo "$ac_cv_sizeof_long" >&6; }
  22097. cat >>confdefs.h <<_ACEOF
  22098. #define SIZEOF_LONG $ac_cv_sizeof_long
  22099. _ACEOF
  22100. # The cast to long int works around a bug in the HP C Compiler
  22101. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22102. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22103. # This bug is HP SR number 8606223364.
  22104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  22105. $as_echo_n "checking size of int... " >&6; }
  22106. if ${ac_cv_sizeof_int+:} false; then :
  22107. $as_echo_n "(cached) " >&6
  22108. else
  22109. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  22110. else
  22111. if test "$ac_cv_type_int" = yes; then
  22112. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22113. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22114. as_fn_error 77 "cannot compute sizeof (int)
  22115. See \`config.log' for more details" "$LINENO" 5; }
  22116. else
  22117. ac_cv_sizeof_int=0
  22118. fi
  22119. fi
  22120. fi
  22121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  22122. $as_echo "$ac_cv_sizeof_int" >&6; }
  22123. cat >>confdefs.h <<_ACEOF
  22124. #define SIZEOF_INT $ac_cv_sizeof_int
  22125. _ACEOF
  22126. # The cast to long int works around a bug in the HP C Compiler
  22127. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22128. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22129. # This bug is HP SR number 8606223364.
  22130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  22131. $as_echo_n "checking size of short... " >&6; }
  22132. if ${ac_cv_sizeof_short+:} false; then :
  22133. $as_echo_n "(cached) " >&6
  22134. else
  22135. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  22136. else
  22137. if test "$ac_cv_type_short" = yes; then
  22138. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22139. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22140. as_fn_error 77 "cannot compute sizeof (short)
  22141. See \`config.log' for more details" "$LINENO" 5; }
  22142. else
  22143. ac_cv_sizeof_short=0
  22144. fi
  22145. fi
  22146. fi
  22147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  22148. $as_echo "$ac_cv_sizeof_short" >&6; }
  22149. cat >>confdefs.h <<_ACEOF
  22150. #define SIZEOF_SHORT $ac_cv_sizeof_short
  22151. _ACEOF
  22152. if test -z "$ac_cv_sizeof_long" ||
  22153. test "$ac_cv_sizeof_long" -eq "0"; then
  22154. as_fn_error $? "cannot find out size of long." "$LINENO" 5
  22155. fi
  22156. cat >>confdefs.h <<_EOF
  22157. #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
  22158. _EOF
  22159. # The cast to long int works around a bug in the HP C Compiler
  22160. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22161. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22162. # This bug is HP SR number 8606223364.
  22163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  22164. $as_echo_n "checking size of time_t... " >&6; }
  22165. if ${ac_cv_sizeof_time_t+:} false; then :
  22166. $as_echo_n "(cached) " >&6
  22167. else
  22168. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
  22169. else
  22170. if test "$ac_cv_type_time_t" = yes; then
  22171. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22172. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22173. as_fn_error 77 "cannot compute sizeof (time_t)
  22174. See \`config.log' for more details" "$LINENO" 5; }
  22175. else
  22176. ac_cv_sizeof_time_t=0
  22177. fi
  22178. fi
  22179. fi
  22180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  22181. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  22182. cat >>confdefs.h <<_ACEOF
  22183. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  22184. _ACEOF
  22185. # The cast to long int works around a bug in the HP C Compiler
  22186. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22187. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22188. # This bug is HP SR number 8606223364.
  22189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  22190. $as_echo_n "checking size of off_t... " >&6; }
  22191. if ${ac_cv_sizeof_off_t+:} false; then :
  22192. $as_echo_n "(cached) " >&6
  22193. else
  22194. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  22195. else
  22196. if test "$ac_cv_type_off_t" = yes; then
  22197. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22198. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22199. as_fn_error 77 "cannot compute sizeof (off_t)
  22200. See \`config.log' for more details" "$LINENO" 5; }
  22201. else
  22202. ac_cv_sizeof_off_t=0
  22203. fi
  22204. fi
  22205. fi
  22206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  22207. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  22208. cat >>confdefs.h <<_ACEOF
  22209. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  22210. _ACEOF
  22211. soname_bump=no
  22212. if test x"$ac_cv_native_windows" != "xyes" &&
  22213. test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
  22214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
  22215. $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
  22216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
  22217. $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
  22218. soname_bump=yes
  22219. fi
  22220. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  22221. if test "x$ac_cv_type_long_long" = xyes; then :
  22222. $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
  22223. longlong="yes"
  22224. fi
  22225. if test "xyes" = "x$longlong"; then
  22226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
  22227. $as_echo_n "checking if numberLL works... " >&6; }
  22228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22229. /* end confdefs.h. */
  22230. int main (void)
  22231. {
  22232. long long val = 1000LL;
  22233. ;
  22234. return 0;
  22235. }
  22236. _ACEOF
  22237. if ac_fn_c_try_compile "$LINENO"; then :
  22238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22239. $as_echo "yes" >&6; }
  22240. $as_echo "#define HAVE_LL 1" >>confdefs.h
  22241. else
  22242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22243. $as_echo "no" >&6; }
  22244. fi
  22245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22246. fi
  22247. # check for ssize_t
  22248. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  22249. if test "x$ac_cv_type_ssize_t" = xyes; then :
  22250. else
  22251. $as_echo "#define ssize_t int" >>confdefs.h
  22252. fi
  22253. # check for bool type
  22254. ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
  22255. #ifdef HAVE_SYS_TYPES_H
  22256. #include <sys/types.h>
  22257. #endif
  22258. #ifdef HAVE_STDBOOL_H
  22259. #include <stdbool.h>
  22260. #endif
  22261. "
  22262. if test "x$ac_cv_type_bool" = xyes; then :
  22263. $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
  22264. fi
  22265. curl_includes_ws2tcpip="\
  22266. /* includes start */
  22267. #ifdef HAVE_WINDOWS_H
  22268. # ifndef WIN32_LEAN_AND_MEAN
  22269. # define WIN32_LEAN_AND_MEAN
  22270. # endif
  22271. # include <windows.h>
  22272. # ifdef HAVE_WINSOCK2_H
  22273. # include <winsock2.h>
  22274. # ifdef HAVE_WS2TCPIP_H
  22275. # include <ws2tcpip.h>
  22276. # endif
  22277. # endif
  22278. #endif
  22279. /* includes end */"
  22280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  22281. $as_echo_n "checking for windows.h... " >&6; }
  22282. if ${ac_cv_header_windows_h+:} false; then :
  22283. $as_echo_n "(cached) " >&6
  22284. else
  22285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22286. /* end confdefs.h. */
  22287. #undef inline
  22288. #ifndef WIN32_LEAN_AND_MEAN
  22289. #define WIN32_LEAN_AND_MEAN
  22290. #endif
  22291. #include <windows.h>
  22292. int main (void)
  22293. {
  22294. #if defined(__CYGWIN__) || defined(__CEGCC__)
  22295. HAVE_WINDOWS_H shall not be defined.
  22296. #else
  22297. int dummy=2*WINVER;
  22298. #endif
  22299. ;
  22300. return 0;
  22301. }
  22302. _ACEOF
  22303. if ac_fn_c_try_compile "$LINENO"; then :
  22304. ac_cv_header_windows_h="yes"
  22305. else
  22306. ac_cv_header_windows_h="no"
  22307. fi
  22308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22309. fi
  22310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
  22311. $as_echo "$ac_cv_header_windows_h" >&6; }
  22312. case "$ac_cv_header_windows_h" in
  22313. yes)
  22314. cat >>confdefs.h <<_ACEOF
  22315. #define HAVE_WINDOWS_H 1
  22316. _ACEOF
  22317. cat >>confdefs.h <<_ACEOF
  22318. #define WIN32_LEAN_AND_MEAN 1
  22319. _ACEOF
  22320. ;;
  22321. esac
  22322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  22323. $as_echo_n "checking for winsock2.h... " >&6; }
  22324. if ${ac_cv_header_winsock2_h+:} false; then :
  22325. $as_echo_n "(cached) " >&6
  22326. else
  22327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22328. /* end confdefs.h. */
  22329. #undef inline
  22330. #ifndef WIN32_LEAN_AND_MEAN
  22331. #define WIN32_LEAN_AND_MEAN
  22332. #endif
  22333. #include <windows.h>
  22334. #include <winsock2.h>
  22335. int main (void)
  22336. {
  22337. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  22338. HAVE_WINSOCK2_H shall not be defined.
  22339. #else
  22340. int dummy=2*IPPROTO_ESP;
  22341. #endif
  22342. ;
  22343. return 0;
  22344. }
  22345. _ACEOF
  22346. if ac_fn_c_try_compile "$LINENO"; then :
  22347. ac_cv_header_winsock2_h="yes"
  22348. else
  22349. ac_cv_header_winsock2_h="no"
  22350. fi
  22351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22352. fi
  22353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
  22354. $as_echo "$ac_cv_header_winsock2_h" >&6; }
  22355. case "$ac_cv_header_winsock2_h" in
  22356. yes)
  22357. cat >>confdefs.h <<_ACEOF
  22358. #define HAVE_WINSOCK2_H 1
  22359. _ACEOF
  22360. ;;
  22361. esac
  22362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
  22363. $as_echo_n "checking for ws2tcpip.h... " >&6; }
  22364. if ${ac_cv_header_ws2tcpip_h+:} false; then :
  22365. $as_echo_n "(cached) " >&6
  22366. else
  22367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22368. /* end confdefs.h. */
  22369. #undef inline
  22370. #ifndef WIN32_LEAN_AND_MEAN
  22371. #define WIN32_LEAN_AND_MEAN
  22372. #endif
  22373. #include <windows.h>
  22374. #include <winsock2.h>
  22375. #include <ws2tcpip.h>
  22376. int main (void)
  22377. {
  22378. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  22379. HAVE_WS2TCPIP_H shall not be defined.
  22380. #else
  22381. int dummy=2*IP_PKTINFO;
  22382. #endif
  22383. ;
  22384. return 0;
  22385. }
  22386. _ACEOF
  22387. if ac_fn_c_try_compile "$LINENO"; then :
  22388. ac_cv_header_ws2tcpip_h="yes"
  22389. else
  22390. ac_cv_header_ws2tcpip_h="no"
  22391. fi
  22392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22393. fi
  22394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
  22395. $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
  22396. case "$ac_cv_header_ws2tcpip_h" in
  22397. yes)
  22398. cat >>confdefs.h <<_ACEOF
  22399. #define HAVE_WS2TCPIP_H 1
  22400. _ACEOF
  22401. ;;
  22402. esac
  22403. curl_includes_sys_socket="\
  22404. /* includes start */
  22405. #ifdef HAVE_SYS_TYPES_H
  22406. # include <sys/types.h>
  22407. #endif
  22408. #ifdef HAVE_SYS_SOCKET_H
  22409. # include <sys/socket.h>
  22410. #endif
  22411. /* includes end */"
  22412. for ac_header in sys/types.h sys/socket.h
  22413. do :
  22414. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22415. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
  22416. "
  22417. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22418. cat >>confdefs.h <<_ACEOF
  22419. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22420. _ACEOF
  22421. fi
  22422. done
  22423. curl_preprocess_callconv="\
  22424. /* preprocess start */
  22425. #ifdef HAVE_WINDOWS_H
  22426. # define FUNCALLCONV __stdcall
  22427. #else
  22428. # define FUNCALLCONV
  22429. #endif
  22430. /* preprocess end */"
  22431. #
  22432. #
  22433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
  22434. $as_echo_n "checking for curl_socklen_t data type... " >&6; }
  22435. curl_typeof_curl_socklen_t="unknown"
  22436. for arg1 in int SOCKET; do
  22437. for arg2 in 'struct sockaddr' void; do
  22438. for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
  22439. if test "$curl_typeof_curl_socklen_t" = "unknown"; then
  22440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22441. /* end confdefs.h. */
  22442. $curl_includes_ws2tcpip
  22443. $curl_includes_sys_socket
  22444. $curl_preprocess_callconv
  22445. extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
  22446. int main (void)
  22447. {
  22448. $t *lenptr = 0;
  22449. if(0 != getpeername(0, 0, lenptr))
  22450. return 1;
  22451. ;
  22452. return 0;
  22453. }
  22454. _ACEOF
  22455. if ac_fn_c_try_compile "$LINENO"; then :
  22456. curl_typeof_curl_socklen_t="$t"
  22457. fi
  22458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22459. fi
  22460. done
  22461. done
  22462. done
  22463. for t in socklen_t int; do
  22464. if test "$curl_typeof_curl_socklen_t" = "void"; then
  22465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22466. /* end confdefs.h. */
  22467. $curl_includes_sys_socket
  22468. typedef $t curl_socklen_t;
  22469. int main (void)
  22470. {
  22471. curl_socklen_t dummy;
  22472. ;
  22473. return 0;
  22474. }
  22475. _ACEOF
  22476. if ac_fn_c_try_compile "$LINENO"; then :
  22477. curl_typeof_curl_socklen_t="$t"
  22478. fi
  22479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22480. fi
  22481. done
  22482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
  22483. $as_echo "$curl_typeof_curl_socklen_t" >&6; }
  22484. if test "$curl_typeof_curl_socklen_t" = "void" ||
  22485. test "$curl_typeof_curl_socklen_t" = "unknown"; then
  22486. as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
  22487. fi
  22488. #
  22489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
  22490. $as_echo_n "checking size of curl_socklen_t... " >&6; }
  22491. curl_sizeof_curl_socklen_t="unknown"
  22492. curl_pull_headers_socklen_t="unknown"
  22493. if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
  22494. tst_pull_header_checks='none ws2tcpip'
  22495. tst_size_checks='4'
  22496. else
  22497. tst_pull_header_checks='none systypes syssocket'
  22498. tst_size_checks='4 8 2'
  22499. fi
  22500. for tst_size in $tst_size_checks; do
  22501. for tst_pull_headers in $tst_pull_header_checks; do
  22502. if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
  22503. case $tst_pull_headers in
  22504. ws2tcpip)
  22505. tmp_includes="$curl_includes_ws2tcpip"
  22506. ;;
  22507. systypes)
  22508. tmp_includes="$curl_includes_sys_types"
  22509. ;;
  22510. syssocket)
  22511. tmp_includes="$curl_includes_sys_socket"
  22512. ;;
  22513. *)
  22514. tmp_includes=""
  22515. ;;
  22516. esac
  22517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22518. /* end confdefs.h. */
  22519. $tmp_includes
  22520. typedef $curl_typeof_curl_socklen_t curl_socklen_t;
  22521. typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
  22522. int main (void)
  22523. {
  22524. curl_socklen_t dummy;
  22525. ;
  22526. return 0;
  22527. }
  22528. _ACEOF
  22529. if ac_fn_c_try_compile "$LINENO"; then :
  22530. curl_sizeof_curl_socklen_t="$tst_size"
  22531. curl_pull_headers_socklen_t="$tst_pull_headers"
  22532. fi
  22533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22534. fi
  22535. done
  22536. done
  22537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
  22538. $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
  22539. if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
  22540. as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
  22541. fi
  22542. #
  22543. case $curl_pull_headers_socklen_t in
  22544. ws2tcpip)
  22545. cat >>confdefs.h <<_EOF
  22546. #define CURL_PULL_WS2TCPIP_H 1
  22547. _EOF
  22548. ;;
  22549. systypes)
  22550. cat >>confdefs.h <<_EOF
  22551. #define CURL_PULL_SYS_TYPES_H 1
  22552. _EOF
  22553. ;;
  22554. syssocket)
  22555. cat >>confdefs.h <<_EOF
  22556. #define CURL_PULL_SYS_TYPES_H 1
  22557. _EOF
  22558. cat >>confdefs.h <<_EOF
  22559. #define CURL_PULL_SYS_SOCKET_H 1
  22560. _EOF
  22561. ;;
  22562. esac
  22563. cat >>confdefs.h <<_EOF
  22564. #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
  22565. _EOF
  22566. cat >>confdefs.h <<_EOF
  22567. #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
  22568. _EOF
  22569. curl_includes_poll="\
  22570. /* includes start */
  22571. #ifdef HAVE_SYS_TYPES_H
  22572. # include <sys/types.h>
  22573. #endif
  22574. #ifdef HAVE_POLL_H
  22575. # include <poll.h>
  22576. #endif
  22577. #ifdef HAVE_SYS_POLL_H
  22578. # include <sys/poll.h>
  22579. #endif
  22580. /* includes end */"
  22581. for ac_header in sys/types.h poll.h sys/poll.h
  22582. do :
  22583. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22584. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
  22585. "
  22586. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22587. cat >>confdefs.h <<_ACEOF
  22588. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22589. _ACEOF
  22590. fi
  22591. done
  22592. #
  22593. tst_poll_events_macro_defined="unknown"
  22594. #
  22595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22596. /* end confdefs.h. */
  22597. $curl_includes_poll
  22598. int main (void)
  22599. {
  22600. #if defined(events) || defined(revents)
  22601. return 0;
  22602. #else
  22603. force compilation error
  22604. #endif
  22605. ;
  22606. return 0;
  22607. }
  22608. _ACEOF
  22609. if ac_fn_c_try_compile "$LINENO"; then :
  22610. tst_poll_events_macro_defined="yes"
  22611. else
  22612. tst_poll_events_macro_defined="no"
  22613. fi
  22614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22615. #
  22616. if test "$tst_poll_events_macro_defined" = "yes"; then
  22617. if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
  22618. cat >>confdefs.h <<_EOF
  22619. #define CURL_PULL_SYS_POLL_H 1
  22620. _EOF
  22621. fi
  22622. fi
  22623. #
  22624. ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
  22625. #undef inline
  22626. #ifdef HAVE_WINDOWS_H
  22627. #ifndef WIN32_LEAN_AND_MEAN
  22628. #define WIN32_LEAN_AND_MEAN
  22629. #endif
  22630. #include <windows.h>
  22631. #ifdef HAVE_WINSOCK2_H
  22632. #include <winsock2.h>
  22633. #else
  22634. #ifdef HAVE_WINSOCK_H
  22635. #include <winsock.h>
  22636. #endif
  22637. #endif
  22638. #else
  22639. #ifdef HAVE_SYS_TYPES_H
  22640. #include <sys/types.h>
  22641. #endif
  22642. #ifdef HAVE_SYS_SOCKET_H
  22643. #include <sys/socket.h>
  22644. #endif
  22645. #ifdef HAVE_NETINET_IN_H
  22646. #include <netinet/in.h>
  22647. #endif
  22648. #ifdef HAVE_ARPA_INET_H
  22649. #include <arpa/inet.h>
  22650. #endif
  22651. #endif
  22652. "
  22653. if test "x$ac_cv_type_in_addr_t" = xyes; then :
  22654. else
  22655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
  22656. $as_echo_n "checking for in_addr_t equivalent... " >&6; }
  22657. if ${curl_cv_in_addr_t_equiv+:} false; then :
  22658. $as_echo_n "(cached) " >&6
  22659. else
  22660. curl_cv_in_addr_t_equiv="unknown"
  22661. for t in "unsigned long" int size_t unsigned long; do
  22662. if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
  22663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22664. /* end confdefs.h. */
  22665. #undef inline
  22666. #ifdef HAVE_WINDOWS_H
  22667. #ifndef WIN32_LEAN_AND_MEAN
  22668. #define WIN32_LEAN_AND_MEAN
  22669. #endif
  22670. #include <windows.h>
  22671. #ifdef HAVE_WINSOCK2_H
  22672. #include <winsock2.h>
  22673. #else
  22674. #ifdef HAVE_WINSOCK_H
  22675. #include <winsock.h>
  22676. #endif
  22677. #endif
  22678. #else
  22679. #ifdef HAVE_SYS_TYPES_H
  22680. #include <sys/types.h>
  22681. #endif
  22682. #ifdef HAVE_SYS_SOCKET_H
  22683. #include <sys/socket.h>
  22684. #endif
  22685. #ifdef HAVE_NETINET_IN_H
  22686. #include <netinet/in.h>
  22687. #endif
  22688. #ifdef HAVE_ARPA_INET_H
  22689. #include <arpa/inet.h>
  22690. #endif
  22691. #endif
  22692. int main (void)
  22693. {
  22694. $t data = inet_addr ("1.2.3.4");
  22695. ;
  22696. return 0;
  22697. }
  22698. _ACEOF
  22699. if ac_fn_c_try_link "$LINENO"; then :
  22700. curl_cv_in_addr_t_equiv="$t"
  22701. fi
  22702. rm -f core conftest.err conftest.$ac_objext \
  22703. conftest$ac_exeext conftest.$ac_ext
  22704. fi
  22705. done
  22706. fi
  22707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
  22708. $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
  22709. case "$curl_cv_in_addr_t_equiv" in
  22710. unknown)
  22711. as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
  22712. ;;
  22713. *)
  22714. cat >>confdefs.h <<_ACEOF
  22715. #define in_addr_t $curl_cv_in_addr_t_equiv
  22716. _ACEOF
  22717. ;;
  22718. esac
  22719. fi
  22720. ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
  22721. #undef inline
  22722. #ifdef HAVE_WINDOWS_H
  22723. #ifndef WIN32_LEAN_AND_MEAN
  22724. #define WIN32_LEAN_AND_MEAN
  22725. #endif
  22726. #include <windows.h>
  22727. #ifdef HAVE_WINSOCK2_H
  22728. #include <winsock2.h>
  22729. #endif
  22730. #else
  22731. #ifdef HAVE_SYS_TYPES_H
  22732. #include <sys/types.h>
  22733. #endif
  22734. #ifdef HAVE_SYS_SOCKET_H
  22735. #include <sys/socket.h>
  22736. #endif
  22737. #ifdef HAVE_NETINET_IN_H
  22738. #include <netinet/in.h>
  22739. #endif
  22740. #ifdef HAVE_ARPA_INET_H
  22741. #include <arpa/inet.h>
  22742. #endif
  22743. #endif
  22744. "
  22745. if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
  22746. $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
  22747. fi
  22748. for ac_header in signal.h
  22749. do :
  22750. ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  22751. if test "x$ac_cv_header_signal_h" = xyes; then :
  22752. cat >>confdefs.h <<_ACEOF
  22753. #define HAVE_SIGNAL_H 1
  22754. _ACEOF
  22755. fi
  22756. done
  22757. ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
  22758. #ifdef HAVE_SIGNAL_H
  22759. #include <signal.h>
  22760. #endif
  22761. "
  22762. if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
  22763. $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
  22764. fi
  22765. case "$ac_cv_type_sig_atomic_t" in
  22766. yes)
  22767. #
  22768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
  22769. $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
  22770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22771. /* end confdefs.h. */
  22772. #ifdef HAVE_SIGNAL_H
  22773. #include <signal.h>
  22774. #endif
  22775. int main (void)
  22776. {
  22777. static volatile sig_atomic_t dummy = 0;
  22778. ;
  22779. return 0;
  22780. }
  22781. _ACEOF
  22782. if ac_fn_c_try_link "$LINENO"; then :
  22783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22784. $as_echo "no" >&6; }
  22785. ac_cv_sig_atomic_t_volatile="no"
  22786. else
  22787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22788. $as_echo "yes" >&6; }
  22789. ac_cv_sig_atomic_t_volatile="yes"
  22790. fi
  22791. rm -f core conftest.err conftest.$ac_objext \
  22792. conftest$ac_exeext conftest.$ac_ext
  22793. #
  22794. if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
  22795. $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
  22796. fi
  22797. ;;
  22798. esac
  22799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  22800. $as_echo_n "checking return type of signal handlers... " >&6; }
  22801. if ${ac_cv_type_signal+:} false; then :
  22802. $as_echo_n "(cached) " >&6
  22803. else
  22804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22805. /* end confdefs.h. */
  22806. #include <sys/types.h>
  22807. #include <signal.h>
  22808. int main (void)
  22809. {
  22810. return *(signal (0, 0)) (0) == 1;
  22811. ;
  22812. return 0;
  22813. }
  22814. _ACEOF
  22815. if ac_fn_c_try_compile "$LINENO"; then :
  22816. ac_cv_type_signal=int
  22817. else
  22818. ac_cv_type_signal=void
  22819. fi
  22820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22821. fi
  22822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  22823. $as_echo "$ac_cv_type_signal" >&6; }
  22824. cat >>confdefs.h <<_ACEOF
  22825. #define RETSIGTYPE $ac_cv_type_signal
  22826. _ACEOF
  22827. for ac_header in sys/select.h sys/socket.h
  22828. do :
  22829. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22830. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  22831. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22832. cat >>confdefs.h <<_ACEOF
  22833. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22834. _ACEOF
  22835. fi
  22836. done
  22837. #
  22838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
  22839. $as_echo_n "checking for select... " >&6; }
  22840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22841. /* end confdefs.h. */
  22842. #undef inline
  22843. #ifdef HAVE_WINDOWS_H
  22844. #ifndef WIN32_LEAN_AND_MEAN
  22845. #define WIN32_LEAN_AND_MEAN
  22846. #endif
  22847. #include <windows.h>
  22848. #ifdef HAVE_WINSOCK2_H
  22849. #include <winsock2.h>
  22850. #else
  22851. #ifdef HAVE_WINSOCK_H
  22852. #include <winsock.h>
  22853. #endif
  22854. #endif
  22855. #endif
  22856. #ifdef HAVE_SYS_TYPES_H
  22857. #include <sys/types.h>
  22858. #endif
  22859. #ifdef HAVE_SYS_TIME_H
  22860. #include <sys/time.h>
  22861. #ifdef TIME_WITH_SYS_TIME
  22862. #include <time.h>
  22863. #endif
  22864. #else
  22865. #ifdef HAVE_TIME_H
  22866. #include <time.h>
  22867. #endif
  22868. #endif
  22869. #ifndef HAVE_WINDOWS_H
  22870. #ifdef HAVE_SYS_SELECT_H
  22871. #include <sys/select.h>
  22872. #endif
  22873. #ifdef HAVE_SYS_SOCKET_H
  22874. #include <sys/socket.h>
  22875. #endif
  22876. #endif
  22877. int main (void)
  22878. {
  22879. select(0, 0, 0, 0, 0);
  22880. ;
  22881. return 0;
  22882. }
  22883. _ACEOF
  22884. if ac_fn_c_try_link "$LINENO"; then :
  22885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22886. $as_echo "yes" >&6; }
  22887. curl_cv_select="yes"
  22888. else
  22889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22890. $as_echo "no" >&6; }
  22891. curl_cv_select="no"
  22892. fi
  22893. rm -f core conftest.err conftest.$ac_objext \
  22894. conftest$ac_exeext conftest.$ac_ext
  22895. #
  22896. if test "$curl_cv_select" = "yes"; then
  22897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
  22898. $as_echo_n "checking types of args and return type for select... " >&6; }
  22899. if ${curl_cv_func_select_args+:} false; then :
  22900. $as_echo_n "(cached) " >&6
  22901. else
  22902. curl_cv_func_select_args="unknown"
  22903. for sel_retv in 'int' 'ssize_t'; do
  22904. for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
  22905. for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
  22906. for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
  22907. if test "$curl_cv_func_select_args" = "unknown"; then
  22908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22909. /* end confdefs.h. */
  22910. #undef inline
  22911. #ifdef HAVE_WINDOWS_H
  22912. #ifndef WIN32_LEAN_AND_MEAN
  22913. #define WIN32_LEAN_AND_MEAN
  22914. #endif
  22915. #include <windows.h>
  22916. #ifdef HAVE_WINSOCK2_H
  22917. #include <winsock2.h>
  22918. #else
  22919. #ifdef HAVE_WINSOCK_H
  22920. #include <winsock.h>
  22921. #endif
  22922. #endif
  22923. #define SELECTCALLCONV PASCAL
  22924. #endif
  22925. #ifdef HAVE_SYS_TYPES_H
  22926. #include <sys/types.h>
  22927. #endif
  22928. #ifdef HAVE_SYS_TIME_H
  22929. #include <sys/time.h>
  22930. #ifdef TIME_WITH_SYS_TIME
  22931. #include <time.h>
  22932. #endif
  22933. #else
  22934. #ifdef HAVE_TIME_H
  22935. #include <time.h>
  22936. #endif
  22937. #endif
  22938. #ifndef HAVE_WINDOWS_H
  22939. #ifdef HAVE_SYS_SELECT_H
  22940. #include <sys/select.h>
  22941. #endif
  22942. #ifdef HAVE_SYS_SOCKET_H
  22943. #include <sys/socket.h>
  22944. #endif
  22945. #define SELECTCALLCONV
  22946. #endif
  22947. #ifndef HAVE_STRUCT_TIMEVAL
  22948. struct timeval {
  22949. long tv_sec;
  22950. long tv_usec;
  22951. };
  22952. #endif
  22953. extern $sel_retv SELECTCALLCONV select($sel_arg1,
  22954. $sel_arg234,
  22955. $sel_arg234,
  22956. $sel_arg234,
  22957. $sel_arg5);
  22958. int main (void)
  22959. {
  22960. $sel_arg1 nfds=0;
  22961. $sel_arg234 rfds=0;
  22962. $sel_arg234 wfds=0;
  22963. $sel_arg234 efds=0;
  22964. $sel_retv res = select(nfds, rfds, wfds, efds, 0);
  22965. ;
  22966. return 0;
  22967. }
  22968. _ACEOF
  22969. if ac_fn_c_try_compile "$LINENO"; then :
  22970. curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
  22971. fi
  22972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22973. fi
  22974. done
  22975. done
  22976. done
  22977. done
  22978. fi
  22979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
  22980. $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
  22981. if test "$curl_cv_func_select_args" = "unknown"; then
  22982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
  22983. $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
  22984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
  22985. $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
  22986. else
  22987. select_prev_IFS=$IFS; IFS=','
  22988. set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
  22989. IFS=$select_prev_IFS
  22990. shift
  22991. #
  22992. sel_qual_type_arg5=$3
  22993. #
  22994. cat >>confdefs.h <<_ACEOF
  22995. #define SELECT_TYPE_ARG1 $1
  22996. _ACEOF
  22997. cat >>confdefs.h <<_ACEOF
  22998. #define SELECT_TYPE_ARG234 $2
  22999. _ACEOF
  23000. cat >>confdefs.h <<_ACEOF
  23001. #define SELECT_TYPE_RETV $4
  23002. _ACEOF
  23003. #
  23004. prev_sh_opts=$-
  23005. #
  23006. case $prev_sh_opts in
  23007. *f*)
  23008. ;;
  23009. *)
  23010. set -f
  23011. ;;
  23012. esac
  23013. #
  23014. case "$sel_qual_type_arg5" in
  23015. const*)
  23016. sel_qual_arg5=const
  23017. sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
  23018. ;;
  23019. *)
  23020. sel_qual_arg5=
  23021. sel_type_arg5=$sel_qual_type_arg5
  23022. ;;
  23023. esac
  23024. #
  23025. cat >>confdefs.h <<_ACEOF
  23026. #define SELECT_QUAL_ARG5 $sel_qual_arg5
  23027. _ACEOF
  23028. cat >>confdefs.h <<_ACEOF
  23029. #define SELECT_TYPE_ARG5 $sel_type_arg5
  23030. _ACEOF
  23031. #
  23032. case $prev_sh_opts in
  23033. *f*)
  23034. ;;
  23035. *)
  23036. set +f
  23037. ;;
  23038. esac
  23039. #
  23040. cat >>confdefs.h <<_ACEOF
  23041. #define HAVE_SELECT 1
  23042. _ACEOF
  23043. ac_cv_func_select="yes"
  23044. fi
  23045. fi
  23046. for ac_header in sys/types.h sys/socket.h
  23047. do :
  23048. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23049. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  23050. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23051. cat >>confdefs.h <<_ACEOF
  23052. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23053. _ACEOF
  23054. fi
  23055. done
  23056. #
  23057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
  23058. $as_echo_n "checking for recv... " >&6; }
  23059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23060. /* end confdefs.h. */
  23061. #undef inline
  23062. #ifdef HAVE_WINDOWS_H
  23063. #ifndef WIN32_LEAN_AND_MEAN
  23064. #define WIN32_LEAN_AND_MEAN
  23065. #endif
  23066. #include <windows.h>
  23067. #ifdef HAVE_WINSOCK2_H
  23068. #include <winsock2.h>
  23069. #else
  23070. #ifdef HAVE_WINSOCK_H
  23071. #include <winsock.h>
  23072. #endif
  23073. #endif
  23074. #else
  23075. #ifdef HAVE_SYS_TYPES_H
  23076. #include <sys/types.h>
  23077. #endif
  23078. #ifdef HAVE_SYS_SOCKET_H
  23079. #include <sys/socket.h>
  23080. #endif
  23081. #endif
  23082. int main (void)
  23083. {
  23084. recv(0, 0, 0, 0);
  23085. ;
  23086. return 0;
  23087. }
  23088. _ACEOF
  23089. if ac_fn_c_try_link "$LINENO"; then :
  23090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23091. $as_echo "yes" >&6; }
  23092. curl_cv_recv="yes"
  23093. else
  23094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23095. $as_echo "no" >&6; }
  23096. curl_cv_recv="no"
  23097. fi
  23098. rm -f core conftest.err conftest.$ac_objext \
  23099. conftest$ac_exeext conftest.$ac_ext
  23100. #
  23101. if test "$curl_cv_recv" = "yes"; then
  23102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
  23103. $as_echo_n "checking types of args and return type for recv... " >&6; }
  23104. if ${curl_cv_func_recv_args+:} false; then :
  23105. $as_echo_n "(cached) " >&6
  23106. else
  23107. curl_cv_func_recv_args="unknown"
  23108. for recv_retv in 'int' 'ssize_t'; do
  23109. for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  23110. for recv_arg2 in 'char *' 'void *'; do
  23111. for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  23112. for recv_arg4 in 'int' 'unsigned int'; do
  23113. if test "$curl_cv_func_recv_args" = "unknown"; then
  23114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23115. /* end confdefs.h. */
  23116. #undef inline
  23117. #ifdef HAVE_WINDOWS_H
  23118. #ifndef WIN32_LEAN_AND_MEAN
  23119. #define WIN32_LEAN_AND_MEAN
  23120. #endif
  23121. #include <windows.h>
  23122. #ifdef HAVE_WINSOCK2_H
  23123. #include <winsock2.h>
  23124. #else
  23125. #ifdef HAVE_WINSOCK_H
  23126. #include <winsock.h>
  23127. #endif
  23128. #endif
  23129. #define RECVCALLCONV PASCAL
  23130. #else
  23131. #ifdef HAVE_SYS_TYPES_H
  23132. #include <sys/types.h>
  23133. #endif
  23134. #ifdef HAVE_SYS_SOCKET_H
  23135. #include <sys/socket.h>
  23136. #endif
  23137. #define RECVCALLCONV
  23138. #endif
  23139. extern $recv_retv RECVCALLCONV
  23140. recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
  23141. int main (void)
  23142. {
  23143. $recv_arg1 s=0;
  23144. $recv_arg2 buf=0;
  23145. $recv_arg3 len=0;
  23146. $recv_arg4 flags=0;
  23147. $recv_retv res = recv(s, buf, len, flags);
  23148. ;
  23149. return 0;
  23150. }
  23151. _ACEOF
  23152. if ac_fn_c_try_compile "$LINENO"; then :
  23153. curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
  23154. fi
  23155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23156. fi
  23157. done
  23158. done
  23159. done
  23160. done
  23161. done
  23162. fi
  23163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
  23164. $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
  23165. if test "$curl_cv_func_recv_args" = "unknown"; then
  23166. as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
  23167. else
  23168. recv_prev_IFS=$IFS; IFS=','
  23169. set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
  23170. IFS=$recv_prev_IFS
  23171. shift
  23172. #
  23173. cat >>confdefs.h <<_ACEOF
  23174. #define RECV_TYPE_ARG1 $1
  23175. _ACEOF
  23176. cat >>confdefs.h <<_ACEOF
  23177. #define RECV_TYPE_ARG2 $2
  23178. _ACEOF
  23179. cat >>confdefs.h <<_ACEOF
  23180. #define RECV_TYPE_ARG3 $3
  23181. _ACEOF
  23182. cat >>confdefs.h <<_ACEOF
  23183. #define RECV_TYPE_ARG4 $4
  23184. _ACEOF
  23185. cat >>confdefs.h <<_ACEOF
  23186. #define RECV_TYPE_RETV $5
  23187. _ACEOF
  23188. #
  23189. cat >>confdefs.h <<_ACEOF
  23190. #define HAVE_RECV 1
  23191. _ACEOF
  23192. ac_cv_func_recv="yes"
  23193. fi
  23194. else
  23195. as_fn_error $? "Unable to link function recv" "$LINENO" 5
  23196. fi
  23197. for ac_header in sys/types.h sys/socket.h
  23198. do :
  23199. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23200. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  23201. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23202. cat >>confdefs.h <<_ACEOF
  23203. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23204. _ACEOF
  23205. fi
  23206. done
  23207. #
  23208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
  23209. $as_echo_n "checking for send... " >&6; }
  23210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23211. /* end confdefs.h. */
  23212. #undef inline
  23213. #ifdef HAVE_WINDOWS_H
  23214. #ifndef WIN32_LEAN_AND_MEAN
  23215. #define WIN32_LEAN_AND_MEAN
  23216. #endif
  23217. #include <windows.h>
  23218. #ifdef HAVE_WINSOCK2_H
  23219. #include <winsock2.h>
  23220. #else
  23221. #ifdef HAVE_WINSOCK_H
  23222. #include <winsock.h>
  23223. #endif
  23224. #endif
  23225. #else
  23226. #ifdef HAVE_SYS_TYPES_H
  23227. #include <sys/types.h>
  23228. #endif
  23229. #ifdef HAVE_SYS_SOCKET_H
  23230. #include <sys/socket.h>
  23231. #endif
  23232. #endif
  23233. int main (void)
  23234. {
  23235. send(0, 0, 0, 0);
  23236. ;
  23237. return 0;
  23238. }
  23239. _ACEOF
  23240. if ac_fn_c_try_link "$LINENO"; then :
  23241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23242. $as_echo "yes" >&6; }
  23243. curl_cv_send="yes"
  23244. else
  23245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23246. $as_echo "no" >&6; }
  23247. curl_cv_send="no"
  23248. fi
  23249. rm -f core conftest.err conftest.$ac_objext \
  23250. conftest$ac_exeext conftest.$ac_ext
  23251. #
  23252. if test "$curl_cv_send" = "yes"; then
  23253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
  23254. $as_echo_n "checking types of args and return type for send... " >&6; }
  23255. if ${curl_cv_func_send_args+:} false; then :
  23256. $as_echo_n "(cached) " >&6
  23257. else
  23258. curl_cv_func_send_args="unknown"
  23259. for send_retv in 'int' 'ssize_t'; do
  23260. for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  23261. for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
  23262. for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  23263. for send_arg4 in 'int' 'unsigned int'; do
  23264. if test "$curl_cv_func_send_args" = "unknown"; then
  23265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23266. /* end confdefs.h. */
  23267. #undef inline
  23268. #ifdef HAVE_WINDOWS_H
  23269. #ifndef WIN32_LEAN_AND_MEAN
  23270. #define WIN32_LEAN_AND_MEAN
  23271. #endif
  23272. #include <windows.h>
  23273. #ifdef HAVE_WINSOCK2_H
  23274. #include <winsock2.h>
  23275. #else
  23276. #ifdef HAVE_WINSOCK_H
  23277. #include <winsock.h>
  23278. #endif
  23279. #endif
  23280. #define SENDCALLCONV PASCAL
  23281. #else
  23282. #ifdef HAVE_SYS_TYPES_H
  23283. #include <sys/types.h>
  23284. #endif
  23285. #ifdef HAVE_SYS_SOCKET_H
  23286. #include <sys/socket.h>
  23287. #endif
  23288. #define SENDCALLCONV
  23289. #endif
  23290. extern $send_retv SENDCALLCONV
  23291. send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
  23292. int main (void)
  23293. {
  23294. $send_arg1 s=0;
  23295. $send_arg3 len=0;
  23296. $send_arg4 flags=0;
  23297. $send_retv res = send(s, 0, len, flags);
  23298. ;
  23299. return 0;
  23300. }
  23301. _ACEOF
  23302. if ac_fn_c_try_compile "$LINENO"; then :
  23303. curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
  23304. fi
  23305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23306. fi
  23307. done
  23308. done
  23309. done
  23310. done
  23311. done
  23312. fi
  23313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
  23314. $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
  23315. if test "$curl_cv_func_send_args" = "unknown"; then
  23316. as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
  23317. else
  23318. send_prev_IFS=$IFS; IFS=','
  23319. set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
  23320. IFS=$send_prev_IFS
  23321. shift
  23322. #
  23323. send_qual_type_arg2=$2
  23324. #
  23325. cat >>confdefs.h <<_ACEOF
  23326. #define SEND_TYPE_ARG1 $1
  23327. _ACEOF
  23328. cat >>confdefs.h <<_ACEOF
  23329. #define SEND_TYPE_ARG3 $3
  23330. _ACEOF
  23331. cat >>confdefs.h <<_ACEOF
  23332. #define SEND_TYPE_ARG4 $4
  23333. _ACEOF
  23334. cat >>confdefs.h <<_ACEOF
  23335. #define SEND_TYPE_RETV $5
  23336. _ACEOF
  23337. #
  23338. prev_sh_opts=$-
  23339. #
  23340. case $prev_sh_opts in
  23341. *f*)
  23342. ;;
  23343. *)
  23344. set -f
  23345. ;;
  23346. esac
  23347. #
  23348. case "$send_qual_type_arg2" in
  23349. const*)
  23350. send_qual_arg2=const
  23351. send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
  23352. ;;
  23353. *)
  23354. send_qual_arg2=
  23355. send_type_arg2=$send_qual_type_arg2
  23356. ;;
  23357. esac
  23358. #
  23359. cat >>confdefs.h <<_ACEOF
  23360. #define SEND_QUAL_ARG2 $send_qual_arg2
  23361. _ACEOF
  23362. cat >>confdefs.h <<_ACEOF
  23363. #define SEND_TYPE_ARG2 $send_type_arg2
  23364. _ACEOF
  23365. #
  23366. case $prev_sh_opts in
  23367. *f*)
  23368. ;;
  23369. *)
  23370. set +f
  23371. ;;
  23372. esac
  23373. #
  23374. cat >>confdefs.h <<_ACEOF
  23375. #define HAVE_SEND 1
  23376. _ACEOF
  23377. ac_cv_func_send="yes"
  23378. fi
  23379. else
  23380. as_fn_error $? "Unable to link function send" "$LINENO" 5
  23381. fi
  23382. for ac_header in sys/types.h sys/socket.h
  23383. do :
  23384. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23385. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  23386. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23387. cat >>confdefs.h <<_ACEOF
  23388. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23389. _ACEOF
  23390. fi
  23391. done
  23392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
  23393. $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
  23394. if ${ac_cv_msg_nosignal+:} false; then :
  23395. $as_echo_n "(cached) " >&6
  23396. else
  23397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23398. /* end confdefs.h. */
  23399. #undef inline
  23400. #ifdef HAVE_WINDOWS_H
  23401. #ifndef WIN32_LEAN_AND_MEAN
  23402. #define WIN32_LEAN_AND_MEAN
  23403. #endif
  23404. #include <windows.h>
  23405. #ifdef HAVE_WINSOCK2_H
  23406. #include <winsock2.h>
  23407. #else
  23408. #ifdef HAVE_WINSOCK_H
  23409. #include <winsock.h>
  23410. #endif
  23411. #endif
  23412. #else
  23413. #ifdef HAVE_SYS_TYPES_H
  23414. #include <sys/types.h>
  23415. #endif
  23416. #ifdef HAVE_SYS_SOCKET_H
  23417. #include <sys/socket.h>
  23418. #endif
  23419. #endif
  23420. int main (void)
  23421. {
  23422. int flag=MSG_NOSIGNAL;
  23423. ;
  23424. return 0;
  23425. }
  23426. _ACEOF
  23427. if ac_fn_c_try_compile "$LINENO"; then :
  23428. ac_cv_msg_nosignal="yes"
  23429. else
  23430. ac_cv_msg_nosignal="no"
  23431. fi
  23432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23433. fi
  23434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
  23435. $as_echo "$ac_cv_msg_nosignal" >&6; }
  23436. case "$ac_cv_msg_nosignal" in
  23437. yes)
  23438. cat >>confdefs.h <<_ACEOF
  23439. #define HAVE_MSG_NOSIGNAL 1
  23440. _ACEOF
  23441. ;;
  23442. esac
  23443. curl_includes_unistd="\
  23444. /* includes start */
  23445. #ifdef HAVE_SYS_TYPES_H
  23446. # include <sys/types.h>
  23447. #endif
  23448. #ifdef HAVE_UNISTD_H
  23449. # include <unistd.h>
  23450. #endif
  23451. /* includes end */"
  23452. for ac_header in sys/types.h unistd.h
  23453. do :
  23454. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23455. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
  23456. "
  23457. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23458. cat >>confdefs.h <<_ACEOF
  23459. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23460. _ACEOF
  23461. fi
  23462. done
  23463. #
  23464. tst_links_alarm="unknown"
  23465. tst_proto_alarm="unknown"
  23466. tst_compi_alarm="unknown"
  23467. tst_allow_alarm="unknown"
  23468. #
  23469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
  23470. $as_echo_n "checking if alarm can be linked... " >&6; }
  23471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23472. /* end confdefs.h. */
  23473. #define alarm innocuous_alarm
  23474. #ifdef __STDC__
  23475. # include <limits.h>
  23476. #else
  23477. # include <assert.h>
  23478. #endif
  23479. #undef alarm
  23480. #ifdef __cplusplus
  23481. extern "C"
  23482. #endif
  23483. char alarm ();
  23484. #if defined __stub_alarm || defined __stub___alarm
  23485. choke me
  23486. #endif
  23487. int main (void)
  23488. {
  23489. return alarm ();
  23490. ;
  23491. return 0;
  23492. }
  23493. _ACEOF
  23494. if ac_fn_c_try_link "$LINENO"; then :
  23495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23496. $as_echo "yes" >&6; }
  23497. tst_links_alarm="yes"
  23498. else
  23499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23500. $as_echo "no" >&6; }
  23501. tst_links_alarm="no"
  23502. fi
  23503. rm -f core conftest.err conftest.$ac_objext \
  23504. conftest$ac_exeext conftest.$ac_ext
  23505. #
  23506. if test "$tst_links_alarm" = "yes"; then
  23507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
  23508. $as_echo_n "checking if alarm is prototyped... " >&6; }
  23509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23510. /* end confdefs.h. */
  23511. $curl_includes_unistd
  23512. _ACEOF
  23513. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23514. $EGREP "alarm" >/dev/null 2>&1; then :
  23515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23516. $as_echo "yes" >&6; }
  23517. tst_proto_alarm="yes"
  23518. else
  23519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23520. $as_echo "no" >&6; }
  23521. tst_proto_alarm="no"
  23522. fi
  23523. rm -f conftest*
  23524. fi
  23525. #
  23526. if test "$tst_proto_alarm" = "yes"; then
  23527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
  23528. $as_echo_n "checking if alarm is compilable... " >&6; }
  23529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23530. /* end confdefs.h. */
  23531. $curl_includes_unistd
  23532. int main (void)
  23533. {
  23534. if(0 != alarm(0))
  23535. return 1;
  23536. ;
  23537. return 0;
  23538. }
  23539. _ACEOF
  23540. if ac_fn_c_try_compile "$LINENO"; then :
  23541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23542. $as_echo "yes" >&6; }
  23543. tst_compi_alarm="yes"
  23544. else
  23545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23546. $as_echo "no" >&6; }
  23547. tst_compi_alarm="no"
  23548. fi
  23549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23550. fi
  23551. #
  23552. if test "$tst_compi_alarm" = "yes"; then
  23553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
  23554. $as_echo_n "checking if alarm usage allowed... " >&6; }
  23555. if test "x$curl_disallow_alarm" != "xyes"; then
  23556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23557. $as_echo "yes" >&6; }
  23558. tst_allow_alarm="yes"
  23559. else
  23560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23561. $as_echo "no" >&6; }
  23562. tst_allow_alarm="no"
  23563. fi
  23564. fi
  23565. #
  23566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
  23567. $as_echo_n "checking if alarm might be used... " >&6; }
  23568. if test "$tst_links_alarm" = "yes" &&
  23569. test "$tst_proto_alarm" = "yes" &&
  23570. test "$tst_compi_alarm" = "yes" &&
  23571. test "$tst_allow_alarm" = "yes"; then
  23572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23573. $as_echo "yes" >&6; }
  23574. cat >>confdefs.h <<_ACEOF
  23575. #define HAVE_ALARM 1
  23576. _ACEOF
  23577. ac_cv_func_alarm="yes"
  23578. else
  23579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23580. $as_echo "no" >&6; }
  23581. ac_cv_func_alarm="no"
  23582. fi
  23583. curl_includes_string="\
  23584. /* includes start */
  23585. #ifdef HAVE_SYS_TYPES_H
  23586. # include <sys/types.h>
  23587. #endif
  23588. #ifdef HAVE_STRING_H
  23589. # include <string.h>
  23590. #endif
  23591. #ifdef HAVE_STRINGS_H
  23592. # include <strings.h>
  23593. #endif
  23594. /* includes end */"
  23595. for ac_header in sys/types.h string.h strings.h
  23596. do :
  23597. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23598. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
  23599. "
  23600. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23601. cat >>confdefs.h <<_ACEOF
  23602. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23603. _ACEOF
  23604. fi
  23605. done
  23606. curl_includes_libgen="\
  23607. /* includes start */
  23608. #ifdef HAVE_SYS_TYPES_H
  23609. # include <sys/types.h>
  23610. #endif
  23611. #ifdef HAVE_LIBGEN_H
  23612. # include <libgen.h>
  23613. #endif
  23614. /* includes end */"
  23615. for ac_header in sys/types.h libgen.h
  23616. do :
  23617. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23618. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
  23619. "
  23620. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23621. cat >>confdefs.h <<_ACEOF
  23622. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23623. _ACEOF
  23624. fi
  23625. done
  23626. #
  23627. tst_links_basename="unknown"
  23628. tst_proto_basename="unknown"
  23629. tst_compi_basename="unknown"
  23630. tst_allow_basename="unknown"
  23631. #
  23632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
  23633. $as_echo_n "checking if basename can be linked... " >&6; }
  23634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23635. /* end confdefs.h. */
  23636. #define basename innocuous_basename
  23637. #ifdef __STDC__
  23638. # include <limits.h>
  23639. #else
  23640. # include <assert.h>
  23641. #endif
  23642. #undef basename
  23643. #ifdef __cplusplus
  23644. extern "C"
  23645. #endif
  23646. char basename ();
  23647. #if defined __stub_basename || defined __stub___basename
  23648. choke me
  23649. #endif
  23650. int main (void)
  23651. {
  23652. return basename ();
  23653. ;
  23654. return 0;
  23655. }
  23656. _ACEOF
  23657. if ac_fn_c_try_link "$LINENO"; then :
  23658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23659. $as_echo "yes" >&6; }
  23660. tst_links_basename="yes"
  23661. else
  23662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23663. $as_echo "no" >&6; }
  23664. tst_links_basename="no"
  23665. fi
  23666. rm -f core conftest.err conftest.$ac_objext \
  23667. conftest$ac_exeext conftest.$ac_ext
  23668. #
  23669. if test "$tst_links_basename" = "yes"; then
  23670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
  23671. $as_echo_n "checking if basename is prototyped... " >&6; }
  23672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23673. /* end confdefs.h. */
  23674. $curl_includes_string
  23675. $curl_includes_libgen
  23676. $curl_includes_unistd
  23677. _ACEOF
  23678. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23679. $EGREP "basename" >/dev/null 2>&1; then :
  23680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23681. $as_echo "yes" >&6; }
  23682. tst_proto_basename="yes"
  23683. else
  23684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23685. $as_echo "no" >&6; }
  23686. tst_proto_basename="no"
  23687. fi
  23688. rm -f conftest*
  23689. fi
  23690. #
  23691. if test "$tst_proto_basename" = "yes"; then
  23692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
  23693. $as_echo_n "checking if basename is compilable... " >&6; }
  23694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23695. /* end confdefs.h. */
  23696. $curl_includes_string
  23697. $curl_includes_libgen
  23698. $curl_includes_unistd
  23699. int main (void)
  23700. {
  23701. if(0 != basename(0))
  23702. return 1;
  23703. ;
  23704. return 0;
  23705. }
  23706. _ACEOF
  23707. if ac_fn_c_try_compile "$LINENO"; then :
  23708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23709. $as_echo "yes" >&6; }
  23710. tst_compi_basename="yes"
  23711. else
  23712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23713. $as_echo "no" >&6; }
  23714. tst_compi_basename="no"
  23715. fi
  23716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23717. fi
  23718. #
  23719. if test "$tst_compi_basename" = "yes"; then
  23720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
  23721. $as_echo_n "checking if basename usage allowed... " >&6; }
  23722. if test "x$curl_disallow_basename" != "xyes"; then
  23723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23724. $as_echo "yes" >&6; }
  23725. tst_allow_basename="yes"
  23726. else
  23727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23728. $as_echo "no" >&6; }
  23729. tst_allow_basename="no"
  23730. fi
  23731. fi
  23732. #
  23733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
  23734. $as_echo_n "checking if basename might be used... " >&6; }
  23735. if test "$tst_links_basename" = "yes" &&
  23736. test "$tst_proto_basename" = "yes" &&
  23737. test "$tst_compi_basename" = "yes" &&
  23738. test "$tst_allow_basename" = "yes"; then
  23739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23740. $as_echo "yes" >&6; }
  23741. cat >>confdefs.h <<_ACEOF
  23742. #define HAVE_BASENAME 1
  23743. _ACEOF
  23744. ac_cv_func_basename="yes"
  23745. else
  23746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23747. $as_echo "no" >&6; }
  23748. ac_cv_func_basename="no"
  23749. fi
  23750. curl_includes_socket="\
  23751. /* includes start */
  23752. #ifdef HAVE_SYS_TYPES_H
  23753. # include <sys/types.h>
  23754. #endif
  23755. #ifdef HAVE_SOCKET_H
  23756. # include <socket.h>
  23757. #endif
  23758. /* includes end */"
  23759. for ac_header in sys/types.h socket.h
  23760. do :
  23761. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23762. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
  23763. "
  23764. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23765. cat >>confdefs.h <<_ACEOF
  23766. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23767. _ACEOF
  23768. fi
  23769. done
  23770. #
  23771. tst_links_closesocket="unknown"
  23772. tst_proto_closesocket="unknown"
  23773. tst_compi_closesocket="unknown"
  23774. tst_allow_closesocket="unknown"
  23775. #
  23776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
  23777. $as_echo_n "checking if closesocket can be linked... " >&6; }
  23778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23779. /* end confdefs.h. */
  23780. $curl_includes_winsock2
  23781. $curl_includes_socket
  23782. int main (void)
  23783. {
  23784. if(0 != closesocket(0))
  23785. return 1;
  23786. ;
  23787. return 0;
  23788. }
  23789. _ACEOF
  23790. if ac_fn_c_try_link "$LINENO"; then :
  23791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23792. $as_echo "yes" >&6; }
  23793. tst_links_closesocket="yes"
  23794. else
  23795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23796. $as_echo "no" >&6; }
  23797. tst_links_closesocket="no"
  23798. fi
  23799. rm -f core conftest.err conftest.$ac_objext \
  23800. conftest$ac_exeext conftest.$ac_ext
  23801. #
  23802. if test "$tst_links_closesocket" = "yes"; then
  23803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
  23804. $as_echo_n "checking if closesocket is prototyped... " >&6; }
  23805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23806. /* end confdefs.h. */
  23807. $curl_includes_winsock2
  23808. $curl_includes_socket
  23809. _ACEOF
  23810. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23811. $EGREP "closesocket" >/dev/null 2>&1; then :
  23812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23813. $as_echo "yes" >&6; }
  23814. tst_proto_closesocket="yes"
  23815. else
  23816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23817. $as_echo "no" >&6; }
  23818. tst_proto_closesocket="no"
  23819. fi
  23820. rm -f conftest*
  23821. fi
  23822. #
  23823. if test "$tst_proto_closesocket" = "yes"; then
  23824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
  23825. $as_echo_n "checking if closesocket is compilable... " >&6; }
  23826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23827. /* end confdefs.h. */
  23828. $curl_includes_winsock2
  23829. $curl_includes_socket
  23830. int main (void)
  23831. {
  23832. if(0 != closesocket(0))
  23833. return 1;
  23834. ;
  23835. return 0;
  23836. }
  23837. _ACEOF
  23838. if ac_fn_c_try_compile "$LINENO"; then :
  23839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23840. $as_echo "yes" >&6; }
  23841. tst_compi_closesocket="yes"
  23842. else
  23843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23844. $as_echo "no" >&6; }
  23845. tst_compi_closesocket="no"
  23846. fi
  23847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23848. fi
  23849. #
  23850. if test "$tst_compi_closesocket" = "yes"; then
  23851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
  23852. $as_echo_n "checking if closesocket usage allowed... " >&6; }
  23853. if test "x$curl_disallow_closesocket" != "xyes"; then
  23854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23855. $as_echo "yes" >&6; }
  23856. tst_allow_closesocket="yes"
  23857. else
  23858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23859. $as_echo "no" >&6; }
  23860. tst_allow_closesocket="no"
  23861. fi
  23862. fi
  23863. #
  23864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
  23865. $as_echo_n "checking if closesocket might be used... " >&6; }
  23866. if test "$tst_links_closesocket" = "yes" &&
  23867. test "$tst_proto_closesocket" = "yes" &&
  23868. test "$tst_compi_closesocket" = "yes" &&
  23869. test "$tst_allow_closesocket" = "yes"; then
  23870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23871. $as_echo "yes" >&6; }
  23872. cat >>confdefs.h <<_ACEOF
  23873. #define HAVE_CLOSESOCKET 1
  23874. _ACEOF
  23875. ac_cv_func_closesocket="yes"
  23876. else
  23877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23878. $as_echo "no" >&6; }
  23879. ac_cv_func_closesocket="no"
  23880. fi
  23881. #
  23882. tst_links_closesocket_camel="unknown"
  23883. tst_proto_closesocket_camel="unknown"
  23884. tst_compi_closesocket_camel="unknown"
  23885. tst_allow_closesocket_camel="unknown"
  23886. #
  23887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
  23888. $as_echo_n "checking if CloseSocket can be linked... " >&6; }
  23889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23890. /* end confdefs.h. */
  23891. $curl_includes_sys_socket
  23892. int main (void)
  23893. {
  23894. if(0 != CloseSocket(0))
  23895. return 1;
  23896. ;
  23897. return 0;
  23898. }
  23899. _ACEOF
  23900. if ac_fn_c_try_link "$LINENO"; then :
  23901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23902. $as_echo "yes" >&6; }
  23903. tst_links_closesocket_camel="yes"
  23904. else
  23905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23906. $as_echo "no" >&6; }
  23907. tst_links_closesocket_camel="no"
  23908. fi
  23909. rm -f core conftest.err conftest.$ac_objext \
  23910. conftest$ac_exeext conftest.$ac_ext
  23911. #
  23912. if test "$tst_links_closesocket_camel" = "yes"; then
  23913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
  23914. $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
  23915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23916. /* end confdefs.h. */
  23917. $curl_includes_sys_socket
  23918. _ACEOF
  23919. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23920. $EGREP "CloseSocket" >/dev/null 2>&1; then :
  23921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23922. $as_echo "yes" >&6; }
  23923. tst_proto_closesocket_camel="yes"
  23924. else
  23925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23926. $as_echo "no" >&6; }
  23927. tst_proto_closesocket_camel="no"
  23928. fi
  23929. rm -f conftest*
  23930. fi
  23931. #
  23932. if test "$tst_proto_closesocket_camel" = "yes"; then
  23933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
  23934. $as_echo_n "checking if CloseSocket is compilable... " >&6; }
  23935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23936. /* end confdefs.h. */
  23937. $curl_includes_sys_socket
  23938. int main (void)
  23939. {
  23940. if(0 != CloseSocket(0))
  23941. return 1;
  23942. ;
  23943. return 0;
  23944. }
  23945. _ACEOF
  23946. if ac_fn_c_try_compile "$LINENO"; then :
  23947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23948. $as_echo "yes" >&6; }
  23949. tst_compi_closesocket_camel="yes"
  23950. else
  23951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23952. $as_echo "no" >&6; }
  23953. tst_compi_closesocket_camel="no"
  23954. fi
  23955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23956. fi
  23957. #
  23958. if test "$tst_compi_closesocket_camel" = "yes"; then
  23959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
  23960. $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
  23961. if test "x$curl_disallow_closesocket_camel" != "xyes"; then
  23962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23963. $as_echo "yes" >&6; }
  23964. tst_allow_closesocket_camel="yes"
  23965. else
  23966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23967. $as_echo "no" >&6; }
  23968. tst_allow_closesocket_camel="no"
  23969. fi
  23970. fi
  23971. #
  23972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
  23973. $as_echo_n "checking if CloseSocket might be used... " >&6; }
  23974. if test "$tst_links_closesocket_camel" = "yes" &&
  23975. test "$tst_proto_closesocket_camel" = "yes" &&
  23976. test "$tst_compi_closesocket_camel" = "yes" &&
  23977. test "$tst_allow_closesocket_camel" = "yes"; then
  23978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23979. $as_echo "yes" >&6; }
  23980. cat >>confdefs.h <<_ACEOF
  23981. #define HAVE_CLOSESOCKET_CAMEL 1
  23982. _ACEOF
  23983. ac_cv_func_closesocket_camel="yes"
  23984. else
  23985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23986. $as_echo "no" >&6; }
  23987. ac_cv_func_closesocket_camel="no"
  23988. fi
  23989. #
  23990. tst_links_connect="unknown"
  23991. tst_proto_connect="unknown"
  23992. tst_compi_connect="unknown"
  23993. tst_allow_connect="unknown"
  23994. #
  23995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
  23996. $as_echo_n "checking if connect can be linked... " >&6; }
  23997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23998. /* end confdefs.h. */
  23999. $curl_includes_winsock2
  24000. $curl_includes_sys_socket
  24001. $curl_includes_socket
  24002. int main (void)
  24003. {
  24004. if(0 != connect(0, 0, 0))
  24005. return 1;
  24006. ;
  24007. return 0;
  24008. }
  24009. _ACEOF
  24010. if ac_fn_c_try_link "$LINENO"; then :
  24011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24012. $as_echo "yes" >&6; }
  24013. tst_links_connect="yes"
  24014. else
  24015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24016. $as_echo "no" >&6; }
  24017. tst_links_connect="no"
  24018. fi
  24019. rm -f core conftest.err conftest.$ac_objext \
  24020. conftest$ac_exeext conftest.$ac_ext
  24021. #
  24022. if test "$tst_links_connect" = "yes"; then
  24023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
  24024. $as_echo_n "checking if connect is prototyped... " >&6; }
  24025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24026. /* end confdefs.h. */
  24027. $curl_includes_winsock2
  24028. $curl_includes_sys_socket
  24029. $curl_includes_socket
  24030. _ACEOF
  24031. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24032. $EGREP "connect" >/dev/null 2>&1; then :
  24033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24034. $as_echo "yes" >&6; }
  24035. tst_proto_connect="yes"
  24036. else
  24037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24038. $as_echo "no" >&6; }
  24039. tst_proto_connect="no"
  24040. fi
  24041. rm -f conftest*
  24042. fi
  24043. #
  24044. if test "$tst_proto_connect" = "yes"; then
  24045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
  24046. $as_echo_n "checking if connect is compilable... " >&6; }
  24047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24048. /* end confdefs.h. */
  24049. $curl_includes_winsock2
  24050. $curl_includes_sys_socket
  24051. $curl_includes_socket
  24052. int main (void)
  24053. {
  24054. if(0 != connect(0, 0, 0))
  24055. return 1;
  24056. ;
  24057. return 0;
  24058. }
  24059. _ACEOF
  24060. if ac_fn_c_try_compile "$LINENO"; then :
  24061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24062. $as_echo "yes" >&6; }
  24063. tst_compi_connect="yes"
  24064. else
  24065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24066. $as_echo "no" >&6; }
  24067. tst_compi_connect="no"
  24068. fi
  24069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24070. fi
  24071. #
  24072. if test "$tst_compi_connect" = "yes"; then
  24073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
  24074. $as_echo_n "checking if connect usage allowed... " >&6; }
  24075. if test "x$curl_disallow_connect" != "xyes"; then
  24076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24077. $as_echo "yes" >&6; }
  24078. tst_allow_connect="yes"
  24079. else
  24080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24081. $as_echo "no" >&6; }
  24082. tst_allow_connect="no"
  24083. fi
  24084. fi
  24085. #
  24086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
  24087. $as_echo_n "checking if connect might be used... " >&6; }
  24088. if test "$tst_links_connect" = "yes" &&
  24089. test "$tst_proto_connect" = "yes" &&
  24090. test "$tst_compi_connect" = "yes" &&
  24091. test "$tst_allow_connect" = "yes"; then
  24092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24093. $as_echo "yes" >&6; }
  24094. cat >>confdefs.h <<_ACEOF
  24095. #define HAVE_CONNECT 1
  24096. _ACEOF
  24097. ac_cv_func_connect="yes"
  24098. else
  24099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24100. $as_echo "no" >&6; }
  24101. ac_cv_func_connect="no"
  24102. fi
  24103. curl_includes_fcntl="\
  24104. /* includes start */
  24105. #ifdef HAVE_SYS_TYPES_H
  24106. # include <sys/types.h>
  24107. #endif
  24108. #ifdef HAVE_UNISTD_H
  24109. # include <unistd.h>
  24110. #endif
  24111. #ifdef HAVE_FCNTL_H
  24112. # include <fcntl.h>
  24113. #endif
  24114. /* includes end */"
  24115. for ac_header in sys/types.h unistd.h fcntl.h
  24116. do :
  24117. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24118. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
  24119. "
  24120. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24121. cat >>confdefs.h <<_ACEOF
  24122. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24123. _ACEOF
  24124. fi
  24125. done
  24126. #
  24127. tst_links_fcntl="unknown"
  24128. tst_proto_fcntl="unknown"
  24129. tst_compi_fcntl="unknown"
  24130. tst_allow_fcntl="unknown"
  24131. #
  24132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
  24133. $as_echo_n "checking if fcntl can be linked... " >&6; }
  24134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24135. /* end confdefs.h. */
  24136. #define fcntl innocuous_fcntl
  24137. #ifdef __STDC__
  24138. # include <limits.h>
  24139. #else
  24140. # include <assert.h>
  24141. #endif
  24142. #undef fcntl
  24143. #ifdef __cplusplus
  24144. extern "C"
  24145. #endif
  24146. char fcntl ();
  24147. #if defined __stub_fcntl || defined __stub___fcntl
  24148. choke me
  24149. #endif
  24150. int main (void)
  24151. {
  24152. return fcntl ();
  24153. ;
  24154. return 0;
  24155. }
  24156. _ACEOF
  24157. if ac_fn_c_try_link "$LINENO"; then :
  24158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24159. $as_echo "yes" >&6; }
  24160. tst_links_fcntl="yes"
  24161. else
  24162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24163. $as_echo "no" >&6; }
  24164. tst_links_fcntl="no"
  24165. fi
  24166. rm -f core conftest.err conftest.$ac_objext \
  24167. conftest$ac_exeext conftest.$ac_ext
  24168. #
  24169. if test "$tst_links_fcntl" = "yes"; then
  24170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
  24171. $as_echo_n "checking if fcntl is prototyped... " >&6; }
  24172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24173. /* end confdefs.h. */
  24174. $curl_includes_fcntl
  24175. _ACEOF
  24176. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24177. $EGREP "fcntl" >/dev/null 2>&1; then :
  24178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24179. $as_echo "yes" >&6; }
  24180. tst_proto_fcntl="yes"
  24181. else
  24182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24183. $as_echo "no" >&6; }
  24184. tst_proto_fcntl="no"
  24185. fi
  24186. rm -f conftest*
  24187. fi
  24188. #
  24189. if test "$tst_proto_fcntl" = "yes"; then
  24190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
  24191. $as_echo_n "checking if fcntl is compilable... " >&6; }
  24192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24193. /* end confdefs.h. */
  24194. $curl_includes_fcntl
  24195. int main (void)
  24196. {
  24197. if(0 != fcntl(0, 0, 0))
  24198. return 1;
  24199. ;
  24200. return 0;
  24201. }
  24202. _ACEOF
  24203. if ac_fn_c_try_compile "$LINENO"; then :
  24204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24205. $as_echo "yes" >&6; }
  24206. tst_compi_fcntl="yes"
  24207. else
  24208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24209. $as_echo "no" >&6; }
  24210. tst_compi_fcntl="no"
  24211. fi
  24212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24213. fi
  24214. #
  24215. if test "$tst_compi_fcntl" = "yes"; then
  24216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
  24217. $as_echo_n "checking if fcntl usage allowed... " >&6; }
  24218. if test "x$curl_disallow_fcntl" != "xyes"; then
  24219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24220. $as_echo "yes" >&6; }
  24221. tst_allow_fcntl="yes"
  24222. else
  24223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24224. $as_echo "no" >&6; }
  24225. tst_allow_fcntl="no"
  24226. fi
  24227. fi
  24228. #
  24229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
  24230. $as_echo_n "checking if fcntl might be used... " >&6; }
  24231. if test "$tst_links_fcntl" = "yes" &&
  24232. test "$tst_proto_fcntl" = "yes" &&
  24233. test "$tst_compi_fcntl" = "yes" &&
  24234. test "$tst_allow_fcntl" = "yes"; then
  24235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24236. $as_echo "yes" >&6; }
  24237. cat >>confdefs.h <<_ACEOF
  24238. #define HAVE_FCNTL 1
  24239. _ACEOF
  24240. ac_cv_func_fcntl="yes"
  24241. #
  24242. tst_compi_fcntl_o_nonblock="unknown"
  24243. tst_allow_fcntl_o_nonblock="unknown"
  24244. #
  24245. case $host_os in
  24246. sunos4* | aix3* | beos*)
  24247. curl_disallow_fcntl_o_nonblock="yes"
  24248. ;;
  24249. esac
  24250. #
  24251. if test "$ac_cv_func_fcntl" = "yes"; then
  24252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
  24253. $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
  24254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24255. /* end confdefs.h. */
  24256. $curl_includes_fcntl
  24257. int main (void)
  24258. {
  24259. int flags = 0;
  24260. if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
  24261. return 1;
  24262. ;
  24263. return 0;
  24264. }
  24265. _ACEOF
  24266. if ac_fn_c_try_compile "$LINENO"; then :
  24267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24268. $as_echo "yes" >&6; }
  24269. tst_compi_fcntl_o_nonblock="yes"
  24270. else
  24271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24272. $as_echo "no" >&6; }
  24273. tst_compi_fcntl_o_nonblock="no"
  24274. fi
  24275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24276. fi
  24277. #
  24278. if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
  24279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
  24280. $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
  24281. if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
  24282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24283. $as_echo "yes" >&6; }
  24284. tst_allow_fcntl_o_nonblock="yes"
  24285. else
  24286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24287. $as_echo "no" >&6; }
  24288. tst_allow_fcntl_o_nonblock="no"
  24289. fi
  24290. fi
  24291. #
  24292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
  24293. $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
  24294. if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
  24295. test "$tst_allow_fcntl_o_nonblock" = "yes"; then
  24296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24297. $as_echo "yes" >&6; }
  24298. cat >>confdefs.h <<_ACEOF
  24299. #define HAVE_FCNTL_O_NONBLOCK 1
  24300. _ACEOF
  24301. ac_cv_func_fcntl_o_nonblock="yes"
  24302. else
  24303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24304. $as_echo "no" >&6; }
  24305. ac_cv_func_fcntl_o_nonblock="no"
  24306. fi
  24307. else
  24308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24309. $as_echo "no" >&6; }
  24310. ac_cv_func_fcntl="no"
  24311. fi
  24312. curl_includes_stdio="\
  24313. /* includes start */
  24314. #ifdef HAVE_SYS_TYPES_H
  24315. # include <sys/types.h>
  24316. #endif
  24317. #ifdef HAVE_STDIO_H
  24318. # include <stdio.h>
  24319. #endif
  24320. /* includes end */"
  24321. for ac_header in sys/types.h stdio.h
  24322. do :
  24323. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24324. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
  24325. "
  24326. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24327. cat >>confdefs.h <<_ACEOF
  24328. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24329. _ACEOF
  24330. fi
  24331. done
  24332. #
  24333. tst_links_fdopen="unknown"
  24334. tst_proto_fdopen="unknown"
  24335. tst_compi_fdopen="unknown"
  24336. tst_allow_fdopen="unknown"
  24337. #
  24338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
  24339. $as_echo_n "checking if fdopen can be linked... " >&6; }
  24340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24341. /* end confdefs.h. */
  24342. #define fdopen innocuous_fdopen
  24343. #ifdef __STDC__
  24344. # include <limits.h>
  24345. #else
  24346. # include <assert.h>
  24347. #endif
  24348. #undef fdopen
  24349. #ifdef __cplusplus
  24350. extern "C"
  24351. #endif
  24352. char fdopen ();
  24353. #if defined __stub_fdopen || defined __stub___fdopen
  24354. choke me
  24355. #endif
  24356. int main (void)
  24357. {
  24358. return fdopen ();
  24359. ;
  24360. return 0;
  24361. }
  24362. _ACEOF
  24363. if ac_fn_c_try_link "$LINENO"; then :
  24364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24365. $as_echo "yes" >&6; }
  24366. tst_links_fdopen="yes"
  24367. else
  24368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24369. $as_echo "no" >&6; }
  24370. tst_links_fdopen="no"
  24371. fi
  24372. rm -f core conftest.err conftest.$ac_objext \
  24373. conftest$ac_exeext conftest.$ac_ext
  24374. #
  24375. if test "$tst_links_fdopen" = "yes"; then
  24376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
  24377. $as_echo_n "checking if fdopen is prototyped... " >&6; }
  24378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24379. /* end confdefs.h. */
  24380. $curl_includes_stdio
  24381. _ACEOF
  24382. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24383. $EGREP "fdopen" >/dev/null 2>&1; then :
  24384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24385. $as_echo "yes" >&6; }
  24386. tst_proto_fdopen="yes"
  24387. else
  24388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24389. $as_echo "no" >&6; }
  24390. tst_proto_fdopen="no"
  24391. fi
  24392. rm -f conftest*
  24393. fi
  24394. #
  24395. if test "$tst_proto_fdopen" = "yes"; then
  24396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
  24397. $as_echo_n "checking if fdopen is compilable... " >&6; }
  24398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24399. /* end confdefs.h. */
  24400. $curl_includes_stdio
  24401. int main (void)
  24402. {
  24403. if(0 != fdopen(0, 0))
  24404. return 1;
  24405. ;
  24406. return 0;
  24407. }
  24408. _ACEOF
  24409. if ac_fn_c_try_compile "$LINENO"; then :
  24410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24411. $as_echo "yes" >&6; }
  24412. tst_compi_fdopen="yes"
  24413. else
  24414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24415. $as_echo "no" >&6; }
  24416. tst_compi_fdopen="no"
  24417. fi
  24418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24419. fi
  24420. #
  24421. if test "$tst_compi_fdopen" = "yes"; then
  24422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
  24423. $as_echo_n "checking if fdopen usage allowed... " >&6; }
  24424. if test "x$curl_disallow_fdopen" != "xyes"; then
  24425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24426. $as_echo "yes" >&6; }
  24427. tst_allow_fdopen="yes"
  24428. else
  24429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24430. $as_echo "no" >&6; }
  24431. tst_allow_fdopen="no"
  24432. fi
  24433. fi
  24434. #
  24435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
  24436. $as_echo_n "checking if fdopen might be used... " >&6; }
  24437. if test "$tst_links_fdopen" = "yes" &&
  24438. test "$tst_proto_fdopen" = "yes" &&
  24439. test "$tst_compi_fdopen" = "yes" &&
  24440. test "$tst_allow_fdopen" = "yes"; then
  24441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24442. $as_echo "yes" >&6; }
  24443. cat >>confdefs.h <<_ACEOF
  24444. #define HAVE_FDOPEN 1
  24445. _ACEOF
  24446. ac_cv_func_fdopen="yes"
  24447. else
  24448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24449. $as_echo "no" >&6; }
  24450. ac_cv_func_fdopen="no"
  24451. fi
  24452. curl_includes_netdb="\
  24453. /* includes start */
  24454. #ifdef HAVE_SYS_TYPES_H
  24455. # include <sys/types.h>
  24456. #endif
  24457. #ifdef HAVE_NETDB_H
  24458. # include <netdb.h>
  24459. #endif
  24460. /* includes end */"
  24461. for ac_header in sys/types.h netdb.h
  24462. do :
  24463. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24464. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
  24465. "
  24466. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24467. cat >>confdefs.h <<_ACEOF
  24468. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24469. _ACEOF
  24470. fi
  24471. done
  24472. #
  24473. tst_links_freeaddrinfo="unknown"
  24474. tst_proto_freeaddrinfo="unknown"
  24475. tst_compi_freeaddrinfo="unknown"
  24476. tst_allow_freeaddrinfo="unknown"
  24477. #
  24478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
  24479. $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
  24480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24481. /* end confdefs.h. */
  24482. $curl_includes_ws2tcpip
  24483. $curl_includes_sys_socket
  24484. $curl_includes_netdb
  24485. int main (void)
  24486. {
  24487. freeaddrinfo(0);
  24488. ;
  24489. return 0;
  24490. }
  24491. _ACEOF
  24492. if ac_fn_c_try_link "$LINENO"; then :
  24493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24494. $as_echo "yes" >&6; }
  24495. tst_links_freeaddrinfo="yes"
  24496. else
  24497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24498. $as_echo "no" >&6; }
  24499. tst_links_freeaddrinfo="no"
  24500. fi
  24501. rm -f core conftest.err conftest.$ac_objext \
  24502. conftest$ac_exeext conftest.$ac_ext
  24503. #
  24504. if test "$tst_links_freeaddrinfo" = "yes"; then
  24505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
  24506. $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
  24507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24508. /* end confdefs.h. */
  24509. $curl_includes_ws2tcpip
  24510. $curl_includes_sys_socket
  24511. $curl_includes_netdb
  24512. _ACEOF
  24513. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24514. $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
  24515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24516. $as_echo "yes" >&6; }
  24517. tst_proto_freeaddrinfo="yes"
  24518. else
  24519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24520. $as_echo "no" >&6; }
  24521. tst_proto_freeaddrinfo="no"
  24522. fi
  24523. rm -f conftest*
  24524. fi
  24525. #
  24526. if test "$tst_proto_freeaddrinfo" = "yes"; then
  24527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
  24528. $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
  24529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24530. /* end confdefs.h. */
  24531. $curl_includes_ws2tcpip
  24532. $curl_includes_sys_socket
  24533. $curl_includes_netdb
  24534. int main (void)
  24535. {
  24536. freeaddrinfo(0);
  24537. ;
  24538. return 0;
  24539. }
  24540. _ACEOF
  24541. if ac_fn_c_try_compile "$LINENO"; then :
  24542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24543. $as_echo "yes" >&6; }
  24544. tst_compi_freeaddrinfo="yes"
  24545. else
  24546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24547. $as_echo "no" >&6; }
  24548. tst_compi_freeaddrinfo="no"
  24549. fi
  24550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24551. fi
  24552. #
  24553. if test "$tst_compi_freeaddrinfo" = "yes"; then
  24554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
  24555. $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
  24556. if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
  24557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24558. $as_echo "yes" >&6; }
  24559. tst_allow_freeaddrinfo="yes"
  24560. else
  24561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24562. $as_echo "no" >&6; }
  24563. tst_allow_freeaddrinfo="no"
  24564. fi
  24565. fi
  24566. #
  24567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
  24568. $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
  24569. if test "$tst_links_freeaddrinfo" = "yes" &&
  24570. test "$tst_proto_freeaddrinfo" = "yes" &&
  24571. test "$tst_compi_freeaddrinfo" = "yes" &&
  24572. test "$tst_allow_freeaddrinfo" = "yes"; then
  24573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24574. $as_echo "yes" >&6; }
  24575. cat >>confdefs.h <<_ACEOF
  24576. #define HAVE_FREEADDRINFO 1
  24577. _ACEOF
  24578. ac_cv_func_freeaddrinfo="yes"
  24579. else
  24580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24581. $as_echo "no" >&6; }
  24582. ac_cv_func_freeaddrinfo="no"
  24583. fi
  24584. curl_includes_ifaddrs="\
  24585. /* includes start */
  24586. #ifdef HAVE_SYS_TYPES_H
  24587. # include <sys/types.h>
  24588. #endif
  24589. #ifdef HAVE_SYS_SOCKET_H
  24590. # include <sys/socket.h>
  24591. #endif
  24592. #ifdef HAVE_NETINET_IN_H
  24593. # include <netinet/in.h>
  24594. #endif
  24595. #ifdef HAVE_IFADDRS_H
  24596. # include <ifaddrs.h>
  24597. #endif
  24598. /* includes end */"
  24599. for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
  24600. do :
  24601. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24602. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
  24603. "
  24604. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24605. cat >>confdefs.h <<_ACEOF
  24606. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24607. _ACEOF
  24608. fi
  24609. done
  24610. #
  24611. tst_links_freeifaddrs="unknown"
  24612. tst_proto_freeifaddrs="unknown"
  24613. tst_compi_freeifaddrs="unknown"
  24614. tst_allow_freeifaddrs="unknown"
  24615. #
  24616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
  24617. $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
  24618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24619. /* end confdefs.h. */
  24620. #define freeifaddrs innocuous_freeifaddrs
  24621. #ifdef __STDC__
  24622. # include <limits.h>
  24623. #else
  24624. # include <assert.h>
  24625. #endif
  24626. #undef freeifaddrs
  24627. #ifdef __cplusplus
  24628. extern "C"
  24629. #endif
  24630. char freeifaddrs ();
  24631. #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
  24632. choke me
  24633. #endif
  24634. int main (void)
  24635. {
  24636. return freeifaddrs ();
  24637. ;
  24638. return 0;
  24639. }
  24640. _ACEOF
  24641. if ac_fn_c_try_link "$LINENO"; then :
  24642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24643. $as_echo "yes" >&6; }
  24644. tst_links_freeifaddrs="yes"
  24645. else
  24646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24647. $as_echo "no" >&6; }
  24648. tst_links_freeifaddrs="no"
  24649. fi
  24650. rm -f core conftest.err conftest.$ac_objext \
  24651. conftest$ac_exeext conftest.$ac_ext
  24652. #
  24653. if test "$tst_links_freeifaddrs" = "yes"; then
  24654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
  24655. $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
  24656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24657. /* end confdefs.h. */
  24658. $curl_includes_ifaddrs
  24659. _ACEOF
  24660. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24661. $EGREP "freeifaddrs" >/dev/null 2>&1; then :
  24662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24663. $as_echo "yes" >&6; }
  24664. tst_proto_freeifaddrs="yes"
  24665. else
  24666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24667. $as_echo "no" >&6; }
  24668. tst_proto_freeifaddrs="no"
  24669. fi
  24670. rm -f conftest*
  24671. fi
  24672. #
  24673. if test "$tst_proto_freeifaddrs" = "yes"; then
  24674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
  24675. $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
  24676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24677. /* end confdefs.h. */
  24678. $curl_includes_ifaddrs
  24679. int main (void)
  24680. {
  24681. freeifaddrs(0);
  24682. ;
  24683. return 0;
  24684. }
  24685. _ACEOF
  24686. if ac_fn_c_try_compile "$LINENO"; then :
  24687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24688. $as_echo "yes" >&6; }
  24689. tst_compi_freeifaddrs="yes"
  24690. else
  24691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24692. $as_echo "no" >&6; }
  24693. tst_compi_freeifaddrs="no"
  24694. fi
  24695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24696. fi
  24697. #
  24698. if test "$tst_compi_freeifaddrs" = "yes"; then
  24699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
  24700. $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
  24701. if test "x$curl_disallow_freeifaddrs" != "xyes"; then
  24702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24703. $as_echo "yes" >&6; }
  24704. tst_allow_freeifaddrs="yes"
  24705. else
  24706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24707. $as_echo "no" >&6; }
  24708. tst_allow_freeifaddrs="no"
  24709. fi
  24710. fi
  24711. #
  24712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
  24713. $as_echo_n "checking if freeifaddrs might be used... " >&6; }
  24714. if test "$tst_links_freeifaddrs" = "yes" &&
  24715. test "$tst_proto_freeifaddrs" = "yes" &&
  24716. test "$tst_compi_freeifaddrs" = "yes" &&
  24717. test "$tst_allow_freeifaddrs" = "yes"; then
  24718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24719. $as_echo "yes" >&6; }
  24720. cat >>confdefs.h <<_ACEOF
  24721. #define HAVE_FREEIFADDRS 1
  24722. _ACEOF
  24723. ac_cv_func_freeifaddrs="yes"
  24724. else
  24725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24726. $as_echo "no" >&6; }
  24727. ac_cv_func_freeifaddrs="no"
  24728. fi
  24729. curl_includes_sys_xattr="\
  24730. /* includes start */
  24731. #ifdef HAVE_SYS_TYPES_H
  24732. # include <sys/types.h>
  24733. #endif
  24734. #ifdef HAVE_SYS_XATTR_H
  24735. # include <sys/xattr.h>
  24736. #endif
  24737. /* includes end */"
  24738. for ac_header in sys/types.h sys/xattr.h
  24739. do :
  24740. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24741. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
  24742. "
  24743. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24744. cat >>confdefs.h <<_ACEOF
  24745. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24746. _ACEOF
  24747. fi
  24748. done
  24749. #
  24750. tst_links_fsetxattr="unknown"
  24751. tst_proto_fsetxattr="unknown"
  24752. tst_compi_fsetxattr="unknown"
  24753. tst_allow_fsetxattr="unknown"
  24754. tst_nargs_fsetxattr="unknown"
  24755. #
  24756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
  24757. $as_echo_n "checking if fsetxattr can be linked... " >&6; }
  24758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24759. /* end confdefs.h. */
  24760. #define fsetxattr innocuous_fsetxattr
  24761. #ifdef __STDC__
  24762. # include <limits.h>
  24763. #else
  24764. # include <assert.h>
  24765. #endif
  24766. #undef fsetxattr
  24767. #ifdef __cplusplus
  24768. extern "C"
  24769. #endif
  24770. char fsetxattr ();
  24771. #if defined __stub_fsetxattr || defined __stub___fsetxattr
  24772. choke me
  24773. #endif
  24774. int main (void)
  24775. {
  24776. return fsetxattr ();
  24777. ;
  24778. return 0;
  24779. }
  24780. _ACEOF
  24781. if ac_fn_c_try_link "$LINENO"; then :
  24782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24783. $as_echo "yes" >&6; }
  24784. tst_links_fsetxattr="yes"
  24785. else
  24786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24787. $as_echo "no" >&6; }
  24788. tst_links_fsetxattr="no"
  24789. fi
  24790. rm -f core conftest.err conftest.$ac_objext \
  24791. conftest$ac_exeext conftest.$ac_ext
  24792. #
  24793. if test "$tst_links_fsetxattr" = "yes"; then
  24794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
  24795. $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
  24796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24797. /* end confdefs.h. */
  24798. $curl_includes_sys_xattr
  24799. _ACEOF
  24800. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24801. $EGREP "fsetxattr" >/dev/null 2>&1; then :
  24802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24803. $as_echo "yes" >&6; }
  24804. tst_proto_fsetxattr="yes"
  24805. else
  24806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24807. $as_echo "no" >&6; }
  24808. tst_proto_fsetxattr="no"
  24809. fi
  24810. rm -f conftest*
  24811. fi
  24812. #
  24813. if test "$tst_proto_fsetxattr" = "yes"; then
  24814. if test "$tst_nargs_fsetxattr" = "unknown"; then
  24815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
  24816. $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
  24817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24818. /* end confdefs.h. */
  24819. $curl_includes_sys_xattr
  24820. int main (void)
  24821. {
  24822. if(0 != fsetxattr(0, 0, 0, 0, 0))
  24823. return 1;
  24824. ;
  24825. return 0;
  24826. }
  24827. _ACEOF
  24828. if ac_fn_c_try_compile "$LINENO"; then :
  24829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24830. $as_echo "yes" >&6; }
  24831. tst_compi_fsetxattr="yes"
  24832. tst_nargs_fsetxattr="5"
  24833. else
  24834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24835. $as_echo "no" >&6; }
  24836. tst_compi_fsetxattr="no"
  24837. fi
  24838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24839. fi
  24840. if test "$tst_nargs_fsetxattr" = "unknown"; then
  24841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
  24842. $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
  24843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24844. /* end confdefs.h. */
  24845. $curl_includes_sys_xattr
  24846. int main (void)
  24847. {
  24848. if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
  24849. return 1;
  24850. ;
  24851. return 0;
  24852. }
  24853. _ACEOF
  24854. if ac_fn_c_try_compile "$LINENO"; then :
  24855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24856. $as_echo "yes" >&6; }
  24857. tst_compi_fsetxattr="yes"
  24858. tst_nargs_fsetxattr="6"
  24859. else
  24860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24861. $as_echo "no" >&6; }
  24862. tst_compi_fsetxattr="no"
  24863. fi
  24864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24865. fi
  24866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
  24867. $as_echo_n "checking if fsetxattr is compilable... " >&6; }
  24868. if test "$tst_compi_fsetxattr" = "yes"; then
  24869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24870. $as_echo "yes" >&6; }
  24871. else
  24872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24873. $as_echo "no" >&6; }
  24874. fi
  24875. fi
  24876. #
  24877. if test "$tst_compi_fsetxattr" = "yes"; then
  24878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
  24879. $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
  24880. if test "x$curl_disallow_fsetxattr" != "xyes"; then
  24881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24882. $as_echo "yes" >&6; }
  24883. tst_allow_fsetxattr="yes"
  24884. else
  24885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24886. $as_echo "no" >&6; }
  24887. tst_allow_fsetxattr="no"
  24888. fi
  24889. fi
  24890. #
  24891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
  24892. $as_echo_n "checking if fsetxattr might be used... " >&6; }
  24893. if test "$tst_links_fsetxattr" = "yes" &&
  24894. test "$tst_proto_fsetxattr" = "yes" &&
  24895. test "$tst_compi_fsetxattr" = "yes" &&
  24896. test "$tst_allow_fsetxattr" = "yes"; then
  24897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24898. $as_echo "yes" >&6; }
  24899. cat >>confdefs.h <<_ACEOF
  24900. #define HAVE_FSETXATTR 1
  24901. _ACEOF
  24902. #
  24903. if test "$tst_nargs_fsetxattr" -eq "5"; then
  24904. $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
  24905. elif test "$tst_nargs_fsetxattr" -eq "6"; then
  24906. $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
  24907. fi
  24908. #
  24909. ac_cv_func_fsetxattr="yes"
  24910. else
  24911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24912. $as_echo "no" >&6; }
  24913. ac_cv_func_fsetxattr="no"
  24914. fi
  24915. #
  24916. tst_links_ftruncate="unknown"
  24917. tst_proto_ftruncate="unknown"
  24918. tst_compi_ftruncate="unknown"
  24919. tst_allow_ftruncate="unknown"
  24920. #
  24921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
  24922. $as_echo_n "checking if ftruncate can be linked... " >&6; }
  24923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24924. /* end confdefs.h. */
  24925. #define ftruncate innocuous_ftruncate
  24926. #ifdef __STDC__
  24927. # include <limits.h>
  24928. #else
  24929. # include <assert.h>
  24930. #endif
  24931. #undef ftruncate
  24932. #ifdef __cplusplus
  24933. extern "C"
  24934. #endif
  24935. char ftruncate ();
  24936. #if defined __stub_ftruncate || defined __stub___ftruncate
  24937. choke me
  24938. #endif
  24939. int main (void)
  24940. {
  24941. return ftruncate ();
  24942. ;
  24943. return 0;
  24944. }
  24945. _ACEOF
  24946. if ac_fn_c_try_link "$LINENO"; then :
  24947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24948. $as_echo "yes" >&6; }
  24949. tst_links_ftruncate="yes"
  24950. else
  24951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24952. $as_echo "no" >&6; }
  24953. tst_links_ftruncate="no"
  24954. fi
  24955. rm -f core conftest.err conftest.$ac_objext \
  24956. conftest$ac_exeext conftest.$ac_ext
  24957. #
  24958. if test "$tst_links_ftruncate" = "yes"; then
  24959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
  24960. $as_echo_n "checking if ftruncate is prototyped... " >&6; }
  24961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24962. /* end confdefs.h. */
  24963. $curl_includes_unistd
  24964. _ACEOF
  24965. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24966. $EGREP "ftruncate" >/dev/null 2>&1; then :
  24967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24968. $as_echo "yes" >&6; }
  24969. tst_proto_ftruncate="yes"
  24970. else
  24971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24972. $as_echo "no" >&6; }
  24973. tst_proto_ftruncate="no"
  24974. fi
  24975. rm -f conftest*
  24976. fi
  24977. #
  24978. if test "$tst_proto_ftruncate" = "yes"; then
  24979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
  24980. $as_echo_n "checking if ftruncate is compilable... " >&6; }
  24981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24982. /* end confdefs.h. */
  24983. $curl_includes_unistd
  24984. int main (void)
  24985. {
  24986. if(0 != ftruncate(0, 0))
  24987. return 1;
  24988. ;
  24989. return 0;
  24990. }
  24991. _ACEOF
  24992. if ac_fn_c_try_compile "$LINENO"; then :
  24993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24994. $as_echo "yes" >&6; }
  24995. tst_compi_ftruncate="yes"
  24996. else
  24997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24998. $as_echo "no" >&6; }
  24999. tst_compi_ftruncate="no"
  25000. fi
  25001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25002. fi
  25003. #
  25004. if test "$tst_compi_ftruncate" = "yes"; then
  25005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
  25006. $as_echo_n "checking if ftruncate usage allowed... " >&6; }
  25007. if test "x$curl_disallow_ftruncate" != "xyes"; then
  25008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25009. $as_echo "yes" >&6; }
  25010. tst_allow_ftruncate="yes"
  25011. else
  25012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25013. $as_echo "no" >&6; }
  25014. tst_allow_ftruncate="no"
  25015. fi
  25016. fi
  25017. #
  25018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
  25019. $as_echo_n "checking if ftruncate might be used... " >&6; }
  25020. if test "$tst_links_ftruncate" = "yes" &&
  25021. test "$tst_proto_ftruncate" = "yes" &&
  25022. test "$tst_compi_ftruncate" = "yes" &&
  25023. test "$tst_allow_ftruncate" = "yes"; then
  25024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25025. $as_echo "yes" >&6; }
  25026. cat >>confdefs.h <<_ACEOF
  25027. #define HAVE_FTRUNCATE 1
  25028. _ACEOF
  25029. ac_cv_func_ftruncate="yes"
  25030. else
  25031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25032. $as_echo "no" >&6; }
  25033. ac_cv_func_ftruncate="no"
  25034. fi
  25035. curl_includes_stdlib="\
  25036. /* includes start */
  25037. #ifdef HAVE_SYS_TYPES_H
  25038. # include <sys/types.h>
  25039. #endif
  25040. #ifdef HAVE_STDLIB_H
  25041. # include <stdlib.h>
  25042. #endif
  25043. /* includes end */"
  25044. for ac_header in sys/types.h stdlib.h
  25045. do :
  25046. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25047. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
  25048. "
  25049. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  25050. cat >>confdefs.h <<_ACEOF
  25051. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25052. _ACEOF
  25053. fi
  25054. done
  25055. #
  25056. tst_links_getaddrinfo="unknown"
  25057. tst_proto_getaddrinfo="unknown"
  25058. tst_compi_getaddrinfo="unknown"
  25059. tst_works_getaddrinfo="unknown"
  25060. tst_allow_getaddrinfo="unknown"
  25061. tst_tsafe_getaddrinfo="unknown"
  25062. #
  25063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
  25064. $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
  25065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25066. /* end confdefs.h. */
  25067. $curl_includes_ws2tcpip
  25068. $curl_includes_sys_socket
  25069. $curl_includes_netdb
  25070. int main (void)
  25071. {
  25072. if(0 != getaddrinfo(0, 0, 0, 0))
  25073. return 1;
  25074. ;
  25075. return 0;
  25076. }
  25077. _ACEOF
  25078. if ac_fn_c_try_link "$LINENO"; then :
  25079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25080. $as_echo "yes" >&6; }
  25081. tst_links_getaddrinfo="yes"
  25082. else
  25083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25084. $as_echo "no" >&6; }
  25085. tst_links_getaddrinfo="no"
  25086. fi
  25087. rm -f core conftest.err conftest.$ac_objext \
  25088. conftest$ac_exeext conftest.$ac_ext
  25089. #
  25090. if test "$tst_links_getaddrinfo" = "yes"; then
  25091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
  25092. $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
  25093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25094. /* end confdefs.h. */
  25095. $curl_includes_ws2tcpip
  25096. $curl_includes_sys_socket
  25097. $curl_includes_netdb
  25098. _ACEOF
  25099. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25100. $EGREP "getaddrinfo" >/dev/null 2>&1; then :
  25101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25102. $as_echo "yes" >&6; }
  25103. tst_proto_getaddrinfo="yes"
  25104. else
  25105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25106. $as_echo "no" >&6; }
  25107. tst_proto_getaddrinfo="no"
  25108. fi
  25109. rm -f conftest*
  25110. fi
  25111. #
  25112. if test "$tst_proto_getaddrinfo" = "yes"; then
  25113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
  25114. $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
  25115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25116. /* end confdefs.h. */
  25117. $curl_includes_ws2tcpip
  25118. $curl_includes_sys_socket
  25119. $curl_includes_netdb
  25120. int main (void)
  25121. {
  25122. if(0 != getaddrinfo(0, 0, 0, 0))
  25123. return 1;
  25124. ;
  25125. return 0;
  25126. }
  25127. _ACEOF
  25128. if ac_fn_c_try_compile "$LINENO"; then :
  25129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25130. $as_echo "yes" >&6; }
  25131. tst_compi_getaddrinfo="yes"
  25132. else
  25133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25134. $as_echo "no" >&6; }
  25135. tst_compi_getaddrinfo="no"
  25136. fi
  25137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25138. fi
  25139. #
  25140. if test "x$cross_compiling" != "xyes" &&
  25141. test "$tst_compi_getaddrinfo" = "yes"; then
  25142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
  25143. $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
  25144. if test "$cross_compiling" = yes; then :
  25145. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25146. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25147. as_fn_error $? "cannot run test program while cross compiling
  25148. See \`config.log' for more details" "$LINENO" 5; }
  25149. else
  25150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25151. /* end confdefs.h. */
  25152. $curl_includes_ws2tcpip
  25153. $curl_includes_stdlib
  25154. $curl_includes_string
  25155. $curl_includes_sys_socket
  25156. $curl_includes_netdb
  25157. int main (void)
  25158. {
  25159. struct addrinfo hints;
  25160. struct addrinfo *ai = 0;
  25161. int error;
  25162. memset(&hints, 0, sizeof(hints));
  25163. hints.ai_flags = AI_NUMERICHOST;
  25164. hints.ai_family = AF_UNSPEC;
  25165. hints.ai_socktype = SOCK_STREAM;
  25166. error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
  25167. if(error || !ai)
  25168. exit(1); /* fail */
  25169. else
  25170. exit(0);
  25171. ;
  25172. return 0;
  25173. }
  25174. _ACEOF
  25175. if ac_fn_c_try_run "$LINENO"; then :
  25176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25177. $as_echo "yes" >&6; }
  25178. tst_works_getaddrinfo="yes"
  25179. else
  25180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25181. $as_echo "no" >&6; }
  25182. tst_works_getaddrinfo="no"
  25183. fi
  25184. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25185. conftest.$ac_objext conftest.beam conftest.$ac_ext
  25186. fi
  25187. fi
  25188. #
  25189. if test "$tst_compi_getaddrinfo" = "yes" &&
  25190. test "$tst_works_getaddrinfo" != "no"; then
  25191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
  25192. $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
  25193. if test "x$curl_disallow_getaddrinfo" != "xyes"; then
  25194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25195. $as_echo "yes" >&6; }
  25196. tst_allow_getaddrinfo="yes"
  25197. else
  25198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25199. $as_echo "no" >&6; }
  25200. tst_allow_getaddrinfo="no"
  25201. fi
  25202. fi
  25203. #
  25204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
  25205. $as_echo_n "checking if getaddrinfo might be used... " >&6; }
  25206. if test "$tst_links_getaddrinfo" = "yes" &&
  25207. test "$tst_proto_getaddrinfo" = "yes" &&
  25208. test "$tst_compi_getaddrinfo" = "yes" &&
  25209. test "$tst_allow_getaddrinfo" = "yes" &&
  25210. test "$tst_works_getaddrinfo" != "no"; then
  25211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25212. $as_echo "yes" >&6; }
  25213. cat >>confdefs.h <<_ACEOF
  25214. #define HAVE_GETADDRINFO 1
  25215. _ACEOF
  25216. ac_cv_func_getaddrinfo="yes"
  25217. else
  25218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25219. $as_echo "no" >&6; }
  25220. ac_cv_func_getaddrinfo="no"
  25221. ac_cv_func_getaddrinfo_threadsafe="no"
  25222. fi
  25223. #
  25224. if test "$ac_cv_func_getaddrinfo" = "yes"; then
  25225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
  25226. $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
  25227. case $host_os in
  25228. aix[1234].* | aix5.[01].*)
  25229. tst_tsafe_getaddrinfo="no"
  25230. ;;
  25231. aix*)
  25232. tst_tsafe_getaddrinfo="yes"
  25233. ;;
  25234. darwin[12345].*)
  25235. tst_tsafe_getaddrinfo="no"
  25236. ;;
  25237. darwin*)
  25238. tst_tsafe_getaddrinfo="yes"
  25239. ;;
  25240. freebsd[1234].* | freebsd5.[1234]*)
  25241. tst_tsafe_getaddrinfo="no"
  25242. ;;
  25243. freebsd*)
  25244. tst_tsafe_getaddrinfo="yes"
  25245. ;;
  25246. hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
  25247. tst_tsafe_getaddrinfo="no"
  25248. ;;
  25249. hpux*)
  25250. tst_tsafe_getaddrinfo="yes"
  25251. ;;
  25252. netbsd[123].*)
  25253. tst_tsafe_getaddrinfo="no"
  25254. ;;
  25255. netbsd*)
  25256. tst_tsafe_getaddrinfo="yes"
  25257. ;;
  25258. *bsd*)
  25259. tst_tsafe_getaddrinfo="no"
  25260. ;;
  25261. solaris2*)
  25262. tst_tsafe_getaddrinfo="yes"
  25263. ;;
  25264. esac
  25265. if test "$tst_tsafe_getaddrinfo" = "unknown" &&
  25266. test "$ac_cv_native_windows" = "yes"; then
  25267. tst_tsafe_getaddrinfo="yes"
  25268. fi
  25269. if test "$tst_tsafe_getaddrinfo" = "unknown"; then
  25270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25271. /* end confdefs.h. */
  25272. $curl_includes_sys_socket
  25273. $curl_includes_netdb
  25274. int main (void)
  25275. {
  25276. #ifdef h_errno
  25277. return 0;
  25278. #else
  25279. force compilation error
  25280. #endif
  25281. }
  25282. _ACEOF
  25283. if ac_fn_c_try_compile "$LINENO"; then :
  25284. tst_symbol_defined="yes"
  25285. else
  25286. tst_symbol_defined="no"
  25287. fi
  25288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25289. if test "$tst_symbol_defined" = "yes"; then
  25290. curl_cv_have_def_h_errno=yes
  25291. else
  25292. curl_cv_have_def_h_errno=no
  25293. fi
  25294. if test "$curl_cv_have_def_h_errno" = "yes"; then
  25295. tst_h_errno_macro="yes"
  25296. else
  25297. tst_h_errno_macro="no"
  25298. fi
  25299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25300. /* end confdefs.h. */
  25301. $curl_includes_sys_socket
  25302. $curl_includes_netdb
  25303. int main (void)
  25304. {
  25305. h_errno = 2;
  25306. if(0 != h_errno)
  25307. return 1;
  25308. ;
  25309. return 0;
  25310. }
  25311. _ACEOF
  25312. if ac_fn_c_try_compile "$LINENO"; then :
  25313. tst_h_errno_modifiable_lvalue="yes"
  25314. else
  25315. tst_h_errno_modifiable_lvalue="no"
  25316. fi
  25317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25319. /* end confdefs.h. */
  25320. int main (void)
  25321. {
  25322. #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
  25323. return 0;
  25324. #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
  25325. return 0;
  25326. #else
  25327. force compilation error
  25328. #endif
  25329. ;
  25330. return 0;
  25331. }
  25332. _ACEOF
  25333. if ac_fn_c_try_compile "$LINENO"; then :
  25334. tst_h_errno_sbs_issue_7="yes"
  25335. else
  25336. tst_h_errno_sbs_issue_7="no"
  25337. fi
  25338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25339. if test "$tst_h_errno_macro" = "no" &&
  25340. test "$tst_h_errno_modifiable_lvalue" = "no" &&
  25341. test "$tst_h_errno_sbs_issue_7" = "no"; then
  25342. tst_tsafe_getaddrinfo="no"
  25343. else
  25344. tst_tsafe_getaddrinfo="yes"
  25345. fi
  25346. fi
  25347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
  25348. $as_echo "$tst_tsafe_getaddrinfo" >&6; }
  25349. if test "$tst_tsafe_getaddrinfo" = "yes"; then
  25350. cat >>confdefs.h <<_ACEOF
  25351. #define HAVE_GETADDRINFO_THREADSAFE 1
  25352. _ACEOF
  25353. ac_cv_func_getaddrinfo_threadsafe="yes"
  25354. else
  25355. ac_cv_func_getaddrinfo_threadsafe="no"
  25356. fi
  25357. fi
  25358. #
  25359. tst_links_gai_strerror="unknown"
  25360. tst_proto_gai_strerror="unknown"
  25361. tst_compi_gai_strerror="unknown"
  25362. tst_allow_gai_strerror="unknown"
  25363. #
  25364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
  25365. $as_echo_n "checking if gai_strerror can be linked... " >&6; }
  25366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25367. /* end confdefs.h. */
  25368. $curl_includes_winsock2
  25369. $curl_includes_netdb
  25370. int main (void)
  25371. {
  25372. if(0 != gai_strerror(0))
  25373. return 1;
  25374. ;
  25375. return 0;
  25376. }
  25377. _ACEOF
  25378. if ac_fn_c_try_link "$LINENO"; then :
  25379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25380. $as_echo "yes" >&6; }
  25381. tst_links_gai_strerror="yes"
  25382. else
  25383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25384. $as_echo "no" >&6; }
  25385. tst_links_gai_strerror="no"
  25386. fi
  25387. rm -f core conftest.err conftest.$ac_objext \
  25388. conftest$ac_exeext conftest.$ac_ext
  25389. #
  25390. if test "$tst_links_gai_strerror" = "yes"; then
  25391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
  25392. $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
  25393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25394. /* end confdefs.h. */
  25395. $curl_includes_winsock2
  25396. $curl_includes_netdb
  25397. _ACEOF
  25398. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25399. $EGREP "gai_strerror" >/dev/null 2>&1; then :
  25400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25401. $as_echo "yes" >&6; }
  25402. tst_proto_gai_strerror="yes"
  25403. else
  25404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25405. $as_echo "no" >&6; }
  25406. tst_proto_gai_strerror="no"
  25407. fi
  25408. rm -f conftest*
  25409. fi
  25410. #
  25411. if test "$tst_proto_gai_strerror" = "yes"; then
  25412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
  25413. $as_echo_n "checking if gai_strerror is compilable... " >&6; }
  25414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25415. /* end confdefs.h. */
  25416. $curl_includes_winsock2
  25417. $curl_includes_netdb
  25418. int main (void)
  25419. {
  25420. if(0 != gai_strerror(0))
  25421. return 1;
  25422. ;
  25423. return 0;
  25424. }
  25425. _ACEOF
  25426. if ac_fn_c_try_compile "$LINENO"; then :
  25427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25428. $as_echo "yes" >&6; }
  25429. tst_compi_gai_strerror="yes"
  25430. else
  25431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25432. $as_echo "no" >&6; }
  25433. tst_compi_gai_strerror="no"
  25434. fi
  25435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25436. fi
  25437. #
  25438. if test "$tst_compi_gai_strerror" = "yes"; then
  25439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
  25440. $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
  25441. if test "x$curl_disallow_gai_strerror" != "xyes"; then
  25442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25443. $as_echo "yes" >&6; }
  25444. tst_allow_gai_strerror="yes"
  25445. else
  25446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25447. $as_echo "no" >&6; }
  25448. tst_allow_gai_strerror="no"
  25449. fi
  25450. fi
  25451. #
  25452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
  25453. $as_echo_n "checking if gai_strerror might be used... " >&6; }
  25454. if test "$tst_links_gai_strerror" = "yes" &&
  25455. test "$tst_proto_gai_strerror" = "yes" &&
  25456. test "$tst_compi_gai_strerror" = "yes" &&
  25457. test "$tst_allow_gai_strerror" = "yes"; then
  25458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25459. $as_echo "yes" >&6; }
  25460. cat >>confdefs.h <<_ACEOF
  25461. #define HAVE_GAI_STRERROR 1
  25462. _ACEOF
  25463. ac_cv_func_gai_strerror="yes"
  25464. else
  25465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25466. $as_echo "no" >&6; }
  25467. ac_cv_func_gai_strerror="no"
  25468. fi
  25469. #
  25470. tst_links_gethostbyaddr="unknown"
  25471. tst_proto_gethostbyaddr="unknown"
  25472. tst_compi_gethostbyaddr="unknown"
  25473. tst_allow_gethostbyaddr="unknown"
  25474. #
  25475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
  25476. $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
  25477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25478. /* end confdefs.h. */
  25479. $curl_includes_winsock2
  25480. $curl_includes_netdb
  25481. int main (void)
  25482. {
  25483. if(0 != gethostbyaddr(0, 0, 0))
  25484. return 1;
  25485. ;
  25486. return 0;
  25487. }
  25488. _ACEOF
  25489. if ac_fn_c_try_link "$LINENO"; then :
  25490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25491. $as_echo "yes" >&6; }
  25492. tst_links_gethostbyaddr="yes"
  25493. else
  25494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25495. $as_echo "no" >&6; }
  25496. tst_links_gethostbyaddr="no"
  25497. fi
  25498. rm -f core conftest.err conftest.$ac_objext \
  25499. conftest$ac_exeext conftest.$ac_ext
  25500. #
  25501. if test "$tst_links_gethostbyaddr" = "yes"; then
  25502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
  25503. $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
  25504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25505. /* end confdefs.h. */
  25506. $curl_includes_winsock2
  25507. $curl_includes_netdb
  25508. _ACEOF
  25509. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25510. $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
  25511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25512. $as_echo "yes" >&6; }
  25513. tst_proto_gethostbyaddr="yes"
  25514. else
  25515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25516. $as_echo "no" >&6; }
  25517. tst_proto_gethostbyaddr="no"
  25518. fi
  25519. rm -f conftest*
  25520. fi
  25521. #
  25522. if test "$tst_proto_gethostbyaddr" = "yes"; then
  25523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
  25524. $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
  25525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25526. /* end confdefs.h. */
  25527. $curl_includes_winsock2
  25528. $curl_includes_netdb
  25529. int main (void)
  25530. {
  25531. if(0 != gethostbyaddr(0, 0, 0))
  25532. return 1;
  25533. ;
  25534. return 0;
  25535. }
  25536. _ACEOF
  25537. if ac_fn_c_try_compile "$LINENO"; then :
  25538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25539. $as_echo "yes" >&6; }
  25540. tst_compi_gethostbyaddr="yes"
  25541. else
  25542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25543. $as_echo "no" >&6; }
  25544. tst_compi_gethostbyaddr="no"
  25545. fi
  25546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25547. fi
  25548. #
  25549. if test "$tst_compi_gethostbyaddr" = "yes"; then
  25550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
  25551. $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
  25552. if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
  25553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25554. $as_echo "yes" >&6; }
  25555. tst_allow_gethostbyaddr="yes"
  25556. else
  25557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25558. $as_echo "no" >&6; }
  25559. tst_allow_gethostbyaddr="no"
  25560. fi
  25561. fi
  25562. #
  25563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
  25564. $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
  25565. if test "$tst_links_gethostbyaddr" = "yes" &&
  25566. test "$tst_proto_gethostbyaddr" = "yes" &&
  25567. test "$tst_compi_gethostbyaddr" = "yes" &&
  25568. test "$tst_allow_gethostbyaddr" = "yes"; then
  25569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25570. $as_echo "yes" >&6; }
  25571. cat >>confdefs.h <<_ACEOF
  25572. #define HAVE_GETHOSTBYADDR 1
  25573. _ACEOF
  25574. ac_cv_func_gethostbyaddr="yes"
  25575. else
  25576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25577. $as_echo "no" >&6; }
  25578. ac_cv_func_gethostbyaddr="no"
  25579. fi
  25580. #
  25581. tst_links_gethostbyaddr_r="unknown"
  25582. tst_proto_gethostbyaddr_r="unknown"
  25583. tst_compi_gethostbyaddr_r="unknown"
  25584. tst_allow_gethostbyaddr_r="unknown"
  25585. tst_nargs_gethostbyaddr_r="unknown"
  25586. #
  25587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
  25588. $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
  25589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25590. /* end confdefs.h. */
  25591. #define gethostbyaddr_r innocuous_gethostbyaddr_r
  25592. #ifdef __STDC__
  25593. # include <limits.h>
  25594. #else
  25595. # include <assert.h>
  25596. #endif
  25597. #undef gethostbyaddr_r
  25598. #ifdef __cplusplus
  25599. extern "C"
  25600. #endif
  25601. char gethostbyaddr_r ();
  25602. #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
  25603. choke me
  25604. #endif
  25605. int main (void)
  25606. {
  25607. return gethostbyaddr_r ();
  25608. ;
  25609. return 0;
  25610. }
  25611. _ACEOF
  25612. if ac_fn_c_try_link "$LINENO"; then :
  25613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25614. $as_echo "yes" >&6; }
  25615. tst_links_gethostbyaddr_r="yes"
  25616. else
  25617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25618. $as_echo "no" >&6; }
  25619. tst_links_gethostbyaddr_r="no"
  25620. fi
  25621. rm -f core conftest.err conftest.$ac_objext \
  25622. conftest$ac_exeext conftest.$ac_ext
  25623. #
  25624. if test "$tst_links_gethostbyaddr_r" = "yes"; then
  25625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
  25626. $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
  25627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25628. /* end confdefs.h. */
  25629. $curl_includes_netdb
  25630. _ACEOF
  25631. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25632. $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
  25633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25634. $as_echo "yes" >&6; }
  25635. tst_proto_gethostbyaddr_r="yes"
  25636. else
  25637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25638. $as_echo "no" >&6; }
  25639. tst_proto_gethostbyaddr_r="no"
  25640. fi
  25641. rm -f conftest*
  25642. fi
  25643. #
  25644. if test "$tst_proto_gethostbyaddr_r" = "yes"; then
  25645. if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
  25646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
  25647. $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
  25648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25649. /* end confdefs.h. */
  25650. $curl_includes_netdb
  25651. int main (void)
  25652. {
  25653. if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
  25654. return 1;
  25655. ;
  25656. return 0;
  25657. }
  25658. _ACEOF
  25659. if ac_fn_c_try_compile "$LINENO"; then :
  25660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25661. $as_echo "yes" >&6; }
  25662. tst_compi_gethostbyaddr_r="yes"
  25663. tst_nargs_gethostbyaddr_r="5"
  25664. else
  25665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25666. $as_echo "no" >&6; }
  25667. tst_compi_gethostbyaddr_r="no"
  25668. fi
  25669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25670. fi
  25671. if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
  25672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
  25673. $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
  25674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25675. /* end confdefs.h. */
  25676. $curl_includes_netdb
  25677. int main (void)
  25678. {
  25679. if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
  25680. return 1;
  25681. ;
  25682. return 0;
  25683. }
  25684. _ACEOF
  25685. if ac_fn_c_try_compile "$LINENO"; then :
  25686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25687. $as_echo "yes" >&6; }
  25688. tst_compi_gethostbyaddr_r="yes"
  25689. tst_nargs_gethostbyaddr_r="7"
  25690. else
  25691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25692. $as_echo "no" >&6; }
  25693. tst_compi_gethostbyaddr_r="no"
  25694. fi
  25695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25696. fi
  25697. if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
  25698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
  25699. $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
  25700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25701. /* end confdefs.h. */
  25702. $curl_includes_netdb
  25703. int main (void)
  25704. {
  25705. if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
  25706. return 1;
  25707. ;
  25708. return 0;
  25709. }
  25710. _ACEOF
  25711. if ac_fn_c_try_compile "$LINENO"; then :
  25712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25713. $as_echo "yes" >&6; }
  25714. tst_compi_gethostbyaddr_r="yes"
  25715. tst_nargs_gethostbyaddr_r="8"
  25716. else
  25717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25718. $as_echo "no" >&6; }
  25719. tst_compi_gethostbyaddr_r="no"
  25720. fi
  25721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25722. fi
  25723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
  25724. $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
  25725. if test "$tst_compi_gethostbyaddr_r" = "yes"; then
  25726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25727. $as_echo "yes" >&6; }
  25728. else
  25729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25730. $as_echo "no" >&6; }
  25731. fi
  25732. fi
  25733. #
  25734. if test "$tst_compi_gethostbyaddr_r" = "yes"; then
  25735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
  25736. $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
  25737. if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
  25738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25739. $as_echo "yes" >&6; }
  25740. tst_allow_gethostbyaddr_r="yes"
  25741. else
  25742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25743. $as_echo "no" >&6; }
  25744. tst_allow_gethostbyaddr_r="no"
  25745. fi
  25746. fi
  25747. #
  25748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
  25749. $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
  25750. if test "$tst_links_gethostbyaddr_r" = "yes" &&
  25751. test "$tst_proto_gethostbyaddr_r" = "yes" &&
  25752. test "$tst_compi_gethostbyaddr_r" = "yes" &&
  25753. test "$tst_allow_gethostbyaddr_r" = "yes"; then
  25754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25755. $as_echo "yes" >&6; }
  25756. cat >>confdefs.h <<_ACEOF
  25757. #define HAVE_GETHOSTBYADDR_R 1
  25758. _ACEOF
  25759. #
  25760. if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
  25761. $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
  25762. elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
  25763. $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
  25764. elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
  25765. $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
  25766. fi
  25767. #
  25768. ac_cv_func_gethostbyaddr_r="yes"
  25769. else
  25770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25771. $as_echo "no" >&6; }
  25772. ac_cv_func_gethostbyaddr_r="no"
  25773. fi
  25774. #
  25775. tst_links_gethostbyname="unknown"
  25776. tst_proto_gethostbyname="unknown"
  25777. tst_compi_gethostbyname="unknown"
  25778. tst_allow_gethostbyname="unknown"
  25779. #
  25780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
  25781. $as_echo_n "checking if gethostbyname can be linked... " >&6; }
  25782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25783. /* end confdefs.h. */
  25784. $curl_includes_winsock2
  25785. $curl_includes_netdb
  25786. int main (void)
  25787. {
  25788. if(0 != gethostbyname(0))
  25789. return 1;
  25790. ;
  25791. return 0;
  25792. }
  25793. _ACEOF
  25794. if ac_fn_c_try_link "$LINENO"; then :
  25795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25796. $as_echo "yes" >&6; }
  25797. tst_links_gethostbyname="yes"
  25798. else
  25799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25800. $as_echo "no" >&6; }
  25801. tst_links_gethostbyname="no"
  25802. fi
  25803. rm -f core conftest.err conftest.$ac_objext \
  25804. conftest$ac_exeext conftest.$ac_ext
  25805. #
  25806. if test "$tst_links_gethostbyname" = "yes"; then
  25807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
  25808. $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
  25809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25810. /* end confdefs.h. */
  25811. $curl_includes_winsock2
  25812. $curl_includes_netdb
  25813. _ACEOF
  25814. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25815. $EGREP "gethostbyname" >/dev/null 2>&1; then :
  25816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25817. $as_echo "yes" >&6; }
  25818. tst_proto_gethostbyname="yes"
  25819. else
  25820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25821. $as_echo "no" >&6; }
  25822. tst_proto_gethostbyname="no"
  25823. fi
  25824. rm -f conftest*
  25825. fi
  25826. #
  25827. if test "$tst_proto_gethostbyname" = "yes"; then
  25828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
  25829. $as_echo_n "checking if gethostbyname is compilable... " >&6; }
  25830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25831. /* end confdefs.h. */
  25832. $curl_includes_winsock2
  25833. $curl_includes_netdb
  25834. int main (void)
  25835. {
  25836. if(0 != gethostbyname(0))
  25837. return 1;
  25838. ;
  25839. return 0;
  25840. }
  25841. _ACEOF
  25842. if ac_fn_c_try_compile "$LINENO"; then :
  25843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25844. $as_echo "yes" >&6; }
  25845. tst_compi_gethostbyname="yes"
  25846. else
  25847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25848. $as_echo "no" >&6; }
  25849. tst_compi_gethostbyname="no"
  25850. fi
  25851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25852. fi
  25853. #
  25854. if test "$tst_compi_gethostbyname" = "yes"; then
  25855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
  25856. $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
  25857. if test "x$curl_disallow_gethostbyname" != "xyes"; then
  25858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25859. $as_echo "yes" >&6; }
  25860. tst_allow_gethostbyname="yes"
  25861. else
  25862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25863. $as_echo "no" >&6; }
  25864. tst_allow_gethostbyname="no"
  25865. fi
  25866. fi
  25867. #
  25868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
  25869. $as_echo_n "checking if gethostbyname might be used... " >&6; }
  25870. if test "$tst_links_gethostbyname" = "yes" &&
  25871. test "$tst_proto_gethostbyname" = "yes" &&
  25872. test "$tst_compi_gethostbyname" = "yes" &&
  25873. test "$tst_allow_gethostbyname" = "yes"; then
  25874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25875. $as_echo "yes" >&6; }
  25876. cat >>confdefs.h <<_ACEOF
  25877. #define HAVE_GETHOSTBYNAME 1
  25878. _ACEOF
  25879. ac_cv_func_gethostbyname="yes"
  25880. else
  25881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25882. $as_echo "no" >&6; }
  25883. ac_cv_func_gethostbyname="no"
  25884. fi
  25885. #
  25886. tst_links_gethostbyname_r="unknown"
  25887. tst_proto_gethostbyname_r="unknown"
  25888. tst_compi_gethostbyname_r="unknown"
  25889. tst_allow_gethostbyname_r="unknown"
  25890. tst_nargs_gethostbyname_r="unknown"
  25891. #
  25892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
  25893. $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
  25894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25895. /* end confdefs.h. */
  25896. #define gethostbyname_r innocuous_gethostbyname_r
  25897. #ifdef __STDC__
  25898. # include <limits.h>
  25899. #else
  25900. # include <assert.h>
  25901. #endif
  25902. #undef gethostbyname_r
  25903. #ifdef __cplusplus
  25904. extern "C"
  25905. #endif
  25906. char gethostbyname_r ();
  25907. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  25908. choke me
  25909. #endif
  25910. int main (void)
  25911. {
  25912. return gethostbyname_r ();
  25913. ;
  25914. return 0;
  25915. }
  25916. _ACEOF
  25917. if ac_fn_c_try_link "$LINENO"; then :
  25918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25919. $as_echo "yes" >&6; }
  25920. tst_links_gethostbyname_r="yes"
  25921. else
  25922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25923. $as_echo "no" >&6; }
  25924. tst_links_gethostbyname_r="no"
  25925. fi
  25926. rm -f core conftest.err conftest.$ac_objext \
  25927. conftest$ac_exeext conftest.$ac_ext
  25928. #
  25929. if test "$tst_links_gethostbyname_r" = "yes"; then
  25930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
  25931. $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
  25932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25933. /* end confdefs.h. */
  25934. $curl_includes_netdb
  25935. _ACEOF
  25936. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25937. $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
  25938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25939. $as_echo "yes" >&6; }
  25940. tst_proto_gethostbyname_r="yes"
  25941. else
  25942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25943. $as_echo "no" >&6; }
  25944. tst_proto_gethostbyname_r="no"
  25945. fi
  25946. rm -f conftest*
  25947. fi
  25948. #
  25949. if test "$tst_proto_gethostbyname_r" = "yes"; then
  25950. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  25951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
  25952. $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
  25953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25954. /* end confdefs.h. */
  25955. $curl_includes_netdb
  25956. int main (void)
  25957. {
  25958. if(0 != gethostbyname_r(0, 0, 0))
  25959. return 1;
  25960. ;
  25961. return 0;
  25962. }
  25963. _ACEOF
  25964. if ac_fn_c_try_compile "$LINENO"; then :
  25965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25966. $as_echo "yes" >&6; }
  25967. tst_compi_gethostbyname_r="yes"
  25968. tst_nargs_gethostbyname_r="3"
  25969. else
  25970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25971. $as_echo "no" >&6; }
  25972. tst_compi_gethostbyname_r="no"
  25973. fi
  25974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25975. fi
  25976. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  25977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
  25978. $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
  25979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25980. /* end confdefs.h. */
  25981. $curl_includes_netdb
  25982. int main (void)
  25983. {
  25984. if(0 != gethostbyname_r(0, 0, 0, 0, 0))
  25985. return 1;
  25986. ;
  25987. return 0;
  25988. }
  25989. _ACEOF
  25990. if ac_fn_c_try_compile "$LINENO"; then :
  25991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25992. $as_echo "yes" >&6; }
  25993. tst_compi_gethostbyname_r="yes"
  25994. tst_nargs_gethostbyname_r="5"
  25995. else
  25996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25997. $as_echo "no" >&6; }
  25998. tst_compi_gethostbyname_r="no"
  25999. fi
  26000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26001. fi
  26002. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  26003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
  26004. $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
  26005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26006. /* end confdefs.h. */
  26007. $curl_includes_netdb
  26008. int main (void)
  26009. {
  26010. if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
  26011. return 1;
  26012. ;
  26013. return 0;
  26014. }
  26015. _ACEOF
  26016. if ac_fn_c_try_compile "$LINENO"; then :
  26017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26018. $as_echo "yes" >&6; }
  26019. tst_compi_gethostbyname_r="yes"
  26020. tst_nargs_gethostbyname_r="6"
  26021. else
  26022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26023. $as_echo "no" >&6; }
  26024. tst_compi_gethostbyname_r="no"
  26025. fi
  26026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26027. fi
  26028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
  26029. $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
  26030. if test "$tst_compi_gethostbyname_r" = "yes"; then
  26031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26032. $as_echo "yes" >&6; }
  26033. else
  26034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26035. $as_echo "no" >&6; }
  26036. fi
  26037. fi
  26038. #
  26039. if test "$tst_compi_gethostbyname_r" = "yes"; then
  26040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
  26041. $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
  26042. if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
  26043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26044. $as_echo "yes" >&6; }
  26045. tst_allow_gethostbyname_r="yes"
  26046. else
  26047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26048. $as_echo "no" >&6; }
  26049. tst_allow_gethostbyname_r="no"
  26050. fi
  26051. fi
  26052. #
  26053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
  26054. $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
  26055. if test "$tst_links_gethostbyname_r" = "yes" &&
  26056. test "$tst_proto_gethostbyname_r" = "yes" &&
  26057. test "$tst_compi_gethostbyname_r" = "yes" &&
  26058. test "$tst_allow_gethostbyname_r" = "yes"; then
  26059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26060. $as_echo "yes" >&6; }
  26061. cat >>confdefs.h <<_ACEOF
  26062. #define HAVE_GETHOSTBYNAME_R 1
  26063. _ACEOF
  26064. #
  26065. if test "$tst_nargs_gethostbyname_r" -eq "3"; then
  26066. $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
  26067. elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
  26068. $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
  26069. elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
  26070. $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
  26071. fi
  26072. #
  26073. ac_cv_func_gethostbyname_r="yes"
  26074. else
  26075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26076. $as_echo "no" >&6; }
  26077. ac_cv_func_gethostbyname_r="no"
  26078. fi
  26079. #
  26080. tst_links_gethostname="unknown"
  26081. tst_proto_gethostname="unknown"
  26082. tst_compi_gethostname="unknown"
  26083. tst_allow_gethostname="unknown"
  26084. #
  26085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
  26086. $as_echo_n "checking if gethostname can be linked... " >&6; }
  26087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26088. /* end confdefs.h. */
  26089. $curl_includes_winsock2
  26090. $curl_includes_unistd
  26091. int main (void)
  26092. {
  26093. if(0 != gethostname(0, 0))
  26094. return 1;
  26095. ;
  26096. return 0;
  26097. }
  26098. _ACEOF
  26099. if ac_fn_c_try_link "$LINENO"; then :
  26100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26101. $as_echo "yes" >&6; }
  26102. tst_links_gethostname="yes"
  26103. else
  26104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26105. $as_echo "no" >&6; }
  26106. tst_links_gethostname="no"
  26107. fi
  26108. rm -f core conftest.err conftest.$ac_objext \
  26109. conftest$ac_exeext conftest.$ac_ext
  26110. #
  26111. if test "$tst_links_gethostname" = "yes"; then
  26112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
  26113. $as_echo_n "checking if gethostname is prototyped... " >&6; }
  26114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26115. /* end confdefs.h. */
  26116. $curl_includes_winsock2
  26117. $curl_includes_unistd
  26118. _ACEOF
  26119. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26120. $EGREP "gethostname" >/dev/null 2>&1; then :
  26121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26122. $as_echo "yes" >&6; }
  26123. tst_proto_gethostname="yes"
  26124. else
  26125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26126. $as_echo "no" >&6; }
  26127. tst_proto_gethostname="no"
  26128. fi
  26129. rm -f conftest*
  26130. fi
  26131. #
  26132. if test "$tst_proto_gethostname" = "yes"; then
  26133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
  26134. $as_echo_n "checking if gethostname is compilable... " >&6; }
  26135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26136. /* end confdefs.h. */
  26137. $curl_includes_winsock2
  26138. $curl_includes_unistd
  26139. int main (void)
  26140. {
  26141. if(0 != gethostname(0, 0))
  26142. return 1;
  26143. ;
  26144. return 0;
  26145. }
  26146. _ACEOF
  26147. if ac_fn_c_try_compile "$LINENO"; then :
  26148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26149. $as_echo "yes" >&6; }
  26150. tst_compi_gethostname="yes"
  26151. else
  26152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26153. $as_echo "no" >&6; }
  26154. tst_compi_gethostname="no"
  26155. fi
  26156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26157. fi
  26158. #
  26159. if test "$tst_compi_gethostname" = "yes"; then
  26160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
  26161. $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
  26162. tst_gethostname_type_arg2="unknown"
  26163. for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
  26164. for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
  26165. if test "$tst_gethostname_type_arg2" = "unknown"; then
  26166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26167. /* end confdefs.h. */
  26168. $curl_includes_winsock2
  26169. $curl_includes_unistd
  26170. $curl_preprocess_callconv
  26171. extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
  26172. int main (void)
  26173. {
  26174. if(0 != gethostname(0, 0))
  26175. return 1;
  26176. ;
  26177. return 0;
  26178. }
  26179. _ACEOF
  26180. if ac_fn_c_try_compile "$LINENO"; then :
  26181. tst_gethostname_type_arg2="$tst_arg2"
  26182. fi
  26183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26184. fi
  26185. done
  26186. done
  26187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
  26188. $as_echo "$tst_gethostname_type_arg2" >&6; }
  26189. if test "$tst_gethostname_type_arg2" != "unknown"; then
  26190. cat >>confdefs.h <<_ACEOF
  26191. #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
  26192. _ACEOF
  26193. fi
  26194. fi
  26195. #
  26196. if test "$tst_compi_gethostname" = "yes"; then
  26197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
  26198. $as_echo_n "checking if gethostname usage allowed... " >&6; }
  26199. if test "x$curl_disallow_gethostname" != "xyes"; then
  26200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26201. $as_echo "yes" >&6; }
  26202. tst_allow_gethostname="yes"
  26203. else
  26204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26205. $as_echo "no" >&6; }
  26206. tst_allow_gethostname="no"
  26207. fi
  26208. fi
  26209. #
  26210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
  26211. $as_echo_n "checking if gethostname might be used... " >&6; }
  26212. if test "$tst_links_gethostname" = "yes" &&
  26213. test "$tst_proto_gethostname" = "yes" &&
  26214. test "$tst_compi_gethostname" = "yes" &&
  26215. test "$tst_allow_gethostname" = "yes"; then
  26216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26217. $as_echo "yes" >&6; }
  26218. cat >>confdefs.h <<_ACEOF
  26219. #define HAVE_GETHOSTNAME 1
  26220. _ACEOF
  26221. ac_cv_func_gethostname="yes"
  26222. else
  26223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26224. $as_echo "no" >&6; }
  26225. ac_cv_func_gethostname="no"
  26226. fi
  26227. #
  26228. tst_links_getifaddrs="unknown"
  26229. tst_proto_getifaddrs="unknown"
  26230. tst_compi_getifaddrs="unknown"
  26231. tst_works_getifaddrs="unknown"
  26232. tst_allow_getifaddrs="unknown"
  26233. #
  26234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
  26235. $as_echo_n "checking if getifaddrs can be linked... " >&6; }
  26236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26237. /* end confdefs.h. */
  26238. #define getifaddrs innocuous_getifaddrs
  26239. #ifdef __STDC__
  26240. # include <limits.h>
  26241. #else
  26242. # include <assert.h>
  26243. #endif
  26244. #undef getifaddrs
  26245. #ifdef __cplusplus
  26246. extern "C"
  26247. #endif
  26248. char getifaddrs ();
  26249. #if defined __stub_getifaddrs || defined __stub___getifaddrs
  26250. choke me
  26251. #endif
  26252. int main (void)
  26253. {
  26254. return getifaddrs ();
  26255. ;
  26256. return 0;
  26257. }
  26258. _ACEOF
  26259. if ac_fn_c_try_link "$LINENO"; then :
  26260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26261. $as_echo "yes" >&6; }
  26262. tst_links_getifaddrs="yes"
  26263. else
  26264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26265. $as_echo "no" >&6; }
  26266. tst_links_getifaddrs="no"
  26267. fi
  26268. rm -f core conftest.err conftest.$ac_objext \
  26269. conftest$ac_exeext conftest.$ac_ext
  26270. #
  26271. if test "$tst_links_getifaddrs" = "yes"; then
  26272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
  26273. $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
  26274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26275. /* end confdefs.h. */
  26276. $curl_includes_ifaddrs
  26277. _ACEOF
  26278. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26279. $EGREP "getifaddrs" >/dev/null 2>&1; then :
  26280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26281. $as_echo "yes" >&6; }
  26282. tst_proto_getifaddrs="yes"
  26283. else
  26284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26285. $as_echo "no" >&6; }
  26286. tst_proto_getifaddrs="no"
  26287. fi
  26288. rm -f conftest*
  26289. fi
  26290. #
  26291. if test "$tst_proto_getifaddrs" = "yes"; then
  26292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
  26293. $as_echo_n "checking if getifaddrs is compilable... " >&6; }
  26294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26295. /* end confdefs.h. */
  26296. $curl_includes_ifaddrs
  26297. int main (void)
  26298. {
  26299. if(0 != getifaddrs(0))
  26300. return 1;
  26301. ;
  26302. return 0;
  26303. }
  26304. _ACEOF
  26305. if ac_fn_c_try_compile "$LINENO"; then :
  26306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26307. $as_echo "yes" >&6; }
  26308. tst_compi_getifaddrs="yes"
  26309. else
  26310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26311. $as_echo "no" >&6; }
  26312. tst_compi_getifaddrs="no"
  26313. fi
  26314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26315. fi
  26316. #
  26317. if test "x$cross_compiling" != "xyes" &&
  26318. test "$tst_compi_getifaddrs" = "yes"; then
  26319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
  26320. $as_echo_n "checking if getifaddrs seems to work... " >&6; }
  26321. if test "$cross_compiling" = yes; then :
  26322. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  26323. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  26324. as_fn_error $? "cannot run test program while cross compiling
  26325. See \`config.log' for more details" "$LINENO" 5; }
  26326. else
  26327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26328. /* end confdefs.h. */
  26329. $curl_includes_stdlib
  26330. $curl_includes_ifaddrs
  26331. int main (void)
  26332. {
  26333. struct ifaddrs *ifa = 0;
  26334. int error;
  26335. error = getifaddrs(&ifa);
  26336. if(error || !ifa)
  26337. exit(1); /* fail */
  26338. else
  26339. exit(0);
  26340. ;
  26341. return 0;
  26342. }
  26343. _ACEOF
  26344. if ac_fn_c_try_run "$LINENO"; then :
  26345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26346. $as_echo "yes" >&6; }
  26347. tst_works_getifaddrs="yes"
  26348. else
  26349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26350. $as_echo "no" >&6; }
  26351. tst_works_getifaddrs="no"
  26352. fi
  26353. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  26354. conftest.$ac_objext conftest.beam conftest.$ac_ext
  26355. fi
  26356. fi
  26357. #
  26358. if test "$tst_compi_getifaddrs" = "yes" &&
  26359. test "$tst_works_getifaddrs" != "no"; then
  26360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
  26361. $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
  26362. if test "x$curl_disallow_getifaddrs" != "xyes"; then
  26363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26364. $as_echo "yes" >&6; }
  26365. tst_allow_getifaddrs="yes"
  26366. else
  26367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26368. $as_echo "no" >&6; }
  26369. tst_allow_getifaddrs="no"
  26370. fi
  26371. fi
  26372. #
  26373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
  26374. $as_echo_n "checking if getifaddrs might be used... " >&6; }
  26375. if test "$tst_links_getifaddrs" = "yes" &&
  26376. test "$tst_proto_getifaddrs" = "yes" &&
  26377. test "$tst_compi_getifaddrs" = "yes" &&
  26378. test "$tst_allow_getifaddrs" = "yes" &&
  26379. test "$tst_works_getifaddrs" != "no"; then
  26380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26381. $as_echo "yes" >&6; }
  26382. cat >>confdefs.h <<_ACEOF
  26383. #define HAVE_GETIFADDRS 1
  26384. _ACEOF
  26385. ac_cv_func_getifaddrs="yes"
  26386. else
  26387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26388. $as_echo "no" >&6; }
  26389. ac_cv_func_getifaddrs="no"
  26390. fi
  26391. #
  26392. tst_links_getservbyport_r="unknown"
  26393. tst_proto_getservbyport_r="unknown"
  26394. tst_compi_getservbyport_r="unknown"
  26395. tst_allow_getservbyport_r="unknown"
  26396. tst_nargs_getservbyport_r="unknown"
  26397. #
  26398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
  26399. $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
  26400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26401. /* end confdefs.h. */
  26402. #define getservbyport_r innocuous_getservbyport_r
  26403. #ifdef __STDC__
  26404. # include <limits.h>
  26405. #else
  26406. # include <assert.h>
  26407. #endif
  26408. #undef getservbyport_r
  26409. #ifdef __cplusplus
  26410. extern "C"
  26411. #endif
  26412. char getservbyport_r ();
  26413. #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
  26414. choke me
  26415. #endif
  26416. int main (void)
  26417. {
  26418. return getservbyport_r ();
  26419. ;
  26420. return 0;
  26421. }
  26422. _ACEOF
  26423. if ac_fn_c_try_link "$LINENO"; then :
  26424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26425. $as_echo "yes" >&6; }
  26426. tst_links_getservbyport_r="yes"
  26427. else
  26428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26429. $as_echo "no" >&6; }
  26430. tst_links_getservbyport_r="no"
  26431. fi
  26432. rm -f core conftest.err conftest.$ac_objext \
  26433. conftest$ac_exeext conftest.$ac_ext
  26434. #
  26435. if test "$tst_links_getservbyport_r" = "yes"; then
  26436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
  26437. $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
  26438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26439. /* end confdefs.h. */
  26440. $curl_includes_netdb
  26441. _ACEOF
  26442. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26443. $EGREP "getservbyport_r" >/dev/null 2>&1; then :
  26444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26445. $as_echo "yes" >&6; }
  26446. tst_proto_getservbyport_r="yes"
  26447. else
  26448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26449. $as_echo "no" >&6; }
  26450. tst_proto_getservbyport_r="no"
  26451. fi
  26452. rm -f conftest*
  26453. fi
  26454. #
  26455. if test "$tst_proto_getservbyport_r" = "yes"; then
  26456. if test "$tst_nargs_getservbyport_r" = "unknown"; then
  26457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
  26458. $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
  26459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26460. /* end confdefs.h. */
  26461. $curl_includes_netdb
  26462. int main (void)
  26463. {
  26464. if(0 != getservbyport_r(0, 0, 0, 0))
  26465. return 1;
  26466. ;
  26467. return 0;
  26468. }
  26469. _ACEOF
  26470. if ac_fn_c_try_compile "$LINENO"; then :
  26471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26472. $as_echo "yes" >&6; }
  26473. tst_compi_getservbyport_r="yes"
  26474. tst_nargs_getservbyport_r="4"
  26475. else
  26476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26477. $as_echo "no" >&6; }
  26478. tst_compi_getservbyport_r="no"
  26479. fi
  26480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26481. fi
  26482. if test "$tst_nargs_getservbyport_r" = "unknown"; then
  26483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
  26484. $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
  26485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26486. /* end confdefs.h. */
  26487. $curl_includes_netdb
  26488. int main (void)
  26489. {
  26490. if(0 != getservbyport_r(0, 0, 0, 0, 0))
  26491. return 1;
  26492. ;
  26493. return 0;
  26494. }
  26495. _ACEOF
  26496. if ac_fn_c_try_compile "$LINENO"; then :
  26497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26498. $as_echo "yes" >&6; }
  26499. tst_compi_getservbyport_r="yes"
  26500. tst_nargs_getservbyport_r="5"
  26501. else
  26502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26503. $as_echo "no" >&6; }
  26504. tst_compi_getservbyport_r="no"
  26505. fi
  26506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26507. fi
  26508. if test "$tst_nargs_getservbyport_r" = "unknown"; then
  26509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
  26510. $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
  26511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26512. /* end confdefs.h. */
  26513. $curl_includes_netdb
  26514. int main (void)
  26515. {
  26516. if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
  26517. return 1;
  26518. ;
  26519. return 0;
  26520. }
  26521. _ACEOF
  26522. if ac_fn_c_try_compile "$LINENO"; then :
  26523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26524. $as_echo "yes" >&6; }
  26525. tst_compi_getservbyport_r="yes"
  26526. tst_nargs_getservbyport_r="6"
  26527. else
  26528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26529. $as_echo "no" >&6; }
  26530. tst_compi_getservbyport_r="no"
  26531. fi
  26532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26533. fi
  26534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
  26535. $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
  26536. if test "$tst_compi_getservbyport_r" = "yes"; then
  26537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26538. $as_echo "yes" >&6; }
  26539. else
  26540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26541. $as_echo "no" >&6; }
  26542. fi
  26543. fi
  26544. #
  26545. if test "$tst_compi_getservbyport_r" = "yes"; then
  26546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
  26547. $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
  26548. if test "x$curl_disallow_getservbyport_r" != "xyes"; then
  26549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26550. $as_echo "yes" >&6; }
  26551. tst_allow_getservbyport_r="yes"
  26552. else
  26553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26554. $as_echo "no" >&6; }
  26555. tst_allow_getservbyport_r="no"
  26556. fi
  26557. fi
  26558. #
  26559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
  26560. $as_echo_n "checking if getservbyport_r might be used... " >&6; }
  26561. if test "$tst_links_getservbyport_r" = "yes" &&
  26562. test "$tst_proto_getservbyport_r" = "yes" &&
  26563. test "$tst_compi_getservbyport_r" = "yes" &&
  26564. test "$tst_allow_getservbyport_r" = "yes"; then
  26565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26566. $as_echo "yes" >&6; }
  26567. cat >>confdefs.h <<_ACEOF
  26568. #define HAVE_GETSERVBYPORT_R 1
  26569. _ACEOF
  26570. cat >>confdefs.h <<_ACEOF
  26571. #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
  26572. _ACEOF
  26573. if test "$tst_nargs_getservbyport_r" -eq "4"; then
  26574. $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
  26575. else
  26576. $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
  26577. fi
  26578. ac_cv_func_getservbyport_r="yes"
  26579. else
  26580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26581. $as_echo "no" >&6; }
  26582. ac_cv_func_getservbyport_r="no"
  26583. fi
  26584. curl_includes_time="\
  26585. /* includes start */
  26586. #ifdef HAVE_SYS_TYPES_H
  26587. # include <sys/types.h>
  26588. #endif
  26589. #ifdef HAVE_SYS_TIME_H
  26590. # include <sys/time.h>
  26591. # ifdef TIME_WITH_SYS_TIME
  26592. # include <time.h>
  26593. # endif
  26594. #else
  26595. # ifdef HAVE_TIME_H
  26596. # include <time.h>
  26597. # endif
  26598. #endif
  26599. /* includes end */"
  26600. for ac_header in sys/types.h sys/time.h time.h
  26601. do :
  26602. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26603. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
  26604. "
  26605. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  26606. cat >>confdefs.h <<_ACEOF
  26607. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26608. _ACEOF
  26609. fi
  26610. done
  26611. #
  26612. tst_links_gmtime_r="unknown"
  26613. tst_proto_gmtime_r="unknown"
  26614. tst_compi_gmtime_r="unknown"
  26615. tst_works_gmtime_r="unknown"
  26616. tst_allow_gmtime_r="unknown"
  26617. #
  26618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
  26619. $as_echo_n "checking if gmtime_r can be linked... " >&6; }
  26620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26621. /* end confdefs.h. */
  26622. #define gmtime_r innocuous_gmtime_r
  26623. #ifdef __STDC__
  26624. # include <limits.h>
  26625. #else
  26626. # include <assert.h>
  26627. #endif
  26628. #undef gmtime_r
  26629. #ifdef __cplusplus
  26630. extern "C"
  26631. #endif
  26632. char gmtime_r ();
  26633. #if defined __stub_gmtime_r || defined __stub___gmtime_r
  26634. choke me
  26635. #endif
  26636. int main (void)
  26637. {
  26638. return gmtime_r ();
  26639. ;
  26640. return 0;
  26641. }
  26642. _ACEOF
  26643. if ac_fn_c_try_link "$LINENO"; then :
  26644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26645. $as_echo "yes" >&6; }
  26646. tst_links_gmtime_r="yes"
  26647. else
  26648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26649. $as_echo "no" >&6; }
  26650. tst_links_gmtime_r="no"
  26651. fi
  26652. rm -f core conftest.err conftest.$ac_objext \
  26653. conftest$ac_exeext conftest.$ac_ext
  26654. #
  26655. if test "$tst_links_gmtime_r" = "yes"; then
  26656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
  26657. $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
  26658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26659. /* end confdefs.h. */
  26660. $curl_includes_time
  26661. _ACEOF
  26662. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26663. $EGREP "gmtime_r" >/dev/null 2>&1; then :
  26664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26665. $as_echo "yes" >&6; }
  26666. tst_proto_gmtime_r="yes"
  26667. else
  26668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26669. $as_echo "no" >&6; }
  26670. tst_proto_gmtime_r="no"
  26671. fi
  26672. rm -f conftest*
  26673. fi
  26674. #
  26675. if test "$tst_proto_gmtime_r" = "yes"; then
  26676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
  26677. $as_echo_n "checking if gmtime_r is compilable... " >&6; }
  26678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26679. /* end confdefs.h. */
  26680. $curl_includes_time
  26681. int main (void)
  26682. {
  26683. if(0 != gmtime_r(0, 0))
  26684. return 1;
  26685. ;
  26686. return 0;
  26687. }
  26688. _ACEOF
  26689. if ac_fn_c_try_compile "$LINENO"; then :
  26690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26691. $as_echo "yes" >&6; }
  26692. tst_compi_gmtime_r="yes"
  26693. else
  26694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26695. $as_echo "no" >&6; }
  26696. tst_compi_gmtime_r="no"
  26697. fi
  26698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26699. fi
  26700. #
  26701. if test "x$cross_compiling" != "xyes" &&
  26702. test "$tst_compi_gmtime_r" = "yes"; then
  26703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
  26704. $as_echo_n "checking if gmtime_r seems to work... " >&6; }
  26705. if test "$cross_compiling" = yes; then :
  26706. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  26707. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  26708. as_fn_error $? "cannot run test program while cross compiling
  26709. See \`config.log' for more details" "$LINENO" 5; }
  26710. else
  26711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26712. /* end confdefs.h. */
  26713. $curl_includes_stdlib
  26714. $curl_includes_time
  26715. int main (void)
  26716. {
  26717. time_t local = 1170352587;
  26718. struct tm *gmt = 0;
  26719. struct tm result;
  26720. gmt = gmtime_r(&local, &result);
  26721. if(gmt)
  26722. exit(0);
  26723. else
  26724. exit(1);
  26725. ;
  26726. return 0;
  26727. }
  26728. _ACEOF
  26729. if ac_fn_c_try_run "$LINENO"; then :
  26730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26731. $as_echo "yes" >&6; }
  26732. tst_works_gmtime_r="yes"
  26733. else
  26734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26735. $as_echo "no" >&6; }
  26736. tst_works_gmtime_r="no"
  26737. fi
  26738. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  26739. conftest.$ac_objext conftest.beam conftest.$ac_ext
  26740. fi
  26741. fi
  26742. #
  26743. if test "$tst_compi_gmtime_r" = "yes" &&
  26744. test "$tst_works_gmtime_r" != "no"; then
  26745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
  26746. $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
  26747. if test "x$curl_disallow_gmtime_r" != "xyes"; then
  26748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26749. $as_echo "yes" >&6; }
  26750. tst_allow_gmtime_r="yes"
  26751. else
  26752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26753. $as_echo "no" >&6; }
  26754. tst_allow_gmtime_r="no"
  26755. fi
  26756. fi
  26757. #
  26758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
  26759. $as_echo_n "checking if gmtime_r might be used... " >&6; }
  26760. if test "$tst_links_gmtime_r" = "yes" &&
  26761. test "$tst_proto_gmtime_r" = "yes" &&
  26762. test "$tst_compi_gmtime_r" = "yes" &&
  26763. test "$tst_allow_gmtime_r" = "yes" &&
  26764. test "$tst_works_gmtime_r" != "no"; then
  26765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26766. $as_echo "yes" >&6; }
  26767. cat >>confdefs.h <<_ACEOF
  26768. #define HAVE_GMTIME_R 1
  26769. _ACEOF
  26770. ac_cv_func_gmtime_r="yes"
  26771. else
  26772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26773. $as_echo "no" >&6; }
  26774. ac_cv_func_gmtime_r="no"
  26775. fi
  26776. curl_includes_arpa_inet="\
  26777. /* includes start */
  26778. #ifdef HAVE_SYS_TYPES_H
  26779. # include <sys/types.h>
  26780. #endif
  26781. #ifdef HAVE_SYS_SOCKET_H
  26782. # include <sys/socket.h>
  26783. #endif
  26784. #ifdef HAVE_NETINET_IN_H
  26785. # include <netinet/in.h>
  26786. #endif
  26787. #ifdef HAVE_ARPA_INET_H
  26788. # include <arpa/inet.h>
  26789. #endif
  26790. /* includes end */"
  26791. for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
  26792. do :
  26793. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26794. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
  26795. "
  26796. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  26797. cat >>confdefs.h <<_ACEOF
  26798. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26799. _ACEOF
  26800. fi
  26801. done
  26802. #
  26803. tst_links_inet_ntoa_r="unknown"
  26804. tst_proto_inet_ntoa_r="unknown"
  26805. tst_compi_inet_ntoa_r="unknown"
  26806. tst_allow_inet_ntoa_r="unknown"
  26807. tst_nargs_inet_ntoa_r="unknown"
  26808. #
  26809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
  26810. $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
  26811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26812. /* end confdefs.h. */
  26813. #define inet_ntoa_r innocuous_inet_ntoa_r
  26814. #ifdef __STDC__
  26815. # include <limits.h>
  26816. #else
  26817. # include <assert.h>
  26818. #endif
  26819. #undef inet_ntoa_r
  26820. #ifdef __cplusplus
  26821. extern "C"
  26822. #endif
  26823. char inet_ntoa_r ();
  26824. #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
  26825. choke me
  26826. #endif
  26827. int main (void)
  26828. {
  26829. return inet_ntoa_r ();
  26830. ;
  26831. return 0;
  26832. }
  26833. _ACEOF
  26834. if ac_fn_c_try_link "$LINENO"; then :
  26835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26836. $as_echo "yes" >&6; }
  26837. tst_links_inet_ntoa_r="yes"
  26838. else
  26839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26840. $as_echo "no" >&6; }
  26841. tst_links_inet_ntoa_r="no"
  26842. fi
  26843. rm -f core conftest.err conftest.$ac_objext \
  26844. conftest$ac_exeext conftest.$ac_ext
  26845. #
  26846. if test "$tst_links_inet_ntoa_r" = "yes"; then
  26847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
  26848. $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
  26849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26850. /* end confdefs.h. */
  26851. $curl_includes_arpa_inet
  26852. _ACEOF
  26853. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26854. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
  26855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26856. $as_echo "yes" >&6; }
  26857. tst_proto_inet_ntoa_r="yes"
  26858. else
  26859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26860. $as_echo "no" >&6; }
  26861. tst_proto_inet_ntoa_r="no"
  26862. fi
  26863. rm -f conftest*
  26864. fi
  26865. #
  26866. if test "$tst_proto_inet_ntoa_r" = "yes"; then
  26867. if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
  26868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
  26869. $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
  26870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26871. /* end confdefs.h. */
  26872. $curl_includes_arpa_inet
  26873. int main (void)
  26874. {
  26875. struct in_addr addr;
  26876. if(0 != inet_ntoa_r(addr, 0))
  26877. return 1;
  26878. ;
  26879. return 0;
  26880. }
  26881. _ACEOF
  26882. if ac_fn_c_try_compile "$LINENO"; then :
  26883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26884. $as_echo "yes" >&6; }
  26885. tst_compi_inet_ntoa_r="yes"
  26886. tst_nargs_inet_ntoa_r="2"
  26887. else
  26888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26889. $as_echo "no" >&6; }
  26890. tst_compi_inet_ntoa_r="no"
  26891. fi
  26892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26893. fi
  26894. if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
  26895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
  26896. $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
  26897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26898. /* end confdefs.h. */
  26899. $curl_includes_arpa_inet
  26900. int main (void)
  26901. {
  26902. struct in_addr addr;
  26903. if(0 != inet_ntoa_r(addr, 0, 0))
  26904. return 1;
  26905. ;
  26906. return 0;
  26907. }
  26908. _ACEOF
  26909. if ac_fn_c_try_compile "$LINENO"; then :
  26910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26911. $as_echo "yes" >&6; }
  26912. tst_compi_inet_ntoa_r="yes"
  26913. tst_nargs_inet_ntoa_r="3"
  26914. else
  26915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26916. $as_echo "no" >&6; }
  26917. tst_compi_inet_ntoa_r="no"
  26918. fi
  26919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26920. fi
  26921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
  26922. $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
  26923. if test "$tst_compi_inet_ntoa_r" = "yes"; then
  26924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26925. $as_echo "yes" >&6; }
  26926. else
  26927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26928. $as_echo "no" >&6; }
  26929. fi
  26930. fi
  26931. #
  26932. if test "$tst_compi_inet_ntoa_r" = "yes"; then
  26933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
  26934. $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
  26935. if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
  26936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26937. $as_echo "yes" >&6; }
  26938. tst_allow_inet_ntoa_r="yes"
  26939. else
  26940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26941. $as_echo "no" >&6; }
  26942. tst_allow_inet_ntoa_r="no"
  26943. fi
  26944. fi
  26945. #
  26946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
  26947. $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
  26948. if test "$tst_links_inet_ntoa_r" = "yes" &&
  26949. test "$tst_proto_inet_ntoa_r" = "yes" &&
  26950. test "$tst_compi_inet_ntoa_r" = "yes" &&
  26951. test "$tst_allow_inet_ntoa_r" = "yes"; then
  26952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26953. $as_echo "yes" >&6; }
  26954. cat >>confdefs.h <<_ACEOF
  26955. #define HAVE_INET_NTOA_R 1
  26956. _ACEOF
  26957. #
  26958. if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
  26959. $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
  26960. elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
  26961. $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
  26962. fi
  26963. #
  26964. ac_cv_func_inet_ntoa_r="yes"
  26965. else
  26966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26967. $as_echo "no" >&6; }
  26968. ac_cv_func_inet_ntoa_r="no"
  26969. fi
  26970. #
  26971. tst_links_inet_ntop="unknown"
  26972. tst_proto_inet_ntop="unknown"
  26973. tst_compi_inet_ntop="unknown"
  26974. tst_works_inet_ntop="unknown"
  26975. tst_allow_inet_ntop="unknown"
  26976. #
  26977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
  26978. $as_echo_n "checking if inet_ntop can be linked... " >&6; }
  26979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26980. /* end confdefs.h. */
  26981. #define inet_ntop innocuous_inet_ntop
  26982. #ifdef __STDC__
  26983. # include <limits.h>
  26984. #else
  26985. # include <assert.h>
  26986. #endif
  26987. #undef inet_ntop
  26988. #ifdef __cplusplus
  26989. extern "C"
  26990. #endif
  26991. char inet_ntop ();
  26992. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  26993. choke me
  26994. #endif
  26995. int main (void)
  26996. {
  26997. return inet_ntop ();
  26998. ;
  26999. return 0;
  27000. }
  27001. _ACEOF
  27002. if ac_fn_c_try_link "$LINENO"; then :
  27003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27004. $as_echo "yes" >&6; }
  27005. tst_links_inet_ntop="yes"
  27006. else
  27007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27008. $as_echo "no" >&6; }
  27009. tst_links_inet_ntop="no"
  27010. fi
  27011. rm -f core conftest.err conftest.$ac_objext \
  27012. conftest$ac_exeext conftest.$ac_ext
  27013. #
  27014. if test "$tst_links_inet_ntop" = "yes"; then
  27015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
  27016. $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
  27017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27018. /* end confdefs.h. */
  27019. $curl_includes_arpa_inet
  27020. _ACEOF
  27021. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27022. $EGREP "inet_ntop" >/dev/null 2>&1; then :
  27023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27024. $as_echo "yes" >&6; }
  27025. tst_proto_inet_ntop="yes"
  27026. else
  27027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27028. $as_echo "no" >&6; }
  27029. tst_proto_inet_ntop="no"
  27030. fi
  27031. rm -f conftest*
  27032. fi
  27033. #
  27034. if test "$tst_proto_inet_ntop" = "yes"; then
  27035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
  27036. $as_echo_n "checking if inet_ntop is compilable... " >&6; }
  27037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27038. /* end confdefs.h. */
  27039. $curl_includes_arpa_inet
  27040. int main (void)
  27041. {
  27042. if(0 != inet_ntop(0, 0, 0, 0))
  27043. return 1;
  27044. ;
  27045. return 0;
  27046. }
  27047. _ACEOF
  27048. if ac_fn_c_try_compile "$LINENO"; then :
  27049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27050. $as_echo "yes" >&6; }
  27051. tst_compi_inet_ntop="yes"
  27052. else
  27053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27054. $as_echo "no" >&6; }
  27055. tst_compi_inet_ntop="no"
  27056. fi
  27057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27058. fi
  27059. #
  27060. if test "x$cross_compiling" != "xyes" &&
  27061. test "$tst_compi_inet_ntop" = "yes"; then
  27062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
  27063. $as_echo_n "checking if inet_ntop seems to work... " >&6; }
  27064. if test "$cross_compiling" = yes; then :
  27065. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  27066. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27067. as_fn_error $? "cannot run test program while cross compiling
  27068. See \`config.log' for more details" "$LINENO" 5; }
  27069. else
  27070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27071. /* end confdefs.h. */
  27072. $curl_includes_stdlib
  27073. $curl_includes_arpa_inet
  27074. $curl_includes_string
  27075. int main (void)
  27076. {
  27077. char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
  27078. char ipv4res[sizeof "255.255.255.255"];
  27079. unsigned char ipv6a[26];
  27080. unsigned char ipv4a[5];
  27081. char *ipv6ptr = 0;
  27082. char *ipv4ptr = 0;
  27083. /* - */
  27084. ipv4res[0] = '\0';
  27085. ipv4a[0] = 0xc0;
  27086. ipv4a[1] = 0xa8;
  27087. ipv4a[2] = 0x64;
  27088. ipv4a[3] = 0x01;
  27089. ipv4a[4] = 0x01;
  27090. /* - */
  27091. ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
  27092. if(!ipv4ptr)
  27093. exit(1); /* fail */
  27094. if(ipv4ptr != ipv4res)
  27095. exit(1); /* fail */
  27096. if(!ipv4ptr[0])
  27097. exit(1); /* fail */
  27098. if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
  27099. exit(1); /* fail */
  27100. /* - */
  27101. ipv6res[0] = '\0';
  27102. memset(ipv6a, 0, sizeof(ipv6a));
  27103. ipv6a[0] = 0xfe;
  27104. ipv6a[1] = 0x80;
  27105. ipv6a[8] = 0x02;
  27106. ipv6a[9] = 0x14;
  27107. ipv6a[10] = 0x4f;
  27108. ipv6a[11] = 0xff;
  27109. ipv6a[12] = 0xfe;
  27110. ipv6a[13] = 0x0b;
  27111. ipv6a[14] = 0x76;
  27112. ipv6a[15] = 0xc8;
  27113. ipv6a[25] = 0x01;
  27114. /* - */
  27115. ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
  27116. if(!ipv6ptr)
  27117. exit(1); /* fail */
  27118. if(ipv6ptr != ipv6res)
  27119. exit(1); /* fail */
  27120. if(!ipv6ptr[0])
  27121. exit(1); /* fail */
  27122. if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
  27123. exit(1); /* fail */
  27124. /* - */
  27125. exit(0);
  27126. ;
  27127. return 0;
  27128. }
  27129. _ACEOF
  27130. if ac_fn_c_try_run "$LINENO"; then :
  27131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27132. $as_echo "yes" >&6; }
  27133. tst_works_inet_ntop="yes"
  27134. else
  27135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27136. $as_echo "no" >&6; }
  27137. tst_works_inet_ntop="no"
  27138. fi
  27139. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  27140. conftest.$ac_objext conftest.beam conftest.$ac_ext
  27141. fi
  27142. fi
  27143. #
  27144. if test "$tst_compi_inet_ntop" = "yes" &&
  27145. test "$tst_works_inet_ntop" != "no"; then
  27146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
  27147. $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
  27148. if test "x$curl_disallow_inet_ntop" != "xyes"; then
  27149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27150. $as_echo "yes" >&6; }
  27151. tst_allow_inet_ntop="yes"
  27152. else
  27153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27154. $as_echo "no" >&6; }
  27155. tst_allow_inet_ntop="no"
  27156. fi
  27157. fi
  27158. #
  27159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
  27160. $as_echo_n "checking if inet_ntop might be used... " >&6; }
  27161. if test "$tst_links_inet_ntop" = "yes" &&
  27162. test "$tst_proto_inet_ntop" = "yes" &&
  27163. test "$tst_compi_inet_ntop" = "yes" &&
  27164. test "$tst_allow_inet_ntop" = "yes" &&
  27165. test "$tst_works_inet_ntop" != "no"; then
  27166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27167. $as_echo "yes" >&6; }
  27168. cat >>confdefs.h <<_ACEOF
  27169. #define HAVE_INET_NTOP 1
  27170. _ACEOF
  27171. ac_cv_func_inet_ntop="yes"
  27172. else
  27173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27174. $as_echo "no" >&6; }
  27175. ac_cv_func_inet_ntop="no"
  27176. fi
  27177. #
  27178. tst_links_inet_pton="unknown"
  27179. tst_proto_inet_pton="unknown"
  27180. tst_compi_inet_pton="unknown"
  27181. tst_works_inet_pton="unknown"
  27182. tst_allow_inet_pton="unknown"
  27183. #
  27184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
  27185. $as_echo_n "checking if inet_pton can be linked... " >&6; }
  27186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27187. /* end confdefs.h. */
  27188. #define inet_pton innocuous_inet_pton
  27189. #ifdef __STDC__
  27190. # include <limits.h>
  27191. #else
  27192. # include <assert.h>
  27193. #endif
  27194. #undef inet_pton
  27195. #ifdef __cplusplus
  27196. extern "C"
  27197. #endif
  27198. char inet_pton ();
  27199. #if defined __stub_inet_pton || defined __stub___inet_pton
  27200. choke me
  27201. #endif
  27202. int main (void)
  27203. {
  27204. return inet_pton ();
  27205. ;
  27206. return 0;
  27207. }
  27208. _ACEOF
  27209. if ac_fn_c_try_link "$LINENO"; then :
  27210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27211. $as_echo "yes" >&6; }
  27212. tst_links_inet_pton="yes"
  27213. else
  27214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27215. $as_echo "no" >&6; }
  27216. tst_links_inet_pton="no"
  27217. fi
  27218. rm -f core conftest.err conftest.$ac_objext \
  27219. conftest$ac_exeext conftest.$ac_ext
  27220. #
  27221. if test "$tst_links_inet_pton" = "yes"; then
  27222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
  27223. $as_echo_n "checking if inet_pton is prototyped... " >&6; }
  27224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27225. /* end confdefs.h. */
  27226. $curl_includes_arpa_inet
  27227. _ACEOF
  27228. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27229. $EGREP "inet_pton" >/dev/null 2>&1; then :
  27230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27231. $as_echo "yes" >&6; }
  27232. tst_proto_inet_pton="yes"
  27233. else
  27234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27235. $as_echo "no" >&6; }
  27236. tst_proto_inet_pton="no"
  27237. fi
  27238. rm -f conftest*
  27239. fi
  27240. #
  27241. if test "$tst_proto_inet_pton" = "yes"; then
  27242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
  27243. $as_echo_n "checking if inet_pton is compilable... " >&6; }
  27244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27245. /* end confdefs.h. */
  27246. $curl_includes_arpa_inet
  27247. int main (void)
  27248. {
  27249. if(0 != inet_pton(0, 0, 0))
  27250. return 1;
  27251. ;
  27252. return 0;
  27253. }
  27254. _ACEOF
  27255. if ac_fn_c_try_compile "$LINENO"; then :
  27256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27257. $as_echo "yes" >&6; }
  27258. tst_compi_inet_pton="yes"
  27259. else
  27260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27261. $as_echo "no" >&6; }
  27262. tst_compi_inet_pton="no"
  27263. fi
  27264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27265. fi
  27266. #
  27267. if test "x$cross_compiling" != "xyes" &&
  27268. test "$tst_compi_inet_pton" = "yes"; then
  27269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
  27270. $as_echo_n "checking if inet_pton seems to work... " >&6; }
  27271. if test "$cross_compiling" = yes; then :
  27272. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  27273. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27274. as_fn_error $? "cannot run test program while cross compiling
  27275. See \`config.log' for more details" "$LINENO" 5; }
  27276. else
  27277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27278. /* end confdefs.h. */
  27279. $curl_includes_stdlib
  27280. $curl_includes_arpa_inet
  27281. $curl_includes_string
  27282. int main (void)
  27283. {
  27284. unsigned char ipv6a[16+1];
  27285. unsigned char ipv4a[4+1];
  27286. const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
  27287. const char *ipv4src = "192.168.100.1";
  27288. /* - */
  27289. memset(ipv4a, 1, sizeof(ipv4a));
  27290. if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
  27291. exit(1); /* fail */
  27292. /* - */
  27293. if( (ipv4a[0] != 0xc0) ||
  27294. (ipv4a[1] != 0xa8) ||
  27295. (ipv4a[2] != 0x64) ||
  27296. (ipv4a[3] != 0x01) ||
  27297. (ipv4a[4] != 0x01) )
  27298. exit(1); /* fail */
  27299. /* - */
  27300. memset(ipv6a, 1, sizeof(ipv6a));
  27301. if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
  27302. exit(1); /* fail */
  27303. /* - */
  27304. if( (ipv6a[0] != 0xfe) ||
  27305. (ipv6a[1] != 0x80) ||
  27306. (ipv6a[8] != 0x02) ||
  27307. (ipv6a[9] != 0x14) ||
  27308. (ipv6a[10] != 0x4f) ||
  27309. (ipv6a[11] != 0xff) ||
  27310. (ipv6a[12] != 0xfe) ||
  27311. (ipv6a[13] != 0x0b) ||
  27312. (ipv6a[14] != 0x76) ||
  27313. (ipv6a[15] != 0xc8) ||
  27314. (ipv6a[16] != 0x01) )
  27315. exit(1); /* fail */
  27316. /* - */
  27317. if( (ipv6a[2] != 0x0) ||
  27318. (ipv6a[3] != 0x0) ||
  27319. (ipv6a[4] != 0x0) ||
  27320. (ipv6a[5] != 0x0) ||
  27321. (ipv6a[6] != 0x0) ||
  27322. (ipv6a[7] != 0x0) )
  27323. exit(1); /* fail */
  27324. /* - */
  27325. exit(0);
  27326. ;
  27327. return 0;
  27328. }
  27329. _ACEOF
  27330. if ac_fn_c_try_run "$LINENO"; then :
  27331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27332. $as_echo "yes" >&6; }
  27333. tst_works_inet_pton="yes"
  27334. else
  27335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27336. $as_echo "no" >&6; }
  27337. tst_works_inet_pton="no"
  27338. fi
  27339. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  27340. conftest.$ac_objext conftest.beam conftest.$ac_ext
  27341. fi
  27342. fi
  27343. #
  27344. if test "$tst_compi_inet_pton" = "yes" &&
  27345. test "$tst_works_inet_pton" != "no"; then
  27346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
  27347. $as_echo_n "checking if inet_pton usage allowed... " >&6; }
  27348. if test "x$curl_disallow_inet_pton" != "xyes"; then
  27349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27350. $as_echo "yes" >&6; }
  27351. tst_allow_inet_pton="yes"
  27352. else
  27353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27354. $as_echo "no" >&6; }
  27355. tst_allow_inet_pton="no"
  27356. fi
  27357. fi
  27358. #
  27359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
  27360. $as_echo_n "checking if inet_pton might be used... " >&6; }
  27361. if test "$tst_links_inet_pton" = "yes" &&
  27362. test "$tst_proto_inet_pton" = "yes" &&
  27363. test "$tst_compi_inet_pton" = "yes" &&
  27364. test "$tst_allow_inet_pton" = "yes" &&
  27365. test "$tst_works_inet_pton" != "no"; then
  27366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27367. $as_echo "yes" >&6; }
  27368. cat >>confdefs.h <<_ACEOF
  27369. #define HAVE_INET_PTON 1
  27370. _ACEOF
  27371. ac_cv_func_inet_pton="yes"
  27372. else
  27373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27374. $as_echo "no" >&6; }
  27375. ac_cv_func_inet_pton="no"
  27376. fi
  27377. curl_includes_stropts="\
  27378. /* includes start */
  27379. #ifdef HAVE_SYS_TYPES_H
  27380. # include <sys/types.h>
  27381. #endif
  27382. #ifdef HAVE_UNISTD_H
  27383. # include <unistd.h>
  27384. #endif
  27385. #ifdef HAVE_SYS_SOCKET_H
  27386. # include <sys/socket.h>
  27387. #endif
  27388. #ifdef HAVE_SYS_IOCTL_H
  27389. # include <sys/ioctl.h>
  27390. #endif
  27391. #ifdef HAVE_STROPTS_H
  27392. # include <stropts.h>
  27393. #endif
  27394. /* includes end */"
  27395. for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
  27396. do :
  27397. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27398. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
  27399. "
  27400. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  27401. cat >>confdefs.h <<_ACEOF
  27402. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27403. _ACEOF
  27404. fi
  27405. done
  27406. #
  27407. tst_links_ioctl="unknown"
  27408. tst_proto_ioctl="unknown"
  27409. tst_compi_ioctl="unknown"
  27410. tst_allow_ioctl="unknown"
  27411. #
  27412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
  27413. $as_echo_n "checking if ioctl can be linked... " >&6; }
  27414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27415. /* end confdefs.h. */
  27416. #define ioctl innocuous_ioctl
  27417. #ifdef __STDC__
  27418. # include <limits.h>
  27419. #else
  27420. # include <assert.h>
  27421. #endif
  27422. #undef ioctl
  27423. #ifdef __cplusplus
  27424. extern "C"
  27425. #endif
  27426. char ioctl ();
  27427. #if defined __stub_ioctl || defined __stub___ioctl
  27428. choke me
  27429. #endif
  27430. int main (void)
  27431. {
  27432. return ioctl ();
  27433. ;
  27434. return 0;
  27435. }
  27436. _ACEOF
  27437. if ac_fn_c_try_link "$LINENO"; then :
  27438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27439. $as_echo "yes" >&6; }
  27440. tst_links_ioctl="yes"
  27441. else
  27442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27443. $as_echo "no" >&6; }
  27444. tst_links_ioctl="no"
  27445. fi
  27446. rm -f core conftest.err conftest.$ac_objext \
  27447. conftest$ac_exeext conftest.$ac_ext
  27448. #
  27449. if test "$tst_links_ioctl" = "yes"; then
  27450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
  27451. $as_echo_n "checking if ioctl is prototyped... " >&6; }
  27452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27453. /* end confdefs.h. */
  27454. $curl_includes_stropts
  27455. _ACEOF
  27456. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27457. $EGREP "ioctl" >/dev/null 2>&1; then :
  27458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27459. $as_echo "yes" >&6; }
  27460. tst_proto_ioctl="yes"
  27461. else
  27462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27463. $as_echo "no" >&6; }
  27464. tst_proto_ioctl="no"
  27465. fi
  27466. rm -f conftest*
  27467. fi
  27468. #
  27469. if test "$tst_proto_ioctl" = "yes"; then
  27470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
  27471. $as_echo_n "checking if ioctl is compilable... " >&6; }
  27472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27473. /* end confdefs.h. */
  27474. $curl_includes_stropts
  27475. int main (void)
  27476. {
  27477. if(0 != ioctl(0, 0, 0))
  27478. return 1;
  27479. ;
  27480. return 0;
  27481. }
  27482. _ACEOF
  27483. if ac_fn_c_try_compile "$LINENO"; then :
  27484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27485. $as_echo "yes" >&6; }
  27486. tst_compi_ioctl="yes"
  27487. else
  27488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27489. $as_echo "no" >&6; }
  27490. tst_compi_ioctl="no"
  27491. fi
  27492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27493. fi
  27494. #
  27495. if test "$tst_compi_ioctl" = "yes"; then
  27496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
  27497. $as_echo_n "checking if ioctl usage allowed... " >&6; }
  27498. if test "x$curl_disallow_ioctl" != "xyes"; then
  27499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27500. $as_echo "yes" >&6; }
  27501. tst_allow_ioctl="yes"
  27502. else
  27503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27504. $as_echo "no" >&6; }
  27505. tst_allow_ioctl="no"
  27506. fi
  27507. fi
  27508. #
  27509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
  27510. $as_echo_n "checking if ioctl might be used... " >&6; }
  27511. if test "$tst_links_ioctl" = "yes" &&
  27512. test "$tst_proto_ioctl" = "yes" &&
  27513. test "$tst_compi_ioctl" = "yes" &&
  27514. test "$tst_allow_ioctl" = "yes"; then
  27515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27516. $as_echo "yes" >&6; }
  27517. cat >>confdefs.h <<_ACEOF
  27518. #define HAVE_IOCTL 1
  27519. _ACEOF
  27520. ac_cv_func_ioctl="yes"
  27521. #
  27522. tst_compi_ioctl_fionbio="unknown"
  27523. tst_allow_ioctl_fionbio="unknown"
  27524. #
  27525. if test "$ac_cv_func_ioctl" = "yes"; then
  27526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
  27527. $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
  27528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27529. /* end confdefs.h. */
  27530. $curl_includes_stropts
  27531. int main (void)
  27532. {
  27533. int flags = 0;
  27534. if(0 != ioctl(0, FIONBIO, &flags))
  27535. return 1;
  27536. ;
  27537. return 0;
  27538. }
  27539. _ACEOF
  27540. if ac_fn_c_try_compile "$LINENO"; then :
  27541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27542. $as_echo "yes" >&6; }
  27543. tst_compi_ioctl_fionbio="yes"
  27544. else
  27545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27546. $as_echo "no" >&6; }
  27547. tst_compi_ioctl_fionbio="no"
  27548. fi
  27549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27550. fi
  27551. #
  27552. if test "$tst_compi_ioctl_fionbio" = "yes"; then
  27553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
  27554. $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
  27555. if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
  27556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27557. $as_echo "yes" >&6; }
  27558. tst_allow_ioctl_fionbio="yes"
  27559. else
  27560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27561. $as_echo "no" >&6; }
  27562. tst_allow_ioctl_fionbio="no"
  27563. fi
  27564. fi
  27565. #
  27566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
  27567. $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
  27568. if test "$tst_compi_ioctl_fionbio" = "yes" &&
  27569. test "$tst_allow_ioctl_fionbio" = "yes"; then
  27570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27571. $as_echo "yes" >&6; }
  27572. cat >>confdefs.h <<_ACEOF
  27573. #define HAVE_IOCTL_FIONBIO 1
  27574. _ACEOF
  27575. ac_cv_func_ioctl_fionbio="yes"
  27576. else
  27577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27578. $as_echo "no" >&6; }
  27579. ac_cv_func_ioctl_fionbio="no"
  27580. fi
  27581. #
  27582. tst_compi_ioctl_siocgifaddr="unknown"
  27583. tst_allow_ioctl_siocgifaddr="unknown"
  27584. #
  27585. if test "$ac_cv_func_ioctl" = "yes"; then
  27586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
  27587. $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
  27588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27589. /* end confdefs.h. */
  27590. $curl_includes_stropts
  27591. #include <net/if.h>
  27592. int main (void)
  27593. {
  27594. struct ifreq ifr;
  27595. if(0 != ioctl(0, SIOCGIFADDR, &ifr))
  27596. return 1;
  27597. ;
  27598. return 0;
  27599. }
  27600. _ACEOF
  27601. if ac_fn_c_try_compile "$LINENO"; then :
  27602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27603. $as_echo "yes" >&6; }
  27604. tst_compi_ioctl_siocgifaddr="yes"
  27605. else
  27606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27607. $as_echo "no" >&6; }
  27608. tst_compi_ioctl_siocgifaddr="no"
  27609. fi
  27610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27611. fi
  27612. #
  27613. if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
  27614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
  27615. $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
  27616. if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
  27617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27618. $as_echo "yes" >&6; }
  27619. tst_allow_ioctl_siocgifaddr="yes"
  27620. else
  27621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27622. $as_echo "no" >&6; }
  27623. tst_allow_ioctl_siocgifaddr="no"
  27624. fi
  27625. fi
  27626. #
  27627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
  27628. $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
  27629. if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
  27630. test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
  27631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27632. $as_echo "yes" >&6; }
  27633. cat >>confdefs.h <<_ACEOF
  27634. #define HAVE_IOCTL_SIOCGIFADDR 1
  27635. _ACEOF
  27636. ac_cv_func_ioctl_siocgifaddr="yes"
  27637. else
  27638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27639. $as_echo "no" >&6; }
  27640. ac_cv_func_ioctl_siocgifaddr="no"
  27641. fi
  27642. else
  27643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27644. $as_echo "no" >&6; }
  27645. ac_cv_func_ioctl="no"
  27646. fi
  27647. #
  27648. tst_links_ioctlsocket="unknown"
  27649. tst_proto_ioctlsocket="unknown"
  27650. tst_compi_ioctlsocket="unknown"
  27651. tst_allow_ioctlsocket="unknown"
  27652. #
  27653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
  27654. $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
  27655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27656. /* end confdefs.h. */
  27657. $curl_includes_winsock2
  27658. int main (void)
  27659. {
  27660. if(0 != ioctlsocket(0, 0, 0))
  27661. return 1;
  27662. ;
  27663. return 0;
  27664. }
  27665. _ACEOF
  27666. if ac_fn_c_try_link "$LINENO"; then :
  27667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27668. $as_echo "yes" >&6; }
  27669. tst_links_ioctlsocket="yes"
  27670. else
  27671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27672. $as_echo "no" >&6; }
  27673. tst_links_ioctlsocket="no"
  27674. fi
  27675. rm -f core conftest.err conftest.$ac_objext \
  27676. conftest$ac_exeext conftest.$ac_ext
  27677. #
  27678. if test "$tst_links_ioctlsocket" = "yes"; then
  27679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
  27680. $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
  27681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27682. /* end confdefs.h. */
  27683. $curl_includes_winsock2
  27684. _ACEOF
  27685. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27686. $EGREP "ioctlsocket" >/dev/null 2>&1; then :
  27687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27688. $as_echo "yes" >&6; }
  27689. tst_proto_ioctlsocket="yes"
  27690. else
  27691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27692. $as_echo "no" >&6; }
  27693. tst_proto_ioctlsocket="no"
  27694. fi
  27695. rm -f conftest*
  27696. fi
  27697. #
  27698. if test "$tst_proto_ioctlsocket" = "yes"; then
  27699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
  27700. $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
  27701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27702. /* end confdefs.h. */
  27703. $curl_includes_winsock2
  27704. int main (void)
  27705. {
  27706. if(0 != ioctlsocket(0, 0, 0))
  27707. return 1;
  27708. ;
  27709. return 0;
  27710. }
  27711. _ACEOF
  27712. if ac_fn_c_try_compile "$LINENO"; then :
  27713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27714. $as_echo "yes" >&6; }
  27715. tst_compi_ioctlsocket="yes"
  27716. else
  27717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27718. $as_echo "no" >&6; }
  27719. tst_compi_ioctlsocket="no"
  27720. fi
  27721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27722. fi
  27723. #
  27724. if test "$tst_compi_ioctlsocket" = "yes"; then
  27725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
  27726. $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
  27727. if test "x$curl_disallow_ioctlsocket" != "xyes"; then
  27728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27729. $as_echo "yes" >&6; }
  27730. tst_allow_ioctlsocket="yes"
  27731. else
  27732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27733. $as_echo "no" >&6; }
  27734. tst_allow_ioctlsocket="no"
  27735. fi
  27736. fi
  27737. #
  27738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
  27739. $as_echo_n "checking if ioctlsocket might be used... " >&6; }
  27740. if test "$tst_links_ioctlsocket" = "yes" &&
  27741. test "$tst_proto_ioctlsocket" = "yes" &&
  27742. test "$tst_compi_ioctlsocket" = "yes" &&
  27743. test "$tst_allow_ioctlsocket" = "yes"; then
  27744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27745. $as_echo "yes" >&6; }
  27746. cat >>confdefs.h <<_ACEOF
  27747. #define HAVE_IOCTLSOCKET 1
  27748. _ACEOF
  27749. ac_cv_func_ioctlsocket="yes"
  27750. #
  27751. tst_compi_ioctlsocket_fionbio="unknown"
  27752. tst_allow_ioctlsocket_fionbio="unknown"
  27753. #
  27754. if test "$ac_cv_func_ioctlsocket" = "yes"; then
  27755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
  27756. $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
  27757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27758. /* end confdefs.h. */
  27759. $curl_includes_winsock2
  27760. int main (void)
  27761. {
  27762. int flags = 0;
  27763. if(0 != ioctlsocket(0, FIONBIO, &flags))
  27764. return 1;
  27765. ;
  27766. return 0;
  27767. }
  27768. _ACEOF
  27769. if ac_fn_c_try_compile "$LINENO"; then :
  27770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27771. $as_echo "yes" >&6; }
  27772. tst_compi_ioctlsocket_fionbio="yes"
  27773. else
  27774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27775. $as_echo "no" >&6; }
  27776. tst_compi_ioctlsocket_fionbio="no"
  27777. fi
  27778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27779. fi
  27780. #
  27781. if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
  27782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
  27783. $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
  27784. if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
  27785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27786. $as_echo "yes" >&6; }
  27787. tst_allow_ioctlsocket_fionbio="yes"
  27788. else
  27789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27790. $as_echo "no" >&6; }
  27791. tst_allow_ioctlsocket_fionbio="no"
  27792. fi
  27793. fi
  27794. #
  27795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
  27796. $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
  27797. if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
  27798. test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
  27799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27800. $as_echo "yes" >&6; }
  27801. cat >>confdefs.h <<_ACEOF
  27802. #define HAVE_IOCTLSOCKET_FIONBIO 1
  27803. _ACEOF
  27804. ac_cv_func_ioctlsocket_fionbio="yes"
  27805. else
  27806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27807. $as_echo "no" >&6; }
  27808. ac_cv_func_ioctlsocket_fionbio="no"
  27809. fi
  27810. else
  27811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27812. $as_echo "no" >&6; }
  27813. ac_cv_func_ioctlsocket="no"
  27814. fi
  27815. #
  27816. tst_links_ioctlsocket_camel="unknown"
  27817. tst_proto_ioctlsocket_camel="unknown"
  27818. tst_compi_ioctlsocket_camel="unknown"
  27819. tst_allow_ioctlsocket_camel="unknown"
  27820. #
  27821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
  27822. $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
  27823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27824. /* end confdefs.h. */
  27825. #define IoctlSocket innocuous_IoctlSocket
  27826. #ifdef __STDC__
  27827. # include <limits.h>
  27828. #else
  27829. # include <assert.h>
  27830. #endif
  27831. #undef IoctlSocket
  27832. #ifdef __cplusplus
  27833. extern "C"
  27834. #endif
  27835. char IoctlSocket ();
  27836. #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
  27837. choke me
  27838. #endif
  27839. int main (void)
  27840. {
  27841. return IoctlSocket ();
  27842. ;
  27843. return 0;
  27844. }
  27845. _ACEOF
  27846. if ac_fn_c_try_link "$LINENO"; then :
  27847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27848. $as_echo "yes" >&6; }
  27849. tst_links_ioctlsocket_camel="yes"
  27850. else
  27851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27852. $as_echo "no" >&6; }
  27853. tst_links_ioctlsocket_camel="no"
  27854. fi
  27855. rm -f core conftest.err conftest.$ac_objext \
  27856. conftest$ac_exeext conftest.$ac_ext
  27857. #
  27858. if test "$tst_links_ioctlsocket_camel" = "yes"; then
  27859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
  27860. $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
  27861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27862. /* end confdefs.h. */
  27863. $curl_includes_stropts
  27864. _ACEOF
  27865. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27866. $EGREP "IoctlSocket" >/dev/null 2>&1; then :
  27867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27868. $as_echo "yes" >&6; }
  27869. tst_proto_ioctlsocket_camel="yes"
  27870. else
  27871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27872. $as_echo "no" >&6; }
  27873. tst_proto_ioctlsocket_camel="no"
  27874. fi
  27875. rm -f conftest*
  27876. fi
  27877. #
  27878. if test "$tst_proto_ioctlsocket_camel" = "yes"; then
  27879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
  27880. $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
  27881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27882. /* end confdefs.h. */
  27883. $curl_includes_stropts
  27884. int main (void)
  27885. {
  27886. if(0 != IoctlSocket(0, 0, 0))
  27887. return 1;
  27888. ;
  27889. return 0;
  27890. }
  27891. _ACEOF
  27892. if ac_fn_c_try_compile "$LINENO"; then :
  27893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27894. $as_echo "yes" >&6; }
  27895. tst_compi_ioctlsocket_camel="yes"
  27896. else
  27897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27898. $as_echo "no" >&6; }
  27899. tst_compi_ioctlsocket_camel="no"
  27900. fi
  27901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27902. fi
  27903. #
  27904. if test "$tst_compi_ioctlsocket_camel" = "yes"; then
  27905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
  27906. $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
  27907. if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
  27908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27909. $as_echo "yes" >&6; }
  27910. tst_allow_ioctlsocket_camel="yes"
  27911. else
  27912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27913. $as_echo "no" >&6; }
  27914. tst_allow_ioctlsocket_camel="no"
  27915. fi
  27916. fi
  27917. #
  27918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
  27919. $as_echo_n "checking if IoctlSocket might be used... " >&6; }
  27920. if test "$tst_links_ioctlsocket_camel" = "yes" &&
  27921. test "$tst_proto_ioctlsocket_camel" = "yes" &&
  27922. test "$tst_compi_ioctlsocket_camel" = "yes" &&
  27923. test "$tst_allow_ioctlsocket_camel" = "yes"; then
  27924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27925. $as_echo "yes" >&6; }
  27926. cat >>confdefs.h <<_ACEOF
  27927. #define HAVE_IOCTLSOCKET_CAMEL 1
  27928. _ACEOF
  27929. ac_cv_func_ioctlsocket_camel="yes"
  27930. #
  27931. tst_compi_ioctlsocket_camel_fionbio="unknown"
  27932. tst_allow_ioctlsocket_camel_fionbio="unknown"
  27933. #
  27934. if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
  27935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
  27936. $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
  27937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27938. /* end confdefs.h. */
  27939. $curl_includes_stropts
  27940. int main (void)
  27941. {
  27942. long flags = 0;
  27943. if(0 != ioctlsocket(0, FIONBIO, &flags))
  27944. return 1;
  27945. ;
  27946. return 0;
  27947. }
  27948. _ACEOF
  27949. if ac_fn_c_try_compile "$LINENO"; then :
  27950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27951. $as_echo "yes" >&6; }
  27952. tst_compi_ioctlsocket_camel_fionbio="yes"
  27953. else
  27954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27955. $as_echo "no" >&6; }
  27956. tst_compi_ioctlsocket_camel_fionbio="no"
  27957. fi
  27958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27959. fi
  27960. #
  27961. if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
  27962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
  27963. $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
  27964. if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
  27965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27966. $as_echo "yes" >&6; }
  27967. tst_allow_ioctlsocket_camel_fionbio="yes"
  27968. else
  27969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27970. $as_echo "no" >&6; }
  27971. tst_allow_ioctlsocket_camel_fionbio="no"
  27972. fi
  27973. fi
  27974. #
  27975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
  27976. $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
  27977. if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
  27978. test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
  27979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27980. $as_echo "yes" >&6; }
  27981. cat >>confdefs.h <<_ACEOF
  27982. #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
  27983. _ACEOF
  27984. ac_cv_func_ioctlsocket_camel_fionbio="yes"
  27985. else
  27986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27987. $as_echo "no" >&6; }
  27988. ac_cv_func_ioctlsocket_camel_fionbio="no"
  27989. fi
  27990. else
  27991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27992. $as_echo "no" >&6; }
  27993. ac_cv_func_ioctlsocket_camel="no"
  27994. fi
  27995. #
  27996. tst_links_localtime_r="unknown"
  27997. tst_proto_localtime_r="unknown"
  27998. tst_compi_localtime_r="unknown"
  27999. tst_works_localtime_r="unknown"
  28000. tst_allow_localtime_r="unknown"
  28001. #
  28002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
  28003. $as_echo_n "checking if localtime_r can be linked... " >&6; }
  28004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28005. /* end confdefs.h. */
  28006. #define localtime_r innocuous_localtime_r
  28007. #ifdef __STDC__
  28008. # include <limits.h>
  28009. #else
  28010. # include <assert.h>
  28011. #endif
  28012. #undef localtime_r
  28013. #ifdef __cplusplus
  28014. extern "C"
  28015. #endif
  28016. char localtime_r ();
  28017. #if defined __stub_localtime_r || defined __stub___localtime_r
  28018. choke me
  28019. #endif
  28020. int main (void)
  28021. {
  28022. return localtime_r ();
  28023. ;
  28024. return 0;
  28025. }
  28026. _ACEOF
  28027. if ac_fn_c_try_link "$LINENO"; then :
  28028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28029. $as_echo "yes" >&6; }
  28030. tst_links_localtime_r="yes"
  28031. else
  28032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28033. $as_echo "no" >&6; }
  28034. tst_links_localtime_r="no"
  28035. fi
  28036. rm -f core conftest.err conftest.$ac_objext \
  28037. conftest$ac_exeext conftest.$ac_ext
  28038. #
  28039. if test "$tst_links_localtime_r" = "yes"; then
  28040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
  28041. $as_echo_n "checking if localtime_r is prototyped... " >&6; }
  28042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28043. /* end confdefs.h. */
  28044. $curl_includes_time
  28045. _ACEOF
  28046. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28047. $EGREP "localtime_r" >/dev/null 2>&1; then :
  28048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28049. $as_echo "yes" >&6; }
  28050. tst_proto_localtime_r="yes"
  28051. else
  28052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28053. $as_echo "no" >&6; }
  28054. tst_proto_localtime_r="no"
  28055. fi
  28056. rm -f conftest*
  28057. fi
  28058. #
  28059. if test "$tst_proto_localtime_r" = "yes"; then
  28060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
  28061. $as_echo_n "checking if localtime_r is compilable... " >&6; }
  28062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28063. /* end confdefs.h. */
  28064. $curl_includes_time
  28065. int main (void)
  28066. {
  28067. if(0 != localtime_r(0, 0))
  28068. return 1;
  28069. ;
  28070. return 0;
  28071. }
  28072. _ACEOF
  28073. if ac_fn_c_try_compile "$LINENO"; then :
  28074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28075. $as_echo "yes" >&6; }
  28076. tst_compi_localtime_r="yes"
  28077. else
  28078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28079. $as_echo "no" >&6; }
  28080. tst_compi_localtime_r="no"
  28081. fi
  28082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28083. fi
  28084. #
  28085. if test "x$cross_compiling" != "xyes" &&
  28086. test "$tst_compi_localtime_r" = "yes"; then
  28087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
  28088. $as_echo_n "checking if localtime_r seems to work... " >&6; }
  28089. if test "$cross_compiling" = yes; then :
  28090. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  28091. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28092. as_fn_error $? "cannot run test program while cross compiling
  28093. See \`config.log' for more details" "$LINENO" 5; }
  28094. else
  28095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28096. /* end confdefs.h. */
  28097. $curl_includes_stdlib
  28098. $curl_includes_time
  28099. int main (void)
  28100. {
  28101. time_t clock = 1170352587;
  28102. struct tm *tmp = 0;
  28103. struct tm result;
  28104. tmp = localtime_r(&clock, &result);
  28105. if(tmp)
  28106. exit(0);
  28107. else
  28108. exit(1);
  28109. ;
  28110. return 0;
  28111. }
  28112. _ACEOF
  28113. if ac_fn_c_try_run "$LINENO"; then :
  28114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28115. $as_echo "yes" >&6; }
  28116. tst_works_localtime_r="yes"
  28117. else
  28118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28119. $as_echo "no" >&6; }
  28120. tst_works_localtime_r="no"
  28121. fi
  28122. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28123. conftest.$ac_objext conftest.beam conftest.$ac_ext
  28124. fi
  28125. fi
  28126. #
  28127. if test "$tst_compi_localtime_r" = "yes" &&
  28128. test "$tst_works_localtime_r" != "no"; then
  28129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
  28130. $as_echo_n "checking if localtime_r usage allowed... " >&6; }
  28131. if test "x$curl_disallow_localtime_r" != "xyes"; then
  28132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28133. $as_echo "yes" >&6; }
  28134. tst_allow_localtime_r="yes"
  28135. else
  28136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28137. $as_echo "no" >&6; }
  28138. tst_allow_localtime_r="no"
  28139. fi
  28140. fi
  28141. #
  28142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
  28143. $as_echo_n "checking if localtime_r might be used... " >&6; }
  28144. if test "$tst_links_localtime_r" = "yes" &&
  28145. test "$tst_proto_localtime_r" = "yes" &&
  28146. test "$tst_compi_localtime_r" = "yes" &&
  28147. test "$tst_allow_localtime_r" = "yes" &&
  28148. test "$tst_works_localtime_r" != "no"; then
  28149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28150. $as_echo "yes" >&6; }
  28151. cat >>confdefs.h <<_ACEOF
  28152. #define HAVE_LOCALTIME_R 1
  28153. _ACEOF
  28154. ac_cv_func_localtime_r="yes"
  28155. else
  28156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28157. $as_echo "no" >&6; }
  28158. ac_cv_func_localtime_r="no"
  28159. fi
  28160. #
  28161. tst_links_memrchr="unknown"
  28162. tst_macro_memrchr="unknown"
  28163. tst_proto_memrchr="unknown"
  28164. tst_compi_memrchr="unknown"
  28165. tst_allow_memrchr="unknown"
  28166. #
  28167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
  28168. $as_echo_n "checking if memrchr can be linked... " >&6; }
  28169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28170. /* end confdefs.h. */
  28171. #define memrchr innocuous_memrchr
  28172. #ifdef __STDC__
  28173. # include <limits.h>
  28174. #else
  28175. # include <assert.h>
  28176. #endif
  28177. #undef memrchr
  28178. #ifdef __cplusplus
  28179. extern "C"
  28180. #endif
  28181. char memrchr ();
  28182. #if defined __stub_memrchr || defined __stub___memrchr
  28183. choke me
  28184. #endif
  28185. int main (void)
  28186. {
  28187. return memrchr ();
  28188. ;
  28189. return 0;
  28190. }
  28191. _ACEOF
  28192. if ac_fn_c_try_link "$LINENO"; then :
  28193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28194. $as_echo "yes" >&6; }
  28195. tst_links_memrchr="yes"
  28196. else
  28197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28198. $as_echo "no" >&6; }
  28199. tst_links_memrchr="no"
  28200. fi
  28201. rm -f core conftest.err conftest.$ac_objext \
  28202. conftest$ac_exeext conftest.$ac_ext
  28203. #
  28204. if test "$tst_links_memrchr" = "no"; then
  28205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
  28206. $as_echo_n "checking if memrchr seems a macro... " >&6; }
  28207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28208. /* end confdefs.h. */
  28209. $curl_includes_string
  28210. int main (void)
  28211. {
  28212. if(0 != memrchr(0, 0, 0))
  28213. return 1;
  28214. ;
  28215. return 0;
  28216. }
  28217. _ACEOF
  28218. if ac_fn_c_try_link "$LINENO"; then :
  28219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28220. $as_echo "yes" >&6; }
  28221. tst_macro_memrchr="yes"
  28222. else
  28223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28224. $as_echo "no" >&6; }
  28225. tst_macro_memrchr="no"
  28226. fi
  28227. rm -f core conftest.err conftest.$ac_objext \
  28228. conftest$ac_exeext conftest.$ac_ext
  28229. fi
  28230. #
  28231. if test "$tst_links_memrchr" = "yes"; then
  28232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
  28233. $as_echo_n "checking if memrchr is prototyped... " >&6; }
  28234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28235. /* end confdefs.h. */
  28236. $curl_includes_string
  28237. _ACEOF
  28238. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28239. $EGREP "memrchr" >/dev/null 2>&1; then :
  28240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28241. $as_echo "yes" >&6; }
  28242. tst_proto_memrchr="yes"
  28243. else
  28244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28245. $as_echo "no" >&6; }
  28246. tst_proto_memrchr="no"
  28247. fi
  28248. rm -f conftest*
  28249. fi
  28250. #
  28251. if test "$tst_proto_memrchr" = "yes" ||
  28252. test "$tst_macro_memrchr" = "yes"; then
  28253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
  28254. $as_echo_n "checking if memrchr is compilable... " >&6; }
  28255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28256. /* end confdefs.h. */
  28257. $curl_includes_string
  28258. int main (void)
  28259. {
  28260. if(0 != memrchr(0, 0, 0))
  28261. return 1;
  28262. ;
  28263. return 0;
  28264. }
  28265. _ACEOF
  28266. if ac_fn_c_try_compile "$LINENO"; then :
  28267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28268. $as_echo "yes" >&6; }
  28269. tst_compi_memrchr="yes"
  28270. else
  28271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28272. $as_echo "no" >&6; }
  28273. tst_compi_memrchr="no"
  28274. fi
  28275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28276. fi
  28277. #
  28278. if test "$tst_compi_memrchr" = "yes"; then
  28279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
  28280. $as_echo_n "checking if memrchr usage allowed... " >&6; }
  28281. if test "x$curl_disallow_memrchr" != "xyes"; then
  28282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28283. $as_echo "yes" >&6; }
  28284. tst_allow_memrchr="yes"
  28285. else
  28286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28287. $as_echo "no" >&6; }
  28288. tst_allow_memrchr="no"
  28289. fi
  28290. fi
  28291. #
  28292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
  28293. $as_echo_n "checking if memrchr might be used... " >&6; }
  28294. if (test "$tst_proto_memrchr" = "yes" ||
  28295. test "$tst_macro_memrchr" = "yes") &&
  28296. test "$tst_compi_memrchr" = "yes" &&
  28297. test "$tst_allow_memrchr" = "yes"; then
  28298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28299. $as_echo "yes" >&6; }
  28300. cat >>confdefs.h <<_ACEOF
  28301. #define HAVE_MEMRCHR 1
  28302. _ACEOF
  28303. ac_cv_func_memrchr="yes"
  28304. else
  28305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28306. $as_echo "no" >&6; }
  28307. ac_cv_func_memrchr="no"
  28308. fi
  28309. #
  28310. tst_links_poll="unknown"
  28311. tst_proto_poll="unknown"
  28312. tst_compi_poll="unknown"
  28313. tst_works_poll="unknown"
  28314. tst_allow_poll="unknown"
  28315. #
  28316. case $host_os in
  28317. darwin*|interix*)
  28318. curl_disallow_poll="yes"
  28319. ;;
  28320. esac
  28321. #
  28322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
  28323. $as_echo_n "checking if poll can be linked... " >&6; }
  28324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28325. /* end confdefs.h. */
  28326. $curl_includes_poll
  28327. int main (void)
  28328. {
  28329. if(0 != poll(0, 0, 0))
  28330. return 1;
  28331. ;
  28332. return 0;
  28333. }
  28334. _ACEOF
  28335. if ac_fn_c_try_link "$LINENO"; then :
  28336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28337. $as_echo "yes" >&6; }
  28338. tst_links_poll="yes"
  28339. else
  28340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28341. $as_echo "no" >&6; }
  28342. tst_links_poll="no"
  28343. fi
  28344. rm -f core conftest.err conftest.$ac_objext \
  28345. conftest$ac_exeext conftest.$ac_ext
  28346. #
  28347. if test "$tst_links_poll" = "yes"; then
  28348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
  28349. $as_echo_n "checking if poll is prototyped... " >&6; }
  28350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28351. /* end confdefs.h. */
  28352. $curl_includes_poll
  28353. _ACEOF
  28354. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28355. $EGREP "poll" >/dev/null 2>&1; then :
  28356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28357. $as_echo "yes" >&6; }
  28358. tst_proto_poll="yes"
  28359. else
  28360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28361. $as_echo "no" >&6; }
  28362. tst_proto_poll="no"
  28363. fi
  28364. rm -f conftest*
  28365. fi
  28366. #
  28367. if test "$tst_proto_poll" = "yes"; then
  28368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
  28369. $as_echo_n "checking if poll is compilable... " >&6; }
  28370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28371. /* end confdefs.h. */
  28372. $curl_includes_poll
  28373. int main (void)
  28374. {
  28375. if(0 != poll(0, 0, 0))
  28376. return 1;
  28377. ;
  28378. return 0;
  28379. }
  28380. _ACEOF
  28381. if ac_fn_c_try_compile "$LINENO"; then :
  28382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28383. $as_echo "yes" >&6; }
  28384. tst_compi_poll="yes"
  28385. else
  28386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28387. $as_echo "no" >&6; }
  28388. tst_compi_poll="no"
  28389. fi
  28390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28391. fi
  28392. #
  28393. if test "x$cross_compiling" != "xyes" &&
  28394. test "$tst_compi_poll" = "yes"; then
  28395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
  28396. $as_echo_n "checking if poll seems to work... " >&6; }
  28397. if test "$cross_compiling" = yes; then :
  28398. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  28399. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28400. as_fn_error $? "cannot run test program while cross compiling
  28401. See \`config.log' for more details" "$LINENO" 5; }
  28402. else
  28403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28404. /* end confdefs.h. */
  28405. $curl_includes_stdlib
  28406. $curl_includes_poll
  28407. int main (void)
  28408. {
  28409. if(0 != poll(0, 0, 10))
  28410. exit(1); /* fail */
  28411. else
  28412. exit(0);
  28413. ;
  28414. return 0;
  28415. }
  28416. _ACEOF
  28417. if ac_fn_c_try_run "$LINENO"; then :
  28418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28419. $as_echo "yes" >&6; }
  28420. tst_works_poll="yes"
  28421. else
  28422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28423. $as_echo "no" >&6; }
  28424. tst_works_poll="no"
  28425. fi
  28426. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28427. conftest.$ac_objext conftest.beam conftest.$ac_ext
  28428. fi
  28429. fi
  28430. #
  28431. if test "$tst_compi_poll" = "yes" &&
  28432. test "$tst_works_poll" != "no"; then
  28433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
  28434. $as_echo_n "checking if poll usage allowed... " >&6; }
  28435. if test "x$curl_disallow_poll" != "xyes"; then
  28436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28437. $as_echo "yes" >&6; }
  28438. tst_allow_poll="yes"
  28439. else
  28440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28441. $as_echo "no" >&6; }
  28442. tst_allow_poll="no"
  28443. fi
  28444. fi
  28445. #
  28446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
  28447. $as_echo_n "checking if poll might be used... " >&6; }
  28448. if test "$tst_links_poll" = "yes" &&
  28449. test "$tst_proto_poll" = "yes" &&
  28450. test "$tst_compi_poll" = "yes" &&
  28451. test "$tst_allow_poll" = "yes" &&
  28452. test "$tst_works_poll" != "no"; then
  28453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28454. $as_echo "yes" >&6; }
  28455. cat >>confdefs.h <<_ACEOF
  28456. #define HAVE_POLL 1
  28457. _ACEOF
  28458. cat >>confdefs.h <<_ACEOF
  28459. #define HAVE_POLL_FINE 1
  28460. _ACEOF
  28461. ac_cv_func_poll="yes"
  28462. else
  28463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28464. $as_echo "no" >&6; }
  28465. ac_cv_func_poll="no"
  28466. fi
  28467. #
  28468. tst_links_setsockopt="unknown"
  28469. tst_proto_setsockopt="unknown"
  28470. tst_compi_setsockopt="unknown"
  28471. tst_allow_setsockopt="unknown"
  28472. #
  28473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
  28474. $as_echo_n "checking if setsockopt can be linked... " >&6; }
  28475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28476. /* end confdefs.h. */
  28477. $curl_includes_winsock2
  28478. $curl_includes_sys_socket
  28479. int main (void)
  28480. {
  28481. if(0 != setsockopt(0, 0, 0, 0, 0))
  28482. return 1;
  28483. ;
  28484. return 0;
  28485. }
  28486. _ACEOF
  28487. if ac_fn_c_try_link "$LINENO"; then :
  28488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28489. $as_echo "yes" >&6; }
  28490. tst_links_setsockopt="yes"
  28491. else
  28492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28493. $as_echo "no" >&6; }
  28494. tst_links_setsockopt="no"
  28495. fi
  28496. rm -f core conftest.err conftest.$ac_objext \
  28497. conftest$ac_exeext conftest.$ac_ext
  28498. #
  28499. if test "$tst_links_setsockopt" = "yes"; then
  28500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
  28501. $as_echo_n "checking if setsockopt is prototyped... " >&6; }
  28502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28503. /* end confdefs.h. */
  28504. $curl_includes_winsock2
  28505. $curl_includes_sys_socket
  28506. _ACEOF
  28507. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28508. $EGREP "setsockopt" >/dev/null 2>&1; then :
  28509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28510. $as_echo "yes" >&6; }
  28511. tst_proto_setsockopt="yes"
  28512. else
  28513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28514. $as_echo "no" >&6; }
  28515. tst_proto_setsockopt="no"
  28516. fi
  28517. rm -f conftest*
  28518. fi
  28519. #
  28520. if test "$tst_proto_setsockopt" = "yes"; then
  28521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
  28522. $as_echo_n "checking if setsockopt is compilable... " >&6; }
  28523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28524. /* end confdefs.h. */
  28525. $curl_includes_winsock2
  28526. $curl_includes_sys_socket
  28527. int main (void)
  28528. {
  28529. if(0 != setsockopt(0, 0, 0, 0, 0))
  28530. return 1;
  28531. ;
  28532. return 0;
  28533. }
  28534. _ACEOF
  28535. if ac_fn_c_try_compile "$LINENO"; then :
  28536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28537. $as_echo "yes" >&6; }
  28538. tst_compi_setsockopt="yes"
  28539. else
  28540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28541. $as_echo "no" >&6; }
  28542. tst_compi_setsockopt="no"
  28543. fi
  28544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28545. fi
  28546. #
  28547. if test "$tst_compi_setsockopt" = "yes"; then
  28548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
  28549. $as_echo_n "checking if setsockopt usage allowed... " >&6; }
  28550. if test "x$curl_disallow_setsockopt" != "xyes"; then
  28551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28552. $as_echo "yes" >&6; }
  28553. tst_allow_setsockopt="yes"
  28554. else
  28555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28556. $as_echo "no" >&6; }
  28557. tst_allow_setsockopt="no"
  28558. fi
  28559. fi
  28560. #
  28561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
  28562. $as_echo_n "checking if setsockopt might be used... " >&6; }
  28563. if test "$tst_links_setsockopt" = "yes" &&
  28564. test "$tst_proto_setsockopt" = "yes" &&
  28565. test "$tst_compi_setsockopt" = "yes" &&
  28566. test "$tst_allow_setsockopt" = "yes"; then
  28567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28568. $as_echo "yes" >&6; }
  28569. cat >>confdefs.h <<_ACEOF
  28570. #define HAVE_SETSOCKOPT 1
  28571. _ACEOF
  28572. ac_cv_func_setsockopt="yes"
  28573. #
  28574. tst_compi_setsockopt_so_nonblock="unknown"
  28575. tst_allow_setsockopt_so_nonblock="unknown"
  28576. #
  28577. if test "$ac_cv_func_setsockopt" = "yes"; then
  28578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
  28579. $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
  28580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28581. /* end confdefs.h. */
  28582. $curl_includes_winsock2
  28583. $curl_includes_sys_socket
  28584. int main (void)
  28585. {
  28586. if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
  28587. return 1;
  28588. ;
  28589. return 0;
  28590. }
  28591. _ACEOF
  28592. if ac_fn_c_try_compile "$LINENO"; then :
  28593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28594. $as_echo "yes" >&6; }
  28595. tst_compi_setsockopt_so_nonblock="yes"
  28596. else
  28597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28598. $as_echo "no" >&6; }
  28599. tst_compi_setsockopt_so_nonblock="no"
  28600. fi
  28601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28602. fi
  28603. #
  28604. if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
  28605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
  28606. $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
  28607. if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
  28608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28609. $as_echo "yes" >&6; }
  28610. tst_allow_setsockopt_so_nonblock="yes"
  28611. else
  28612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28613. $as_echo "no" >&6; }
  28614. tst_allow_setsockopt_so_nonblock="no"
  28615. fi
  28616. fi
  28617. #
  28618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
  28619. $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
  28620. if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
  28621. test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
  28622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28623. $as_echo "yes" >&6; }
  28624. cat >>confdefs.h <<_ACEOF
  28625. #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
  28626. _ACEOF
  28627. ac_cv_func_setsockopt_so_nonblock="yes"
  28628. else
  28629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28630. $as_echo "no" >&6; }
  28631. ac_cv_func_setsockopt_so_nonblock="no"
  28632. fi
  28633. else
  28634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28635. $as_echo "no" >&6; }
  28636. ac_cv_func_setsockopt="no"
  28637. fi
  28638. curl_includes_signal="\
  28639. /* includes start */
  28640. #ifdef HAVE_SYS_TYPES_H
  28641. # include <sys/types.h>
  28642. #endif
  28643. #ifdef HAVE_SIGNAL_H
  28644. # include <signal.h>
  28645. #endif
  28646. /* includes end */"
  28647. for ac_header in sys/types.h signal.h
  28648. do :
  28649. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28650. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
  28651. "
  28652. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  28653. cat >>confdefs.h <<_ACEOF
  28654. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28655. _ACEOF
  28656. fi
  28657. done
  28658. #
  28659. tst_links_sigaction="unknown"
  28660. tst_proto_sigaction="unknown"
  28661. tst_compi_sigaction="unknown"
  28662. tst_allow_sigaction="unknown"
  28663. #
  28664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
  28665. $as_echo_n "checking if sigaction can be linked... " >&6; }
  28666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28667. /* end confdefs.h. */
  28668. #define sigaction innocuous_sigaction
  28669. #ifdef __STDC__
  28670. # include <limits.h>
  28671. #else
  28672. # include <assert.h>
  28673. #endif
  28674. #undef sigaction
  28675. #ifdef __cplusplus
  28676. extern "C"
  28677. #endif
  28678. char sigaction ();
  28679. #if defined __stub_sigaction || defined __stub___sigaction
  28680. choke me
  28681. #endif
  28682. int main (void)
  28683. {
  28684. return sigaction ();
  28685. ;
  28686. return 0;
  28687. }
  28688. _ACEOF
  28689. if ac_fn_c_try_link "$LINENO"; then :
  28690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28691. $as_echo "yes" >&6; }
  28692. tst_links_sigaction="yes"
  28693. else
  28694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28695. $as_echo "no" >&6; }
  28696. tst_links_sigaction="no"
  28697. fi
  28698. rm -f core conftest.err conftest.$ac_objext \
  28699. conftest$ac_exeext conftest.$ac_ext
  28700. #
  28701. if test "$tst_links_sigaction" = "yes"; then
  28702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
  28703. $as_echo_n "checking if sigaction is prototyped... " >&6; }
  28704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28705. /* end confdefs.h. */
  28706. $curl_includes_signal
  28707. _ACEOF
  28708. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28709. $EGREP "sigaction" >/dev/null 2>&1; then :
  28710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28711. $as_echo "yes" >&6; }
  28712. tst_proto_sigaction="yes"
  28713. else
  28714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28715. $as_echo "no" >&6; }
  28716. tst_proto_sigaction="no"
  28717. fi
  28718. rm -f conftest*
  28719. fi
  28720. #
  28721. if test "$tst_proto_sigaction" = "yes"; then
  28722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
  28723. $as_echo_n "checking if sigaction is compilable... " >&6; }
  28724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28725. /* end confdefs.h. */
  28726. $curl_includes_signal
  28727. int main (void)
  28728. {
  28729. if(0 != sigaction(0, 0, 0))
  28730. return 1;
  28731. ;
  28732. return 0;
  28733. }
  28734. _ACEOF
  28735. if ac_fn_c_try_compile "$LINENO"; then :
  28736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28737. $as_echo "yes" >&6; }
  28738. tst_compi_sigaction="yes"
  28739. else
  28740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28741. $as_echo "no" >&6; }
  28742. tst_compi_sigaction="no"
  28743. fi
  28744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28745. fi
  28746. #
  28747. if test "$tst_compi_sigaction" = "yes"; then
  28748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
  28749. $as_echo_n "checking if sigaction usage allowed... " >&6; }
  28750. if test "x$curl_disallow_sigaction" != "xyes"; then
  28751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28752. $as_echo "yes" >&6; }
  28753. tst_allow_sigaction="yes"
  28754. else
  28755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28756. $as_echo "no" >&6; }
  28757. tst_allow_sigaction="no"
  28758. fi
  28759. fi
  28760. #
  28761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
  28762. $as_echo_n "checking if sigaction might be used... " >&6; }
  28763. if test "$tst_links_sigaction" = "yes" &&
  28764. test "$tst_proto_sigaction" = "yes" &&
  28765. test "$tst_compi_sigaction" = "yes" &&
  28766. test "$tst_allow_sigaction" = "yes"; then
  28767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28768. $as_echo "yes" >&6; }
  28769. cat >>confdefs.h <<_ACEOF
  28770. #define HAVE_SIGACTION 1
  28771. _ACEOF
  28772. ac_cv_func_sigaction="yes"
  28773. else
  28774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28775. $as_echo "no" >&6; }
  28776. ac_cv_func_sigaction="no"
  28777. fi
  28778. #
  28779. tst_links_siginterrupt="unknown"
  28780. tst_proto_siginterrupt="unknown"
  28781. tst_compi_siginterrupt="unknown"
  28782. tst_allow_siginterrupt="unknown"
  28783. #
  28784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
  28785. $as_echo_n "checking if siginterrupt can be linked... " >&6; }
  28786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28787. /* end confdefs.h. */
  28788. #define siginterrupt innocuous_siginterrupt
  28789. #ifdef __STDC__
  28790. # include <limits.h>
  28791. #else
  28792. # include <assert.h>
  28793. #endif
  28794. #undef siginterrupt
  28795. #ifdef __cplusplus
  28796. extern "C"
  28797. #endif
  28798. char siginterrupt ();
  28799. #if defined __stub_siginterrupt || defined __stub___siginterrupt
  28800. choke me
  28801. #endif
  28802. int main (void)
  28803. {
  28804. return siginterrupt ();
  28805. ;
  28806. return 0;
  28807. }
  28808. _ACEOF
  28809. if ac_fn_c_try_link "$LINENO"; then :
  28810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28811. $as_echo "yes" >&6; }
  28812. tst_links_siginterrupt="yes"
  28813. else
  28814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28815. $as_echo "no" >&6; }
  28816. tst_links_siginterrupt="no"
  28817. fi
  28818. rm -f core conftest.err conftest.$ac_objext \
  28819. conftest$ac_exeext conftest.$ac_ext
  28820. #
  28821. if test "$tst_links_siginterrupt" = "yes"; then
  28822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
  28823. $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
  28824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28825. /* end confdefs.h. */
  28826. $curl_includes_signal
  28827. _ACEOF
  28828. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28829. $EGREP "siginterrupt" >/dev/null 2>&1; then :
  28830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28831. $as_echo "yes" >&6; }
  28832. tst_proto_siginterrupt="yes"
  28833. else
  28834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28835. $as_echo "no" >&6; }
  28836. tst_proto_siginterrupt="no"
  28837. fi
  28838. rm -f conftest*
  28839. fi
  28840. #
  28841. if test "$tst_proto_siginterrupt" = "yes"; then
  28842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
  28843. $as_echo_n "checking if siginterrupt is compilable... " >&6; }
  28844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28845. /* end confdefs.h. */
  28846. $curl_includes_signal
  28847. int main (void)
  28848. {
  28849. if(0 != siginterrupt(0, 0))
  28850. return 1;
  28851. ;
  28852. return 0;
  28853. }
  28854. _ACEOF
  28855. if ac_fn_c_try_compile "$LINENO"; then :
  28856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28857. $as_echo "yes" >&6; }
  28858. tst_compi_siginterrupt="yes"
  28859. else
  28860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28861. $as_echo "no" >&6; }
  28862. tst_compi_siginterrupt="no"
  28863. fi
  28864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28865. fi
  28866. #
  28867. if test "$tst_compi_siginterrupt" = "yes"; then
  28868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
  28869. $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
  28870. if test "x$curl_disallow_siginterrupt" != "xyes"; then
  28871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28872. $as_echo "yes" >&6; }
  28873. tst_allow_siginterrupt="yes"
  28874. else
  28875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28876. $as_echo "no" >&6; }
  28877. tst_allow_siginterrupt="no"
  28878. fi
  28879. fi
  28880. #
  28881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
  28882. $as_echo_n "checking if siginterrupt might be used... " >&6; }
  28883. if test "$tst_links_siginterrupt" = "yes" &&
  28884. test "$tst_proto_siginterrupt" = "yes" &&
  28885. test "$tst_compi_siginterrupt" = "yes" &&
  28886. test "$tst_allow_siginterrupt" = "yes"; then
  28887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28888. $as_echo "yes" >&6; }
  28889. cat >>confdefs.h <<_ACEOF
  28890. #define HAVE_SIGINTERRUPT 1
  28891. _ACEOF
  28892. ac_cv_func_siginterrupt="yes"
  28893. else
  28894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28895. $as_echo "no" >&6; }
  28896. ac_cv_func_siginterrupt="no"
  28897. fi
  28898. #
  28899. tst_links_signal="unknown"
  28900. tst_proto_signal="unknown"
  28901. tst_compi_signal="unknown"
  28902. tst_allow_signal="unknown"
  28903. #
  28904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
  28905. $as_echo_n "checking if signal can be linked... " >&6; }
  28906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28907. /* end confdefs.h. */
  28908. #define signal innocuous_signal
  28909. #ifdef __STDC__
  28910. # include <limits.h>
  28911. #else
  28912. # include <assert.h>
  28913. #endif
  28914. #undef signal
  28915. #ifdef __cplusplus
  28916. extern "C"
  28917. #endif
  28918. char signal ();
  28919. #if defined __stub_signal || defined __stub___signal
  28920. choke me
  28921. #endif
  28922. int main (void)
  28923. {
  28924. return signal ();
  28925. ;
  28926. return 0;
  28927. }
  28928. _ACEOF
  28929. if ac_fn_c_try_link "$LINENO"; then :
  28930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28931. $as_echo "yes" >&6; }
  28932. tst_links_signal="yes"
  28933. else
  28934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28935. $as_echo "no" >&6; }
  28936. tst_links_signal="no"
  28937. fi
  28938. rm -f core conftest.err conftest.$ac_objext \
  28939. conftest$ac_exeext conftest.$ac_ext
  28940. #
  28941. if test "$tst_links_signal" = "yes"; then
  28942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
  28943. $as_echo_n "checking if signal is prototyped... " >&6; }
  28944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28945. /* end confdefs.h. */
  28946. $curl_includes_signal
  28947. _ACEOF
  28948. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28949. $EGREP "signal" >/dev/null 2>&1; then :
  28950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28951. $as_echo "yes" >&6; }
  28952. tst_proto_signal="yes"
  28953. else
  28954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28955. $as_echo "no" >&6; }
  28956. tst_proto_signal="no"
  28957. fi
  28958. rm -f conftest*
  28959. fi
  28960. #
  28961. if test "$tst_proto_signal" = "yes"; then
  28962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
  28963. $as_echo_n "checking if signal is compilable... " >&6; }
  28964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28965. /* end confdefs.h. */
  28966. $curl_includes_signal
  28967. int main (void)
  28968. {
  28969. if(0 != signal(0, 0))
  28970. return 1;
  28971. ;
  28972. return 0;
  28973. }
  28974. _ACEOF
  28975. if ac_fn_c_try_compile "$LINENO"; then :
  28976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28977. $as_echo "yes" >&6; }
  28978. tst_compi_signal="yes"
  28979. else
  28980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28981. $as_echo "no" >&6; }
  28982. tst_compi_signal="no"
  28983. fi
  28984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28985. fi
  28986. #
  28987. if test "$tst_compi_signal" = "yes"; then
  28988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
  28989. $as_echo_n "checking if signal usage allowed... " >&6; }
  28990. if test "x$curl_disallow_signal" != "xyes"; then
  28991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28992. $as_echo "yes" >&6; }
  28993. tst_allow_signal="yes"
  28994. else
  28995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28996. $as_echo "no" >&6; }
  28997. tst_allow_signal="no"
  28998. fi
  28999. fi
  29000. #
  29001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
  29002. $as_echo_n "checking if signal might be used... " >&6; }
  29003. if test "$tst_links_signal" = "yes" &&
  29004. test "$tst_proto_signal" = "yes" &&
  29005. test "$tst_compi_signal" = "yes" &&
  29006. test "$tst_allow_signal" = "yes"; then
  29007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29008. $as_echo "yes" >&6; }
  29009. cat >>confdefs.h <<_ACEOF
  29010. #define HAVE_SIGNAL 1
  29011. _ACEOF
  29012. ac_cv_func_signal="yes"
  29013. else
  29014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29015. $as_echo "no" >&6; }
  29016. ac_cv_func_signal="no"
  29017. fi
  29018. curl_includes_setjmp="\
  29019. /* includes start */
  29020. #ifdef HAVE_SYS_TYPES_H
  29021. # include <sys/types.h>
  29022. #endif
  29023. #ifdef HAVE_SETJMP_H
  29024. # include <setjmp.h>
  29025. #endif
  29026. /* includes end */"
  29027. for ac_header in sys/types.h setjmp.h
  29028. do :
  29029. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29030. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
  29031. "
  29032. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  29033. cat >>confdefs.h <<_ACEOF
  29034. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29035. _ACEOF
  29036. fi
  29037. done
  29038. #
  29039. tst_links_sigsetjmp="unknown"
  29040. tst_macro_sigsetjmp="unknown"
  29041. tst_proto_sigsetjmp="unknown"
  29042. tst_compi_sigsetjmp="unknown"
  29043. tst_allow_sigsetjmp="unknown"
  29044. #
  29045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
  29046. $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
  29047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29048. /* end confdefs.h. */
  29049. #define sigsetjmp innocuous_sigsetjmp
  29050. #ifdef __STDC__
  29051. # include <limits.h>
  29052. #else
  29053. # include <assert.h>
  29054. #endif
  29055. #undef sigsetjmp
  29056. #ifdef __cplusplus
  29057. extern "C"
  29058. #endif
  29059. char sigsetjmp ();
  29060. #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
  29061. choke me
  29062. #endif
  29063. int main (void)
  29064. {
  29065. return sigsetjmp ();
  29066. ;
  29067. return 0;
  29068. }
  29069. _ACEOF
  29070. if ac_fn_c_try_link "$LINENO"; then :
  29071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29072. $as_echo "yes" >&6; }
  29073. tst_links_sigsetjmp="yes"
  29074. else
  29075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29076. $as_echo "no" >&6; }
  29077. tst_links_sigsetjmp="no"
  29078. fi
  29079. rm -f core conftest.err conftest.$ac_objext \
  29080. conftest$ac_exeext conftest.$ac_ext
  29081. #
  29082. if test "$tst_links_sigsetjmp" = "no"; then
  29083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
  29084. $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
  29085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29086. /* end confdefs.h. */
  29087. $curl_includes_setjmp
  29088. int main (void)
  29089. {
  29090. sigjmp_buf env;
  29091. if(0 != sigsetjmp(env, 0))
  29092. return 1;
  29093. ;
  29094. return 0;
  29095. }
  29096. _ACEOF
  29097. if ac_fn_c_try_link "$LINENO"; then :
  29098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29099. $as_echo "yes" >&6; }
  29100. tst_macro_sigsetjmp="yes"
  29101. else
  29102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29103. $as_echo "no" >&6; }
  29104. tst_macro_sigsetjmp="no"
  29105. fi
  29106. rm -f core conftest.err conftest.$ac_objext \
  29107. conftest$ac_exeext conftest.$ac_ext
  29108. fi
  29109. #
  29110. if test "$tst_links_sigsetjmp" = "yes"; then
  29111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
  29112. $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
  29113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29114. /* end confdefs.h. */
  29115. $curl_includes_setjmp
  29116. _ACEOF
  29117. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29118. $EGREP "sigsetjmp" >/dev/null 2>&1; then :
  29119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29120. $as_echo "yes" >&6; }
  29121. tst_proto_sigsetjmp="yes"
  29122. else
  29123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29124. $as_echo "no" >&6; }
  29125. tst_proto_sigsetjmp="no"
  29126. fi
  29127. rm -f conftest*
  29128. fi
  29129. #
  29130. if test "$tst_proto_sigsetjmp" = "yes" ||
  29131. test "$tst_macro_sigsetjmp" = "yes"; then
  29132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
  29133. $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
  29134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29135. /* end confdefs.h. */
  29136. $curl_includes_setjmp
  29137. int main (void)
  29138. {
  29139. sigjmp_buf env;
  29140. if(0 != sigsetjmp(env, 0))
  29141. return 1;
  29142. ;
  29143. return 0;
  29144. }
  29145. _ACEOF
  29146. if ac_fn_c_try_compile "$LINENO"; then :
  29147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29148. $as_echo "yes" >&6; }
  29149. tst_compi_sigsetjmp="yes"
  29150. else
  29151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29152. $as_echo "no" >&6; }
  29153. tst_compi_sigsetjmp="no"
  29154. fi
  29155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29156. fi
  29157. #
  29158. if test "$tst_compi_sigsetjmp" = "yes"; then
  29159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
  29160. $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
  29161. if test "x$curl_disallow_sigsetjmp" != "xyes"; then
  29162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29163. $as_echo "yes" >&6; }
  29164. tst_allow_sigsetjmp="yes"
  29165. else
  29166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29167. $as_echo "no" >&6; }
  29168. tst_allow_sigsetjmp="no"
  29169. fi
  29170. fi
  29171. #
  29172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
  29173. $as_echo_n "checking if sigsetjmp might be used... " >&6; }
  29174. if (test "$tst_proto_sigsetjmp" = "yes" ||
  29175. test "$tst_macro_sigsetjmp" = "yes") &&
  29176. test "$tst_compi_sigsetjmp" = "yes" &&
  29177. test "$tst_allow_sigsetjmp" = "yes"; then
  29178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29179. $as_echo "yes" >&6; }
  29180. cat >>confdefs.h <<_ACEOF
  29181. #define HAVE_SIGSETJMP 1
  29182. _ACEOF
  29183. ac_cv_func_sigsetjmp="yes"
  29184. else
  29185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29186. $as_echo "no" >&6; }
  29187. ac_cv_func_sigsetjmp="no"
  29188. fi
  29189. #
  29190. tst_links_socket="unknown"
  29191. tst_proto_socket="unknown"
  29192. tst_compi_socket="unknown"
  29193. tst_allow_socket="unknown"
  29194. #
  29195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
  29196. $as_echo_n "checking if socket can be linked... " >&6; }
  29197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29198. /* end confdefs.h. */
  29199. $curl_includes_winsock2
  29200. $curl_includes_sys_socket
  29201. $curl_includes_socket
  29202. int main (void)
  29203. {
  29204. if(0 != socket(0, 0, 0))
  29205. return 1;
  29206. ;
  29207. return 0;
  29208. }
  29209. _ACEOF
  29210. if ac_fn_c_try_link "$LINENO"; then :
  29211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29212. $as_echo "yes" >&6; }
  29213. tst_links_socket="yes"
  29214. else
  29215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29216. $as_echo "no" >&6; }
  29217. tst_links_socket="no"
  29218. fi
  29219. rm -f core conftest.err conftest.$ac_objext \
  29220. conftest$ac_exeext conftest.$ac_ext
  29221. #
  29222. if test "$tst_links_socket" = "yes"; then
  29223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
  29224. $as_echo_n "checking if socket is prototyped... " >&6; }
  29225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29226. /* end confdefs.h. */
  29227. $curl_includes_winsock2
  29228. $curl_includes_sys_socket
  29229. $curl_includes_socket
  29230. _ACEOF
  29231. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29232. $EGREP "socket" >/dev/null 2>&1; then :
  29233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29234. $as_echo "yes" >&6; }
  29235. tst_proto_socket="yes"
  29236. else
  29237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29238. $as_echo "no" >&6; }
  29239. tst_proto_socket="no"
  29240. fi
  29241. rm -f conftest*
  29242. fi
  29243. #
  29244. if test "$tst_proto_socket" = "yes"; then
  29245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
  29246. $as_echo_n "checking if socket is compilable... " >&6; }
  29247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29248. /* end confdefs.h. */
  29249. $curl_includes_winsock2
  29250. $curl_includes_sys_socket
  29251. $curl_includes_socket
  29252. int main (void)
  29253. {
  29254. if(0 != socket(0, 0, 0))
  29255. return 1;
  29256. ;
  29257. return 0;
  29258. }
  29259. _ACEOF
  29260. if ac_fn_c_try_compile "$LINENO"; then :
  29261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29262. $as_echo "yes" >&6; }
  29263. tst_compi_socket="yes"
  29264. else
  29265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29266. $as_echo "no" >&6; }
  29267. tst_compi_socket="no"
  29268. fi
  29269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29270. fi
  29271. #
  29272. if test "$tst_compi_socket" = "yes"; then
  29273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
  29274. $as_echo_n "checking if socket usage allowed... " >&6; }
  29275. if test "x$curl_disallow_socket" != "xyes"; then
  29276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29277. $as_echo "yes" >&6; }
  29278. tst_allow_socket="yes"
  29279. else
  29280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29281. $as_echo "no" >&6; }
  29282. tst_allow_socket="no"
  29283. fi
  29284. fi
  29285. #
  29286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
  29287. $as_echo_n "checking if socket might be used... " >&6; }
  29288. if test "$tst_links_socket" = "yes" &&
  29289. test "$tst_proto_socket" = "yes" &&
  29290. test "$tst_compi_socket" = "yes" &&
  29291. test "$tst_allow_socket" = "yes"; then
  29292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29293. $as_echo "yes" >&6; }
  29294. cat >>confdefs.h <<_ACEOF
  29295. #define HAVE_SOCKET 1
  29296. _ACEOF
  29297. ac_cv_func_socket="yes"
  29298. else
  29299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29300. $as_echo "no" >&6; }
  29301. ac_cv_func_socket="no"
  29302. fi
  29303. #
  29304. tst_links_socketpair="unknown"
  29305. tst_proto_socketpair="unknown"
  29306. tst_compi_socketpair="unknown"
  29307. tst_allow_socketpair="unknown"
  29308. #
  29309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
  29310. $as_echo_n "checking if socketpair can be linked... " >&6; }
  29311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29312. /* end confdefs.h. */
  29313. #define socketpair innocuous_socketpair
  29314. #ifdef __STDC__
  29315. # include <limits.h>
  29316. #else
  29317. # include <assert.h>
  29318. #endif
  29319. #undef socketpair
  29320. #ifdef __cplusplus
  29321. extern "C"
  29322. #endif
  29323. char socketpair ();
  29324. #if defined __stub_socketpair || defined __stub___socketpair
  29325. choke me
  29326. #endif
  29327. int main (void)
  29328. {
  29329. return socketpair ();
  29330. ;
  29331. return 0;
  29332. }
  29333. _ACEOF
  29334. if ac_fn_c_try_link "$LINENO"; then :
  29335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29336. $as_echo "yes" >&6; }
  29337. tst_links_socketpair="yes"
  29338. else
  29339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29340. $as_echo "no" >&6; }
  29341. tst_links_socketpair="no"
  29342. fi
  29343. rm -f core conftest.err conftest.$ac_objext \
  29344. conftest$ac_exeext conftest.$ac_ext
  29345. #
  29346. if test "$tst_links_socketpair" = "yes"; then
  29347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
  29348. $as_echo_n "checking if socketpair is prototyped... " >&6; }
  29349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29350. /* end confdefs.h. */
  29351. $curl_includes_sys_socket
  29352. $curl_includes_socket
  29353. _ACEOF
  29354. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29355. $EGREP "socketpair" >/dev/null 2>&1; then :
  29356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29357. $as_echo "yes" >&6; }
  29358. tst_proto_socketpair="yes"
  29359. else
  29360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29361. $as_echo "no" >&6; }
  29362. tst_proto_socketpair="no"
  29363. fi
  29364. rm -f conftest*
  29365. fi
  29366. #
  29367. if test "$tst_proto_socketpair" = "yes"; then
  29368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
  29369. $as_echo_n "checking if socketpair is compilable... " >&6; }
  29370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29371. /* end confdefs.h. */
  29372. $curl_includes_sys_socket
  29373. $curl_includes_socket
  29374. int main (void)
  29375. {
  29376. int sv[2];
  29377. if(0 != socketpair(0, 0, 0, sv))
  29378. return 1;
  29379. ;
  29380. return 0;
  29381. }
  29382. _ACEOF
  29383. if ac_fn_c_try_compile "$LINENO"; then :
  29384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29385. $as_echo "yes" >&6; }
  29386. tst_compi_socketpair="yes"
  29387. else
  29388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29389. $as_echo "no" >&6; }
  29390. tst_compi_socketpair="no"
  29391. fi
  29392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29393. fi
  29394. #
  29395. if test "$tst_compi_socketpair" = "yes"; then
  29396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
  29397. $as_echo_n "checking if socketpair usage allowed... " >&6; }
  29398. if test "x$curl_disallow_socketpair" != "xyes"; then
  29399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29400. $as_echo "yes" >&6; }
  29401. tst_allow_socketpair="yes"
  29402. else
  29403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29404. $as_echo "no" >&6; }
  29405. tst_allow_socketpair="no"
  29406. fi
  29407. fi
  29408. #
  29409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
  29410. $as_echo_n "checking if socketpair might be used... " >&6; }
  29411. if test "$tst_links_socketpair" = "yes" &&
  29412. test "$tst_proto_socketpair" = "yes" &&
  29413. test "$tst_compi_socketpair" = "yes" &&
  29414. test "$tst_allow_socketpair" = "yes"; then
  29415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29416. $as_echo "yes" >&6; }
  29417. cat >>confdefs.h <<_ACEOF
  29418. #define HAVE_SOCKETPAIR 1
  29419. _ACEOF
  29420. ac_cv_func_socketpair="yes"
  29421. else
  29422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29423. $as_echo "no" >&6; }
  29424. ac_cv_func_socketpair="no"
  29425. fi
  29426. #
  29427. tst_links_strcasecmp="unknown"
  29428. tst_proto_strcasecmp="unknown"
  29429. tst_compi_strcasecmp="unknown"
  29430. tst_allow_strcasecmp="unknown"
  29431. #
  29432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
  29433. $as_echo_n "checking if strcasecmp can be linked... " >&6; }
  29434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29435. /* end confdefs.h. */
  29436. #define strcasecmp innocuous_strcasecmp
  29437. #ifdef __STDC__
  29438. # include <limits.h>
  29439. #else
  29440. # include <assert.h>
  29441. #endif
  29442. #undef strcasecmp
  29443. #ifdef __cplusplus
  29444. extern "C"
  29445. #endif
  29446. char strcasecmp ();
  29447. #if defined __stub_strcasecmp || defined __stub___strcasecmp
  29448. choke me
  29449. #endif
  29450. int main (void)
  29451. {
  29452. return strcasecmp ();
  29453. ;
  29454. return 0;
  29455. }
  29456. _ACEOF
  29457. if ac_fn_c_try_link "$LINENO"; then :
  29458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29459. $as_echo "yes" >&6; }
  29460. tst_links_strcasecmp="yes"
  29461. else
  29462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29463. $as_echo "no" >&6; }
  29464. tst_links_strcasecmp="no"
  29465. fi
  29466. rm -f core conftest.err conftest.$ac_objext \
  29467. conftest$ac_exeext conftest.$ac_ext
  29468. #
  29469. if test "$tst_links_strcasecmp" = "yes"; then
  29470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
  29471. $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
  29472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29473. /* end confdefs.h. */
  29474. $curl_includes_string
  29475. _ACEOF
  29476. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29477. $EGREP "strcasecmp" >/dev/null 2>&1; then :
  29478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29479. $as_echo "yes" >&6; }
  29480. tst_proto_strcasecmp="yes"
  29481. else
  29482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29483. $as_echo "no" >&6; }
  29484. tst_proto_strcasecmp="no"
  29485. fi
  29486. rm -f conftest*
  29487. fi
  29488. #
  29489. if test "$tst_proto_strcasecmp" = "yes"; then
  29490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
  29491. $as_echo_n "checking if strcasecmp is compilable... " >&6; }
  29492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29493. /* end confdefs.h. */
  29494. $curl_includes_string
  29495. int main (void)
  29496. {
  29497. if(0 != strcasecmp(0, 0))
  29498. return 1;
  29499. ;
  29500. return 0;
  29501. }
  29502. _ACEOF
  29503. if ac_fn_c_try_compile "$LINENO"; then :
  29504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29505. $as_echo "yes" >&6; }
  29506. tst_compi_strcasecmp="yes"
  29507. else
  29508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29509. $as_echo "no" >&6; }
  29510. tst_compi_strcasecmp="no"
  29511. fi
  29512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29513. fi
  29514. #
  29515. if test "$tst_compi_strcasecmp" = "yes"; then
  29516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
  29517. $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
  29518. if test "x$curl_disallow_strcasecmp" != "xyes"; then
  29519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29520. $as_echo "yes" >&6; }
  29521. tst_allow_strcasecmp="yes"
  29522. else
  29523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29524. $as_echo "no" >&6; }
  29525. tst_allow_strcasecmp="no"
  29526. fi
  29527. fi
  29528. #
  29529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
  29530. $as_echo_n "checking if strcasecmp might be used... " >&6; }
  29531. if test "$tst_links_strcasecmp" = "yes" &&
  29532. test "$tst_proto_strcasecmp" = "yes" &&
  29533. test "$tst_compi_strcasecmp" = "yes" &&
  29534. test "$tst_allow_strcasecmp" = "yes"; then
  29535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29536. $as_echo "yes" >&6; }
  29537. cat >>confdefs.h <<_ACEOF
  29538. #define HAVE_STRCASECMP 1
  29539. _ACEOF
  29540. ac_cv_func_strcasecmp="yes"
  29541. else
  29542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29543. $as_echo "no" >&6; }
  29544. ac_cv_func_strcasecmp="no"
  29545. fi
  29546. #
  29547. tst_links_strcmpi="unknown"
  29548. tst_proto_strcmpi="unknown"
  29549. tst_compi_strcmpi="unknown"
  29550. tst_allow_strcmpi="unknown"
  29551. #
  29552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
  29553. $as_echo_n "checking if strcmpi can be linked... " >&6; }
  29554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29555. /* end confdefs.h. */
  29556. #define strcmpi innocuous_strcmpi
  29557. #ifdef __STDC__
  29558. # include <limits.h>
  29559. #else
  29560. # include <assert.h>
  29561. #endif
  29562. #undef strcmpi
  29563. #ifdef __cplusplus
  29564. extern "C"
  29565. #endif
  29566. char strcmpi ();
  29567. #if defined __stub_strcmpi || defined __stub___strcmpi
  29568. choke me
  29569. #endif
  29570. int main (void)
  29571. {
  29572. return strcmpi ();
  29573. ;
  29574. return 0;
  29575. }
  29576. _ACEOF
  29577. if ac_fn_c_try_link "$LINENO"; then :
  29578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29579. $as_echo "yes" >&6; }
  29580. tst_links_strcmpi="yes"
  29581. else
  29582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29583. $as_echo "no" >&6; }
  29584. tst_links_strcmpi="no"
  29585. fi
  29586. rm -f core conftest.err conftest.$ac_objext \
  29587. conftest$ac_exeext conftest.$ac_ext
  29588. #
  29589. if test "$tst_links_strcmpi" = "yes"; then
  29590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
  29591. $as_echo_n "checking if strcmpi is prototyped... " >&6; }
  29592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29593. /* end confdefs.h. */
  29594. $curl_includes_string
  29595. _ACEOF
  29596. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29597. $EGREP "strcmpi" >/dev/null 2>&1; then :
  29598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29599. $as_echo "yes" >&6; }
  29600. tst_proto_strcmpi="yes"
  29601. else
  29602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29603. $as_echo "no" >&6; }
  29604. tst_proto_strcmpi="no"
  29605. fi
  29606. rm -f conftest*
  29607. fi
  29608. #
  29609. if test "$tst_proto_strcmpi" = "yes"; then
  29610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
  29611. $as_echo_n "checking if strcmpi is compilable... " >&6; }
  29612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29613. /* end confdefs.h. */
  29614. $curl_includes_string
  29615. int main (void)
  29616. {
  29617. if(0 != strcmpi(0, 0))
  29618. return 1;
  29619. ;
  29620. return 0;
  29621. }
  29622. _ACEOF
  29623. if ac_fn_c_try_compile "$LINENO"; then :
  29624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29625. $as_echo "yes" >&6; }
  29626. tst_compi_strcmpi="yes"
  29627. else
  29628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29629. $as_echo "no" >&6; }
  29630. tst_compi_strcmpi="no"
  29631. fi
  29632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29633. fi
  29634. #
  29635. if test "$tst_compi_strcmpi" = "yes"; then
  29636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
  29637. $as_echo_n "checking if strcmpi usage allowed... " >&6; }
  29638. if test "x$curl_disallow_strcmpi" != "xyes"; then
  29639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29640. $as_echo "yes" >&6; }
  29641. tst_allow_strcmpi="yes"
  29642. else
  29643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29644. $as_echo "no" >&6; }
  29645. tst_allow_strcmpi="no"
  29646. fi
  29647. fi
  29648. #
  29649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
  29650. $as_echo_n "checking if strcmpi might be used... " >&6; }
  29651. if test "$tst_links_strcmpi" = "yes" &&
  29652. test "$tst_proto_strcmpi" = "yes" &&
  29653. test "$tst_compi_strcmpi" = "yes" &&
  29654. test "$tst_allow_strcmpi" = "yes"; then
  29655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29656. $as_echo "yes" >&6; }
  29657. cat >>confdefs.h <<_ACEOF
  29658. #define HAVE_STRCMPI 1
  29659. _ACEOF
  29660. ac_cv_func_strcmpi="yes"
  29661. else
  29662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29663. $as_echo "no" >&6; }
  29664. ac_cv_func_strcmpi="no"
  29665. fi
  29666. #
  29667. tst_links_strdup="unknown"
  29668. tst_proto_strdup="unknown"
  29669. tst_compi_strdup="unknown"
  29670. tst_allow_strdup="unknown"
  29671. #
  29672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
  29673. $as_echo_n "checking if strdup can be linked... " >&6; }
  29674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29675. /* end confdefs.h. */
  29676. #define strdup innocuous_strdup
  29677. #ifdef __STDC__
  29678. # include <limits.h>
  29679. #else
  29680. # include <assert.h>
  29681. #endif
  29682. #undef strdup
  29683. #ifdef __cplusplus
  29684. extern "C"
  29685. #endif
  29686. char strdup ();
  29687. #if defined __stub_strdup || defined __stub___strdup
  29688. choke me
  29689. #endif
  29690. int main (void)
  29691. {
  29692. return strdup ();
  29693. ;
  29694. return 0;
  29695. }
  29696. _ACEOF
  29697. if ac_fn_c_try_link "$LINENO"; then :
  29698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29699. $as_echo "yes" >&6; }
  29700. tst_links_strdup="yes"
  29701. else
  29702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29703. $as_echo "no" >&6; }
  29704. tst_links_strdup="no"
  29705. fi
  29706. rm -f core conftest.err conftest.$ac_objext \
  29707. conftest$ac_exeext conftest.$ac_ext
  29708. #
  29709. if test "$tst_links_strdup" = "yes"; then
  29710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
  29711. $as_echo_n "checking if strdup is prototyped... " >&6; }
  29712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29713. /* end confdefs.h. */
  29714. $curl_includes_string
  29715. _ACEOF
  29716. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29717. $EGREP "strdup" >/dev/null 2>&1; then :
  29718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29719. $as_echo "yes" >&6; }
  29720. tst_proto_strdup="yes"
  29721. else
  29722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29723. $as_echo "no" >&6; }
  29724. tst_proto_strdup="no"
  29725. fi
  29726. rm -f conftest*
  29727. fi
  29728. #
  29729. if test "$tst_proto_strdup" = "yes"; then
  29730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
  29731. $as_echo_n "checking if strdup is compilable... " >&6; }
  29732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29733. /* end confdefs.h. */
  29734. $curl_includes_string
  29735. int main (void)
  29736. {
  29737. if(0 != strdup(0))
  29738. return 1;
  29739. ;
  29740. return 0;
  29741. }
  29742. _ACEOF
  29743. if ac_fn_c_try_compile "$LINENO"; then :
  29744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29745. $as_echo "yes" >&6; }
  29746. tst_compi_strdup="yes"
  29747. else
  29748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29749. $as_echo "no" >&6; }
  29750. tst_compi_strdup="no"
  29751. fi
  29752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29753. fi
  29754. #
  29755. if test "$tst_compi_strdup" = "yes"; then
  29756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
  29757. $as_echo_n "checking if strdup usage allowed... " >&6; }
  29758. if test "x$curl_disallow_strdup" != "xyes"; then
  29759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29760. $as_echo "yes" >&6; }
  29761. tst_allow_strdup="yes"
  29762. else
  29763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29764. $as_echo "no" >&6; }
  29765. tst_allow_strdup="no"
  29766. fi
  29767. fi
  29768. #
  29769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
  29770. $as_echo_n "checking if strdup might be used... " >&6; }
  29771. if test "$tst_links_strdup" = "yes" &&
  29772. test "$tst_proto_strdup" = "yes" &&
  29773. test "$tst_compi_strdup" = "yes" &&
  29774. test "$tst_allow_strdup" = "yes"; then
  29775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29776. $as_echo "yes" >&6; }
  29777. cat >>confdefs.h <<_ACEOF
  29778. #define HAVE_STRDUP 1
  29779. _ACEOF
  29780. ac_cv_func_strdup="yes"
  29781. else
  29782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29783. $as_echo "no" >&6; }
  29784. ac_cv_func_strdup="no"
  29785. fi
  29786. #
  29787. tst_links_strerror_r="unknown"
  29788. tst_proto_strerror_r="unknown"
  29789. tst_compi_strerror_r="unknown"
  29790. tst_glibc_strerror_r="unknown"
  29791. tst_posix_strerror_r="unknown"
  29792. tst_allow_strerror_r="unknown"
  29793. tst_works_glibc_strerror_r="unknown"
  29794. tst_works_posix_strerror_r="unknown"
  29795. tst_glibc_strerror_r_type_arg3="unknown"
  29796. tst_posix_strerror_r_type_arg3="unknown"
  29797. #
  29798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
  29799. $as_echo_n "checking if strerror_r can be linked... " >&6; }
  29800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29801. /* end confdefs.h. */
  29802. #define strerror_r innocuous_strerror_r
  29803. #ifdef __STDC__
  29804. # include <limits.h>
  29805. #else
  29806. # include <assert.h>
  29807. #endif
  29808. #undef strerror_r
  29809. #ifdef __cplusplus
  29810. extern "C"
  29811. #endif
  29812. char strerror_r ();
  29813. #if defined __stub_strerror_r || defined __stub___strerror_r
  29814. choke me
  29815. #endif
  29816. int main (void)
  29817. {
  29818. return strerror_r ();
  29819. ;
  29820. return 0;
  29821. }
  29822. _ACEOF
  29823. if ac_fn_c_try_link "$LINENO"; then :
  29824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29825. $as_echo "yes" >&6; }
  29826. tst_links_strerror_r="yes"
  29827. else
  29828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29829. $as_echo "no" >&6; }
  29830. tst_links_strerror_r="no"
  29831. fi
  29832. rm -f core conftest.err conftest.$ac_objext \
  29833. conftest$ac_exeext conftest.$ac_ext
  29834. #
  29835. if test "$tst_links_strerror_r" = "yes"; then
  29836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
  29837. $as_echo_n "checking if strerror_r is prototyped... " >&6; }
  29838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29839. /* end confdefs.h. */
  29840. $curl_includes_string
  29841. _ACEOF
  29842. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29843. $EGREP "strerror_r" >/dev/null 2>&1; then :
  29844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29845. $as_echo "yes" >&6; }
  29846. tst_proto_strerror_r="yes"
  29847. else
  29848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29849. $as_echo "no" >&6; }
  29850. tst_proto_strerror_r="no"
  29851. fi
  29852. rm -f conftest*
  29853. fi
  29854. #
  29855. if test "$tst_proto_strerror_r" = "yes"; then
  29856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
  29857. $as_echo_n "checking if strerror_r is compilable... " >&6; }
  29858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29859. /* end confdefs.h. */
  29860. $curl_includes_string
  29861. int main (void)
  29862. {
  29863. if(0 != strerror_r(0, 0, 0))
  29864. return 1;
  29865. ;
  29866. return 0;
  29867. }
  29868. _ACEOF
  29869. if ac_fn_c_try_compile "$LINENO"; then :
  29870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29871. $as_echo "yes" >&6; }
  29872. tst_compi_strerror_r="yes"
  29873. else
  29874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29875. $as_echo "no" >&6; }
  29876. tst_compi_strerror_r="no"
  29877. fi
  29878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29879. fi
  29880. #
  29881. if test "$tst_compi_strerror_r" = "yes"; then
  29882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
  29883. $as_echo_n "checking if strerror_r is glibc like... " >&6; }
  29884. tst_glibc_strerror_r_type_arg3="unknown"
  29885. for arg3 in 'size_t' 'int' 'unsigned int'; do
  29886. if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
  29887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29888. /* end confdefs.h. */
  29889. $curl_includes_string
  29890. char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
  29891. int main (void)
  29892. {
  29893. if(0 != strerror_r(0, 0, 0))
  29894. return 1;
  29895. ;
  29896. return 0;
  29897. }
  29898. _ACEOF
  29899. if ac_fn_c_try_compile "$LINENO"; then :
  29900. tst_glibc_strerror_r_type_arg3="$arg3"
  29901. fi
  29902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29903. fi
  29904. done
  29905. case "$tst_glibc_strerror_r_type_arg3" in
  29906. unknown)
  29907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29908. $as_echo "no" >&6; }
  29909. tst_glibc_strerror_r="no"
  29910. ;;
  29911. *)
  29912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29913. $as_echo "yes" >&6; }
  29914. tst_glibc_strerror_r="yes"
  29915. ;;
  29916. esac
  29917. fi
  29918. #
  29919. if test "x$cross_compiling" != "xyes" &&
  29920. test "$tst_glibc_strerror_r" = "yes"; then
  29921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
  29922. $as_echo_n "checking if strerror_r seems to work... " >&6; }
  29923. if test "$cross_compiling" = yes; then :
  29924. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  29925. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  29926. as_fn_error $? "cannot run test program while cross compiling
  29927. See \`config.log' for more details" "$LINENO" 5; }
  29928. else
  29929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29930. /* end confdefs.h. */
  29931. $curl_includes_stdlib
  29932. $curl_includes_string
  29933. # include <errno.h>
  29934. int main (void)
  29935. {
  29936. char buffer[1024];
  29937. char *string = 0;
  29938. buffer[0] = '\0';
  29939. string = strerror_r(EACCES, buffer, sizeof(buffer));
  29940. if(!string)
  29941. exit(1); /* fail */
  29942. if(!string[0])
  29943. exit(1); /* fail */
  29944. else
  29945. exit(0);
  29946. ;
  29947. return 0;
  29948. }
  29949. _ACEOF
  29950. if ac_fn_c_try_run "$LINENO"; then :
  29951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29952. $as_echo "yes" >&6; }
  29953. tst_works_glibc_strerror_r="yes"
  29954. else
  29955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29956. $as_echo "no" >&6; }
  29957. tst_works_glibc_strerror_r="no"
  29958. fi
  29959. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  29960. conftest.$ac_objext conftest.beam conftest.$ac_ext
  29961. fi
  29962. fi
  29963. #
  29964. if test "$tst_compi_strerror_r" = "yes" &&
  29965. test "$tst_works_glibc_strerror_r" != "yes"; then
  29966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
  29967. $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
  29968. tst_posix_strerror_r_type_arg3="unknown"
  29969. for arg3 in 'size_t' 'int' 'unsigned int'; do
  29970. if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
  29971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29972. /* end confdefs.h. */
  29973. $curl_includes_string
  29974. int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
  29975. int main (void)
  29976. {
  29977. if(0 != strerror_r(0, 0, 0))
  29978. return 1;
  29979. ;
  29980. return 0;
  29981. }
  29982. _ACEOF
  29983. if ac_fn_c_try_compile "$LINENO"; then :
  29984. tst_posix_strerror_r_type_arg3="$arg3"
  29985. fi
  29986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29987. fi
  29988. done
  29989. case "$tst_posix_strerror_r_type_arg3" in
  29990. unknown)
  29991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29992. $as_echo "no" >&6; }
  29993. tst_posix_strerror_r="no"
  29994. ;;
  29995. *)
  29996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29997. $as_echo "yes" >&6; }
  29998. tst_posix_strerror_r="yes"
  29999. ;;
  30000. esac
  30001. fi
  30002. #
  30003. if test "x$cross_compiling" != "xyes" &&
  30004. test "$tst_posix_strerror_r" = "yes"; then
  30005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
  30006. $as_echo_n "checking if strerror_r seems to work... " >&6; }
  30007. if test "$cross_compiling" = yes; then :
  30008. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  30009. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  30010. as_fn_error $? "cannot run test program while cross compiling
  30011. See \`config.log' for more details" "$LINENO" 5; }
  30012. else
  30013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30014. /* end confdefs.h. */
  30015. $curl_includes_stdlib
  30016. $curl_includes_string
  30017. # include <errno.h>
  30018. int main (void)
  30019. {
  30020. char buffer[1024];
  30021. int error = 1;
  30022. buffer[0] = '\0';
  30023. error = strerror_r(EACCES, buffer, sizeof(buffer));
  30024. if(error)
  30025. exit(1); /* fail */
  30026. if(buffer[0] == '\0')
  30027. exit(1); /* fail */
  30028. else
  30029. exit(0);
  30030. ;
  30031. return 0;
  30032. }
  30033. _ACEOF
  30034. if ac_fn_c_try_run "$LINENO"; then :
  30035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30036. $as_echo "yes" >&6; }
  30037. tst_works_posix_strerror_r="yes"
  30038. else
  30039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30040. $as_echo "no" >&6; }
  30041. tst_works_posix_strerror_r="no"
  30042. fi
  30043. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  30044. conftest.$ac_objext conftest.beam conftest.$ac_ext
  30045. fi
  30046. fi
  30047. #
  30048. if test "$tst_works_glibc_strerror_r" = "yes"; then
  30049. tst_posix_strerror_r="no"
  30050. fi
  30051. if test "$tst_works_posix_strerror_r" = "yes"; then
  30052. tst_glibc_strerror_r="no"
  30053. fi
  30054. if test "$tst_glibc_strerror_r" = "yes" &&
  30055. test "$tst_works_glibc_strerror_r" != "no" &&
  30056. test "$tst_posix_strerror_r" != "yes"; then
  30057. tst_allow_strerror_r="check"
  30058. fi
  30059. if test "$tst_posix_strerror_r" = "yes" &&
  30060. test "$tst_works_posix_strerror_r" != "no" &&
  30061. test "$tst_glibc_strerror_r" != "yes"; then
  30062. tst_allow_strerror_r="check"
  30063. fi
  30064. if test "$tst_allow_strerror_r" = "check"; then
  30065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
  30066. $as_echo_n "checking if strerror_r usage allowed... " >&6; }
  30067. if test "x$curl_disallow_strerror_r" != "xyes"; then
  30068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30069. $as_echo "yes" >&6; }
  30070. tst_allow_strerror_r="yes"
  30071. else
  30072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30073. $as_echo "no" >&6; }
  30074. tst_allow_strerror_r="no"
  30075. fi
  30076. fi
  30077. #
  30078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
  30079. $as_echo_n "checking if strerror_r might be used... " >&6; }
  30080. if test "$tst_links_strerror_r" = "yes" &&
  30081. test "$tst_proto_strerror_r" = "yes" &&
  30082. test "$tst_compi_strerror_r" = "yes" &&
  30083. test "$tst_allow_strerror_r" = "yes"; then
  30084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30085. $as_echo "yes" >&6; }
  30086. if test "$tst_glibc_strerror_r" = "yes"; then
  30087. cat >>confdefs.h <<_ACEOF
  30088. #define HAVE_STRERROR_R 1
  30089. _ACEOF
  30090. cat >>confdefs.h <<_ACEOF
  30091. #define HAVE_GLIBC_STRERROR_R 1
  30092. _ACEOF
  30093. cat >>confdefs.h <<_ACEOF
  30094. #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
  30095. _ACEOF
  30096. fi
  30097. if test "$tst_posix_strerror_r" = "yes"; then
  30098. cat >>confdefs.h <<_ACEOF
  30099. #define HAVE_STRERROR_R 1
  30100. _ACEOF
  30101. cat >>confdefs.h <<_ACEOF
  30102. #define HAVE_POSIX_STRERROR_R 1
  30103. _ACEOF
  30104. cat >>confdefs.h <<_ACEOF
  30105. #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
  30106. _ACEOF
  30107. fi
  30108. ac_cv_func_strerror_r="yes"
  30109. else
  30110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30111. $as_echo "no" >&6; }
  30112. ac_cv_func_strerror_r="no"
  30113. fi
  30114. #
  30115. if test "$tst_compi_strerror_r" = "yes" &&
  30116. test "$tst_allow_strerror_r" = "unknown"; then
  30117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
  30118. $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
  30119. fi
  30120. #
  30121. #
  30122. tst_links_stricmp="unknown"
  30123. tst_proto_stricmp="unknown"
  30124. tst_compi_stricmp="unknown"
  30125. tst_allow_stricmp="unknown"
  30126. #
  30127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
  30128. $as_echo_n "checking if stricmp can be linked... " >&6; }
  30129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30130. /* end confdefs.h. */
  30131. #define stricmp innocuous_stricmp
  30132. #ifdef __STDC__
  30133. # include <limits.h>
  30134. #else
  30135. # include <assert.h>
  30136. #endif
  30137. #undef stricmp
  30138. #ifdef __cplusplus
  30139. extern "C"
  30140. #endif
  30141. char stricmp ();
  30142. #if defined __stub_stricmp || defined __stub___stricmp
  30143. choke me
  30144. #endif
  30145. int main (void)
  30146. {
  30147. return stricmp ();
  30148. ;
  30149. return 0;
  30150. }
  30151. _ACEOF
  30152. if ac_fn_c_try_link "$LINENO"; then :
  30153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30154. $as_echo "yes" >&6; }
  30155. tst_links_stricmp="yes"
  30156. else
  30157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30158. $as_echo "no" >&6; }
  30159. tst_links_stricmp="no"
  30160. fi
  30161. rm -f core conftest.err conftest.$ac_objext \
  30162. conftest$ac_exeext conftest.$ac_ext
  30163. #
  30164. if test "$tst_links_stricmp" = "yes"; then
  30165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
  30166. $as_echo_n "checking if stricmp is prototyped... " >&6; }
  30167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30168. /* end confdefs.h. */
  30169. $curl_includes_string
  30170. _ACEOF
  30171. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30172. $EGREP "stricmp" >/dev/null 2>&1; then :
  30173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30174. $as_echo "yes" >&6; }
  30175. tst_proto_stricmp="yes"
  30176. else
  30177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30178. $as_echo "no" >&6; }
  30179. tst_proto_stricmp="no"
  30180. fi
  30181. rm -f conftest*
  30182. fi
  30183. #
  30184. if test "$tst_proto_stricmp" = "yes"; then
  30185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
  30186. $as_echo_n "checking if stricmp is compilable... " >&6; }
  30187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30188. /* end confdefs.h. */
  30189. $curl_includes_string
  30190. int main (void)
  30191. {
  30192. if(0 != stricmp(0, 0))
  30193. return 1;
  30194. ;
  30195. return 0;
  30196. }
  30197. _ACEOF
  30198. if ac_fn_c_try_compile "$LINENO"; then :
  30199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30200. $as_echo "yes" >&6; }
  30201. tst_compi_stricmp="yes"
  30202. else
  30203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30204. $as_echo "no" >&6; }
  30205. tst_compi_stricmp="no"
  30206. fi
  30207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30208. fi
  30209. #
  30210. if test "$tst_compi_stricmp" = "yes"; then
  30211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
  30212. $as_echo_n "checking if stricmp usage allowed... " >&6; }
  30213. if test "x$curl_disallow_stricmp" != "xyes"; then
  30214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30215. $as_echo "yes" >&6; }
  30216. tst_allow_stricmp="yes"
  30217. else
  30218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30219. $as_echo "no" >&6; }
  30220. tst_allow_stricmp="no"
  30221. fi
  30222. fi
  30223. #
  30224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
  30225. $as_echo_n "checking if stricmp might be used... " >&6; }
  30226. if test "$tst_links_stricmp" = "yes" &&
  30227. test "$tst_proto_stricmp" = "yes" &&
  30228. test "$tst_compi_stricmp" = "yes" &&
  30229. test "$tst_allow_stricmp" = "yes"; then
  30230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30231. $as_echo "yes" >&6; }
  30232. cat >>confdefs.h <<_ACEOF
  30233. #define HAVE_STRICMP 1
  30234. _ACEOF
  30235. ac_cv_func_stricmp="yes"
  30236. else
  30237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30238. $as_echo "no" >&6; }
  30239. ac_cv_func_stricmp="no"
  30240. fi
  30241. #
  30242. tst_links_strncasecmp="unknown"
  30243. tst_proto_strncasecmp="unknown"
  30244. tst_compi_strncasecmp="unknown"
  30245. tst_allow_strncasecmp="unknown"
  30246. #
  30247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
  30248. $as_echo_n "checking if strncasecmp can be linked... " >&6; }
  30249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30250. /* end confdefs.h. */
  30251. #define strncasecmp innocuous_strncasecmp
  30252. #ifdef __STDC__
  30253. # include <limits.h>
  30254. #else
  30255. # include <assert.h>
  30256. #endif
  30257. #undef strncasecmp
  30258. #ifdef __cplusplus
  30259. extern "C"
  30260. #endif
  30261. char strncasecmp ();
  30262. #if defined __stub_strncasecmp || defined __stub___strncasecmp
  30263. choke me
  30264. #endif
  30265. int main (void)
  30266. {
  30267. return strncasecmp ();
  30268. ;
  30269. return 0;
  30270. }
  30271. _ACEOF
  30272. if ac_fn_c_try_link "$LINENO"; then :
  30273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30274. $as_echo "yes" >&6; }
  30275. tst_links_strncasecmp="yes"
  30276. else
  30277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30278. $as_echo "no" >&6; }
  30279. tst_links_strncasecmp="no"
  30280. fi
  30281. rm -f core conftest.err conftest.$ac_objext \
  30282. conftest$ac_exeext conftest.$ac_ext
  30283. #
  30284. if test "$tst_links_strncasecmp" = "yes"; then
  30285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
  30286. $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
  30287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30288. /* end confdefs.h. */
  30289. $curl_includes_string
  30290. _ACEOF
  30291. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30292. $EGREP "strncasecmp" >/dev/null 2>&1; then :
  30293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30294. $as_echo "yes" >&6; }
  30295. tst_proto_strncasecmp="yes"
  30296. else
  30297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30298. $as_echo "no" >&6; }
  30299. tst_proto_strncasecmp="no"
  30300. fi
  30301. rm -f conftest*
  30302. fi
  30303. #
  30304. if test "$tst_proto_strncasecmp" = "yes"; then
  30305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
  30306. $as_echo_n "checking if strncasecmp is compilable... " >&6; }
  30307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30308. /* end confdefs.h. */
  30309. $curl_includes_string
  30310. int main (void)
  30311. {
  30312. if(0 != strncasecmp(0, 0, 0))
  30313. return 1;
  30314. ;
  30315. return 0;
  30316. }
  30317. _ACEOF
  30318. if ac_fn_c_try_compile "$LINENO"; then :
  30319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30320. $as_echo "yes" >&6; }
  30321. tst_compi_strncasecmp="yes"
  30322. else
  30323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30324. $as_echo "no" >&6; }
  30325. tst_compi_strncasecmp="no"
  30326. fi
  30327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30328. fi
  30329. #
  30330. if test "$tst_compi_strncasecmp" = "yes"; then
  30331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
  30332. $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
  30333. if test "x$curl_disallow_strncasecmp" != "xyes"; then
  30334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30335. $as_echo "yes" >&6; }
  30336. tst_allow_strncasecmp="yes"
  30337. else
  30338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30339. $as_echo "no" >&6; }
  30340. tst_allow_strncasecmp="no"
  30341. fi
  30342. fi
  30343. #
  30344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
  30345. $as_echo_n "checking if strncasecmp might be used... " >&6; }
  30346. if test "$tst_links_strncasecmp" = "yes" &&
  30347. test "$tst_proto_strncasecmp" = "yes" &&
  30348. test "$tst_compi_strncasecmp" = "yes" &&
  30349. test "$tst_allow_strncasecmp" = "yes"; then
  30350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30351. $as_echo "yes" >&6; }
  30352. cat >>confdefs.h <<_ACEOF
  30353. #define HAVE_STRNCASECMP 1
  30354. _ACEOF
  30355. ac_cv_func_strncasecmp="yes"
  30356. else
  30357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30358. $as_echo "no" >&6; }
  30359. ac_cv_func_strncasecmp="no"
  30360. fi
  30361. #
  30362. tst_links_strncmpi="unknown"
  30363. tst_proto_strncmpi="unknown"
  30364. tst_compi_strncmpi="unknown"
  30365. tst_allow_strncmpi="unknown"
  30366. #
  30367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
  30368. $as_echo_n "checking if strncmpi can be linked... " >&6; }
  30369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30370. /* end confdefs.h. */
  30371. #define strncmpi innocuous_strncmpi
  30372. #ifdef __STDC__
  30373. # include <limits.h>
  30374. #else
  30375. # include <assert.h>
  30376. #endif
  30377. #undef strncmpi
  30378. #ifdef __cplusplus
  30379. extern "C"
  30380. #endif
  30381. char strncmpi ();
  30382. #if defined __stub_strncmpi || defined __stub___strncmpi
  30383. choke me
  30384. #endif
  30385. int main (void)
  30386. {
  30387. return strncmpi ();
  30388. ;
  30389. return 0;
  30390. }
  30391. _ACEOF
  30392. if ac_fn_c_try_link "$LINENO"; then :
  30393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30394. $as_echo "yes" >&6; }
  30395. tst_links_strncmpi="yes"
  30396. else
  30397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30398. $as_echo "no" >&6; }
  30399. tst_links_strncmpi="no"
  30400. fi
  30401. rm -f core conftest.err conftest.$ac_objext \
  30402. conftest$ac_exeext conftest.$ac_ext
  30403. #
  30404. if test "$tst_links_strncmpi" = "yes"; then
  30405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
  30406. $as_echo_n "checking if strncmpi is prototyped... " >&6; }
  30407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30408. /* end confdefs.h. */
  30409. $curl_includes_string
  30410. _ACEOF
  30411. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30412. $EGREP "strncmpi" >/dev/null 2>&1; then :
  30413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30414. $as_echo "yes" >&6; }
  30415. tst_proto_strncmpi="yes"
  30416. else
  30417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30418. $as_echo "no" >&6; }
  30419. tst_proto_strncmpi="no"
  30420. fi
  30421. rm -f conftest*
  30422. fi
  30423. #
  30424. if test "$tst_proto_strncmpi" = "yes"; then
  30425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
  30426. $as_echo_n "checking if strncmpi is compilable... " >&6; }
  30427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30428. /* end confdefs.h. */
  30429. $curl_includes_string
  30430. int main (void)
  30431. {
  30432. if(0 != strncmpi(0, 0))
  30433. return 1;
  30434. ;
  30435. return 0;
  30436. }
  30437. _ACEOF
  30438. if ac_fn_c_try_compile "$LINENO"; then :
  30439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30440. $as_echo "yes" >&6; }
  30441. tst_compi_strncmpi="yes"
  30442. else
  30443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30444. $as_echo "no" >&6; }
  30445. tst_compi_strncmpi="no"
  30446. fi
  30447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30448. fi
  30449. #
  30450. if test "$tst_compi_strncmpi" = "yes"; then
  30451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
  30452. $as_echo_n "checking if strncmpi usage allowed... " >&6; }
  30453. if test "x$curl_disallow_strncmpi" != "xyes"; then
  30454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30455. $as_echo "yes" >&6; }
  30456. tst_allow_strncmpi="yes"
  30457. else
  30458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30459. $as_echo "no" >&6; }
  30460. tst_allow_strncmpi="no"
  30461. fi
  30462. fi
  30463. #
  30464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
  30465. $as_echo_n "checking if strncmpi might be used... " >&6; }
  30466. if test "$tst_links_strncmpi" = "yes" &&
  30467. test "$tst_proto_strncmpi" = "yes" &&
  30468. test "$tst_compi_strncmpi" = "yes" &&
  30469. test "$tst_allow_strncmpi" = "yes"; then
  30470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30471. $as_echo "yes" >&6; }
  30472. cat >>confdefs.h <<_ACEOF
  30473. #define HAVE_STRNCMPI 1
  30474. _ACEOF
  30475. ac_cv_func_strncmpi="yes"
  30476. else
  30477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30478. $as_echo "no" >&6; }
  30479. ac_cv_func_strncmpi="no"
  30480. fi
  30481. #
  30482. tst_links_strnicmp="unknown"
  30483. tst_proto_strnicmp="unknown"
  30484. tst_compi_strnicmp="unknown"
  30485. tst_allow_strnicmp="unknown"
  30486. #
  30487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
  30488. $as_echo_n "checking if strnicmp can be linked... " >&6; }
  30489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30490. /* end confdefs.h. */
  30491. #define strnicmp innocuous_strnicmp
  30492. #ifdef __STDC__
  30493. # include <limits.h>
  30494. #else
  30495. # include <assert.h>
  30496. #endif
  30497. #undef strnicmp
  30498. #ifdef __cplusplus
  30499. extern "C"
  30500. #endif
  30501. char strnicmp ();
  30502. #if defined __stub_strnicmp || defined __stub___strnicmp
  30503. choke me
  30504. #endif
  30505. int main (void)
  30506. {
  30507. return strnicmp ();
  30508. ;
  30509. return 0;
  30510. }
  30511. _ACEOF
  30512. if ac_fn_c_try_link "$LINENO"; then :
  30513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30514. $as_echo "yes" >&6; }
  30515. tst_links_strnicmp="yes"
  30516. else
  30517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30518. $as_echo "no" >&6; }
  30519. tst_links_strnicmp="no"
  30520. fi
  30521. rm -f core conftest.err conftest.$ac_objext \
  30522. conftest$ac_exeext conftest.$ac_ext
  30523. #
  30524. if test "$tst_links_strnicmp" = "yes"; then
  30525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
  30526. $as_echo_n "checking if strnicmp is prototyped... " >&6; }
  30527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30528. /* end confdefs.h. */
  30529. $curl_includes_string
  30530. _ACEOF
  30531. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30532. $EGREP "strnicmp" >/dev/null 2>&1; then :
  30533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30534. $as_echo "yes" >&6; }
  30535. tst_proto_strnicmp="yes"
  30536. else
  30537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30538. $as_echo "no" >&6; }
  30539. tst_proto_strnicmp="no"
  30540. fi
  30541. rm -f conftest*
  30542. fi
  30543. #
  30544. if test "$tst_proto_strnicmp" = "yes"; then
  30545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
  30546. $as_echo_n "checking if strnicmp is compilable... " >&6; }
  30547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30548. /* end confdefs.h. */
  30549. $curl_includes_string
  30550. int main (void)
  30551. {
  30552. if(0 != strnicmp(0, 0))
  30553. return 1;
  30554. ;
  30555. return 0;
  30556. }
  30557. _ACEOF
  30558. if ac_fn_c_try_compile "$LINENO"; then :
  30559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30560. $as_echo "yes" >&6; }
  30561. tst_compi_strnicmp="yes"
  30562. else
  30563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30564. $as_echo "no" >&6; }
  30565. tst_compi_strnicmp="no"
  30566. fi
  30567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30568. fi
  30569. #
  30570. if test "$tst_compi_strnicmp" = "yes"; then
  30571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
  30572. $as_echo_n "checking if strnicmp usage allowed... " >&6; }
  30573. if test "x$curl_disallow_strnicmp" != "xyes"; then
  30574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30575. $as_echo "yes" >&6; }
  30576. tst_allow_strnicmp="yes"
  30577. else
  30578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30579. $as_echo "no" >&6; }
  30580. tst_allow_strnicmp="no"
  30581. fi
  30582. fi
  30583. #
  30584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
  30585. $as_echo_n "checking if strnicmp might be used... " >&6; }
  30586. if test "$tst_links_strnicmp" = "yes" &&
  30587. test "$tst_proto_strnicmp" = "yes" &&
  30588. test "$tst_compi_strnicmp" = "yes" &&
  30589. test "$tst_allow_strnicmp" = "yes"; then
  30590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30591. $as_echo "yes" >&6; }
  30592. cat >>confdefs.h <<_ACEOF
  30593. #define HAVE_STRNICMP 1
  30594. _ACEOF
  30595. ac_cv_func_strnicmp="yes"
  30596. else
  30597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30598. $as_echo "no" >&6; }
  30599. ac_cv_func_strnicmp="no"
  30600. fi
  30601. #
  30602. tst_links_strstr="unknown"
  30603. tst_proto_strstr="unknown"
  30604. tst_compi_strstr="unknown"
  30605. tst_allow_strstr="unknown"
  30606. #
  30607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
  30608. $as_echo_n "checking if strstr can be linked... " >&6; }
  30609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30610. /* end confdefs.h. */
  30611. #define strstr innocuous_strstr
  30612. #ifdef __STDC__
  30613. # include <limits.h>
  30614. #else
  30615. # include <assert.h>
  30616. #endif
  30617. #undef strstr
  30618. #ifdef __cplusplus
  30619. extern "C"
  30620. #endif
  30621. char strstr ();
  30622. #if defined __stub_strstr || defined __stub___strstr
  30623. choke me
  30624. #endif
  30625. int main (void)
  30626. {
  30627. return strstr ();
  30628. ;
  30629. return 0;
  30630. }
  30631. _ACEOF
  30632. if ac_fn_c_try_link "$LINENO"; then :
  30633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30634. $as_echo "yes" >&6; }
  30635. tst_links_strstr="yes"
  30636. else
  30637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30638. $as_echo "no" >&6; }
  30639. tst_links_strstr="no"
  30640. fi
  30641. rm -f core conftest.err conftest.$ac_objext \
  30642. conftest$ac_exeext conftest.$ac_ext
  30643. #
  30644. if test "$tst_links_strstr" = "yes"; then
  30645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
  30646. $as_echo_n "checking if strstr is prototyped... " >&6; }
  30647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30648. /* end confdefs.h. */
  30649. $curl_includes_string
  30650. _ACEOF
  30651. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30652. $EGREP "strstr" >/dev/null 2>&1; then :
  30653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30654. $as_echo "yes" >&6; }
  30655. tst_proto_strstr="yes"
  30656. else
  30657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30658. $as_echo "no" >&6; }
  30659. tst_proto_strstr="no"
  30660. fi
  30661. rm -f conftest*
  30662. fi
  30663. #
  30664. if test "$tst_proto_strstr" = "yes"; then
  30665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
  30666. $as_echo_n "checking if strstr is compilable... " >&6; }
  30667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30668. /* end confdefs.h. */
  30669. $curl_includes_string
  30670. int main (void)
  30671. {
  30672. if(0 != strstr(0, 0))
  30673. return 1;
  30674. ;
  30675. return 0;
  30676. }
  30677. _ACEOF
  30678. if ac_fn_c_try_compile "$LINENO"; then :
  30679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30680. $as_echo "yes" >&6; }
  30681. tst_compi_strstr="yes"
  30682. else
  30683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30684. $as_echo "no" >&6; }
  30685. tst_compi_strstr="no"
  30686. fi
  30687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30688. fi
  30689. #
  30690. if test "$tst_compi_strstr" = "yes"; then
  30691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
  30692. $as_echo_n "checking if strstr usage allowed... " >&6; }
  30693. if test "x$curl_disallow_strstr" != "xyes"; then
  30694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30695. $as_echo "yes" >&6; }
  30696. tst_allow_strstr="yes"
  30697. else
  30698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30699. $as_echo "no" >&6; }
  30700. tst_allow_strstr="no"
  30701. fi
  30702. fi
  30703. #
  30704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
  30705. $as_echo_n "checking if strstr might be used... " >&6; }
  30706. if test "$tst_links_strstr" = "yes" &&
  30707. test "$tst_proto_strstr" = "yes" &&
  30708. test "$tst_compi_strstr" = "yes" &&
  30709. test "$tst_allow_strstr" = "yes"; then
  30710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30711. $as_echo "yes" >&6; }
  30712. cat >>confdefs.h <<_ACEOF
  30713. #define HAVE_STRSTR 1
  30714. _ACEOF
  30715. ac_cv_func_strstr="yes"
  30716. else
  30717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30718. $as_echo "no" >&6; }
  30719. ac_cv_func_strstr="no"
  30720. fi
  30721. #
  30722. tst_links_strtok_r="unknown"
  30723. tst_proto_strtok_r="unknown"
  30724. tst_compi_strtok_r="unknown"
  30725. tst_allow_strtok_r="unknown"
  30726. #
  30727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
  30728. $as_echo_n "checking if strtok_r can be linked... " >&6; }
  30729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30730. /* end confdefs.h. */
  30731. #define strtok_r innocuous_strtok_r
  30732. #ifdef __STDC__
  30733. # include <limits.h>
  30734. #else
  30735. # include <assert.h>
  30736. #endif
  30737. #undef strtok_r
  30738. #ifdef __cplusplus
  30739. extern "C"
  30740. #endif
  30741. char strtok_r ();
  30742. #if defined __stub_strtok_r || defined __stub___strtok_r
  30743. choke me
  30744. #endif
  30745. int main (void)
  30746. {
  30747. return strtok_r ();
  30748. ;
  30749. return 0;
  30750. }
  30751. _ACEOF
  30752. if ac_fn_c_try_link "$LINENO"; then :
  30753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30754. $as_echo "yes" >&6; }
  30755. tst_links_strtok_r="yes"
  30756. else
  30757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30758. $as_echo "no" >&6; }
  30759. tst_links_strtok_r="no"
  30760. fi
  30761. rm -f core conftest.err conftest.$ac_objext \
  30762. conftest$ac_exeext conftest.$ac_ext
  30763. #
  30764. if test "$tst_links_strtok_r" = "yes"; then
  30765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
  30766. $as_echo_n "checking if strtok_r is prototyped... " >&6; }
  30767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30768. /* end confdefs.h. */
  30769. $curl_includes_string
  30770. _ACEOF
  30771. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30772. $EGREP "strtok_r" >/dev/null 2>&1; then :
  30773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30774. $as_echo "yes" >&6; }
  30775. tst_proto_strtok_r="yes"
  30776. else
  30777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30778. $as_echo "no" >&6; }
  30779. tst_proto_strtok_r="no"
  30780. fi
  30781. rm -f conftest*
  30782. fi
  30783. #
  30784. if test "$tst_proto_strtok_r" = "yes"; then
  30785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
  30786. $as_echo_n "checking if strtok_r is compilable... " >&6; }
  30787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30788. /* end confdefs.h. */
  30789. $curl_includes_string
  30790. int main (void)
  30791. {
  30792. if(0 != strtok_r(0, 0, 0))
  30793. return 1;
  30794. ;
  30795. return 0;
  30796. }
  30797. _ACEOF
  30798. if ac_fn_c_try_compile "$LINENO"; then :
  30799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30800. $as_echo "yes" >&6; }
  30801. tst_compi_strtok_r="yes"
  30802. else
  30803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30804. $as_echo "no" >&6; }
  30805. tst_compi_strtok_r="no"
  30806. fi
  30807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30808. fi
  30809. #
  30810. if test "$tst_compi_strtok_r" = "yes"; then
  30811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
  30812. $as_echo_n "checking if strtok_r usage allowed... " >&6; }
  30813. if test "x$curl_disallow_strtok_r" != "xyes"; then
  30814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30815. $as_echo "yes" >&6; }
  30816. tst_allow_strtok_r="yes"
  30817. else
  30818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30819. $as_echo "no" >&6; }
  30820. tst_allow_strtok_r="no"
  30821. fi
  30822. fi
  30823. #
  30824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
  30825. $as_echo_n "checking if strtok_r might be used... " >&6; }
  30826. if test "$tst_links_strtok_r" = "yes" &&
  30827. test "$tst_proto_strtok_r" = "yes" &&
  30828. test "$tst_compi_strtok_r" = "yes" &&
  30829. test "$tst_allow_strtok_r" = "yes"; then
  30830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30831. $as_echo "yes" >&6; }
  30832. cat >>confdefs.h <<_ACEOF
  30833. #define HAVE_STRTOK_R 1
  30834. _ACEOF
  30835. ac_cv_func_strtok_r="yes"
  30836. else
  30837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30838. $as_echo "no" >&6; }
  30839. ac_cv_func_strtok_r="no"
  30840. fi
  30841. #
  30842. tst_links_strtoll="unknown"
  30843. tst_proto_strtoll="unknown"
  30844. tst_compi_strtoll="unknown"
  30845. tst_allow_strtoll="unknown"
  30846. #
  30847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
  30848. $as_echo_n "checking if strtoll can be linked... " >&6; }
  30849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30850. /* end confdefs.h. */
  30851. #define strtoll innocuous_strtoll
  30852. #ifdef __STDC__
  30853. # include <limits.h>
  30854. #else
  30855. # include <assert.h>
  30856. #endif
  30857. #undef strtoll
  30858. #ifdef __cplusplus
  30859. extern "C"
  30860. #endif
  30861. char strtoll ();
  30862. #if defined __stub_strtoll || defined __stub___strtoll
  30863. choke me
  30864. #endif
  30865. int main (void)
  30866. {
  30867. return strtoll ();
  30868. ;
  30869. return 0;
  30870. }
  30871. _ACEOF
  30872. if ac_fn_c_try_link "$LINENO"; then :
  30873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30874. $as_echo "yes" >&6; }
  30875. tst_links_strtoll="yes"
  30876. else
  30877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30878. $as_echo "no" >&6; }
  30879. tst_links_strtoll="no"
  30880. fi
  30881. rm -f core conftest.err conftest.$ac_objext \
  30882. conftest$ac_exeext conftest.$ac_ext
  30883. #
  30884. if test "$tst_links_strtoll" = "yes"; then
  30885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
  30886. $as_echo_n "checking if strtoll is prototyped... " >&6; }
  30887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30888. /* end confdefs.h. */
  30889. $curl_includes_stdlib
  30890. _ACEOF
  30891. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30892. $EGREP "strtoll" >/dev/null 2>&1; then :
  30893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30894. $as_echo "yes" >&6; }
  30895. tst_proto_strtoll="yes"
  30896. else
  30897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30898. $as_echo "no" >&6; }
  30899. tst_proto_strtoll="no"
  30900. fi
  30901. rm -f conftest*
  30902. fi
  30903. #
  30904. if test "$tst_proto_strtoll" = "yes"; then
  30905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
  30906. $as_echo_n "checking if strtoll is compilable... " >&6; }
  30907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30908. /* end confdefs.h. */
  30909. $curl_includes_stdlib
  30910. int main (void)
  30911. {
  30912. if(0 != strtoll(0, 0, 0))
  30913. return 1;
  30914. ;
  30915. return 0;
  30916. }
  30917. _ACEOF
  30918. if ac_fn_c_try_compile "$LINENO"; then :
  30919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30920. $as_echo "yes" >&6; }
  30921. tst_compi_strtoll="yes"
  30922. else
  30923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30924. $as_echo "no" >&6; }
  30925. tst_compi_strtoll="no"
  30926. fi
  30927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30928. fi
  30929. #
  30930. if test "$tst_compi_strtoll" = "yes"; then
  30931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
  30932. $as_echo_n "checking if strtoll usage allowed... " >&6; }
  30933. if test "x$curl_disallow_strtoll" != "xyes"; then
  30934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30935. $as_echo "yes" >&6; }
  30936. tst_allow_strtoll="yes"
  30937. else
  30938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30939. $as_echo "no" >&6; }
  30940. tst_allow_strtoll="no"
  30941. fi
  30942. fi
  30943. #
  30944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
  30945. $as_echo_n "checking if strtoll might be used... " >&6; }
  30946. if test "$tst_links_strtoll" = "yes" &&
  30947. test "$tst_proto_strtoll" = "yes" &&
  30948. test "$tst_compi_strtoll" = "yes" &&
  30949. test "$tst_allow_strtoll" = "yes"; then
  30950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30951. $as_echo "yes" >&6; }
  30952. cat >>confdefs.h <<_ACEOF
  30953. #define HAVE_STRTOLL 1
  30954. _ACEOF
  30955. ac_cv_func_strtoll="yes"
  30956. else
  30957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30958. $as_echo "no" >&6; }
  30959. ac_cv_func_strtoll="no"
  30960. fi
  30961. curl_includes_sys_uio="\
  30962. /* includes start */
  30963. #ifdef HAVE_SYS_TYPES_H
  30964. # include <sys/types.h>
  30965. #endif
  30966. #ifdef HAVE_SYS_UIO_H
  30967. # include <sys/uio.h>
  30968. #endif
  30969. /* includes end */"
  30970. for ac_header in sys/types.h sys/uio.h
  30971. do :
  30972. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  30973. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
  30974. "
  30975. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  30976. cat >>confdefs.h <<_ACEOF
  30977. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  30978. _ACEOF
  30979. fi
  30980. done
  30981. #
  30982. tst_links_writev="unknown"
  30983. tst_proto_writev="unknown"
  30984. tst_compi_writev="unknown"
  30985. tst_allow_writev="unknown"
  30986. #
  30987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
  30988. $as_echo_n "checking if writev can be linked... " >&6; }
  30989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30990. /* end confdefs.h. */
  30991. #define writev innocuous_writev
  30992. #ifdef __STDC__
  30993. # include <limits.h>
  30994. #else
  30995. # include <assert.h>
  30996. #endif
  30997. #undef writev
  30998. #ifdef __cplusplus
  30999. extern "C"
  31000. #endif
  31001. char writev ();
  31002. #if defined __stub_writev || defined __stub___writev
  31003. choke me
  31004. #endif
  31005. int main (void)
  31006. {
  31007. return writev ();
  31008. ;
  31009. return 0;
  31010. }
  31011. _ACEOF
  31012. if ac_fn_c_try_link "$LINENO"; then :
  31013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31014. $as_echo "yes" >&6; }
  31015. tst_links_writev="yes"
  31016. else
  31017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31018. $as_echo "no" >&6; }
  31019. tst_links_writev="no"
  31020. fi
  31021. rm -f core conftest.err conftest.$ac_objext \
  31022. conftest$ac_exeext conftest.$ac_ext
  31023. #
  31024. if test "$tst_links_writev" = "yes"; then
  31025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
  31026. $as_echo_n "checking if writev is prototyped... " >&6; }
  31027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31028. /* end confdefs.h. */
  31029. $curl_includes_sys_uio
  31030. _ACEOF
  31031. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31032. $EGREP "writev" >/dev/null 2>&1; then :
  31033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31034. $as_echo "yes" >&6; }
  31035. tst_proto_writev="yes"
  31036. else
  31037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31038. $as_echo "no" >&6; }
  31039. tst_proto_writev="no"
  31040. fi
  31041. rm -f conftest*
  31042. fi
  31043. #
  31044. if test "$tst_proto_writev" = "yes"; then
  31045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
  31046. $as_echo_n "checking if writev is compilable... " >&6; }
  31047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31048. /* end confdefs.h. */
  31049. $curl_includes_sys_uio
  31050. int main (void)
  31051. {
  31052. if(0 != writev(0, 0, 0))
  31053. return 1;
  31054. ;
  31055. return 0;
  31056. }
  31057. _ACEOF
  31058. if ac_fn_c_try_compile "$LINENO"; then :
  31059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31060. $as_echo "yes" >&6; }
  31061. tst_compi_writev="yes"
  31062. else
  31063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31064. $as_echo "no" >&6; }
  31065. tst_compi_writev="no"
  31066. fi
  31067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31068. fi
  31069. #
  31070. if test "$tst_compi_writev" = "yes"; then
  31071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
  31072. $as_echo_n "checking if writev usage allowed... " >&6; }
  31073. if test "x$curl_disallow_writev" != "xyes"; then
  31074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31075. $as_echo "yes" >&6; }
  31076. tst_allow_writev="yes"
  31077. else
  31078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31079. $as_echo "no" >&6; }
  31080. tst_allow_writev="no"
  31081. fi
  31082. fi
  31083. #
  31084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
  31085. $as_echo_n "checking if writev might be used... " >&6; }
  31086. if test "$tst_links_writev" = "yes" &&
  31087. test "$tst_proto_writev" = "yes" &&
  31088. test "$tst_compi_writev" = "yes" &&
  31089. test "$tst_allow_writev" = "yes"; then
  31090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31091. $as_echo "yes" >&6; }
  31092. cat >>confdefs.h <<_ACEOF
  31093. #define HAVE_WRITEV 1
  31094. _ACEOF
  31095. ac_cv_func_writev="yes"
  31096. else
  31097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31098. $as_echo "no" >&6; }
  31099. ac_cv_func_writev="no"
  31100. fi
  31101. case $host in
  31102. *msdosdjgpp)
  31103. ac_cv_func_pipe=no
  31104. skipcheck_pipe=yes
  31105. { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
  31106. $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
  31107. ;;
  31108. esac
  31109. for ac_func in fork \
  31110. geteuid \
  31111. getpass_r \
  31112. getppid \
  31113. getprotobyname \
  31114. getpwuid \
  31115. getrlimit \
  31116. gettimeofday \
  31117. inet_addr \
  31118. perror \
  31119. pipe \
  31120. setlocale \
  31121. setmode \
  31122. setrlimit \
  31123. uname \
  31124. utime
  31125. do :
  31126. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31127. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  31128. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  31129. cat >>confdefs.h <<_ACEOF
  31130. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31131. _ACEOF
  31132. else
  31133. func="$ac_func"
  31134. eval skipcheck=\$skipcheck_$func
  31135. if test "x$skipcheck" != "xyes"; then
  31136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
  31137. $as_echo_n "checking deeper for $func... " >&6; }
  31138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31139. /* end confdefs.h. */
  31140. int main (void)
  31141. {
  31142. $func ();
  31143. ;
  31144. return 0;
  31145. }
  31146. _ACEOF
  31147. if ac_fn_c_try_link "$LINENO"; then :
  31148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31149. $as_echo "yes" >&6; }
  31150. eval "ac_cv_func_$func=yes"
  31151. cat >>confdefs.h <<_ACEOF
  31152. #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
  31153. _ACEOF
  31154. else
  31155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
  31156. $as_echo "but still no" >&6; }
  31157. fi
  31158. rm -f core conftest.err conftest.$ac_objext \
  31159. conftest$ac_exeext conftest.$ac_ext
  31160. fi
  31161. fi
  31162. done
  31163. for ac_header in sys/types.h sys/socket.h netdb.h
  31164. do :
  31165. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  31166. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  31167. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  31168. cat >>confdefs.h <<_ACEOF
  31169. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  31170. _ACEOF
  31171. fi
  31172. done
  31173. #
  31174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
  31175. $as_echo_n "checking for getnameinfo... " >&6; }
  31176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31177. /* end confdefs.h. */
  31178. #define getnameinfo innocuous_getnameinfo
  31179. #ifdef __STDC__
  31180. # include <limits.h>
  31181. #else
  31182. # include <assert.h>
  31183. #endif
  31184. #undef getnameinfo
  31185. #ifdef __cplusplus
  31186. extern "C"
  31187. #endif
  31188. char getnameinfo ();
  31189. #if defined __stub_getnameinfo || defined __stub___getnameinfo
  31190. choke me
  31191. #endif
  31192. int main (void)
  31193. {
  31194. return getnameinfo ();
  31195. ;
  31196. return 0;
  31197. }
  31198. _ACEOF
  31199. if ac_fn_c_try_link "$LINENO"; then :
  31200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31201. $as_echo "yes" >&6; }
  31202. curl_cv_getnameinfo="yes"
  31203. else
  31204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31205. $as_echo "no" >&6; }
  31206. curl_cv_getnameinfo="no"
  31207. fi
  31208. rm -f core conftest.err conftest.$ac_objext \
  31209. conftest$ac_exeext conftest.$ac_ext
  31210. #
  31211. if test "$curl_cv_getnameinfo" != "yes"; then
  31212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
  31213. $as_echo_n "checking deeper for getnameinfo... " >&6; }
  31214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31215. /* end confdefs.h. */
  31216. int main (void)
  31217. {
  31218. getnameinfo();
  31219. ;
  31220. return 0;
  31221. }
  31222. _ACEOF
  31223. if ac_fn_c_try_link "$LINENO"; then :
  31224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31225. $as_echo "yes" >&6; }
  31226. curl_cv_getnameinfo="yes"
  31227. else
  31228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
  31229. $as_echo "but still no" >&6; }
  31230. curl_cv_getnameinfo="no"
  31231. fi
  31232. rm -f core conftest.err conftest.$ac_objext \
  31233. conftest$ac_exeext conftest.$ac_ext
  31234. fi
  31235. #
  31236. if test "$curl_cv_getnameinfo" != "yes"; then
  31237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
  31238. $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
  31239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31240. /* end confdefs.h. */
  31241. #undef inline
  31242. #ifdef HAVE_WINDOWS_H
  31243. #ifndef WIN32_LEAN_AND_MEAN
  31244. #define WIN32_LEAN_AND_MEAN
  31245. #endif
  31246. #include <windows.h>
  31247. #ifdef HAVE_WINSOCK2_H
  31248. #include <winsock2.h>
  31249. #ifdef HAVE_WS2TCPIP_H
  31250. #include <ws2tcpip.h>
  31251. #endif
  31252. #endif
  31253. #else
  31254. #ifdef HAVE_SYS_TYPES_H
  31255. #include <sys/types.h>
  31256. #endif
  31257. #ifdef HAVE_SYS_SOCKET_H
  31258. #include <sys/socket.h>
  31259. #endif
  31260. #ifdef HAVE_NETDB_H
  31261. #include <netdb.h>
  31262. #endif
  31263. #endif
  31264. int main (void)
  31265. {
  31266. getnameinfo(0, 0, 0, 0, 0, 0, 0);
  31267. ;
  31268. return 0;
  31269. }
  31270. _ACEOF
  31271. if ac_fn_c_try_link "$LINENO"; then :
  31272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31273. $as_echo "yes" >&6; }
  31274. curl_cv_getnameinfo="yes"
  31275. else
  31276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
  31277. $as_echo "but still no" >&6; }
  31278. curl_cv_getnameinfo="no"
  31279. fi
  31280. rm -f core conftest.err conftest.$ac_objext \
  31281. conftest$ac_exeext conftest.$ac_ext
  31282. fi
  31283. #
  31284. if test "$curl_cv_getnameinfo" = "yes"; then
  31285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
  31286. $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
  31287. if ${curl_cv_func_getnameinfo_args+:} false; then :
  31288. $as_echo_n "(cached) " >&6
  31289. else
  31290. curl_cv_func_getnameinfo_args="unknown"
  31291. for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
  31292. for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
  31293. for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
  31294. for gni_arg7 in 'int' 'unsigned int'; do
  31295. if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
  31296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31297. /* end confdefs.h. */
  31298. #undef inline
  31299. #ifdef HAVE_WINDOWS_H
  31300. #ifndef WIN32_LEAN_AND_MEAN
  31301. #define WIN32_LEAN_AND_MEAN
  31302. #endif
  31303. #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
  31304. #undef _WIN32_WINNT
  31305. #define _WIN32_WINNT 0x0501
  31306. #endif
  31307. #include <windows.h>
  31308. #ifdef HAVE_WINSOCK2_H
  31309. #include <winsock2.h>
  31310. #ifdef HAVE_WS2TCPIP_H
  31311. #include <ws2tcpip.h>
  31312. #endif
  31313. #endif
  31314. #define GNICALLCONV WSAAPI
  31315. #else
  31316. #ifdef HAVE_SYS_TYPES_H
  31317. #include <sys/types.h>
  31318. #endif
  31319. #ifdef HAVE_SYS_SOCKET_H
  31320. #include <sys/socket.h>
  31321. #endif
  31322. #ifdef HAVE_NETDB_H
  31323. #include <netdb.h>
  31324. #endif
  31325. #define GNICALLCONV
  31326. #endif
  31327. extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
  31328. char *, $gni_arg46,
  31329. char *, $gni_arg46,
  31330. $gni_arg7);
  31331. int main (void)
  31332. {
  31333. $gni_arg2 salen=0;
  31334. $gni_arg46 hostlen=0;
  31335. $gni_arg46 servlen=0;
  31336. $gni_arg7 flags=0;
  31337. int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
  31338. ;
  31339. return 0;
  31340. }
  31341. _ACEOF
  31342. if ac_fn_c_try_compile "$LINENO"; then :
  31343. curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
  31344. fi
  31345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31346. fi
  31347. done
  31348. done
  31349. done
  31350. done
  31351. fi
  31352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
  31353. $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
  31354. if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
  31355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
  31356. $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
  31357. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
  31358. $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
  31359. else
  31360. gni_prev_IFS=$IFS; IFS=','
  31361. set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
  31362. IFS=$gni_prev_IFS
  31363. shift
  31364. #
  31365. gni_qual_type_arg1=$1
  31366. #
  31367. cat >>confdefs.h <<_ACEOF
  31368. #define GETNAMEINFO_TYPE_ARG2 $2
  31369. _ACEOF
  31370. cat >>confdefs.h <<_ACEOF
  31371. #define GETNAMEINFO_TYPE_ARG46 $3
  31372. _ACEOF
  31373. cat >>confdefs.h <<_ACEOF
  31374. #define GETNAMEINFO_TYPE_ARG7 $4
  31375. _ACEOF
  31376. #
  31377. prev_sh_opts=$-
  31378. #
  31379. case $prev_sh_opts in
  31380. *f*)
  31381. ;;
  31382. *)
  31383. set -f
  31384. ;;
  31385. esac
  31386. #
  31387. case "$gni_qual_type_arg1" in
  31388. const*)
  31389. gni_qual_arg1=const
  31390. gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
  31391. ;;
  31392. *)
  31393. gni_qual_arg1=
  31394. gni_type_arg1=$gni_qual_type_arg1
  31395. ;;
  31396. esac
  31397. #
  31398. cat >>confdefs.h <<_ACEOF
  31399. #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
  31400. _ACEOF
  31401. cat >>confdefs.h <<_ACEOF
  31402. #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
  31403. _ACEOF
  31404. #
  31405. case $prev_sh_opts in
  31406. *f*)
  31407. ;;
  31408. *)
  31409. set +f
  31410. ;;
  31411. esac
  31412. #
  31413. cat >>confdefs.h <<_ACEOF
  31414. #define HAVE_GETNAMEINFO 1
  31415. _ACEOF
  31416. ac_cv_func_getnameinfo="yes"
  31417. fi
  31418. fi
  31419. if test "$ipv6" = "yes"; then
  31420. if test "$ac_cv_func_getaddrinfo" = "yes"; then
  31421. $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
  31422. IPV6_ENABLED=1
  31423. fi
  31424. for ac_header in stdio.h sys/types.h sys/socket.h \
  31425. netdb.h netinet/in.h arpa/inet.h
  31426. do :
  31427. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  31428. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  31429. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  31430. cat >>confdefs.h <<_ACEOF
  31431. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  31432. _ACEOF
  31433. fi
  31434. done
  31435. #
  31436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
  31437. $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
  31438. if ${ac_cv_working_ni_withscopeid+:} false; then :
  31439. $as_echo_n "(cached) " >&6
  31440. else
  31441. if test "$cross_compiling" = yes; then :
  31442. # Program is not run when cross-compiling. So we assume
  31443. # NI_WITHSCOPEID will work if we are able to compile it.
  31444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31445. /* end confdefs.h. */
  31446. #include <sys/types.h>
  31447. #include <sys/socket.h>
  31448. #include <netdb.h>
  31449. int main (void)
  31450. {
  31451. unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
  31452. ;
  31453. return 0;
  31454. }
  31455. _ACEOF
  31456. if ac_fn_c_try_compile "$LINENO"; then :
  31457. ac_cv_working_ni_withscopeid="yes"
  31458. else
  31459. ac_cv_working_ni_withscopeid="no"
  31460. fi
  31461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
  31462. else
  31463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31464. /* end confdefs.h. */
  31465. #ifdef HAVE_STDLIB_H
  31466. #include <stdlib.h>
  31467. #endif
  31468. #ifdef HAVE_STDIO_H
  31469. #include <stdio.h>
  31470. #endif
  31471. #ifdef HAVE_SYS_TYPES_H
  31472. #include <sys/types.h>
  31473. #endif
  31474. #ifdef HAVE_SYS_SOCKET_H
  31475. #include <sys/socket.h>
  31476. #endif
  31477. #ifdef HAVE_NETDB_H
  31478. #include <netdb.h>
  31479. #endif
  31480. #ifdef HAVE_NETINET_IN_H
  31481. #include <netinet/in.h>
  31482. #endif
  31483. #ifdef HAVE_ARPA_INET_H
  31484. #include <arpa/inet.h>
  31485. #endif
  31486. int main (void)
  31487. {
  31488. #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
  31489. #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
  31490. struct sockaddr_storage sa;
  31491. #else
  31492. unsigned char sa[256];
  31493. #endif
  31494. char hostbuf[NI_MAXHOST];
  31495. int rc;
  31496. GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
  31497. GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
  31498. GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
  31499. int fd = socket(AF_INET6, SOCK_STREAM, 0);
  31500. if(fd < 0) {
  31501. perror("socket()");
  31502. return 1; /* Error creating socket */
  31503. }
  31504. rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
  31505. if(rc) {
  31506. perror("getsockname()");
  31507. return 2; /* Error retrieving socket name */
  31508. }
  31509. rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
  31510. if(rc) {
  31511. printf("rc = %s\n", gai_strerror(rc));
  31512. return 3; /* Error translating socket address */
  31513. }
  31514. return 0; /* Ok, NI_WITHSCOPEID works */
  31515. #else
  31516. return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
  31517. #endif
  31518. ;
  31519. return 0;
  31520. } # AC-LANG-PROGRAM
  31521. _ACEOF
  31522. if ac_fn_c_try_run "$LINENO"; then :
  31523. # Exit code == 0. Program worked.
  31524. ac_cv_working_ni_withscopeid="yes"
  31525. else
  31526. # Exit code != 0. Program failed.
  31527. ac_cv_working_ni_withscopeid="no"
  31528. fi
  31529. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  31530. conftest.$ac_objext conftest.beam conftest.$ac_ext
  31531. fi
  31532. # AC-RUN-IFELSE
  31533. fi
  31534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
  31535. $as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
  31536. case "$ac_cv_working_ni_withscopeid" in
  31537. yes)
  31538. $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
  31539. ;;
  31540. esac
  31541. fi
  31542. #
  31543. tst_method="unknown"
  31544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
  31545. $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
  31546. if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
  31547. tst_method="fcntl O_NONBLOCK"
  31548. elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
  31549. tst_method="ioctl FIONBIO"
  31550. elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
  31551. tst_method="ioctlsocket FIONBIO"
  31552. elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
  31553. tst_method="IoctlSocket FIONBIO"
  31554. elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
  31555. tst_method="setsockopt SO_NONBLOCK"
  31556. fi
  31557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
  31558. $as_echo "$tst_method" >&6; }
  31559. if test "$tst_method" = "unknown"; then
  31560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
  31561. $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
  31562. fi
  31563. # Extract the first word of "perl", so it can be a program name with args.
  31564. set dummy perl; ac_word=$2
  31565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31566. $as_echo_n "checking for $ac_word... " >&6; }
  31567. if ${ac_cv_path_PERL+:} false; then :
  31568. $as_echo_n "(cached) " >&6
  31569. else
  31570. case $PERL in
  31571. [\\/]* | ?:[\\/]*)
  31572. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  31573. ;;
  31574. *)
  31575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31576. as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
  31577. for as_dir in $as_dummy
  31578. do
  31579. IFS=$as_save_IFS
  31580. test -z "$as_dir" && as_dir=.
  31581. for ac_exec_ext in '' $ac_executable_extensions; do
  31582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  31583. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  31584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31585. break 2
  31586. fi
  31587. done
  31588. done
  31589. IFS=$as_save_IFS
  31590. ;;
  31591. esac
  31592. fi
  31593. PERL=$ac_cv_path_PERL
  31594. if test -n "$PERL"; then
  31595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  31596. $as_echo "$PERL" >&6; }
  31597. else
  31598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31599. $as_echo "no" >&6; }
  31600. fi
  31601. for ac_prog in gnroff nroff
  31602. do
  31603. # Extract the first word of "$ac_prog", so it can be a program name with args.
  31604. set dummy $ac_prog; ac_word=$2
  31605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31606. $as_echo_n "checking for $ac_word... " >&6; }
  31607. if ${ac_cv_path_NROFF+:} false; then :
  31608. $as_echo_n "(cached) " >&6
  31609. else
  31610. case $NROFF in
  31611. [\\/]* | ?:[\\/]*)
  31612. ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  31613. ;;
  31614. *)
  31615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31616. as_dummy="$PATH:/usr/bin/:/usr/local/bin "
  31617. for as_dir in $as_dummy
  31618. do
  31619. IFS=$as_save_IFS
  31620. test -z "$as_dir" && as_dir=.
  31621. for ac_exec_ext in '' $ac_executable_extensions; do
  31622. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  31623. ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
  31624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31625. break 2
  31626. fi
  31627. done
  31628. done
  31629. IFS=$as_save_IFS
  31630. ;;
  31631. esac
  31632. fi
  31633. NROFF=$ac_cv_path_NROFF
  31634. if test -n "$NROFF"; then
  31635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
  31636. $as_echo "$NROFF" >&6; }
  31637. else
  31638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31639. $as_echo "no" >&6; }
  31640. fi
  31641. test -n "$NROFF" && break
  31642. done
  31643. if test -n "$NROFF"; then
  31644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
  31645. $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
  31646. MANOPT="-man"
  31647. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  31648. if test -z "$mancheck"; then
  31649. MANOPT="-mandoc"
  31650. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  31651. if test -z "$mancheck"; then
  31652. MANOPT=""
  31653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  31654. $as_echo "failed" >&6; }
  31655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
  31656. $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
  31657. else
  31658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
  31659. $as_echo "$MANOPT" >&6; }
  31660. fi
  31661. else
  31662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
  31663. $as_echo "$MANOPT" >&6; }
  31664. fi
  31665. fi
  31666. if test -z "$MANOPT"
  31667. then
  31668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
  31669. $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
  31670. USE_MANUAL="no";
  31671. fi
  31672. if test "$USE_MANUAL" = "1"; then
  31673. $as_echo "#define USE_MANUAL 1" >>confdefs.h
  31674. curl_manual_msg="enabled"
  31675. fi
  31676. if test x"$USE_MANUAL" = x1; then
  31677. USE_MANUAL_TRUE=
  31678. USE_MANUAL_FALSE='#'
  31679. else
  31680. USE_MANUAL_TRUE='#'
  31681. USE_MANUAL_FALSE=
  31682. fi
  31683. #
  31684. if test "$want_ares" = "yes"; then
  31685. clean_CPPFLAGS="$CPPFLAGS"
  31686. clean_LDFLAGS="$LDFLAGS"
  31687. clean_LIBS="$LIBS"
  31688. embedded_ares="unknown"
  31689. configure_runpath=`pwd`
  31690. embedded_ares_builddir="$configure_runpath/ares"
  31691. if test -n "$want_ares_path"; then
  31692. ares_CPPFLAGS="-I$want_ares_path/include"
  31693. ares_LDFLAGS="-L$want_ares_path/lib"
  31694. ares_LIBS="-lcares"
  31695. else
  31696. if test -d "$srcdir/ares"; then
  31697. embedded_ares="yes"
  31698. subdirs="$subdirs ares"
  31699. ares_CPPFLAGS=""
  31700. ares_LDFLAGS="-L$embedded_ares_builddir"
  31701. ares_LIBS="-lcares"
  31702. else
  31703. ares_CPPFLAGS=""
  31704. ares_LDFLAGS=""
  31705. ares_LIBS="-lcares"
  31706. fi
  31707. fi
  31708. #
  31709. CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
  31710. LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
  31711. LIBS="$ares_LIBS $clean_LIBS"
  31712. #
  31713. if test "$embedded_ares" != "yes"; then
  31714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
  31715. $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
  31716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31717. /* end confdefs.h. */
  31718. #include <ares.h>
  31719. /* set of dummy functions in case c-ares was built with debug */
  31720. void curl_dofree() { }
  31721. void curl_sclose() { }
  31722. void curl_domalloc() { }
  31723. void curl_docalloc() { }
  31724. void curl_socket() { }
  31725. int main (void)
  31726. {
  31727. ares_channel channel;
  31728. ares_cancel(channel); /* added in 1.2.0 */
  31729. ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
  31730. ares_dup(&channel, channel); /* added in 1.6.0 */
  31731. ;
  31732. return 0;
  31733. }
  31734. _ACEOF
  31735. if ac_fn_c_try_link "$LINENO"; then :
  31736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31737. $as_echo "yes" >&6; }
  31738. else
  31739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31740. $as_echo "no" >&6; }
  31741. as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
  31742. CPPFLAGS="$clean_CPPFLAGS"
  31743. LDFLAGS="$clean_LDFLAGS"
  31744. LIBS="$clean_LIBS"
  31745. # prevent usage
  31746. want_ares="no"
  31747. fi
  31748. rm -f core conftest.err conftest.$ac_objext \
  31749. conftest$ac_exeext conftest.$ac_ext
  31750. fi
  31751. if test "$want_ares" = "yes"; then
  31752. $as_echo "#define USE_ARES 1" >>confdefs.h
  31753. USE_ARES=1
  31754. curl_res_msg="c-ares"
  31755. fi
  31756. fi
  31757. if test x$embedded_ares = xyes; then
  31758. USE_EMBEDDED_ARES_TRUE=
  31759. USE_EMBEDDED_ARES_FALSE='#'
  31760. else
  31761. USE_EMBEDDED_ARES_TRUE='#'
  31762. USE_EMBEDDED_ARES_FALSE=
  31763. fi
  31764. if test "x$ac_cv_native_windows" != "xyes" &&
  31765. test "x$enable_shared" = "xyes"; then
  31766. build_libhostname=yes
  31767. else
  31768. build_libhostname=no
  31769. fi
  31770. if test x$build_libhostname = xyes; then
  31771. BUILD_LIBHOSTNAME_TRUE=
  31772. BUILD_LIBHOSTNAME_FALSE='#'
  31773. else
  31774. BUILD_LIBHOSTNAME_TRUE='#'
  31775. BUILD_LIBHOSTNAME_FALSE=
  31776. fi
  31777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
  31778. $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
  31779. OPT_THRES="default"
  31780. # Check whether --enable-threaded_resolver was given.
  31781. if test "${enable_threaded_resolver+set}" = set; then :
  31782. enableval=$enable_threaded_resolver; OPT_THRES=$enableval
  31783. fi
  31784. case "$OPT_THRES" in
  31785. yes)
  31786. want_thres="yes"
  31787. ;;
  31788. *)
  31789. want_thres="no"
  31790. ;;
  31791. esac
  31792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
  31793. $as_echo "$want_thres" >&6; }
  31794. if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
  31795. as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
  31796. fi
  31797. if test "$want_thres" = "yes"; then
  31798. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  31799. if test "x$ac_cv_header_pthread_h" = xyes; then :
  31800. $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
  31801. save_CFLAGS="$CFLAGS"
  31802. ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
  31803. if test "x$ac_cv_func_pthread_create" = xyes; then :
  31804. USE_THREADS_POSIX=1
  31805. fi
  31806. if test "$USE_THREADS_POSIX" != "1"
  31807. then
  31808. CFLAGS="$CFLAGS -pthread"
  31809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  31810. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  31811. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  31812. $as_echo_n "(cached) " >&6
  31813. else
  31814. ac_check_lib_save_LIBS=$LIBS
  31815. LIBS="-lpthread $LIBS"
  31816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31817. /* end confdefs.h. */
  31818. #ifdef __cplusplus
  31819. extern "C"
  31820. #endif
  31821. char pthread_create ();
  31822. int main (void)
  31823. {
  31824. return pthread_create ();
  31825. ;
  31826. return 0;
  31827. }
  31828. _ACEOF
  31829. if ac_fn_c_try_link "$LINENO"; then :
  31830. ac_cv_lib_pthread_pthread_create=yes
  31831. else
  31832. ac_cv_lib_pthread_pthread_create=no
  31833. fi
  31834. rm -f core conftest.err conftest.$ac_objext \
  31835. conftest$ac_exeext conftest.$ac_ext
  31836. LIBS=$ac_check_lib_save_LIBS
  31837. fi
  31838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  31839. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  31840. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  31841. USE_THREADS_POSIX=1
  31842. else
  31843. CFLAGS="$save_CFLAGS"
  31844. fi
  31845. fi
  31846. if test "x$USE_THREADS_POSIX" = "x1"
  31847. then
  31848. $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
  31849. curl_res_msg="POSIX threaded"
  31850. fi
  31851. fi
  31852. fi
  31853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
  31854. $as_echo_n "checking whether to enable verbose strings... " >&6; }
  31855. # Check whether --enable-verbose was given.
  31856. if test "${enable_verbose+set}" = set; then :
  31857. enableval=$enable_verbose; case "$enableval" in
  31858. no)
  31859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31860. $as_echo "no" >&6; }
  31861. $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
  31862. curl_verbose_msg="no"
  31863. ;;
  31864. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31865. $as_echo "yes" >&6; }
  31866. ;;
  31867. esac
  31868. else
  31869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31870. $as_echo "yes" >&6; }
  31871. fi
  31872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
  31873. $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
  31874. # Check whether --enable-sspi was given.
  31875. if test "${enable_sspi+set}" = set; then :
  31876. enableval=$enable_sspi; case "$enableval" in
  31877. yes)
  31878. if test "$ac_cv_native_windows" = "yes"; then
  31879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31880. $as_echo "yes" >&6; }
  31881. $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
  31882. USE_WINDOWS_SSPI=1
  31883. curl_sspi_msg="enabled"
  31884. else
  31885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31886. $as_echo "no" >&6; }
  31887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
  31888. $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
  31889. fi
  31890. ;;
  31891. *)
  31892. if test "x$WINSSL_ENABLED" = "x1"; then
  31893. # --with-winssl implies --enable-sspi
  31894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31895. $as_echo "yes" >&6; }
  31896. else
  31897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31898. $as_echo "no" >&6; }
  31899. fi
  31900. ;;
  31901. esac
  31902. else
  31903. if test "x$WINSSL_ENABLED" = "x1"; then
  31904. # --with-winssl implies --enable-sspi
  31905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31906. $as_echo "yes" >&6; }
  31907. else
  31908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31909. $as_echo "no" >&6; }
  31910. fi
  31911. fi
  31912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
  31913. $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
  31914. # Check whether --enable-crypto-auth was given.
  31915. if test "${enable_crypto_auth+set}" = set; then :
  31916. enableval=$enable_crypto_auth; case "$enableval" in
  31917. no)
  31918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31919. $as_echo "no" >&6; }
  31920. $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
  31921. ;;
  31922. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31923. $as_echo "yes" >&6; }
  31924. ;;
  31925. esac
  31926. else
  31927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31928. $as_echo "yes" >&6; }
  31929. fi
  31930. OPT_NTLM_WB="default"
  31931. # Check whether --enable-ntlm-wb was given.
  31932. if test "${enable_ntlm_wb+set}" = set; then :
  31933. enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
  31934. fi
  31935. want_ntlm_wb_file="/usr/bin/ntlm_auth"
  31936. case "$OPT_NTLM_WB" in
  31937. no)
  31938. want_ntlm_wb="no"
  31939. ;;
  31940. default)
  31941. want_ntlm_wb="yes"
  31942. ;;
  31943. *)
  31944. want_ntlm_wb="yes"
  31945. if test -n "$enableval" && test "$enableval" != "yes"; then
  31946. want_ntlm_wb_file="$enableval"
  31947. fi
  31948. ;;
  31949. esac
  31950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
  31951. $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
  31952. if test "$ac_cv_native_windows" = "yes" ||
  31953. test "x$SSL_ENABLED" = "x"; then
  31954. want_ntlm_wb_file=""
  31955. want_ntlm_wb="no"
  31956. fi
  31957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
  31958. $as_echo "$want_ntlm_wb" >&6; }
  31959. if test "$want_ntlm_wb" = "yes"; then
  31960. $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
  31961. cat >>confdefs.h <<_ACEOF
  31962. #define NTLM_WB_FILE "$want_ntlm_wb_file"
  31963. _ACEOF
  31964. NTLM_WB_ENABLED=1
  31965. fi
  31966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
  31967. $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
  31968. # Check whether --enable-tls-srp was given.
  31969. if test "${enable_tls_srp+set}" = set; then :
  31970. enableval=$enable_tls_srp; case "$enableval" in
  31971. no)
  31972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31973. $as_echo "no" >&6; }
  31974. $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
  31975. want_tls_srp=no
  31976. ;;
  31977. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31978. $as_echo "yes" >&6; }
  31979. want_tls_srp=yes
  31980. ;;
  31981. esac
  31982. else
  31983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31984. $as_echo "yes" >&6; }
  31985. want_tls_srp=yes
  31986. fi
  31987. if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_SSLEAY_SRP" = "x1") ; then
  31988. $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
  31989. USE_TLS_SRP=1
  31990. curl_tls_srp_msg="enabled"
  31991. fi
  31992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
  31993. $as_echo_n "checking whether to enable support for cookies... " >&6; }
  31994. # Check whether --enable-cookies was given.
  31995. if test "${enable_cookies+set}" = set; then :
  31996. enableval=$enable_cookies; case "$enableval" in
  31997. no)
  31998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31999. $as_echo "no" >&6; }
  32000. $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
  32001. ;;
  32002. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32003. $as_echo "yes" >&6; }
  32004. ;;
  32005. esac
  32006. else
  32007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32008. $as_echo "yes" >&6; }
  32009. fi
  32010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
  32011. $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
  32012. CFLAG_CURL_SYMBOL_HIDING=""
  32013. doing_symbol_hiding="no"
  32014. if test x"$ac_cv_native_windows" != "xyes" &&
  32015. test "$want_symbol_hiding" = "yes" &&
  32016. test "$supports_symbol_hiding" = "yes"; then
  32017. doing_symbol_hiding="yes"
  32018. CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
  32019. cat >>confdefs.h <<_ACEOF
  32020. #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
  32021. _ACEOF
  32022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32023. $as_echo "yes" >&6; }
  32024. else
  32025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32026. $as_echo "no" >&6; }
  32027. fi
  32028. if test x$doing_symbol_hiding = xyes; then
  32029. DOING_CURL_SYMBOL_HIDING_TRUE=
  32030. DOING_CURL_SYMBOL_HIDING_FALSE='#'
  32031. else
  32032. DOING_CURL_SYMBOL_HIDING_TRUE='#'
  32033. DOING_CURL_SYMBOL_HIDING_FALSE=
  32034. fi
  32035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
  32036. $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
  32037. # Check whether --enable-soname-bump was given.
  32038. if test "${enable_soname_bump+set}" = set; then :
  32039. enableval=$enable_soname_bump; case "$enableval" in
  32040. yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32041. $as_echo "yes" >&6; }
  32042. soname_bump=yes
  32043. ;;
  32044. *)
  32045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32046. $as_echo "no" >&6; }
  32047. ;;
  32048. esac
  32049. else
  32050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
  32051. $as_echo "$soname_bump" >&6; }
  32052. fi
  32053. if test x$soname_bump = xyes; then
  32054. SONAME_BUMP_TRUE=
  32055. SONAME_BUMP_FALSE='#'
  32056. else
  32057. SONAME_BUMP_TRUE='#'
  32058. SONAME_BUMP_FALSE=
  32059. fi
  32060. LIBCURL_LIBS=$LIBS
  32061. BLANK_AT_MAKETIME=
  32062. if test x$cross_compiling = xyes; then
  32063. CROSSCOMPILING_TRUE=
  32064. CROSSCOMPILING_FALSE='#'
  32065. else
  32066. CROSSCOMPILING_TRUE='#'
  32067. CROSSCOMPILING_FALSE=
  32068. fi
  32069. ENABLE_SHARED="$enable_shared"
  32070. ENABLE_STATIC="$enable_static"
  32071. if test "x$USE_SSLEAY" = "x1"; then
  32072. SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
  32073. elif test -n "$SSL_ENABLED"; then
  32074. SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
  32075. fi
  32076. if test "@KRB4_ENABLED@" = "x1"; then
  32077. SUPPORT_FEATURES="$SUPPORT_FEATURES KRB4"
  32078. fi
  32079. if test "x$IPV6_ENABLED" = "x1"; then
  32080. SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
  32081. fi
  32082. if test "x$HAVE_LIBZ" = "x1"; then
  32083. SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
  32084. fi
  32085. if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
  32086. SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
  32087. fi
  32088. if test "x$IDN_ENABLED" = "x1"; then
  32089. SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
  32090. fi
  32091. if test "x$USE_WINDOWS_SSPI" = "x1"; then
  32092. SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
  32093. fi
  32094. if test "x$CURL_DISABLE_HTTP" != "x1"; then
  32095. if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
  32096. -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
  32097. -o "x$DARWINSSL_ENABLED" = "x1"; then
  32098. SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
  32099. if test "x$NTLM_WB_ENABLED" = "x1"; then
  32100. SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
  32101. fi
  32102. fi
  32103. fi
  32104. if test "x$USE_TLS_SRP" = "x1"; then
  32105. SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
  32106. fi
  32107. if test "x$CURL_DISABLE_HTTP" != "x1"; then
  32108. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
  32109. if test "x$SSL_ENABLED" = "x1"; then
  32110. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
  32111. fi
  32112. fi
  32113. if test "x$CURL_DISABLE_FTP" != "x1"; then
  32114. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
  32115. if test "x$SSL_ENABLED" = "x1"; then
  32116. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
  32117. fi
  32118. fi
  32119. if test "x$CURL_DISABLE_FILE" != "x1"; then
  32120. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
  32121. fi
  32122. if test "x$CURL_DISABLE_TELNET" != "x1"; then
  32123. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
  32124. fi
  32125. if test "x$CURL_DISABLE_LDAP" != "x1"; then
  32126. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
  32127. if test "x$CURL_DISABLE_LDAPS" != "x1"; then
  32128. if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
  32129. (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
  32130. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
  32131. fi
  32132. fi
  32133. fi
  32134. if test "x$CURL_DISABLE_DICT" != "x1"; then
  32135. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
  32136. fi
  32137. if test "x$CURL_DISABLE_TFTP" != "x1"; then
  32138. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
  32139. fi
  32140. if test "x$CURL_DISABLE_GOPHER" != "x1"; then
  32141. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
  32142. fi
  32143. if test "x$CURL_DISABLE_POP3" != "x1"; then
  32144. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
  32145. if test "x$SSL_ENABLED" = "x1"; then
  32146. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
  32147. fi
  32148. fi
  32149. if test "x$CURL_DISABLE_IMAP" != "x1"; then
  32150. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
  32151. if test "x$SSL_ENABLED" = "x1"; then
  32152. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
  32153. fi
  32154. fi
  32155. if test "x$CURL_DISABLE_SMTP" != "x1"; then
  32156. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
  32157. if test "x$SSL_ENABLED" = "x1"; then
  32158. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
  32159. fi
  32160. fi
  32161. if test "x$USE_LIBSSH2" = "x1"; then
  32162. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
  32163. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
  32164. fi
  32165. if test "x$CURL_DISABLE_RTSP" != "x1"; then
  32166. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
  32167. fi
  32168. if test "x$USE_LIBRTMP" = "x1"; then
  32169. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
  32170. fi
  32171. SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
  32172. squeeze CFLAGS
  32173. squeeze CPPFLAGS
  32174. squeeze DEFS
  32175. squeeze LDFLAGS
  32176. squeeze LIBS
  32177. squeeze LIBCURL_LIBS
  32178. squeeze CURL_NETWORK_LIBS
  32179. squeeze CURL_NETWORK_AND_TIME_LIBS
  32180. squeeze SUPPORT_FEATURES
  32181. squeeze SUPPORT_PROTOCOLS
  32182. xc_bad_var_libs=no
  32183. for xc_word in $LIBS; do
  32184. case "$xc_word" in
  32185. -l* | --library=*)
  32186. :
  32187. ;;
  32188. *)
  32189. xc_bad_var_libs=yes
  32190. ;;
  32191. esac
  32192. done
  32193. if test $xc_bad_var_libs = yes; then
  32194. { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
  32195. $as_echo "$as_me: using LIBS: $LIBS" >&6;}
  32196. { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
  32197. $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
  32198. fi
  32199. xc_bad_var_ldflags=no
  32200. for xc_word in $LDFLAGS; do
  32201. case "$xc_word" in
  32202. -D*)
  32203. xc_bad_var_ldflags=yes
  32204. ;;
  32205. -U*)
  32206. xc_bad_var_ldflags=yes
  32207. ;;
  32208. -I*)
  32209. xc_bad_var_ldflags=yes
  32210. ;;
  32211. -l* | --library=*)
  32212. xc_bad_var_ldflags=yes
  32213. ;;
  32214. esac
  32215. done
  32216. if test $xc_bad_var_ldflags = yes; then
  32217. { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
  32218. $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
  32219. xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
  32220. for xc_word in $LDFLAGS; do
  32221. case "$xc_word" in
  32222. -D*)
  32223. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  32224. $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  32225. ;;
  32226. -U*)
  32227. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  32228. $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  32229. ;;
  32230. -I*)
  32231. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  32232. $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  32233. ;;
  32234. -l* | --library=*)
  32235. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  32236. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  32237. ;;
  32238. esac
  32239. done
  32240. fi
  32241. xc_bad_var_cppflags=no
  32242. for xc_word in $CPPFLAGS; do
  32243. case "$xc_word" in
  32244. -rpath*)
  32245. xc_bad_var_cppflags=yes
  32246. ;;
  32247. -L* | --library-path=*)
  32248. xc_bad_var_cppflags=yes
  32249. ;;
  32250. -l* | --library=*)
  32251. xc_bad_var_cppflags=yes
  32252. ;;
  32253. esac
  32254. done
  32255. if test $xc_bad_var_cppflags = yes; then
  32256. { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
  32257. $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
  32258. xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
  32259. for xc_word in $CPPFLAGS; do
  32260. case "$xc_word" in
  32261. -rpath*)
  32262. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  32263. $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  32264. ;;
  32265. -L* | --library-path=*)
  32266. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  32267. $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  32268. ;;
  32269. -l* | --library=*)
  32270. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  32271. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  32272. ;;
  32273. esac
  32274. done
  32275. fi
  32276. xc_bad_var_cflags=no
  32277. for xc_word in $CFLAGS; do
  32278. case "$xc_word" in
  32279. -D*)
  32280. xc_bad_var_cflags=yes
  32281. ;;
  32282. -U*)
  32283. xc_bad_var_cflags=yes
  32284. ;;
  32285. -I*)
  32286. xc_bad_var_cflags=yes
  32287. ;;
  32288. -rpath*)
  32289. xc_bad_var_cflags=yes
  32290. ;;
  32291. -L* | --library-path=*)
  32292. xc_bad_var_cflags=yes
  32293. ;;
  32294. -l* | --library=*)
  32295. xc_bad_var_cflags=yes
  32296. ;;
  32297. esac
  32298. done
  32299. if test $xc_bad_var_cflags = yes; then
  32300. { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
  32301. $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
  32302. xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
  32303. for xc_word in $CFLAGS; do
  32304. case "$xc_word" in
  32305. -D*)
  32306. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  32307. $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  32308. ;;
  32309. -U*)
  32310. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  32311. $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  32312. ;;
  32313. -I*)
  32314. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  32315. $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  32316. ;;
  32317. -rpath*)
  32318. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  32319. $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  32320. ;;
  32321. -L* | --library-path=*)
  32322. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  32323. $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  32324. ;;
  32325. -l* | --library=*)
  32326. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  32327. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  32328. ;;
  32329. esac
  32330. done
  32331. fi
  32332. if test $xc_bad_var_libs = yes ||
  32333. test $xc_bad_var_cflags = yes ||
  32334. test $xc_bad_var_ldflags = yes ||
  32335. test $xc_bad_var_cppflags = yes; then
  32336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
  32337. $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
  32338. fi
  32339. if test "x$want_curldebug_assumed" = "xyes" &&
  32340. test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
  32341. ac_configure_args="$ac_configure_args --enable-curldebug"
  32342. fi
  32343. ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
  32344. cat >confcache <<\_ACEOF
  32345. # This file is a shell script that caches the results of configure
  32346. # tests run on this system so they can be shared between configure
  32347. # scripts and configure runs, see configure's option --config-cache.
  32348. # It is not useful on other systems. If it contains results you don't
  32349. # want to keep, you may remove or edit it.
  32350. #
  32351. # config.status only pays attention to the cache file if you give it
  32352. # the --recheck option to rerun configure.
  32353. #
  32354. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  32355. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  32356. # following values.
  32357. _ACEOF
  32358. # The following way of writing the cache mishandles newlines in values,
  32359. # but we know of no workaround that is simple, portable, and efficient.
  32360. # So, we kill variables containing newlines.
  32361. # Ultrix sh set writes to stderr and can't be redirected directly,
  32362. # and sets the high bit in the cache file unless we assign to the vars.
  32363. (
  32364. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  32365. eval ac_val=\$$ac_var
  32366. case $ac_val in #(
  32367. *${as_nl}*)
  32368. case $ac_var in #(
  32369. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  32370. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  32371. esac
  32372. case $ac_var in #(
  32373. _ | IFS | as_nl) ;; #(
  32374. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  32375. *) { eval $ac_var=; unset $ac_var;} ;;
  32376. esac ;;
  32377. esac
  32378. done
  32379. (set) 2>&1 |
  32380. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  32381. *${as_nl}ac_space=\ *)
  32382. # `set' does not quote correctly, so add quotes: double-quote
  32383. # substitution turns \\\\ into \\, and sed turns \\ into \.
  32384. sed -n \
  32385. "s/'/'\\\\''/g;
  32386. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  32387. ;; #(
  32388. *)
  32389. # `set' quotes correctly as required by POSIX, so do not add quotes.
  32390. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  32391. ;;
  32392. esac |
  32393. sort
  32394. ) |
  32395. sed '
  32396. /^ac_cv_env_/b end
  32397. t clear
  32398. :clear
  32399. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  32400. t end
  32401. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  32402. :end' >>confcache
  32403. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  32404. if test -w "$cache_file"; then
  32405. if test "x$cache_file" != "x/dev/null"; then
  32406. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  32407. $as_echo "$as_me: updating cache $cache_file" >&6;}
  32408. if test ! -f "$cache_file" || test -h "$cache_file"; then
  32409. cat confcache >"$cache_file"
  32410. else
  32411. case $cache_file in #(
  32412. */* | ?:*)
  32413. mv -f confcache "$cache_file"$$ &&
  32414. mv -f "$cache_file"$$ "$cache_file" ;; #(
  32415. *)
  32416. mv -f confcache "$cache_file" ;;
  32417. esac
  32418. fi
  32419. fi
  32420. else
  32421. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  32422. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  32423. fi
  32424. fi
  32425. rm -f confcache
  32426. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  32427. # Let make expand exec_prefix.
  32428. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  32429. DEFS=-DHAVE_CONFIG_H
  32430. ac_libobjs=
  32431. ac_ltlibobjs=
  32432. U=
  32433. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  32434. # 1. Remove the extension, and $U if already installed.
  32435. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  32436. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  32437. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  32438. # will be set to the directory where LIBOBJS objects are built.
  32439. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  32440. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  32441. done
  32442. LIBOBJS=$ac_libobjs
  32443. LTLIBOBJS=$ac_ltlibobjs
  32444. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  32445. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  32446. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32447. fi
  32448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  32449. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  32450. if test -n "$am_sleep_pid"; then
  32451. # Hide warnings about reused PIDs.
  32452. wait $am_sleep_pid 2>/dev/null
  32453. fi
  32454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  32455. $as_echo "done" >&6; }
  32456. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  32457. as_fn_error $? "conditional \"AMDEP\" was never defined.
  32458. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32459. fi
  32460. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  32461. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  32462. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32463. fi
  32464. if test -n "$EXEEXT"; then
  32465. am__EXEEXT_TRUE=
  32466. am__EXEEXT_FALSE='#'
  32467. else
  32468. am__EXEEXT_TRUE='#'
  32469. am__EXEEXT_FALSE=
  32470. fi
  32471. if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
  32472. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
  32473. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32474. fi
  32475. if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
  32476. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
  32477. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32478. fi
  32479. if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
  32480. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
  32481. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32482. fi
  32483. if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
  32484. as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
  32485. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32486. fi
  32487. if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
  32488. as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
  32489. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32490. fi
  32491. if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
  32492. as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
  32493. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32494. fi
  32495. if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
  32496. as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
  32497. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32498. fi
  32499. if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
  32500. as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
  32501. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32502. fi
  32503. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  32504. as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
  32505. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32506. fi
  32507. if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
  32508. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
  32509. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32510. fi
  32511. if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
  32512. as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
  32513. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32514. fi
  32515. if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
  32516. as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
  32517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32518. fi
  32519. if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
  32520. as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
  32521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32522. fi
  32523. if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
  32524. as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
  32525. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32526. fi
  32527. if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
  32528. as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
  32529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32530. fi
  32531. if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
  32532. as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
  32533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32534. fi
  32535. : "${CONFIG_STATUS=./config.status}"
  32536. ac_write_fail=0
  32537. ac_clean_files_save=$ac_clean_files
  32538. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  32539. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  32540. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  32541. as_write_fail=0
  32542. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  32543. #! $SHELL
  32544. # Generated by $as_me.
  32545. # Run this file to recreate the current configuration.
  32546. # Compiler output produced by configure, useful for debugging
  32547. # configure, is in config.log if it exists.
  32548. debug=false
  32549. ac_cs_recheck=false
  32550. ac_cs_silent=false
  32551. SHELL=\${CONFIG_SHELL-$SHELL}
  32552. export SHELL
  32553. _ASEOF
  32554. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  32555. ## -------------------- ##
  32556. ## M4sh Initialization. ##
  32557. ## -------------------- ##
  32558. # Be more Bourne compatible
  32559. DUALCASE=1; export DUALCASE # for MKS sh
  32560. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  32561. emulate sh
  32562. NULLCMD=:
  32563. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  32564. # is contrary to our usage. Disable this feature.
  32565. alias -g '${1+"$@"}'='"$@"'
  32566. setopt NO_GLOB_SUBST
  32567. else
  32568. case `(set -o) 2>/dev/null` in #(
  32569. *posix*) :
  32570. set -o posix ;; #(
  32571. *) :
  32572. ;;
  32573. esac
  32574. fi
  32575. as_nl='
  32576. '
  32577. export as_nl
  32578. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  32579. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  32580. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  32581. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  32582. # Prefer a ksh shell builtin over an external printf program on Solaris,
  32583. # but without wasting forks for bash or zsh.
  32584. if test -z "$BASH_VERSION$ZSH_VERSION" \
  32585. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  32586. as_echo='print -r --'
  32587. as_echo_n='print -rn --'
  32588. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  32589. as_echo='printf %s\n'
  32590. as_echo_n='printf %s'
  32591. else
  32592. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  32593. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  32594. as_echo_n='/usr/ucb/echo -n'
  32595. else
  32596. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  32597. as_echo_n_body='eval
  32598. arg=$1;
  32599. case $arg in #(
  32600. *"$as_nl"*)
  32601. expr "X$arg" : "X\\(.*\\)$as_nl";
  32602. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  32603. esac;
  32604. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  32605. '
  32606. export as_echo_n_body
  32607. as_echo_n='sh -c $as_echo_n_body as_echo'
  32608. fi
  32609. export as_echo_body
  32610. as_echo='sh -c $as_echo_body as_echo'
  32611. fi
  32612. # IFS
  32613. # We need space, tab and new line, in precisely that order. Quoting is
  32614. # there to prevent editors from complaining about space-tab.
  32615. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  32616. # splitting by setting IFS to empty value.)
  32617. IFS=" "" $as_nl"
  32618. # Find who we are. Look in the path if we contain no directory separator.
  32619. as_myself=
  32620. case $0 in #((
  32621. *[\\/]* ) as_myself=$0 ;;
  32622. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32623. for as_dir in $PATH
  32624. do
  32625. IFS=$as_save_IFS
  32626. test -z "$as_dir" && as_dir=.
  32627. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  32628. done
  32629. IFS=$as_save_IFS
  32630. ;;
  32631. esac
  32632. # We did not find ourselves, most probably we were run as `sh COMMAND'
  32633. # in which case we are not to be found in the path.
  32634. if test "x$as_myself" = x; then
  32635. as_myself=$0
  32636. fi
  32637. if test ! -f "$as_myself"; then
  32638. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  32639. exit 1
  32640. fi
  32641. # Unset variables that we do not need and which cause bugs (e.g. in
  32642. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  32643. # suppresses any "Segmentation fault" message there. '((' could
  32644. # trigger a bug in pdksh 5.2.14.
  32645. for as_var in BASH_ENV ENV MAIL MAILPATH
  32646. do eval test x\${$as_var+set} = xset \
  32647. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  32648. done
  32649. PS1='$ '
  32650. PS2='> '
  32651. PS4='+ '
  32652. # NLS nuisances.
  32653. LC_ALL=C
  32654. export LC_ALL
  32655. LANGUAGE=C
  32656. export LANGUAGE
  32657. # CDPATH.
  32658. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  32659. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  32660. # ----------------------------------------
  32661. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  32662. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  32663. # script with STATUS, using 1 if that was 0.
  32664. as_fn_error ()
  32665. {
  32666. as_status=$1; test $as_status -eq 0 && as_status=1
  32667. if test "$4"; then
  32668. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  32669. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  32670. fi
  32671. $as_echo "$as_me: error: $2" >&2
  32672. as_fn_exit $as_status
  32673. } # as_fn_error
  32674. # as_fn_set_status STATUS
  32675. # -----------------------
  32676. # Set $? to STATUS, without forking.
  32677. as_fn_set_status ()
  32678. {
  32679. return $1
  32680. } # as_fn_set_status
  32681. # as_fn_exit STATUS
  32682. # -----------------
  32683. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  32684. as_fn_exit ()
  32685. {
  32686. set +e
  32687. as_fn_set_status $1
  32688. exit $1
  32689. } # as_fn_exit
  32690. # as_fn_unset VAR
  32691. # ---------------
  32692. # Portably unset VAR.
  32693. as_fn_unset ()
  32694. {
  32695. { eval $1=; unset $1;}
  32696. }
  32697. as_unset=as_fn_unset
  32698. # as_fn_append VAR VALUE
  32699. # ----------------------
  32700. # Append the text in VALUE to the end of the definition contained in VAR. Take
  32701. # advantage of any shell optimizations that allow amortized linear growth over
  32702. # repeated appends, instead of the typical quadratic growth present in naive
  32703. # implementations.
  32704. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  32705. eval 'as_fn_append ()
  32706. {
  32707. eval $1+=\$2
  32708. }'
  32709. else
  32710. as_fn_append ()
  32711. {
  32712. eval $1=\$$1\$2
  32713. }
  32714. fi # as_fn_append
  32715. # as_fn_arith ARG...
  32716. # ------------------
  32717. # Perform arithmetic evaluation on the ARGs, and store the result in the
  32718. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  32719. # must be portable across $(()) and expr.
  32720. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  32721. eval 'as_fn_arith ()
  32722. {
  32723. as_val=$(( $* ))
  32724. }'
  32725. else
  32726. as_fn_arith ()
  32727. {
  32728. as_val=`expr "$@" || test $? -eq 1`
  32729. }
  32730. fi # as_fn_arith
  32731. if expr a : '\(a\)' >/dev/null 2>&1 &&
  32732. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  32733. as_expr=expr
  32734. else
  32735. as_expr=false
  32736. fi
  32737. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  32738. as_basename=basename
  32739. else
  32740. as_basename=false
  32741. fi
  32742. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  32743. as_dirname=dirname
  32744. else
  32745. as_dirname=false
  32746. fi
  32747. as_me=`$as_basename -- "$0" ||
  32748. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  32749. X"$0" : 'X\(//\)$' \| \
  32750. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  32751. $as_echo X/"$0" |
  32752. sed '/^.*\/\([^/][^/]*\)\/*$/{
  32753. s//\1/
  32754. q
  32755. }
  32756. /^X\/\(\/\/\)$/{
  32757. s//\1/
  32758. q
  32759. }
  32760. /^X\/\(\/\).*/{
  32761. s//\1/
  32762. q
  32763. }
  32764. s/.*/./; q'`
  32765. # Avoid depending upon Character Ranges.
  32766. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32767. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32768. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  32769. as_cr_digits='0123456789'
  32770. as_cr_alnum=$as_cr_Letters$as_cr_digits
  32771. ECHO_C= ECHO_N= ECHO_T=
  32772. case `echo -n x` in #(((((
  32773. -n*)
  32774. case `echo 'xy\c'` in
  32775. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  32776. xy) ECHO_C='\c';;
  32777. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  32778. ECHO_T=' ';;
  32779. esac;;
  32780. *)
  32781. ECHO_N='-n';;
  32782. esac
  32783. rm -f conf$$ conf$$.exe conf$$.file
  32784. if test -d conf$$.dir; then
  32785. rm -f conf$$.dir/conf$$.file
  32786. else
  32787. rm -f conf$$.dir
  32788. mkdir conf$$.dir 2>/dev/null
  32789. fi
  32790. if (echo >conf$$.file) 2>/dev/null; then
  32791. if ln -s conf$$.file conf$$ 2>/dev/null; then
  32792. as_ln_s='ln -s'
  32793. # ... but there are two gotchas:
  32794. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  32795. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  32796. # In both cases, we have to default to `cp -pR'.
  32797. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  32798. as_ln_s='cp -pR'
  32799. elif ln conf$$.file conf$$ 2>/dev/null; then
  32800. as_ln_s=ln
  32801. else
  32802. as_ln_s='cp -pR'
  32803. fi
  32804. else
  32805. as_ln_s='cp -pR'
  32806. fi
  32807. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  32808. rmdir conf$$.dir 2>/dev/null
  32809. # as_fn_mkdir_p
  32810. # -------------
  32811. # Create "$as_dir" as a directory, including parents if necessary.
  32812. as_fn_mkdir_p ()
  32813. {
  32814. case $as_dir in #(
  32815. -*) as_dir=./$as_dir;;
  32816. esac
  32817. test -d "$as_dir" || eval $as_mkdir_p || {
  32818. as_dirs=
  32819. while :; do
  32820. case $as_dir in #(
  32821. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  32822. *) as_qdir=$as_dir;;
  32823. esac
  32824. as_dirs="'$as_qdir' $as_dirs"
  32825. as_dir=`$as_dirname -- "$as_dir" ||
  32826. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32827. X"$as_dir" : 'X\(//\)[^/]' \| \
  32828. X"$as_dir" : 'X\(//\)$' \| \
  32829. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32830. $as_echo X"$as_dir" |
  32831. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32832. s//\1/
  32833. q
  32834. }
  32835. /^X\(\/\/\)[^/].*/{
  32836. s//\1/
  32837. q
  32838. }
  32839. /^X\(\/\/\)$/{
  32840. s//\1/
  32841. q
  32842. }
  32843. /^X\(\/\).*/{
  32844. s//\1/
  32845. q
  32846. }
  32847. s/.*/./; q'`
  32848. test -d "$as_dir" && break
  32849. done
  32850. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32851. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  32852. } # as_fn_mkdir_p
  32853. if mkdir -p . 2>/dev/null; then
  32854. as_mkdir_p='mkdir -p "$as_dir"'
  32855. else
  32856. test -d ./-p && rmdir ./-p
  32857. as_mkdir_p=false
  32858. fi
  32859. # as_fn_executable_p FILE
  32860. # -----------------------
  32861. # Test if FILE is an executable regular file.
  32862. as_fn_executable_p ()
  32863. {
  32864. test -f "$1" && test -x "$1"
  32865. } # as_fn_executable_p
  32866. as_test_x='test -x'
  32867. as_executable_p=as_fn_executable_p
  32868. # Sed expression to map a string onto a valid CPP name.
  32869. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  32870. # Sed expression to map a string onto a valid variable name.
  32871. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  32872. exec 6>&1
  32873. ## ----------------------------------- ##
  32874. ## Main body of $CONFIG_STATUS script. ##
  32875. ## ----------------------------------- ##
  32876. _ASEOF
  32877. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  32878. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  32879. # Save the log message, to keep $0 and so on meaningful, and to
  32880. # report actual input values of CONFIG_FILES etc. instead of their
  32881. # values after options handling.
  32882. ac_log="
  32883. This file was extended by curl $as_me -, which was
  32884. generated by GNU Autoconf 2.69. Invocation command line was
  32885. CONFIG_FILES = $CONFIG_FILES
  32886. CONFIG_HEADERS = $CONFIG_HEADERS
  32887. CONFIG_LINKS = $CONFIG_LINKS
  32888. CONFIG_COMMANDS = $CONFIG_COMMANDS
  32889. $ $0 $@
  32890. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  32891. "
  32892. _ACEOF
  32893. case $ac_config_files in *"
  32894. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  32895. esac
  32896. case $ac_config_headers in *"
  32897. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  32898. esac
  32899. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  32900. # Files that config.status was made for.
  32901. config_files="$ac_config_files"
  32902. config_headers="$ac_config_headers"
  32903. config_commands="$ac_config_commands"
  32904. _ACEOF
  32905. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  32906. ac_cs_usage="\
  32907. \`$as_me' instantiates files and other configuration actions
  32908. from templates according to the current configuration. Unless the files
  32909. and actions are specified as TAGs, all are instantiated by default.
  32910. Usage: $0 [OPTION]... [TAG]...
  32911. -h, --help print this help, then exit
  32912. -V, --version print version number and configuration settings, then exit
  32913. --config print configuration, then exit
  32914. -q, --quiet, --silent
  32915. do not print progress messages
  32916. -d, --debug don't remove temporary files
  32917. --recheck update $as_me by reconfiguring in the same conditions
  32918. --file=FILE[:TEMPLATE]
  32919. instantiate the configuration file FILE
  32920. --header=FILE[:TEMPLATE]
  32921. instantiate the configuration header FILE
  32922. Configuration files:
  32923. $config_files
  32924. Configuration headers:
  32925. $config_headers
  32926. Configuration commands:
  32927. $config_commands
  32928. Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>."
  32929. _ACEOF
  32930. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  32931. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  32932. ac_cs_version="\\
  32933. curl config.status -
  32934. configured by $0, generated by GNU Autoconf 2.69,
  32935. with options \\"\$ac_cs_config\\"
  32936. Copyright (C) 2012 Free Software Foundation, Inc.
  32937. This config.status script is free software; the Free Software Foundation
  32938. gives unlimited permission to copy, distribute and modify it."
  32939. ac_pwd='$ac_pwd'
  32940. srcdir='$srcdir'
  32941. INSTALL='$INSTALL'
  32942. MKDIR_P='$MKDIR_P'
  32943. AWK='$AWK'
  32944. test -n "\$AWK" || AWK=awk
  32945. _ACEOF
  32946. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  32947. # The default lists apply if the user does not specify any file.
  32948. ac_need_defaults=:
  32949. while test $# != 0
  32950. do
  32951. case $1 in
  32952. --*=?*)
  32953. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  32954. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  32955. ac_shift=:
  32956. ;;
  32957. --*=)
  32958. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  32959. ac_optarg=
  32960. ac_shift=:
  32961. ;;
  32962. *)
  32963. ac_option=$1
  32964. ac_optarg=$2
  32965. ac_shift=shift
  32966. ;;
  32967. esac
  32968. case $ac_option in
  32969. # Handling of the options.
  32970. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  32971. ac_cs_recheck=: ;;
  32972. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  32973. $as_echo "$ac_cs_version"; exit ;;
  32974. --config | --confi | --conf | --con | --co | --c )
  32975. $as_echo "$ac_cs_config"; exit ;;
  32976. --debug | --debu | --deb | --de | --d | -d )
  32977. debug=: ;;
  32978. --file | --fil | --fi | --f )
  32979. $ac_shift
  32980. case $ac_optarg in
  32981. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  32982. '') as_fn_error $? "missing file argument" ;;
  32983. esac
  32984. as_fn_append CONFIG_FILES " '$ac_optarg'"
  32985. ac_need_defaults=false;;
  32986. --header | --heade | --head | --hea )
  32987. $ac_shift
  32988. case $ac_optarg in
  32989. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  32990. esac
  32991. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  32992. ac_need_defaults=false;;
  32993. --he | --h)
  32994. # Conflict between --help and --header
  32995. as_fn_error $? "ambiguous option: \`$1'
  32996. Try \`$0 --help' for more information.";;
  32997. --help | --hel | -h )
  32998. $as_echo "$ac_cs_usage"; exit ;;
  32999. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  33000. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  33001. ac_cs_silent=: ;;
  33002. # This is an error.
  33003. -*) as_fn_error $? "unrecognized option: \`$1'
  33004. Try \`$0 --help' for more information." ;;
  33005. *) as_fn_append ac_config_targets " $1"
  33006. ac_need_defaults=false ;;
  33007. esac
  33008. shift
  33009. done
  33010. ac_configure_extra_args=
  33011. if $ac_cs_silent; then
  33012. exec 6>/dev/null
  33013. ac_configure_extra_args="$ac_configure_extra_args --silent"
  33014. fi
  33015. _ACEOF
  33016. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33017. if \$ac_cs_recheck; then
  33018. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  33019. shift
  33020. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  33021. CONFIG_SHELL='$SHELL'
  33022. export CONFIG_SHELL
  33023. exec "\$@"
  33024. fi
  33025. _ACEOF
  33026. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33027. exec 5>>config.log
  33028. {
  33029. echo
  33030. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  33031. ## Running $as_me. ##
  33032. _ASBOX
  33033. $as_echo "$ac_log"
  33034. } >&5
  33035. _ACEOF
  33036. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33037. #
  33038. # INIT-COMMANDS
  33039. #
  33040. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  33041. # The HP-UX ksh and POSIX shell print the target directory to stdout
  33042. # if CDPATH is set.
  33043. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  33044. sed_quote_subst='$sed_quote_subst'
  33045. double_quote_subst='$double_quote_subst'
  33046. delay_variable_subst='$delay_variable_subst'
  33047. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  33048. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  33049. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  33050. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  33051. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  33052. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  33053. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  33054. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  33055. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  33056. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  33057. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  33058. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  33059. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  33060. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  33061. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  33062. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  33063. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  33064. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  33065. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  33066. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  33067. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  33068. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  33069. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  33070. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  33071. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  33072. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  33073. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  33074. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  33075. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  33076. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  33077. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  33078. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  33079. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  33080. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  33081. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  33082. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  33083. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  33084. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  33085. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  33086. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  33087. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  33088. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  33089. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  33090. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  33091. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  33092. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  33093. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  33094. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  33095. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  33096. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  33097. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  33098. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  33099. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  33100. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  33101. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  33102. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  33103. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  33104. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  33105. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  33106. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  33107. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  33108. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  33109. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  33110. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  33111. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  33112. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  33113. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  33114. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  33115. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  33116. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  33117. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  33118. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  33119. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  33120. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  33121. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  33122. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  33123. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  33124. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  33125. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  33126. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  33127. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  33128. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  33129. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  33130. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  33131. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  33132. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  33133. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  33134. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  33135. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  33136. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  33137. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  33138. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  33139. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  33140. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  33141. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  33142. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  33143. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  33144. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  33145. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  33146. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  33147. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  33148. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  33149. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  33150. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  33151. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  33152. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  33153. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  33154. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  33155. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  33156. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  33157. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  33158. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  33159. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  33160. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  33161. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  33162. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  33163. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  33164. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  33165. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  33166. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  33167. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  33168. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  33169. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  33170. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  33171. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  33172. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  33173. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  33174. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  33175. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  33176. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  33177. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  33178. LTCC='$LTCC'
  33179. LTCFLAGS='$LTCFLAGS'
  33180. compiler='$compiler_DEFAULT'
  33181. # A function that is used when there is no print builtin or printf.
  33182. func_fallback_echo ()
  33183. {
  33184. eval 'cat <<_LTECHO_EOF
  33185. \$1
  33186. _LTECHO_EOF'
  33187. }
  33188. # Quote evaled strings.
  33189. for var in AS \
  33190. DLLTOOL \
  33191. OBJDUMP \
  33192. SHELL \
  33193. ECHO \
  33194. PATH_SEPARATOR \
  33195. SED \
  33196. GREP \
  33197. EGREP \
  33198. FGREP \
  33199. LD \
  33200. NM \
  33201. LN_S \
  33202. lt_SP2NL \
  33203. lt_NL2SP \
  33204. reload_flag \
  33205. deplibs_check_method \
  33206. file_magic_cmd \
  33207. file_magic_glob \
  33208. want_nocaseglob \
  33209. sharedlib_from_linklib_cmd \
  33210. AR \
  33211. AR_FLAGS \
  33212. archiver_list_spec \
  33213. STRIP \
  33214. RANLIB \
  33215. CC \
  33216. CFLAGS \
  33217. compiler \
  33218. lt_cv_sys_global_symbol_pipe \
  33219. lt_cv_sys_global_symbol_to_cdecl \
  33220. lt_cv_sys_global_symbol_to_c_name_address \
  33221. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  33222. nm_file_list_spec \
  33223. lt_prog_compiler_no_builtin_flag \
  33224. lt_prog_compiler_pic \
  33225. lt_prog_compiler_wl \
  33226. lt_prog_compiler_static \
  33227. lt_cv_prog_compiler_c_o \
  33228. need_locks \
  33229. MANIFEST_TOOL \
  33230. DSYMUTIL \
  33231. NMEDIT \
  33232. LIPO \
  33233. OTOOL \
  33234. OTOOL64 \
  33235. shrext_cmds \
  33236. export_dynamic_flag_spec \
  33237. whole_archive_flag_spec \
  33238. compiler_needs_object \
  33239. with_gnu_ld \
  33240. allow_undefined_flag \
  33241. no_undefined_flag \
  33242. hardcode_libdir_flag_spec \
  33243. hardcode_libdir_separator \
  33244. exclude_expsyms \
  33245. include_expsyms \
  33246. file_list_spec \
  33247. variables_saved_for_relink \
  33248. libname_spec \
  33249. library_names_spec \
  33250. soname_spec \
  33251. install_override_mode \
  33252. finish_eval \
  33253. old_striplib \
  33254. striplib; do
  33255. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  33256. *[\\\\\\\`\\"\\\$]*)
  33257. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  33258. ;;
  33259. *)
  33260. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  33261. ;;
  33262. esac
  33263. done
  33264. # Double-quote double-evaled strings.
  33265. for var in reload_cmds \
  33266. old_postinstall_cmds \
  33267. old_postuninstall_cmds \
  33268. old_archive_cmds \
  33269. extract_expsyms_cmds \
  33270. old_archive_from_new_cmds \
  33271. old_archive_from_expsyms_cmds \
  33272. archive_cmds \
  33273. archive_expsym_cmds \
  33274. module_cmds \
  33275. module_expsym_cmds \
  33276. export_symbols_cmds \
  33277. prelink_cmds \
  33278. postlink_cmds \
  33279. postinstall_cmds \
  33280. postuninstall_cmds \
  33281. finish_cmds \
  33282. sys_lib_search_path_spec \
  33283. sys_lib_dlsearch_path_spec; do
  33284. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  33285. *[\\\\\\\`\\"\\\$]*)
  33286. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  33287. ;;
  33288. *)
  33289. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  33290. ;;
  33291. esac
  33292. done
  33293. ac_aux_dir='$ac_aux_dir'
  33294. xsi_shell='$xsi_shell'
  33295. lt_shell_append='$lt_shell_append'
  33296. # See if we are running on zsh, and set the options which allow our
  33297. # commands through without removal of \ escapes INIT.
  33298. if test -n "\${ZSH_VERSION+set}" ; then
  33299. setopt NO_GLOB_SUBST
  33300. fi
  33301. PACKAGE='$PACKAGE'
  33302. VERSION='$VERSION'
  33303. TIMESTAMP='$TIMESTAMP'
  33304. RM='$RM'
  33305. ofile='$ofile'
  33306. _ACEOF
  33307. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33308. # Handling of arguments.
  33309. for ac_config_target in $ac_config_targets
  33310. do
  33311. case $ac_config_target in
  33312. "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
  33313. "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
  33314. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  33315. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  33316. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  33317. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  33318. "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
  33319. "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
  33320. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  33321. "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
  33322. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  33323. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  33324. "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
  33325. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  33326. "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
  33327. "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
  33328. "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
  33329. "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
  33330. "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
  33331. "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
  33332. "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
  33333. "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
  33334. "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
  33335. "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
  33336. "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
  33337. "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
  33338. "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
  33339. "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
  33340. "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
  33341. "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
  33342. "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
  33343. "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
  33344. "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
  33345. "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
  33346. "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
  33347. "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
  33348. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  33349. esac
  33350. done
  33351. # If the user did not use the arguments to specify the items to instantiate,
  33352. # then the envvar interface is used. Set only those that are not.
  33353. # We use the long form for the default assignment because of an extremely
  33354. # bizarre bug on SunOS 4.1.3.
  33355. if $ac_need_defaults; then
  33356. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  33357. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  33358. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  33359. fi
  33360. # Have a temporary directory for convenience. Make it in the build tree
  33361. # simply because there is no reason against having it here, and in addition,
  33362. # creating and moving files from /tmp can sometimes cause problems.
  33363. # Hook for its removal unless debugging.
  33364. # Note that there is a small window in which the directory will not be cleaned:
  33365. # after its creation but before its name has been assigned to `$tmp'.
  33366. $debug ||
  33367. {
  33368. tmp= ac_tmp=
  33369. trap 'exit_status=$?
  33370. : "${ac_tmp:=$tmp}"
  33371. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  33372. ' 0
  33373. trap 'as_fn_exit 1' 1 2 13 15
  33374. }
  33375. # Create a (secure) tmp directory for tmp files.
  33376. {
  33377. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  33378. test -d "$tmp"
  33379. } ||
  33380. {
  33381. tmp=./conf$$-$RANDOM
  33382. (umask 077 && mkdir "$tmp")
  33383. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  33384. ac_tmp=$tmp
  33385. # Set up the scripts for CONFIG_FILES section.
  33386. # No need to generate them if there are no CONFIG_FILES.
  33387. # This happens for instance with `./config.status config.h'.
  33388. if test -n "$CONFIG_FILES"; then
  33389. ac_cr=`echo X | tr X '\015'`
  33390. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  33391. # But we know of no other shell where ac_cr would be empty at this
  33392. # point, so we can use a bashism as a fallback.
  33393. if test "x$ac_cr" = x; then
  33394. eval ac_cr=\$\'\\r\'
  33395. fi
  33396. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  33397. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  33398. ac_cs_awk_cr='\\r'
  33399. else
  33400. ac_cs_awk_cr=$ac_cr
  33401. fi
  33402. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  33403. _ACEOF
  33404. {
  33405. echo "cat >conf$$subs.awk <<_ACEOF" &&
  33406. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  33407. echo "_ACEOF"
  33408. } >conf$$subs.sh ||
  33409. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  33410. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  33411. ac_delim='%!_!# '
  33412. for ac_last_try in false false false false false :; do
  33413. . ./conf$$subs.sh ||
  33414. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  33415. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  33416. if test $ac_delim_n = $ac_delim_num; then
  33417. break
  33418. elif $ac_last_try; then
  33419. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  33420. else
  33421. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  33422. fi
  33423. done
  33424. rm -f conf$$subs.sh
  33425. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33426. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  33427. _ACEOF
  33428. sed -n '
  33429. h
  33430. s/^/S["/; s/!.*/"]=/
  33431. p
  33432. g
  33433. s/^[^!]*!//
  33434. :repl
  33435. t repl
  33436. s/'"$ac_delim"'$//
  33437. t delim
  33438. :nl
  33439. h
  33440. s/\(.\{148\}\)..*/\1/
  33441. t more1
  33442. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  33443. p
  33444. n
  33445. b repl
  33446. :more1
  33447. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  33448. p
  33449. g
  33450. s/.\{148\}//
  33451. t nl
  33452. :delim
  33453. h
  33454. s/\(.\{148\}\)..*/\1/
  33455. t more2
  33456. s/["\\]/\\&/g; s/^/"/; s/$/"/
  33457. p
  33458. b
  33459. :more2
  33460. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  33461. p
  33462. g
  33463. s/.\{148\}//
  33464. t delim
  33465. ' <conf$$subs.awk | sed '
  33466. /^[^""]/{
  33467. N
  33468. s/\n//
  33469. }
  33470. ' >>$CONFIG_STATUS || ac_write_fail=1
  33471. rm -f conf$$subs.awk
  33472. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33473. _ACAWK
  33474. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  33475. for (key in S) S_is_set[key] = 1
  33476. FS = ""
  33477. }
  33478. {
  33479. line = $ 0
  33480. nfields = split(line, field, "@")
  33481. substed = 0
  33482. len = length(field[1])
  33483. for (i = 2; i < nfields; i++) {
  33484. key = field[i]
  33485. keylen = length(key)
  33486. if (S_is_set[key]) {
  33487. value = S[key]
  33488. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  33489. len += length(value) + length(field[++i])
  33490. substed = 1
  33491. } else
  33492. len += 1 + keylen
  33493. }
  33494. print line
  33495. }
  33496. _ACAWK
  33497. _ACEOF
  33498. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33499. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  33500. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  33501. else
  33502. cat
  33503. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  33504. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  33505. _ACEOF
  33506. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  33507. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  33508. # trailing colons and then remove the whole line if VPATH becomes empty
  33509. # (actually we leave an empty line to preserve line numbers).
  33510. if test "x$srcdir" = x.; then
  33511. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  33512. h
  33513. s///
  33514. s/^/:/
  33515. s/[ ]*$/:/
  33516. s/:\$(srcdir):/:/g
  33517. s/:\${srcdir}:/:/g
  33518. s/:@srcdir@:/:/g
  33519. s/^:*//
  33520. s/:*$//
  33521. x
  33522. s/\(=[ ]*\).*/\1/
  33523. G
  33524. s/\n//
  33525. s/^[^=]*=[ ]*$//
  33526. }'
  33527. fi
  33528. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33529. fi # test -n "$CONFIG_FILES"
  33530. # Set up the scripts for CONFIG_HEADERS section.
  33531. # No need to generate them if there are no CONFIG_HEADERS.
  33532. # This happens for instance with `./config.status Makefile'.
  33533. if test -n "$CONFIG_HEADERS"; then
  33534. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  33535. BEGIN {
  33536. _ACEOF
  33537. # Transform confdefs.h into an awk script `defines.awk', embedded as
  33538. # here-document in config.status, that substitutes the proper values into
  33539. # config.h.in to produce config.h.
  33540. # Create a delimiter string that does not exist in confdefs.h, to ease
  33541. # handling of long lines.
  33542. ac_delim='%!_!# '
  33543. for ac_last_try in false false :; do
  33544. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  33545. if test -z "$ac_tt"; then
  33546. break
  33547. elif $ac_last_try; then
  33548. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  33549. else
  33550. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  33551. fi
  33552. done
  33553. # For the awk script, D is an array of macro values keyed by name,
  33554. # likewise P contains macro parameters if any. Preserve backslash
  33555. # newline sequences.
  33556. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  33557. sed -n '
  33558. s/.\{148\}/&'"$ac_delim"'/g
  33559. t rset
  33560. :rset
  33561. s/^[ ]*#[ ]*define[ ][ ]*/ /
  33562. t def
  33563. d
  33564. :def
  33565. s/\\$//
  33566. t bsnl
  33567. s/["\\]/\\&/g
  33568. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  33569. D["\1"]=" \3"/p
  33570. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  33571. d
  33572. :bsnl
  33573. s/["\\]/\\&/g
  33574. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  33575. D["\1"]=" \3\\\\\\n"\\/p
  33576. t cont
  33577. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  33578. t cont
  33579. d
  33580. :cont
  33581. n
  33582. s/.\{148\}/&'"$ac_delim"'/g
  33583. t clear
  33584. :clear
  33585. s/\\$//
  33586. t bsnlc
  33587. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  33588. d
  33589. :bsnlc
  33590. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  33591. b cont
  33592. ' <confdefs.h | sed '
  33593. s/'"$ac_delim"'/"\\\
  33594. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  33595. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33596. for (key in D) D_is_set[key] = 1
  33597. FS = ""
  33598. }
  33599. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  33600. line = \$ 0
  33601. split(line, arg, " ")
  33602. if (arg[1] == "#") {
  33603. defundef = arg[2]
  33604. mac1 = arg[3]
  33605. } else {
  33606. defundef = substr(arg[1], 2)
  33607. mac1 = arg[2]
  33608. }
  33609. split(mac1, mac2, "(") #)
  33610. macro = mac2[1]
  33611. prefix = substr(line, 1, index(line, defundef) - 1)
  33612. if (D_is_set[macro]) {
  33613. # Preserve the white space surrounding the "#".
  33614. print prefix "define", macro P[macro] D[macro]
  33615. next
  33616. } else {
  33617. # Replace #undef with comments. This is necessary, for example,
  33618. # in the case of _POSIX_SOURCE, which is predefined and required
  33619. # on some systems where configure will not decide to define it.
  33620. if (defundef == "undef") {
  33621. print "/*", prefix defundef, macro, "*/"
  33622. next
  33623. }
  33624. }
  33625. }
  33626. { print }
  33627. _ACAWK
  33628. _ACEOF
  33629. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33630. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  33631. fi # test -n "$CONFIG_HEADERS"
  33632. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  33633. shift
  33634. for ac_tag
  33635. do
  33636. case $ac_tag in
  33637. :[FHLC]) ac_mode=$ac_tag; continue;;
  33638. esac
  33639. case $ac_mode$ac_tag in
  33640. :[FHL]*:*);;
  33641. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  33642. :[FH]-) ac_tag=-:-;;
  33643. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  33644. esac
  33645. ac_save_IFS=$IFS
  33646. IFS=:
  33647. set x $ac_tag
  33648. IFS=$ac_save_IFS
  33649. shift
  33650. ac_file=$1
  33651. shift
  33652. case $ac_mode in
  33653. :L) ac_source=$1;;
  33654. :[FH])
  33655. ac_file_inputs=
  33656. for ac_f
  33657. do
  33658. case $ac_f in
  33659. -) ac_f="$ac_tmp/stdin";;
  33660. *) # Look for the file first in the build tree, then in the source tree
  33661. # (if the path is not absolute). The absolute path cannot be DOS-style,
  33662. # because $ac_f cannot contain `:'.
  33663. test -f "$ac_f" ||
  33664. case $ac_f in
  33665. [\\/$]*) false;;
  33666. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  33667. esac ||
  33668. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  33669. esac
  33670. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  33671. as_fn_append ac_file_inputs " '$ac_f'"
  33672. done
  33673. # Let's still pretend it is `configure' which instantiates (i.e., don't
  33674. # use $as_me), people would be surprised to read:
  33675. # /* config.h. Generated by config.status. */
  33676. configure_input='Generated from '`
  33677. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  33678. `' by configure.'
  33679. if test x"$ac_file" != x-; then
  33680. configure_input="$ac_file. $configure_input"
  33681. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  33682. $as_echo "$as_me: creating $ac_file" >&6;}
  33683. fi
  33684. # Neutralize special characters interpreted by sed in replacement strings.
  33685. case $configure_input in #(
  33686. *\&* | *\|* | *\\* )
  33687. ac_sed_conf_input=`$as_echo "$configure_input" |
  33688. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  33689. *) ac_sed_conf_input=$configure_input;;
  33690. esac
  33691. case $ac_tag in
  33692. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  33693. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  33694. esac
  33695. ;;
  33696. esac
  33697. ac_dir=`$as_dirname -- "$ac_file" ||
  33698. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33699. X"$ac_file" : 'X\(//\)[^/]' \| \
  33700. X"$ac_file" : 'X\(//\)$' \| \
  33701. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  33702. $as_echo X"$ac_file" |
  33703. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33704. s//\1/
  33705. q
  33706. }
  33707. /^X\(\/\/\)[^/].*/{
  33708. s//\1/
  33709. q
  33710. }
  33711. /^X\(\/\/\)$/{
  33712. s//\1/
  33713. q
  33714. }
  33715. /^X\(\/\).*/{
  33716. s//\1/
  33717. q
  33718. }
  33719. s/.*/./; q'`
  33720. as_dir="$ac_dir"; as_fn_mkdir_p
  33721. ac_builddir=.
  33722. case "$ac_dir" in
  33723. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  33724. *)
  33725. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  33726. # A ".." for each directory in $ac_dir_suffix.
  33727. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  33728. case $ac_top_builddir_sub in
  33729. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  33730. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  33731. esac ;;
  33732. esac
  33733. ac_abs_top_builddir=$ac_pwd
  33734. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  33735. # for backward compatibility:
  33736. ac_top_builddir=$ac_top_build_prefix
  33737. case $srcdir in
  33738. .) # We are building in place.
  33739. ac_srcdir=.
  33740. ac_top_srcdir=$ac_top_builddir_sub
  33741. ac_abs_top_srcdir=$ac_pwd ;;
  33742. [\\/]* | ?:[\\/]* ) # Absolute name.
  33743. ac_srcdir=$srcdir$ac_dir_suffix;
  33744. ac_top_srcdir=$srcdir
  33745. ac_abs_top_srcdir=$srcdir ;;
  33746. *) # Relative name.
  33747. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  33748. ac_top_srcdir=$ac_top_build_prefix$srcdir
  33749. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  33750. esac
  33751. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  33752. case $ac_mode in
  33753. :F)
  33754. #
  33755. # CONFIG_FILE
  33756. #
  33757. case $INSTALL in
  33758. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  33759. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  33760. esac
  33761. ac_MKDIR_P=$MKDIR_P
  33762. case $MKDIR_P in
  33763. [\\/$]* | ?:[\\/]* ) ;;
  33764. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  33765. esac
  33766. _ACEOF
  33767. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33768. # If the template does not know about datarootdir, expand it.
  33769. # FIXME: This hack should be removed a few years after 2.60.
  33770. ac_datarootdir_hack=; ac_datarootdir_seen=
  33771. ac_sed_dataroot='
  33772. /datarootdir/ {
  33773. p
  33774. q
  33775. }
  33776. /@datadir@/p
  33777. /@docdir@/p
  33778. /@infodir@/p
  33779. /@localedir@/p
  33780. /@mandir@/p'
  33781. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  33782. *datarootdir*) ac_datarootdir_seen=yes;;
  33783. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  33784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  33785. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  33786. _ACEOF
  33787. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33788. ac_datarootdir_hack='
  33789. s&@datadir@&$datadir&g
  33790. s&@docdir@&$docdir&g
  33791. s&@infodir@&$infodir&g
  33792. s&@localedir@&$localedir&g
  33793. s&@mandir@&$mandir&g
  33794. s&\\\${datarootdir}&$datarootdir&g' ;;
  33795. esac
  33796. _ACEOF
  33797. # Neutralize VPATH when `$srcdir' = `.'.
  33798. # Shell code in configure.ac might set extrasub.
  33799. # FIXME: do we really want to maintain this feature?
  33800. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33801. ac_sed_extra="$ac_vpsub
  33802. $extrasub
  33803. _ACEOF
  33804. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33805. :t
  33806. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  33807. s|@configure_input@|$ac_sed_conf_input|;t t
  33808. s&@top_builddir@&$ac_top_builddir_sub&;t t
  33809. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  33810. s&@srcdir@&$ac_srcdir&;t t
  33811. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  33812. s&@top_srcdir@&$ac_top_srcdir&;t t
  33813. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  33814. s&@builddir@&$ac_builddir&;t t
  33815. s&@abs_builddir@&$ac_abs_builddir&;t t
  33816. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  33817. s&@INSTALL@&$ac_INSTALL&;t t
  33818. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  33819. $ac_datarootdir_hack
  33820. "
  33821. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  33822. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  33823. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  33824. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  33825. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  33826. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  33827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  33828. which seems to be undefined. Please make sure it is defined" >&5
  33829. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  33830. which seems to be undefined. Please make sure it is defined" >&2;}
  33831. rm -f "$ac_tmp/stdin"
  33832. case $ac_file in
  33833. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  33834. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  33835. esac \
  33836. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  33837. ;;
  33838. :H)
  33839. #
  33840. # CONFIG_HEADER
  33841. #
  33842. if test x"$ac_file" != x-; then
  33843. {
  33844. $as_echo "/* $configure_input */" \
  33845. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  33846. } >"$ac_tmp/config.h" \
  33847. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  33848. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  33849. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  33850. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  33851. else
  33852. rm -f "$ac_file"
  33853. mv "$ac_tmp/config.h" "$ac_file" \
  33854. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  33855. fi
  33856. else
  33857. $as_echo "/* $configure_input */" \
  33858. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  33859. || as_fn_error $? "could not create -" "$LINENO" 5
  33860. fi
  33861. # Compute "$ac_file"'s index in $config_headers.
  33862. _am_arg="$ac_file"
  33863. _am_stamp_count=1
  33864. for _am_header in $config_headers :; do
  33865. case $_am_header in
  33866. $_am_arg | $_am_arg:* )
  33867. break ;;
  33868. * )
  33869. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  33870. esac
  33871. done
  33872. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  33873. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33874. X"$_am_arg" : 'X\(//\)[^/]' \| \
  33875. X"$_am_arg" : 'X\(//\)$' \| \
  33876. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  33877. $as_echo X"$_am_arg" |
  33878. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33879. s//\1/
  33880. q
  33881. }
  33882. /^X\(\/\/\)[^/].*/{
  33883. s//\1/
  33884. q
  33885. }
  33886. /^X\(\/\/\)$/{
  33887. s//\1/
  33888. q
  33889. }
  33890. /^X\(\/\).*/{
  33891. s//\1/
  33892. q
  33893. }
  33894. s/.*/./; q'`/stamp-h$_am_stamp_count
  33895. ;;
  33896. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  33897. $as_echo "$as_me: executing $ac_file commands" >&6;}
  33898. ;;
  33899. esac
  33900. case $ac_file$ac_mode in
  33901. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  33902. # Older Autoconf quotes --file arguments for eval, but not when files
  33903. # are listed without --file. Let's play safe and only enable the eval
  33904. # if we detect the quoting.
  33905. case $CONFIG_FILES in
  33906. *\'*) eval set x "$CONFIG_FILES" ;;
  33907. *) set x $CONFIG_FILES ;;
  33908. esac
  33909. shift
  33910. for mf
  33911. do
  33912. # Strip MF so we end up with the name of the file.
  33913. mf=`echo "$mf" | sed -e 's/:.*$//'`
  33914. # Check whether this is an Automake generated Makefile or not.
  33915. # We used to match only the files named 'Makefile.in', but
  33916. # some people rename them; so instead we look at the file content.
  33917. # Grep'ing the first line is not enough: some people post-process
  33918. # each Makefile.in and add a new line on top of each file to say so.
  33919. # Grep'ing the whole file is not good either: AIX grep has a line
  33920. # limit of 2048, but all sed's we know have understand at least 4000.
  33921. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  33922. dirpart=`$as_dirname -- "$mf" ||
  33923. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33924. X"$mf" : 'X\(//\)[^/]' \| \
  33925. X"$mf" : 'X\(//\)$' \| \
  33926. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  33927. $as_echo X"$mf" |
  33928. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33929. s//\1/
  33930. q
  33931. }
  33932. /^X\(\/\/\)[^/].*/{
  33933. s//\1/
  33934. q
  33935. }
  33936. /^X\(\/\/\)$/{
  33937. s//\1/
  33938. q
  33939. }
  33940. /^X\(\/\).*/{
  33941. s//\1/
  33942. q
  33943. }
  33944. s/.*/./; q'`
  33945. else
  33946. continue
  33947. fi
  33948. # Extract the definition of DEPDIR, am__include, and am__quote
  33949. # from the Makefile without running 'make'.
  33950. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  33951. test -z "$DEPDIR" && continue
  33952. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  33953. test -z "$am__include" && continue
  33954. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  33955. # Find all dependency output files, they are included files with
  33956. # $(DEPDIR) in their names. We invoke sed twice because it is the
  33957. # simplest approach to changing $(DEPDIR) to its actual value in the
  33958. # expansion.
  33959. for file in `sed -n "
  33960. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  33961. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  33962. # Make sure the directory exists.
  33963. test -f "$dirpart/$file" && continue
  33964. fdir=`$as_dirname -- "$file" ||
  33965. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33966. X"$file" : 'X\(//\)[^/]' \| \
  33967. X"$file" : 'X\(//\)$' \| \
  33968. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  33969. $as_echo X"$file" |
  33970. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33971. s//\1/
  33972. q
  33973. }
  33974. /^X\(\/\/\)[^/].*/{
  33975. s//\1/
  33976. q
  33977. }
  33978. /^X\(\/\/\)$/{
  33979. s//\1/
  33980. q
  33981. }
  33982. /^X\(\/\).*/{
  33983. s//\1/
  33984. q
  33985. }
  33986. s/.*/./; q'`
  33987. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  33988. # echo "creating $dirpart/$file"
  33989. echo '# dummy' > "$dirpart/$file"
  33990. done
  33991. done
  33992. }
  33993. ;;
  33994. "libtool":C)
  33995. # See if we are running on zsh, and set the options which allow our
  33996. # commands through without removal of \ escapes.
  33997. if test -n "${ZSH_VERSION+set}" ; then
  33998. setopt NO_GLOB_SUBST
  33999. fi
  34000. cfgfile="${ofile}T"
  34001. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  34002. $RM "$cfgfile"
  34003. cat <<_LT_EOF >> "$cfgfile"
  34004. #! $SHELL
  34005. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  34006. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  34007. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34008. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  34009. #
  34010. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  34011. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  34012. # Foundation, Inc.
  34013. # Written by Gordon Matzigkeit, 1996
  34014. #
  34015. # This file is part of GNU Libtool.
  34016. #
  34017. # GNU Libtool is free software; you can redistribute it and/or
  34018. # modify it under the terms of the GNU General Public License as
  34019. # published by the Free Software Foundation; either version 2 of
  34020. # the License, or (at your option) any later version.
  34021. #
  34022. # As a special exception to the GNU General Public License,
  34023. # if you distribute this file as part of a program or library that
  34024. # is built using GNU Libtool, you may include this file under the
  34025. # same distribution terms that you use for the rest of that program.
  34026. #
  34027. # GNU Libtool is distributed in the hope that it will be useful,
  34028. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  34029. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  34030. # GNU General Public License for more details.
  34031. #
  34032. # You should have received a copy of the GNU General Public License
  34033. # along with GNU Libtool; see the file COPYING. If not, a copy
  34034. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  34035. # obtained by writing to the Free Software Foundation, Inc.,
  34036. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  34037. # The names of the tagged configurations supported by this script.
  34038. available_tags=""
  34039. # ### BEGIN LIBTOOL CONFIG
  34040. # Which release of libtool.m4 was used?
  34041. macro_version=$macro_version
  34042. macro_revision=$macro_revision
  34043. # Assembler program.
  34044. AS=$lt_AS
  34045. # DLL creation program.
  34046. DLLTOOL=$lt_DLLTOOL
  34047. # Object dumper program.
  34048. OBJDUMP=$lt_OBJDUMP
  34049. # Whether or not to build shared libraries.
  34050. build_libtool_libs=$enable_shared
  34051. # Whether or not to build static libraries.
  34052. build_old_libs=$enable_static
  34053. # What type of objects to build.
  34054. pic_mode=$pic_mode
  34055. # Whether or not to optimize for fast installation.
  34056. fast_install=$enable_fast_install
  34057. # Shell to use when invoking shell scripts.
  34058. SHELL=$lt_SHELL
  34059. # An echo program that protects backslashes.
  34060. ECHO=$lt_ECHO
  34061. # The PATH separator for the build system.
  34062. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  34063. # The host system.
  34064. host_alias=$host_alias
  34065. host=$host
  34066. host_os=$host_os
  34067. # The build system.
  34068. build_alias=$build_alias
  34069. build=$build
  34070. build_os=$build_os
  34071. # A sed program that does not truncate output.
  34072. SED=$lt_SED
  34073. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  34074. Xsed="\$SED -e 1s/^X//"
  34075. # A grep program that handles long lines.
  34076. GREP=$lt_GREP
  34077. # An ERE matcher.
  34078. EGREP=$lt_EGREP
  34079. # A literal string matcher.
  34080. FGREP=$lt_FGREP
  34081. # A BSD- or MS-compatible name lister.
  34082. NM=$lt_NM
  34083. # Whether we need soft or hard links.
  34084. LN_S=$lt_LN_S
  34085. # What is the maximum length of a command?
  34086. max_cmd_len=$max_cmd_len
  34087. # Object file suffix (normally "o").
  34088. objext=$ac_objext
  34089. # Executable file suffix (normally "").
  34090. exeext=$exeext
  34091. # whether the shell understands "unset".
  34092. lt_unset=$lt_unset
  34093. # turn spaces into newlines.
  34094. SP2NL=$lt_lt_SP2NL
  34095. # turn newlines into spaces.
  34096. NL2SP=$lt_lt_NL2SP
  34097. # convert \$build file names to \$host format.
  34098. to_host_file_cmd=$lt_cv_to_host_file_cmd
  34099. # convert \$build files to toolchain format.
  34100. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  34101. # Method to check whether dependent libraries are shared objects.
  34102. deplibs_check_method=$lt_deplibs_check_method
  34103. # Command to use when deplibs_check_method = "file_magic".
  34104. file_magic_cmd=$lt_file_magic_cmd
  34105. # How to find potential files when deplibs_check_method = "file_magic".
  34106. file_magic_glob=$lt_file_magic_glob
  34107. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  34108. want_nocaseglob=$lt_want_nocaseglob
  34109. # Command to associate shared and link libraries.
  34110. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  34111. # The archiver.
  34112. AR=$lt_AR
  34113. # Flags to create an archive.
  34114. AR_FLAGS=$lt_AR_FLAGS
  34115. # How to feed a file listing to the archiver.
  34116. archiver_list_spec=$lt_archiver_list_spec
  34117. # A symbol stripping program.
  34118. STRIP=$lt_STRIP
  34119. # Commands used to install an old-style archive.
  34120. RANLIB=$lt_RANLIB
  34121. old_postinstall_cmds=$lt_old_postinstall_cmds
  34122. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  34123. # Whether to use a lock for old archive extraction.
  34124. lock_old_archive_extraction=$lock_old_archive_extraction
  34125. # A C compiler.
  34126. LTCC=$lt_CC
  34127. # LTCC compiler flags.
  34128. LTCFLAGS=$lt_CFLAGS
  34129. # Take the output of nm and produce a listing of raw symbols and C names.
  34130. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  34131. # Transform the output of nm in a proper C declaration.
  34132. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  34133. # Transform the output of nm in a C name address pair.
  34134. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  34135. # Transform the output of nm in a C name address pair when lib prefix is needed.
  34136. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  34137. # Specify filename containing input files for \$NM.
  34138. nm_file_list_spec=$lt_nm_file_list_spec
  34139. # The root where to search for dependent libraries,and in which our libraries should be installed.
  34140. lt_sysroot=$lt_sysroot
  34141. # The name of the directory that contains temporary libtool files.
  34142. objdir=$objdir
  34143. # Used to examine libraries when file_magic_cmd begins with "file".
  34144. MAGIC_CMD=$MAGIC_CMD
  34145. # Must we lock files when doing compilation?
  34146. need_locks=$lt_need_locks
  34147. # Manifest tool.
  34148. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  34149. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  34150. DSYMUTIL=$lt_DSYMUTIL
  34151. # Tool to change global to local symbols on Mac OS X.
  34152. NMEDIT=$lt_NMEDIT
  34153. # Tool to manipulate fat objects and archives on Mac OS X.
  34154. LIPO=$lt_LIPO
  34155. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  34156. OTOOL=$lt_OTOOL
  34157. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  34158. OTOOL64=$lt_OTOOL64
  34159. # Old archive suffix (normally "a").
  34160. libext=$libext
  34161. # Shared library suffix (normally ".so").
  34162. shrext_cmds=$lt_shrext_cmds
  34163. # The commands to extract the exported symbol list from a shared archive.
  34164. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  34165. # Variables whose values should be saved in libtool wrapper scripts and
  34166. # restored at link time.
  34167. variables_saved_for_relink=$lt_variables_saved_for_relink
  34168. # Do we need the "lib" prefix for modules?
  34169. need_lib_prefix=$need_lib_prefix
  34170. # Do we need a version for libraries?
  34171. need_version=$need_version
  34172. # Library versioning type.
  34173. version_type=$version_type
  34174. # Shared library runtime path variable.
  34175. runpath_var=$runpath_var
  34176. # Shared library path variable.
  34177. shlibpath_var=$shlibpath_var
  34178. # Is shlibpath searched before the hard-coded library search path?
  34179. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  34180. # Format of library name prefix.
  34181. libname_spec=$lt_libname_spec
  34182. # List of archive names. First name is the real one, the rest are links.
  34183. # The last name is the one that the linker finds with -lNAME
  34184. library_names_spec=$lt_library_names_spec
  34185. # The coded name of the library, if different from the real name.
  34186. soname_spec=$lt_soname_spec
  34187. # Permission mode override for installation of shared libraries.
  34188. install_override_mode=$lt_install_override_mode
  34189. # Command to use after installation of a shared archive.
  34190. postinstall_cmds=$lt_postinstall_cmds
  34191. # Command to use after uninstallation of a shared archive.
  34192. postuninstall_cmds=$lt_postuninstall_cmds
  34193. # Commands used to finish a libtool library installation in a directory.
  34194. finish_cmds=$lt_finish_cmds
  34195. # As "finish_cmds", except a single script fragment to be evaled but
  34196. # not shown.
  34197. finish_eval=$lt_finish_eval
  34198. # Whether we should hardcode library paths into libraries.
  34199. hardcode_into_libs=$hardcode_into_libs
  34200. # Compile-time system search path for libraries.
  34201. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  34202. # Run-time system search path for libraries.
  34203. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  34204. # Whether dlopen is supported.
  34205. dlopen_support=$enable_dlopen
  34206. # Whether dlopen of programs is supported.
  34207. dlopen_self=$enable_dlopen_self
  34208. # Whether dlopen of statically linked programs is supported.
  34209. dlopen_self_static=$enable_dlopen_self_static
  34210. # Commands to strip libraries.
  34211. old_striplib=$lt_old_striplib
  34212. striplib=$lt_striplib
  34213. # The linker used to build libraries.
  34214. LD=$lt_LD
  34215. # How to create reloadable object files.
  34216. reload_flag=$lt_reload_flag
  34217. reload_cmds=$lt_reload_cmds
  34218. # Commands used to build an old-style archive.
  34219. old_archive_cmds=$lt_old_archive_cmds
  34220. # A language specific compiler.
  34221. CC=$lt_compiler
  34222. # Is the compiler the GNU compiler?
  34223. with_gcc=$GCC
  34224. # Compiler flag to turn off builtin functions.
  34225. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  34226. # Additional compiler flags for building library objects.
  34227. pic_flag=$lt_lt_prog_compiler_pic
  34228. # How to pass a linker flag through the compiler.
  34229. wl=$lt_lt_prog_compiler_wl
  34230. # Compiler flag to prevent dynamic linking.
  34231. link_static_flag=$lt_lt_prog_compiler_static
  34232. # Does compiler simultaneously support -c and -o options?
  34233. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  34234. # Whether or not to add -lc for building shared libraries.
  34235. build_libtool_need_lc=$archive_cmds_need_lc
  34236. # Whether or not to disallow shared libs when runtime libs are static.
  34237. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  34238. # Compiler flag to allow reflexive dlopens.
  34239. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  34240. # Compiler flag to generate shared objects directly from archives.
  34241. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  34242. # Whether the compiler copes with passing no objects directly.
  34243. compiler_needs_object=$lt_compiler_needs_object
  34244. # Create an old-style archive from a shared archive.
  34245. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  34246. # Create a temporary old-style archive to link instead of a shared archive.
  34247. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  34248. # Commands used to build a shared archive.
  34249. archive_cmds=$lt_archive_cmds
  34250. archive_expsym_cmds=$lt_archive_expsym_cmds
  34251. # Commands used to build a loadable module if different from building
  34252. # a shared archive.
  34253. module_cmds=$lt_module_cmds
  34254. module_expsym_cmds=$lt_module_expsym_cmds
  34255. # Whether we are building with GNU ld or not.
  34256. with_gnu_ld=$lt_with_gnu_ld
  34257. # Flag that allows shared libraries with undefined symbols to be built.
  34258. allow_undefined_flag=$lt_allow_undefined_flag
  34259. # Flag that enforces no undefined symbols.
  34260. no_undefined_flag=$lt_no_undefined_flag
  34261. # Flag to hardcode \$libdir into a binary during linking.
  34262. # This must work even if \$libdir does not exist
  34263. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  34264. # Whether we need a single "-rpath" flag with a separated argument.
  34265. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  34266. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  34267. # DIR into the resulting binary.
  34268. hardcode_direct=$hardcode_direct
  34269. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  34270. # DIR into the resulting binary and the resulting library dependency is
  34271. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  34272. # library is relocated.
  34273. hardcode_direct_absolute=$hardcode_direct_absolute
  34274. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  34275. # into the resulting binary.
  34276. hardcode_minus_L=$hardcode_minus_L
  34277. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  34278. # into the resulting binary.
  34279. hardcode_shlibpath_var=$hardcode_shlibpath_var
  34280. # Set to "yes" if building a shared library automatically hardcodes DIR
  34281. # into the library and all subsequent libraries and executables linked
  34282. # against it.
  34283. hardcode_automatic=$hardcode_automatic
  34284. # Set to yes if linker adds runtime paths of dependent libraries
  34285. # to runtime path list.
  34286. inherit_rpath=$inherit_rpath
  34287. # Whether libtool must link a program against all its dependency libraries.
  34288. link_all_deplibs=$link_all_deplibs
  34289. # Set to "yes" if exported symbols are required.
  34290. always_export_symbols=$always_export_symbols
  34291. # The commands to list exported symbols.
  34292. export_symbols_cmds=$lt_export_symbols_cmds
  34293. # Symbols that should not be listed in the preloaded symbols.
  34294. exclude_expsyms=$lt_exclude_expsyms
  34295. # Symbols that must always be exported.
  34296. include_expsyms=$lt_include_expsyms
  34297. # Commands necessary for linking programs (against libraries) with templates.
  34298. prelink_cmds=$lt_prelink_cmds
  34299. # Commands necessary for finishing linking programs.
  34300. postlink_cmds=$lt_postlink_cmds
  34301. # Specify filename containing input files.
  34302. file_list_spec=$lt_file_list_spec
  34303. # How to hardcode a shared library path into an executable.
  34304. hardcode_action=$hardcode_action
  34305. # ### END LIBTOOL CONFIG
  34306. _LT_EOF
  34307. case $host_os in
  34308. aix3*)
  34309. cat <<\_LT_EOF >> "$cfgfile"
  34310. # AIX sometimes has problems with the GCC collect2 program. For some
  34311. # reason, if we set the COLLECT_NAMES environment variable, the problems
  34312. # vanish in a puff of smoke.
  34313. if test "X${COLLECT_NAMES+set}" != Xset; then
  34314. COLLECT_NAMES=
  34315. export COLLECT_NAMES
  34316. fi
  34317. _LT_EOF
  34318. ;;
  34319. esac
  34320. ltmain="$ac_aux_dir/ltmain.sh"
  34321. # We use sed instead of cat because bash on DJGPP gets confused if
  34322. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  34323. # text mode, it properly converts lines to CR/LF. This bash problem
  34324. # is reportedly fixed, but why not run on old versions too?
  34325. sed '$q' "$ltmain" >> "$cfgfile" \
  34326. || (rm -f "$cfgfile"; exit 1)
  34327. if test x"$xsi_shell" = xyes; then
  34328. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  34329. func_dirname ()\
  34330. {\
  34331. \ case ${1} in\
  34332. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  34333. \ * ) func_dirname_result="${3}" ;;\
  34334. \ esac\
  34335. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  34336. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34337. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34338. test 0 -eq $? || _lt_function_replace_fail=:
  34339. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  34340. func_basename ()\
  34341. {\
  34342. \ func_basename_result="${1##*/}"\
  34343. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  34344. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34345. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34346. test 0 -eq $? || _lt_function_replace_fail=:
  34347. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  34348. func_dirname_and_basename ()\
  34349. {\
  34350. \ case ${1} in\
  34351. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  34352. \ * ) func_dirname_result="${3}" ;;\
  34353. \ esac\
  34354. \ func_basename_result="${1##*/}"\
  34355. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  34356. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34357. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34358. test 0 -eq $? || _lt_function_replace_fail=:
  34359. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  34360. func_stripname ()\
  34361. {\
  34362. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  34363. \ # positional parameters, so assign one to ordinary parameter first.\
  34364. \ func_stripname_result=${3}\
  34365. \ func_stripname_result=${func_stripname_result#"${1}"}\
  34366. \ func_stripname_result=${func_stripname_result%"${2}"}\
  34367. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  34368. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34369. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34370. test 0 -eq $? || _lt_function_replace_fail=:
  34371. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  34372. func_split_long_opt ()\
  34373. {\
  34374. \ func_split_long_opt_name=${1%%=*}\
  34375. \ func_split_long_opt_arg=${1#*=}\
  34376. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  34377. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34378. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34379. test 0 -eq $? || _lt_function_replace_fail=:
  34380. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  34381. func_split_short_opt ()\
  34382. {\
  34383. \ func_split_short_opt_arg=${1#??}\
  34384. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  34385. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  34386. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34387. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34388. test 0 -eq $? || _lt_function_replace_fail=:
  34389. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  34390. func_lo2o ()\
  34391. {\
  34392. \ case ${1} in\
  34393. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  34394. \ *) func_lo2o_result=${1} ;;\
  34395. \ esac\
  34396. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  34397. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34398. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34399. test 0 -eq $? || _lt_function_replace_fail=:
  34400. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  34401. func_xform ()\
  34402. {\
  34403. func_xform_result=${1%.*}.lo\
  34404. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  34405. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34406. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34407. test 0 -eq $? || _lt_function_replace_fail=:
  34408. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  34409. func_arith ()\
  34410. {\
  34411. func_arith_result=$(( $* ))\
  34412. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  34413. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34414. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34415. test 0 -eq $? || _lt_function_replace_fail=:
  34416. sed -e '/^func_len ()$/,/^} # func_len /c\
  34417. func_len ()\
  34418. {\
  34419. func_len_result=${#1}\
  34420. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  34421. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34422. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34423. test 0 -eq $? || _lt_function_replace_fail=:
  34424. fi
  34425. if test x"$lt_shell_append" = xyes; then
  34426. sed -e '/^func_append ()$/,/^} # func_append /c\
  34427. func_append ()\
  34428. {\
  34429. eval "${1}+=\\${2}"\
  34430. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  34431. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34432. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34433. test 0 -eq $? || _lt_function_replace_fail=:
  34434. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  34435. func_append_quoted ()\
  34436. {\
  34437. \ func_quote_for_eval "${2}"\
  34438. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  34439. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  34440. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34441. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34442. test 0 -eq $? || _lt_function_replace_fail=:
  34443. # Save a `func_append' function call where possible by direct use of '+='
  34444. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  34445. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34446. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34447. test 0 -eq $? || _lt_function_replace_fail=:
  34448. else
  34449. # Save a `func_append' function call even when '+=' is not available
  34450. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  34451. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34452. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34453. test 0 -eq $? || _lt_function_replace_fail=:
  34454. fi
  34455. if test x"$_lt_function_replace_fail" = x":"; then
  34456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  34457. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  34458. fi
  34459. mv -f "$cfgfile" "$ofile" ||
  34460. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  34461. chmod +x "$ofile"
  34462. ;;
  34463. esac
  34464. done # for ac_tag
  34465. as_fn_exit 0
  34466. _ACEOF
  34467. ac_clean_files=$ac_clean_files_save
  34468. test $ac_write_fail = 0 ||
  34469. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  34470. # configure is writing to config.log, and then calls config.status.
  34471. # config.status does its own redirection, appending to config.log.
  34472. # Unfortunately, on DOS this fails, as config.log is still kept open
  34473. # by configure, so config.status won't be able to write to it; its
  34474. # output is simply discarded. So we exec the FD to /dev/null,
  34475. # effectively closing config.log, so it can be properly (re)opened and
  34476. # appended to by config.status. When coming back to configure, we
  34477. # need to make the FD available again.
  34478. if test "$no_create" != yes; then
  34479. ac_cs_success=:
  34480. ac_config_status_args=
  34481. test "$silent" = yes &&
  34482. ac_config_status_args="$ac_config_status_args --quiet"
  34483. exec 5>/dev/null
  34484. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  34485. exec 5>>config.log
  34486. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  34487. # would make configure fail if this is the last instruction.
  34488. $ac_cs_success || as_fn_exit 1
  34489. fi
  34490. #
  34491. # CONFIG_SUBDIRS section.
  34492. #
  34493. if test "$no_recursion" != yes; then
  34494. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  34495. # so they do not pile up.
  34496. ac_sub_configure_args=
  34497. ac_prev=
  34498. eval "set x $ac_configure_args"
  34499. shift
  34500. for ac_arg
  34501. do
  34502. if test -n "$ac_prev"; then
  34503. ac_prev=
  34504. continue
  34505. fi
  34506. case $ac_arg in
  34507. -cache-file | --cache-file | --cache-fil | --cache-fi \
  34508. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  34509. ac_prev=cache_file ;;
  34510. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  34511. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  34512. | --c=*)
  34513. ;;
  34514. --config-cache | -C)
  34515. ;;
  34516. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  34517. ac_prev=srcdir ;;
  34518. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  34519. ;;
  34520. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  34521. ac_prev=prefix ;;
  34522. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  34523. ;;
  34524. --disable-option-checking)
  34525. ;;
  34526. *)
  34527. case $ac_arg in
  34528. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  34529. esac
  34530. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  34531. esac
  34532. done
  34533. # Always prepend --prefix to ensure using the same prefix
  34534. # in subdir configurations.
  34535. ac_arg="--prefix=$prefix"
  34536. case $ac_arg in
  34537. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  34538. esac
  34539. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  34540. # Pass --silent
  34541. if test "$silent" = yes; then
  34542. ac_sub_configure_args="--silent $ac_sub_configure_args"
  34543. fi
  34544. # Always prepend --disable-option-checking to silence warnings, since
  34545. # different subdirs can have different --enable and --with options.
  34546. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  34547. ac_popdir=`pwd`
  34548. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  34549. # Do not complain, so a configure script can configure whichever
  34550. # parts of a large source tree are present.
  34551. test -d "$srcdir/$ac_dir" || continue
  34552. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  34553. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  34554. $as_echo "$ac_msg" >&6
  34555. as_dir="$ac_dir"; as_fn_mkdir_p
  34556. ac_builddir=.
  34557. case "$ac_dir" in
  34558. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  34559. *)
  34560. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  34561. # A ".." for each directory in $ac_dir_suffix.
  34562. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  34563. case $ac_top_builddir_sub in
  34564. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  34565. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  34566. esac ;;
  34567. esac
  34568. ac_abs_top_builddir=$ac_pwd
  34569. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  34570. # for backward compatibility:
  34571. ac_top_builddir=$ac_top_build_prefix
  34572. case $srcdir in
  34573. .) # We are building in place.
  34574. ac_srcdir=.
  34575. ac_top_srcdir=$ac_top_builddir_sub
  34576. ac_abs_top_srcdir=$ac_pwd ;;
  34577. [\\/]* | ?:[\\/]* ) # Absolute name.
  34578. ac_srcdir=$srcdir$ac_dir_suffix;
  34579. ac_top_srcdir=$srcdir
  34580. ac_abs_top_srcdir=$srcdir ;;
  34581. *) # Relative name.
  34582. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  34583. ac_top_srcdir=$ac_top_build_prefix$srcdir
  34584. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  34585. esac
  34586. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  34587. cd "$ac_dir"
  34588. # Check for guested configure; otherwise get Cygnus style configure.
  34589. if test -f "$ac_srcdir/configure.gnu"; then
  34590. ac_sub_configure=$ac_srcdir/configure.gnu
  34591. elif test -f "$ac_srcdir/configure"; then
  34592. ac_sub_configure=$ac_srcdir/configure
  34593. elif test -f "$ac_srcdir/configure.in"; then
  34594. # This should be Cygnus configure.
  34595. ac_sub_configure=$ac_aux_dir/configure
  34596. else
  34597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  34598. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  34599. ac_sub_configure=
  34600. fi
  34601. # The recursion is here.
  34602. if test -n "$ac_sub_configure"; then
  34603. # Make the cache file name correct relative to the subdirectory.
  34604. case $cache_file in
  34605. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  34606. *) # Relative name.
  34607. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  34608. esac
  34609. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  34610. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  34611. # The eval makes quoting arguments work.
  34612. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  34613. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  34614. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  34615. fi
  34616. cd "$ac_popdir"
  34617. done
  34618. fi
  34619. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  34620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  34621. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  34622. fi
  34623. tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
  34624. if test -z "$tmp_cpp"; then
  34625. tmp_cpp='cpp'
  34626. fi
  34627. cat >./tests/configurehelp.pm <<_EOF
  34628. # This is a generated file. Do not edit.
  34629. package configurehelp;
  34630. use strict;
  34631. use warnings;
  34632. use Exporter;
  34633. use vars qw(
  34634. @ISA
  34635. @EXPORT_OK
  34636. \$Cpreprocessor
  34637. );
  34638. @ISA = qw(Exporter);
  34639. @EXPORT_OK = qw(
  34640. \$Cpreprocessor
  34641. );
  34642. \$Cpreprocessor = '$tmp_cpp';
  34643. 1;
  34644. _EOF
  34645. { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
  34646. curl version: ${CURLVERSION}
  34647. Host setup: ${host}
  34648. Install prefix: ${prefix}
  34649. Compiler: ${CC}
  34650. SSL support: ${curl_ssl_msg}
  34651. SSH support: ${curl_ssh_msg}
  34652. zlib support: ${curl_zlib_msg}
  34653. krb4 support: ${curl_krb4_msg}
  34654. GSSAPI support: ${curl_gss_msg}
  34655. SPNEGO support: ${curl_spnego_msg}
  34656. TLS-SRP support: ${curl_tls_srp_msg}
  34657. resolver: ${curl_res_msg}
  34658. ipv6 support: ${curl_ipv6_msg}
  34659. IDN support: ${curl_idn_msg}
  34660. Build libcurl: Shared=${enable_shared}, Static=${enable_static}
  34661. Built-in manual: ${curl_manual_msg}
  34662. --libcurl option: ${curl_libcurl_msg}
  34663. Verbose errors: ${curl_verbose_msg}
  34664. SSPI support: ${curl_sspi_msg}
  34665. ca cert bundle: ${ca}
  34666. ca cert path: ${capath}
  34667. LDAP support: ${curl_ldap_msg}
  34668. LDAPS support: ${curl_ldaps_msg}
  34669. RTSP support: ${curl_rtsp_msg}
  34670. RTMP support: ${curl_rtmp_msg}
  34671. metalink support: ${curl_mtlnk_msg}
  34672. Protocols: ${SUPPORT_PROTOCOLS}
  34673. " >&5
  34674. $as_echo "$as_me: Configured to build curl/libcurl:
  34675. curl version: ${CURLVERSION}
  34676. Host setup: ${host}
  34677. Install prefix: ${prefix}
  34678. Compiler: ${CC}
  34679. SSL support: ${curl_ssl_msg}
  34680. SSH support: ${curl_ssh_msg}
  34681. zlib support: ${curl_zlib_msg}
  34682. krb4 support: ${curl_krb4_msg}
  34683. GSSAPI support: ${curl_gss_msg}
  34684. SPNEGO support: ${curl_spnego_msg}
  34685. TLS-SRP support: ${curl_tls_srp_msg}
  34686. resolver: ${curl_res_msg}
  34687. ipv6 support: ${curl_ipv6_msg}
  34688. IDN support: ${curl_idn_msg}
  34689. Build libcurl: Shared=${enable_shared}, Static=${enable_static}
  34690. Built-in manual: ${curl_manual_msg}
  34691. --libcurl option: ${curl_libcurl_msg}
  34692. Verbose errors: ${curl_verbose_msg}
  34693. SSPI support: ${curl_sspi_msg}
  34694. ca cert bundle: ${ca}
  34695. ca cert path: ${capath}
  34696. LDAP support: ${curl_ldap_msg}
  34697. LDAPS support: ${curl_ldaps_msg}
  34698. RTSP support: ${curl_rtsp_msg}
  34699. RTMP support: ${curl_rtmp_msg}
  34700. metalink support: ${curl_mtlnk_msg}
  34701. Protocols: ${SUPPORT_PROTOCOLS}
  34702. " >&6;}
  34703. if test "x$soname_bump" = "xyes"; then
  34704. cat <<EOM
  34705. SONAME bump: yes - WARNING: this library will be built with the SONAME
  34706. number bumped due to (a detected) ABI breakage.
  34707. See lib/README.curl_off_t for details on this.
  34708. EOM
  34709. fi