1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for libevent 2.1.12-stable. 4 # 5 # 6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 7 # Inc. 8 # 9 # 10 # This configure script is free software; the Free Software Foundation 11 # gives unlimited permission to copy, distribute and modify it. 12 ## -------------------- ## 13 ## M4sh Initialization. ## 14 ## -------------------- ## 15 16 # Be more Bourne compatible 17 DUALCASE=1; export DUALCASE # for MKS sh 18 as_nop=: 19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20 then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27 else $as_nop 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33 esac 34 fi 35 36 37 38 # Reset variables that may have inherited troublesome values from 39 # the environment. 40 41 # IFS needs to be set, to space, tab, and newline, in precisely that order. 42 # (If _AS_PATH_WALK were called with IFS unset, it would have the 43 # side effect of setting IFS to empty, thus disabling word splitting.) 44 # Quoting is to prevent editors from complaining about space-tab. 45 as_nl=' 46 ' 47 export as_nl 48 IFS=" "" $as_nl" 49 50 PS1='$ ' 51 PS2='> ' 52 PS4='+ ' 53 54 # Ensure predictable behavior from utilities with locale-dependent output. 55 LC_ALL=C 56 export LC_ALL 57 LANGUAGE=C 58 export LANGUAGE 59 60 # We cannot yet rely on "unset" to work, but we need these variables 61 # to be unset--not just set to an empty or harmless value--now, to 62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 63 # also avoids known problems related to "unset" and subshell syntax 64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 66 do eval test \${$as_var+y} \ 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 68 done 69 70 # Ensure that fds 0, 1, and 2 are open. 71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 74 75 # The user is always right. 76 if ${PATH_SEPARATOR+false} :; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82 fi 83 84 85 # Find who we are. Look in the path if we contain no directory separator. 86 as_myself= 87 case $0 in #(( 88 *[\\/]* ) as_myself=$0 ;; 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 90 for as_dir in $PATH 91 do 92 IFS=$as_save_IFS 93 case $as_dir in #((( 94 '') as_dir=./ ;; 95 */) ;; 96 *) as_dir=$as_dir/ ;; 97 esac 98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 99 done 100 IFS=$as_save_IFS 101 102 ;; 103 esac 104 # We did not find ourselves, most probably we were run as `sh COMMAND' 105 # in which case we are not to be found in the path. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if test ! -f "$as_myself"; then 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112 fi 113 114 115 # Use a proper internal environment variable to ensure we don't fall 116 # into an infinite loop, continuously re-executing ourselves. 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 118 _as_can_reexec=no; export _as_can_reexec; 119 # We cannot yet assume a decent shell, so we have to provide a 120 # neutralization value for shells without unset; and this also 121 # works around shells that cannot unset nonexistent variables. 122 # Preserve -v and -x to the replacement shell. 123 BASH_ENV=/dev/null 124 ENV=/dev/null 125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 126 case $- in # (((( 127 *v*x* | *x*v* ) as_opts=-vx ;; 128 *v* ) as_opts=-v ;; 129 *x* ) as_opts=-x ;; 130 * ) as_opts= ;; 131 esac 132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 133 # Admittedly, this is quite paranoid, since all the known shells bail 134 # out after a failed `exec'. 135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 136 exit 255 137 fi 138 # We don't want this to propagate to other subprocesses. 139 { _as_can_reexec=; unset _as_can_reexec;} 140 if test "x$CONFIG_SHELL" = x; then 141 as_bourne_compatible="as_nop=: 142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 143 then : 144 emulate sh 145 NULLCMD=: 146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 147 # is contrary to our usage. Disable this feature. 148 alias -g '\${1+\"\$@\"}'='\"\$@\"' 149 setopt NO_GLOB_SUBST 150 else \$as_nop 151 case \`(set -o) 2>/dev/null\` in #( 152 *posix*) : 153 set -o posix ;; #( 154 *) : 155 ;; 156 esac 157 fi 158 " 159 as_required="as_fn_return () { (exit \$1); } 160 as_fn_success () { as_fn_return 0; } 161 as_fn_failure () { as_fn_return 1; } 162 as_fn_ret_success () { return 0; } 163 as_fn_ret_failure () { return 1; } 164 165 exitcode=0 166 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 170 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 171 then : 172 173 else \$as_nop 174 exitcode=1; echo positional parameters were not saved. 175 fi 176 test x\$exitcode = x0 || exit 1 177 blah=\$(echo \$(echo blah)) 178 test x\"\$blah\" = xblah || exit 1 179 test -x / || exit 1" 180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 184 test \$(( 1 + 1 )) = 2 || exit 1 185 186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 PATH=/empty FPATH=/empty; export PATH FPATH 191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 193 if (eval "$as_required") 2>/dev/null 194 then : 195 as_have_required=yes 196 else $as_nop 197 as_have_required=no 198 fi 199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 200 then : 201 202 else $as_nop 203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 204 as_found=false 205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 206 do 207 IFS=$as_save_IFS 208 case $as_dir in #((( 209 '') as_dir=./ ;; 210 */) ;; 211 *) as_dir=$as_dir/ ;; 212 esac 213 as_found=: 214 case $as_dir in #( 215 /*) 216 for as_base in sh bash ksh sh5; do 217 # Try only shells that exist, to save several forks. 218 as_shell=$as_dir$as_base 219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 221 then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 224 then : 225 break 2 226 fi 227 fi 228 done;; 229 esac 230 as_found=false 231 done 232 IFS=$as_save_IFS 233 if $as_found 234 then : 235 236 else $as_nop 237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 239 then : 240 CONFIG_SHELL=$SHELL as_have_required=yes 241 fi 242 fi 243 244 245 if test "x$CONFIG_SHELL" != x 246 then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno 269 then : 270 printf "%s\n" "$0: This script requires a shell more modern than all" 271 printf "%s\n" "$0: the shells that I found on your system." 272 if test ${ZSH_VERSION+y} ; then 273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 275 else 276 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org about your system, 277 $0: including any error possibly output before this 278 $0: message. Then install a modern shell, or manually run 279 $0: the script under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 304 # as_fn_set_status STATUS 305 # ----------------------- 306 # Set $? to STATUS, without forking. 307 as_fn_set_status () 308 { 309 return $1 310 } # as_fn_set_status 311 312 # as_fn_exit STATUS 313 # ----------------- 314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315 as_fn_exit () 316 { 317 set +e 318 as_fn_set_status $1 319 exit $1 320 } # as_fn_exit 321 # as_fn_nop 322 # --------- 323 # Do nothing but, unlike ":", preserve the value of $?. 324 as_fn_nop () 325 { 326 return $? 327 } 328 as_nop=as_fn_nop 329 330 # as_fn_mkdir_p 331 # ------------- 332 # Create "$as_dir" as a directory, including parents if necessary. 333 as_fn_mkdir_p () 334 { 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352 printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376 } # as_fn_mkdir_p 377 378 # as_fn_executable_p FILE 379 # ----------------------- 380 # Test if FILE is an executable regular file. 381 as_fn_executable_p () 382 { 383 test -f "$1" && test -x "$1" 384 } # as_fn_executable_p 385 # as_fn_append VAR VALUE 386 # ---------------------- 387 # Append the text in VALUE to the end of the definition contained in VAR. Take 388 # advantage of any shell optimizations that allow amortized linear growth over 389 # repeated appends, instead of the typical quadratic growth present in naive 390 # implementations. 391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392 then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397 else $as_nop 398 as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } 402 fi # as_fn_append 403 404 # as_fn_arith ARG... 405 # ------------------ 406 # Perform arithmetic evaluation on the ARGs, and store the result in the 407 # global $as_val. Take advantage of shells that can avoid forks. The arguments 408 # must be portable across $(()) and expr. 409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 410 then : 411 eval 'as_fn_arith () 412 { 413 as_val=$(( $* )) 414 }' 415 else $as_nop 416 as_fn_arith () 417 { 418 as_val=`expr "$@" || test $? -eq 1` 419 } 420 fi # as_fn_arith 421 422 # as_fn_nop 423 # --------- 424 # Do nothing but, unlike ":", preserve the value of $?. 425 as_fn_nop () 426 { 427 return $? 428 } 429 as_nop=as_fn_nop 430 431 # as_fn_error STATUS ERROR [LINENO LOG_FD] 432 # ---------------------------------------- 433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 435 # script with STATUS, using 1 if that was 0. 436 as_fn_error () 437 { 438 as_status=$1; test $as_status -eq 0 && as_status=1 439 if test "$4"; then 440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 442 fi 443 printf "%s\n" "$as_me: error: $2" >&2 444 as_fn_exit $as_status 445 } # as_fn_error 446 447 if expr a : '\(a\)' >/dev/null 2>&1 && 448 test "X`expr 00001 : '.*\(...\)'`" = X001; then 449 as_expr=expr 450 else 451 as_expr=false 452 fi 453 454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 455 as_basename=basename 456 else 457 as_basename=false 458 fi 459 460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 461 as_dirname=dirname 462 else 463 as_dirname=false 464 fi 465 466 as_me=`$as_basename -- "$0" || 467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 468 X"$0" : 'X\(//\)$' \| \ 469 X"$0" : 'X\(/\)' \| . 2>/dev/null || 470 printf "%s\n" X/"$0" | 471 sed '/^.*\/\([^/][^/]*\)\/*$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\/\)$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\).*/{ 480 s//\1/ 481 q 482 } 483 s/.*/./; q'` 484 485 # Avoid depending upon Character Ranges. 486 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 489 as_cr_digits='0123456789' 490 as_cr_alnum=$as_cr_Letters$as_cr_digits 491 492 493 as_lineno_1=$LINENO as_lineno_1a=$LINENO 494 as_lineno_2=$LINENO as_lineno_2a=$LINENO 495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 498 sed -n ' 499 p 500 /[$]LINENO/= 501 ' <$as_myself | 502 sed ' 503 s/[$]LINENO.*/&-/ 504 t lineno 505 b 506 :lineno 507 N 508 :loop 509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 510 t loop 511 s/-\n.*// 512 ' >$as_me.lineno && 513 chmod +x "$as_me.lineno" || 514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 515 516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 517 # already done that, so ensure we don't try to do so again and fall 518 # in an infinite loop. This has already happened in practice. 519 _as_can_reexec=no; export _as_can_reexec 520 # Don't try to exec as it changes $[0], causing all sort of problems 521 # (the dirname of $[0] is not the place where we might find the 522 # original and so on. Autoconf is especially sensitive to this). 523 . "./$as_me.lineno" 524 # Exit status is that of the last command. 525 exit 526 } 527 528 529 # Determine whether it's possible to make 'echo' print without a newline. 530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 531 # for compatibility with existing Makefiles. 532 ECHO_C= ECHO_N= ECHO_T= 533 case `echo -n x` in #((((( 534 -n*) 535 case `echo 'xy\c'` in 536 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 537 xy) ECHO_C='\c';; 538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 539 ECHO_T=' ';; 540 esac;; 541 *) 542 ECHO_N='-n';; 543 esac 544 545 # For backward compatibility with old third-party macros, we provide 546 # the shell variables $as_echo and $as_echo_n. New code should use 547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 548 as_echo='printf %s\n' 549 as_echo_n='printf %s' 550 551 552 rm -f conf$$ conf$$.exe conf$$.file 553 if test -d conf$$.dir; then 554 rm -f conf$$.dir/conf$$.file 555 else 556 rm -f conf$$.dir 557 mkdir conf$$.dir 2>/dev/null 558 fi 559 if (echo >conf$$.file) 2>/dev/null; then 560 if ln -s conf$$.file conf$$ 2>/dev/null; then 561 as_ln_s='ln -s' 562 # ... but there are two gotchas: 563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 565 # In both cases, we have to default to `cp -pR'. 566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 567 as_ln_s='cp -pR' 568 elif ln conf$$.file conf$$ 2>/dev/null; then 569 as_ln_s=ln 570 else 571 as_ln_s='cp -pR' 572 fi 573 else 574 as_ln_s='cp -pR' 575 fi 576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 577 rmdir conf$$.dir 2>/dev/null 578 579 if mkdir -p . 2>/dev/null; then 580 as_mkdir_p='mkdir -p "$as_dir"' 581 else 582 test -d ./-p && rmdir ./-p 583 as_mkdir_p=false 584 fi 585 586 as_test_x='test -x' 587 as_executable_p=as_fn_executable_p 588 589 # Sed expression to map a string onto a valid CPP name. 590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 591 592 # Sed expression to map a string onto a valid variable name. 593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 594 595 SHELL=${CONFIG_SHELL-/bin/sh} 596 597 598 test -n "$DJDIR" || exec 7<&0 </dev/null 599 exec 6>&1 600 601 # Name of the host. 602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 603 # so uname gets run too. 604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 605 606 # 607 # Initializations. 608 # 609 ac_default_prefix=/usr/local 610 ac_clean_files= 611 ac_config_libobj_dir=. 612 LIBOBJS= 613 cross_compiling=no 614 subdirs= 615 MFLAGS= 616 MAKEFLAGS= 617 618 # Identity of this package. 619 PACKAGE_NAME='libevent' 620 PACKAGE_TARNAME='libevent' 621 PACKAGE_VERSION='2.1.12-stable' 622 PACKAGE_STRING='libevent 2.1.12-stable' 623 PACKAGE_BUGREPORT='' 624 PACKAGE_URL='' 625 626 ac_unique_file="event.c" 627 ac_default_prefix=/usr/local 628 # Factoring default headers for most tests. 629 ac_includes_default="\ 630 #include <stddef.h> 631 #ifdef HAVE_STDIO_H 632 # include <stdio.h> 633 #endif 634 #ifdef HAVE_STDLIB_H 635 # include <stdlib.h> 636 #endif 637 #ifdef HAVE_STRING_H 638 # include <string.h> 639 #endif 640 #ifdef HAVE_INTTYPES_H 641 # include <inttypes.h> 642 #endif 643 #ifdef HAVE_STDINT_H 644 # include <stdint.h> 645 #endif 646 #ifdef HAVE_STRINGS_H 647 # include <strings.h> 648 #endif 649 #ifdef HAVE_SYS_TYPES_H 650 # include <sys/types.h> 651 #endif 652 #ifdef HAVE_SYS_STAT_H 653 # include <sys/stat.h> 654 #endif 655 #ifdef HAVE_UNISTD_H 656 # include <unistd.h> 657 #endif" 658 659 ac_header_c_list= 660 ac_subst_vars='am__EXEEXT_FALSE 661 am__EXEEXT_TRUE 662 LTLIBOBJS 663 ENABLE_DOXYGEN_MAN_FALSE 664 ENABLE_DOXYGEN_MAN_TRUE 665 ENABLE_DOXYGEN_FALSE 666 ENABLE_DOXYGEN_TRUE 667 DX_RULES 668 PAPER_SIZE 669 DOXYGEN_PAPER_SIZE 670 GENERATE_LATEX 671 DX_PDFLATEX 672 DX_FLAG_pdf 673 DX_EGREP 674 DX_DVIPS 675 DX_MAKEINDEX 676 DX_LATEX 677 DX_FLAG_ps 678 DX_FLAG_html 679 GENERATE_CHI 680 DX_FLAG_chi 681 GENERATE_HTMLHELP 682 GENERATE_HTML 683 HHC_PATH 684 DX_HHC 685 DX_FLAG_chm 686 GENERATE_XML 687 DX_FLAG_xml 688 GENERATE_RTF 689 DX_FLAG_rtf 690 GENERATE_MAN 691 DX_FLAG_man 692 DOT_PATH 693 HAVE_DOT 694 DX_DOT 695 DX_FLAG_dot 696 PERL_PATH 697 DX_PERL 698 DX_DOXYGEN 699 DX_FLAG_doc 700 PROJECT 701 SRCDIR 702 DX_ENV 703 DX_DOCDIR 704 DX_CONFIG 705 DX_PROJECT 706 LIBEVENT_LDFLAGS 707 LIBEVENT_CPPFLAGS 708 LIBEVENT_CFLAGS 709 INSTALL_LIBEVENT_FALSE 710 INSTALL_LIBEVENT_TRUE 711 LIBEVENT_GC_SECTIONS 712 PTHREADS_FALSE 713 PTHREADS_TRUE 714 THREADS_FALSE 715 THREADS_TRUE 716 PTHREAD_CFLAGS 717 PTHREAD_LIBS 718 PTHREAD_CC 719 acx_pthread_config 720 SIGNAL_SUPPORT_FALSE 721 SIGNAL_SUPPORT_TRUE 722 EVPORT_BACKEND_FALSE 723 EVPORT_BACKEND_TRUE 724 EPOLL_BACKEND_FALSE 725 EPOLL_BACKEND_TRUE 726 LIBOBJS 727 KQUEUE_BACKEND_FALSE 728 KQUEUE_BACKEND_TRUE 729 DEVPOLL_BACKEND_FALSE 730 DEVPOLL_BACKEND_TRUE 731 POLL_BACKEND_FALSE 732 POLL_BACKEND_TRUE 733 SELECT_BACKEND_FALSE 734 SELECT_BACKEND_TRUE 735 STRLCPY_IMPL_FALSE 736 STRLCPY_IMPL_TRUE 737 BUILD_WITH_NO_UNDEFINED_FALSE 738 BUILD_WITH_NO_UNDEFINED_TRUE 739 BUILD_MIDIPIX_FALSE 740 BUILD_MIDIPIX_TRUE 741 BUILD_CYGWIN_FALSE 742 BUILD_CYGWIN_TRUE 743 BUILD_WIN32_FALSE 744 BUILD_WIN32_TRUE 745 OPENSSL_FALSE 746 OPENSSL_TRUE 747 OPENSSL_LIBS 748 OPENSSL_INCS 749 PKG_CONFIG 750 OPENSSL_LIBADD 751 EV_LIB_GDI 752 EV_LIB_WS32 753 ZLIB_REGRESS_FALSE 754 ZLIB_REGRESS_TRUE 755 ZLIB_LIBS 756 BUILD_REGRESS_FALSE 757 BUILD_REGRESS_TRUE 758 BUILD_SAMPLES_FALSE 759 BUILD_SAMPLES_TRUE 760 LIBTOOL_DEPS 761 LT_SYS_LIBRARY_PATH 762 OTOOL64 763 OTOOL 764 LIPO 765 NMEDIT 766 DSYMUTIL 767 MANIFEST_TOOL 768 RANLIB 769 ac_ct_AR 770 AR 771 DLLTOOL 772 OBJDUMP 773 NM 774 ac_ct_DUMPBIN 775 DUMPBIN 776 LD 777 FGREP 778 LIBTOOL 779 EGREP 780 GREP 781 CPP 782 SED 783 LN_S 784 host_os 785 host_vendor 786 host_cpu 787 host 788 build_os 789 build_vendor 790 build_cpu 791 build 792 am__fastdepCC_FALSE 793 am__fastdepCC_TRUE 794 CCDEPMODE 795 am__nodep 796 AMDEPBACKSLASH 797 AMDEP_FALSE 798 AMDEP_TRUE 799 am__include 800 DEPDIR 801 OBJEXT 802 EXEEXT 803 ac_ct_CC 804 CPPFLAGS 805 LDFLAGS 806 CFLAGS 807 CC 808 AM_BACKSLASH 809 AM_DEFAULT_VERBOSITY 810 AM_DEFAULT_V 811 AM_V 812 CSCOPE 813 ETAGS 814 CTAGS 815 am__untar 816 am__tar 817 AMTAR 818 am__leading_dot 819 SET_MAKE 820 AWK 821 mkdir_p 822 MKDIR_P 823 INSTALL_STRIP_PROGRAM 824 STRIP 825 install_sh 826 MAKEINFO 827 AUTOHEADER 828 AUTOMAKE 829 AUTOCONF 830 ACLOCAL 831 VERSION 832 PACKAGE 833 CYGPATH_W 834 am__isrc 835 INSTALL_DATA 836 INSTALL_SCRIPT 837 INSTALL_PROGRAM 838 target_alias 839 host_alias 840 build_alias 841 LIBS 842 ECHO_T 843 ECHO_N 844 ECHO_C 845 DEFS 846 mandir 847 localedir 848 libdir 849 psdir 850 pdfdir 851 dvidir 852 htmldir 853 infodir 854 docdir 855 oldincludedir 856 includedir 857 runstatedir 858 localstatedir 859 sharedstatedir 860 sysconfdir 861 datadir 862 datarootdir 863 libexecdir 864 sbindir 865 bindir 866 program_transform_name 867 prefix 868 exec_prefix 869 PACKAGE_URL 870 PACKAGE_BUGREPORT 871 PACKAGE_STRING 872 PACKAGE_VERSION 873 PACKAGE_TARNAME 874 PACKAGE_NAME 875 PATH_SEPARATOR 876 SHELL 877 am__quote' 878 ac_subst_files='' 879 ac_user_opts=' 880 enable_option_checking 881 enable_silent_rules 882 enable_dependency_tracking 883 enable_gcc_warnings 884 enable_gcc_hardening 885 enable_thread_support 886 enable_malloc_replacement 887 enable_openssl 888 enable_debug_mode 889 enable_libevent_install 890 enable_libevent_regress 891 enable_samples 892 enable_function_sections 893 enable_verbose_debug 894 enable_clock_gettime 895 enable_shared 896 enable_static 897 with_pic 898 enable_fast_install 899 with_aix_soname 900 with_gnu_ld 901 with_sysroot 902 enable_libtool_lock 903 enable_largefile 904 enable_doxygen_doc 905 enable_doxygen_dot 906 enable_doxygen_man 907 enable_doxygen_rtf 908 enable_doxygen_xml 909 enable_doxygen_chm 910 enable_doxygen_chi 911 enable_doxygen_html 912 enable_doxygen_ps 913 enable_doxygen_pdf 914 ' 915 ac_precious_vars='build_alias 916 host_alias 917 target_alias 918 CC 919 CFLAGS 920 LDFLAGS 921 LIBS 922 CPPFLAGS 923 CPP 924 LT_SYS_LIBRARY_PATH 925 DOXYGEN_PAPER_SIZE' 926 927 928 # Initialize some variables set by options. 929 ac_init_help= 930 ac_init_version=false 931 ac_unrecognized_opts= 932 ac_unrecognized_sep= 933 # The variables have the same names as the options, with 934 # dashes changed to underlines. 935 cache_file=/dev/null 936 exec_prefix=NONE 937 no_create= 938 no_recursion= 939 prefix=NONE 940 program_prefix=NONE 941 program_suffix=NONE 942 program_transform_name=s,x,x, 943 silent= 944 site= 945 srcdir= 946 verbose= 947 x_includes=NONE 948 x_libraries=NONE 949 950 # Installation directory options. 951 # These are left unexpanded so users can "make install exec_prefix=/foo" 952 # and all the variables that are supposed to be based on exec_prefix 953 # by default will actually change. 954 # Use braces instead of parens because sh, perl, etc. also accept them. 955 # (The list follows the same order as the GNU Coding Standards.) 956 bindir='${exec_prefix}/bin' 957 sbindir='${exec_prefix}/sbin' 958 libexecdir='${exec_prefix}/libexec' 959 datarootdir='${prefix}/share' 960 datadir='${datarootdir}' 961 sysconfdir='${prefix}/etc' 962 sharedstatedir='${prefix}/com' 963 localstatedir='${prefix}/var' 964 runstatedir='${localstatedir}/run' 965 includedir='${prefix}/include' 966 oldincludedir='/usr/include' 967 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 968 infodir='${datarootdir}/info' 969 htmldir='${docdir}' 970 dvidir='${docdir}' 971 pdfdir='${docdir}' 972 psdir='${docdir}' 973 libdir='${exec_prefix}/lib' 974 localedir='${datarootdir}/locale' 975 mandir='${datarootdir}/man' 976 977 ac_prev= 978 ac_dashdash= 979 for ac_option 980 do 981 # If the previous option needs an argument, assign it. 982 if test -n "$ac_prev"; then 983 eval $ac_prev=\$ac_option 984 ac_prev= 985 continue 986 fi 987 988 case $ac_option in 989 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 990 *=) ac_optarg= ;; 991 *) ac_optarg=yes ;; 992 esac 993 994 case $ac_dashdash$ac_option in 995 --) 996 ac_dashdash=yes ;; 997 998 -bindir | --bindir | --bindi | --bind | --bin | --bi) 999 ac_prev=bindir ;; 1000 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1001 bindir=$ac_optarg ;; 1002 1003 -build | --build | --buil | --bui | --bu) 1004 ac_prev=build_alias ;; 1005 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1006 build_alias=$ac_optarg ;; 1007 1008 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1009 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1010 ac_prev=cache_file ;; 1011 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1012 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1013 cache_file=$ac_optarg ;; 1014 1015 --config-cache | -C) 1016 cache_file=config.cache ;; 1017 1018 -datadir | --datadir | --datadi | --datad) 1019 ac_prev=datadir ;; 1020 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1021 datadir=$ac_optarg ;; 1022 1023 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1024 | --dataroo | --dataro | --datar) 1025 ac_prev=datarootdir ;; 1026 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1027 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1028 datarootdir=$ac_optarg ;; 1029 1030 -disable-* | --disable-*) 1031 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1032 # Reject names that are not valid shell variable names. 1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1034 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1035 ac_useropt_orig=$ac_useropt 1036 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1037 case $ac_user_opts in 1038 *" 1039 "enable_$ac_useropt" 1040 "*) ;; 1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1042 ac_unrecognized_sep=', ';; 1043 esac 1044 eval enable_$ac_useropt=no ;; 1045 1046 -docdir | --docdir | --docdi | --doc | --do) 1047 ac_prev=docdir ;; 1048 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1049 docdir=$ac_optarg ;; 1050 1051 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1052 ac_prev=dvidir ;; 1053 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1054 dvidir=$ac_optarg ;; 1055 1056 -enable-* | --enable-*) 1057 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1058 # Reject names that are not valid shell variable names. 1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1060 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1061 ac_useropt_orig=$ac_useropt 1062 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1063 case $ac_user_opts in 1064 *" 1065 "enable_$ac_useropt" 1066 "*) ;; 1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1068 ac_unrecognized_sep=', ';; 1069 esac 1070 eval enable_$ac_useropt=\$ac_optarg ;; 1071 1072 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1073 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1074 | --exec | --exe | --ex) 1075 ac_prev=exec_prefix ;; 1076 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1077 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1078 | --exec=* | --exe=* | --ex=*) 1079 exec_prefix=$ac_optarg ;; 1080 1081 -gas | --gas | --ga | --g) 1082 # Obsolete; use --with-gas. 1083 with_gas=yes ;; 1084 1085 -help | --help | --hel | --he | -h) 1086 ac_init_help=long ;; 1087 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1088 ac_init_help=recursive ;; 1089 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1090 ac_init_help=short ;; 1091 1092 -host | --host | --hos | --ho) 1093 ac_prev=host_alias ;; 1094 -host=* | --host=* | --hos=* | --ho=*) 1095 host_alias=$ac_optarg ;; 1096 1097 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1098 ac_prev=htmldir ;; 1099 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1100 | --ht=*) 1101 htmldir=$ac_optarg ;; 1102 1103 -includedir | --includedir | --includedi | --included | --include \ 1104 | --includ | --inclu | --incl | --inc) 1105 ac_prev=includedir ;; 1106 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1107 | --includ=* | --inclu=* | --incl=* | --inc=*) 1108 includedir=$ac_optarg ;; 1109 1110 -infodir | --infodir | --infodi | --infod | --info | --inf) 1111 ac_prev=infodir ;; 1112 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1113 infodir=$ac_optarg ;; 1114 1115 -libdir | --libdir | --libdi | --libd) 1116 ac_prev=libdir ;; 1117 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1118 libdir=$ac_optarg ;; 1119 1120 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1121 | --libexe | --libex | --libe) 1122 ac_prev=libexecdir ;; 1123 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1124 | --libexe=* | --libex=* | --libe=*) 1125 libexecdir=$ac_optarg ;; 1126 1127 -localedir | --localedir | --localedi | --localed | --locale) 1128 ac_prev=localedir ;; 1129 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1130 localedir=$ac_optarg ;; 1131 1132 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1133 | --localstate | --localstat | --localsta | --localst | --locals) 1134 ac_prev=localstatedir ;; 1135 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1136 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1137 localstatedir=$ac_optarg ;; 1138 1139 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1140 ac_prev=mandir ;; 1141 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1142 mandir=$ac_optarg ;; 1143 1144 -nfp | --nfp | --nf) 1145 # Obsolete; use --without-fp. 1146 with_fp=no ;; 1147 1148 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1149 | --no-cr | --no-c | -n) 1150 no_create=yes ;; 1151 1152 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1153 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1154 no_recursion=yes ;; 1155 1156 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1157 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1158 | --oldin | --oldi | --old | --ol | --o) 1159 ac_prev=oldincludedir ;; 1160 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1161 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1162 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1163 oldincludedir=$ac_optarg ;; 1164 1165 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1166 ac_prev=prefix ;; 1167 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1168 prefix=$ac_optarg ;; 1169 1170 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1171 | --program-pre | --program-pr | --program-p) 1172 ac_prev=program_prefix ;; 1173 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1174 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1175 program_prefix=$ac_optarg ;; 1176 1177 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1178 | --program-suf | --program-su | --program-s) 1179 ac_prev=program_suffix ;; 1180 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1181 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1182 program_suffix=$ac_optarg ;; 1183 1184 -program-transform-name | --program-transform-name \ 1185 | --program-transform-nam | --program-transform-na \ 1186 | --program-transform-n | --program-transform- \ 1187 | --program-transform | --program-transfor \ 1188 | --program-transfo | --program-transf \ 1189 | --program-trans | --program-tran \ 1190 | --progr-tra | --program-tr | --program-t) 1191 ac_prev=program_transform_name ;; 1192 -program-transform-name=* | --program-transform-name=* \ 1193 | --program-transform-nam=* | --program-transform-na=* \ 1194 | --program-transform-n=* | --program-transform-=* \ 1195 | --program-transform=* | --program-transfor=* \ 1196 | --program-transfo=* | --program-transf=* \ 1197 | --program-trans=* | --program-tran=* \ 1198 | --progr-tra=* | --program-tr=* | --program-t=*) 1199 program_transform_name=$ac_optarg ;; 1200 1201 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1202 ac_prev=pdfdir ;; 1203 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1204 pdfdir=$ac_optarg ;; 1205 1206 -psdir | --psdir | --psdi | --psd | --ps) 1207 ac_prev=psdir ;; 1208 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1209 psdir=$ac_optarg ;; 1210 1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1212 | -silent | --silent | --silen | --sile | --sil) 1213 silent=yes ;; 1214 1215 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1216 | --runstate | --runstat | --runsta | --runst | --runs \ 1217 | --run | --ru | --r) 1218 ac_prev=runstatedir ;; 1219 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1220 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1221 | --run=* | --ru=* | --r=*) 1222 runstatedir=$ac_optarg ;; 1223 1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1225 ac_prev=sbindir ;; 1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1227 | --sbi=* | --sb=*) 1228 sbindir=$ac_optarg ;; 1229 1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1232 | --sharedst | --shareds | --shared | --share | --shar \ 1233 | --sha | --sh) 1234 ac_prev=sharedstatedir ;; 1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1238 | --sha=* | --sh=*) 1239 sharedstatedir=$ac_optarg ;; 1240 1241 -site | --site | --sit) 1242 ac_prev=site ;; 1243 -site=* | --site=* | --sit=*) 1244 site=$ac_optarg ;; 1245 1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1247 ac_prev=srcdir ;; 1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1249 srcdir=$ac_optarg ;; 1250 1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1252 | --syscon | --sysco | --sysc | --sys | --sy) 1253 ac_prev=sysconfdir ;; 1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1256 sysconfdir=$ac_optarg ;; 1257 1258 -target | --target | --targe | --targ | --tar | --ta | --t) 1259 ac_prev=target_alias ;; 1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1261 target_alias=$ac_optarg ;; 1262 1263 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1264 verbose=yes ;; 1265 1266 -version | --version | --versio | --versi | --vers | -V) 1267 ac_init_version=: ;; 1268 1269 -with-* | --with-*) 1270 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1271 # Reject names that are not valid shell variable names. 1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1273 as_fn_error $? "invalid package name: \`$ac_useropt'" 1274 ac_useropt_orig=$ac_useropt 1275 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1276 case $ac_user_opts in 1277 *" 1278 "with_$ac_useropt" 1279 "*) ;; 1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1281 ac_unrecognized_sep=', ';; 1282 esac 1283 eval with_$ac_useropt=\$ac_optarg ;; 1284 1285 -without-* | --without-*) 1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1287 # Reject names that are not valid shell variable names. 1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1289 as_fn_error $? "invalid package name: \`$ac_useropt'" 1290 ac_useropt_orig=$ac_useropt 1291 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1292 case $ac_user_opts in 1293 *" 1294 "with_$ac_useropt" 1295 "*) ;; 1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1297 ac_unrecognized_sep=', ';; 1298 esac 1299 eval with_$ac_useropt=no ;; 1300 1301 --x) 1302 # Obsolete; use --with-x. 1303 with_x=yes ;; 1304 1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1306 | --x-incl | --x-inc | --x-in | --x-i) 1307 ac_prev=x_includes ;; 1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1310 x_includes=$ac_optarg ;; 1311 1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1314 ac_prev=x_libraries ;; 1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1317 x_libraries=$ac_optarg ;; 1318 1319 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1320 Try \`$0 --help' for more information" 1321 ;; 1322 1323 *=*) 1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1325 # Reject names that are not valid shell variable names. 1326 case $ac_envvar in #( 1327 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1328 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1329 esac 1330 eval $ac_envvar=\$ac_optarg 1331 export $ac_envvar ;; 1332 1333 *) 1334 # FIXME: should be removed in autoconf 3.0. 1335 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1337 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1338 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1339 ;; 1340 1341 esac 1342 done 1343 1344 if test -n "$ac_prev"; then 1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1346 as_fn_error $? "missing argument to $ac_option" 1347 fi 1348 1349 if test -n "$ac_unrecognized_opts"; then 1350 case $enable_option_checking in 1351 no) ;; 1352 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1353 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1354 esac 1355 fi 1356 1357 # Check all directory arguments for consistency. 1358 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1359 datadir sysconfdir sharedstatedir localstatedir includedir \ 1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1361 libdir localedir mandir runstatedir 1362 do 1363 eval ac_val=\$$ac_var 1364 # Remove trailing slashes. 1365 case $ac_val in 1366 */ ) 1367 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1368 eval $ac_var=\$ac_val;; 1369 esac 1370 # Be sure to have absolute directory names. 1371 case $ac_val in 1372 [\\/$]* | ?:[\\/]* ) continue;; 1373 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1374 esac 1375 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1376 done 1377 1378 # There might be people who depend on the old broken behavior: `$host' 1379 # used to hold the argument of --host etc. 1380 # FIXME: To remove some day. 1381 build=$build_alias 1382 host=$host_alias 1383 target=$target_alias 1384 1385 # FIXME: To remove some day. 1386 if test "x$host_alias" != x; then 1387 if test "x$build_alias" = x; then 1388 cross_compiling=maybe 1389 elif test "x$build_alias" != "x$host_alias"; then 1390 cross_compiling=yes 1391 fi 1392 fi 1393 1394 ac_tool_prefix= 1395 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1396 1397 test "$silent" = yes && exec 6>/dev/null 1398 1399 1400 ac_pwd=`pwd` && test -n "$ac_pwd" && 1401 ac_ls_di=`ls -di .` && 1402 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1403 as_fn_error $? "working directory cannot be determined" 1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1405 as_fn_error $? "pwd does not report name of working directory" 1406 1407 1408 # Find the source files, if location was not specified. 1409 if test -z "$srcdir"; then 1410 ac_srcdir_defaulted=yes 1411 # Try the directory containing this script, then the parent directory. 1412 ac_confdir=`$as_dirname -- "$as_myself" || 1413 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1414 X"$as_myself" : 'X\(//\)[^/]' \| \ 1415 X"$as_myself" : 'X\(//\)$' \| \ 1416 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1417 printf "%s\n" X"$as_myself" | 1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1419 s//\1/ 1420 q 1421 } 1422 /^X\(\/\/\)[^/].*/{ 1423 s//\1/ 1424 q 1425 } 1426 /^X\(\/\/\)$/{ 1427 s//\1/ 1428 q 1429 } 1430 /^X\(\/\).*/{ 1431 s//\1/ 1432 q 1433 } 1434 s/.*/./; q'` 1435 srcdir=$ac_confdir 1436 if test ! -r "$srcdir/$ac_unique_file"; then 1437 srcdir=.. 1438 fi 1439 else 1440 ac_srcdir_defaulted=no 1441 fi 1442 if test ! -r "$srcdir/$ac_unique_file"; then 1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1444 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1445 fi 1446 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1447 ac_abs_confdir=`( 1448 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1449 pwd)` 1450 # When building in place, set srcdir=. 1451 if test "$ac_abs_confdir" = "$ac_pwd"; then 1452 srcdir=. 1453 fi 1454 # Remove unnecessary trailing slashes from srcdir. 1455 # Double slashes in file names in object file debugging info 1456 # mess up M-x gdb in Emacs. 1457 case $srcdir in 1458 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1459 esac 1460 for ac_var in $ac_precious_vars; do 1461 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1462 eval ac_env_${ac_var}_value=\$${ac_var} 1463 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1464 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1465 done 1466 1467 # 1468 # Report the --help message. 1469 # 1470 if test "$ac_init_help" = "long"; then 1471 # Omit some internal or obsolete options to make the list less imposing. 1472 # This message is too long to be a string in the A/UX 3.1 sh. 1473 cat <<_ACEOF 1474 \`configure' configures libevent 2.1.12-stable to adapt to many kinds of systems. 1475 1476 Usage: $0 [OPTION]... [VAR=VALUE]... 1477 1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1479 VAR=VALUE. See below for descriptions of some of the useful variables. 1480 1481 Defaults for the options are specified in brackets. 1482 1483 Configuration: 1484 -h, --help display this help and exit 1485 --help=short display options specific to this package 1486 --help=recursive display the short help of all the included packages 1487 -V, --version display version information and exit 1488 -q, --quiet, --silent do not print \`checking ...' messages 1489 --cache-file=FILE cache test results in FILE [disabled] 1490 -C, --config-cache alias for \`--cache-file=config.cache' 1491 -n, --no-create do not create output files 1492 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1493 1494 Installation directories: 1495 --prefix=PREFIX install architecture-independent files in PREFIX 1496 [$ac_default_prefix] 1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1498 [PREFIX] 1499 1500 By default, \`make install' will install all the files in 1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1503 for instance \`--prefix=\$HOME'. 1504 1505 For better control, use the options below. 1506 1507 Fine tuning of the installation directories: 1508 --bindir=DIR user executables [EPREFIX/bin] 1509 --sbindir=DIR system admin executables [EPREFIX/sbin] 1510 --libexecdir=DIR program executables [EPREFIX/libexec] 1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1514 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1515 --libdir=DIR object code libraries [EPREFIX/lib] 1516 --includedir=DIR C header files [PREFIX/include] 1517 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1520 --infodir=DIR info documentation [DATAROOTDIR/info] 1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1522 --mandir=DIR man documentation [DATAROOTDIR/man] 1523 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent] 1524 --htmldir=DIR html documentation [DOCDIR] 1525 --dvidir=DIR dvi documentation [DOCDIR] 1526 --pdfdir=DIR pdf documentation [DOCDIR] 1527 --psdir=DIR ps documentation [DOCDIR] 1528 _ACEOF 1529 1530 cat <<\_ACEOF 1531 1532 Program names: 1533 --program-prefix=PREFIX prepend PREFIX to installed program names 1534 --program-suffix=SUFFIX append SUFFIX to installed program names 1535 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1536 1537 System types: 1538 --build=BUILD configure for building on BUILD [guessed] 1539 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1540 _ACEOF 1541 fi 1542 1543 if test -n "$ac_init_help"; then 1544 case $ac_init_help in 1545 short | recursive ) echo "Configuration of libevent 2.1.12-stable:";; 1546 esac 1547 cat <<\_ACEOF 1548 1549 Optional Features: 1550 --disable-option-checking ignore unrecognized --enable/--with options 1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1553 --enable-silent-rules less verbose build output (undo: "make V=1") 1554 --disable-silent-rules verbose build output (undo: "make V=0") 1555 --enable-dependency-tracking 1556 do not reject slow dependency extractors 1557 --disable-dependency-tracking 1558 speeds up one-time build 1559 --disable-gcc-warnings disable verbose warnings with GCC 1560 --enable-gcc-hardening enable compiler security checks 1561 --disable-thread-support 1562 disable support for threading 1563 --disable-malloc-replacement 1564 disable support for replacing the memory mgt 1565 functions 1566 --disable-openssl disable support for openssl encryption 1567 --disable-debug-mode disable support for running in debug mode 1568 --disable-libevent-install, disable installation of libevent 1569 1570 --disable-libevent-regress, skip regress in make check 1571 1572 --disable-samples, skip building of sample programs 1573 1574 --enable-function-sections, make static library allow smaller binaries with --gc-sections 1575 1576 --enable-verbose-debug, verbose debug logging 1577 1578 --disable-clock-gettime do not use clock_gettime even if it is available 1579 --enable-shared[=PKGS] build shared libraries [default=yes] 1580 --enable-static[=PKGS] build static libraries [default=yes] 1581 --enable-fast-install[=PKGS] 1582 optimize for fast installation [default=yes] 1583 --disable-libtool-lock avoid locking (might break parallel builds) 1584 --disable-largefile omit support for large files 1585 --enable-doxygen-doc generate any doxygen documentation 1586 --enable-doxygen-dot generate graphics for doxygen documentation 1587 --enable-doxygen-man generate doxygen manual pages 1588 --enable-doxygen-rtf generate doxygen RTF documentation 1589 --enable-doxygen-xml generate doxygen XML documentation 1590 --enable-doxygen-chm generate doxygen compressed HTML help documentation 1591 --enable-doxygen-chi generate doxygen separate compressed HTML help index 1592 file 1593 --disable-doxygen-html don't generate doxygen plain HTML documentation 1594 --enable-doxygen-ps generate doxygen PostScript documentation 1595 --enable-doxygen-pdf generate doxygen PDF documentation 1596 1597 Optional Packages: 1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1600 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1601 both] 1602 --with-aix-soname=aix|svr4|both 1603 shared library versioning (aka "SONAME") variant to 1604 provide on AIX, [default=aix]. 1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1606 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1607 compiler's sysroot if not specified). 1608 1609 Some influential environment variables: 1610 CC C compiler command 1611 CFLAGS C compiler flags 1612 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1613 nonstandard directory <lib dir> 1614 LIBS libraries to pass to the linker, e.g. -l<library> 1615 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1616 you have headers in a nonstandard directory <include dir> 1617 CPP C preprocessor 1618 LT_SYS_LIBRARY_PATH 1619 User-defined run-time library search path. 1620 DOXYGEN_PAPER_SIZE 1621 a4wide (default), a4, letter, legal or executive 1622 1623 Use these variables to override the choices made by `configure' or to help 1624 it to find libraries and programs with nonstandard names/locations. 1625 1626 Report bugs to the package provider. 1627 _ACEOF 1628 ac_status=$? 1629 fi 1630 1631 if test "$ac_init_help" = "recursive"; then 1632 # If there are subdirs, report their specific --help. 1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1634 test -d "$ac_dir" || 1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1636 continue 1637 ac_builddir=. 1638 1639 case "$ac_dir" in 1640 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1641 *) 1642 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1643 # A ".." for each directory in $ac_dir_suffix. 1644 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1645 case $ac_top_builddir_sub in 1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1648 esac ;; 1649 esac 1650 ac_abs_top_builddir=$ac_pwd 1651 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1652 # for backward compatibility: 1653 ac_top_builddir=$ac_top_build_prefix 1654 1655 case $srcdir in 1656 .) # We are building in place. 1657 ac_srcdir=. 1658 ac_top_srcdir=$ac_top_builddir_sub 1659 ac_abs_top_srcdir=$ac_pwd ;; 1660 [\\/]* | ?:[\\/]* ) # Absolute name. 1661 ac_srcdir=$srcdir$ac_dir_suffix; 1662 ac_top_srcdir=$srcdir 1663 ac_abs_top_srcdir=$srcdir ;; 1664 *) # Relative name. 1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1666 ac_top_srcdir=$ac_top_build_prefix$srcdir 1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1668 esac 1669 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1670 1671 cd "$ac_dir" || { ac_status=$?; continue; } 1672 # Check for configure.gnu first; this name is used for a wrapper for 1673 # Metaconfig's "Configure" on case-insensitive file systems. 1674 if test -f "$ac_srcdir/configure.gnu"; then 1675 echo && 1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1677 elif test -f "$ac_srcdir/configure"; then 1678 echo && 1679 $SHELL "$ac_srcdir/configure" --help=recursive 1680 else 1681 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1682 fi || ac_status=$? 1683 cd "$ac_pwd" || { ac_status=$?; break; } 1684 done 1685 fi 1686 1687 test -n "$ac_init_help" && exit $ac_status 1688 if $ac_init_version; then 1689 cat <<\_ACEOF 1690 libevent configure 2.1.12-stable 1691 generated by GNU Autoconf 2.71 1692 1693 Copyright (C) 2021 Free Software Foundation, Inc. 1694 This configure script is free software; the Free Software Foundation 1695 gives unlimited permission to copy, distribute and modify it. 1696 _ACEOF 1697 exit 1698 fi 1699 1700 ## ------------------------ ## 1701 ## Autoconf initialization. ## 1702 ## ------------------------ ## 1703 1704 # ac_fn_c_try_compile LINENO 1705 # -------------------------- 1706 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1707 ac_fn_c_try_compile () 1708 { 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1710 rm -f conftest.$ac_objext conftest.beam 1711 if { { ac_try="$ac_compile" 1712 case "(($ac_try" in 1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1714 *) ac_try_echo=$ac_try;; 1715 esac 1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1717 printf "%s\n" "$ac_try_echo"; } >&5 1718 (eval "$ac_compile") 2>conftest.err 1719 ac_status=$? 1720 if test -s conftest.err; then 1721 grep -v '^ *+' conftest.err >conftest.er1 1722 cat conftest.er1 >&5 1723 mv -f conftest.er1 conftest.err 1724 fi 1725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } && { 1727 test -z "$ac_c_werror_flag" || 1728 test ! -s conftest.err 1729 } && test -s conftest.$ac_objext 1730 then : 1731 ac_retval=0 1732 else $as_nop 1733 printf "%s\n" "$as_me: failed program was:" >&5 1734 sed 's/^/| /' conftest.$ac_ext >&5 1735 1736 ac_retval=1 1737 fi 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 as_fn_set_status $ac_retval 1740 1741 } # ac_fn_c_try_compile 1742 1743 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1744 # ------------------------------------------------------- 1745 # Tests whether HEADER exists and can be compiled using the include files in 1746 # INCLUDES, setting the cache variable VAR accordingly. 1747 ac_fn_c_check_header_compile () 1748 { 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1751 printf %s "checking for $2... " >&6; } 1752 if eval test \${$3+y} 1753 then : 1754 printf %s "(cached) " >&6 1755 else $as_nop 1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1757 /* end confdefs.h. */ 1758 $4 1759 #include <$2> 1760 _ACEOF 1761 if ac_fn_c_try_compile "$LINENO" 1762 then : 1763 eval "$3=yes" 1764 else $as_nop 1765 eval "$3=no" 1766 fi 1767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1768 fi 1769 eval ac_res=\$$3 1770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1771 printf "%s\n" "$ac_res" >&6; } 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1773 1774 } # ac_fn_c_check_header_compile 1775 1776 # ac_fn_c_try_cpp LINENO 1777 # ---------------------- 1778 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1779 ac_fn_c_try_cpp () 1780 { 1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1782 if { { ac_try="$ac_cpp conftest.$ac_ext" 1783 case "(($ac_try" in 1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1785 *) ac_try_echo=$ac_try;; 1786 esac 1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1788 printf "%s\n" "$ac_try_echo"; } >&5 1789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1790 ac_status=$? 1791 if test -s conftest.err; then 1792 grep -v '^ *+' conftest.err >conftest.er1 1793 cat conftest.er1 >&5 1794 mv -f conftest.er1 conftest.err 1795 fi 1796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1797 test $ac_status = 0; } > conftest.i && { 1798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1799 test ! -s conftest.err 1800 } 1801 then : 1802 ac_retval=0 1803 else $as_nop 1804 printf "%s\n" "$as_me: failed program was:" >&5 1805 sed 's/^/| /' conftest.$ac_ext >&5 1806 1807 ac_retval=1 1808 fi 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 as_fn_set_status $ac_retval 1811 1812 } # ac_fn_c_try_cpp 1813 1814 # ac_fn_c_try_link LINENO 1815 # ----------------------- 1816 # Try to link conftest.$ac_ext, and return whether this succeeded. 1817 ac_fn_c_try_link () 1818 { 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1821 if { { ac_try="$ac_link" 1822 case "(($ac_try" in 1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1824 *) ac_try_echo=$ac_try;; 1825 esac 1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1827 printf "%s\n" "$ac_try_echo"; } >&5 1828 (eval "$ac_link") 2>conftest.err 1829 ac_status=$? 1830 if test -s conftest.err; then 1831 grep -v '^ *+' conftest.err >conftest.er1 1832 cat conftest.er1 >&5 1833 mv -f conftest.er1 conftest.err 1834 fi 1835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1836 test $ac_status = 0; } && { 1837 test -z "$ac_c_werror_flag" || 1838 test ! -s conftest.err 1839 } && test -s conftest$ac_exeext && { 1840 test "$cross_compiling" = yes || 1841 test -x conftest$ac_exeext 1842 } 1843 then : 1844 ac_retval=0 1845 else $as_nop 1846 printf "%s\n" "$as_me: failed program was:" >&5 1847 sed 's/^/| /' conftest.$ac_ext >&5 1848 1849 ac_retval=1 1850 fi 1851 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1852 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1853 # interfere with the next link command; also delete a directory that is 1854 # left behind by Apple's compiler. We do this before executing the actions. 1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 as_fn_set_status $ac_retval 1858 1859 } # ac_fn_c_try_link 1860 1861 # ac_fn_c_check_func LINENO FUNC VAR 1862 # ---------------------------------- 1863 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1864 ac_fn_c_check_func () 1865 { 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1868 printf %s "checking for $2... " >&6; } 1869 if eval test \${$3+y} 1870 then : 1871 printf %s "(cached) " >&6 1872 else $as_nop 1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1874 /* end confdefs.h. */ 1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1877 #define $2 innocuous_$2 1878 1879 /* System header to define __stub macros and hopefully few prototypes, 1880 which can conflict with char $2 (); below. */ 1881 1882 #include <limits.h> 1883 #undef $2 1884 1885 /* Override any GCC internal prototype to avoid an error. 1886 Use char because int might match the return type of a GCC 1887 builtin and then its argument prototype would still apply. */ 1888 #ifdef __cplusplus 1889 extern "C" 1890 #endif 1891 char $2 (); 1892 /* The GNU C library defines this for functions which it implements 1893 to always fail with ENOSYS. Some functions are actually named 1894 something starting with __ and the normal name is an alias. */ 1895 #if defined __stub_$2 || defined __stub___$2 1896 choke me 1897 #endif 1898 1899 int 1900 main (void) 1901 { 1902 return $2 (); 1903 ; 1904 return 0; 1905 } 1906 _ACEOF 1907 if ac_fn_c_try_link "$LINENO" 1908 then : 1909 eval "$3=yes" 1910 else $as_nop 1911 eval "$3=no" 1912 fi 1913 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1914 conftest$ac_exeext conftest.$ac_ext 1915 fi 1916 eval ac_res=\$$3 1917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1918 printf "%s\n" "$ac_res" >&6; } 1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1920 1921 } # ac_fn_c_check_func 1922 1923 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1924 # ------------------------------------------------------------------ 1925 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1926 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1927 ac_fn_check_decl () 1928 { 1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1930 as_decl_name=`echo $2|sed 's/ *(.*//'` 1931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1932 printf %s "checking whether $as_decl_name is declared... " >&6; } 1933 if eval test \${$3+y} 1934 then : 1935 printf %s "(cached) " >&6 1936 else $as_nop 1937 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1938 eval ac_save_FLAGS=\$$6 1939 as_fn_append $6 " $5" 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941 /* end confdefs.h. */ 1942 $4 1943 int 1944 main (void) 1945 { 1946 #ifndef $as_decl_name 1947 #ifdef __cplusplus 1948 (void) $as_decl_use; 1949 #else 1950 (void) $as_decl_name; 1951 #endif 1952 #endif 1953 1954 ; 1955 return 0; 1956 } 1957 _ACEOF 1958 if ac_fn_c_try_compile "$LINENO" 1959 then : 1960 eval "$3=yes" 1961 else $as_nop 1962 eval "$3=no" 1963 fi 1964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1965 eval $6=\$ac_save_FLAGS 1966 1967 fi 1968 eval ac_res=\$$3 1969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1970 printf "%s\n" "$ac_res" >&6; } 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 1973 } # ac_fn_check_decl 1974 1975 # ac_fn_c_try_run LINENO 1976 # ---------------------- 1977 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1978 # executables *can* be run. 1979 ac_fn_c_try_run () 1980 { 1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1982 if { { ac_try="$ac_link" 1983 case "(($ac_try" in 1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1985 *) ac_try_echo=$ac_try;; 1986 esac 1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1988 printf "%s\n" "$ac_try_echo"; } >&5 1989 (eval "$ac_link") 2>&5 1990 ac_status=$? 1991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1992 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1993 { { case "(($ac_try" in 1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1995 *) ac_try_echo=$ac_try;; 1996 esac 1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1998 printf "%s\n" "$ac_try_echo"; } >&5 1999 (eval "$ac_try") 2>&5 2000 ac_status=$? 2001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2002 test $ac_status = 0; }; } 2003 then : 2004 ac_retval=0 2005 else $as_nop 2006 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2007 printf "%s\n" "$as_me: failed program was:" >&5 2008 sed 's/^/| /' conftest.$ac_ext >&5 2009 2010 ac_retval=$ac_status 2011 fi 2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 as_fn_set_status $ac_retval 2015 2016 } # ac_fn_c_try_run 2017 2018 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2019 # ------------------------------------------- 2020 # Tests whether TYPE exists after having included INCLUDES, setting cache 2021 # variable VAR accordingly. 2022 ac_fn_c_check_type () 2023 { 2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2026 printf %s "checking for $2... " >&6; } 2027 if eval test \${$3+y} 2028 then : 2029 printf %s "(cached) " >&6 2030 else $as_nop 2031 eval "$3=no" 2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2033 /* end confdefs.h. */ 2034 $4 2035 int 2036 main (void) 2037 { 2038 if (sizeof ($2)) 2039 return 0; 2040 ; 2041 return 0; 2042 } 2043 _ACEOF 2044 if ac_fn_c_try_compile "$LINENO" 2045 then : 2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047 /* end confdefs.h. */ 2048 $4 2049 int 2050 main (void) 2051 { 2052 if (sizeof (($2))) 2053 return 0; 2054 ; 2055 return 0; 2056 } 2057 _ACEOF 2058 if ac_fn_c_try_compile "$LINENO" 2059 then : 2060 2061 else $as_nop 2062 eval "$3=yes" 2063 fi 2064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2065 fi 2066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2067 fi 2068 eval ac_res=\$$3 2069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2070 printf "%s\n" "$ac_res" >&6; } 2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2072 2073 } # ac_fn_c_check_type 2074 2075 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2076 # -------------------------------------------- 2077 # Tries to find the compile-time value of EXPR in a program that includes 2078 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2079 # computed 2080 ac_fn_c_compute_int () 2081 { 2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2083 if test "$cross_compiling" = yes; then 2084 # Depending upon the size, compute the lo and hi bounds. 2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2086 /* end confdefs.h. */ 2087 $4 2088 int 2089 main (void) 2090 { 2091 static int test_array [1 - 2 * !(($2) >= 0)]; 2092 test_array [0] = 0; 2093 return test_array [0]; 2094 2095 ; 2096 return 0; 2097 } 2098 _ACEOF 2099 if ac_fn_c_try_compile "$LINENO" 2100 then : 2101 ac_lo=0 ac_mid=0 2102 while :; do 2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2104 /* end confdefs.h. */ 2105 $4 2106 int 2107 main (void) 2108 { 2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2110 test_array [0] = 0; 2111 return test_array [0]; 2112 2113 ; 2114 return 0; 2115 } 2116 _ACEOF 2117 if ac_fn_c_try_compile "$LINENO" 2118 then : 2119 ac_hi=$ac_mid; break 2120 else $as_nop 2121 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2122 if test $ac_lo -le $ac_mid; then 2123 ac_lo= ac_hi= 2124 break 2125 fi 2126 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2127 fi 2128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2129 done 2130 else $as_nop 2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2132 /* end confdefs.h. */ 2133 $4 2134 int 2135 main (void) 2136 { 2137 static int test_array [1 - 2 * !(($2) < 0)]; 2138 test_array [0] = 0; 2139 return test_array [0]; 2140 2141 ; 2142 return 0; 2143 } 2144 _ACEOF 2145 if ac_fn_c_try_compile "$LINENO" 2146 then : 2147 ac_hi=-1 ac_mid=-1 2148 while :; do 2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2150 /* end confdefs.h. */ 2151 $4 2152 int 2153 main (void) 2154 { 2155 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2156 test_array [0] = 0; 2157 return test_array [0]; 2158 2159 ; 2160 return 0; 2161 } 2162 _ACEOF 2163 if ac_fn_c_try_compile "$LINENO" 2164 then : 2165 ac_lo=$ac_mid; break 2166 else $as_nop 2167 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2168 if test $ac_mid -le $ac_hi; then 2169 ac_lo= ac_hi= 2170 break 2171 fi 2172 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2173 fi 2174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2175 done 2176 else $as_nop 2177 ac_lo= ac_hi= 2178 fi 2179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2180 fi 2181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2182 # Binary search between lo and hi bounds. 2183 while test "x$ac_lo" != "x$ac_hi"; do 2184 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2186 /* end confdefs.h. */ 2187 $4 2188 int 2189 main (void) 2190 { 2191 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2192 test_array [0] = 0; 2193 return test_array [0]; 2194 2195 ; 2196 return 0; 2197 } 2198 _ACEOF 2199 if ac_fn_c_try_compile "$LINENO" 2200 then : 2201 ac_hi=$ac_mid 2202 else $as_nop 2203 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2204 fi 2205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2206 done 2207 case $ac_lo in #(( 2208 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2209 '') ac_retval=1 ;; 2210 esac 2211 else 2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2213 /* end confdefs.h. */ 2214 $4 2215 static long int longval (void) { return $2; } 2216 static unsigned long int ulongval (void) { return $2; } 2217 #include <stdio.h> 2218 #include <stdlib.h> 2219 int 2220 main (void) 2221 { 2222 2223 FILE *f = fopen ("conftest.val", "w"); 2224 if (! f) 2225 return 1; 2226 if (($2) < 0) 2227 { 2228 long int i = longval (); 2229 if (i != ($2)) 2230 return 1; 2231 fprintf (f, "%ld", i); 2232 } 2233 else 2234 { 2235 unsigned long int i = ulongval (); 2236 if (i != ($2)) 2237 return 1; 2238 fprintf (f, "%lu", i); 2239 } 2240 /* Do not output a trailing newline, as this causes \r\n confusion 2241 on some platforms. */ 2242 return ferror (f) || fclose (f) != 0; 2243 2244 ; 2245 return 0; 2246 } 2247 _ACEOF 2248 if ac_fn_c_try_run "$LINENO" 2249 then : 2250 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2251 else $as_nop 2252 ac_retval=1 2253 fi 2254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2255 conftest.$ac_objext conftest.beam conftest.$ac_ext 2256 rm -f conftest.val 2257 2258 fi 2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2260 as_fn_set_status $ac_retval 2261 2262 } # ac_fn_c_compute_int 2263 2264 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2265 # ---------------------------------------------------- 2266 # Tries to find if the field MEMBER exists in type AGGR, after including 2267 # INCLUDES, setting cache variable VAR accordingly. 2268 ac_fn_c_check_member () 2269 { 2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2272 printf %s "checking for $2.$3... " >&6; } 2273 if eval test \${$4+y} 2274 then : 2275 printf %s "(cached) " >&6 2276 else $as_nop 2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2278 /* end confdefs.h. */ 2279 $5 2280 int 2281 main (void) 2282 { 2283 static $2 ac_aggr; 2284 if (ac_aggr.$3) 2285 return 0; 2286 ; 2287 return 0; 2288 } 2289 _ACEOF 2290 if ac_fn_c_try_compile "$LINENO" 2291 then : 2292 eval "$4=yes" 2293 else $as_nop 2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2295 /* end confdefs.h. */ 2296 $5 2297 int 2298 main (void) 2299 { 2300 static $2 ac_aggr; 2301 if (sizeof ac_aggr.$3) 2302 return 0; 2303 ; 2304 return 0; 2305 } 2306 _ACEOF 2307 if ac_fn_c_try_compile "$LINENO" 2308 then : 2309 eval "$4=yes" 2310 else $as_nop 2311 eval "$4=no" 2312 fi 2313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2314 fi 2315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2316 fi 2317 eval ac_res=\$$4 2318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2319 printf "%s\n" "$ac_res" >&6; } 2320 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2321 2322 } # ac_fn_c_check_member 2323 ac_configure_args_raw= 2324 for ac_arg 2325 do 2326 case $ac_arg in 2327 *\'*) 2328 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2329 esac 2330 as_fn_append ac_configure_args_raw " '$ac_arg'" 2331 done 2332 2333 case $ac_configure_args_raw in 2334 *$as_nl*) 2335 ac_safe_unquote= ;; 2336 *) 2337 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2338 ac_unsafe_a="$ac_unsafe_z#~" 2339 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2340 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2341 esac 2342 2343 cat >config.log <<_ACEOF 2344 This file contains any messages produced by compilers while 2345 running configure, to aid debugging if configure makes a mistake. 2346 2347 It was created by libevent $as_me 2.1.12-stable, which was 2348 generated by GNU Autoconf 2.71. Invocation command line was 2349 2350 $ $0$ac_configure_args_raw 2351 2352 _ACEOF 2353 exec 5>>config.log 2354 { 2355 cat <<_ASUNAME 2356 ## --------- ## 2357 ## Platform. ## 2358 ## --------- ## 2359 2360 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2361 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2362 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2363 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2364 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2365 2366 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2367 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2368 2369 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2370 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2371 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2372 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2373 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2374 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2375 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2376 2377 _ASUNAME 2378 2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2380 for as_dir in $PATH 2381 do 2382 IFS=$as_save_IFS 2383 case $as_dir in #((( 2384 '') as_dir=./ ;; 2385 */) ;; 2386 *) as_dir=$as_dir/ ;; 2387 esac 2388 printf "%s\n" "PATH: $as_dir" 2389 done 2390 IFS=$as_save_IFS 2391 2392 } >&5 2393 2394 cat >&5 <<_ACEOF 2395 2396 2397 ## ----------- ## 2398 ## Core tests. ## 2399 ## ----------- ## 2400 2401 _ACEOF 2402 2403 2404 # Keep a trace of the command line. 2405 # Strip out --no-create and --no-recursion so they do not pile up. 2406 # Strip out --silent because we don't want to record it for future runs. 2407 # Also quote any args containing shell meta-characters. 2408 # Make two passes to allow for proper duplicate-argument suppression. 2409 ac_configure_args= 2410 ac_configure_args0= 2411 ac_configure_args1= 2412 ac_must_keep_next=false 2413 for ac_pass in 1 2 2414 do 2415 for ac_arg 2416 do 2417 case $ac_arg in 2418 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2420 | -silent | --silent | --silen | --sile | --sil) 2421 continue ;; 2422 *\'*) 2423 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2424 esac 2425 case $ac_pass in 2426 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2427 2) 2428 as_fn_append ac_configure_args1 " '$ac_arg'" 2429 if test $ac_must_keep_next = true; then 2430 ac_must_keep_next=false # Got value, back to normal. 2431 else 2432 case $ac_arg in 2433 *=* | --config-cache | -C | -disable-* | --disable-* \ 2434 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2435 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2436 | -with-* | --with-* | -without-* | --without-* | --x) 2437 case "$ac_configure_args0 " in 2438 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2439 esac 2440 ;; 2441 -* ) ac_must_keep_next=true ;; 2442 esac 2443 fi 2444 as_fn_append ac_configure_args " '$ac_arg'" 2445 ;; 2446 esac 2447 done 2448 done 2449 { ac_configure_args0=; unset ac_configure_args0;} 2450 { ac_configure_args1=; unset ac_configure_args1;} 2451 2452 # When interrupted or exit'd, cleanup temporary files, and complete 2453 # config.log. We remove comments because anyway the quotes in there 2454 # would cause problems or look ugly. 2455 # WARNING: Use '\'' to represent an apostrophe within the trap. 2456 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2457 trap 'exit_status=$? 2458 # Sanitize IFS. 2459 IFS=" "" $as_nl" 2460 # Save into config.log some information that might help in debugging. 2461 { 2462 echo 2463 2464 printf "%s\n" "## ---------------- ## 2465 ## Cache variables. ## 2466 ## ---------------- ##" 2467 echo 2468 # The following way of writing the cache mishandles newlines in values, 2469 ( 2470 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2471 eval ac_val=\$$ac_var 2472 case $ac_val in #( 2473 *${as_nl}*) 2474 case $ac_var in #( 2475 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2476 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2477 esac 2478 case $ac_var in #( 2479 _ | IFS | as_nl) ;; #( 2480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2481 *) { eval $ac_var=; unset $ac_var;} ;; 2482 esac ;; 2483 esac 2484 done 2485 (set) 2>&1 | 2486 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2487 *${as_nl}ac_space=\ *) 2488 sed -n \ 2489 "s/'\''/'\''\\\\'\'''\''/g; 2490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2491 ;; #( 2492 *) 2493 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2494 ;; 2495 esac | 2496 sort 2497 ) 2498 echo 2499 2500 printf "%s\n" "## ----------------- ## 2501 ## Output variables. ## 2502 ## ----------------- ##" 2503 echo 2504 for ac_var in $ac_subst_vars 2505 do 2506 eval ac_val=\$$ac_var 2507 case $ac_val in 2508 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2509 esac 2510 printf "%s\n" "$ac_var='\''$ac_val'\''" 2511 done | sort 2512 echo 2513 2514 if test -n "$ac_subst_files"; then 2515 printf "%s\n" "## ------------------- ## 2516 ## File substitutions. ## 2517 ## ------------------- ##" 2518 echo 2519 for ac_var in $ac_subst_files 2520 do 2521 eval ac_val=\$$ac_var 2522 case $ac_val in 2523 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2524 esac 2525 printf "%s\n" "$ac_var='\''$ac_val'\''" 2526 done | sort 2527 echo 2528 fi 2529 2530 if test -s confdefs.h; then 2531 printf "%s\n" "## ----------- ## 2532 ## confdefs.h. ## 2533 ## ----------- ##" 2534 echo 2535 cat confdefs.h 2536 echo 2537 fi 2538 test "$ac_signal" != 0 && 2539 printf "%s\n" "$as_me: caught signal $ac_signal" 2540 printf "%s\n" "$as_me: exit $exit_status" 2541 } >&5 2542 rm -f core *.core core.conftest.* && 2543 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2544 exit $exit_status 2545 ' 0 2546 for ac_signal in 1 2 13 15; do 2547 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2548 done 2549 ac_signal=0 2550 2551 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2552 rm -f -r conftest* confdefs.h 2553 2554 printf "%s\n" "/* confdefs.h */" > confdefs.h 2555 2556 # Predefined preprocessor variables. 2557 2558 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2559 2560 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2561 2562 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2563 2564 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2565 2566 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2567 2568 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2569 2570 2571 # Let the site file select an alternate cache file if it wants to. 2572 # Prefer an explicitly selected file to automatically selected ones. 2573 if test -n "$CONFIG_SITE"; then 2574 ac_site_files="$CONFIG_SITE" 2575 elif test "x$prefix" != xNONE; then 2576 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2577 else 2578 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2579 fi 2580 2581 for ac_site_file in $ac_site_files 2582 do 2583 case $ac_site_file in #( 2584 */*) : 2585 ;; #( 2586 *) : 2587 ac_site_file=./$ac_site_file ;; 2588 esac 2589 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2591 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2592 sed 's/^/| /' "$ac_site_file" >&5 2593 . "$ac_site_file" \ 2594 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2595 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2596 as_fn_error $? "failed to load site script $ac_site_file 2597 See \`config.log' for more details" "$LINENO" 5; } 2598 fi 2599 done 2600 2601 if test -r "$cache_file"; then 2602 # Some versions of bash will fail to source /dev/null (special files 2603 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2604 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2606 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2607 case $cache_file in 2608 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2609 *) . "./$cache_file";; 2610 esac 2611 fi 2612 else 2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2614 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2615 >$cache_file 2616 fi 2617 2618 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2619 # Test code for whether the C compiler supports C89 (global declarations) 2620 ac_c_conftest_c89_globals=' 2621 /* Does the compiler advertise C89 conformance? 2622 Do not test the value of __STDC__, because some compilers set it to 0 2623 while being otherwise adequately conformant. */ 2624 #if !defined __STDC__ 2625 # error "Compiler does not advertise C89 conformance" 2626 #endif 2627 2628 #include <stddef.h> 2629 #include <stdarg.h> 2630 struct stat; 2631 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2632 struct buf { int x; }; 2633 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2634 static char *e (p, i) 2635 char **p; 2636 int i; 2637 { 2638 return p[i]; 2639 } 2640 static char *f (char * (*g) (char **, int), char **p, ...) 2641 { 2642 char *s; 2643 va_list v; 2644 va_start (v,p); 2645 s = g (p, va_arg (v,int)); 2646 va_end (v); 2647 return s; 2648 } 2649 2650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2651 function prototypes and stuff, but not \xHH hex character constants. 2652 These do not provoke an error unfortunately, instead are silently treated 2653 as an "x". The following induces an error, until -std is added to get 2654 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2655 array size at least. It is necessary to write \x00 == 0 to get something 2656 that is true only with -std. */ 2657 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2658 2659 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2660 inside strings and character constants. */ 2661 #define FOO(x) '\''x'\'' 2662 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2663 2664 int test (int i, double x); 2665 struct s1 {int (*f) (int a);}; 2666 struct s2 {int (*f) (double a);}; 2667 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2668 int, int);' 2669 2670 # Test code for whether the C compiler supports C89 (body of main). 2671 ac_c_conftest_c89_main=' 2672 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2673 ' 2674 2675 # Test code for whether the C compiler supports C99 (global declarations) 2676 ac_c_conftest_c99_globals=' 2677 // Does the compiler advertise C99 conformance? 2678 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2679 # error "Compiler does not advertise C99 conformance" 2680 #endif 2681 2682 #include <stdbool.h> 2683 extern int puts (const char *); 2684 extern int printf (const char *, ...); 2685 extern int dprintf (int, const char *, ...); 2686 extern void *malloc (size_t); 2687 2688 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2689 // dprintf is used instead of fprintf to avoid needing to declare 2690 // FILE and stderr. 2691 #define debug(...) dprintf (2, __VA_ARGS__) 2692 #define showlist(...) puts (#__VA_ARGS__) 2693 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2694 static void 2695 test_varargs_macros (void) 2696 { 2697 int x = 1234; 2698 int y = 5678; 2699 debug ("Flag"); 2700 debug ("X = %d\n", x); 2701 showlist (The first, second, and third items.); 2702 report (x>y, "x is %d but y is %d", x, y); 2703 } 2704 2705 // Check long long types. 2706 #define BIG64 18446744073709551615ull 2707 #define BIG32 4294967295ul 2708 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2709 #if !BIG_OK 2710 #error "your preprocessor is broken" 2711 #endif 2712 #if BIG_OK 2713 #else 2714 #error "your preprocessor is broken" 2715 #endif 2716 static long long int bignum = -9223372036854775807LL; 2717 static unsigned long long int ubignum = BIG64; 2718 2719 struct incomplete_array 2720 { 2721 int datasize; 2722 double data[]; 2723 }; 2724 2725 struct named_init { 2726 int number; 2727 const wchar_t *name; 2728 double average; 2729 }; 2730 2731 typedef const char *ccp; 2732 2733 static inline int 2734 test_restrict (ccp restrict text) 2735 { 2736 // See if C++-style comments work. 2737 // Iterate through items via the restricted pointer. 2738 // Also check for declarations in for loops. 2739 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2740 continue; 2741 return 0; 2742 } 2743 2744 // Check varargs and va_copy. 2745 static bool 2746 test_varargs (const char *format, ...) 2747 { 2748 va_list args; 2749 va_start (args, format); 2750 va_list args_copy; 2751 va_copy (args_copy, args); 2752 2753 const char *str = ""; 2754 int number = 0; 2755 float fnumber = 0; 2756 2757 while (*format) 2758 { 2759 switch (*format++) 2760 { 2761 case '\''s'\'': // string 2762 str = va_arg (args_copy, const char *); 2763 break; 2764 case '\''d'\'': // int 2765 number = va_arg (args_copy, int); 2766 break; 2767 case '\''f'\'': // float 2768 fnumber = va_arg (args_copy, double); 2769 break; 2770 default: 2771 break; 2772 } 2773 } 2774 va_end (args_copy); 2775 va_end (args); 2776 2777 return *str && number && fnumber; 2778 } 2779 ' 2780 2781 # Test code for whether the C compiler supports C99 (body of main). 2782 ac_c_conftest_c99_main=' 2783 // Check bool. 2784 _Bool success = false; 2785 success |= (argc != 0); 2786 2787 // Check restrict. 2788 if (test_restrict ("String literal") == 0) 2789 success = true; 2790 char *restrict newvar = "Another string"; 2791 2792 // Check varargs. 2793 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2794 test_varargs_macros (); 2795 2796 // Check flexible array members. 2797 struct incomplete_array *ia = 2798 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2799 ia->datasize = 10; 2800 for (int i = 0; i < ia->datasize; ++i) 2801 ia->data[i] = i * 1.234; 2802 2803 // Check named initializers. 2804 struct named_init ni = { 2805 .number = 34, 2806 .name = L"Test wide string", 2807 .average = 543.34343, 2808 }; 2809 2810 ni.number = 58; 2811 2812 int dynamic_array[ni.number]; 2813 dynamic_array[0] = argv[0][0]; 2814 dynamic_array[ni.number - 1] = 543; 2815 2816 // work around unused variable warnings 2817 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2818 || dynamic_array[ni.number - 1] != 543); 2819 ' 2820 2821 # Test code for whether the C compiler supports C11 (global declarations) 2822 ac_c_conftest_c11_globals=' 2823 // Does the compiler advertise C11 conformance? 2824 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2825 # error "Compiler does not advertise C11 conformance" 2826 #endif 2827 2828 // Check _Alignas. 2829 char _Alignas (double) aligned_as_double; 2830 char _Alignas (0) no_special_alignment; 2831 extern char aligned_as_int; 2832 char _Alignas (0) _Alignas (int) aligned_as_int; 2833 2834 // Check _Alignof. 2835 enum 2836 { 2837 int_alignment = _Alignof (int), 2838 int_array_alignment = _Alignof (int[100]), 2839 char_alignment = _Alignof (char) 2840 }; 2841 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2842 2843 // Check _Noreturn. 2844 int _Noreturn does_not_return (void) { for (;;) continue; } 2845 2846 // Check _Static_assert. 2847 struct test_static_assert 2848 { 2849 int x; 2850 _Static_assert (sizeof (int) <= sizeof (long int), 2851 "_Static_assert does not work in struct"); 2852 long int y; 2853 }; 2854 2855 // Check UTF-8 literals. 2856 #define u8 syntax error! 2857 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2858 2859 // Check duplicate typedefs. 2860 typedef long *long_ptr; 2861 typedef long int *long_ptr; 2862 typedef long_ptr long_ptr; 2863 2864 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2865 struct anonymous 2866 { 2867 union { 2868 struct { int i; int j; }; 2869 struct { int k; long int l; } w; 2870 }; 2871 int m; 2872 } v1; 2873 ' 2874 2875 # Test code for whether the C compiler supports C11 (body of main). 2876 ac_c_conftest_c11_main=' 2877 _Static_assert ((offsetof (struct anonymous, i) 2878 == offsetof (struct anonymous, w.k)), 2879 "Anonymous union alignment botch"); 2880 v1.i = 2; 2881 v1.w.k = 5; 2882 ok |= v1.i != 5; 2883 ' 2884 2885 # Test code for whether the C compiler supports C11 (complete). 2886 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2887 ${ac_c_conftest_c99_globals} 2888 ${ac_c_conftest_c11_globals} 2889 2890 int 2891 main (int argc, char **argv) 2892 { 2893 int ok = 0; 2894 ${ac_c_conftest_c89_main} 2895 ${ac_c_conftest_c99_main} 2896 ${ac_c_conftest_c11_main} 2897 return ok; 2898 } 2899 " 2900 2901 # Test code for whether the C compiler supports C99 (complete). 2902 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2903 ${ac_c_conftest_c99_globals} 2904 2905 int 2906 main (int argc, char **argv) 2907 { 2908 int ok = 0; 2909 ${ac_c_conftest_c89_main} 2910 ${ac_c_conftest_c99_main} 2911 return ok; 2912 } 2913 " 2914 2915 # Test code for whether the C compiler supports C89 (complete). 2916 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2917 2918 int 2919 main (int argc, char **argv) 2920 { 2921 int ok = 0; 2922 ${ac_c_conftest_c89_main} 2923 return ok; 2924 } 2925 " 2926 2927 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2928 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2929 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2930 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2931 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2932 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2933 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2934 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2935 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2936 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2937 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" 2938 2939 # Auxiliary files required by this configure script. 2940 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2941 2942 # Locations in which to look for auxiliary files. 2943 ac_aux_dir_candidates="${srcdir}/build-aux" 2944 2945 # Search for a directory containing all of the required auxiliary files, 2946 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2947 # If we don't find one directory that contains all the files we need, 2948 # we report the set of missing files from the *first* directory in 2949 # $ac_aux_dir_candidates and give up. 2950 ac_missing_aux_files="" 2951 ac_first_candidate=: 2952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2954 as_found=false 2955 for as_dir in $ac_aux_dir_candidates 2956 do 2957 IFS=$as_save_IFS 2958 case $as_dir in #((( 2959 '') as_dir=./ ;; 2960 */) ;; 2961 *) as_dir=$as_dir/ ;; 2962 esac 2963 as_found=: 2964 2965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2966 ac_aux_dir_found=yes 2967 ac_install_sh= 2968 for ac_aux in $ac_aux_files 2969 do 2970 # As a special case, if "install-sh" is required, that requirement 2971 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2972 # and $ac_install_sh is set appropriately for whichever one is found. 2973 if test x"$ac_aux" = x"install-sh" 2974 then 2975 if test -f "${as_dir}install-sh"; then 2976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2977 ac_install_sh="${as_dir}install-sh -c" 2978 elif test -f "${as_dir}install.sh"; then 2979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2980 ac_install_sh="${as_dir}install.sh -c" 2981 elif test -f "${as_dir}shtool"; then 2982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2983 ac_install_sh="${as_dir}shtool install -c" 2984 else 2985 ac_aux_dir_found=no 2986 if $ac_first_candidate; then 2987 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2988 else 2989 break 2990 fi 2991 fi 2992 else 2993 if test -f "${as_dir}${ac_aux}"; then 2994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2995 else 2996 ac_aux_dir_found=no 2997 if $ac_first_candidate; then 2998 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2999 else 3000 break 3001 fi 3002 fi 3003 fi 3004 done 3005 if test "$ac_aux_dir_found" = yes; then 3006 ac_aux_dir="$as_dir" 3007 break 3008 fi 3009 ac_first_candidate=false 3010 3011 as_found=false 3012 done 3013 IFS=$as_save_IFS 3014 if $as_found 3015 then : 3016 3017 else $as_nop 3018 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3019 fi 3020 3021 3022 # These three variables are undocumented and unsupported, 3023 # and are intended to be withdrawn in a future Autoconf release. 3024 # They can cause serious problems if a builder's source tree is in a directory 3025 # whose full name contains unusual characters. 3026 if test -f "${ac_aux_dir}config.guess"; then 3027 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3028 fi 3029 if test -f "${ac_aux_dir}config.sub"; then 3030 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3031 fi 3032 if test -f "$ac_aux_dir/configure"; then 3033 ac_configure="$SHELL ${ac_aux_dir}configure" 3034 fi 3035 3036 # Check that the precious variables saved in the cache have kept the same 3037 # value. 3038 ac_cache_corrupted=false 3039 for ac_var in $ac_precious_vars; do 3040 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3041 eval ac_new_set=\$ac_env_${ac_var}_set 3042 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3043 eval ac_new_val=\$ac_env_${ac_var}_value 3044 case $ac_old_set,$ac_new_set in 3045 set,) 3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3047 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3048 ac_cache_corrupted=: ;; 3049 ,set) 3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3051 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3052 ac_cache_corrupted=: ;; 3053 ,);; 3054 *) 3055 if test "x$ac_old_val" != "x$ac_new_val"; then 3056 # differences in whitespace do not lead to failure. 3057 ac_old_val_w=`echo x $ac_old_val` 3058 ac_new_val_w=`echo x $ac_new_val` 3059 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3061 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3062 ac_cache_corrupted=: 3063 else 3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3065 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3066 eval $ac_var=\$ac_old_val 3067 fi 3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3069 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3071 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3072 fi;; 3073 esac 3074 # Pass precious variables to config.status. 3075 if test "$ac_new_set" = set; then 3076 case $ac_new_val in 3077 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3078 *) ac_arg=$ac_var=$ac_new_val ;; 3079 esac 3080 case " $ac_configure_args " in 3081 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3082 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3083 esac 3084 fi 3085 done 3086 if $ac_cache_corrupted; then 3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3088 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3090 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3091 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3092 and start over" "$LINENO" 5 3093 fi 3094 ## -------------------- ## 3095 ## Main body of script. ## 3096 ## -------------------- ## 3097 3098 ac_ext=c 3099 ac_cpp='$CPP $CPPFLAGS' 3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3103 3104 3105 3106 3107 3108 3109 3110 am__api_version='1.16' 3111 3112 3113 3114 # Find a good install program. We prefer a C program (faster), 3115 # so one script is as good as another. But avoid the broken or 3116 # incompatible versions: 3117 # SysV /etc/install, /usr/sbin/install 3118 # SunOS /usr/etc/install 3119 # IRIX /sbin/install 3120 # AIX /bin/install 3121 # AmigaOS /C/install, which installs bootblocks on floppy discs 3122 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3125 # OS/2's system install, which has a completely different semantic 3126 # ./install, which can be erroneously created by make from ./install.sh. 3127 # Reject install programs that cannot install multiple files. 3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3129 printf %s "checking for a BSD-compatible install... " >&6; } 3130 if test -z "$INSTALL"; then 3131 if test ${ac_cv_path_install+y} 3132 then : 3133 printf %s "(cached) " >&6 3134 else $as_nop 3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3136 for as_dir in $PATH 3137 do 3138 IFS=$as_save_IFS 3139 case $as_dir in #((( 3140 '') as_dir=./ ;; 3141 */) ;; 3142 *) as_dir=$as_dir/ ;; 3143 esac 3144 # Account for fact that we put trailing slashes in our PATH walk. 3145 case $as_dir in #(( 3146 ./ | /[cC]/* | \ 3147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3149 /usr/ucb/* ) ;; 3150 *) 3151 # OSF1 and SCO ODT 3.0 have their own names for install. 3152 # Don't use installbsd from OSF since it installs stuff as root 3153 # by default. 3154 for ac_prog in ginstall scoinst install; do 3155 for ac_exec_ext in '' $ac_executable_extensions; do 3156 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3157 if test $ac_prog = install && 3158 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3159 # AIX install. It has an incompatible calling convention. 3160 : 3161 elif test $ac_prog = install && 3162 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3163 # program-specific install script used by HP pwplus--don't use. 3164 : 3165 else 3166 rm -rf conftest.one conftest.two conftest.dir 3167 echo one > conftest.one 3168 echo two > conftest.two 3169 mkdir conftest.dir 3170 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3171 test -s conftest.one && test -s conftest.two && 3172 test -s conftest.dir/conftest.one && 3173 test -s conftest.dir/conftest.two 3174 then 3175 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3176 break 3 3177 fi 3178 fi 3179 fi 3180 done 3181 done 3182 ;; 3183 esac 3184 3185 done 3186 IFS=$as_save_IFS 3187 3188 rm -rf conftest.one conftest.two conftest.dir 3189 3190 fi 3191 if test ${ac_cv_path_install+y}; then 3192 INSTALL=$ac_cv_path_install 3193 else 3194 # As a last resort, use the slow shell script. Don't cache a 3195 # value for INSTALL within a source directory, because that will 3196 # break other packages using the cache if that directory is 3197 # removed, or if the value is a relative name. 3198 INSTALL=$ac_install_sh 3199 fi 3200 fi 3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3202 printf "%s\n" "$INSTALL" >&6; } 3203 3204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3205 # It thinks the first close brace ends the variable substitution. 3206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3207 3208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3209 3210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3211 3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3213 printf %s "checking whether build environment is sane... " >&6; } 3214 # Reject unsafe characters in $srcdir or the absolute working directory 3215 # name. Accept space and tab only in the latter. 3216 am_lf=' 3217 ' 3218 case `pwd` in 3219 *[\\\"\#\$\&\'\`$am_lf]*) 3220 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3221 esac 3222 case $srcdir in 3223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3224 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3225 esac 3226 3227 # Do 'set' in a subshell so we don't clobber the current shell's 3228 # arguments. Must try -L first in case configure is actually a 3229 # symlink; some systems play weird games with the mod time of symlinks 3230 # (eg FreeBSD returns the mod time of the symlink's containing 3231 # directory). 3232 if ( 3233 am_has_slept=no 3234 for am_try in 1 2; do 3235 echo "timestamp, slept: $am_has_slept" > conftest.file 3236 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3237 if test "$*" = "X"; then 3238 # -L didn't work. 3239 set X `ls -t "$srcdir/configure" conftest.file` 3240 fi 3241 if test "$*" != "X $srcdir/configure conftest.file" \ 3242 && test "$*" != "X conftest.file $srcdir/configure"; then 3243 3244 # If neither matched, then we have a broken ls. This can happen 3245 # if, for instance, CONFIG_SHELL is bash and it inherits a 3246 # broken ls alias from the environment. This has actually 3247 # happened. Such a system could not be considered "sane". 3248 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3249 alias in your environment" "$LINENO" 5 3250 fi 3251 if test "$2" = conftest.file || test $am_try -eq 2; then 3252 break 3253 fi 3254 # Just in case. 3255 sleep 1 3256 am_has_slept=yes 3257 done 3258 test "$2" = conftest.file 3259 ) 3260 then 3261 # Ok. 3262 : 3263 else 3264 as_fn_error $? "newly created file is older than distributed files! 3265 Check your system clock" "$LINENO" 5 3266 fi 3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3268 printf "%s\n" "yes" >&6; } 3269 # If we didn't sleep, we still need to ensure time stamps of config.status and 3270 # generated files are strictly newer. 3271 am_sleep_pid= 3272 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3273 ( sleep 1 ) & 3274 am_sleep_pid=$! 3275 fi 3276 3277 rm -f conftest.file 3278 3279 test "$program_prefix" != NONE && 3280 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3281 # Use a double $ so make ignores it. 3282 test "$program_suffix" != NONE && 3283 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3284 # Double any \ or $. 3285 # By default was `s,x,x', remove it if useless. 3286 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3287 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3288 3289 3290 # Expand $ac_aux_dir to an absolute path. 3291 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3292 3293 3294 if test x"${MISSING+set}" != xset; then 3295 MISSING="\${SHELL} '$am_aux_dir/missing'" 3296 fi 3297 # Use eval to expand $SHELL 3298 if eval "$MISSING --is-lightweight"; then 3299 am_missing_run="$MISSING " 3300 else 3301 am_missing_run= 3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3303 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3304 fi 3305 3306 if test x"${install_sh+set}" != xset; then 3307 case $am_aux_dir in 3308 *\ * | *\ *) 3309 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3310 *) 3311 install_sh="\${SHELL} $am_aux_dir/install-sh" 3312 esac 3313 fi 3314 3315 # Installed binaries are usually stripped using 'strip' when the user 3316 # run "make install-strip". However 'strip' might not be the right 3317 # tool to use in cross-compilation environments, therefore Automake 3318 # will honor the 'STRIP' environment variable to overrule this program. 3319 if test "$cross_compiling" != no; then 3320 if test -n "$ac_tool_prefix"; then 3321 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3322 set dummy ${ac_tool_prefix}strip; ac_word=$2 3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3324 printf %s "checking for $ac_word... " >&6; } 3325 if test ${ac_cv_prog_STRIP+y} 3326 then : 3327 printf %s "(cached) " >&6 3328 else $as_nop 3329 if test -n "$STRIP"; then 3330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3331 else 3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3333 for as_dir in $PATH 3334 do 3335 IFS=$as_save_IFS 3336 case $as_dir in #((( 3337 '') as_dir=./ ;; 3338 */) ;; 3339 *) as_dir=$as_dir/ ;; 3340 esac 3341 for ac_exec_ext in '' $ac_executable_extensions; do 3342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3343 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3345 break 2 3346 fi 3347 done 3348 done 3349 IFS=$as_save_IFS 3350 3351 fi 3352 fi 3353 STRIP=$ac_cv_prog_STRIP 3354 if test -n "$STRIP"; then 3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3356 printf "%s\n" "$STRIP" >&6; } 3357 else 3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3359 printf "%s\n" "no" >&6; } 3360 fi 3361 3362 3363 fi 3364 if test -z "$ac_cv_prog_STRIP"; then 3365 ac_ct_STRIP=$STRIP 3366 # Extract the first word of "strip", so it can be a program name with args. 3367 set dummy strip; ac_word=$2 3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3369 printf %s "checking for $ac_word... " >&6; } 3370 if test ${ac_cv_prog_ac_ct_STRIP+y} 3371 then : 3372 printf %s "(cached) " >&6 3373 else $as_nop 3374 if test -n "$ac_ct_STRIP"; then 3375 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3376 else 3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3378 for as_dir in $PATH 3379 do 3380 IFS=$as_save_IFS 3381 case $as_dir in #((( 3382 '') as_dir=./ ;; 3383 */) ;; 3384 *) as_dir=$as_dir/ ;; 3385 esac 3386 for ac_exec_ext in '' $ac_executable_extensions; do 3387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3388 ac_cv_prog_ac_ct_STRIP="strip" 3389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3390 break 2 3391 fi 3392 done 3393 done 3394 IFS=$as_save_IFS 3395 3396 fi 3397 fi 3398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3399 if test -n "$ac_ct_STRIP"; then 3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3401 printf "%s\n" "$ac_ct_STRIP" >&6; } 3402 else 3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3404 printf "%s\n" "no" >&6; } 3405 fi 3406 3407 if test "x$ac_ct_STRIP" = x; then 3408 STRIP=":" 3409 else 3410 case $cross_compiling:$ac_tool_warned in 3411 yes:) 3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3413 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3414 ac_tool_warned=yes ;; 3415 esac 3416 STRIP=$ac_ct_STRIP 3417 fi 3418 else 3419 STRIP="$ac_cv_prog_STRIP" 3420 fi 3421 3422 fi 3423 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3424 3425 3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3427 printf %s "checking for a race-free mkdir -p... " >&6; } 3428 if test -z "$MKDIR_P"; then 3429 if test ${ac_cv_path_mkdir+y} 3430 then : 3431 printf %s "(cached) " >&6 3432 else $as_nop 3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3434 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3435 do 3436 IFS=$as_save_IFS 3437 case $as_dir in #((( 3438 '') as_dir=./ ;; 3439 */) ;; 3440 *) as_dir=$as_dir/ ;; 3441 esac 3442 for ac_prog in mkdir gmkdir; do 3443 for ac_exec_ext in '' $ac_executable_extensions; do 3444 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3445 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3446 'mkdir ('*'coreutils) '* | \ 3447 'BusyBox '* | \ 3448 'mkdir (fileutils) '4.1*) 3449 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3450 break 3;; 3451 esac 3452 done 3453 done 3454 done 3455 IFS=$as_save_IFS 3456 3457 fi 3458 3459 test -d ./--version && rmdir ./--version 3460 if test ${ac_cv_path_mkdir+y}; then 3461 MKDIR_P="$ac_cv_path_mkdir -p" 3462 else 3463 # As a last resort, use the slow shell script. Don't cache a 3464 # value for MKDIR_P within a source directory, because that will 3465 # break other packages using the cache if that directory is 3466 # removed, or if the value is a relative name. 3467 MKDIR_P="$ac_install_sh -d" 3468 fi 3469 fi 3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3471 printf "%s\n" "$MKDIR_P" >&6; } 3472 3473 for ac_prog in gawk mawk nawk awk 3474 do 3475 # Extract the first word of "$ac_prog", so it can be a program name with args. 3476 set dummy $ac_prog; ac_word=$2 3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478 printf %s "checking for $ac_word... " >&6; } 3479 if test ${ac_cv_prog_AWK+y} 3480 then : 3481 printf %s "(cached) " >&6 3482 else $as_nop 3483 if test -n "$AWK"; then 3484 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3485 else 3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487 for as_dir in $PATH 3488 do 3489 IFS=$as_save_IFS 3490 case $as_dir in #((( 3491 '') as_dir=./ ;; 3492 */) ;; 3493 *) as_dir=$as_dir/ ;; 3494 esac 3495 for ac_exec_ext in '' $ac_executable_extensions; do 3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3497 ac_cv_prog_AWK="$ac_prog" 3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3499 break 2 3500 fi 3501 done 3502 done 3503 IFS=$as_save_IFS 3504 3505 fi 3506 fi 3507 AWK=$ac_cv_prog_AWK 3508 if test -n "$AWK"; then 3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3510 printf "%s\n" "$AWK" >&6; } 3511 else 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3513 printf "%s\n" "no" >&6; } 3514 fi 3515 3516 3517 test -n "$AWK" && break 3518 done 3519 3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3521 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3522 set x ${MAKE-make} 3523 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3524 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3525 then : 3526 printf %s "(cached) " >&6 3527 else $as_nop 3528 cat >conftest.make <<\_ACEOF 3529 SHELL = /bin/sh 3530 all: 3531 @echo '@@@%%%=$(MAKE)=@@@%%%' 3532 _ACEOF 3533 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3534 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3535 *@@@%%%=?*=@@@%%%*) 3536 eval ac_cv_prog_make_${ac_make}_set=yes;; 3537 *) 3538 eval ac_cv_prog_make_${ac_make}_set=no;; 3539 esac 3540 rm -f conftest.make 3541 fi 3542 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3544 printf "%s\n" "yes" >&6; } 3545 SET_MAKE= 3546 else 3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3548 printf "%s\n" "no" >&6; } 3549 SET_MAKE="MAKE=${MAKE-make}" 3550 fi 3551 3552 rm -rf .tst 2>/dev/null 3553 mkdir .tst 2>/dev/null 3554 if test -d .tst; then 3555 am__leading_dot=. 3556 else 3557 am__leading_dot=_ 3558 fi 3559 rmdir .tst 2>/dev/null 3560 3561 # Check whether --enable-silent-rules was given. 3562 if test ${enable_silent_rules+y} 3563 then : 3564 enableval=$enable_silent_rules; 3565 fi 3566 3567 case $enable_silent_rules in # ((( 3568 yes) AM_DEFAULT_VERBOSITY=0;; 3569 no) AM_DEFAULT_VERBOSITY=1;; 3570 *) AM_DEFAULT_VERBOSITY=1;; 3571 esac 3572 am_make=${MAKE-make} 3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3574 printf %s "checking whether $am_make supports nested variables... " >&6; } 3575 if test ${am_cv_make_support_nested_variables+y} 3576 then : 3577 printf %s "(cached) " >&6 3578 else $as_nop 3579 if printf "%s\n" 'TRUE=$(BAR$(V)) 3580 BAR0=false 3581 BAR1=true 3582 V=1 3583 am__doit: 3584 @$(TRUE) 3585 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3586 am_cv_make_support_nested_variables=yes 3587 else 3588 am_cv_make_support_nested_variables=no 3589 fi 3590 fi 3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3592 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3593 if test $am_cv_make_support_nested_variables = yes; then 3594 AM_V='$(V)' 3595 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3596 else 3597 AM_V=$AM_DEFAULT_VERBOSITY 3598 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3599 fi 3600 AM_BACKSLASH='\' 3601 3602 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3603 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3604 # is not polluted with repeated "-I." 3605 am__isrc=' -I$(srcdir)' 3606 # test to see if srcdir already configured 3607 if test -f $srcdir/config.status; then 3608 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3609 fi 3610 fi 3611 3612 # test whether we have cygpath 3613 if test -z "$CYGPATH_W"; then 3614 if (cygpath --version) >/dev/null 2>/dev/null; then 3615 CYGPATH_W='cygpath -w' 3616 else 3617 CYGPATH_W=echo 3618 fi 3619 fi 3620 3621 3622 # Define the identity of the package. 3623 PACKAGE='libevent' 3624 VERSION='2.1.12-stable' 3625 3626 3627 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3628 3629 3630 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3631 3632 # Some tools Automake needs. 3633 3634 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3635 3636 3637 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3638 3639 3640 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3641 3642 3643 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3644 3645 3646 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3647 3648 # For better backward compatibility. To be removed once Automake 1.9.x 3649 # dies out for good. For more background, see: 3650 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3651 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3652 mkdir_p='$(MKDIR_P)' 3653 3654 # We need awk for the "check" target (and possibly the TAP driver). The 3655 # system "awk" is bad on some platforms. 3656 # Always define AMTAR for backward compatibility. Yes, it's still used 3657 # in the wild :-( We should find a proper way to deprecate it ... 3658 AMTAR='$${TAR-tar}' 3659 3660 3661 # We'll loop over all known methods to create a tar archive until one works. 3662 _am_tools='gnutar pax cpio none' 3663 3664 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3665 3666 3667 3668 3669 3670 # Variables for tags utilities; see am/tags.am 3671 if test -z "$CTAGS"; then 3672 CTAGS=ctags 3673 fi 3674 3675 if test -z "$ETAGS"; then 3676 ETAGS=etags 3677 fi 3678 3679 if test -z "$CSCOPE"; then 3680 CSCOPE=cscope 3681 fi 3682 3683 3684 3685 # POSIX will say in a future version that running "rm -f" with no argument 3686 # is OK; and we want to be able to make that assumption in our Makefile 3687 # recipes. So use an aggressive probe to check that the usage we want is 3688 # actually supported "in the wild" to an acceptable degree. 3689 # See automake bug#10828. 3690 # To make any issue more visible, cause the running configure to be aborted 3691 # by default if the 'rm' program in use doesn't match our expectations; the 3692 # user can still override this though. 3693 if rm -f && rm -fr && rm -rf; then : OK; else 3694 cat >&2 <<'END' 3695 Oops! 3696 3697 Your 'rm' program seems unable to run without file operands specified 3698 on the command line, even when the '-f' option is present. This is contrary 3699 to the behaviour of most rm programs out there, and not conforming with 3700 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3701 3702 Please tell bug-automake@gnu.org about your system, including the value 3703 of your $PATH and any error possibly output before this message. This 3704 can help us improve future automake versions. 3705 3706 END 3707 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3708 echo 'Configuration will proceed anyway, since you have set the' >&2 3709 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3710 echo >&2 3711 else 3712 cat >&2 <<'END' 3713 Aborting the configuration process, to ensure you take notice of the issue. 3714 3715 You can download and install GNU coreutils to get an 'rm' implementation 3716 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3717 3718 If you want to complete the configuration process using your problematic 3719 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3720 to "yes", and re-run configure. 3721 3722 END 3723 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3724 fi 3725 fi 3726 3727 # Check whether --enable-silent-rules was given. 3728 if test ${enable_silent_rules+y} 3729 then : 3730 enableval=$enable_silent_rules; 3731 fi 3732 3733 case $enable_silent_rules in # ((( 3734 yes) AM_DEFAULT_VERBOSITY=0;; 3735 no) AM_DEFAULT_VERBOSITY=1;; 3736 *) AM_DEFAULT_VERBOSITY=0;; 3737 esac 3738 am_make=${MAKE-make} 3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3740 printf %s "checking whether $am_make supports nested variables... " >&6; } 3741 if test ${am_cv_make_support_nested_variables+y} 3742 then : 3743 printf %s "(cached) " >&6 3744 else $as_nop 3745 if printf "%s\n" 'TRUE=$(BAR$(V)) 3746 BAR0=false 3747 BAR1=true 3748 V=1 3749 am__doit: 3750 @$(TRUE) 3751 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3752 am_cv_make_support_nested_variables=yes 3753 else 3754 am_cv_make_support_nested_variables=no 3755 fi 3756 fi 3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3758 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3759 if test $am_cv_make_support_nested_variables = yes; then 3760 AM_V='$(V)' 3761 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3762 else 3763 AM_V=$AM_DEFAULT_VERBOSITY 3764 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3765 fi 3766 AM_BACKSLASH='\' 3767 3768 ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in" 3769 3770 3771 printf "%s\n" "#define NUMERIC_VERSION 0x02010c00" >>confdefs.h 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 DEPDIR="${am__leading_dot}deps" 3786 3787 ac_config_commands="$ac_config_commands depfiles" 3788 3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3790 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3791 cat > confinc.mk << 'END' 3792 am__doit: 3793 @echo this is the am__doit target >confinc.out 3794 .PHONY: am__doit 3795 END 3796 am__include="#" 3797 am__quote= 3798 # BSD make does it like this. 3799 echo '.include "confinc.mk" # ignored' > confmf.BSD 3800 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3801 echo 'include confinc.mk # ignored' > confmf.GNU 3802 _am_result=no 3803 for s in GNU BSD; do 3804 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3805 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3806 ac_status=$? 3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3808 (exit $ac_status); } 3809 case $?:`cat confinc.out 2>/dev/null` in #( 3810 '0:this is the am__doit target') : 3811 case $s in #( 3812 BSD) : 3813 am__include='.include' am__quote='"' ;; #( 3814 *) : 3815 am__include='include' am__quote='' ;; 3816 esac ;; #( 3817 *) : 3818 ;; 3819 esac 3820 if test "$am__include" != "#"; then 3821 _am_result="yes ($s style)" 3822 break 3823 fi 3824 done 3825 rm -f confinc.* confmf.* 3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3827 printf "%s\n" "${_am_result}" >&6; } 3828 3829 # Check whether --enable-dependency-tracking was given. 3830 if test ${enable_dependency_tracking+y} 3831 then : 3832 enableval=$enable_dependency_tracking; 3833 fi 3834 3835 if test "x$enable_dependency_tracking" != xno; then 3836 am_depcomp="$ac_aux_dir/depcomp" 3837 AMDEPBACKSLASH='\' 3838 am__nodep='_no' 3839 fi 3840 if test "x$enable_dependency_tracking" != xno; then 3841 AMDEP_TRUE= 3842 AMDEP_FALSE='#' 3843 else 3844 AMDEP_TRUE='#' 3845 AMDEP_FALSE= 3846 fi 3847 3848 3849 ac_ext=c 3850 ac_cpp='$CPP $CPPFLAGS' 3851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3853 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3854 if test -n "$ac_tool_prefix"; then 3855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3856 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3858 printf %s "checking for $ac_word... " >&6; } 3859 if test ${ac_cv_prog_CC+y} 3860 then : 3861 printf %s "(cached) " >&6 3862 else $as_nop 3863 if test -n "$CC"; then 3864 ac_cv_prog_CC="$CC" # Let the user override the test. 3865 else 3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3867 for as_dir in $PATH 3868 do 3869 IFS=$as_save_IFS 3870 case $as_dir in #((( 3871 '') as_dir=./ ;; 3872 */) ;; 3873 *) as_dir=$as_dir/ ;; 3874 esac 3875 for ac_exec_ext in '' $ac_executable_extensions; do 3876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3877 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3879 break 2 3880 fi 3881 done 3882 done 3883 IFS=$as_save_IFS 3884 3885 fi 3886 fi 3887 CC=$ac_cv_prog_CC 3888 if test -n "$CC"; then 3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3890 printf "%s\n" "$CC" >&6; } 3891 else 3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3893 printf "%s\n" "no" >&6; } 3894 fi 3895 3896 3897 fi 3898 if test -z "$ac_cv_prog_CC"; then 3899 ac_ct_CC=$CC 3900 # Extract the first word of "gcc", so it can be a program name with args. 3901 set dummy gcc; ac_word=$2 3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3903 printf %s "checking for $ac_word... " >&6; } 3904 if test ${ac_cv_prog_ac_ct_CC+y} 3905 then : 3906 printf %s "(cached) " >&6 3907 else $as_nop 3908 if test -n "$ac_ct_CC"; then 3909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3910 else 3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3912 for as_dir in $PATH 3913 do 3914 IFS=$as_save_IFS 3915 case $as_dir in #((( 3916 '') as_dir=./ ;; 3917 */) ;; 3918 *) as_dir=$as_dir/ ;; 3919 esac 3920 for ac_exec_ext in '' $ac_executable_extensions; do 3921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3922 ac_cv_prog_ac_ct_CC="gcc" 3923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3924 break 2 3925 fi 3926 done 3927 done 3928 IFS=$as_save_IFS 3929 3930 fi 3931 fi 3932 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3933 if test -n "$ac_ct_CC"; then 3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3935 printf "%s\n" "$ac_ct_CC" >&6; } 3936 else 3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3938 printf "%s\n" "no" >&6; } 3939 fi 3940 3941 if test "x$ac_ct_CC" = x; then 3942 CC="" 3943 else 3944 case $cross_compiling:$ac_tool_warned in 3945 yes:) 3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3947 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3948 ac_tool_warned=yes ;; 3949 esac 3950 CC=$ac_ct_CC 3951 fi 3952 else 3953 CC="$ac_cv_prog_CC" 3954 fi 3955 3956 if test -z "$CC"; then 3957 if test -n "$ac_tool_prefix"; then 3958 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3959 set dummy ${ac_tool_prefix}cc; ac_word=$2 3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3961 printf %s "checking for $ac_word... " >&6; } 3962 if test ${ac_cv_prog_CC+y} 3963 then : 3964 printf %s "(cached) " >&6 3965 else $as_nop 3966 if test -n "$CC"; then 3967 ac_cv_prog_CC="$CC" # Let the user override the test. 3968 else 3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3970 for as_dir in $PATH 3971 do 3972 IFS=$as_save_IFS 3973 case $as_dir in #((( 3974 '') as_dir=./ ;; 3975 */) ;; 3976 *) as_dir=$as_dir/ ;; 3977 esac 3978 for ac_exec_ext in '' $ac_executable_extensions; do 3979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3980 ac_cv_prog_CC="${ac_tool_prefix}cc" 3981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3982 break 2 3983 fi 3984 done 3985 done 3986 IFS=$as_save_IFS 3987 3988 fi 3989 fi 3990 CC=$ac_cv_prog_CC 3991 if test -n "$CC"; then 3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3993 printf "%s\n" "$CC" >&6; } 3994 else 3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3996 printf "%s\n" "no" >&6; } 3997 fi 3998 3999 4000 fi 4001 fi 4002 if test -z "$CC"; then 4003 # Extract the first word of "cc", so it can be a program name with args. 4004 set dummy cc; ac_word=$2 4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4006 printf %s "checking for $ac_word... " >&6; } 4007 if test ${ac_cv_prog_CC+y} 4008 then : 4009 printf %s "(cached) " >&6 4010 else $as_nop 4011 if test -n "$CC"; then 4012 ac_cv_prog_CC="$CC" # Let the user override the test. 4013 else 4014 ac_prog_rejected=no 4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016 for as_dir in $PATH 4017 do 4018 IFS=$as_save_IFS 4019 case $as_dir in #((( 4020 '') as_dir=./ ;; 4021 */) ;; 4022 *) as_dir=$as_dir/ ;; 4023 esac 4024 for ac_exec_ext in '' $ac_executable_extensions; do 4025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4026 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4027 ac_prog_rejected=yes 4028 continue 4029 fi 4030 ac_cv_prog_CC="cc" 4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4032 break 2 4033 fi 4034 done 4035 done 4036 IFS=$as_save_IFS 4037 4038 if test $ac_prog_rejected = yes; then 4039 # We found a bogon in the path, so make sure we never use it. 4040 set dummy $ac_cv_prog_CC 4041 shift 4042 if test $# != 0; then 4043 # We chose a different compiler from the bogus one. 4044 # However, it has the same basename, so the bogon will be chosen 4045 # first if we set CC to just the basename; use the full file name. 4046 shift 4047 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4048 fi 4049 fi 4050 fi 4051 fi 4052 CC=$ac_cv_prog_CC 4053 if test -n "$CC"; then 4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4055 printf "%s\n" "$CC" >&6; } 4056 else 4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4058 printf "%s\n" "no" >&6; } 4059 fi 4060 4061 4062 fi 4063 if test -z "$CC"; then 4064 if test -n "$ac_tool_prefix"; then 4065 for ac_prog in cl.exe 4066 do 4067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4070 printf %s "checking for $ac_word... " >&6; } 4071 if test ${ac_cv_prog_CC+y} 4072 then : 4073 printf %s "(cached) " >&6 4074 else $as_nop 4075 if test -n "$CC"; then 4076 ac_cv_prog_CC="$CC" # Let the user override the test. 4077 else 4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4079 for as_dir in $PATH 4080 do 4081 IFS=$as_save_IFS 4082 case $as_dir in #((( 4083 '') as_dir=./ ;; 4084 */) ;; 4085 *) as_dir=$as_dir/ ;; 4086 esac 4087 for ac_exec_ext in '' $ac_executable_extensions; do 4088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4091 break 2 4092 fi 4093 done 4094 done 4095 IFS=$as_save_IFS 4096 4097 fi 4098 fi 4099 CC=$ac_cv_prog_CC 4100 if test -n "$CC"; then 4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4102 printf "%s\n" "$CC" >&6; } 4103 else 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4105 printf "%s\n" "no" >&6; } 4106 fi 4107 4108 4109 test -n "$CC" && break 4110 done 4111 fi 4112 if test -z "$CC"; then 4113 ac_ct_CC=$CC 4114 for ac_prog in cl.exe 4115 do 4116 # Extract the first word of "$ac_prog", so it can be a program name with args. 4117 set dummy $ac_prog; ac_word=$2 4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4119 printf %s "checking for $ac_word... " >&6; } 4120 if test ${ac_cv_prog_ac_ct_CC+y} 4121 then : 4122 printf %s "(cached) " >&6 4123 else $as_nop 4124 if test -n "$ac_ct_CC"; then 4125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4126 else 4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4128 for as_dir in $PATH 4129 do 4130 IFS=$as_save_IFS 4131 case $as_dir in #((( 4132 '') as_dir=./ ;; 4133 */) ;; 4134 *) as_dir=$as_dir/ ;; 4135 esac 4136 for ac_exec_ext in '' $ac_executable_extensions; do 4137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4138 ac_cv_prog_ac_ct_CC="$ac_prog" 4139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4140 break 2 4141 fi 4142 done 4143 done 4144 IFS=$as_save_IFS 4145 4146 fi 4147 fi 4148 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4149 if test -n "$ac_ct_CC"; then 4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4151 printf "%s\n" "$ac_ct_CC" >&6; } 4152 else 4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4154 printf "%s\n" "no" >&6; } 4155 fi 4156 4157 4158 test -n "$ac_ct_CC" && break 4159 done 4160 4161 if test "x$ac_ct_CC" = x; then 4162 CC="" 4163 else 4164 case $cross_compiling:$ac_tool_warned in 4165 yes:) 4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4167 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4168 ac_tool_warned=yes ;; 4169 esac 4170 CC=$ac_ct_CC 4171 fi 4172 fi 4173 4174 fi 4175 if test -z "$CC"; then 4176 if test -n "$ac_tool_prefix"; then 4177 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4178 set dummy ${ac_tool_prefix}clang; ac_word=$2 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4180 printf %s "checking for $ac_word... " >&6; } 4181 if test ${ac_cv_prog_CC+y} 4182 then : 4183 printf %s "(cached) " >&6 4184 else $as_nop 4185 if test -n "$CC"; then 4186 ac_cv_prog_CC="$CC" # Let the user override the test. 4187 else 4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189 for as_dir in $PATH 4190 do 4191 IFS=$as_save_IFS 4192 case $as_dir in #((( 4193 '') as_dir=./ ;; 4194 */) ;; 4195 *) as_dir=$as_dir/ ;; 4196 esac 4197 for ac_exec_ext in '' $ac_executable_extensions; do 4198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4199 ac_cv_prog_CC="${ac_tool_prefix}clang" 4200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4201 break 2 4202 fi 4203 done 4204 done 4205 IFS=$as_save_IFS 4206 4207 fi 4208 fi 4209 CC=$ac_cv_prog_CC 4210 if test -n "$CC"; then 4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4212 printf "%s\n" "$CC" >&6; } 4213 else 4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4215 printf "%s\n" "no" >&6; } 4216 fi 4217 4218 4219 fi 4220 if test -z "$ac_cv_prog_CC"; then 4221 ac_ct_CC=$CC 4222 # Extract the first word of "clang", so it can be a program name with args. 4223 set dummy clang; ac_word=$2 4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4225 printf %s "checking for $ac_word... " >&6; } 4226 if test ${ac_cv_prog_ac_ct_CC+y} 4227 then : 4228 printf %s "(cached) " >&6 4229 else $as_nop 4230 if test -n "$ac_ct_CC"; then 4231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4232 else 4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4234 for as_dir in $PATH 4235 do 4236 IFS=$as_save_IFS 4237 case $as_dir in #((( 4238 '') as_dir=./ ;; 4239 */) ;; 4240 *) as_dir=$as_dir/ ;; 4241 esac 4242 for ac_exec_ext in '' $ac_executable_extensions; do 4243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4244 ac_cv_prog_ac_ct_CC="clang" 4245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4246 break 2 4247 fi 4248 done 4249 done 4250 IFS=$as_save_IFS 4251 4252 fi 4253 fi 4254 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4255 if test -n "$ac_ct_CC"; then 4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4257 printf "%s\n" "$ac_ct_CC" >&6; } 4258 else 4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4260 printf "%s\n" "no" >&6; } 4261 fi 4262 4263 if test "x$ac_ct_CC" = x; then 4264 CC="" 4265 else 4266 case $cross_compiling:$ac_tool_warned in 4267 yes:) 4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4269 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4270 ac_tool_warned=yes ;; 4271 esac 4272 CC=$ac_ct_CC 4273 fi 4274 else 4275 CC="$ac_cv_prog_CC" 4276 fi 4277 4278 fi 4279 4280 4281 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4282 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4283 as_fn_error $? "no acceptable C compiler found in \$PATH 4284 See \`config.log' for more details" "$LINENO" 5; } 4285 4286 # Provide some information about the compiler. 4287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4288 set X $ac_compile 4289 ac_compiler=$2 4290 for ac_option in --version -v -V -qversion -version; do 4291 { { ac_try="$ac_compiler $ac_option >&5" 4292 case "(($ac_try" in 4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4294 *) ac_try_echo=$ac_try;; 4295 esac 4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4297 printf "%s\n" "$ac_try_echo"; } >&5 4298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4299 ac_status=$? 4300 if test -s conftest.err; then 4301 sed '10a\ 4302 ... rest of stderr output deleted ... 4303 10q' conftest.err >conftest.er1 4304 cat conftest.er1 >&5 4305 fi 4306 rm -f conftest.er1 conftest.err 4307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4308 test $ac_status = 0; } 4309 done 4310 4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4312 /* end confdefs.h. */ 4313 4314 int 4315 main (void) 4316 { 4317 4318 ; 4319 return 0; 4320 } 4321 _ACEOF 4322 ac_clean_files_save=$ac_clean_files 4323 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4324 # Try to create an executable without -o first, disregard a.out. 4325 # It will help us diagnose broken compilers, and finding out an intuition 4326 # of exeext. 4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4328 printf %s "checking whether the C compiler works... " >&6; } 4329 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4330 4331 # The possible output files: 4332 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4333 4334 ac_rmfiles= 4335 for ac_file in $ac_files 4336 do 4337 case $ac_file in 4338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4339 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4340 esac 4341 done 4342 rm -f $ac_rmfiles 4343 4344 if { { ac_try="$ac_link_default" 4345 case "(($ac_try" in 4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4347 *) ac_try_echo=$ac_try;; 4348 esac 4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4350 printf "%s\n" "$ac_try_echo"; } >&5 4351 (eval "$ac_link_default") 2>&5 4352 ac_status=$? 4353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4354 test $ac_status = 0; } 4355 then : 4356 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4357 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4358 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4359 # so that the user can short-circuit this test for compilers unknown to 4360 # Autoconf. 4361 for ac_file in $ac_files '' 4362 do 4363 test -f "$ac_file" || continue 4364 case $ac_file in 4365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4366 ;; 4367 [ab].out ) 4368 # We found the default executable, but exeext='' is most 4369 # certainly right. 4370 break;; 4371 *.* ) 4372 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4373 then :; else 4374 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4375 fi 4376 # We set ac_cv_exeext here because the later test for it is not 4377 # safe: cross compilers may not add the suffix if given an `-o' 4378 # argument, so we may need to know it at that point already. 4379 # Even if this section looks crufty: it has the advantage of 4380 # actually working. 4381 break;; 4382 * ) 4383 break;; 4384 esac 4385 done 4386 test "$ac_cv_exeext" = no && ac_cv_exeext= 4387 4388 else $as_nop 4389 ac_file='' 4390 fi 4391 if test -z "$ac_file" 4392 then : 4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4394 printf "%s\n" "no" >&6; } 4395 printf "%s\n" "$as_me: failed program was:" >&5 4396 sed 's/^/| /' conftest.$ac_ext >&5 4397 4398 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4399 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4400 as_fn_error 77 "C compiler cannot create executables 4401 See \`config.log' for more details" "$LINENO" 5; } 4402 else $as_nop 4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4404 printf "%s\n" "yes" >&6; } 4405 fi 4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4407 printf %s "checking for C compiler default output file name... " >&6; } 4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4409 printf "%s\n" "$ac_file" >&6; } 4410 ac_exeext=$ac_cv_exeext 4411 4412 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4413 ac_clean_files=$ac_clean_files_save 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4415 printf %s "checking for suffix of executables... " >&6; } 4416 if { { ac_try="$ac_link" 4417 case "(($ac_try" in 4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4419 *) ac_try_echo=$ac_try;; 4420 esac 4421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4422 printf "%s\n" "$ac_try_echo"; } >&5 4423 (eval "$ac_link") 2>&5 4424 ac_status=$? 4425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4426 test $ac_status = 0; } 4427 then : 4428 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4429 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4430 # work properly (i.e., refer to `conftest.exe'), while it won't with 4431 # `rm'. 4432 for ac_file in conftest.exe conftest conftest.*; do 4433 test -f "$ac_file" || continue 4434 case $ac_file in 4435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4436 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4437 break;; 4438 * ) break;; 4439 esac 4440 done 4441 else $as_nop 4442 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4443 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4444 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4445 See \`config.log' for more details" "$LINENO" 5; } 4446 fi 4447 rm -f conftest conftest$ac_cv_exeext 4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4449 printf "%s\n" "$ac_cv_exeext" >&6; } 4450 4451 rm -f conftest.$ac_ext 4452 EXEEXT=$ac_cv_exeext 4453 ac_exeext=$EXEEXT 4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455 /* end confdefs.h. */ 4456 #include <stdio.h> 4457 int 4458 main (void) 4459 { 4460 FILE *f = fopen ("conftest.out", "w"); 4461 return ferror (f) || fclose (f) != 0; 4462 4463 ; 4464 return 0; 4465 } 4466 _ACEOF 4467 ac_clean_files="$ac_clean_files conftest.out" 4468 # Check that the compiler produces executables we can run. If not, either 4469 # the compiler is broken, or we cross compile. 4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4471 printf %s "checking whether we are cross compiling... " >&6; } 4472 if test "$cross_compiling" != yes; then 4473 { { ac_try="$ac_link" 4474 case "(($ac_try" in 4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4476 *) ac_try_echo=$ac_try;; 4477 esac 4478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4479 printf "%s\n" "$ac_try_echo"; } >&5 4480 (eval "$ac_link") 2>&5 4481 ac_status=$? 4482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4483 test $ac_status = 0; } 4484 if { ac_try='./conftest$ac_cv_exeext' 4485 { { case "(($ac_try" in 4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4487 *) ac_try_echo=$ac_try;; 4488 esac 4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4490 printf "%s\n" "$ac_try_echo"; } >&5 4491 (eval "$ac_try") 2>&5 4492 ac_status=$? 4493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4494 test $ac_status = 0; }; }; then 4495 cross_compiling=no 4496 else 4497 if test "$cross_compiling" = maybe; then 4498 cross_compiling=yes 4499 else 4500 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4501 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4502 as_fn_error 77 "cannot run C compiled programs. 4503 If you meant to cross compile, use \`--host'. 4504 See \`config.log' for more details" "$LINENO" 5; } 4505 fi 4506 fi 4507 fi 4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4509 printf "%s\n" "$cross_compiling" >&6; } 4510 4511 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4512 ac_clean_files=$ac_clean_files_save 4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4514 printf %s "checking for suffix of object files... " >&6; } 4515 if test ${ac_cv_objext+y} 4516 then : 4517 printf %s "(cached) " >&6 4518 else $as_nop 4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4520 /* end confdefs.h. */ 4521 4522 int 4523 main (void) 4524 { 4525 4526 ; 4527 return 0; 4528 } 4529 _ACEOF 4530 rm -f conftest.o conftest.obj 4531 if { { ac_try="$ac_compile" 4532 case "(($ac_try" in 4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4534 *) ac_try_echo=$ac_try;; 4535 esac 4536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4537 printf "%s\n" "$ac_try_echo"; } >&5 4538 (eval "$ac_compile") 2>&5 4539 ac_status=$? 4540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4541 test $ac_status = 0; } 4542 then : 4543 for ac_file in conftest.o conftest.obj conftest.*; do 4544 test -f "$ac_file" || continue; 4545 case $ac_file in 4546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4547 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4548 break;; 4549 esac 4550 done 4551 else $as_nop 4552 printf "%s\n" "$as_me: failed program was:" >&5 4553 sed 's/^/| /' conftest.$ac_ext >&5 4554 4555 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4556 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4557 as_fn_error $? "cannot compute suffix of object files: cannot compile 4558 See \`config.log' for more details" "$LINENO" 5; } 4559 fi 4560 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4561 fi 4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4563 printf "%s\n" "$ac_cv_objext" >&6; } 4564 OBJEXT=$ac_cv_objext 4565 ac_objext=$OBJEXT 4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4567 printf %s "checking whether the compiler supports GNU C... " >&6; } 4568 if test ${ac_cv_c_compiler_gnu+y} 4569 then : 4570 printf %s "(cached) " >&6 4571 else $as_nop 4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4573 /* end confdefs.h. */ 4574 4575 int 4576 main (void) 4577 { 4578 #ifndef __GNUC__ 4579 choke me 4580 #endif 4581 4582 ; 4583 return 0; 4584 } 4585 _ACEOF 4586 if ac_fn_c_try_compile "$LINENO" 4587 then : 4588 ac_compiler_gnu=yes 4589 else $as_nop 4590 ac_compiler_gnu=no 4591 fi 4592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4593 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4594 4595 fi 4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4597 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4598 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4599 4600 if test $ac_compiler_gnu = yes; then 4601 GCC=yes 4602 else 4603 GCC= 4604 fi 4605 ac_test_CFLAGS=${CFLAGS+y} 4606 ac_save_CFLAGS=$CFLAGS 4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4608 printf %s "checking whether $CC accepts -g... " >&6; } 4609 if test ${ac_cv_prog_cc_g+y} 4610 then : 4611 printf %s "(cached) " >&6 4612 else $as_nop 4613 ac_save_c_werror_flag=$ac_c_werror_flag 4614 ac_c_werror_flag=yes 4615 ac_cv_prog_cc_g=no 4616 CFLAGS="-g" 4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4618 /* end confdefs.h. */ 4619 4620 int 4621 main (void) 4622 { 4623 4624 ; 4625 return 0; 4626 } 4627 _ACEOF 4628 if ac_fn_c_try_compile "$LINENO" 4629 then : 4630 ac_cv_prog_cc_g=yes 4631 else $as_nop 4632 CFLAGS="" 4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4634 /* end confdefs.h. */ 4635 4636 int 4637 main (void) 4638 { 4639 4640 ; 4641 return 0; 4642 } 4643 _ACEOF 4644 if ac_fn_c_try_compile "$LINENO" 4645 then : 4646 4647 else $as_nop 4648 ac_c_werror_flag=$ac_save_c_werror_flag 4649 CFLAGS="-g" 4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4651 /* end confdefs.h. */ 4652 4653 int 4654 main (void) 4655 { 4656 4657 ; 4658 return 0; 4659 } 4660 _ACEOF 4661 if ac_fn_c_try_compile "$LINENO" 4662 then : 4663 ac_cv_prog_cc_g=yes 4664 fi 4665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4666 fi 4667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4668 fi 4669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4670 ac_c_werror_flag=$ac_save_c_werror_flag 4671 fi 4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4673 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4674 if test $ac_test_CFLAGS; then 4675 CFLAGS=$ac_save_CFLAGS 4676 elif test $ac_cv_prog_cc_g = yes; then 4677 if test "$GCC" = yes; then 4678 CFLAGS="-g -O2" 4679 else 4680 CFLAGS="-g" 4681 fi 4682 else 4683 if test "$GCC" = yes; then 4684 CFLAGS="-O2" 4685 else 4686 CFLAGS= 4687 fi 4688 fi 4689 ac_prog_cc_stdc=no 4690 if test x$ac_prog_cc_stdc = xno 4691 then : 4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4693 printf %s "checking for $CC option to enable C11 features... " >&6; } 4694 if test ${ac_cv_prog_cc_c11+y} 4695 then : 4696 printf %s "(cached) " >&6 4697 else $as_nop 4698 ac_cv_prog_cc_c11=no 4699 ac_save_CC=$CC 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701 /* end confdefs.h. */ 4702 $ac_c_conftest_c11_program 4703 _ACEOF 4704 for ac_arg in '' -std=gnu11 4705 do 4706 CC="$ac_save_CC $ac_arg" 4707 if ac_fn_c_try_compile "$LINENO" 4708 then : 4709 ac_cv_prog_cc_c11=$ac_arg 4710 fi 4711 rm -f core conftest.err conftest.$ac_objext conftest.beam 4712 test "x$ac_cv_prog_cc_c11" != "xno" && break 4713 done 4714 rm -f conftest.$ac_ext 4715 CC=$ac_save_CC 4716 fi 4717 4718 if test "x$ac_cv_prog_cc_c11" = xno 4719 then : 4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4721 printf "%s\n" "unsupported" >&6; } 4722 else $as_nop 4723 if test "x$ac_cv_prog_cc_c11" = x 4724 then : 4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4726 printf "%s\n" "none needed" >&6; } 4727 else $as_nop 4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4729 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4730 CC="$CC $ac_cv_prog_cc_c11" 4731 fi 4732 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4733 ac_prog_cc_stdc=c11 4734 fi 4735 fi 4736 if test x$ac_prog_cc_stdc = xno 4737 then : 4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4739 printf %s "checking for $CC option to enable C99 features... " >&6; } 4740 if test ${ac_cv_prog_cc_c99+y} 4741 then : 4742 printf %s "(cached) " >&6 4743 else $as_nop 4744 ac_cv_prog_cc_c99=no 4745 ac_save_CC=$CC 4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747 /* end confdefs.h. */ 4748 $ac_c_conftest_c99_program 4749 _ACEOF 4750 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4751 do 4752 CC="$ac_save_CC $ac_arg" 4753 if ac_fn_c_try_compile "$LINENO" 4754 then : 4755 ac_cv_prog_cc_c99=$ac_arg 4756 fi 4757 rm -f core conftest.err conftest.$ac_objext conftest.beam 4758 test "x$ac_cv_prog_cc_c99" != "xno" && break 4759 done 4760 rm -f conftest.$ac_ext 4761 CC=$ac_save_CC 4762 fi 4763 4764 if test "x$ac_cv_prog_cc_c99" = xno 4765 then : 4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4767 printf "%s\n" "unsupported" >&6; } 4768 else $as_nop 4769 if test "x$ac_cv_prog_cc_c99" = x 4770 then : 4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4772 printf "%s\n" "none needed" >&6; } 4773 else $as_nop 4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4775 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4776 CC="$CC $ac_cv_prog_cc_c99" 4777 fi 4778 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4779 ac_prog_cc_stdc=c99 4780 fi 4781 fi 4782 if test x$ac_prog_cc_stdc = xno 4783 then : 4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4785 printf %s "checking for $CC option to enable C89 features... " >&6; } 4786 if test ${ac_cv_prog_cc_c89+y} 4787 then : 4788 printf %s "(cached) " >&6 4789 else $as_nop 4790 ac_cv_prog_cc_c89=no 4791 ac_save_CC=$CC 4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4793 /* end confdefs.h. */ 4794 $ac_c_conftest_c89_program 4795 _ACEOF 4796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4797 do 4798 CC="$ac_save_CC $ac_arg" 4799 if ac_fn_c_try_compile "$LINENO" 4800 then : 4801 ac_cv_prog_cc_c89=$ac_arg 4802 fi 4803 rm -f core conftest.err conftest.$ac_objext conftest.beam 4804 test "x$ac_cv_prog_cc_c89" != "xno" && break 4805 done 4806 rm -f conftest.$ac_ext 4807 CC=$ac_save_CC 4808 fi 4809 4810 if test "x$ac_cv_prog_cc_c89" = xno 4811 then : 4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4813 printf "%s\n" "unsupported" >&6; } 4814 else $as_nop 4815 if test "x$ac_cv_prog_cc_c89" = x 4816 then : 4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4818 printf "%s\n" "none needed" >&6; } 4819 else $as_nop 4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4821 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4822 CC="$CC $ac_cv_prog_cc_c89" 4823 fi 4824 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4825 ac_prog_cc_stdc=c89 4826 fi 4827 fi 4828 4829 ac_ext=c 4830 ac_cpp='$CPP $CPPFLAGS' 4831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4833 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4834 4835 4836 ac_ext=c 4837 ac_cpp='$CPP $CPPFLAGS' 4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4842 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4843 if test ${am_cv_prog_cc_c_o+y} 4844 then : 4845 printf %s "(cached) " >&6 4846 else $as_nop 4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848 /* end confdefs.h. */ 4849 4850 int 4851 main (void) 4852 { 4853 4854 ; 4855 return 0; 4856 } 4857 _ACEOF 4858 # Make sure it works both with $CC and with simple cc. 4859 # Following AC_PROG_CC_C_O, we do the test twice because some 4860 # compilers refuse to overwrite an existing .o file with -o, 4861 # though they will create one. 4862 am_cv_prog_cc_c_o=yes 4863 for am_i in 1 2; do 4864 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4865 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4866 ac_status=$? 4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4868 (exit $ac_status); } \ 4869 && test -f conftest2.$ac_objext; then 4870 : OK 4871 else 4872 am_cv_prog_cc_c_o=no 4873 break 4874 fi 4875 done 4876 rm -f core conftest* 4877 unset am_i 4878 fi 4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4880 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4881 if test "$am_cv_prog_cc_c_o" != yes; then 4882 # Losing compiler, so override with the script. 4883 # FIXME: It is wrong to rewrite CC. 4884 # But if we don't then we get into trouble of one sort or another. 4885 # A longer-term fix would be to have automake use am__CC in this case, 4886 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4887 CC="$am_aux_dir/compile $CC" 4888 fi 4889 ac_ext=c 4890 ac_cpp='$CPP $CPPFLAGS' 4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4894 4895 4896 depcc="$CC" am_compiler_list= 4897 4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4899 printf %s "checking dependency style of $depcc... " >&6; } 4900 if test ${am_cv_CC_dependencies_compiler_type+y} 4901 then : 4902 printf %s "(cached) " >&6 4903 else $as_nop 4904 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4905 # We make a subdir and do the tests there. Otherwise we can end up 4906 # making bogus files that we don't know about and never remove. For 4907 # instance it was reported that on HP-UX the gcc test will end up 4908 # making a dummy file named 'D' -- because '-MD' means "put the output 4909 # in D". 4910 rm -rf conftest.dir 4911 mkdir conftest.dir 4912 # Copy depcomp to subdir because otherwise we won't find it if we're 4913 # using a relative directory. 4914 cp "$am_depcomp" conftest.dir 4915 cd conftest.dir 4916 # We will build objects and dependencies in a subdirectory because 4917 # it helps to detect inapplicable dependency modes. For instance 4918 # both Tru64's cc and ICC support -MD to output dependencies as a 4919 # side effect of compilation, but ICC will put the dependencies in 4920 # the current directory while Tru64 will put them in the object 4921 # directory. 4922 mkdir sub 4923 4924 am_cv_CC_dependencies_compiler_type=none 4925 if test "$am_compiler_list" = ""; then 4926 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4927 fi 4928 am__universal=false 4929 case " $depcc " in #( 4930 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4931 esac 4932 4933 for depmode in $am_compiler_list; do 4934 # Setup a source with many dependencies, because some compilers 4935 # like to wrap large dependency lists on column 80 (with \), and 4936 # we should not choose a depcomp mode which is confused by this. 4937 # 4938 # We need to recreate these files for each test, as the compiler may 4939 # overwrite some of them when testing with obscure command lines. 4940 # This happens at least with the AIX C compiler. 4941 : > sub/conftest.c 4942 for i in 1 2 3 4 5 6; do 4943 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4944 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4945 # Solaris 10 /bin/sh. 4946 echo '/* dummy */' > sub/conftst$i.h 4947 done 4948 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4949 4950 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4951 # mode. It turns out that the SunPro C++ compiler does not properly 4952 # handle '-M -o', and we need to detect this. Also, some Intel 4953 # versions had trouble with output in subdirs. 4954 am__obj=sub/conftest.${OBJEXT-o} 4955 am__minus_obj="-o $am__obj" 4956 case $depmode in 4957 gcc) 4958 # This depmode causes a compiler race in universal mode. 4959 test "$am__universal" = false || continue 4960 ;; 4961 nosideeffect) 4962 # After this tag, mechanisms are not by side-effect, so they'll 4963 # only be used when explicitly requested. 4964 if test "x$enable_dependency_tracking" = xyes; then 4965 continue 4966 else 4967 break 4968 fi 4969 ;; 4970 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4971 # This compiler won't grok '-c -o', but also, the minuso test has 4972 # not run yet. These depmodes are late enough in the game, and 4973 # so weak that their functioning should not be impacted. 4974 am__obj=conftest.${OBJEXT-o} 4975 am__minus_obj= 4976 ;; 4977 none) break ;; 4978 esac 4979 if depmode=$depmode \ 4980 source=sub/conftest.c object=$am__obj \ 4981 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4982 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4983 >/dev/null 2>conftest.err && 4984 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4985 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4986 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4987 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4988 # icc doesn't choke on unknown options, it will just issue warnings 4989 # or remarks (even with -Werror). So we grep stderr for any message 4990 # that says an option was ignored or not supported. 4991 # When given -MP, icc 7.0 and 7.1 complain thusly: 4992 # icc: Command line warning: ignoring option '-M'; no argument required 4993 # The diagnosis changed in icc 8.0: 4994 # icc: Command line remark: option '-MP' not supported 4995 if (grep 'ignoring option' conftest.err || 4996 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4997 am_cv_CC_dependencies_compiler_type=$depmode 4998 break 4999 fi 5000 fi 5001 done 5002 5003 cd .. 5004 rm -rf conftest.dir 5005 else 5006 am_cv_CC_dependencies_compiler_type=none 5007 fi 5008 5009 fi 5010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5011 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5012 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5013 5014 if 5015 test "x$enable_dependency_tracking" != xno \ 5016 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5017 am__fastdepCC_TRUE= 5018 am__fastdepCC_FALSE='#' 5019 else 5020 am__fastdepCC_TRUE='#' 5021 am__fastdepCC_FALSE= 5022 fi 5023 5024 5025 5026 ac_header= ac_cache= 5027 for ac_item in $ac_header_c_list 5028 do 5029 if test $ac_cache; then 5030 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5031 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5032 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5033 fi 5034 ac_header= ac_cache= 5035 elif test $ac_header; then 5036 ac_cache=$ac_item 5037 else 5038 ac_header=$ac_item 5039 fi 5040 done 5041 5042 5043 5044 5045 5046 5047 5048 5049 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5050 then : 5051 5052 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5053 5054 fi 5055 5056 5057 5058 5059 5060 5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5062 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5063 if test ${ac_cv_safe_to_define___extensions__+y} 5064 then : 5065 printf %s "(cached) " >&6 5066 else $as_nop 5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5068 /* end confdefs.h. */ 5069 5070 # define __EXTENSIONS__ 1 5071 $ac_includes_default 5072 int 5073 main (void) 5074 { 5075 5076 ; 5077 return 0; 5078 } 5079 _ACEOF 5080 if ac_fn_c_try_compile "$LINENO" 5081 then : 5082 ac_cv_safe_to_define___extensions__=yes 5083 else $as_nop 5084 ac_cv_safe_to_define___extensions__=no 5085 fi 5086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5087 fi 5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5089 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5090 5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5092 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5093 if test ${ac_cv_should_define__xopen_source+y} 5094 then : 5095 printf %s "(cached) " >&6 5096 else $as_nop 5097 ac_cv_should_define__xopen_source=no 5098 if test $ac_cv_header_wchar_h = yes 5099 then : 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101 /* end confdefs.h. */ 5102 5103 #include <wchar.h> 5104 mbstate_t x; 5105 int 5106 main (void) 5107 { 5108 5109 ; 5110 return 0; 5111 } 5112 _ACEOF 5113 if ac_fn_c_try_compile "$LINENO" 5114 then : 5115 5116 else $as_nop 5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5118 /* end confdefs.h. */ 5119 5120 #define _XOPEN_SOURCE 500 5121 #include <wchar.h> 5122 mbstate_t x; 5123 int 5124 main (void) 5125 { 5126 5127 ; 5128 return 0; 5129 } 5130 _ACEOF 5131 if ac_fn_c_try_compile "$LINENO" 5132 then : 5133 ac_cv_should_define__xopen_source=yes 5134 fi 5135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5136 fi 5137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5138 fi 5139 fi 5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5141 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5142 5143 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5144 5145 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5146 5147 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5148 5149 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5150 5151 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5152 5153 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5154 5155 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5156 5157 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5158 5159 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5160 5161 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5162 5163 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5164 5165 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5166 5167 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5168 5169 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5170 5171 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5172 5173 if test $ac_cv_header_minix_config_h = yes 5174 then : 5175 MINIX=yes 5176 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5177 5178 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5179 5180 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5181 5182 else $as_nop 5183 MINIX= 5184 fi 5185 if test $ac_cv_safe_to_define___extensions__ = yes 5186 then : 5187 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5188 5189 fi 5190 if test $ac_cv_should_define__xopen_source = yes 5191 then : 5192 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5193 5194 fi 5195 5196 5197 5198 5199 # Make sure we can run config.sub. 5200 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5201 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5202 5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5204 printf %s "checking build system type... " >&6; } 5205 if test ${ac_cv_build+y} 5206 then : 5207 printf %s "(cached) " >&6 5208 else $as_nop 5209 ac_build_alias=$build_alias 5210 test "x$ac_build_alias" = x && 5211 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5212 test "x$ac_build_alias" = x && 5213 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5214 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5215 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5216 5217 fi 5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5219 printf "%s\n" "$ac_cv_build" >&6; } 5220 case $ac_cv_build in 5221 *-*-*) ;; 5222 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5223 esac 5224 build=$ac_cv_build 5225 ac_save_IFS=$IFS; IFS='-' 5226 set x $ac_cv_build 5227 shift 5228 build_cpu=$1 5229 build_vendor=$2 5230 shift; shift 5231 # Remember, the first character of IFS is used to create $*, 5232 # except with old shells: 5233 build_os=$* 5234 IFS=$ac_save_IFS 5235 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5236 5237 5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5239 printf %s "checking host system type... " >&6; } 5240 if test ${ac_cv_host+y} 5241 then : 5242 printf %s "(cached) " >&6 5243 else $as_nop 5244 if test "x$host_alias" = x; then 5245 ac_cv_host=$ac_cv_build 5246 else 5247 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5248 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5249 fi 5250 5251 fi 5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5253 printf "%s\n" "$ac_cv_host" >&6; } 5254 case $ac_cv_host in 5255 *-*-*) ;; 5256 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5257 esac 5258 host=$ac_cv_host 5259 ac_save_IFS=$IFS; IFS='-' 5260 set x $ac_cv_host 5261 shift 5262 host_cpu=$1 5263 host_vendor=$2 5264 shift; shift 5265 # Remember, the first character of IFS is used to create $*, 5266 # except with old shells: 5267 host_os=$* 5268 IFS=$ac_save_IFS 5269 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5270 5271 5272 5273 #case "$host_os" in 5274 # 5275 # osf5*) 5276 # CFLAGS="$CFLAGS -D_OSF_SOURCE" 5277 # ;; 5278 #esac 5279 5280 5281 5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5283 printf %s "checking whether ln -s works... " >&6; } 5284 LN_S=$as_ln_s 5285 if test "$LN_S" = "ln -s"; then 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5287 printf "%s\n" "yes" >&6; } 5288 else 5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5290 printf "%s\n" "no, using $LN_S" >&6; } 5291 fi 5292 5293 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE 5294 5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5296 printf %s "checking for a sed that does not truncate output... " >&6; } 5297 if test ${ac_cv_path_SED+y} 5298 then : 5299 printf %s "(cached) " >&6 5300 else $as_nop 5301 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5302 for ac_i in 1 2 3 4 5 6 7; do 5303 ac_script="$ac_script$as_nl$ac_script" 5304 done 5305 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5306 { ac_script=; unset ac_script;} 5307 if test -z "$SED"; then 5308 ac_path_SED_found=false 5309 # Loop through the user's path and test for each of PROGNAME-LIST 5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5311 for as_dir in $PATH 5312 do 5313 IFS=$as_save_IFS 5314 case $as_dir in #((( 5315 '') as_dir=./ ;; 5316 */) ;; 5317 *) as_dir=$as_dir/ ;; 5318 esac 5319 for ac_prog in sed gsed 5320 do 5321 for ac_exec_ext in '' $ac_executable_extensions; do 5322 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5323 as_fn_executable_p "$ac_path_SED" || continue 5324 # Check for GNU ac_path_SED and select it if it is found. 5325 # Check for GNU $ac_path_SED 5326 case `"$ac_path_SED" --version 2>&1` in 5327 *GNU*) 5328 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5329 *) 5330 ac_count=0 5331 printf %s 0123456789 >"conftest.in" 5332 while : 5333 do 5334 cat "conftest.in" "conftest.in" >"conftest.tmp" 5335 mv "conftest.tmp" "conftest.in" 5336 cp "conftest.in" "conftest.nl" 5337 printf "%s\n" '' >> "conftest.nl" 5338 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5340 as_fn_arith $ac_count + 1 && ac_count=$as_val 5341 if test $ac_count -gt ${ac_path_SED_max-0}; then 5342 # Best one so far, save it but keep looking for a better one 5343 ac_cv_path_SED="$ac_path_SED" 5344 ac_path_SED_max=$ac_count 5345 fi 5346 # 10*(2^10) chars as input seems more than enough 5347 test $ac_count -gt 10 && break 5348 done 5349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5350 esac 5351 5352 $ac_path_SED_found && break 3 5353 done 5354 done 5355 done 5356 IFS=$as_save_IFS 5357 if test -z "$ac_cv_path_SED"; then 5358 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5359 fi 5360 else 5361 ac_cv_path_SED=$SED 5362 fi 5363 5364 fi 5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5366 printf "%s\n" "$ac_cv_path_SED" >&6; } 5367 SED="$ac_cv_path_SED" 5368 rm -f conftest.sed 5369 5370 5371 ac_ext=c 5372 ac_cpp='$CPP $CPPFLAGS' 5373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5375 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5377 printf %s "checking how to run the C preprocessor... " >&6; } 5378 # On Suns, sometimes $CPP names a directory. 5379 if test -n "$CPP" && test -d "$CPP"; then 5380 CPP= 5381 fi 5382 if test -z "$CPP"; then 5383 if test ${ac_cv_prog_CPP+y} 5384 then : 5385 printf %s "(cached) " >&6 5386 else $as_nop 5387 # Double quotes because $CC needs to be expanded 5388 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5389 do 5390 ac_preproc_ok=false 5391 for ac_c_preproc_warn_flag in '' yes 5392 do 5393 # Use a header file that comes with gcc, so configuring glibc 5394 # with a fresh cross-compiler works. 5395 # On the NeXT, cc -E runs the code through the compiler's parser, 5396 # not just through cpp. "Syntax error" is here to catch this case. 5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5398 /* end confdefs.h. */ 5399 #include <limits.h> 5400 Syntax error 5401 _ACEOF 5402 if ac_fn_c_try_cpp "$LINENO" 5403 then : 5404 5405 else $as_nop 5406 # Broken: fails on valid input. 5407 continue 5408 fi 5409 rm -f conftest.err conftest.i conftest.$ac_ext 5410 5411 # OK, works on sane cases. Now check whether nonexistent headers 5412 # can be detected and how. 5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5414 /* end confdefs.h. */ 5415 #include <ac_nonexistent.h> 5416 _ACEOF 5417 if ac_fn_c_try_cpp "$LINENO" 5418 then : 5419 # Broken: success on invalid input. 5420 continue 5421 else $as_nop 5422 # Passes both tests. 5423 ac_preproc_ok=: 5424 break 5425 fi 5426 rm -f conftest.err conftest.i conftest.$ac_ext 5427 5428 done 5429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5430 rm -f conftest.i conftest.err conftest.$ac_ext 5431 if $ac_preproc_ok 5432 then : 5433 break 5434 fi 5435 5436 done 5437 ac_cv_prog_CPP=$CPP 5438 5439 fi 5440 CPP=$ac_cv_prog_CPP 5441 else 5442 ac_cv_prog_CPP=$CPP 5443 fi 5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5445 printf "%s\n" "$CPP" >&6; } 5446 ac_preproc_ok=false 5447 for ac_c_preproc_warn_flag in '' yes 5448 do 5449 # Use a header file that comes with gcc, so configuring glibc 5450 # with a fresh cross-compiler works. 5451 # On the NeXT, cc -E runs the code through the compiler's parser, 5452 # not just through cpp. "Syntax error" is here to catch this case. 5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454 /* end confdefs.h. */ 5455 #include <limits.h> 5456 Syntax error 5457 _ACEOF 5458 if ac_fn_c_try_cpp "$LINENO" 5459 then : 5460 5461 else $as_nop 5462 # Broken: fails on valid input. 5463 continue 5464 fi 5465 rm -f conftest.err conftest.i conftest.$ac_ext 5466 5467 # OK, works on sane cases. Now check whether nonexistent headers 5468 # can be detected and how. 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470 /* end confdefs.h. */ 5471 #include <ac_nonexistent.h> 5472 _ACEOF 5473 if ac_fn_c_try_cpp "$LINENO" 5474 then : 5475 # Broken: success on invalid input. 5476 continue 5477 else $as_nop 5478 # Passes both tests. 5479 ac_preproc_ok=: 5480 break 5481 fi 5482 rm -f conftest.err conftest.i conftest.$ac_ext 5483 5484 done 5485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5486 rm -f conftest.i conftest.err conftest.$ac_ext 5487 if $ac_preproc_ok 5488 then : 5489 5490 else $as_nop 5491 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5492 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5493 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5494 See \`config.log' for more details" "$LINENO" 5; } 5495 fi 5496 5497 ac_ext=c 5498 ac_cpp='$CPP $CPPFLAGS' 5499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5501 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5502 5503 5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5505 printf %s "checking for grep that handles long lines and -e... " >&6; } 5506 if test ${ac_cv_path_GREP+y} 5507 then : 5508 printf %s "(cached) " >&6 5509 else $as_nop 5510 if test -z "$GREP"; then 5511 ac_path_GREP_found=false 5512 # Loop through the user's path and test for each of PROGNAME-LIST 5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5514 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5515 do 5516 IFS=$as_save_IFS 5517 case $as_dir in #((( 5518 '') as_dir=./ ;; 5519 */) ;; 5520 *) as_dir=$as_dir/ ;; 5521 esac 5522 for ac_prog in grep ggrep 5523 do 5524 for ac_exec_ext in '' $ac_executable_extensions; do 5525 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5526 as_fn_executable_p "$ac_path_GREP" || continue 5527 # Check for GNU ac_path_GREP and select it if it is found. 5528 # Check for GNU $ac_path_GREP 5529 case `"$ac_path_GREP" --version 2>&1` in 5530 *GNU*) 5531 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5532 *) 5533 ac_count=0 5534 printf %s 0123456789 >"conftest.in" 5535 while : 5536 do 5537 cat "conftest.in" "conftest.in" >"conftest.tmp" 5538 mv "conftest.tmp" "conftest.in" 5539 cp "conftest.in" "conftest.nl" 5540 printf "%s\n" 'GREP' >> "conftest.nl" 5541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5543 as_fn_arith $ac_count + 1 && ac_count=$as_val 5544 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5545 # Best one so far, save it but keep looking for a better one 5546 ac_cv_path_GREP="$ac_path_GREP" 5547 ac_path_GREP_max=$ac_count 5548 fi 5549 # 10*(2^10) chars as input seems more than enough 5550 test $ac_count -gt 10 && break 5551 done 5552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5553 esac 5554 5555 $ac_path_GREP_found && break 3 5556 done 5557 done 5558 done 5559 IFS=$as_save_IFS 5560 if test -z "$ac_cv_path_GREP"; then 5561 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5562 fi 5563 else 5564 ac_cv_path_GREP=$GREP 5565 fi 5566 5567 fi 5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5569 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5570 GREP="$ac_cv_path_GREP" 5571 5572 5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5574 printf %s "checking for egrep... " >&6; } 5575 if test ${ac_cv_path_EGREP+y} 5576 then : 5577 printf %s "(cached) " >&6 5578 else $as_nop 5579 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5580 then ac_cv_path_EGREP="$GREP -E" 5581 else 5582 if test -z "$EGREP"; then 5583 ac_path_EGREP_found=false 5584 # Loop through the user's path and test for each of PROGNAME-LIST 5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5586 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5587 do 5588 IFS=$as_save_IFS 5589 case $as_dir in #((( 5590 '') as_dir=./ ;; 5591 */) ;; 5592 *) as_dir=$as_dir/ ;; 5593 esac 5594 for ac_prog in egrep 5595 do 5596 for ac_exec_ext in '' $ac_executable_extensions; do 5597 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5598 as_fn_executable_p "$ac_path_EGREP" || continue 5599 # Check for GNU ac_path_EGREP and select it if it is found. 5600 # Check for GNU $ac_path_EGREP 5601 case `"$ac_path_EGREP" --version 2>&1` in 5602 *GNU*) 5603 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5604 *) 5605 ac_count=0 5606 printf %s 0123456789 >"conftest.in" 5607 while : 5608 do 5609 cat "conftest.in" "conftest.in" >"conftest.tmp" 5610 mv "conftest.tmp" "conftest.in" 5611 cp "conftest.in" "conftest.nl" 5612 printf "%s\n" 'EGREP' >> "conftest.nl" 5613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5615 as_fn_arith $ac_count + 1 && ac_count=$as_val 5616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5617 # Best one so far, save it but keep looking for a better one 5618 ac_cv_path_EGREP="$ac_path_EGREP" 5619 ac_path_EGREP_max=$ac_count 5620 fi 5621 # 10*(2^10) chars as input seems more than enough 5622 test $ac_count -gt 10 && break 5623 done 5624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5625 esac 5626 5627 $ac_path_EGREP_found && break 3 5628 done 5629 done 5630 done 5631 IFS=$as_save_IFS 5632 if test -z "$ac_cv_path_EGREP"; then 5633 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5634 fi 5635 else 5636 ac_cv_path_EGREP=$EGREP 5637 fi 5638 5639 fi 5640 fi 5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5642 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5643 EGREP="$ac_cv_path_EGREP" 5644 5645 5646 if test $ac_cv_c_compiler_gnu = yes; then 5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 5648 printf %s "checking whether $CC needs -traditional... " >&6; } 5649 if test ${ac_cv_prog_gcc_traditional+y} 5650 then : 5651 printf %s "(cached) " >&6 5652 else $as_nop 5653 ac_pattern="Autoconf.*'x'" 5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5655 /* end confdefs.h. */ 5656 #include <sgtty.h> 5657 Autoconf TIOCGETP 5658 _ACEOF 5659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5660 $EGREP "$ac_pattern" >/dev/null 2>&1 5661 then : 5662 ac_cv_prog_gcc_traditional=yes 5663 else $as_nop 5664 ac_cv_prog_gcc_traditional=no 5665 fi 5666 rm -rf conftest* 5667 5668 5669 if test $ac_cv_prog_gcc_traditional = no; then 5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5671 /* end confdefs.h. */ 5672 #include <termio.h> 5673 Autoconf TCGETA 5674 _ACEOF 5675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5676 $EGREP "$ac_pattern" >/dev/null 2>&1 5677 then : 5678 ac_cv_prog_gcc_traditional=yes 5679 fi 5680 rm -rf conftest* 5681 5682 fi 5683 fi 5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 5685 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } 5686 if test $ac_cv_prog_gcc_traditional = yes; then 5687 CC="$CC -traditional" 5688 fi 5689 fi 5690 5691 5692 # We need to test for at least gcc 2.95 here, because older versions don't 5693 # have -fno-strict-aliasing 5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5695 /* end confdefs.h. */ 5696 5697 int 5698 main (void) 5699 { 5700 5701 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95) 5702 #error 5703 #endif 5704 ; 5705 return 0; 5706 } 5707 _ACEOF 5708 if ac_fn_c_try_compile "$LINENO" 5709 then : 5710 have_gcc295=yes 5711 else $as_nop 5712 have_gcc295=no 5713 fi 5714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5715 5716 if test "$GCC" = "yes" ; then 5717 # Enable many gcc warnings by default... 5718 CFLAGS="$CFLAGS -Wall" 5719 # And disable the strict-aliasing optimization, since it breaks 5720 # our sockaddr-handling code in strange ways. 5721 if test x$have_gcc295 = xyes; then 5722 CFLAGS="$CFLAGS -fno-strict-aliasing" 5723 fi 5724 fi 5725 5726 # OS X Lion started deprecating the system openssl. Let's just disable 5727 # all deprecation warnings on OS X; but do so only for gcc... 5728 if test "$GCC" = "yes" ; then 5729 case "$host_os" in 5730 darwin*) 5731 CFLAGS="$CFLAGS -Wno-deprecated-declarations" 5732 ;; 5733 esac 5734 fi 5735 5736 # Check whether --enable-gcc-warnings was given. 5737 if test ${enable_gcc_warnings+y} 5738 then : 5739 enableval=$enable_gcc_warnings; 5740 fi 5741 5742 5743 # Check whether --enable-gcc-hardening was given. 5744 if test ${enable_gcc_hardening+y} 5745 then : 5746 enableval=$enable_gcc_hardening; if test x$enableval = xyes; then 5747 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all" 5748 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector" 5749 CFLAGS="$CFLAGS --param ssp-buffer-size=1" 5750 fi 5751 fi 5752 5753 5754 # Check whether --enable-thread-support was given. 5755 if test ${enable_thread_support+y} 5756 then : 5757 enableval=$enable_thread_support; 5758 else $as_nop 5759 enable_thread_support=yes 5760 fi 5761 5762 # Check whether --enable-malloc-replacement was given. 5763 if test ${enable_malloc_replacement+y} 5764 then : 5765 enableval=$enable_malloc_replacement; 5766 else $as_nop 5767 enable_malloc_replacement=yes 5768 fi 5769 5770 # Check whether --enable-openssl was given. 5771 if test ${enable_openssl+y} 5772 then : 5773 enableval=$enable_openssl; 5774 else $as_nop 5775 enable_openssl=yes 5776 fi 5777 5778 # Check whether --enable-debug-mode was given. 5779 if test ${enable_debug_mode+y} 5780 then : 5781 enableval=$enable_debug_mode; 5782 else $as_nop 5783 enable_debug_mode=yes 5784 fi 5785 5786 # Check whether --enable-libevent-install was given. 5787 if test ${enable_libevent_install+y} 5788 then : 5789 enableval=$enable_libevent_install; 5790 else $as_nop 5791 enable_libevent_install=yes 5792 fi 5793 5794 # Check whether --enable-libevent-regress was given. 5795 if test ${enable_libevent_regress+y} 5796 then : 5797 enableval=$enable_libevent_regress; 5798 else $as_nop 5799 enable_libevent_regress=yes 5800 fi 5801 5802 # Check whether --enable-samples was given. 5803 if test ${enable_samples+y} 5804 then : 5805 enableval=$enable_samples; 5806 else $as_nop 5807 enable_samples=yes 5808 fi 5809 5810 # Check whether --enable-function-sections was given. 5811 if test ${enable_function_sections+y} 5812 then : 5813 enableval=$enable_function_sections; 5814 else $as_nop 5815 enable_function_sections=no 5816 fi 5817 5818 # Check whether --enable-verbose-debug was given. 5819 if test ${enable_verbose_debug+y} 5820 then : 5821 enableval=$enable_verbose_debug; 5822 else $as_nop 5823 enable_verbose_debug=no 5824 fi 5825 5826 # Check whether --enable-clock-gettime was given. 5827 if test ${enable_clock_gettime+y} 5828 then : 5829 enableval=$enable_clock_gettime; 5830 else $as_nop 5831 enable_clock_gettime=yes 5832 fi 5833 5834 5835 5836 5837 case `pwd` in 5838 *\ * | *\ *) 5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5840 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5841 esac 5842 5843 5844 5845 macro_version='2.4.6' 5846 macro_revision='2.4.6' 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 ltmain=$ac_aux_dir/ltmain.sh 5862 5863 # Backslashify metacharacters that are still active within 5864 # double-quoted strings. 5865 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5866 5867 # Same as above, but do not quote variable references. 5868 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5869 5870 # Sed substitution to delay expansion of an escaped shell variable in a 5871 # double_quote_subst'ed string. 5872 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5873 5874 # Sed substitution to delay expansion of an escaped single quote. 5875 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5876 5877 # Sed substitution to avoid accidental globbing in evaled expressions 5878 no_glob_subst='s/\*/\\\*/g' 5879 5880 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5881 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5882 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5883 5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5885 printf %s "checking how to print strings... " >&6; } 5886 # Test print first, because it will be a builtin if present. 5887 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5888 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5889 ECHO='print -r --' 5890 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5891 ECHO='printf %s\n' 5892 else 5893 # Use this function as a fallback that always works. 5894 func_fallback_echo () 5895 { 5896 eval 'cat <<_LTECHO_EOF 5897 $1 5898 _LTECHO_EOF' 5899 } 5900 ECHO='func_fallback_echo' 5901 fi 5902 5903 # func_echo_all arg... 5904 # Invoke $ECHO with all args, space-separated. 5905 func_echo_all () 5906 { 5907 $ECHO "" 5908 } 5909 5910 case $ECHO in 5911 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5912 printf "%s\n" "printf" >&6; } ;; 5913 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5914 printf "%s\n" "print -r" >&6; } ;; 5915 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5916 printf "%s\n" "cat" >&6; } ;; 5917 esac 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5933 printf %s "checking for a sed that does not truncate output... " >&6; } 5934 if test ${ac_cv_path_SED+y} 5935 then : 5936 printf %s "(cached) " >&6 5937 else $as_nop 5938 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5939 for ac_i in 1 2 3 4 5 6 7; do 5940 ac_script="$ac_script$as_nl$ac_script" 5941 done 5942 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5943 { ac_script=; unset ac_script;} 5944 if test -z "$SED"; then 5945 ac_path_SED_found=false 5946 # Loop through the user's path and test for each of PROGNAME-LIST 5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5948 for as_dir in $PATH 5949 do 5950 IFS=$as_save_IFS 5951 case $as_dir in #((( 5952 '') as_dir=./ ;; 5953 */) ;; 5954 *) as_dir=$as_dir/ ;; 5955 esac 5956 for ac_prog in sed gsed 5957 do 5958 for ac_exec_ext in '' $ac_executable_extensions; do 5959 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5960 as_fn_executable_p "$ac_path_SED" || continue 5961 # Check for GNU ac_path_SED and select it if it is found. 5962 # Check for GNU $ac_path_SED 5963 case `"$ac_path_SED" --version 2>&1` in 5964 *GNU*) 5965 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5966 *) 5967 ac_count=0 5968 printf %s 0123456789 >"conftest.in" 5969 while : 5970 do 5971 cat "conftest.in" "conftest.in" >"conftest.tmp" 5972 mv "conftest.tmp" "conftest.in" 5973 cp "conftest.in" "conftest.nl" 5974 printf "%s\n" '' >> "conftest.nl" 5975 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5977 as_fn_arith $ac_count + 1 && ac_count=$as_val 5978 if test $ac_count -gt ${ac_path_SED_max-0}; then 5979 # Best one so far, save it but keep looking for a better one 5980 ac_cv_path_SED="$ac_path_SED" 5981 ac_path_SED_max=$ac_count 5982 fi 5983 # 10*(2^10) chars as input seems more than enough 5984 test $ac_count -gt 10 && break 5985 done 5986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5987 esac 5988 5989 $ac_path_SED_found && break 3 5990 done 5991 done 5992 done 5993 IFS=$as_save_IFS 5994 if test -z "$ac_cv_path_SED"; then 5995 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5996 fi 5997 else 5998 ac_cv_path_SED=$SED 5999 fi 6000 6001 fi 6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6003 printf "%s\n" "$ac_cv_path_SED" >&6; } 6004 SED="$ac_cv_path_SED" 6005 rm -f conftest.sed 6006 6007 test -z "$SED" && SED=sed 6008 Xsed="$SED -e 1s/^X//" 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6021 printf %s "checking for fgrep... " >&6; } 6022 if test ${ac_cv_path_FGREP+y} 6023 then : 6024 printf %s "(cached) " >&6 6025 else $as_nop 6026 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6027 then ac_cv_path_FGREP="$GREP -F" 6028 else 6029 if test -z "$FGREP"; then 6030 ac_path_FGREP_found=false 6031 # Loop through the user's path and test for each of PROGNAME-LIST 6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6033 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6034 do 6035 IFS=$as_save_IFS 6036 case $as_dir in #((( 6037 '') as_dir=./ ;; 6038 */) ;; 6039 *) as_dir=$as_dir/ ;; 6040 esac 6041 for ac_prog in fgrep 6042 do 6043 for ac_exec_ext in '' $ac_executable_extensions; do 6044 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 6045 as_fn_executable_p "$ac_path_FGREP" || continue 6046 # Check for GNU ac_path_FGREP and select it if it is found. 6047 # Check for GNU $ac_path_FGREP 6048 case `"$ac_path_FGREP" --version 2>&1` in 6049 *GNU*) 6050 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6051 *) 6052 ac_count=0 6053 printf %s 0123456789 >"conftest.in" 6054 while : 6055 do 6056 cat "conftest.in" "conftest.in" >"conftest.tmp" 6057 mv "conftest.tmp" "conftest.in" 6058 cp "conftest.in" "conftest.nl" 6059 printf "%s\n" 'FGREP' >> "conftest.nl" 6060 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6062 as_fn_arith $ac_count + 1 && ac_count=$as_val 6063 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6064 # Best one so far, save it but keep looking for a better one 6065 ac_cv_path_FGREP="$ac_path_FGREP" 6066 ac_path_FGREP_max=$ac_count 6067 fi 6068 # 10*(2^10) chars as input seems more than enough 6069 test $ac_count -gt 10 && break 6070 done 6071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6072 esac 6073 6074 $ac_path_FGREP_found && break 3 6075 done 6076 done 6077 done 6078 IFS=$as_save_IFS 6079 if test -z "$ac_cv_path_FGREP"; then 6080 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6081 fi 6082 else 6083 ac_cv_path_FGREP=$FGREP 6084 fi 6085 6086 fi 6087 fi 6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6089 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 6090 FGREP="$ac_cv_path_FGREP" 6091 6092 6093 test -z "$GREP" && GREP=grep 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 # Check whether --with-gnu-ld was given. 6114 if test ${with_gnu_ld+y} 6115 then : 6116 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6117 else $as_nop 6118 with_gnu_ld=no 6119 fi 6120 6121 ac_prog=ld 6122 if test yes = "$GCC"; then 6123 # Check if gcc -print-prog-name=ld gives a path. 6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6125 printf %s "checking for ld used by $CC... " >&6; } 6126 case $host in 6127 *-*-mingw*) 6128 # gcc leaves a trailing carriage return, which upsets mingw 6129 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6130 *) 6131 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6132 esac 6133 case $ac_prog in 6134 # Accept absolute paths. 6135 [\\/]* | ?:[\\/]*) 6136 re_direlt='/[^/][^/]*/\.\./' 6137 # Canonicalize the pathname of ld 6138 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6139 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6140 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6141 done 6142 test -z "$LD" && LD=$ac_prog 6143 ;; 6144 "") 6145 # If it fails, then pretend we aren't using GCC. 6146 ac_prog=ld 6147 ;; 6148 *) 6149 # If it is relative, then search for the first ld in PATH. 6150 with_gnu_ld=unknown 6151 ;; 6152 esac 6153 elif test yes = "$with_gnu_ld"; then 6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6155 printf %s "checking for GNU ld... " >&6; } 6156 else 6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6158 printf %s "checking for non-GNU ld... " >&6; } 6159 fi 6160 if test ${lt_cv_path_LD+y} 6161 then : 6162 printf %s "(cached) " >&6 6163 else $as_nop 6164 if test -z "$LD"; then 6165 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6166 for ac_dir in $PATH; do 6167 IFS=$lt_save_ifs 6168 test -z "$ac_dir" && ac_dir=. 6169 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6170 lt_cv_path_LD=$ac_dir/$ac_prog 6171 # Check to see if the program is GNU ld. I'd rather use --version, 6172 # but apparently some variants of GNU ld only accept -v. 6173 # Break only if it was the GNU/non-GNU ld that we prefer. 6174 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6175 *GNU* | *'with BFD'*) 6176 test no != "$with_gnu_ld" && break 6177 ;; 6178 *) 6179 test yes != "$with_gnu_ld" && break 6180 ;; 6181 esac 6182 fi 6183 done 6184 IFS=$lt_save_ifs 6185 else 6186 lt_cv_path_LD=$LD # Let the user override the test with a path. 6187 fi 6188 fi 6189 6190 LD=$lt_cv_path_LD 6191 if test -n "$LD"; then 6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6193 printf "%s\n" "$LD" >&6; } 6194 else 6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6196 printf "%s\n" "no" >&6; } 6197 fi 6198 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6200 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6201 if test ${lt_cv_prog_gnu_ld+y} 6202 then : 6203 printf %s "(cached) " >&6 6204 else $as_nop 6205 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6206 case `$LD -v 2>&1 </dev/null` in 6207 *GNU* | *'with BFD'*) 6208 lt_cv_prog_gnu_ld=yes 6209 ;; 6210 *) 6211 lt_cv_prog_gnu_ld=no 6212 ;; 6213 esac 6214 fi 6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6216 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6217 with_gnu_ld=$lt_cv_prog_gnu_ld 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6228 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6229 if test ${lt_cv_path_NM+y} 6230 then : 6231 printf %s "(cached) " >&6 6232 else $as_nop 6233 if test -n "$NM"; then 6234 # Let the user override the test. 6235 lt_cv_path_NM=$NM 6236 else 6237 lt_nm_to_check=${ac_tool_prefix}nm 6238 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6239 lt_nm_to_check="$lt_nm_to_check nm" 6240 fi 6241 for lt_tmp_nm in $lt_nm_to_check; do 6242 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6243 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6244 IFS=$lt_save_ifs 6245 test -z "$ac_dir" && ac_dir=. 6246 tmp_nm=$ac_dir/$lt_tmp_nm 6247 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6248 # Check to see if the nm accepts a BSD-compat flag. 6249 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6250 # nm: unknown option "B" ignored 6251 # Tru64's nm complains that /dev/null is an invalid object file 6252 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6253 case $build_os in 6254 mingw*) lt_bad_file=conftest.nm/nofile ;; 6255 *) lt_bad_file=/dev/null ;; 6256 esac 6257 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6258 *$lt_bad_file* | *'Invalid file or object type'*) 6259 lt_cv_path_NM="$tmp_nm -B" 6260 break 2 6261 ;; 6262 *) 6263 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6264 */dev/null*) 6265 lt_cv_path_NM="$tmp_nm -p" 6266 break 2 6267 ;; 6268 *) 6269 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6270 continue # so that we can try to find one that supports BSD flags 6271 ;; 6272 esac 6273 ;; 6274 esac 6275 fi 6276 done 6277 IFS=$lt_save_ifs 6278 done 6279 : ${lt_cv_path_NM=no} 6280 fi 6281 fi 6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6283 printf "%s\n" "$lt_cv_path_NM" >&6; } 6284 if test no != "$lt_cv_path_NM"; then 6285 NM=$lt_cv_path_NM 6286 else 6287 # Didn't find any BSD compatible name lister, look for dumpbin. 6288 if test -n "$DUMPBIN"; then : 6289 # Let the user override the test. 6290 else 6291 if test -n "$ac_tool_prefix"; then 6292 for ac_prog in dumpbin "link -dump" 6293 do 6294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6297 printf %s "checking for $ac_word... " >&6; } 6298 if test ${ac_cv_prog_DUMPBIN+y} 6299 then : 6300 printf %s "(cached) " >&6 6301 else $as_nop 6302 if test -n "$DUMPBIN"; then 6303 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6304 else 6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6306 for as_dir in $PATH 6307 do 6308 IFS=$as_save_IFS 6309 case $as_dir in #((( 6310 '') as_dir=./ ;; 6311 */) ;; 6312 *) as_dir=$as_dir/ ;; 6313 esac 6314 for ac_exec_ext in '' $ac_executable_extensions; do 6315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6316 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6318 break 2 6319 fi 6320 done 6321 done 6322 IFS=$as_save_IFS 6323 6324 fi 6325 fi 6326 DUMPBIN=$ac_cv_prog_DUMPBIN 6327 if test -n "$DUMPBIN"; then 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6329 printf "%s\n" "$DUMPBIN" >&6; } 6330 else 6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6332 printf "%s\n" "no" >&6; } 6333 fi 6334 6335 6336 test -n "$DUMPBIN" && break 6337 done 6338 fi 6339 if test -z "$DUMPBIN"; then 6340 ac_ct_DUMPBIN=$DUMPBIN 6341 for ac_prog in dumpbin "link -dump" 6342 do 6343 # Extract the first word of "$ac_prog", so it can be a program name with args. 6344 set dummy $ac_prog; ac_word=$2 6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6346 printf %s "checking for $ac_word... " >&6; } 6347 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6348 then : 6349 printf %s "(cached) " >&6 6350 else $as_nop 6351 if test -n "$ac_ct_DUMPBIN"; then 6352 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6353 else 6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6355 for as_dir in $PATH 6356 do 6357 IFS=$as_save_IFS 6358 case $as_dir in #((( 6359 '') as_dir=./ ;; 6360 */) ;; 6361 *) as_dir=$as_dir/ ;; 6362 esac 6363 for ac_exec_ext in '' $ac_executable_extensions; do 6364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6365 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6367 break 2 6368 fi 6369 done 6370 done 6371 IFS=$as_save_IFS 6372 6373 fi 6374 fi 6375 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6376 if test -n "$ac_ct_DUMPBIN"; then 6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6378 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6379 else 6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6381 printf "%s\n" "no" >&6; } 6382 fi 6383 6384 6385 test -n "$ac_ct_DUMPBIN" && break 6386 done 6387 6388 if test "x$ac_ct_DUMPBIN" = x; then 6389 DUMPBIN=":" 6390 else 6391 case $cross_compiling:$ac_tool_warned in 6392 yes:) 6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6394 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6395 ac_tool_warned=yes ;; 6396 esac 6397 DUMPBIN=$ac_ct_DUMPBIN 6398 fi 6399 fi 6400 6401 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6402 *COFF*) 6403 DUMPBIN="$DUMPBIN -symbols -headers" 6404 ;; 6405 *) 6406 DUMPBIN=: 6407 ;; 6408 esac 6409 fi 6410 6411 if test : != "$DUMPBIN"; then 6412 NM=$DUMPBIN 6413 fi 6414 fi 6415 test -z "$NM" && NM=nm 6416 6417 6418 6419 6420 6421 6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6423 printf %s "checking the name lister ($NM) interface... " >&6; } 6424 if test ${lt_cv_nm_interface+y} 6425 then : 6426 printf %s "(cached) " >&6 6427 else $as_nop 6428 lt_cv_nm_interface="BSD nm" 6429 echo "int some_variable = 0;" > conftest.$ac_ext 6430 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6431 (eval "$ac_compile" 2>conftest.err) 6432 cat conftest.err >&5 6433 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6434 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6435 cat conftest.err >&5 6436 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6437 cat conftest.out >&5 6438 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6439 lt_cv_nm_interface="MS dumpbin" 6440 fi 6441 rm -f conftest* 6442 fi 6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6444 printf "%s\n" "$lt_cv_nm_interface" >&6; } 6445 6446 # find the maximum length of command line arguments 6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6448 printf %s "checking the maximum length of command line arguments... " >&6; } 6449 if test ${lt_cv_sys_max_cmd_len+y} 6450 then : 6451 printf %s "(cached) " >&6 6452 else $as_nop 6453 i=0 6454 teststring=ABCD 6455 6456 case $build_os in 6457 msdosdjgpp*) 6458 # On DJGPP, this test can blow up pretty badly due to problems in libc 6459 # (any single argument exceeding 2000 bytes causes a buffer overrun 6460 # during glob expansion). Even if it were fixed, the result of this 6461 # check would be larger than it should be. 6462 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6463 ;; 6464 6465 gnu*) 6466 # Under GNU Hurd, this test is not required because there is 6467 # no limit to the length of command line arguments. 6468 # Libtool will interpret -1 as no limit whatsoever 6469 lt_cv_sys_max_cmd_len=-1; 6470 ;; 6471 6472 cygwin* | mingw* | cegcc*) 6473 # On Win9x/ME, this test blows up -- it succeeds, but takes 6474 # about 5 minutes as the teststring grows exponentially. 6475 # Worse, since 9x/ME are not pre-emptively multitasking, 6476 # you end up with a "frozen" computer, even though with patience 6477 # the test eventually succeeds (with a max line length of 256k). 6478 # Instead, let's just punt: use the minimum linelength reported by 6479 # all of the supported platforms: 8192 (on NT/2K/XP). 6480 lt_cv_sys_max_cmd_len=8192; 6481 ;; 6482 6483 mint*) 6484 # On MiNT this can take a long time and run out of memory. 6485 lt_cv_sys_max_cmd_len=8192; 6486 ;; 6487 6488 amigaos*) 6489 # On AmigaOS with pdksh, this test takes hours, literally. 6490 # So we just punt and use a minimum line length of 8192. 6491 lt_cv_sys_max_cmd_len=8192; 6492 ;; 6493 6494 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6495 # This has been around since 386BSD, at least. Likely further. 6496 if test -x /sbin/sysctl; then 6497 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6498 elif test -x /usr/sbin/sysctl; then 6499 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6500 else 6501 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6502 fi 6503 # And add a safety zone 6504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6506 ;; 6507 6508 interix*) 6509 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6510 lt_cv_sys_max_cmd_len=196608 6511 ;; 6512 6513 os2*) 6514 # The test takes a long time on OS/2. 6515 lt_cv_sys_max_cmd_len=8192 6516 ;; 6517 6518 osf*) 6519 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6520 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6521 # nice to cause kernel panics so lets avoid the loop below. 6522 # First set a reasonable default. 6523 lt_cv_sys_max_cmd_len=16384 6524 # 6525 if test -x /sbin/sysconfig; then 6526 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6527 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6528 esac 6529 fi 6530 ;; 6531 sco3.2v5*) 6532 lt_cv_sys_max_cmd_len=102400 6533 ;; 6534 sysv5* | sco5v6* | sysv4.2uw2*) 6535 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6536 if test -n "$kargmax"; then 6537 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6538 else 6539 lt_cv_sys_max_cmd_len=32768 6540 fi 6541 ;; 6542 *) 6543 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6544 if test -n "$lt_cv_sys_max_cmd_len" && \ 6545 test undefined != "$lt_cv_sys_max_cmd_len"; then 6546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6548 else 6549 # Make teststring a little bigger before we do anything with it. 6550 # a 1K string should be a reasonable start. 6551 for i in 1 2 3 4 5 6 7 8; do 6552 teststring=$teststring$teststring 6553 done 6554 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6555 # If test is not a shell built-in, we'll probably end up computing a 6556 # maximum length that is only half of the actual maximum length, but 6557 # we can't tell. 6558 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6559 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6560 test 17 != "$i" # 1/2 MB should be enough 6561 do 6562 i=`expr $i + 1` 6563 teststring=$teststring$teststring 6564 done 6565 # Only check the string length outside the loop. 6566 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6567 teststring= 6568 # Add a significant safety factor because C++ compilers can tack on 6569 # massive amounts of additional arguments before passing them to the 6570 # linker. It appears as though 1/2 is a usable value. 6571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6572 fi 6573 ;; 6574 esac 6575 6576 fi 6577 6578 if test -n "$lt_cv_sys_max_cmd_len"; then 6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6580 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6581 else 6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6583 printf "%s\n" "none" >&6; } 6584 fi 6585 max_cmd_len=$lt_cv_sys_max_cmd_len 6586 6587 6588 6589 6590 6591 6592 : ${CP="cp -f"} 6593 : ${MV="mv -f"} 6594 : ${RM="rm -f"} 6595 6596 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6597 lt_unset=unset 6598 else 6599 lt_unset=false 6600 fi 6601 6602 6603 6604 6605 6606 # test EBCDIC or ASCII 6607 case `echo X|tr X '\101'` in 6608 A) # ASCII based system 6609 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6610 lt_SP2NL='tr \040 \012' 6611 lt_NL2SP='tr \015\012 \040\040' 6612 ;; 6613 *) # EBCDIC based system 6614 lt_SP2NL='tr \100 \n' 6615 lt_NL2SP='tr \r\n \100\100' 6616 ;; 6617 esac 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6628 printf %s "checking how to convert $build file names to $host format... " >&6; } 6629 if test ${lt_cv_to_host_file_cmd+y} 6630 then : 6631 printf %s "(cached) " >&6 6632 else $as_nop 6633 case $host in 6634 *-*-mingw* ) 6635 case $build in 6636 *-*-mingw* ) # actually msys 6637 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6638 ;; 6639 *-*-cygwin* ) 6640 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6641 ;; 6642 * ) # otherwise, assume *nix 6643 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6644 ;; 6645 esac 6646 ;; 6647 *-*-cygwin* ) 6648 case $build in 6649 *-*-mingw* ) # actually msys 6650 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6651 ;; 6652 *-*-cygwin* ) 6653 lt_cv_to_host_file_cmd=func_convert_file_noop 6654 ;; 6655 * ) # otherwise, assume *nix 6656 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6657 ;; 6658 esac 6659 ;; 6660 * ) # unhandled hosts (and "normal" native builds) 6661 lt_cv_to_host_file_cmd=func_convert_file_noop 6662 ;; 6663 esac 6664 6665 fi 6666 6667 to_host_file_cmd=$lt_cv_to_host_file_cmd 6668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6669 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6670 6671 6672 6673 6674 6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6676 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6677 if test ${lt_cv_to_tool_file_cmd+y} 6678 then : 6679 printf %s "(cached) " >&6 6680 else $as_nop 6681 #assume ordinary cross tools, or native build. 6682 lt_cv_to_tool_file_cmd=func_convert_file_noop 6683 case $host in 6684 *-*-mingw* ) 6685 case $build in 6686 *-*-mingw* ) # actually msys 6687 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6688 ;; 6689 esac 6690 ;; 6691 esac 6692 6693 fi 6694 6695 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6697 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6698 6699 6700 6701 6702 6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6704 printf %s "checking for $LD option to reload object files... " >&6; } 6705 if test ${lt_cv_ld_reload_flag+y} 6706 then : 6707 printf %s "(cached) " >&6 6708 else $as_nop 6709 lt_cv_ld_reload_flag='-r' 6710 fi 6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6712 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6713 reload_flag=$lt_cv_ld_reload_flag 6714 case $reload_flag in 6715 "" | " "*) ;; 6716 *) reload_flag=" $reload_flag" ;; 6717 esac 6718 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6719 case $host_os in 6720 cygwin* | mingw* | pw32* | cegcc*) 6721 if test yes != "$GCC"; then 6722 reload_cmds=false 6723 fi 6724 ;; 6725 darwin*) 6726 if test yes = "$GCC"; then 6727 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6728 else 6729 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6730 fi 6731 ;; 6732 esac 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 if test -n "$ac_tool_prefix"; then 6743 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6744 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6746 printf %s "checking for $ac_word... " >&6; } 6747 if test ${ac_cv_prog_OBJDUMP+y} 6748 then : 6749 printf %s "(cached) " >&6 6750 else $as_nop 6751 if test -n "$OBJDUMP"; then 6752 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6753 else 6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6755 for as_dir in $PATH 6756 do 6757 IFS=$as_save_IFS 6758 case $as_dir in #((( 6759 '') as_dir=./ ;; 6760 */) ;; 6761 *) as_dir=$as_dir/ ;; 6762 esac 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6765 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769 done 6770 done 6771 IFS=$as_save_IFS 6772 6773 fi 6774 fi 6775 OBJDUMP=$ac_cv_prog_OBJDUMP 6776 if test -n "$OBJDUMP"; then 6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6778 printf "%s\n" "$OBJDUMP" >&6; } 6779 else 6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6781 printf "%s\n" "no" >&6; } 6782 fi 6783 6784 6785 fi 6786 if test -z "$ac_cv_prog_OBJDUMP"; then 6787 ac_ct_OBJDUMP=$OBJDUMP 6788 # Extract the first word of "objdump", so it can be a program name with args. 6789 set dummy objdump; ac_word=$2 6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6791 printf %s "checking for $ac_word... " >&6; } 6792 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6793 then : 6794 printf %s "(cached) " >&6 6795 else $as_nop 6796 if test -n "$ac_ct_OBJDUMP"; then 6797 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6798 else 6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6800 for as_dir in $PATH 6801 do 6802 IFS=$as_save_IFS 6803 case $as_dir in #((( 6804 '') as_dir=./ ;; 6805 */) ;; 6806 *) as_dir=$as_dir/ ;; 6807 esac 6808 for ac_exec_ext in '' $ac_executable_extensions; do 6809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6810 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6812 break 2 6813 fi 6814 done 6815 done 6816 IFS=$as_save_IFS 6817 6818 fi 6819 fi 6820 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6821 if test -n "$ac_ct_OBJDUMP"; then 6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6823 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6824 else 6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6826 printf "%s\n" "no" >&6; } 6827 fi 6828 6829 if test "x$ac_ct_OBJDUMP" = x; then 6830 OBJDUMP="false" 6831 else 6832 case $cross_compiling:$ac_tool_warned in 6833 yes:) 6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6835 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6836 ac_tool_warned=yes ;; 6837 esac 6838 OBJDUMP=$ac_ct_OBJDUMP 6839 fi 6840 else 6841 OBJDUMP="$ac_cv_prog_OBJDUMP" 6842 fi 6843 6844 test -z "$OBJDUMP" && OBJDUMP=objdump 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6855 printf %s "checking how to recognize dependent libraries... " >&6; } 6856 if test ${lt_cv_deplibs_check_method+y} 6857 then : 6858 printf %s "(cached) " >&6 6859 else $as_nop 6860 lt_cv_file_magic_cmd='$MAGIC_CMD' 6861 lt_cv_file_magic_test_file= 6862 lt_cv_deplibs_check_method='unknown' 6863 # Need to set the preceding variable on all platforms that support 6864 # interlibrary dependencies. 6865 # 'none' -- dependencies not supported. 6866 # 'unknown' -- same as none, but documents that we really don't know. 6867 # 'pass_all' -- all dependencies passed with no checks. 6868 # 'test_compile' -- check by making test program. 6869 # 'file_magic [[regex]]' -- check by looking for files in library path 6870 # that responds to the $file_magic_cmd with a given extended regex. 6871 # If you have 'file' or equivalent on your system and you're not sure 6872 # whether 'pass_all' will *always* work, you probably want this one. 6873 6874 case $host_os in 6875 aix[4-9]*) 6876 lt_cv_deplibs_check_method=pass_all 6877 ;; 6878 6879 beos*) 6880 lt_cv_deplibs_check_method=pass_all 6881 ;; 6882 6883 bsdi[45]*) 6884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6885 lt_cv_file_magic_cmd='/usr/bin/file -L' 6886 lt_cv_file_magic_test_file=/shlib/libc.so 6887 ;; 6888 6889 cygwin*) 6890 # func_win32_libid is a shell function defined in ltmain.sh 6891 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6892 lt_cv_file_magic_cmd='func_win32_libid' 6893 ;; 6894 6895 mingw* | pw32*) 6896 # Base MSYS/MinGW do not provide the 'file' command needed by 6897 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6898 # unless we find 'file', for example because we are cross-compiling. 6899 if ( file / ) >/dev/null 2>&1; then 6900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6901 lt_cv_file_magic_cmd='func_win32_libid' 6902 else 6903 # Keep this pattern in sync with the one in func_win32_libid. 6904 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6905 lt_cv_file_magic_cmd='$OBJDUMP -f' 6906 fi 6907 ;; 6908 6909 cegcc*) 6910 # use the weaker test based on 'objdump'. See mingw*. 6911 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6912 lt_cv_file_magic_cmd='$OBJDUMP -f' 6913 ;; 6914 6915 darwin* | rhapsody*) 6916 lt_cv_deplibs_check_method=pass_all 6917 ;; 6918 6919 freebsd* | dragonfly*) 6920 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6921 case $host_cpu in 6922 i*86 ) 6923 # Not sure whether the presence of OpenBSD here was a mistake. 6924 # Let's accept both of them until this is cleared up. 6925 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6926 lt_cv_file_magic_cmd=/usr/bin/file 6927 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6928 ;; 6929 esac 6930 else 6931 lt_cv_deplibs_check_method=pass_all 6932 fi 6933 ;; 6934 6935 haiku*) 6936 lt_cv_deplibs_check_method=pass_all 6937 ;; 6938 6939 hpux10.20* | hpux11*) 6940 lt_cv_file_magic_cmd=/usr/bin/file 6941 case $host_cpu in 6942 ia64*) 6943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6944 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6945 ;; 6946 hppa*64*) 6947 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]' 6948 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6949 ;; 6950 *) 6951 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6952 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6953 ;; 6954 esac 6955 ;; 6956 6957 interix[3-9]*) 6958 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6960 ;; 6961 6962 irix5* | irix6* | nonstopux*) 6963 case $LD in 6964 *-32|*"-32 ") libmagic=32-bit;; 6965 *-n32|*"-n32 ") libmagic=N32;; 6966 *-64|*"-64 ") libmagic=64-bit;; 6967 *) libmagic=never-match;; 6968 esac 6969 lt_cv_deplibs_check_method=pass_all 6970 ;; 6971 6972 # This must be glibc/ELF. 6973 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6974 lt_cv_deplibs_check_method=pass_all 6975 ;; 6976 6977 netbsd*) 6978 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6980 else 6981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6982 fi 6983 ;; 6984 6985 newos6*) 6986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6987 lt_cv_file_magic_cmd=/usr/bin/file 6988 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6989 ;; 6990 6991 *nto* | *qnx*) 6992 lt_cv_deplibs_check_method=pass_all 6993 ;; 6994 6995 openbsd* | bitrig*) 6996 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6998 else 6999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7000 fi 7001 ;; 7002 7003 osf3* | osf4* | osf5*) 7004 lt_cv_deplibs_check_method=pass_all 7005 ;; 7006 7007 rdos*) 7008 lt_cv_deplibs_check_method=pass_all 7009 ;; 7010 7011 solaris*) 7012 lt_cv_deplibs_check_method=pass_all 7013 ;; 7014 7015 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7016 lt_cv_deplibs_check_method=pass_all 7017 ;; 7018 7019 sysv4 | sysv4.3*) 7020 case $host_vendor in 7021 motorola) 7022 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]' 7023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7024 ;; 7025 ncr) 7026 lt_cv_deplibs_check_method=pass_all 7027 ;; 7028 sequent) 7029 lt_cv_file_magic_cmd='/bin/file' 7030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7031 ;; 7032 sni) 7033 lt_cv_file_magic_cmd='/bin/file' 7034 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7035 lt_cv_file_magic_test_file=/lib/libc.so 7036 ;; 7037 siemens) 7038 lt_cv_deplibs_check_method=pass_all 7039 ;; 7040 pc) 7041 lt_cv_deplibs_check_method=pass_all 7042 ;; 7043 esac 7044 ;; 7045 7046 tpf*) 7047 lt_cv_deplibs_check_method=pass_all 7048 ;; 7049 os2*) 7050 lt_cv_deplibs_check_method=pass_all 7051 ;; 7052 esac 7053 7054 fi 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7056 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 7057 7058 file_magic_glob= 7059 want_nocaseglob=no 7060 if test "$build" = "$host"; then 7061 case $host_os in 7062 mingw* | pw32*) 7063 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7064 want_nocaseglob=yes 7065 else 7066 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7067 fi 7068 ;; 7069 esac 7070 fi 7071 7072 file_magic_cmd=$lt_cv_file_magic_cmd 7073 deplibs_check_method=$lt_cv_deplibs_check_method 7074 test -z "$deplibs_check_method" && deplibs_check_method=unknown 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 if test -n "$ac_tool_prefix"; then 7098 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7099 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7101 printf %s "checking for $ac_word... " >&6; } 7102 if test ${ac_cv_prog_DLLTOOL+y} 7103 then : 7104 printf %s "(cached) " >&6 7105 else $as_nop 7106 if test -n "$DLLTOOL"; then 7107 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7108 else 7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7110 for as_dir in $PATH 7111 do 7112 IFS=$as_save_IFS 7113 case $as_dir in #((( 7114 '') as_dir=./ ;; 7115 */) ;; 7116 *) as_dir=$as_dir/ ;; 7117 esac 7118 for ac_exec_ext in '' $ac_executable_extensions; do 7119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7120 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7122 break 2 7123 fi 7124 done 7125 done 7126 IFS=$as_save_IFS 7127 7128 fi 7129 fi 7130 DLLTOOL=$ac_cv_prog_DLLTOOL 7131 if test -n "$DLLTOOL"; then 7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7133 printf "%s\n" "$DLLTOOL" >&6; } 7134 else 7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7136 printf "%s\n" "no" >&6; } 7137 fi 7138 7139 7140 fi 7141 if test -z "$ac_cv_prog_DLLTOOL"; then 7142 ac_ct_DLLTOOL=$DLLTOOL 7143 # Extract the first word of "dlltool", so it can be a program name with args. 7144 set dummy dlltool; ac_word=$2 7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7146 printf %s "checking for $ac_word... " >&6; } 7147 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7148 then : 7149 printf %s "(cached) " >&6 7150 else $as_nop 7151 if test -n "$ac_ct_DLLTOOL"; then 7152 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7153 else 7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7155 for as_dir in $PATH 7156 do 7157 IFS=$as_save_IFS 7158 case $as_dir in #((( 7159 '') as_dir=./ ;; 7160 */) ;; 7161 *) as_dir=$as_dir/ ;; 7162 esac 7163 for ac_exec_ext in '' $ac_executable_extensions; do 7164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7165 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7167 break 2 7168 fi 7169 done 7170 done 7171 IFS=$as_save_IFS 7172 7173 fi 7174 fi 7175 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7176 if test -n "$ac_ct_DLLTOOL"; then 7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7178 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7179 else 7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7181 printf "%s\n" "no" >&6; } 7182 fi 7183 7184 if test "x$ac_ct_DLLTOOL" = x; then 7185 DLLTOOL="false" 7186 else 7187 case $cross_compiling:$ac_tool_warned in 7188 yes:) 7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7190 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7191 ac_tool_warned=yes ;; 7192 esac 7193 DLLTOOL=$ac_ct_DLLTOOL 7194 fi 7195 else 7196 DLLTOOL="$ac_cv_prog_DLLTOOL" 7197 fi 7198 7199 test -z "$DLLTOOL" && DLLTOOL=dlltool 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7211 printf %s "checking how to associate runtime and link libraries... " >&6; } 7212 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7213 then : 7214 printf %s "(cached) " >&6 7215 else $as_nop 7216 lt_cv_sharedlib_from_linklib_cmd='unknown' 7217 7218 case $host_os in 7219 cygwin* | mingw* | pw32* | cegcc*) 7220 # two different shell functions defined in ltmain.sh; 7221 # decide which one to use based on capabilities of $DLLTOOL 7222 case `$DLLTOOL --help 2>&1` in 7223 *--identify-strict*) 7224 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7225 ;; 7226 *) 7227 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7228 ;; 7229 esac 7230 ;; 7231 *) 7232 # fallback: assume linklib IS sharedlib 7233 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7234 ;; 7235 esac 7236 7237 fi 7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7239 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7240 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7241 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7242 7243 7244 7245 7246 7247 7248 7249 if test -n "$ac_tool_prefix"; then 7250 for ac_prog in ar 7251 do 7252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7255 printf %s "checking for $ac_word... " >&6; } 7256 if test ${ac_cv_prog_AR+y} 7257 then : 7258 printf %s "(cached) " >&6 7259 else $as_nop 7260 if test -n "$AR"; then 7261 ac_cv_prog_AR="$AR" # Let the user override the test. 7262 else 7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264 for as_dir in $PATH 7265 do 7266 IFS=$as_save_IFS 7267 case $as_dir in #((( 7268 '') as_dir=./ ;; 7269 */) ;; 7270 *) as_dir=$as_dir/ ;; 7271 esac 7272 for ac_exec_ext in '' $ac_executable_extensions; do 7273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7274 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7276 break 2 7277 fi 7278 done 7279 done 7280 IFS=$as_save_IFS 7281 7282 fi 7283 fi 7284 AR=$ac_cv_prog_AR 7285 if test -n "$AR"; then 7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7287 printf "%s\n" "$AR" >&6; } 7288 else 7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7290 printf "%s\n" "no" >&6; } 7291 fi 7292 7293 7294 test -n "$AR" && break 7295 done 7296 fi 7297 if test -z "$AR"; then 7298 ac_ct_AR=$AR 7299 for ac_prog in ar 7300 do 7301 # Extract the first word of "$ac_prog", so it can be a program name with args. 7302 set dummy $ac_prog; ac_word=$2 7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7304 printf %s "checking for $ac_word... " >&6; } 7305 if test ${ac_cv_prog_ac_ct_AR+y} 7306 then : 7307 printf %s "(cached) " >&6 7308 else $as_nop 7309 if test -n "$ac_ct_AR"; then 7310 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7311 else 7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7313 for as_dir in $PATH 7314 do 7315 IFS=$as_save_IFS 7316 case $as_dir in #((( 7317 '') as_dir=./ ;; 7318 */) ;; 7319 *) as_dir=$as_dir/ ;; 7320 esac 7321 for ac_exec_ext in '' $ac_executable_extensions; do 7322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7323 ac_cv_prog_ac_ct_AR="$ac_prog" 7324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7325 break 2 7326 fi 7327 done 7328 done 7329 IFS=$as_save_IFS 7330 7331 fi 7332 fi 7333 ac_ct_AR=$ac_cv_prog_ac_ct_AR 7334 if test -n "$ac_ct_AR"; then 7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7336 printf "%s\n" "$ac_ct_AR" >&6; } 7337 else 7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7339 printf "%s\n" "no" >&6; } 7340 fi 7341 7342 7343 test -n "$ac_ct_AR" && break 7344 done 7345 7346 if test "x$ac_ct_AR" = x; then 7347 AR="false" 7348 else 7349 case $cross_compiling:$ac_tool_warned in 7350 yes:) 7351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7352 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7353 ac_tool_warned=yes ;; 7354 esac 7355 AR=$ac_ct_AR 7356 fi 7357 fi 7358 7359 : ${AR=ar} 7360 : ${AR_FLAGS=cru} 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7373 printf %s "checking for archiver @FILE support... " >&6; } 7374 if test ${lt_cv_ar_at_file+y} 7375 then : 7376 printf %s "(cached) " >&6 7377 else $as_nop 7378 lt_cv_ar_at_file=no 7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7380 /* end confdefs.h. */ 7381 7382 int 7383 main (void) 7384 { 7385 7386 ; 7387 return 0; 7388 } 7389 _ACEOF 7390 if ac_fn_c_try_compile "$LINENO" 7391 then : 7392 echo conftest.$ac_objext > conftest.lst 7393 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7395 (eval $lt_ar_try) 2>&5 7396 ac_status=$? 7397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7398 test $ac_status = 0; } 7399 if test 0 -eq "$ac_status"; then 7400 # Ensure the archiver fails upon bogus file names. 7401 rm -f conftest.$ac_objext libconftest.a 7402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7403 (eval $lt_ar_try) 2>&5 7404 ac_status=$? 7405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7406 test $ac_status = 0; } 7407 if test 0 -ne "$ac_status"; then 7408 lt_cv_ar_at_file=@ 7409 fi 7410 fi 7411 rm -f conftest.* libconftest.a 7412 7413 fi 7414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7415 7416 fi 7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7418 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7419 7420 if test no = "$lt_cv_ar_at_file"; then 7421 archiver_list_spec= 7422 else 7423 archiver_list_spec=$lt_cv_ar_at_file 7424 fi 7425 7426 7427 7428 7429 7430 7431 7432 if test -n "$ac_tool_prefix"; then 7433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7434 set dummy ${ac_tool_prefix}strip; ac_word=$2 7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7436 printf %s "checking for $ac_word... " >&6; } 7437 if test ${ac_cv_prog_STRIP+y} 7438 then : 7439 printf %s "(cached) " >&6 7440 else $as_nop 7441 if test -n "$STRIP"; then 7442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7443 else 7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7445 for as_dir in $PATH 7446 do 7447 IFS=$as_save_IFS 7448 case $as_dir in #((( 7449 '') as_dir=./ ;; 7450 */) ;; 7451 *) as_dir=$as_dir/ ;; 7452 esac 7453 for ac_exec_ext in '' $ac_executable_extensions; do 7454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7455 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7457 break 2 7458 fi 7459 done 7460 done 7461 IFS=$as_save_IFS 7462 7463 fi 7464 fi 7465 STRIP=$ac_cv_prog_STRIP 7466 if test -n "$STRIP"; then 7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7468 printf "%s\n" "$STRIP" >&6; } 7469 else 7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7471 printf "%s\n" "no" >&6; } 7472 fi 7473 7474 7475 fi 7476 if test -z "$ac_cv_prog_STRIP"; then 7477 ac_ct_STRIP=$STRIP 7478 # Extract the first word of "strip", so it can be a program name with args. 7479 set dummy strip; ac_word=$2 7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7481 printf %s "checking for $ac_word... " >&6; } 7482 if test ${ac_cv_prog_ac_ct_STRIP+y} 7483 then : 7484 printf %s "(cached) " >&6 7485 else $as_nop 7486 if test -n "$ac_ct_STRIP"; then 7487 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7488 else 7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7490 for as_dir in $PATH 7491 do 7492 IFS=$as_save_IFS 7493 case $as_dir in #((( 7494 '') as_dir=./ ;; 7495 */) ;; 7496 *) as_dir=$as_dir/ ;; 7497 esac 7498 for ac_exec_ext in '' $ac_executable_extensions; do 7499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7500 ac_cv_prog_ac_ct_STRIP="strip" 7501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7502 break 2 7503 fi 7504 done 7505 done 7506 IFS=$as_save_IFS 7507 7508 fi 7509 fi 7510 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7511 if test -n "$ac_ct_STRIP"; then 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7513 printf "%s\n" "$ac_ct_STRIP" >&6; } 7514 else 7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7516 printf "%s\n" "no" >&6; } 7517 fi 7518 7519 if test "x$ac_ct_STRIP" = x; then 7520 STRIP=":" 7521 else 7522 case $cross_compiling:$ac_tool_warned in 7523 yes:) 7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7525 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7526 ac_tool_warned=yes ;; 7527 esac 7528 STRIP=$ac_ct_STRIP 7529 fi 7530 else 7531 STRIP="$ac_cv_prog_STRIP" 7532 fi 7533 7534 test -z "$STRIP" && STRIP=: 7535 7536 7537 7538 7539 7540 7541 if test -n "$ac_tool_prefix"; then 7542 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7543 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7545 printf %s "checking for $ac_word... " >&6; } 7546 if test ${ac_cv_prog_RANLIB+y} 7547 then : 7548 printf %s "(cached) " >&6 7549 else $as_nop 7550 if test -n "$RANLIB"; then 7551 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7552 else 7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7554 for as_dir in $PATH 7555 do 7556 IFS=$as_save_IFS 7557 case $as_dir in #((( 7558 '') as_dir=./ ;; 7559 */) ;; 7560 *) as_dir=$as_dir/ ;; 7561 esac 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7564 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568 done 7569 done 7570 IFS=$as_save_IFS 7571 7572 fi 7573 fi 7574 RANLIB=$ac_cv_prog_RANLIB 7575 if test -n "$RANLIB"; then 7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7577 printf "%s\n" "$RANLIB" >&6; } 7578 else 7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7580 printf "%s\n" "no" >&6; } 7581 fi 7582 7583 7584 fi 7585 if test -z "$ac_cv_prog_RANLIB"; then 7586 ac_ct_RANLIB=$RANLIB 7587 # Extract the first word of "ranlib", so it can be a program name with args. 7588 set dummy ranlib; ac_word=$2 7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7590 printf %s "checking for $ac_word... " >&6; } 7591 if test ${ac_cv_prog_ac_ct_RANLIB+y} 7592 then : 7593 printf %s "(cached) " >&6 7594 else $as_nop 7595 if test -n "$ac_ct_RANLIB"; then 7596 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7597 else 7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7599 for as_dir in $PATH 7600 do 7601 IFS=$as_save_IFS 7602 case $as_dir in #((( 7603 '') as_dir=./ ;; 7604 */) ;; 7605 *) as_dir=$as_dir/ ;; 7606 esac 7607 for ac_exec_ext in '' $ac_executable_extensions; do 7608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7609 ac_cv_prog_ac_ct_RANLIB="ranlib" 7610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7611 break 2 7612 fi 7613 done 7614 done 7615 IFS=$as_save_IFS 7616 7617 fi 7618 fi 7619 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7620 if test -n "$ac_ct_RANLIB"; then 7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7622 printf "%s\n" "$ac_ct_RANLIB" >&6; } 7623 else 7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7625 printf "%s\n" "no" >&6; } 7626 fi 7627 7628 if test "x$ac_ct_RANLIB" = x; then 7629 RANLIB=":" 7630 else 7631 case $cross_compiling:$ac_tool_warned in 7632 yes:) 7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7634 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7635 ac_tool_warned=yes ;; 7636 esac 7637 RANLIB=$ac_ct_RANLIB 7638 fi 7639 else 7640 RANLIB="$ac_cv_prog_RANLIB" 7641 fi 7642 7643 test -z "$RANLIB" && RANLIB=: 7644 7645 7646 7647 7648 7649 7650 # Determine commands to create old-style static archives. 7651 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7652 old_postinstall_cmds='chmod 644 $oldlib' 7653 old_postuninstall_cmds= 7654 7655 if test -n "$RANLIB"; then 7656 case $host_os in 7657 bitrig* | openbsd*) 7658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7659 ;; 7660 *) 7661 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7662 ;; 7663 esac 7664 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7665 fi 7666 7667 case $host_os in 7668 darwin*) 7669 lock_old_archive_extraction=yes ;; 7670 *) 7671 lock_old_archive_extraction=no ;; 7672 esac 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 # If no C compiler was specified, use CC. 7713 LTCC=${LTCC-"$CC"} 7714 7715 # If no C compiler flags were specified, use CFLAGS. 7716 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7717 7718 # Allow CC to be a program name with arguments. 7719 compiler=$CC 7720 7721 7722 # Check for command to grab the raw symbol name followed by C symbol from nm. 7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7724 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7725 if test ${lt_cv_sys_global_symbol_pipe+y} 7726 then : 7727 printf %s "(cached) " >&6 7728 else $as_nop 7729 7730 # These are sane defaults that work on at least a few old systems. 7731 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7732 7733 # Character class describing NM global symbol codes. 7734 symcode='[BCDEGRST]' 7735 7736 # Regexp to match symbols that can be accessed directly from C. 7737 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7738 7739 # Define system-specific variables. 7740 case $host_os in 7741 aix*) 7742 symcode='[BCDT]' 7743 ;; 7744 cygwin* | mingw* | pw32* | cegcc*) 7745 symcode='[ABCDGISTW]' 7746 ;; 7747 hpux*) 7748 if test ia64 = "$host_cpu"; then 7749 symcode='[ABCDEGRST]' 7750 fi 7751 ;; 7752 irix* | nonstopux*) 7753 symcode='[BCDEGRST]' 7754 ;; 7755 osf*) 7756 symcode='[BCDEGQRST]' 7757 ;; 7758 solaris*) 7759 symcode='[BDRT]' 7760 ;; 7761 sco3.2v5*) 7762 symcode='[DT]' 7763 ;; 7764 sysv4.2uw2*) 7765 symcode='[DT]' 7766 ;; 7767 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7768 symcode='[ABDT]' 7769 ;; 7770 sysv4) 7771 symcode='[DFNSTU]' 7772 ;; 7773 esac 7774 7775 # If we're using GNU nm, then use its standard symbol codes. 7776 case `$NM -V 2>&1` in 7777 *GNU* | *'with BFD'*) 7778 symcode='[ABCDGIRSTW]' ;; 7779 esac 7780 7781 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7782 # Gets list of data symbols to import. 7783 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7784 # Adjust the below global symbol transforms to fixup imported variables. 7785 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7786 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7787 lt_c_name_lib_hook="\ 7788 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7789 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7790 else 7791 # Disable hooks by default. 7792 lt_cv_sys_global_symbol_to_import= 7793 lt_cdecl_hook= 7794 lt_c_name_hook= 7795 lt_c_name_lib_hook= 7796 fi 7797 7798 # Transform an extracted symbol line into a proper C declaration. 7799 # Some systems (esp. on ia64) link data and code symbols differently, 7800 # so use this general approach. 7801 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7802 $lt_cdecl_hook\ 7803 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7804 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7805 7806 # Transform an extracted symbol line into symbol name and symbol address 7807 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7808 $lt_c_name_hook\ 7809 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7810 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7811 7812 # Transform an extracted symbol line into symbol name with lib prefix and 7813 # symbol address. 7814 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7815 $lt_c_name_lib_hook\ 7816 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7817 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7818 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7819 7820 # Handle CRLF in mingw tool chain 7821 opt_cr= 7822 case $build_os in 7823 mingw*) 7824 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7825 ;; 7826 esac 7827 7828 # Try without a prefix underscore, then with it. 7829 for ac_symprfx in "" "_"; do 7830 7831 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7832 symxfrm="\\1 $ac_symprfx\\2 \\2" 7833 7834 # Write the raw and C identifiers. 7835 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7836 # Fake it for dumpbin and say T for any non-static function, 7837 # D for any global variable and I for any imported variable. 7838 # Also find C++ and __fastcall symbols from MSVC++, 7839 # which start with @ or ?. 7840 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7841 " {last_section=section; section=\$ 3};"\ 7842 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7843 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7844 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7845 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7846 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7847 " \$ 0!~/External *\|/{next};"\ 7848 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7849 " {if(hide[section]) next};"\ 7850 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7851 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7852 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7853 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7854 " ' prfx=^$ac_symprfx" 7855 else 7856 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7857 fi 7858 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7859 7860 # Check to see that the pipe works correctly. 7861 pipe_works=no 7862 7863 rm -f conftest* 7864 cat > conftest.$ac_ext <<_LT_EOF 7865 #ifdef __cplusplus 7866 extern "C" { 7867 #endif 7868 char nm_test_var; 7869 void nm_test_func(void); 7870 void nm_test_func(void){} 7871 #ifdef __cplusplus 7872 } 7873 #endif 7874 int main(){nm_test_var='a';nm_test_func();return(0);} 7875 _LT_EOF 7876 7877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7878 (eval $ac_compile) 2>&5 7879 ac_status=$? 7880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7881 test $ac_status = 0; }; then 7882 # Now try to grab the symbols. 7883 nlist=conftest.nm 7884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7885 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7886 ac_status=$? 7887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7888 test $ac_status = 0; } && test -s "$nlist"; then 7889 # Try sorting and uniquifying the output. 7890 if sort "$nlist" | uniq > "$nlist"T; then 7891 mv -f "$nlist"T "$nlist" 7892 else 7893 rm -f "$nlist"T 7894 fi 7895 7896 # Make sure that we snagged all the symbols we need. 7897 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7898 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7899 cat <<_LT_EOF > conftest.$ac_ext 7900 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7901 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7902 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7903 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7904 # define LT_DLSYM_CONST 7905 #elif defined __osf__ 7906 /* This system does not cope well with relocations in const data. */ 7907 # define LT_DLSYM_CONST 7908 #else 7909 # define LT_DLSYM_CONST const 7910 #endif 7911 7912 #ifdef __cplusplus 7913 extern "C" { 7914 #endif 7915 7916 _LT_EOF 7917 # Now generate the symbol file. 7918 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7919 7920 cat <<_LT_EOF >> conftest.$ac_ext 7921 7922 /* The mapping between symbol names and symbols. */ 7923 LT_DLSYM_CONST struct { 7924 const char *name; 7925 void *address; 7926 } 7927 lt__PROGRAM__LTX_preloaded_symbols[] = 7928 { 7929 { "@PROGRAM@", (void *) 0 }, 7930 _LT_EOF 7931 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7932 cat <<\_LT_EOF >> conftest.$ac_ext 7933 {0, (void *) 0} 7934 }; 7935 7936 /* This works around a problem in FreeBSD linker */ 7937 #ifdef FREEBSD_WORKAROUND 7938 static const void *lt_preloaded_setup() { 7939 return lt__PROGRAM__LTX_preloaded_symbols; 7940 } 7941 #endif 7942 7943 #ifdef __cplusplus 7944 } 7945 #endif 7946 _LT_EOF 7947 # Now try linking the two files. 7948 mv conftest.$ac_objext conftstm.$ac_objext 7949 lt_globsym_save_LIBS=$LIBS 7950 lt_globsym_save_CFLAGS=$CFLAGS 7951 LIBS=conftstm.$ac_objext 7952 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7954 (eval $ac_link) 2>&5 7955 ac_status=$? 7956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7957 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7958 pipe_works=yes 7959 fi 7960 LIBS=$lt_globsym_save_LIBS 7961 CFLAGS=$lt_globsym_save_CFLAGS 7962 else 7963 echo "cannot find nm_test_func in $nlist" >&5 7964 fi 7965 else 7966 echo "cannot find nm_test_var in $nlist" >&5 7967 fi 7968 else 7969 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7970 fi 7971 else 7972 echo "$progname: failed program was:" >&5 7973 cat conftest.$ac_ext >&5 7974 fi 7975 rm -rf conftest* conftst* 7976 7977 # Do not use the global_symbol_pipe unless it works. 7978 if test yes = "$pipe_works"; then 7979 break 7980 else 7981 lt_cv_sys_global_symbol_pipe= 7982 fi 7983 done 7984 7985 fi 7986 7987 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7988 lt_cv_sys_global_symbol_to_cdecl= 7989 fi 7990 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7992 printf "%s\n" "failed" >&6; } 7993 else 7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7995 printf "%s\n" "ok" >&6; } 7996 fi 7997 7998 # Response file support. 7999 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8000 nm_file_list_spec='@' 8001 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8002 nm_file_list_spec='@' 8003 fi 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8042 printf %s "checking for sysroot... " >&6; } 8043 8044 # Check whether --with-sysroot was given. 8045 if test ${with_sysroot+y} 8046 then : 8047 withval=$with_sysroot; 8048 else $as_nop 8049 with_sysroot=no 8050 fi 8051 8052 8053 lt_sysroot= 8054 case $with_sysroot in #( 8055 yes) 8056 if test yes = "$GCC"; then 8057 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8058 fi 8059 ;; #( 8060 /*) 8061 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8062 ;; #( 8063 no|'') 8064 ;; #( 8065 *) 8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8067 printf "%s\n" "$with_sysroot" >&6; } 8068 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8069 ;; 8070 esac 8071 8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8073 printf "%s\n" "${lt_sysroot:-no}" >&6; } 8074 8075 8076 8077 8078 8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8080 printf %s "checking for a working dd... " >&6; } 8081 if test ${ac_cv_path_lt_DD+y} 8082 then : 8083 printf %s "(cached) " >&6 8084 else $as_nop 8085 printf 0123456789abcdef0123456789abcdef >conftest.i 8086 cat conftest.i conftest.i >conftest2.i 8087 : ${lt_DD:=$DD} 8088 if test -z "$lt_DD"; then 8089 ac_path_lt_DD_found=false 8090 # Loop through the user's path and test for each of PROGNAME-LIST 8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8092 for as_dir in $PATH 8093 do 8094 IFS=$as_save_IFS 8095 case $as_dir in #((( 8096 '') as_dir=./ ;; 8097 */) ;; 8098 *) as_dir=$as_dir/ ;; 8099 esac 8100 for ac_prog in dd 8101 do 8102 for ac_exec_ext in '' $ac_executable_extensions; do 8103 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8104 as_fn_executable_p "$ac_path_lt_DD" || continue 8105 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8106 cmp -s conftest.i conftest.out \ 8107 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8108 fi 8109 $ac_path_lt_DD_found && break 3 8110 done 8111 done 8112 done 8113 IFS=$as_save_IFS 8114 if test -z "$ac_cv_path_lt_DD"; then 8115 : 8116 fi 8117 else 8118 ac_cv_path_lt_DD=$lt_DD 8119 fi 8120 8121 rm -f conftest.i conftest2.i conftest.out 8122 fi 8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8124 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8125 8126 8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8128 printf %s "checking how to truncate binary pipes... " >&6; } 8129 if test ${lt_cv_truncate_bin+y} 8130 then : 8131 printf %s "(cached) " >&6 8132 else $as_nop 8133 printf 0123456789abcdef0123456789abcdef >conftest.i 8134 cat conftest.i conftest.i >conftest2.i 8135 lt_cv_truncate_bin= 8136 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8137 cmp -s conftest.i conftest.out \ 8138 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8139 fi 8140 rm -f conftest.i conftest2.i conftest.out 8141 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8142 fi 8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8144 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8145 8146 8147 8148 8149 8150 8151 8152 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8153 func_cc_basename () 8154 { 8155 for cc_temp in $*""; do 8156 case $cc_temp in 8157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8159 \-*) ;; 8160 *) break;; 8161 esac 8162 done 8163 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8164 } 8165 8166 # Check whether --enable-libtool-lock was given. 8167 if test ${enable_libtool_lock+y} 8168 then : 8169 enableval=$enable_libtool_lock; 8170 fi 8171 8172 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8173 8174 # Some flags need to be propagated to the compiler or linker for good 8175 # libtool support. 8176 case $host in 8177 ia64-*-hpux*) 8178 # Find out what ABI is being produced by ac_compile, and set mode 8179 # options accordingly. 8180 echo 'int i;' > conftest.$ac_ext 8181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8182 (eval $ac_compile) 2>&5 8183 ac_status=$? 8184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8185 test $ac_status = 0; }; then 8186 case `/usr/bin/file conftest.$ac_objext` in 8187 *ELF-32*) 8188 HPUX_IA64_MODE=32 8189 ;; 8190 *ELF-64*) 8191 HPUX_IA64_MODE=64 8192 ;; 8193 esac 8194 fi 8195 rm -rf conftest* 8196 ;; 8197 *-*-irix6*) 8198 # Find out what ABI is being produced by ac_compile, and set linker 8199 # options accordingly. 8200 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8202 (eval $ac_compile) 2>&5 8203 ac_status=$? 8204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8205 test $ac_status = 0; }; then 8206 if test yes = "$lt_cv_prog_gnu_ld"; then 8207 case `/usr/bin/file conftest.$ac_objext` in 8208 *32-bit*) 8209 LD="${LD-ld} -melf32bsmip" 8210 ;; 8211 *N32*) 8212 LD="${LD-ld} -melf32bmipn32" 8213 ;; 8214 *64-bit*) 8215 LD="${LD-ld} -melf64bmip" 8216 ;; 8217 esac 8218 else 8219 case `/usr/bin/file conftest.$ac_objext` in 8220 *32-bit*) 8221 LD="${LD-ld} -32" 8222 ;; 8223 *N32*) 8224 LD="${LD-ld} -n32" 8225 ;; 8226 *64-bit*) 8227 LD="${LD-ld} -64" 8228 ;; 8229 esac 8230 fi 8231 fi 8232 rm -rf conftest* 8233 ;; 8234 8235 mips64*-*linux*) 8236 # Find out what ABI is being produced by ac_compile, and set linker 8237 # options accordingly. 8238 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8240 (eval $ac_compile) 2>&5 8241 ac_status=$? 8242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8243 test $ac_status = 0; }; then 8244 emul=elf 8245 case `/usr/bin/file conftest.$ac_objext` in 8246 *32-bit*) 8247 emul="${emul}32" 8248 ;; 8249 *64-bit*) 8250 emul="${emul}64" 8251 ;; 8252 esac 8253 case `/usr/bin/file conftest.$ac_objext` in 8254 *MSB*) 8255 emul="${emul}btsmip" 8256 ;; 8257 *LSB*) 8258 emul="${emul}ltsmip" 8259 ;; 8260 esac 8261 case `/usr/bin/file conftest.$ac_objext` in 8262 *N32*) 8263 emul="${emul}n32" 8264 ;; 8265 esac 8266 LD="${LD-ld} -m $emul" 8267 fi 8268 rm -rf conftest* 8269 ;; 8270 8271 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8272 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8273 # Find out what ABI is being produced by ac_compile, and set linker 8274 # options accordingly. Note that the listed cases only cover the 8275 # situations where additional linker options are needed (such as when 8276 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8277 # vice versa); the common cases where no linker options are needed do 8278 # not appear in the list. 8279 echo 'int i;' > conftest.$ac_ext 8280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8281 (eval $ac_compile) 2>&5 8282 ac_status=$? 8283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8284 test $ac_status = 0; }; then 8285 case `/usr/bin/file conftest.o` in 8286 *32-bit*) 8287 case $host in 8288 x86_64-*kfreebsd*-gnu) 8289 LD="${LD-ld} -m elf_i386_fbsd" 8290 ;; 8291 x86_64-*linux*) 8292 case `/usr/bin/file conftest.o` in 8293 *x86-64*) 8294 LD="${LD-ld} -m elf32_x86_64" 8295 ;; 8296 *) 8297 LD="${LD-ld} -m elf_i386" 8298 ;; 8299 esac 8300 ;; 8301 powerpc64le-*linux*) 8302 LD="${LD-ld} -m elf32lppclinux" 8303 ;; 8304 powerpc64-*linux*) 8305 LD="${LD-ld} -m elf32ppclinux" 8306 ;; 8307 s390x-*linux*) 8308 LD="${LD-ld} -m elf_s390" 8309 ;; 8310 sparc64-*linux*) 8311 LD="${LD-ld} -m elf32_sparc" 8312 ;; 8313 esac 8314 ;; 8315 *64-bit*) 8316 case $host in 8317 x86_64-*kfreebsd*-gnu) 8318 LD="${LD-ld} -m elf_x86_64_fbsd" 8319 ;; 8320 x86_64-*linux*) 8321 LD="${LD-ld} -m elf_x86_64" 8322 ;; 8323 powerpcle-*linux*) 8324 LD="${LD-ld} -m elf64lppc" 8325 ;; 8326 powerpc-*linux*) 8327 LD="${LD-ld} -m elf64ppc" 8328 ;; 8329 s390*-*linux*|s390*-*tpf*) 8330 LD="${LD-ld} -m elf64_s390" 8331 ;; 8332 sparc*-*linux*) 8333 LD="${LD-ld} -m elf64_sparc" 8334 ;; 8335 esac 8336 ;; 8337 esac 8338 fi 8339 rm -rf conftest* 8340 ;; 8341 8342 *-*-sco3.2v5*) 8343 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8344 SAVE_CFLAGS=$CFLAGS 8345 CFLAGS="$CFLAGS -belf" 8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8347 printf %s "checking whether the C compiler needs -belf... " >&6; } 8348 if test ${lt_cv_cc_needs_belf+y} 8349 then : 8350 printf %s "(cached) " >&6 8351 else $as_nop 8352 ac_ext=c 8353 ac_cpp='$CPP $CPPFLAGS' 8354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8356 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8357 8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8359 /* end confdefs.h. */ 8360 8361 int 8362 main (void) 8363 { 8364 8365 ; 8366 return 0; 8367 } 8368 _ACEOF 8369 if ac_fn_c_try_link "$LINENO" 8370 then : 8371 lt_cv_cc_needs_belf=yes 8372 else $as_nop 8373 lt_cv_cc_needs_belf=no 8374 fi 8375 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8376 conftest$ac_exeext conftest.$ac_ext 8377 ac_ext=c 8378 ac_cpp='$CPP $CPPFLAGS' 8379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8381 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8382 8383 fi 8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8385 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8386 if test yes != "$lt_cv_cc_needs_belf"; then 8387 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8388 CFLAGS=$SAVE_CFLAGS 8389 fi 8390 ;; 8391 *-*solaris*) 8392 # Find out what ABI is being produced by ac_compile, and set linker 8393 # options accordingly. 8394 echo 'int i;' > conftest.$ac_ext 8395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8396 (eval $ac_compile) 2>&5 8397 ac_status=$? 8398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8399 test $ac_status = 0; }; then 8400 case `/usr/bin/file conftest.o` in 8401 *64-bit*) 8402 case $lt_cv_prog_gnu_ld in 8403 yes*) 8404 case $host in 8405 i?86-*-solaris*|x86_64-*-solaris*) 8406 LD="${LD-ld} -m elf_x86_64" 8407 ;; 8408 sparc*-*-solaris*) 8409 LD="${LD-ld} -m elf64_sparc" 8410 ;; 8411 esac 8412 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8413 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8414 LD=${LD-ld}_sol2 8415 fi 8416 ;; 8417 *) 8418 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8419 LD="${LD-ld} -64" 8420 fi 8421 ;; 8422 esac 8423 ;; 8424 esac 8425 fi 8426 rm -rf conftest* 8427 ;; 8428 esac 8429 8430 need_locks=$enable_libtool_lock 8431 8432 if test -n "$ac_tool_prefix"; then 8433 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8434 set dummy ${ac_tool_prefix}mt; ac_word=$2 8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8436 printf %s "checking for $ac_word... " >&6; } 8437 if test ${ac_cv_prog_MANIFEST_TOOL+y} 8438 then : 8439 printf %s "(cached) " >&6 8440 else $as_nop 8441 if test -n "$MANIFEST_TOOL"; then 8442 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8443 else 8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8445 for as_dir in $PATH 8446 do 8447 IFS=$as_save_IFS 8448 case $as_dir in #((( 8449 '') as_dir=./ ;; 8450 */) ;; 8451 *) as_dir=$as_dir/ ;; 8452 esac 8453 for ac_exec_ext in '' $ac_executable_extensions; do 8454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8455 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8457 break 2 8458 fi 8459 done 8460 done 8461 IFS=$as_save_IFS 8462 8463 fi 8464 fi 8465 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8466 if test -n "$MANIFEST_TOOL"; then 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8468 printf "%s\n" "$MANIFEST_TOOL" >&6; } 8469 else 8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8471 printf "%s\n" "no" >&6; } 8472 fi 8473 8474 8475 fi 8476 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8477 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8478 # Extract the first word of "mt", so it can be a program name with args. 8479 set dummy mt; ac_word=$2 8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8481 printf %s "checking for $ac_word... " >&6; } 8482 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8483 then : 8484 printf %s "(cached) " >&6 8485 else $as_nop 8486 if test -n "$ac_ct_MANIFEST_TOOL"; then 8487 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8488 else 8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8490 for as_dir in $PATH 8491 do 8492 IFS=$as_save_IFS 8493 case $as_dir in #((( 8494 '') as_dir=./ ;; 8495 */) ;; 8496 *) as_dir=$as_dir/ ;; 8497 esac 8498 for ac_exec_ext in '' $ac_executable_extensions; do 8499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8500 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8502 break 2 8503 fi 8504 done 8505 done 8506 IFS=$as_save_IFS 8507 8508 fi 8509 fi 8510 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8511 if test -n "$ac_ct_MANIFEST_TOOL"; then 8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8513 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8514 else 8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8516 printf "%s\n" "no" >&6; } 8517 fi 8518 8519 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8520 MANIFEST_TOOL=":" 8521 else 8522 case $cross_compiling:$ac_tool_warned in 8523 yes:) 8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8525 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8526 ac_tool_warned=yes ;; 8527 esac 8528 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8529 fi 8530 else 8531 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8532 fi 8533 8534 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8536 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8537 if test ${lt_cv_path_mainfest_tool+y} 8538 then : 8539 printf %s "(cached) " >&6 8540 else $as_nop 8541 lt_cv_path_mainfest_tool=no 8542 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8543 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8544 cat conftest.err >&5 8545 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8546 lt_cv_path_mainfest_tool=yes 8547 fi 8548 rm -f conftest* 8549 fi 8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8551 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8552 if test yes != "$lt_cv_path_mainfest_tool"; then 8553 MANIFEST_TOOL=: 8554 fi 8555 8556 8557 8558 8559 8560 8561 case $host_os in 8562 rhapsody* | darwin*) 8563 if test -n "$ac_tool_prefix"; then 8564 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8565 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8567 printf %s "checking for $ac_word... " >&6; } 8568 if test ${ac_cv_prog_DSYMUTIL+y} 8569 then : 8570 printf %s "(cached) " >&6 8571 else $as_nop 8572 if test -n "$DSYMUTIL"; then 8573 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8574 else 8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8576 for as_dir in $PATH 8577 do 8578 IFS=$as_save_IFS 8579 case $as_dir in #((( 8580 '') as_dir=./ ;; 8581 */) ;; 8582 *) as_dir=$as_dir/ ;; 8583 esac 8584 for ac_exec_ext in '' $ac_executable_extensions; do 8585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8586 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8588 break 2 8589 fi 8590 done 8591 done 8592 IFS=$as_save_IFS 8593 8594 fi 8595 fi 8596 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8597 if test -n "$DSYMUTIL"; then 8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8599 printf "%s\n" "$DSYMUTIL" >&6; } 8600 else 8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8602 printf "%s\n" "no" >&6; } 8603 fi 8604 8605 8606 fi 8607 if test -z "$ac_cv_prog_DSYMUTIL"; then 8608 ac_ct_DSYMUTIL=$DSYMUTIL 8609 # Extract the first word of "dsymutil", so it can be a program name with args. 8610 set dummy dsymutil; ac_word=$2 8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8612 printf %s "checking for $ac_word... " >&6; } 8613 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8614 then : 8615 printf %s "(cached) " >&6 8616 else $as_nop 8617 if test -n "$ac_ct_DSYMUTIL"; then 8618 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8619 else 8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8621 for as_dir in $PATH 8622 do 8623 IFS=$as_save_IFS 8624 case $as_dir in #((( 8625 '') as_dir=./ ;; 8626 */) ;; 8627 *) as_dir=$as_dir/ ;; 8628 esac 8629 for ac_exec_ext in '' $ac_executable_extensions; do 8630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8631 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8633 break 2 8634 fi 8635 done 8636 done 8637 IFS=$as_save_IFS 8638 8639 fi 8640 fi 8641 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8642 if test -n "$ac_ct_DSYMUTIL"; then 8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8644 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8645 else 8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8647 printf "%s\n" "no" >&6; } 8648 fi 8649 8650 if test "x$ac_ct_DSYMUTIL" = x; then 8651 DSYMUTIL=":" 8652 else 8653 case $cross_compiling:$ac_tool_warned in 8654 yes:) 8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8656 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8657 ac_tool_warned=yes ;; 8658 esac 8659 DSYMUTIL=$ac_ct_DSYMUTIL 8660 fi 8661 else 8662 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8663 fi 8664 8665 if test -n "$ac_tool_prefix"; then 8666 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8667 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8669 printf %s "checking for $ac_word... " >&6; } 8670 if test ${ac_cv_prog_NMEDIT+y} 8671 then : 8672 printf %s "(cached) " >&6 8673 else $as_nop 8674 if test -n "$NMEDIT"; then 8675 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8676 else 8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8678 for as_dir in $PATH 8679 do 8680 IFS=$as_save_IFS 8681 case $as_dir in #((( 8682 '') as_dir=./ ;; 8683 */) ;; 8684 *) as_dir=$as_dir/ ;; 8685 esac 8686 for ac_exec_ext in '' $ac_executable_extensions; do 8687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8688 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8690 break 2 8691 fi 8692 done 8693 done 8694 IFS=$as_save_IFS 8695 8696 fi 8697 fi 8698 NMEDIT=$ac_cv_prog_NMEDIT 8699 if test -n "$NMEDIT"; then 8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8701 printf "%s\n" "$NMEDIT" >&6; } 8702 else 8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8704 printf "%s\n" "no" >&6; } 8705 fi 8706 8707 8708 fi 8709 if test -z "$ac_cv_prog_NMEDIT"; then 8710 ac_ct_NMEDIT=$NMEDIT 8711 # Extract the first word of "nmedit", so it can be a program name with args. 8712 set dummy nmedit; ac_word=$2 8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8714 printf %s "checking for $ac_word... " >&6; } 8715 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8716 then : 8717 printf %s "(cached) " >&6 8718 else $as_nop 8719 if test -n "$ac_ct_NMEDIT"; then 8720 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8721 else 8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8723 for as_dir in $PATH 8724 do 8725 IFS=$as_save_IFS 8726 case $as_dir in #((( 8727 '') as_dir=./ ;; 8728 */) ;; 8729 *) as_dir=$as_dir/ ;; 8730 esac 8731 for ac_exec_ext in '' $ac_executable_extensions; do 8732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8733 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8735 break 2 8736 fi 8737 done 8738 done 8739 IFS=$as_save_IFS 8740 8741 fi 8742 fi 8743 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8744 if test -n "$ac_ct_NMEDIT"; then 8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8746 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8747 else 8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8749 printf "%s\n" "no" >&6; } 8750 fi 8751 8752 if test "x$ac_ct_NMEDIT" = x; then 8753 NMEDIT=":" 8754 else 8755 case $cross_compiling:$ac_tool_warned in 8756 yes:) 8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8759 ac_tool_warned=yes ;; 8760 esac 8761 NMEDIT=$ac_ct_NMEDIT 8762 fi 8763 else 8764 NMEDIT="$ac_cv_prog_NMEDIT" 8765 fi 8766 8767 if test -n "$ac_tool_prefix"; then 8768 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8769 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8771 printf %s "checking for $ac_word... " >&6; } 8772 if test ${ac_cv_prog_LIPO+y} 8773 then : 8774 printf %s "(cached) " >&6 8775 else $as_nop 8776 if test -n "$LIPO"; then 8777 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8778 else 8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8780 for as_dir in $PATH 8781 do 8782 IFS=$as_save_IFS 8783 case $as_dir in #((( 8784 '') as_dir=./ ;; 8785 */) ;; 8786 *) as_dir=$as_dir/ ;; 8787 esac 8788 for ac_exec_ext in '' $ac_executable_extensions; do 8789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8790 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8792 break 2 8793 fi 8794 done 8795 done 8796 IFS=$as_save_IFS 8797 8798 fi 8799 fi 8800 LIPO=$ac_cv_prog_LIPO 8801 if test -n "$LIPO"; then 8802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8803 printf "%s\n" "$LIPO" >&6; } 8804 else 8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8806 printf "%s\n" "no" >&6; } 8807 fi 8808 8809 8810 fi 8811 if test -z "$ac_cv_prog_LIPO"; then 8812 ac_ct_LIPO=$LIPO 8813 # Extract the first word of "lipo", so it can be a program name with args. 8814 set dummy lipo; ac_word=$2 8815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8816 printf %s "checking for $ac_word... " >&6; } 8817 if test ${ac_cv_prog_ac_ct_LIPO+y} 8818 then : 8819 printf %s "(cached) " >&6 8820 else $as_nop 8821 if test -n "$ac_ct_LIPO"; then 8822 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8823 else 8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8825 for as_dir in $PATH 8826 do 8827 IFS=$as_save_IFS 8828 case $as_dir in #((( 8829 '') as_dir=./ ;; 8830 */) ;; 8831 *) as_dir=$as_dir/ ;; 8832 esac 8833 for ac_exec_ext in '' $ac_executable_extensions; do 8834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8835 ac_cv_prog_ac_ct_LIPO="lipo" 8836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8837 break 2 8838 fi 8839 done 8840 done 8841 IFS=$as_save_IFS 8842 8843 fi 8844 fi 8845 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8846 if test -n "$ac_ct_LIPO"; then 8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8848 printf "%s\n" "$ac_ct_LIPO" >&6; } 8849 else 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8851 printf "%s\n" "no" >&6; } 8852 fi 8853 8854 if test "x$ac_ct_LIPO" = x; then 8855 LIPO=":" 8856 else 8857 case $cross_compiling:$ac_tool_warned in 8858 yes:) 8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8860 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8861 ac_tool_warned=yes ;; 8862 esac 8863 LIPO=$ac_ct_LIPO 8864 fi 8865 else 8866 LIPO="$ac_cv_prog_LIPO" 8867 fi 8868 8869 if test -n "$ac_tool_prefix"; then 8870 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8871 set dummy ${ac_tool_prefix}otool; ac_word=$2 8872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8873 printf %s "checking for $ac_word... " >&6; } 8874 if test ${ac_cv_prog_OTOOL+y} 8875 then : 8876 printf %s "(cached) " >&6 8877 else $as_nop 8878 if test -n "$OTOOL"; then 8879 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8880 else 8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8882 for as_dir in $PATH 8883 do 8884 IFS=$as_save_IFS 8885 case $as_dir in #((( 8886 '') as_dir=./ ;; 8887 */) ;; 8888 *) as_dir=$as_dir/ ;; 8889 esac 8890 for ac_exec_ext in '' $ac_executable_extensions; do 8891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8892 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8894 break 2 8895 fi 8896 done 8897 done 8898 IFS=$as_save_IFS 8899 8900 fi 8901 fi 8902 OTOOL=$ac_cv_prog_OTOOL 8903 if test -n "$OTOOL"; then 8904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8905 printf "%s\n" "$OTOOL" >&6; } 8906 else 8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8908 printf "%s\n" "no" >&6; } 8909 fi 8910 8911 8912 fi 8913 if test -z "$ac_cv_prog_OTOOL"; then 8914 ac_ct_OTOOL=$OTOOL 8915 # Extract the first word of "otool", so it can be a program name with args. 8916 set dummy otool; ac_word=$2 8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8918 printf %s "checking for $ac_word... " >&6; } 8919 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8920 then : 8921 printf %s "(cached) " >&6 8922 else $as_nop 8923 if test -n "$ac_ct_OTOOL"; then 8924 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8925 else 8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8927 for as_dir in $PATH 8928 do 8929 IFS=$as_save_IFS 8930 case $as_dir in #((( 8931 '') as_dir=./ ;; 8932 */) ;; 8933 *) as_dir=$as_dir/ ;; 8934 esac 8935 for ac_exec_ext in '' $ac_executable_extensions; do 8936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8937 ac_cv_prog_ac_ct_OTOOL="otool" 8938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8939 break 2 8940 fi 8941 done 8942 done 8943 IFS=$as_save_IFS 8944 8945 fi 8946 fi 8947 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8948 if test -n "$ac_ct_OTOOL"; then 8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8950 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8951 else 8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8953 printf "%s\n" "no" >&6; } 8954 fi 8955 8956 if test "x$ac_ct_OTOOL" = x; then 8957 OTOOL=":" 8958 else 8959 case $cross_compiling:$ac_tool_warned in 8960 yes:) 8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8962 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8963 ac_tool_warned=yes ;; 8964 esac 8965 OTOOL=$ac_ct_OTOOL 8966 fi 8967 else 8968 OTOOL="$ac_cv_prog_OTOOL" 8969 fi 8970 8971 if test -n "$ac_tool_prefix"; then 8972 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8973 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8975 printf %s "checking for $ac_word... " >&6; } 8976 if test ${ac_cv_prog_OTOOL64+y} 8977 then : 8978 printf %s "(cached) " >&6 8979 else $as_nop 8980 if test -n "$OTOOL64"; then 8981 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8982 else 8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8984 for as_dir in $PATH 8985 do 8986 IFS=$as_save_IFS 8987 case $as_dir in #((( 8988 '') as_dir=./ ;; 8989 */) ;; 8990 *) as_dir=$as_dir/ ;; 8991 esac 8992 for ac_exec_ext in '' $ac_executable_extensions; do 8993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8994 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8996 break 2 8997 fi 8998 done 8999 done 9000 IFS=$as_save_IFS 9001 9002 fi 9003 fi 9004 OTOOL64=$ac_cv_prog_OTOOL64 9005 if test -n "$OTOOL64"; then 9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9007 printf "%s\n" "$OTOOL64" >&6; } 9008 else 9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9010 printf "%s\n" "no" >&6; } 9011 fi 9012 9013 9014 fi 9015 if test -z "$ac_cv_prog_OTOOL64"; then 9016 ac_ct_OTOOL64=$OTOOL64 9017 # Extract the first word of "otool64", so it can be a program name with args. 9018 set dummy otool64; ac_word=$2 9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9020 printf %s "checking for $ac_word... " >&6; } 9021 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 9022 then : 9023 printf %s "(cached) " >&6 9024 else $as_nop 9025 if test -n "$ac_ct_OTOOL64"; then 9026 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9027 else 9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9029 for as_dir in $PATH 9030 do 9031 IFS=$as_save_IFS 9032 case $as_dir in #((( 9033 '') as_dir=./ ;; 9034 */) ;; 9035 *) as_dir=$as_dir/ ;; 9036 esac 9037 for ac_exec_ext in '' $ac_executable_extensions; do 9038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9039 ac_cv_prog_ac_ct_OTOOL64="otool64" 9040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9041 break 2 9042 fi 9043 done 9044 done 9045 IFS=$as_save_IFS 9046 9047 fi 9048 fi 9049 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9050 if test -n "$ac_ct_OTOOL64"; then 9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9052 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 9053 else 9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9055 printf "%s\n" "no" >&6; } 9056 fi 9057 9058 if test "x$ac_ct_OTOOL64" = x; then 9059 OTOOL64=":" 9060 else 9061 case $cross_compiling:$ac_tool_warned in 9062 yes:) 9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9064 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9065 ac_tool_warned=yes ;; 9066 esac 9067 OTOOL64=$ac_ct_OTOOL64 9068 fi 9069 else 9070 OTOOL64="$ac_cv_prog_OTOOL64" 9071 fi 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9100 printf %s "checking for -single_module linker flag... " >&6; } 9101 if test ${lt_cv_apple_cc_single_mod+y} 9102 then : 9103 printf %s "(cached) " >&6 9104 else $as_nop 9105 lt_cv_apple_cc_single_mod=no 9106 if test -z "$LT_MULTI_MODULE"; then 9107 # By default we will add the -single_module flag. You can override 9108 # by either setting the environment variable LT_MULTI_MODULE 9109 # non-empty at configure time, or by adding -multi_module to the 9110 # link flags. 9111 rm -rf libconftest.dylib* 9112 echo "int foo(void){return 1;}" > conftest.c 9113 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9114 -dynamiclib -Wl,-single_module conftest.c" >&5 9115 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9116 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9117 _lt_result=$? 9118 # If there is a non-empty error log, and "single_module" 9119 # appears in it, assume the flag caused a linker warning 9120 if test -s conftest.err && $GREP single_module conftest.err; then 9121 cat conftest.err >&5 9122 # Otherwise, if the output was created with a 0 exit code from 9123 # the compiler, it worked. 9124 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9125 lt_cv_apple_cc_single_mod=yes 9126 else 9127 cat conftest.err >&5 9128 fi 9129 rm -rf libconftest.dylib* 9130 rm -f conftest.* 9131 fi 9132 fi 9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9134 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9135 9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9137 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9138 if test ${lt_cv_ld_exported_symbols_list+y} 9139 then : 9140 printf %s "(cached) " >&6 9141 else $as_nop 9142 lt_cv_ld_exported_symbols_list=no 9143 save_LDFLAGS=$LDFLAGS 9144 echo "_main" > conftest.sym 9145 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9147 /* end confdefs.h. */ 9148 9149 int 9150 main (void) 9151 { 9152 9153 ; 9154 return 0; 9155 } 9156 _ACEOF 9157 if ac_fn_c_try_link "$LINENO" 9158 then : 9159 lt_cv_ld_exported_symbols_list=yes 9160 else $as_nop 9161 lt_cv_ld_exported_symbols_list=no 9162 fi 9163 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9164 conftest$ac_exeext conftest.$ac_ext 9165 LDFLAGS=$save_LDFLAGS 9166 9167 fi 9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9169 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9170 9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9172 printf %s "checking for -force_load linker flag... " >&6; } 9173 if test ${lt_cv_ld_force_load+y} 9174 then : 9175 printf %s "(cached) " >&6 9176 else $as_nop 9177 lt_cv_ld_force_load=no 9178 cat > conftest.c << _LT_EOF 9179 int forced_loaded() { return 2;} 9180 _LT_EOF 9181 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9182 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9183 echo "$AR cru libconftest.a conftest.o" >&5 9184 $AR cru libconftest.a conftest.o 2>&5 9185 echo "$RANLIB libconftest.a" >&5 9186 $RANLIB libconftest.a 2>&5 9187 cat > conftest.c << _LT_EOF 9188 int main() { return 0;} 9189 _LT_EOF 9190 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9191 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9192 _lt_result=$? 9193 if test -s conftest.err && $GREP force_load conftest.err; then 9194 cat conftest.err >&5 9195 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9196 lt_cv_ld_force_load=yes 9197 else 9198 cat conftest.err >&5 9199 fi 9200 rm -f conftest.err libconftest.a conftest conftest.c 9201 rm -rf conftest.dSYM 9202 9203 fi 9204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9205 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9206 case $host_os in 9207 rhapsody* | darwin1.[012]) 9208 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9209 darwin1.*) 9210 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9211 darwin*) # darwin 5.x on 9212 # if running on 10.5 or later, the deployment target defaults 9213 # to the OS version, if on x86, and 10.4, the deployment 9214 # target defaults to 10.4. Don't you love it? 9215 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9216 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9217 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9218 10.[012][,.]*) 9219 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9220 10.*) 9221 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9222 esac 9223 ;; 9224 esac 9225 if test yes = "$lt_cv_apple_cc_single_mod"; then 9226 _lt_dar_single_mod='$single_module' 9227 fi 9228 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9229 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9230 else 9231 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9232 fi 9233 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9234 _lt_dsymutil='~$DSYMUTIL $lib || :' 9235 else 9236 _lt_dsymutil= 9237 fi 9238 ;; 9239 esac 9240 9241 # func_munge_path_list VARIABLE PATH 9242 # ----------------------------------- 9243 # VARIABLE is name of variable containing _space_ separated list of 9244 # directories to be munged by the contents of PATH, which is string 9245 # having a format: 9246 # "DIR[:DIR]:" 9247 # string "DIR[ DIR]" will be prepended to VARIABLE 9248 # ":DIR[:DIR]" 9249 # string "DIR[ DIR]" will be appended to VARIABLE 9250 # "DIRP[:DIRP]::[DIRA:]DIRA" 9251 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9252 # "DIRA[ DIRA]" will be appended to VARIABLE 9253 # "DIR[:DIR]" 9254 # VARIABLE will be replaced by "DIR[ DIR]" 9255 func_munge_path_list () 9256 { 9257 case x$2 in 9258 x) 9259 ;; 9260 *:) 9261 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9262 ;; 9263 x:*) 9264 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9265 ;; 9266 *::*) 9267 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9268 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9269 ;; 9270 *) 9271 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9272 ;; 9273 esac 9274 } 9275 9276 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9277 " 9278 if test "x$ac_cv_header_dlfcn_h" = xyes 9279 then : 9280 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9281 9282 fi 9283 9284 9285 9286 9287 9288 # Set options 9289 9290 9291 9292 enable_dlopen=no 9293 9294 9295 enable_win32_dll=no 9296 9297 9298 # Check whether --enable-shared was given. 9299 if test ${enable_shared+y} 9300 then : 9301 enableval=$enable_shared; p=${PACKAGE-default} 9302 case $enableval in 9303 yes) enable_shared=yes ;; 9304 no) enable_shared=no ;; 9305 *) 9306 enable_shared=no 9307 # Look at the argument we got. We use all the common list separators. 9308 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9309 for pkg in $enableval; do 9310 IFS=$lt_save_ifs 9311 if test "X$pkg" = "X$p"; then 9312 enable_shared=yes 9313 fi 9314 done 9315 IFS=$lt_save_ifs 9316 ;; 9317 esac 9318 else $as_nop 9319 enable_shared=yes 9320 fi 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 # Check whether --enable-static was given. 9331 if test ${enable_static+y} 9332 then : 9333 enableval=$enable_static; p=${PACKAGE-default} 9334 case $enableval in 9335 yes) enable_static=yes ;; 9336 no) enable_static=no ;; 9337 *) 9338 enable_static=no 9339 # Look at the argument we got. We use all the common list separators. 9340 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9341 for pkg in $enableval; do 9342 IFS=$lt_save_ifs 9343 if test "X$pkg" = "X$p"; then 9344 enable_static=yes 9345 fi 9346 done 9347 IFS=$lt_save_ifs 9348 ;; 9349 esac 9350 else $as_nop 9351 enable_static=yes 9352 fi 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 # Check whether --with-pic was given. 9364 if test ${with_pic+y} 9365 then : 9366 withval=$with_pic; lt_p=${PACKAGE-default} 9367 case $withval in 9368 yes|no) pic_mode=$withval ;; 9369 *) 9370 pic_mode=default 9371 # Look at the argument we got. We use all the common list separators. 9372 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9373 for lt_pkg in $withval; do 9374 IFS=$lt_save_ifs 9375 if test "X$lt_pkg" = "X$lt_p"; then 9376 pic_mode=yes 9377 fi 9378 done 9379 IFS=$lt_save_ifs 9380 ;; 9381 esac 9382 else $as_nop 9383 pic_mode=default 9384 fi 9385 9386 9387 9388 9389 9390 9391 9392 9393 # Check whether --enable-fast-install was given. 9394 if test ${enable_fast_install+y} 9395 then : 9396 enableval=$enable_fast_install; p=${PACKAGE-default} 9397 case $enableval in 9398 yes) enable_fast_install=yes ;; 9399 no) enable_fast_install=no ;; 9400 *) 9401 enable_fast_install=no 9402 # Look at the argument we got. We use all the common list separators. 9403 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9404 for pkg in $enableval; do 9405 IFS=$lt_save_ifs 9406 if test "X$pkg" = "X$p"; then 9407 enable_fast_install=yes 9408 fi 9409 done 9410 IFS=$lt_save_ifs 9411 ;; 9412 esac 9413 else $as_nop 9414 enable_fast_install=yes 9415 fi 9416 9417 9418 9419 9420 9421 9422 9423 9424 shared_archive_member_spec= 9425 case $host,$enable_shared in 9426 power*-*-aix[5-9]*,yes) 9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9428 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9429 9430 # Check whether --with-aix-soname was given. 9431 if test ${with_aix_soname+y} 9432 then : 9433 withval=$with_aix_soname; case $withval in 9434 aix|svr4|both) 9435 ;; 9436 *) 9437 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9438 ;; 9439 esac 9440 lt_cv_with_aix_soname=$with_aix_soname 9441 else $as_nop 9442 if test ${lt_cv_with_aix_soname+y} 9443 then : 9444 printf %s "(cached) " >&6 9445 else $as_nop 9446 lt_cv_with_aix_soname=aix 9447 fi 9448 9449 with_aix_soname=$lt_cv_with_aix_soname 9450 fi 9451 9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9453 printf "%s\n" "$with_aix_soname" >&6; } 9454 if test aix != "$with_aix_soname"; then 9455 # For the AIX way of multilib, we name the shared archive member 9456 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9457 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9458 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9459 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9460 if test 64 = "${OBJECT_MODE-32}"; then 9461 shared_archive_member_spec=shr_64 9462 else 9463 shared_archive_member_spec=shr 9464 fi 9465 fi 9466 ;; 9467 *) 9468 with_aix_soname=aix 9469 ;; 9470 esac 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 # This can be used to rebuild libtool when needed 9482 LIBTOOL_DEPS=$ltmain 9483 9484 # Always use our own libtool. 9485 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 test -z "$LN_S" && LN_S="ln -s" 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 if test -n "${ZSH_VERSION+set}"; then 9532 setopt NO_GLOB_SUBST 9533 fi 9534 9535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9536 printf %s "checking for objdir... " >&6; } 9537 if test ${lt_cv_objdir+y} 9538 then : 9539 printf %s "(cached) " >&6 9540 else $as_nop 9541 rm -f .libs 2>/dev/null 9542 mkdir .libs 2>/dev/null 9543 if test -d .libs; then 9544 lt_cv_objdir=.libs 9545 else 9546 # MS-DOS does not allow filenames that begin with a dot. 9547 lt_cv_objdir=_libs 9548 fi 9549 rmdir .libs 2>/dev/null 9550 fi 9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9552 printf "%s\n" "$lt_cv_objdir" >&6; } 9553 objdir=$lt_cv_objdir 9554 9555 9556 9557 9558 9559 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9560 9561 9562 9563 9564 case $host_os in 9565 aix3*) 9566 # AIX sometimes has problems with the GCC collect2 program. For some 9567 # reason, if we set the COLLECT_NAMES environment variable, the problems 9568 # vanish in a puff of smoke. 9569 if test set != "${COLLECT_NAMES+set}"; then 9570 COLLECT_NAMES= 9571 export COLLECT_NAMES 9572 fi 9573 ;; 9574 esac 9575 9576 # Global variables: 9577 ofile=libtool 9578 can_build_shared=yes 9579 9580 # All known linkers require a '.a' archive for static linking (except MSVC, 9581 # which needs '.lib'). 9582 libext=a 9583 9584 with_gnu_ld=$lt_cv_prog_gnu_ld 9585 9586 old_CC=$CC 9587 old_CFLAGS=$CFLAGS 9588 9589 # Set sane defaults for various variables 9590 test -z "$CC" && CC=cc 9591 test -z "$LTCC" && LTCC=$CC 9592 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9593 test -z "$LD" && LD=ld 9594 test -z "$ac_objext" && ac_objext=o 9595 9596 func_cc_basename $compiler 9597 cc_basename=$func_cc_basename_result 9598 9599 9600 # Only perform the check for file, if the check method requires it 9601 test -z "$MAGIC_CMD" && MAGIC_CMD=file 9602 case $deplibs_check_method in 9603 file_magic*) 9604 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9606 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9607 if test ${lt_cv_path_MAGIC_CMD+y} 9608 then : 9609 printf %s "(cached) " >&6 9610 else $as_nop 9611 case $MAGIC_CMD in 9612 [\\/*] | ?:[\\/]*) 9613 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9614 ;; 9615 *) 9616 lt_save_MAGIC_CMD=$MAGIC_CMD 9617 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9618 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9619 for ac_dir in $ac_dummy; do 9620 IFS=$lt_save_ifs 9621 test -z "$ac_dir" && ac_dir=. 9622 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9623 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9624 if test -n "$file_magic_test_file"; then 9625 case $deplibs_check_method in 9626 "file_magic "*) 9627 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9628 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9630 $EGREP "$file_magic_regex" > /dev/null; then 9631 : 9632 else 9633 cat <<_LT_EOF 1>&2 9634 9635 *** Warning: the command libtool uses to detect shared libraries, 9636 *** $file_magic_cmd, produces output that libtool cannot recognize. 9637 *** The result is that libtool may fail to recognize shared libraries 9638 *** as such. This will affect the creation of libtool libraries that 9639 *** depend on shared libraries, but programs linked with such libtool 9640 *** libraries will work regardless of this problem. Nevertheless, you 9641 *** may want to report the problem to your system manager and/or to 9642 *** bug-libtool@gnu.org 9643 9644 _LT_EOF 9645 fi ;; 9646 esac 9647 fi 9648 break 9649 fi 9650 done 9651 IFS=$lt_save_ifs 9652 MAGIC_CMD=$lt_save_MAGIC_CMD 9653 ;; 9654 esac 9655 fi 9656 9657 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9658 if test -n "$MAGIC_CMD"; then 9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9660 printf "%s\n" "$MAGIC_CMD" >&6; } 9661 else 9662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9663 printf "%s\n" "no" >&6; } 9664 fi 9665 9666 9667 9668 9669 9670 if test -z "$lt_cv_path_MAGIC_CMD"; then 9671 if test -n "$ac_tool_prefix"; then 9672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9673 printf %s "checking for file... " >&6; } 9674 if test ${lt_cv_path_MAGIC_CMD+y} 9675 then : 9676 printf %s "(cached) " >&6 9677 else $as_nop 9678 case $MAGIC_CMD in 9679 [\\/*] | ?:[\\/]*) 9680 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9681 ;; 9682 *) 9683 lt_save_MAGIC_CMD=$MAGIC_CMD 9684 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9686 for ac_dir in $ac_dummy; do 9687 IFS=$lt_save_ifs 9688 test -z "$ac_dir" && ac_dir=. 9689 if test -f "$ac_dir/file"; then 9690 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9691 if test -n "$file_magic_test_file"; then 9692 case $deplibs_check_method in 9693 "file_magic "*) 9694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9695 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9697 $EGREP "$file_magic_regex" > /dev/null; then 9698 : 9699 else 9700 cat <<_LT_EOF 1>&2 9701 9702 *** Warning: the command libtool uses to detect shared libraries, 9703 *** $file_magic_cmd, produces output that libtool cannot recognize. 9704 *** The result is that libtool may fail to recognize shared libraries 9705 *** as such. This will affect the creation of libtool libraries that 9706 *** depend on shared libraries, but programs linked with such libtool 9707 *** libraries will work regardless of this problem. Nevertheless, you 9708 *** may want to report the problem to your system manager and/or to 9709 *** bug-libtool@gnu.org 9710 9711 _LT_EOF 9712 fi ;; 9713 esac 9714 fi 9715 break 9716 fi 9717 done 9718 IFS=$lt_save_ifs 9719 MAGIC_CMD=$lt_save_MAGIC_CMD 9720 ;; 9721 esac 9722 fi 9723 9724 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9725 if test -n "$MAGIC_CMD"; then 9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9727 printf "%s\n" "$MAGIC_CMD" >&6; } 9728 else 9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9730 printf "%s\n" "no" >&6; } 9731 fi 9732 9733 9734 else 9735 MAGIC_CMD=: 9736 fi 9737 fi 9738 9739 fi 9740 ;; 9741 esac 9742 9743 # Use C for the default configuration in the libtool script 9744 9745 lt_save_CC=$CC 9746 ac_ext=c 9747 ac_cpp='$CPP $CPPFLAGS' 9748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9750 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9751 9752 9753 # Source file extension for C test sources. 9754 ac_ext=c 9755 9756 # Object file extension for compiled C test sources. 9757 objext=o 9758 objext=$objext 9759 9760 # Code to be used in simple compile tests 9761 lt_simple_compile_test_code="int some_variable = 0;" 9762 9763 # Code to be used in simple link tests 9764 lt_simple_link_test_code='int main(){return(0);}' 9765 9766 9767 9768 9769 9770 9771 9772 # If no C compiler was specified, use CC. 9773 LTCC=${LTCC-"$CC"} 9774 9775 # If no C compiler flags were specified, use CFLAGS. 9776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9777 9778 # Allow CC to be a program name with arguments. 9779 compiler=$CC 9780 9781 # Save the default compiler, since it gets overwritten when the other 9782 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9783 compiler_DEFAULT=$CC 9784 9785 # save warnings/boilerplate of simple test code 9786 ac_outfile=conftest.$ac_objext 9787 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9788 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9789 _lt_compiler_boilerplate=`cat conftest.err` 9790 $RM conftest* 9791 9792 ac_outfile=conftest.$ac_objext 9793 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9794 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9795 _lt_linker_boilerplate=`cat conftest.err` 9796 $RM -r conftest* 9797 9798 9799 ## CAVEAT EMPTOR: 9800 ## There is no encapsulation within the following macros, do not change 9801 ## the running order or otherwise move them around unless you know exactly 9802 ## what you are doing... 9803 if test -n "$compiler"; then 9804 9805 lt_prog_compiler_no_builtin_flag= 9806 9807 if test yes = "$GCC"; then 9808 case $cc_basename in 9809 nvcc*) 9810 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9811 *) 9812 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9813 esac 9814 9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9816 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9817 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9818 then : 9819 printf %s "(cached) " >&6 9820 else $as_nop 9821 lt_cv_prog_compiler_rtti_exceptions=no 9822 ac_outfile=conftest.$ac_objext 9823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9824 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9825 # Insert the option either (1) after the last *FLAGS variable, or 9826 # (2) before a word containing "conftest.", or (3) at the end. 9827 # Note that $ac_compile itself does not contain backslashes and begins 9828 # with a dollar sign (not a hyphen), so the echo should work correctly. 9829 # The option is referenced via a variable to avoid confusing sed. 9830 lt_compile=`echo "$ac_compile" | $SED \ 9831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9833 -e 's:$: $lt_compiler_flag:'` 9834 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9835 (eval "$lt_compile" 2>conftest.err) 9836 ac_status=$? 9837 cat conftest.err >&5 9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9839 if (exit $ac_status) && test -s "$ac_outfile"; then 9840 # The compiler can only warn and ignore the option if not recognized 9841 # So say no if there are warnings other than the usual output. 9842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9845 lt_cv_prog_compiler_rtti_exceptions=yes 9846 fi 9847 fi 9848 $RM conftest* 9849 9850 fi 9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9852 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9853 9854 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9855 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9856 else 9857 : 9858 fi 9859 9860 fi 9861 9862 9863 9864 9865 9866 9867 lt_prog_compiler_wl= 9868 lt_prog_compiler_pic= 9869 lt_prog_compiler_static= 9870 9871 9872 if test yes = "$GCC"; then 9873 lt_prog_compiler_wl='-Wl,' 9874 lt_prog_compiler_static='-static' 9875 9876 case $host_os in 9877 aix*) 9878 # All AIX code is PIC. 9879 if test ia64 = "$host_cpu"; then 9880 # AIX 5 now supports IA64 processor 9881 lt_prog_compiler_static='-Bstatic' 9882 fi 9883 lt_prog_compiler_pic='-fPIC' 9884 ;; 9885 9886 amigaos*) 9887 case $host_cpu in 9888 powerpc) 9889 # see comment about AmigaOS4 .so support 9890 lt_prog_compiler_pic='-fPIC' 9891 ;; 9892 m68k) 9893 # FIXME: we need at least 68020 code to build shared libraries, but 9894 # adding the '-m68020' flag to GCC prevents building anything better, 9895 # like '-m68040'. 9896 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9897 ;; 9898 esac 9899 ;; 9900 9901 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9902 # PIC is the default for these OSes. 9903 ;; 9904 9905 mingw* | cygwin* | pw32* | os2* | cegcc*) 9906 # This hack is so that the source file can tell whether it is being 9907 # built for inclusion in a dll (and should export symbols for example). 9908 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9909 # (--disable-auto-import) libraries 9910 lt_prog_compiler_pic='-DDLL_EXPORT' 9911 case $host_os in 9912 os2*) 9913 lt_prog_compiler_static='$wl-static' 9914 ;; 9915 esac 9916 ;; 9917 9918 darwin* | rhapsody*) 9919 # PIC is the default on this platform 9920 # Common symbols not allowed in MH_DYLIB files 9921 lt_prog_compiler_pic='-fno-common' 9922 ;; 9923 9924 haiku*) 9925 # PIC is the default for Haiku. 9926 # The "-static" flag exists, but is broken. 9927 lt_prog_compiler_static= 9928 ;; 9929 9930 hpux*) 9931 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9932 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9933 # sets the default TLS model and affects inlining. 9934 case $host_cpu in 9935 hppa*64*) 9936 # +Z the default 9937 ;; 9938 *) 9939 lt_prog_compiler_pic='-fPIC' 9940 ;; 9941 esac 9942 ;; 9943 9944 interix[3-9]*) 9945 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9946 # Instead, we relocate shared libraries at runtime. 9947 ;; 9948 9949 msdosdjgpp*) 9950 # Just because we use GCC doesn't mean we suddenly get shared libraries 9951 # on systems that don't support them. 9952 lt_prog_compiler_can_build_shared=no 9953 enable_shared=no 9954 ;; 9955 9956 *nto* | *qnx*) 9957 # QNX uses GNU C++, but need to define -shared option too, otherwise 9958 # it will coredump. 9959 lt_prog_compiler_pic='-fPIC -shared' 9960 ;; 9961 9962 sysv4*MP*) 9963 if test -d /usr/nec; then 9964 lt_prog_compiler_pic=-Kconform_pic 9965 fi 9966 ;; 9967 9968 *) 9969 lt_prog_compiler_pic='-fPIC' 9970 ;; 9971 esac 9972 9973 case $cc_basename in 9974 nvcc*) # Cuda Compiler Driver 2.2 9975 lt_prog_compiler_wl='-Xlinker ' 9976 if test -n "$lt_prog_compiler_pic"; then 9977 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9978 fi 9979 ;; 9980 esac 9981 else 9982 # PORTME Check for flag to pass linker flags through the system compiler. 9983 case $host_os in 9984 aix*) 9985 lt_prog_compiler_wl='-Wl,' 9986 if test ia64 = "$host_cpu"; then 9987 # AIX 5 now supports IA64 processor 9988 lt_prog_compiler_static='-Bstatic' 9989 else 9990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9991 fi 9992 ;; 9993 9994 darwin* | rhapsody*) 9995 # PIC is the default on this platform 9996 # Common symbols not allowed in MH_DYLIB files 9997 lt_prog_compiler_pic='-fno-common' 9998 case $cc_basename in 9999 nagfor*) 10000 # NAG Fortran compiler 10001 lt_prog_compiler_wl='-Wl,-Wl,,' 10002 lt_prog_compiler_pic='-PIC' 10003 lt_prog_compiler_static='-Bstatic' 10004 ;; 10005 esac 10006 ;; 10007 10008 mingw* | cygwin* | pw32* | os2* | cegcc*) 10009 # This hack is so that the source file can tell whether it is being 10010 # built for inclusion in a dll (and should export symbols for example). 10011 lt_prog_compiler_pic='-DDLL_EXPORT' 10012 case $host_os in 10013 os2*) 10014 lt_prog_compiler_static='$wl-static' 10015 ;; 10016 esac 10017 ;; 10018 10019 hpux9* | hpux10* | hpux11*) 10020 lt_prog_compiler_wl='-Wl,' 10021 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10022 # not for PA HP-UX. 10023 case $host_cpu in 10024 hppa*64*|ia64*) 10025 # +Z the default 10026 ;; 10027 *) 10028 lt_prog_compiler_pic='+Z' 10029 ;; 10030 esac 10031 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10032 lt_prog_compiler_static='$wl-a ${wl}archive' 10033 ;; 10034 10035 irix5* | irix6* | nonstopux*) 10036 lt_prog_compiler_wl='-Wl,' 10037 # PIC (with -KPIC) is the default. 10038 lt_prog_compiler_static='-non_shared' 10039 ;; 10040 10041 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10042 case $cc_basename in 10043 # old Intel for x86_64, which still supported -KPIC. 10044 ecc*) 10045 lt_prog_compiler_wl='-Wl,' 10046 lt_prog_compiler_pic='-KPIC' 10047 lt_prog_compiler_static='-static' 10048 ;; 10049 # icc used to be incompatible with GCC. 10050 # ICC 10 doesn't accept -KPIC any more. 10051 icc* | ifort*) 10052 lt_prog_compiler_wl='-Wl,' 10053 lt_prog_compiler_pic='-fPIC' 10054 lt_prog_compiler_static='-static' 10055 ;; 10056 # Lahey Fortran 8.1. 10057 lf95*) 10058 lt_prog_compiler_wl='-Wl,' 10059 lt_prog_compiler_pic='--shared' 10060 lt_prog_compiler_static='--static' 10061 ;; 10062 nagfor*) 10063 # NAG Fortran compiler 10064 lt_prog_compiler_wl='-Wl,-Wl,,' 10065 lt_prog_compiler_pic='-PIC' 10066 lt_prog_compiler_static='-Bstatic' 10067 ;; 10068 tcc*) 10069 # Fabrice Bellard et al's Tiny C Compiler 10070 lt_prog_compiler_wl='-Wl,' 10071 lt_prog_compiler_pic='-fPIC' 10072 lt_prog_compiler_static='-static' 10073 ;; 10074 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10075 # Portland Group compilers (*not* the Pentium gcc compiler, 10076 # which looks to be a dead project) 10077 lt_prog_compiler_wl='-Wl,' 10078 lt_prog_compiler_pic='-fpic' 10079 lt_prog_compiler_static='-Bstatic' 10080 ;; 10081 ccc*) 10082 lt_prog_compiler_wl='-Wl,' 10083 # All Alpha code is PIC. 10084 lt_prog_compiler_static='-non_shared' 10085 ;; 10086 xl* | bgxl* | bgf* | mpixl*) 10087 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10088 lt_prog_compiler_wl='-Wl,' 10089 lt_prog_compiler_pic='-qpic' 10090 lt_prog_compiler_static='-qstaticlink' 10091 ;; 10092 *) 10093 case `$CC -V 2>&1 | sed 5q` in 10094 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10095 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10096 lt_prog_compiler_pic='-KPIC' 10097 lt_prog_compiler_static='-Bstatic' 10098 lt_prog_compiler_wl='' 10099 ;; 10100 *Sun\ F* | *Sun*Fortran*) 10101 lt_prog_compiler_pic='-KPIC' 10102 lt_prog_compiler_static='-Bstatic' 10103 lt_prog_compiler_wl='-Qoption ld ' 10104 ;; 10105 *Sun\ C*) 10106 # Sun C 5.9 10107 lt_prog_compiler_pic='-KPIC' 10108 lt_prog_compiler_static='-Bstatic' 10109 lt_prog_compiler_wl='-Wl,' 10110 ;; 10111 *Intel*\ [CF]*Compiler*) 10112 lt_prog_compiler_wl='-Wl,' 10113 lt_prog_compiler_pic='-fPIC' 10114 lt_prog_compiler_static='-static' 10115 ;; 10116 *Portland\ Group*) 10117 lt_prog_compiler_wl='-Wl,' 10118 lt_prog_compiler_pic='-fpic' 10119 lt_prog_compiler_static='-Bstatic' 10120 ;; 10121 esac 10122 ;; 10123 esac 10124 ;; 10125 10126 newsos6) 10127 lt_prog_compiler_pic='-KPIC' 10128 lt_prog_compiler_static='-Bstatic' 10129 ;; 10130 10131 *nto* | *qnx*) 10132 # QNX uses GNU C++, but need to define -shared option too, otherwise 10133 # it will coredump. 10134 lt_prog_compiler_pic='-fPIC -shared' 10135 ;; 10136 10137 osf3* | osf4* | osf5*) 10138 lt_prog_compiler_wl='-Wl,' 10139 # All OSF/1 code is PIC. 10140 lt_prog_compiler_static='-non_shared' 10141 ;; 10142 10143 rdos*) 10144 lt_prog_compiler_static='-non_shared' 10145 ;; 10146 10147 solaris*) 10148 lt_prog_compiler_pic='-KPIC' 10149 lt_prog_compiler_static='-Bstatic' 10150 case $cc_basename in 10151 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10152 lt_prog_compiler_wl='-Qoption ld ';; 10153 *) 10154 lt_prog_compiler_wl='-Wl,';; 10155 esac 10156 ;; 10157 10158 sunos4*) 10159 lt_prog_compiler_wl='-Qoption ld ' 10160 lt_prog_compiler_pic='-PIC' 10161 lt_prog_compiler_static='-Bstatic' 10162 ;; 10163 10164 sysv4 | sysv4.2uw2* | sysv4.3*) 10165 lt_prog_compiler_wl='-Wl,' 10166 lt_prog_compiler_pic='-KPIC' 10167 lt_prog_compiler_static='-Bstatic' 10168 ;; 10169 10170 sysv4*MP*) 10171 if test -d /usr/nec; then 10172 lt_prog_compiler_pic='-Kconform_pic' 10173 lt_prog_compiler_static='-Bstatic' 10174 fi 10175 ;; 10176 10177 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10178 lt_prog_compiler_wl='-Wl,' 10179 lt_prog_compiler_pic='-KPIC' 10180 lt_prog_compiler_static='-Bstatic' 10181 ;; 10182 10183 unicos*) 10184 lt_prog_compiler_wl='-Wl,' 10185 lt_prog_compiler_can_build_shared=no 10186 ;; 10187 10188 uts4*) 10189 lt_prog_compiler_pic='-pic' 10190 lt_prog_compiler_static='-Bstatic' 10191 ;; 10192 10193 *) 10194 lt_prog_compiler_can_build_shared=no 10195 ;; 10196 esac 10197 fi 10198 10199 case $host_os in 10200 # For platforms that do not support PIC, -DPIC is meaningless: 10201 *djgpp*) 10202 lt_prog_compiler_pic= 10203 ;; 10204 *) 10205 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10206 ;; 10207 esac 10208 10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10210 printf %s "checking for $compiler option to produce PIC... " >&6; } 10211 if test ${lt_cv_prog_compiler_pic+y} 10212 then : 10213 printf %s "(cached) " >&6 10214 else $as_nop 10215 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10216 fi 10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10218 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10219 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10220 10221 # 10222 # Check to make sure the PIC flag actually works. 10223 # 10224 if test -n "$lt_prog_compiler_pic"; then 10225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10226 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10227 if test ${lt_cv_prog_compiler_pic_works+y} 10228 then : 10229 printf %s "(cached) " >&6 10230 else $as_nop 10231 lt_cv_prog_compiler_pic_works=no 10232 ac_outfile=conftest.$ac_objext 10233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10234 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10235 # Insert the option either (1) after the last *FLAGS variable, or 10236 # (2) before a word containing "conftest.", or (3) at the end. 10237 # Note that $ac_compile itself does not contain backslashes and begins 10238 # with a dollar sign (not a hyphen), so the echo should work correctly. 10239 # The option is referenced via a variable to avoid confusing sed. 10240 lt_compile=`echo "$ac_compile" | $SED \ 10241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10243 -e 's:$: $lt_compiler_flag:'` 10244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10245 (eval "$lt_compile" 2>conftest.err) 10246 ac_status=$? 10247 cat conftest.err >&5 10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10249 if (exit $ac_status) && test -s "$ac_outfile"; then 10250 # The compiler can only warn and ignore the option if not recognized 10251 # So say no if there are warnings other than the usual output. 10252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10255 lt_cv_prog_compiler_pic_works=yes 10256 fi 10257 fi 10258 $RM conftest* 10259 10260 fi 10261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10262 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10263 10264 if test yes = "$lt_cv_prog_compiler_pic_works"; then 10265 case $lt_prog_compiler_pic in 10266 "" | " "*) ;; 10267 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10268 esac 10269 else 10270 lt_prog_compiler_pic= 10271 lt_prog_compiler_can_build_shared=no 10272 fi 10273 10274 fi 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 # 10287 # Check to make sure the static flag actually works. 10288 # 10289 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10291 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10292 if test ${lt_cv_prog_compiler_static_works+y} 10293 then : 10294 printf %s "(cached) " >&6 10295 else $as_nop 10296 lt_cv_prog_compiler_static_works=no 10297 save_LDFLAGS=$LDFLAGS 10298 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10299 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10300 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10301 # The linker can only warn and ignore the option if not recognized 10302 # So say no if there are warnings 10303 if test -s conftest.err; then 10304 # Append any errors to the config.log. 10305 cat conftest.err 1>&5 10306 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10308 if diff conftest.exp conftest.er2 >/dev/null; then 10309 lt_cv_prog_compiler_static_works=yes 10310 fi 10311 else 10312 lt_cv_prog_compiler_static_works=yes 10313 fi 10314 fi 10315 $RM -r conftest* 10316 LDFLAGS=$save_LDFLAGS 10317 10318 fi 10319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10320 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10321 10322 if test yes = "$lt_cv_prog_compiler_static_works"; then 10323 : 10324 else 10325 lt_prog_compiler_static= 10326 fi 10327 10328 10329 10330 10331 10332 10333 10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10335 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10336 if test ${lt_cv_prog_compiler_c_o+y} 10337 then : 10338 printf %s "(cached) " >&6 10339 else $as_nop 10340 lt_cv_prog_compiler_c_o=no 10341 $RM -r conftest 2>/dev/null 10342 mkdir conftest 10343 cd conftest 10344 mkdir out 10345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10346 10347 lt_compiler_flag="-o out/conftest2.$ac_objext" 10348 # Insert the option either (1) after the last *FLAGS variable, or 10349 # (2) before a word containing "conftest.", or (3) at the end. 10350 # Note that $ac_compile itself does not contain backslashes and begins 10351 # with a dollar sign (not a hyphen), so the echo should work correctly. 10352 lt_compile=`echo "$ac_compile" | $SED \ 10353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10355 -e 's:$: $lt_compiler_flag:'` 10356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10357 (eval "$lt_compile" 2>out/conftest.err) 10358 ac_status=$? 10359 cat out/conftest.err >&5 10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10361 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10362 then 10363 # The compiler can only warn and ignore the option if not recognized 10364 # So say no if there are warnings 10365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10368 lt_cv_prog_compiler_c_o=yes 10369 fi 10370 fi 10371 chmod u+w . 2>&5 10372 $RM conftest* 10373 # SGI C++ compiler will create directory out/ii_files/ for 10374 # template instantiation 10375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10376 $RM out/* && rmdir out 10377 cd .. 10378 $RM -r conftest 10379 $RM conftest* 10380 10381 fi 10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10383 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10384 10385 10386 10387 10388 10389 10390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10391 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10392 if test ${lt_cv_prog_compiler_c_o+y} 10393 then : 10394 printf %s "(cached) " >&6 10395 else $as_nop 10396 lt_cv_prog_compiler_c_o=no 10397 $RM -r conftest 2>/dev/null 10398 mkdir conftest 10399 cd conftest 10400 mkdir out 10401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10402 10403 lt_compiler_flag="-o out/conftest2.$ac_objext" 10404 # Insert the option either (1) after the last *FLAGS variable, or 10405 # (2) before a word containing "conftest.", or (3) at the end. 10406 # Note that $ac_compile itself does not contain backslashes and begins 10407 # with a dollar sign (not a hyphen), so the echo should work correctly. 10408 lt_compile=`echo "$ac_compile" | $SED \ 10409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10411 -e 's:$: $lt_compiler_flag:'` 10412 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10413 (eval "$lt_compile" 2>out/conftest.err) 10414 ac_status=$? 10415 cat out/conftest.err >&5 10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10417 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10418 then 10419 # The compiler can only warn and ignore the option if not recognized 10420 # So say no if there are warnings 10421 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10422 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10423 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10424 lt_cv_prog_compiler_c_o=yes 10425 fi 10426 fi 10427 chmod u+w . 2>&5 10428 $RM conftest* 10429 # SGI C++ compiler will create directory out/ii_files/ for 10430 # template instantiation 10431 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10432 $RM out/* && rmdir out 10433 cd .. 10434 $RM -r conftest 10435 $RM conftest* 10436 10437 fi 10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10439 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10440 10441 10442 10443 10444 hard_links=nottested 10445 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10446 # do not overwrite the value of need_locks provided by the user 10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10448 printf %s "checking if we can lock with hard links... " >&6; } 10449 hard_links=yes 10450 $RM conftest* 10451 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10452 touch conftest.a 10453 ln conftest.a conftest.b 2>&5 || hard_links=no 10454 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10456 printf "%s\n" "$hard_links" >&6; } 10457 if test no = "$hard_links"; then 10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10459 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10460 need_locks=warn 10461 fi 10462 else 10463 need_locks=no 10464 fi 10465 10466 10467 10468 10469 10470 10471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10472 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10473 10474 runpath_var= 10475 allow_undefined_flag= 10476 always_export_symbols=no 10477 archive_cmds= 10478 archive_expsym_cmds= 10479 compiler_needs_object=no 10480 enable_shared_with_static_runtimes=no 10481 export_dynamic_flag_spec= 10482 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10483 hardcode_automatic=no 10484 hardcode_direct=no 10485 hardcode_direct_absolute=no 10486 hardcode_libdir_flag_spec= 10487 hardcode_libdir_separator= 10488 hardcode_minus_L=no 10489 hardcode_shlibpath_var=unsupported 10490 inherit_rpath=no 10491 link_all_deplibs=unknown 10492 module_cmds= 10493 module_expsym_cmds= 10494 old_archive_from_new_cmds= 10495 old_archive_from_expsyms_cmds= 10496 thread_safe_flag_spec= 10497 whole_archive_flag_spec= 10498 # include_expsyms should be a list of space-separated symbols to be *always* 10499 # included in the symbol list 10500 include_expsyms= 10501 # exclude_expsyms can be an extended regexp of symbols to exclude 10502 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10503 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10504 # as well as any symbol that contains 'd'. 10505 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10506 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10507 # platforms (ab)use it in PIC code, but their linkers get confused if 10508 # the symbol is explicitly referenced. Since portable code cannot 10509 # rely on this symbol name, it's probably fine to never include it in 10510 # preloaded symbol tables. 10511 # Exclude shared library initialization/finalization symbols. 10512 extract_expsyms_cmds= 10513 10514 case $host_os in 10515 cygwin* | mingw* | pw32* | cegcc*) 10516 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10517 # When not using gcc, we currently assume that we are using 10518 # Microsoft Visual C++. 10519 if test yes != "$GCC"; then 10520 with_gnu_ld=no 10521 fi 10522 ;; 10523 interix*) 10524 # we just hope/assume this is gcc and not c89 (= MSVC++) 10525 with_gnu_ld=yes 10526 ;; 10527 openbsd* | bitrig*) 10528 with_gnu_ld=no 10529 ;; 10530 esac 10531 10532 ld_shlibs=yes 10533 10534 # On some targets, GNU ld is compatible enough with the native linker 10535 # that we're better off using the native interface for both. 10536 lt_use_gnu_ld_interface=no 10537 if test yes = "$with_gnu_ld"; then 10538 case $host_os in 10539 aix*) 10540 # The AIX port of GNU ld has always aspired to compatibility 10541 # with the native linker. However, as the warning in the GNU ld 10542 # block says, versions before 2.19.5* couldn't really create working 10543 # shared libraries, regardless of the interface used. 10544 case `$LD -v 2>&1` in 10545 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10546 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10547 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10548 *) 10549 lt_use_gnu_ld_interface=yes 10550 ;; 10551 esac 10552 ;; 10553 *) 10554 lt_use_gnu_ld_interface=yes 10555 ;; 10556 esac 10557 fi 10558 10559 if test yes = "$lt_use_gnu_ld_interface"; then 10560 # If archive_cmds runs LD, not CC, wlarc should be empty 10561 wlarc='$wl' 10562 10563 # Set some defaults for GNU ld with shared library support. These 10564 # are reset later if shared libraries are not supported. Putting them 10565 # here allows them to be overridden if necessary. 10566 runpath_var=LD_RUN_PATH 10567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10568 export_dynamic_flag_spec='$wl--export-dynamic' 10569 # ancient GNU ld didn't support --whole-archive et. al. 10570 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10571 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10572 else 10573 whole_archive_flag_spec= 10574 fi 10575 supports_anon_versioning=no 10576 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10577 *GNU\ gold*) supports_anon_versioning=yes ;; 10578 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10579 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10580 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10581 *\ 2.11.*) ;; # other 2.11 versions 10582 *) supports_anon_versioning=yes ;; 10583 esac 10584 10585 # See if GNU ld supports shared libraries. 10586 case $host_os in 10587 aix[3-9]*) 10588 # On AIX/PPC, the GNU linker is very broken 10589 if test ia64 != "$host_cpu"; then 10590 ld_shlibs=no 10591 cat <<_LT_EOF 1>&2 10592 10593 *** Warning: the GNU linker, at least up to release 2.19, is reported 10594 *** to be unable to reliably create shared libraries on AIX. 10595 *** Therefore, libtool is disabling shared libraries support. If you 10596 *** really care for shared libraries, you may want to install binutils 10597 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10598 *** You will then need to restart the configuration process. 10599 10600 _LT_EOF 10601 fi 10602 ;; 10603 10604 amigaos*) 10605 case $host_cpu in 10606 powerpc) 10607 # see comment about AmigaOS4 .so support 10608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10609 archive_expsym_cmds='' 10610 ;; 10611 m68k) 10612 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)' 10613 hardcode_libdir_flag_spec='-L$libdir' 10614 hardcode_minus_L=yes 10615 ;; 10616 esac 10617 ;; 10618 10619 beos*) 10620 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10621 allow_undefined_flag=unsupported 10622 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10623 # support --undefined. This deserves some investigation. FIXME 10624 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10625 else 10626 ld_shlibs=no 10627 fi 10628 ;; 10629 10630 cygwin* | mingw* | pw32* | cegcc*) 10631 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10632 # as there is no search path for DLLs. 10633 hardcode_libdir_flag_spec='-L$libdir' 10634 export_dynamic_flag_spec='$wl--export-all-symbols' 10635 allow_undefined_flag=unsupported 10636 always_export_symbols=no 10637 enable_shared_with_static_runtimes=yes 10638 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' 10639 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10640 10641 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10643 # If the export-symbols file already is a .def file, use it as 10644 # is; otherwise, prepend EXPORTS... 10645 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10646 cp $export_symbols $output_objdir/$soname.def; 10647 else 10648 echo EXPORTS > $output_objdir/$soname.def; 10649 cat $export_symbols >> $output_objdir/$soname.def; 10650 fi~ 10651 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10652 else 10653 ld_shlibs=no 10654 fi 10655 ;; 10656 10657 haiku*) 10658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10659 link_all_deplibs=yes 10660 ;; 10661 10662 os2*) 10663 hardcode_libdir_flag_spec='-L$libdir' 10664 hardcode_minus_L=yes 10665 allow_undefined_flag=unsupported 10666 shrext_cmds=.dll 10667 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10668 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10669 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10670 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10671 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10672 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10673 emximp -o $lib $output_objdir/$libname.def' 10674 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10675 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10676 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10677 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10678 prefix_cmds="$SED"~ 10679 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10680 prefix_cmds="$prefix_cmds -e 1d"; 10681 fi~ 10682 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10683 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10684 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10685 emximp -o $lib $output_objdir/$libname.def' 10686 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10687 enable_shared_with_static_runtimes=yes 10688 ;; 10689 10690 interix[3-9]*) 10691 hardcode_direct=no 10692 hardcode_shlibpath_var=no 10693 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10694 export_dynamic_flag_spec='$wl-E' 10695 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10696 # Instead, shared libraries are loaded at an image base (0x10000000 by 10697 # default) and relocated if they conflict, which is a slow very memory 10698 # consuming and fragmenting process. To avoid this, we pick a random, 10699 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10700 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10701 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10702 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' 10703 ;; 10704 10705 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10706 tmp_diet=no 10707 if test linux-dietlibc = "$host_os"; then 10708 case $cc_basename in 10709 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10710 esac 10711 fi 10712 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10713 && test no = "$tmp_diet" 10714 then 10715 tmp_addflag=' $pic_flag' 10716 tmp_sharedflag='-shared' 10717 case $cc_basename,$host_cpu in 10718 pgcc*) # Portland Group C compiler 10719 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' 10720 tmp_addflag=' $pic_flag' 10721 ;; 10722 pgf77* | pgf90* | pgf95* | pgfortran*) 10723 # Portland Group f77 and f90 compilers 10724 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' 10725 tmp_addflag=' $pic_flag -Mnomain' ;; 10726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10727 tmp_addflag=' -i_dynamic' ;; 10728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10729 tmp_addflag=' -i_dynamic -nofor_main' ;; 10730 ifc* | ifort*) # Intel Fortran compiler 10731 tmp_addflag=' -nofor_main' ;; 10732 lf95*) # Lahey Fortran 8.1 10733 whole_archive_flag_spec= 10734 tmp_sharedflag='--shared' ;; 10735 nagfor*) # NAGFOR 5.3 10736 tmp_sharedflag='-Wl,-shared' ;; 10737 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10738 tmp_sharedflag='-qmkshrobj' 10739 tmp_addflag= ;; 10740 nvcc*) # Cuda Compiler Driver 2.2 10741 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' 10742 compiler_needs_object=yes 10743 ;; 10744 esac 10745 case `$CC -V 2>&1 | sed 5q` in 10746 *Sun\ C*) # Sun C 5.9 10747 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' 10748 compiler_needs_object=yes 10749 tmp_sharedflag='-G' ;; 10750 *Sun\ F*) # Sun Fortran 8.3 10751 tmp_sharedflag='-G' ;; 10752 esac 10753 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10754 10755 if test yes = "$supports_anon_versioning"; then 10756 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10758 echo "local: *; };" >> $output_objdir/$libname.ver~ 10759 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10760 fi 10761 10762 case $cc_basename in 10763 tcc*) 10764 export_dynamic_flag_spec='-rdynamic' 10765 ;; 10766 xlf* | bgf* | bgxlf* | mpixlf*) 10767 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10768 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10769 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10770 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10771 if test yes = "$supports_anon_versioning"; then 10772 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10774 echo "local: *; };" >> $output_objdir/$libname.ver~ 10775 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10776 fi 10777 ;; 10778 esac 10779 else 10780 ld_shlibs=no 10781 fi 10782 ;; 10783 10784 netbsd*) 10785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10786 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10787 wlarc= 10788 else 10789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10790 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10791 fi 10792 ;; 10793 10794 solaris*) 10795 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10796 ld_shlibs=no 10797 cat <<_LT_EOF 1>&2 10798 10799 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10800 *** create shared libraries on Solaris systems. Therefore, libtool 10801 *** is disabling shared libraries support. We urge you to upgrade GNU 10802 *** binutils to release 2.9.1 or newer. Another option is to modify 10803 *** your PATH or compiler configuration so that the native linker is 10804 *** used, and then restart. 10805 10806 _LT_EOF 10807 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10809 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10810 else 10811 ld_shlibs=no 10812 fi 10813 ;; 10814 10815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10816 case `$LD -v 2>&1` in 10817 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10818 ld_shlibs=no 10819 cat <<_LT_EOF 1>&2 10820 10821 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10822 *** reliably create shared libraries on SCO systems. Therefore, libtool 10823 *** is disabling shared libraries support. We urge you to upgrade GNU 10824 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10825 *** your PATH or compiler configuration so that the native linker is 10826 *** used, and then restart. 10827 10828 _LT_EOF 10829 ;; 10830 *) 10831 # For security reasons, it is highly recommended that you always 10832 # use absolute paths for naming shared libraries, and exclude the 10833 # DT_RUNPATH tag from executables and libraries. But doing so 10834 # requires that you compile everything twice, which is a pain. 10835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10836 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10839 else 10840 ld_shlibs=no 10841 fi 10842 ;; 10843 esac 10844 ;; 10845 10846 sunos4*) 10847 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10848 wlarc= 10849 hardcode_direct=yes 10850 hardcode_shlibpath_var=no 10851 ;; 10852 10853 *) 10854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10855 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10856 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10857 else 10858 ld_shlibs=no 10859 fi 10860 ;; 10861 esac 10862 10863 if test no = "$ld_shlibs"; then 10864 runpath_var= 10865 hardcode_libdir_flag_spec= 10866 export_dynamic_flag_spec= 10867 whole_archive_flag_spec= 10868 fi 10869 else 10870 # PORTME fill in a description of your system's linker (not GNU ld) 10871 case $host_os in 10872 aix3*) 10873 allow_undefined_flag=unsupported 10874 always_export_symbols=yes 10875 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' 10876 # Note: this linker hardcodes the directories in LIBPATH if there 10877 # are no directories specified by -L. 10878 hardcode_minus_L=yes 10879 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10880 # Neither direct hardcoding nor static linking is supported with a 10881 # broken collect2. 10882 hardcode_direct=unsupported 10883 fi 10884 ;; 10885 10886 aix[4-9]*) 10887 if test ia64 = "$host_cpu"; then 10888 # On IA64, the linker does run time linking by default, so we don't 10889 # have to do anything special. 10890 aix_use_runtimelinking=no 10891 exp_sym_flag='-Bexport' 10892 no_entry_flag= 10893 else 10894 # If we're using GNU nm, then we don't want the "-C" option. 10895 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10896 # Without the "-l" option, or with the "-B" option, AIX nm treats 10897 # weak defined symbols like other global defined symbols, whereas 10898 # GNU nm marks them as "W". 10899 # While the 'weak' keyword is ignored in the Export File, we need 10900 # it in the Import File for the 'aix-soname' feature, so we have 10901 # to replace the "-B" option with "-P" for AIX nm. 10902 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10903 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10904 else 10905 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10906 fi 10907 aix_use_runtimelinking=no 10908 10909 # Test if we are trying to use run time linking or normal 10910 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10911 # have runtime linking enabled, and use it for executables. 10912 # For shared libraries, we enable/disable runtime linking 10913 # depending on the kind of the shared library created - 10914 # when "with_aix_soname,aix_use_runtimelinking" is: 10915 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10916 # "aix,yes" lib.so shared, rtl:yes, for executables 10917 # lib.a static archive 10918 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10919 # lib.a(lib.so.V) shared, rtl:no, for executables 10920 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10921 # lib.a(lib.so.V) shared, rtl:no 10922 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10923 # lib.a static archive 10924 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10925 for ld_flag in $LDFLAGS; do 10926 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10927 aix_use_runtimelinking=yes 10928 break 10929 fi 10930 done 10931 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10932 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10933 # so we don't have lib.a shared libs to link our executables. 10934 # We have to force runtime linking in this case. 10935 aix_use_runtimelinking=yes 10936 LDFLAGS="$LDFLAGS -Wl,-brtl" 10937 fi 10938 ;; 10939 esac 10940 10941 exp_sym_flag='-bexport' 10942 no_entry_flag='-bnoentry' 10943 fi 10944 10945 # When large executables or shared objects are built, AIX ld can 10946 # have problems creating the table of contents. If linking a library 10947 # or program results in "error TOC overflow" add -mminimal-toc to 10948 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10949 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10950 10951 archive_cmds='' 10952 hardcode_direct=yes 10953 hardcode_direct_absolute=yes 10954 hardcode_libdir_separator=':' 10955 link_all_deplibs=yes 10956 file_list_spec='$wl-f,' 10957 case $with_aix_soname,$aix_use_runtimelinking in 10958 aix,*) ;; # traditional, no import file 10959 svr4,* | *,yes) # use import file 10960 # The Import File defines what to hardcode. 10961 hardcode_direct=no 10962 hardcode_direct_absolute=no 10963 ;; 10964 esac 10965 10966 if test yes = "$GCC"; then 10967 case $host_os in aix4.[012]|aix4.[012].*) 10968 # We only want to do this on AIX 4.2 and lower, the check 10969 # below for broken collect2 doesn't work under 4.3+ 10970 collect2name=`$CC -print-prog-name=collect2` 10971 if test -f "$collect2name" && 10972 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10973 then 10974 # We have reworked collect2 10975 : 10976 else 10977 # We have old collect2 10978 hardcode_direct=unsupported 10979 # It fails to find uninstalled libraries when the uninstalled 10980 # path is not listed in the libpath. Setting hardcode_minus_L 10981 # to unsupported forces relinking 10982 hardcode_minus_L=yes 10983 hardcode_libdir_flag_spec='-L$libdir' 10984 hardcode_libdir_separator= 10985 fi 10986 ;; 10987 esac 10988 shared_flag='-shared' 10989 if test yes = "$aix_use_runtimelinking"; then 10990 shared_flag="$shared_flag "'$wl-G' 10991 fi 10992 # Need to ensure runtime linking is disabled for the traditional 10993 # shared library, or the linker may eventually find shared libraries 10994 # /with/ Import File - we do not want to mix them. 10995 shared_flag_aix='-shared' 10996 shared_flag_svr4='-shared $wl-G' 10997 else 10998 # not using gcc 10999 if test ia64 = "$host_cpu"; then 11000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11001 # chokes on -Wl,-G. The following line is correct: 11002 shared_flag='-G' 11003 else 11004 if test yes = "$aix_use_runtimelinking"; then 11005 shared_flag='$wl-G' 11006 else 11007 shared_flag='$wl-bM:SRE' 11008 fi 11009 shared_flag_aix='$wl-bM:SRE' 11010 shared_flag_svr4='$wl-G' 11011 fi 11012 fi 11013 11014 export_dynamic_flag_spec='$wl-bexpall' 11015 # It seems that -bexpall does not export symbols beginning with 11016 # underscore (_), so it is better to generate a list of symbols to export. 11017 always_export_symbols=yes 11018 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11019 # Warning - without using the other runtime loading flags (-brtl), 11020 # -berok will link without error, but may produce a broken library. 11021 allow_undefined_flag='-berok' 11022 # Determine the default libpath from the value encoded in an 11023 # empty executable. 11024 if test set = "${lt_cv_aix_libpath+set}"; then 11025 aix_libpath=$lt_cv_aix_libpath 11026 else 11027 if test ${lt_cv_aix_libpath_+y} 11028 then : 11029 printf %s "(cached) " >&6 11030 else $as_nop 11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11032 /* end confdefs.h. */ 11033 11034 int 11035 main (void) 11036 { 11037 11038 ; 11039 return 0; 11040 } 11041 _ACEOF 11042 if ac_fn_c_try_link "$LINENO" 11043 then : 11044 11045 lt_aix_libpath_sed=' 11046 /Import File Strings/,/^$/ { 11047 /^0/ { 11048 s/^0 *\([^ ]*\) *$/\1/ 11049 p 11050 } 11051 }' 11052 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11053 # Check for a 64-bit object if we didn't find anything. 11054 if test -z "$lt_cv_aix_libpath_"; then 11055 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11056 fi 11057 fi 11058 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11059 conftest$ac_exeext conftest.$ac_ext 11060 if test -z "$lt_cv_aix_libpath_"; then 11061 lt_cv_aix_libpath_=/usr/lib:/lib 11062 fi 11063 11064 fi 11065 11066 aix_libpath=$lt_cv_aix_libpath_ 11067 fi 11068 11069 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11070 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11071 else 11072 if test ia64 = "$host_cpu"; then 11073 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11074 allow_undefined_flag="-z nodefs" 11075 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" 11076 else 11077 # Determine the default libpath from the value encoded in an 11078 # empty executable. 11079 if test set = "${lt_cv_aix_libpath+set}"; then 11080 aix_libpath=$lt_cv_aix_libpath 11081 else 11082 if test ${lt_cv_aix_libpath_+y} 11083 then : 11084 printf %s "(cached) " >&6 11085 else $as_nop 11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11087 /* end confdefs.h. */ 11088 11089 int 11090 main (void) 11091 { 11092 11093 ; 11094 return 0; 11095 } 11096 _ACEOF 11097 if ac_fn_c_try_link "$LINENO" 11098 then : 11099 11100 lt_aix_libpath_sed=' 11101 /Import File Strings/,/^$/ { 11102 /^0/ { 11103 s/^0 *\([^ ]*\) *$/\1/ 11104 p 11105 } 11106 }' 11107 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11108 # Check for a 64-bit object if we didn't find anything. 11109 if test -z "$lt_cv_aix_libpath_"; then 11110 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11111 fi 11112 fi 11113 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11114 conftest$ac_exeext conftest.$ac_ext 11115 if test -z "$lt_cv_aix_libpath_"; then 11116 lt_cv_aix_libpath_=/usr/lib:/lib 11117 fi 11118 11119 fi 11120 11121 aix_libpath=$lt_cv_aix_libpath_ 11122 fi 11123 11124 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11125 # Warning - without using the other run time loading flags, 11126 # -berok will link without error, but may produce a broken library. 11127 no_undefined_flag=' $wl-bernotok' 11128 allow_undefined_flag=' $wl-berok' 11129 if test yes = "$with_gnu_ld"; then 11130 # We only use this code for GNU lds that support --whole-archive. 11131 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11132 else 11133 # Exported symbols can be pulled into shared objects from archives 11134 whole_archive_flag_spec='$convenience' 11135 fi 11136 archive_cmds_need_lc=yes 11137 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11138 # -brtl affects multiple linker settings, -berok does not and is overridden later 11139 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11140 if test svr4 != "$with_aix_soname"; then 11141 # This is similar to how AIX traditionally builds its shared libraries. 11142 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11143 fi 11144 if test aix != "$with_aix_soname"; then 11145 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11146 else 11147 # used by -dlpreopen to get the symbols 11148 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11149 fi 11150 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11151 fi 11152 fi 11153 ;; 11154 11155 amigaos*) 11156 case $host_cpu in 11157 powerpc) 11158 # see comment about AmigaOS4 .so support 11159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11160 archive_expsym_cmds='' 11161 ;; 11162 m68k) 11163 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)' 11164 hardcode_libdir_flag_spec='-L$libdir' 11165 hardcode_minus_L=yes 11166 ;; 11167 esac 11168 ;; 11169 11170 bsdi[45]*) 11171 export_dynamic_flag_spec=-rdynamic 11172 ;; 11173 11174 cygwin* | mingw* | pw32* | cegcc*) 11175 # When not using gcc, we currently assume that we are using 11176 # Microsoft Visual C++. 11177 # hardcode_libdir_flag_spec is actually meaningless, as there is 11178 # no search path for DLLs. 11179 case $cc_basename in 11180 cl*) 11181 # Native MSVC 11182 hardcode_libdir_flag_spec=' ' 11183 allow_undefined_flag=unsupported 11184 always_export_symbols=yes 11185 file_list_spec='@' 11186 # Tell ltmain to make .lib files, not .a files. 11187 libext=lib 11188 # Tell ltmain to make .dll files, not .so files. 11189 shrext_cmds=.dll 11190 # FIXME: Setting linknames here is a bad hack. 11191 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11192 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11193 cp "$export_symbols" "$output_objdir/$soname.def"; 11194 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11195 else 11196 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11197 fi~ 11198 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11199 linknames=' 11200 # The linker will not automatically build a static lib if we build a DLL. 11201 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11202 enable_shared_with_static_runtimes=yes 11203 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11204 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11205 # Don't use ranlib 11206 old_postinstall_cmds='chmod 644 $oldlib' 11207 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11208 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11209 case $lt_outputfile in 11210 *.exe|*.EXE) ;; 11211 *) 11212 lt_outputfile=$lt_outputfile.exe 11213 lt_tool_outputfile=$lt_tool_outputfile.exe 11214 ;; 11215 esac~ 11216 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11217 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11218 $RM "$lt_outputfile.manifest"; 11219 fi' 11220 ;; 11221 *) 11222 # Assume MSVC wrapper 11223 hardcode_libdir_flag_spec=' ' 11224 allow_undefined_flag=unsupported 11225 # Tell ltmain to make .lib files, not .a files. 11226 libext=lib 11227 # Tell ltmain to make .dll files, not .so files. 11228 shrext_cmds=.dll 11229 # FIXME: Setting linknames here is a bad hack. 11230 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11231 # The linker will automatically build a .lib file if we build a DLL. 11232 old_archive_from_new_cmds='true' 11233 # FIXME: Should let the user specify the lib program. 11234 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11235 enable_shared_with_static_runtimes=yes 11236 ;; 11237 esac 11238 ;; 11239 11240 darwin* | rhapsody*) 11241 11242 11243 archive_cmds_need_lc=no 11244 hardcode_direct=no 11245 hardcode_automatic=yes 11246 hardcode_shlibpath_var=unsupported 11247 if test yes = "$lt_cv_ld_force_load"; then 11248 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\"`' 11249 11250 else 11251 whole_archive_flag_spec='' 11252 fi 11253 link_all_deplibs=yes 11254 allow_undefined_flag=$_lt_dar_allow_undefined 11255 case $cc_basename in 11256 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11257 *) _lt_dar_can_shared=$GCC ;; 11258 esac 11259 if test yes = "$_lt_dar_can_shared"; then 11260 output_verbose_link_cmd=func_echo_all 11261 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11262 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11263 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" 11264 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" 11265 11266 else 11267 ld_shlibs=no 11268 fi 11269 11270 ;; 11271 11272 dgux*) 11273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11274 hardcode_libdir_flag_spec='-L$libdir' 11275 hardcode_shlibpath_var=no 11276 ;; 11277 11278 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11279 # support. Future versions do this automatically, but an explicit c++rt0.o 11280 # does not break anything, and helps significantly (at the cost of a little 11281 # extra space). 11282 freebsd2.2*) 11283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11284 hardcode_libdir_flag_spec='-R$libdir' 11285 hardcode_direct=yes 11286 hardcode_shlibpath_var=no 11287 ;; 11288 11289 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11290 freebsd2.*) 11291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11292 hardcode_direct=yes 11293 hardcode_minus_L=yes 11294 hardcode_shlibpath_var=no 11295 ;; 11296 11297 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11298 freebsd* | dragonfly*) 11299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11300 hardcode_libdir_flag_spec='-R$libdir' 11301 hardcode_direct=yes 11302 hardcode_shlibpath_var=no 11303 ;; 11304 11305 hpux9*) 11306 if test yes = "$GCC"; then 11307 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11308 else 11309 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11310 fi 11311 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11312 hardcode_libdir_separator=: 11313 hardcode_direct=yes 11314 11315 # hardcode_minus_L: Not really in the search PATH, 11316 # but as the default location of the library. 11317 hardcode_minus_L=yes 11318 export_dynamic_flag_spec='$wl-E' 11319 ;; 11320 11321 hpux10*) 11322 if test yes,no = "$GCC,$with_gnu_ld"; then 11323 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11324 else 11325 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11326 fi 11327 if test no = "$with_gnu_ld"; then 11328 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11329 hardcode_libdir_separator=: 11330 hardcode_direct=yes 11331 hardcode_direct_absolute=yes 11332 export_dynamic_flag_spec='$wl-E' 11333 # hardcode_minus_L: Not really in the search PATH, 11334 # but as the default location of the library. 11335 hardcode_minus_L=yes 11336 fi 11337 ;; 11338 11339 hpux11*) 11340 if test yes,no = "$GCC,$with_gnu_ld"; then 11341 case $host_cpu in 11342 hppa*64*) 11343 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11344 ;; 11345 ia64*) 11346 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11347 ;; 11348 *) 11349 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11350 ;; 11351 esac 11352 else 11353 case $host_cpu in 11354 hppa*64*) 11355 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11356 ;; 11357 ia64*) 11358 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11359 ;; 11360 *) 11361 11362 # Older versions of the 11.00 compiler do not understand -b yet 11363 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11365 printf %s "checking if $CC understands -b... " >&6; } 11366 if test ${lt_cv_prog_compiler__b+y} 11367 then : 11368 printf %s "(cached) " >&6 11369 else $as_nop 11370 lt_cv_prog_compiler__b=no 11371 save_LDFLAGS=$LDFLAGS 11372 LDFLAGS="$LDFLAGS -b" 11373 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11374 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11375 # The linker can only warn and ignore the option if not recognized 11376 # So say no if there are warnings 11377 if test -s conftest.err; then 11378 # Append any errors to the config.log. 11379 cat conftest.err 1>&5 11380 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11382 if diff conftest.exp conftest.er2 >/dev/null; then 11383 lt_cv_prog_compiler__b=yes 11384 fi 11385 else 11386 lt_cv_prog_compiler__b=yes 11387 fi 11388 fi 11389 $RM -r conftest* 11390 LDFLAGS=$save_LDFLAGS 11391 11392 fi 11393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11394 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11395 11396 if test yes = "$lt_cv_prog_compiler__b"; then 11397 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11398 else 11399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11400 fi 11401 11402 ;; 11403 esac 11404 fi 11405 if test no = "$with_gnu_ld"; then 11406 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11407 hardcode_libdir_separator=: 11408 11409 case $host_cpu in 11410 hppa*64*|ia64*) 11411 hardcode_direct=no 11412 hardcode_shlibpath_var=no 11413 ;; 11414 *) 11415 hardcode_direct=yes 11416 hardcode_direct_absolute=yes 11417 export_dynamic_flag_spec='$wl-E' 11418 11419 # hardcode_minus_L: Not really in the search PATH, 11420 # but as the default location of the library. 11421 hardcode_minus_L=yes 11422 ;; 11423 esac 11424 fi 11425 ;; 11426 11427 irix5* | irix6* | nonstopux*) 11428 if test yes = "$GCC"; then 11429 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' 11430 # Try to use the -exported_symbol ld option, if it does not 11431 # work, assume that -exports_file does not work either and 11432 # implicitly export all symbols. 11433 # This should be the same for all languages, so no per-tag cache variable. 11434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11435 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11436 if test ${lt_cv_irix_exported_symbol+y} 11437 then : 11438 printf %s "(cached) " >&6 11439 else $as_nop 11440 save_LDFLAGS=$LDFLAGS 11441 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11443 /* end confdefs.h. */ 11444 int foo (void) { return 0; } 11445 _ACEOF 11446 if ac_fn_c_try_link "$LINENO" 11447 then : 11448 lt_cv_irix_exported_symbol=yes 11449 else $as_nop 11450 lt_cv_irix_exported_symbol=no 11451 fi 11452 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11453 conftest$ac_exeext conftest.$ac_ext 11454 LDFLAGS=$save_LDFLAGS 11455 fi 11456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11457 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11458 if test yes = "$lt_cv_irix_exported_symbol"; then 11459 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' 11460 fi 11461 else 11462 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' 11463 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' 11464 fi 11465 archive_cmds_need_lc='no' 11466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11467 hardcode_libdir_separator=: 11468 inherit_rpath=yes 11469 link_all_deplibs=yes 11470 ;; 11471 11472 linux*) 11473 case $cc_basename in 11474 tcc*) 11475 # Fabrice Bellard et al's Tiny C Compiler 11476 ld_shlibs=yes 11477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11478 ;; 11479 esac 11480 ;; 11481 11482 netbsd*) 11483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11485 else 11486 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11487 fi 11488 hardcode_libdir_flag_spec='-R$libdir' 11489 hardcode_direct=yes 11490 hardcode_shlibpath_var=no 11491 ;; 11492 11493 newsos6) 11494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11495 hardcode_direct=yes 11496 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11497 hardcode_libdir_separator=: 11498 hardcode_shlibpath_var=no 11499 ;; 11500 11501 *nto* | *qnx*) 11502 ;; 11503 11504 openbsd* | bitrig*) 11505 if test -f /usr/libexec/ld.so; then 11506 hardcode_direct=yes 11507 hardcode_shlibpath_var=no 11508 hardcode_direct_absolute=yes 11509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11511 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11512 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11513 export_dynamic_flag_spec='$wl-E' 11514 else 11515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11516 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11517 fi 11518 else 11519 ld_shlibs=no 11520 fi 11521 ;; 11522 11523 os2*) 11524 hardcode_libdir_flag_spec='-L$libdir' 11525 hardcode_minus_L=yes 11526 allow_undefined_flag=unsupported 11527 shrext_cmds=.dll 11528 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11529 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11530 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11531 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11532 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11533 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11534 emximp -o $lib $output_objdir/$libname.def' 11535 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11538 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11539 prefix_cmds="$SED"~ 11540 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11541 prefix_cmds="$prefix_cmds -e 1d"; 11542 fi~ 11543 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11544 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11545 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11546 emximp -o $lib $output_objdir/$libname.def' 11547 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11548 enable_shared_with_static_runtimes=yes 11549 ;; 11550 11551 osf3*) 11552 if test yes = "$GCC"; then 11553 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11554 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' 11555 else 11556 allow_undefined_flag=' -expect_unresolved \*' 11557 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' 11558 fi 11559 archive_cmds_need_lc='no' 11560 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11561 hardcode_libdir_separator=: 11562 ;; 11563 11564 osf4* | osf5*) # as osf3* with the addition of -msym flag 11565 if test yes = "$GCC"; then 11566 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11567 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' 11568 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11569 else 11570 allow_undefined_flag=' -expect_unresolved \*' 11571 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' 11572 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~ 11573 $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' 11574 11575 # Both c and cxx compiler support -rpath directly 11576 hardcode_libdir_flag_spec='-rpath $libdir' 11577 fi 11578 archive_cmds_need_lc='no' 11579 hardcode_libdir_separator=: 11580 ;; 11581 11582 solaris*) 11583 no_undefined_flag=' -z defs' 11584 if test yes = "$GCC"; then 11585 wlarc='$wl' 11586 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11588 $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' 11589 else 11590 case `$CC -V 2>&1` in 11591 *"Compilers 5.0"*) 11592 wlarc='' 11593 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11594 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11595 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11596 ;; 11597 *) 11598 wlarc='$wl' 11599 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11600 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11601 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11602 ;; 11603 esac 11604 fi 11605 hardcode_libdir_flag_spec='-R$libdir' 11606 hardcode_shlibpath_var=no 11607 case $host_os in 11608 solaris2.[0-5] | solaris2.[0-5].*) ;; 11609 *) 11610 # The compiler driver will combine and reorder linker options, 11611 # but understands '-z linker_flag'. GCC discards it without '$wl', 11612 # but is careful enough not to reorder. 11613 # Supported since Solaris 2.6 (maybe 2.5.1?) 11614 if test yes = "$GCC"; then 11615 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11616 else 11617 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11618 fi 11619 ;; 11620 esac 11621 link_all_deplibs=yes 11622 ;; 11623 11624 sunos4*) 11625 if test sequent = "$host_vendor"; then 11626 # Use $CC to link under sequent, because it throws in some extra .o 11627 # files that make .init and .fini sections work. 11628 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11629 else 11630 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11631 fi 11632 hardcode_libdir_flag_spec='-L$libdir' 11633 hardcode_direct=yes 11634 hardcode_minus_L=yes 11635 hardcode_shlibpath_var=no 11636 ;; 11637 11638 sysv4) 11639 case $host_vendor in 11640 sni) 11641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11642 hardcode_direct=yes # is this really true??? 11643 ;; 11644 siemens) 11645 ## LD is ld it makes a PLAMLIB 11646 ## CC just makes a GrossModule. 11647 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11648 reload_cmds='$CC -r -o $output$reload_objs' 11649 hardcode_direct=no 11650 ;; 11651 motorola) 11652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11653 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11654 ;; 11655 esac 11656 runpath_var='LD_RUN_PATH' 11657 hardcode_shlibpath_var=no 11658 ;; 11659 11660 sysv4.3*) 11661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11662 hardcode_shlibpath_var=no 11663 export_dynamic_flag_spec='-Bexport' 11664 ;; 11665 11666 sysv4*MP*) 11667 if test -d /usr/nec; then 11668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11669 hardcode_shlibpath_var=no 11670 runpath_var=LD_RUN_PATH 11671 hardcode_runpath_var=yes 11672 ld_shlibs=yes 11673 fi 11674 ;; 11675 11676 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11677 no_undefined_flag='$wl-z,text' 11678 archive_cmds_need_lc=no 11679 hardcode_shlibpath_var=no 11680 runpath_var='LD_RUN_PATH' 11681 11682 if test yes = "$GCC"; 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 11691 sysv5* | sco3.2v5* | sco5v6*) 11692 # Note: We CANNOT use -z defs as we might desire, because we do not 11693 # link with -lc, and that would cause any symbols used from libc to 11694 # always be unresolved, which means just about no library would 11695 # ever link correctly. If we're not using GNU ld we use -z text 11696 # though, which does catch some bad symbols but isn't as heavy-handed 11697 # as -z defs. 11698 no_undefined_flag='$wl-z,text' 11699 allow_undefined_flag='$wl-z,nodefs' 11700 archive_cmds_need_lc=no 11701 hardcode_shlibpath_var=no 11702 hardcode_libdir_flag_spec='$wl-R,$libdir' 11703 hardcode_libdir_separator=':' 11704 link_all_deplibs=yes 11705 export_dynamic_flag_spec='$wl-Bexport' 11706 runpath_var='LD_RUN_PATH' 11707 11708 if test yes = "$GCC"; then 11709 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11710 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11711 else 11712 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11713 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11714 fi 11715 ;; 11716 11717 uts4*) 11718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11719 hardcode_libdir_flag_spec='-L$libdir' 11720 hardcode_shlibpath_var=no 11721 ;; 11722 11723 *) 11724 ld_shlibs=no 11725 ;; 11726 esac 11727 11728 if test sni = "$host_vendor"; then 11729 case $host in 11730 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11731 export_dynamic_flag_spec='$wl-Blargedynsym' 11732 ;; 11733 esac 11734 fi 11735 fi 11736 11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11738 printf "%s\n" "$ld_shlibs" >&6; } 11739 test no = "$ld_shlibs" && can_build_shared=no 11740 11741 with_gnu_ld=$with_gnu_ld 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 # 11758 # Do we need to explicitly link libc? 11759 # 11760 case "x$archive_cmds_need_lc" in 11761 x|xyes) 11762 # Assume -lc should be added 11763 archive_cmds_need_lc=yes 11764 11765 if test yes,yes = "$GCC,$enable_shared"; then 11766 case $archive_cmds in 11767 *'~'*) 11768 # FIXME: we may have to deal with multi-command sequences. 11769 ;; 11770 '$CC '*) 11771 # Test whether the compiler implicitly links with -lc since on some 11772 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11773 # to ld, don't add -lc before -lgcc. 11774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11775 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11776 if test ${lt_cv_archive_cmds_need_lc+y} 11777 then : 11778 printf %s "(cached) " >&6 11779 else $as_nop 11780 $RM conftest* 11781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11782 11783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11784 (eval $ac_compile) 2>&5 11785 ac_status=$? 11786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11787 test $ac_status = 0; } 2>conftest.err; then 11788 soname=conftest 11789 lib=conftest 11790 libobjs=conftest.$ac_objext 11791 deplibs= 11792 wl=$lt_prog_compiler_wl 11793 pic_flag=$lt_prog_compiler_pic 11794 compiler_flags=-v 11795 linker_flags=-v 11796 verstring= 11797 output_objdir=. 11798 libname=conftest 11799 lt_save_allow_undefined_flag=$allow_undefined_flag 11800 allow_undefined_flag= 11801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11802 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11803 ac_status=$? 11804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11805 test $ac_status = 0; } 11806 then 11807 lt_cv_archive_cmds_need_lc=no 11808 else 11809 lt_cv_archive_cmds_need_lc=yes 11810 fi 11811 allow_undefined_flag=$lt_save_allow_undefined_flag 11812 else 11813 cat conftest.err 1>&5 11814 fi 11815 $RM conftest* 11816 11817 fi 11818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11819 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11820 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11821 ;; 11822 esac 11823 fi 11824 ;; 11825 esac 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11979 printf %s "checking dynamic linker characteristics... " >&6; } 11980 11981 if test yes = "$GCC"; then 11982 case $host_os in 11983 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11984 *) lt_awk_arg='/^libraries:/' ;; 11985 esac 11986 case $host_os in 11987 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11988 *) lt_sed_strip_eq='s|=/|/|g' ;; 11989 esac 11990 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11991 case $lt_search_path_spec in 11992 *\;*) 11993 # if the path contains ";" then we assume it to be the separator 11994 # otherwise default to the standard path separator (i.e. ":") - it is 11995 # assumed that no part of a normal pathname contains ";" but that should 11996 # okay in the real world where ";" in dirpaths is itself problematic. 11997 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11998 ;; 11999 *) 12000 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12001 ;; 12002 esac 12003 # Ok, now we have the path, separated by spaces, we can step through it 12004 # and add multilib dir if necessary... 12005 lt_tmp_lt_search_path_spec= 12006 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12007 # ...but if some path component already ends with the multilib dir we assume 12008 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12009 case "$lt_multi_os_dir; $lt_search_path_spec " in 12010 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12011 lt_multi_os_dir= 12012 ;; 12013 esac 12014 for lt_sys_path in $lt_search_path_spec; do 12015 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12016 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12017 elif test -n "$lt_multi_os_dir"; then 12018 test -d "$lt_sys_path" && \ 12019 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12020 fi 12021 done 12022 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12023 BEGIN {RS = " "; FS = "/|\n";} { 12024 lt_foo = ""; 12025 lt_count = 0; 12026 for (lt_i = NF; lt_i > 0; lt_i--) { 12027 if ($lt_i != "" && $lt_i != ".") { 12028 if ($lt_i == "..") { 12029 lt_count++; 12030 } else { 12031 if (lt_count == 0) { 12032 lt_foo = "/" $lt_i lt_foo; 12033 } else { 12034 lt_count--; 12035 } 12036 } 12037 } 12038 } 12039 if (lt_foo != "") { lt_freq[lt_foo]++; } 12040 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12041 }'` 12042 # AWK program above erroneously prepends '/' to C:/dos/paths 12043 # for these hosts. 12044 case $host_os in 12045 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12046 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12047 esac 12048 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12049 else 12050 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12051 fi 12052 library_names_spec= 12053 libname_spec='lib$name' 12054 soname_spec= 12055 shrext_cmds=.so 12056 postinstall_cmds= 12057 postuninstall_cmds= 12058 finish_cmds= 12059 finish_eval= 12060 shlibpath_var= 12061 shlibpath_overrides_runpath=unknown 12062 version_type=none 12063 dynamic_linker="$host_os ld.so" 12064 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12065 need_lib_prefix=unknown 12066 hardcode_into_libs=no 12067 12068 # when you set need_version to no, make sure it does not cause -set_version 12069 # flags to be left without arguments 12070 need_version=unknown 12071 12072 12073 12074 case $host_os in 12075 aix3*) 12076 version_type=linux # correct to gnu/linux during the next big refactor 12077 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12078 shlibpath_var=LIBPATH 12079 12080 # AIX 3 has no versioning support, so we append a major version to the name. 12081 soname_spec='$libname$release$shared_ext$major' 12082 ;; 12083 12084 aix[4-9]*) 12085 version_type=linux # correct to gnu/linux during the next big refactor 12086 need_lib_prefix=no 12087 need_version=no 12088 hardcode_into_libs=yes 12089 if test ia64 = "$host_cpu"; then 12090 # AIX 5 supports IA64 12091 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12092 shlibpath_var=LD_LIBRARY_PATH 12093 else 12094 # With GCC up to 2.95.x, collect2 would create an import file 12095 # for dependence libraries. The import file would start with 12096 # the line '#! .'. This would cause the generated library to 12097 # depend on '.', always an invalid library. This was fixed in 12098 # development snapshots of GCC prior to 3.0. 12099 case $host_os in 12100 aix4 | aix4.[01] | aix4.[01].*) 12101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12102 echo ' yes ' 12103 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12104 : 12105 else 12106 can_build_shared=no 12107 fi 12108 ;; 12109 esac 12110 # Using Import Files as archive members, it is possible to support 12111 # filename-based versioning of shared library archives on AIX. While 12112 # this would work for both with and without runtime linking, it will 12113 # prevent static linking of such archives. So we do filename-based 12114 # shared library versioning with .so extension only, which is used 12115 # when both runtime linking and shared linking is enabled. 12116 # Unfortunately, runtime linking may impact performance, so we do 12117 # not want this to be the default eventually. Also, we use the 12118 # versioned .so libs for executables only if there is the -brtl 12119 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12120 # To allow for filename-based versioning support, we need to create 12121 # libNAME.so.V as an archive file, containing: 12122 # *) an Import File, referring to the versioned filename of the 12123 # archive as well as the shared archive member, telling the 12124 # bitwidth (32 or 64) of that shared object, and providing the 12125 # list of exported symbols of that shared object, eventually 12126 # decorated with the 'weak' keyword 12127 # *) the shared object with the F_LOADONLY flag set, to really avoid 12128 # it being seen by the linker. 12129 # At run time we better use the real file rather than another symlink, 12130 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12131 12132 case $with_aix_soname,$aix_use_runtimelinking in 12133 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12134 # soname into executable. Probably we can add versioning support to 12135 # collect2, so additional links can be useful in future. 12136 aix,yes) # traditional libtool 12137 dynamic_linker='AIX unversionable lib.so' 12138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12139 # instead of lib<name>.a to let people know that these are not 12140 # typical AIX shared libraries. 12141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12142 ;; 12143 aix,no) # traditional AIX only 12144 dynamic_linker='AIX lib.a(lib.so.V)' 12145 # We preserve .a as extension for shared libraries through AIX4.2 12146 # and later when we are not doing run time linking. 12147 library_names_spec='$libname$release.a $libname.a' 12148 soname_spec='$libname$release$shared_ext$major' 12149 ;; 12150 svr4,*) # full svr4 only 12151 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12152 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12153 # We do not specify a path in Import Files, so LIBPATH fires. 12154 shlibpath_overrides_runpath=yes 12155 ;; 12156 *,yes) # both, prefer svr4 12157 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12158 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12159 # unpreferred sharedlib libNAME.a needs extra handling 12160 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12161 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12162 # We do not specify a path in Import Files, so LIBPATH fires. 12163 shlibpath_overrides_runpath=yes 12164 ;; 12165 *,no) # both, prefer aix 12166 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12167 library_names_spec='$libname$release.a $libname.a' 12168 soname_spec='$libname$release$shared_ext$major' 12169 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12170 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12171 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12172 ;; 12173 esac 12174 shlibpath_var=LIBPATH 12175 fi 12176 ;; 12177 12178 amigaos*) 12179 case $host_cpu in 12180 powerpc) 12181 # Since July 2007 AmigaOS4 officially supports .so libraries. 12182 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12184 ;; 12185 m68k) 12186 library_names_spec='$libname.ixlibrary $libname.a' 12187 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12188 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 12189 ;; 12190 esac 12191 ;; 12192 12193 beos*) 12194 library_names_spec='$libname$shared_ext' 12195 dynamic_linker="$host_os ld.so" 12196 shlibpath_var=LIBRARY_PATH 12197 ;; 12198 12199 bsdi[45]*) 12200 version_type=linux # correct to gnu/linux during the next big refactor 12201 need_version=no 12202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12203 soname_spec='$libname$release$shared_ext$major' 12204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12205 shlibpath_var=LD_LIBRARY_PATH 12206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12208 # the default ld.so.conf also contains /usr/contrib/lib and 12209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12210 # libtool to hard-code these into programs 12211 ;; 12212 12213 cygwin* | mingw* | pw32* | cegcc*) 12214 version_type=windows 12215 shrext_cmds=.dll 12216 need_version=no 12217 need_lib_prefix=no 12218 12219 case $GCC,$cc_basename in 12220 yes,*) 12221 # gcc 12222 library_names_spec='$libname.dll.a' 12223 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12224 postinstall_cmds='base_file=`basename \$file`~ 12225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12226 dldir=$destdir/`dirname \$dlpath`~ 12227 test -d \$dldir || mkdir -p \$dldir~ 12228 $install_prog $dir/$dlname \$dldir/$dlname~ 12229 chmod a+x \$dldir/$dlname~ 12230 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12231 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12232 fi' 12233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12234 dlpath=$dir/\$dldll~ 12235 $RM \$dlpath' 12236 shlibpath_overrides_runpath=yes 12237 12238 case $host_os in 12239 cygwin*) 12240 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12241 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12242 12243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12244 ;; 12245 mingw* | cegcc*) 12246 # MinGW DLLs use traditional 'lib' prefix 12247 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12248 ;; 12249 pw32*) 12250 # pw32 DLLs use 'pw' prefix rather than 'lib' 12251 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12252 ;; 12253 esac 12254 dynamic_linker='Win32 ld.exe' 12255 ;; 12256 12257 *,cl*) 12258 # Native MSVC 12259 libname_spec='$name' 12260 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12261 library_names_spec='$libname.dll.lib' 12262 12263 case $build_os in 12264 mingw*) 12265 sys_lib_search_path_spec= 12266 lt_save_ifs=$IFS 12267 IFS=';' 12268 for lt_path in $LIB 12269 do 12270 IFS=$lt_save_ifs 12271 # Let DOS variable expansion print the short 8.3 style file name. 12272 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12273 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12274 done 12275 IFS=$lt_save_ifs 12276 # Convert to MSYS style. 12277 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12278 ;; 12279 cygwin*) 12280 # Convert to unix form, then to dos form, then back to unix form 12281 # but this time dos style (no spaces!) so that the unix form looks 12282 # like /cygdrive/c/PROGRA~1:/cygdr... 12283 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12284 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12285 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12286 ;; 12287 *) 12288 sys_lib_search_path_spec=$LIB 12289 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12290 # It is most probably a Windows format PATH. 12291 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12292 else 12293 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12294 fi 12295 # FIXME: find the short name or the path components, as spaces are 12296 # common. (e.g. "Program Files" -> "PROGRA~1") 12297 ;; 12298 esac 12299 12300 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12301 postinstall_cmds='base_file=`basename \$file`~ 12302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12303 dldir=$destdir/`dirname \$dlpath`~ 12304 test -d \$dldir || mkdir -p \$dldir~ 12305 $install_prog $dir/$dlname \$dldir/$dlname' 12306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12307 dlpath=$dir/\$dldll~ 12308 $RM \$dlpath' 12309 shlibpath_overrides_runpath=yes 12310 dynamic_linker='Win32 link.exe' 12311 ;; 12312 12313 *) 12314 # Assume MSVC wrapper 12315 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12316 dynamic_linker='Win32 ld.exe' 12317 ;; 12318 esac 12319 # FIXME: first we should search . and the directory the executable is in 12320 shlibpath_var=PATH 12321 ;; 12322 12323 darwin* | rhapsody*) 12324 dynamic_linker="$host_os dyld" 12325 version_type=darwin 12326 need_lib_prefix=no 12327 need_version=no 12328 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12329 soname_spec='$libname$release$major$shared_ext' 12330 shlibpath_overrides_runpath=yes 12331 shlibpath_var=DYLD_LIBRARY_PATH 12332 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12333 12334 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12335 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12336 ;; 12337 12338 dgux*) 12339 version_type=linux # correct to gnu/linux during the next big refactor 12340 need_lib_prefix=no 12341 need_version=no 12342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12343 soname_spec='$libname$release$shared_ext$major' 12344 shlibpath_var=LD_LIBRARY_PATH 12345 ;; 12346 12347 freebsd* | dragonfly*) 12348 # DragonFly does not have aout. When/if they implement a new 12349 # versioning mechanism, adjust this. 12350 if test -x /usr/bin/objformat; then 12351 objformat=`/usr/bin/objformat` 12352 else 12353 case $host_os in 12354 freebsd[23].*) objformat=aout ;; 12355 *) objformat=elf ;; 12356 esac 12357 fi 12358 version_type=freebsd-$objformat 12359 case $version_type in 12360 freebsd-elf*) 12361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12362 soname_spec='$libname$release$shared_ext$major' 12363 need_version=no 12364 need_lib_prefix=no 12365 ;; 12366 freebsd-*) 12367 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12368 need_version=yes 12369 ;; 12370 esac 12371 shlibpath_var=LD_LIBRARY_PATH 12372 case $host_os in 12373 freebsd2.*) 12374 shlibpath_overrides_runpath=yes 12375 ;; 12376 freebsd3.[01]* | freebsdelf3.[01]*) 12377 shlibpath_overrides_runpath=yes 12378 hardcode_into_libs=yes 12379 ;; 12380 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12381 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12382 shlibpath_overrides_runpath=no 12383 hardcode_into_libs=yes 12384 ;; 12385 *) # from 4.6 on, and DragonFly 12386 shlibpath_overrides_runpath=yes 12387 hardcode_into_libs=yes 12388 ;; 12389 esac 12390 ;; 12391 12392 haiku*) 12393 version_type=linux # correct to gnu/linux during the next big refactor 12394 need_lib_prefix=no 12395 need_version=no 12396 dynamic_linker="$host_os runtime_loader" 12397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12398 soname_spec='$libname$release$shared_ext$major' 12399 shlibpath_var=LIBRARY_PATH 12400 shlibpath_overrides_runpath=no 12401 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12402 hardcode_into_libs=yes 12403 ;; 12404 12405 hpux9* | hpux10* | hpux11*) 12406 # Give a soname corresponding to the major version so that dld.sl refuses to 12407 # link against other versions. 12408 version_type=sunos 12409 need_lib_prefix=no 12410 need_version=no 12411 case $host_cpu in 12412 ia64*) 12413 shrext_cmds='.so' 12414 hardcode_into_libs=yes 12415 dynamic_linker="$host_os dld.so" 12416 shlibpath_var=LD_LIBRARY_PATH 12417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12419 soname_spec='$libname$release$shared_ext$major' 12420 if test 32 = "$HPUX_IA64_MODE"; then 12421 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12422 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12423 else 12424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12425 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12426 fi 12427 ;; 12428 hppa*64*) 12429 shrext_cmds='.sl' 12430 hardcode_into_libs=yes 12431 dynamic_linker="$host_os dld.sl" 12432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12435 soname_spec='$libname$release$shared_ext$major' 12436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12438 ;; 12439 *) 12440 shrext_cmds='.sl' 12441 dynamic_linker="$host_os dld.sl" 12442 shlibpath_var=SHLIB_PATH 12443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12445 soname_spec='$libname$release$shared_ext$major' 12446 ;; 12447 esac 12448 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12449 postinstall_cmds='chmod 555 $lib' 12450 # or fails outright, so override atomically: 12451 install_override_mode=555 12452 ;; 12453 12454 interix[3-9]*) 12455 version_type=linux # correct to gnu/linux during the next big refactor 12456 need_lib_prefix=no 12457 need_version=no 12458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12459 soname_spec='$libname$release$shared_ext$major' 12460 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12461 shlibpath_var=LD_LIBRARY_PATH 12462 shlibpath_overrides_runpath=no 12463 hardcode_into_libs=yes 12464 ;; 12465 12466 irix5* | irix6* | nonstopux*) 12467 case $host_os in 12468 nonstopux*) version_type=nonstopux ;; 12469 *) 12470 if test yes = "$lt_cv_prog_gnu_ld"; then 12471 version_type=linux # correct to gnu/linux during the next big refactor 12472 else 12473 version_type=irix 12474 fi ;; 12475 esac 12476 need_lib_prefix=no 12477 need_version=no 12478 soname_spec='$libname$release$shared_ext$major' 12479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12480 case $host_os in 12481 irix5* | nonstopux*) 12482 libsuff= shlibsuff= 12483 ;; 12484 *) 12485 case $LD in # libtool.m4 will add one of these switches to LD 12486 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12487 libsuff= shlibsuff= libmagic=32-bit;; 12488 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12489 libsuff=32 shlibsuff=N32 libmagic=N32;; 12490 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12491 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12492 *) libsuff= shlibsuff= libmagic=never-match;; 12493 esac 12494 ;; 12495 esac 12496 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12497 shlibpath_overrides_runpath=no 12498 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12499 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12500 hardcode_into_libs=yes 12501 ;; 12502 12503 # No shared lib support for Linux oldld, aout, or coff. 12504 linux*oldld* | linux*aout* | linux*coff*) 12505 dynamic_linker=no 12506 ;; 12507 12508 linux*android*) 12509 version_type=none # Android doesn't support versioned libraries. 12510 need_lib_prefix=no 12511 need_version=no 12512 library_names_spec='$libname$release$shared_ext' 12513 soname_spec='$libname$release$shared_ext' 12514 finish_cmds= 12515 shlibpath_var=LD_LIBRARY_PATH 12516 shlibpath_overrides_runpath=yes 12517 12518 # This implies no fast_install, which is unacceptable. 12519 # Some rework will be needed to allow for fast_install 12520 # before this can be enabled. 12521 hardcode_into_libs=yes 12522 12523 dynamic_linker='Android linker' 12524 # Don't embed -rpath directories since the linker doesn't support them. 12525 hardcode_libdir_flag_spec='-L$libdir' 12526 ;; 12527 12528 # This must be glibc/ELF. 12529 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12530 version_type=linux # correct to gnu/linux during the next big refactor 12531 need_lib_prefix=no 12532 need_version=no 12533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12534 soname_spec='$libname$release$shared_ext$major' 12535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12536 shlibpath_var=LD_LIBRARY_PATH 12537 shlibpath_overrides_runpath=no 12538 12539 # Some binutils ld are patched to set DT_RUNPATH 12540 if test ${lt_cv_shlibpath_overrides_runpath+y} 12541 then : 12542 printf %s "(cached) " >&6 12543 else $as_nop 12544 lt_cv_shlibpath_overrides_runpath=no 12545 save_LDFLAGS=$LDFLAGS 12546 save_libdir=$libdir 12547 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12548 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12550 /* end confdefs.h. */ 12551 12552 int 12553 main (void) 12554 { 12555 12556 ; 12557 return 0; 12558 } 12559 _ACEOF 12560 if ac_fn_c_try_link "$LINENO" 12561 then : 12562 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12563 then : 12564 lt_cv_shlibpath_overrides_runpath=yes 12565 fi 12566 fi 12567 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12568 conftest$ac_exeext conftest.$ac_ext 12569 LDFLAGS=$save_LDFLAGS 12570 libdir=$save_libdir 12571 12572 fi 12573 12574 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12575 12576 # This implies no fast_install, which is unacceptable. 12577 # Some rework will be needed to allow for fast_install 12578 # before this can be enabled. 12579 hardcode_into_libs=yes 12580 12581 # Ideally, we could use ldconfig to report *all* directores which are 12582 # searched for libraries, however this is still not possible. Aside from not 12583 # being certain /sbin/ldconfig is available, command 12584 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12585 # even though it is searched at run-time. Try to do the best guess by 12586 # appending ld.so.conf contents (and includes) to the search path. 12587 if test -f /etc/ld.so.conf; then 12588 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' ' '` 12589 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12590 fi 12591 12592 # We used to test for /lib/ld.so.1 and disable shared libraries on 12593 # powerpc, because MkLinux only supported shared libraries with the 12594 # GNU dynamic linker. Since this was broken with cross compilers, 12595 # most powerpc-linux boxes support dynamic linking these days and 12596 # people can always --disable-shared, the test was removed, and we 12597 # assume the GNU/Linux dynamic linker is in use. 12598 dynamic_linker='GNU/Linux ld.so' 12599 ;; 12600 12601 netbsd*) 12602 version_type=sunos 12603 need_lib_prefix=no 12604 need_version=no 12605 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12606 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12608 dynamic_linker='NetBSD (a.out) ld.so' 12609 else 12610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12611 soname_spec='$libname$release$shared_ext$major' 12612 dynamic_linker='NetBSD ld.elf_so' 12613 fi 12614 shlibpath_var=LD_LIBRARY_PATH 12615 shlibpath_overrides_runpath=yes 12616 hardcode_into_libs=yes 12617 ;; 12618 12619 newsos6) 12620 version_type=linux # correct to gnu/linux during the next big refactor 12621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12622 shlibpath_var=LD_LIBRARY_PATH 12623 shlibpath_overrides_runpath=yes 12624 ;; 12625 12626 *nto* | *qnx*) 12627 version_type=qnx 12628 need_lib_prefix=no 12629 need_version=no 12630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12631 soname_spec='$libname$release$shared_ext$major' 12632 shlibpath_var=LD_LIBRARY_PATH 12633 shlibpath_overrides_runpath=no 12634 hardcode_into_libs=yes 12635 dynamic_linker='ldqnx.so' 12636 ;; 12637 12638 openbsd* | bitrig*) 12639 version_type=sunos 12640 sys_lib_dlsearch_path_spec=/usr/lib 12641 need_lib_prefix=no 12642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12643 need_version=no 12644 else 12645 need_version=yes 12646 fi 12647 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12649 shlibpath_var=LD_LIBRARY_PATH 12650 shlibpath_overrides_runpath=yes 12651 ;; 12652 12653 os2*) 12654 libname_spec='$name' 12655 version_type=windows 12656 shrext_cmds=.dll 12657 need_version=no 12658 need_lib_prefix=no 12659 # OS/2 can only load a DLL with a base name of 8 characters or less. 12660 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12661 v=$($ECHO $release$versuffix | tr -d .-); 12662 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12663 $ECHO $n$v`$shared_ext' 12664 library_names_spec='${libname}_dll.$libext' 12665 dynamic_linker='OS/2 ld.exe' 12666 shlibpath_var=BEGINLIBPATH 12667 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12669 postinstall_cmds='base_file=`basename \$file`~ 12670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12671 dldir=$destdir/`dirname \$dlpath`~ 12672 test -d \$dldir || mkdir -p \$dldir~ 12673 $install_prog $dir/$dlname \$dldir/$dlname~ 12674 chmod a+x \$dldir/$dlname~ 12675 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12676 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12677 fi' 12678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12679 dlpath=$dir/\$dldll~ 12680 $RM \$dlpath' 12681 ;; 12682 12683 osf3* | osf4* | osf5*) 12684 version_type=osf 12685 need_lib_prefix=no 12686 need_version=no 12687 soname_spec='$libname$release$shared_ext$major' 12688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12689 shlibpath_var=LD_LIBRARY_PATH 12690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12692 ;; 12693 12694 rdos*) 12695 dynamic_linker=no 12696 ;; 12697 12698 solaris*) 12699 version_type=linux # correct to gnu/linux during the next big refactor 12700 need_lib_prefix=no 12701 need_version=no 12702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12703 soname_spec='$libname$release$shared_ext$major' 12704 shlibpath_var=LD_LIBRARY_PATH 12705 shlibpath_overrides_runpath=yes 12706 hardcode_into_libs=yes 12707 # ldd complains unless libraries are executable 12708 postinstall_cmds='chmod +x $lib' 12709 ;; 12710 12711 sunos4*) 12712 version_type=sunos 12713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12715 shlibpath_var=LD_LIBRARY_PATH 12716 shlibpath_overrides_runpath=yes 12717 if test yes = "$with_gnu_ld"; then 12718 need_lib_prefix=no 12719 fi 12720 need_version=yes 12721 ;; 12722 12723 sysv4 | sysv4.3*) 12724 version_type=linux # correct to gnu/linux during the next big refactor 12725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12726 soname_spec='$libname$release$shared_ext$major' 12727 shlibpath_var=LD_LIBRARY_PATH 12728 case $host_vendor in 12729 sni) 12730 shlibpath_overrides_runpath=no 12731 need_lib_prefix=no 12732 runpath_var=LD_RUN_PATH 12733 ;; 12734 siemens) 12735 need_lib_prefix=no 12736 ;; 12737 motorola) 12738 need_lib_prefix=no 12739 need_version=no 12740 shlibpath_overrides_runpath=no 12741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12742 ;; 12743 esac 12744 ;; 12745 12746 sysv4*MP*) 12747 if test -d /usr/nec; then 12748 version_type=linux # correct to gnu/linux during the next big refactor 12749 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12750 soname_spec='$libname$shared_ext.$major' 12751 shlibpath_var=LD_LIBRARY_PATH 12752 fi 12753 ;; 12754 12755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12756 version_type=sco 12757 need_lib_prefix=no 12758 need_version=no 12759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12760 soname_spec='$libname$release$shared_ext$major' 12761 shlibpath_var=LD_LIBRARY_PATH 12762 shlibpath_overrides_runpath=yes 12763 hardcode_into_libs=yes 12764 if test yes = "$with_gnu_ld"; then 12765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12766 else 12767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12768 case $host_os in 12769 sco3.2v5*) 12770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12771 ;; 12772 esac 12773 fi 12774 sys_lib_dlsearch_path_spec='/usr/lib' 12775 ;; 12776 12777 tpf*) 12778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12779 version_type=linux # correct to gnu/linux during the next big refactor 12780 need_lib_prefix=no 12781 need_version=no 12782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12783 shlibpath_var=LD_LIBRARY_PATH 12784 shlibpath_overrides_runpath=no 12785 hardcode_into_libs=yes 12786 ;; 12787 12788 uts4*) 12789 version_type=linux # correct to gnu/linux during the next big refactor 12790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12791 soname_spec='$libname$release$shared_ext$major' 12792 shlibpath_var=LD_LIBRARY_PATH 12793 ;; 12794 12795 *) 12796 dynamic_linker=no 12797 ;; 12798 esac 12799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12800 printf "%s\n" "$dynamic_linker" >&6; } 12801 test no = "$dynamic_linker" && can_build_shared=no 12802 12803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12804 if test yes = "$GCC"; then 12805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12806 fi 12807 12808 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12809 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12810 fi 12811 12812 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12813 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12814 fi 12815 12816 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12817 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12818 12819 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12820 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12821 12822 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12823 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12922 printf %s "checking how to hardcode library paths into programs... " >&6; } 12923 hardcode_action= 12924 if test -n "$hardcode_libdir_flag_spec" || 12925 test -n "$runpath_var" || 12926 test yes = "$hardcode_automatic"; then 12927 12928 # We can hardcode non-existent directories. 12929 if test no != "$hardcode_direct" && 12930 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12931 # have to relink, otherwise we might link with an installed library 12932 # when we should be linking with a yet-to-be-installed one 12933 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12934 test no != "$hardcode_minus_L"; then 12935 # Linking always hardcodes the temporary library directory. 12936 hardcode_action=relink 12937 else 12938 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12939 hardcode_action=immediate 12940 fi 12941 else 12942 # We cannot hardcode anything, or else we can only hardcode existing 12943 # directories. 12944 hardcode_action=unsupported 12945 fi 12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12947 printf "%s\n" "$hardcode_action" >&6; } 12948 12949 if test relink = "$hardcode_action" || 12950 test yes = "$inherit_rpath"; then 12951 # Fast installation is not supported 12952 enable_fast_install=no 12953 elif test yes = "$shlibpath_overrides_runpath" || 12954 test no = "$enable_shared"; then 12955 # Fast installation is not necessary 12956 enable_fast_install=needless 12957 fi 12958 12959 12960 12961 12962 12963 12964 if test yes != "$enable_dlopen"; then 12965 enable_dlopen=unknown 12966 enable_dlopen_self=unknown 12967 enable_dlopen_self_static=unknown 12968 else 12969 lt_cv_dlopen=no 12970 lt_cv_dlopen_libs= 12971 12972 case $host_os in 12973 beos*) 12974 lt_cv_dlopen=load_add_on 12975 lt_cv_dlopen_libs= 12976 lt_cv_dlopen_self=yes 12977 ;; 12978 12979 mingw* | pw32* | cegcc*) 12980 lt_cv_dlopen=LoadLibrary 12981 lt_cv_dlopen_libs= 12982 ;; 12983 12984 cygwin*) 12985 lt_cv_dlopen=dlopen 12986 lt_cv_dlopen_libs= 12987 ;; 12988 12989 darwin*) 12990 # if libdl is installed we need to link against it 12991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12992 printf %s "checking for dlopen in -ldl... " >&6; } 12993 if test ${ac_cv_lib_dl_dlopen+y} 12994 then : 12995 printf %s "(cached) " >&6 12996 else $as_nop 12997 ac_check_lib_save_LIBS=$LIBS 12998 LIBS="-ldl $LIBS" 12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13000 /* end confdefs.h. */ 13001 13002 /* Override any GCC internal prototype to avoid an error. 13003 Use char because int might match the return type of a GCC 13004 builtin and then its argument prototype would still apply. */ 13005 char dlopen (); 13006 int 13007 main (void) 13008 { 13009 return dlopen (); 13010 ; 13011 return 0; 13012 } 13013 _ACEOF 13014 if ac_fn_c_try_link "$LINENO" 13015 then : 13016 ac_cv_lib_dl_dlopen=yes 13017 else $as_nop 13018 ac_cv_lib_dl_dlopen=no 13019 fi 13020 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13021 conftest$ac_exeext conftest.$ac_ext 13022 LIBS=$ac_check_lib_save_LIBS 13023 fi 13024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13025 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13026 if test "x$ac_cv_lib_dl_dlopen" = xyes 13027 then : 13028 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13029 else $as_nop 13030 13031 lt_cv_dlopen=dyld 13032 lt_cv_dlopen_libs= 13033 lt_cv_dlopen_self=yes 13034 13035 fi 13036 13037 ;; 13038 13039 tpf*) 13040 # Don't try to run any link tests for TPF. We know it's impossible 13041 # because TPF is a cross-compiler, and we know how we open DSOs. 13042 lt_cv_dlopen=dlopen 13043 lt_cv_dlopen_libs= 13044 lt_cv_dlopen_self=no 13045 ;; 13046 13047 *) 13048 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13049 if test "x$ac_cv_func_shl_load" = xyes 13050 then : 13051 lt_cv_dlopen=shl_load 13052 else $as_nop 13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13054 printf %s "checking for shl_load in -ldld... " >&6; } 13055 if test ${ac_cv_lib_dld_shl_load+y} 13056 then : 13057 printf %s "(cached) " >&6 13058 else $as_nop 13059 ac_check_lib_save_LIBS=$LIBS 13060 LIBS="-ldld $LIBS" 13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13062 /* end confdefs.h. */ 13063 13064 /* Override any GCC internal prototype to avoid an error. 13065 Use char because int might match the return type of a GCC 13066 builtin and then its argument prototype would still apply. */ 13067 char shl_load (); 13068 int 13069 main (void) 13070 { 13071 return shl_load (); 13072 ; 13073 return 0; 13074 } 13075 _ACEOF 13076 if ac_fn_c_try_link "$LINENO" 13077 then : 13078 ac_cv_lib_dld_shl_load=yes 13079 else $as_nop 13080 ac_cv_lib_dld_shl_load=no 13081 fi 13082 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13083 conftest$ac_exeext conftest.$ac_ext 13084 LIBS=$ac_check_lib_save_LIBS 13085 fi 13086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13087 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13088 if test "x$ac_cv_lib_dld_shl_load" = xyes 13089 then : 13090 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13091 else $as_nop 13092 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13093 if test "x$ac_cv_func_dlopen" = xyes 13094 then : 13095 lt_cv_dlopen=dlopen 13096 else $as_nop 13097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13098 printf %s "checking for dlopen in -ldl... " >&6; } 13099 if test ${ac_cv_lib_dl_dlopen+y} 13100 then : 13101 printf %s "(cached) " >&6 13102 else $as_nop 13103 ac_check_lib_save_LIBS=$LIBS 13104 LIBS="-ldl $LIBS" 13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13106 /* end confdefs.h. */ 13107 13108 /* Override any GCC internal prototype to avoid an error. 13109 Use char because int might match the return type of a GCC 13110 builtin and then its argument prototype would still apply. */ 13111 char dlopen (); 13112 int 13113 main (void) 13114 { 13115 return dlopen (); 13116 ; 13117 return 0; 13118 } 13119 _ACEOF 13120 if ac_fn_c_try_link "$LINENO" 13121 then : 13122 ac_cv_lib_dl_dlopen=yes 13123 else $as_nop 13124 ac_cv_lib_dl_dlopen=no 13125 fi 13126 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13127 conftest$ac_exeext conftest.$ac_ext 13128 LIBS=$ac_check_lib_save_LIBS 13129 fi 13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13131 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13132 if test "x$ac_cv_lib_dl_dlopen" = xyes 13133 then : 13134 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13135 else $as_nop 13136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13137 printf %s "checking for dlopen in -lsvld... " >&6; } 13138 if test ${ac_cv_lib_svld_dlopen+y} 13139 then : 13140 printf %s "(cached) " >&6 13141 else $as_nop 13142 ac_check_lib_save_LIBS=$LIBS 13143 LIBS="-lsvld $LIBS" 13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13145 /* end confdefs.h. */ 13146 13147 /* Override any GCC internal prototype to avoid an error. 13148 Use char because int might match the return type of a GCC 13149 builtin and then its argument prototype would still apply. */ 13150 char dlopen (); 13151 int 13152 main (void) 13153 { 13154 return dlopen (); 13155 ; 13156 return 0; 13157 } 13158 _ACEOF 13159 if ac_fn_c_try_link "$LINENO" 13160 then : 13161 ac_cv_lib_svld_dlopen=yes 13162 else $as_nop 13163 ac_cv_lib_svld_dlopen=no 13164 fi 13165 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13166 conftest$ac_exeext conftest.$ac_ext 13167 LIBS=$ac_check_lib_save_LIBS 13168 fi 13169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13170 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13171 if test "x$ac_cv_lib_svld_dlopen" = xyes 13172 then : 13173 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13174 else $as_nop 13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13176 printf %s "checking for dld_link in -ldld... " >&6; } 13177 if test ${ac_cv_lib_dld_dld_link+y} 13178 then : 13179 printf %s "(cached) " >&6 13180 else $as_nop 13181 ac_check_lib_save_LIBS=$LIBS 13182 LIBS="-ldld $LIBS" 13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184 /* end confdefs.h. */ 13185 13186 /* Override any GCC internal prototype to avoid an error. 13187 Use char because int might match the return type of a GCC 13188 builtin and then its argument prototype would still apply. */ 13189 char dld_link (); 13190 int 13191 main (void) 13192 { 13193 return dld_link (); 13194 ; 13195 return 0; 13196 } 13197 _ACEOF 13198 if ac_fn_c_try_link "$LINENO" 13199 then : 13200 ac_cv_lib_dld_dld_link=yes 13201 else $as_nop 13202 ac_cv_lib_dld_dld_link=no 13203 fi 13204 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13205 conftest$ac_exeext conftest.$ac_ext 13206 LIBS=$ac_check_lib_save_LIBS 13207 fi 13208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13209 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13210 if test "x$ac_cv_lib_dld_dld_link" = xyes 13211 then : 13212 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13213 fi 13214 13215 13216 fi 13217 13218 13219 fi 13220 13221 13222 fi 13223 13224 13225 fi 13226 13227 13228 fi 13229 13230 ;; 13231 esac 13232 13233 if test no = "$lt_cv_dlopen"; then 13234 enable_dlopen=no 13235 else 13236 enable_dlopen=yes 13237 fi 13238 13239 case $lt_cv_dlopen in 13240 dlopen) 13241 save_CPPFLAGS=$CPPFLAGS 13242 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13243 13244 save_LDFLAGS=$LDFLAGS 13245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13246 13247 save_LIBS=$LIBS 13248 LIBS="$lt_cv_dlopen_libs $LIBS" 13249 13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13251 printf %s "checking whether a program can dlopen itself... " >&6; } 13252 if test ${lt_cv_dlopen_self+y} 13253 then : 13254 printf %s "(cached) " >&6 13255 else $as_nop 13256 if test yes = "$cross_compiling"; then : 13257 lt_cv_dlopen_self=cross 13258 else 13259 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13260 lt_status=$lt_dlunknown 13261 cat > conftest.$ac_ext <<_LT_EOF 13262 #line $LINENO "configure" 13263 #include "confdefs.h" 13264 13265 #if HAVE_DLFCN_H 13266 #include <dlfcn.h> 13267 #endif 13268 13269 #include <stdio.h> 13270 13271 #ifdef RTLD_GLOBAL 13272 # define LT_DLGLOBAL RTLD_GLOBAL 13273 #else 13274 # ifdef DL_GLOBAL 13275 # define LT_DLGLOBAL DL_GLOBAL 13276 # else 13277 # define LT_DLGLOBAL 0 13278 # endif 13279 #endif 13280 13281 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13282 find out it does not work in some platform. */ 13283 #ifndef LT_DLLAZY_OR_NOW 13284 # ifdef RTLD_LAZY 13285 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13286 # else 13287 # ifdef DL_LAZY 13288 # define LT_DLLAZY_OR_NOW DL_LAZY 13289 # else 13290 # ifdef RTLD_NOW 13291 # define LT_DLLAZY_OR_NOW RTLD_NOW 13292 # else 13293 # ifdef DL_NOW 13294 # define LT_DLLAZY_OR_NOW DL_NOW 13295 # else 13296 # define LT_DLLAZY_OR_NOW 0 13297 # endif 13298 # endif 13299 # endif 13300 # endif 13301 #endif 13302 13303 /* When -fvisibility=hidden is used, assume the code has been annotated 13304 correspondingly for the symbols needed. */ 13305 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13306 int fnord () __attribute__((visibility("default"))); 13307 #endif 13308 13309 int fnord () { return 42; } 13310 int main () 13311 { 13312 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13313 int status = $lt_dlunknown; 13314 13315 if (self) 13316 { 13317 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13318 else 13319 { 13320 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13321 else puts (dlerror ()); 13322 } 13323 /* dlclose (self); */ 13324 } 13325 else 13326 puts (dlerror ()); 13327 13328 return status; 13329 } 13330 _LT_EOF 13331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13332 (eval $ac_link) 2>&5 13333 ac_status=$? 13334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13335 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13336 (./conftest; exit; ) >&5 2>/dev/null 13337 lt_status=$? 13338 case x$lt_status in 13339 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13340 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13341 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13342 esac 13343 else : 13344 # compilation failed 13345 lt_cv_dlopen_self=no 13346 fi 13347 fi 13348 rm -fr conftest* 13349 13350 13351 fi 13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13353 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13354 13355 if test yes = "$lt_cv_dlopen_self"; then 13356 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13358 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13359 if test ${lt_cv_dlopen_self_static+y} 13360 then : 13361 printf %s "(cached) " >&6 13362 else $as_nop 13363 if test yes = "$cross_compiling"; then : 13364 lt_cv_dlopen_self_static=cross 13365 else 13366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13367 lt_status=$lt_dlunknown 13368 cat > conftest.$ac_ext <<_LT_EOF 13369 #line $LINENO "configure" 13370 #include "confdefs.h" 13371 13372 #if HAVE_DLFCN_H 13373 #include <dlfcn.h> 13374 #endif 13375 13376 #include <stdio.h> 13377 13378 #ifdef RTLD_GLOBAL 13379 # define LT_DLGLOBAL RTLD_GLOBAL 13380 #else 13381 # ifdef DL_GLOBAL 13382 # define LT_DLGLOBAL DL_GLOBAL 13383 # else 13384 # define LT_DLGLOBAL 0 13385 # endif 13386 #endif 13387 13388 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13389 find out it does not work in some platform. */ 13390 #ifndef LT_DLLAZY_OR_NOW 13391 # ifdef RTLD_LAZY 13392 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13393 # else 13394 # ifdef DL_LAZY 13395 # define LT_DLLAZY_OR_NOW DL_LAZY 13396 # else 13397 # ifdef RTLD_NOW 13398 # define LT_DLLAZY_OR_NOW RTLD_NOW 13399 # else 13400 # ifdef DL_NOW 13401 # define LT_DLLAZY_OR_NOW DL_NOW 13402 # else 13403 # define LT_DLLAZY_OR_NOW 0 13404 # endif 13405 # endif 13406 # endif 13407 # endif 13408 #endif 13409 13410 /* When -fvisibility=hidden is used, assume the code has been annotated 13411 correspondingly for the symbols needed. */ 13412 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13413 int fnord () __attribute__((visibility("default"))); 13414 #endif 13415 13416 int fnord () { return 42; } 13417 int main () 13418 { 13419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13420 int status = $lt_dlunknown; 13421 13422 if (self) 13423 { 13424 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13425 else 13426 { 13427 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13428 else puts (dlerror ()); 13429 } 13430 /* dlclose (self); */ 13431 } 13432 else 13433 puts (dlerror ()); 13434 13435 return status; 13436 } 13437 _LT_EOF 13438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13439 (eval $ac_link) 2>&5 13440 ac_status=$? 13441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13442 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13443 (./conftest; exit; ) >&5 2>/dev/null 13444 lt_status=$? 13445 case x$lt_status in 13446 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13447 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13448 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13449 esac 13450 else : 13451 # compilation failed 13452 lt_cv_dlopen_self_static=no 13453 fi 13454 fi 13455 rm -fr conftest* 13456 13457 13458 fi 13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13460 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13461 fi 13462 13463 CPPFLAGS=$save_CPPFLAGS 13464 LDFLAGS=$save_LDFLAGS 13465 LIBS=$save_LIBS 13466 ;; 13467 esac 13468 13469 case $lt_cv_dlopen_self in 13470 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13471 *) enable_dlopen_self=unknown ;; 13472 esac 13473 13474 case $lt_cv_dlopen_self_static in 13475 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13476 *) enable_dlopen_self_static=unknown ;; 13477 esac 13478 fi 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 striplib= 13497 old_striplib= 13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13499 printf %s "checking whether stripping libraries is possible... " >&6; } 13500 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13501 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13502 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13504 printf "%s\n" "yes" >&6; } 13505 else 13506 # FIXME - insert some real tests, host_os isn't really good enough 13507 case $host_os in 13508 darwin*) 13509 if test -n "$STRIP"; then 13510 striplib="$STRIP -x" 13511 old_striplib="$STRIP -S" 13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13513 printf "%s\n" "yes" >&6; } 13514 else 13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13516 printf "%s\n" "no" >&6; } 13517 fi 13518 ;; 13519 *) 13520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13521 printf "%s\n" "no" >&6; } 13522 ;; 13523 esac 13524 fi 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 # Report what library types will actually be built 13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13539 printf %s "checking if libtool supports shared libraries... " >&6; } 13540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13541 printf "%s\n" "$can_build_shared" >&6; } 13542 13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13544 printf %s "checking whether to build shared libraries... " >&6; } 13545 test no = "$can_build_shared" && enable_shared=no 13546 13547 # On AIX, shared libraries and static libraries use the same namespace, and 13548 # are all built from PIC. 13549 case $host_os in 13550 aix3*) 13551 test yes = "$enable_shared" && enable_static=no 13552 if test -n "$RANLIB"; then 13553 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13554 postinstall_cmds='$RANLIB $lib' 13555 fi 13556 ;; 13557 13558 aix[4-9]*) 13559 if test ia64 != "$host_cpu"; then 13560 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13561 yes,aix,yes) ;; # shared object as lib.so file only 13562 yes,svr4,*) ;; # shared object as lib.so archive member only 13563 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13564 esac 13565 fi 13566 ;; 13567 esac 13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13569 printf "%s\n" "$enable_shared" >&6; } 13570 13571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13572 printf %s "checking whether to build static libraries... " >&6; } 13573 # Make sure either enable_shared or enable_static is yes. 13574 test yes = "$enable_shared" || enable_static=yes 13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13576 printf "%s\n" "$enable_static" >&6; } 13577 13578 13579 13580 13581 fi 13582 ac_ext=c 13583 ac_cpp='$CPP $CPPFLAGS' 13584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13586 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13587 13588 CC=$lt_save_CC 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 ac_config_commands="$ac_config_commands libtool" 13605 13606 13607 13608 13609 # Only expand once: 13610 13611 13612 13613 13614 13615 if test "$enable_samples" = "yes"; then 13616 BUILD_SAMPLES_TRUE= 13617 BUILD_SAMPLES_FALSE='#' 13618 else 13619 BUILD_SAMPLES_TRUE='#' 13620 BUILD_SAMPLES_FALSE= 13621 fi 13622 13623 if test "$enable_libevent_regress" = "yes"; then 13624 BUILD_REGRESS_TRUE= 13625 BUILD_REGRESS_FALSE='#' 13626 else 13627 BUILD_REGRESS_TRUE='#' 13628 BUILD_REGRESS_FALSE= 13629 fi 13630 13631 13632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 13633 printf %s "checking for library containing inet_ntoa... " >&6; } 13634 if test ${ac_cv_search_inet_ntoa+y} 13635 then : 13636 printf %s "(cached) " >&6 13637 else $as_nop 13638 ac_func_search_save_LIBS=$LIBS 13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13640 /* end confdefs.h. */ 13641 13642 /* Override any GCC internal prototype to avoid an error. 13643 Use char because int might match the return type of a GCC 13644 builtin and then its argument prototype would still apply. */ 13645 char inet_ntoa (); 13646 int 13647 main (void) 13648 { 13649 return inet_ntoa (); 13650 ; 13651 return 0; 13652 } 13653 _ACEOF 13654 for ac_lib in '' nsl 13655 do 13656 if test -z "$ac_lib"; then 13657 ac_res="none required" 13658 else 13659 ac_res=-l$ac_lib 13660 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13661 fi 13662 if ac_fn_c_try_link "$LINENO" 13663 then : 13664 ac_cv_search_inet_ntoa=$ac_res 13665 fi 13666 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13667 conftest$ac_exeext 13668 if test ${ac_cv_search_inet_ntoa+y} 13669 then : 13670 break 13671 fi 13672 done 13673 if test ${ac_cv_search_inet_ntoa+y} 13674 then : 13675 13676 else $as_nop 13677 ac_cv_search_inet_ntoa=no 13678 fi 13679 rm conftest.$ac_ext 13680 LIBS=$ac_func_search_save_LIBS 13681 fi 13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 13683 printf "%s\n" "$ac_cv_search_inet_ntoa" >&6; } 13684 ac_res=$ac_cv_search_inet_ntoa 13685 if test "$ac_res" != no 13686 then : 13687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13688 13689 fi 13690 13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13692 printf %s "checking for library containing socket... " >&6; } 13693 if test ${ac_cv_search_socket+y} 13694 then : 13695 printf %s "(cached) " >&6 13696 else $as_nop 13697 ac_func_search_save_LIBS=$LIBS 13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13699 /* end confdefs.h. */ 13700 13701 /* Override any GCC internal prototype to avoid an error. 13702 Use char because int might match the return type of a GCC 13703 builtin and then its argument prototype would still apply. */ 13704 char socket (); 13705 int 13706 main (void) 13707 { 13708 return socket (); 13709 ; 13710 return 0; 13711 } 13712 _ACEOF 13713 for ac_lib in '' socket 13714 do 13715 if test -z "$ac_lib"; then 13716 ac_res="none required" 13717 else 13718 ac_res=-l$ac_lib 13719 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13720 fi 13721 if ac_fn_c_try_link "$LINENO" 13722 then : 13723 ac_cv_search_socket=$ac_res 13724 fi 13725 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13726 conftest$ac_exeext 13727 if test ${ac_cv_search_socket+y} 13728 then : 13729 break 13730 fi 13731 done 13732 if test ${ac_cv_search_socket+y} 13733 then : 13734 13735 else $as_nop 13736 ac_cv_search_socket=no 13737 fi 13738 rm conftest.$ac_ext 13739 LIBS=$ac_func_search_save_LIBS 13740 fi 13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13742 printf "%s\n" "$ac_cv_search_socket" >&6; } 13743 ac_res=$ac_cv_search_socket 13744 if test "$ac_res" != no 13745 then : 13746 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13747 13748 fi 13749 13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 13751 printf %s "checking for library containing inet_aton... " >&6; } 13752 if test ${ac_cv_search_inet_aton+y} 13753 then : 13754 printf %s "(cached) " >&6 13755 else $as_nop 13756 ac_func_search_save_LIBS=$LIBS 13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13758 /* end confdefs.h. */ 13759 13760 /* Override any GCC internal prototype to avoid an error. 13761 Use char because int might match the return type of a GCC 13762 builtin and then its argument prototype would still apply. */ 13763 char inet_aton (); 13764 int 13765 main (void) 13766 { 13767 return inet_aton (); 13768 ; 13769 return 0; 13770 } 13771 _ACEOF 13772 for ac_lib in '' resolv 13773 do 13774 if test -z "$ac_lib"; then 13775 ac_res="none required" 13776 else 13777 ac_res=-l$ac_lib 13778 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13779 fi 13780 if ac_fn_c_try_link "$LINENO" 13781 then : 13782 ac_cv_search_inet_aton=$ac_res 13783 fi 13784 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13785 conftest$ac_exeext 13786 if test ${ac_cv_search_inet_aton+y} 13787 then : 13788 break 13789 fi 13790 done 13791 if test ${ac_cv_search_inet_aton+y} 13792 then : 13793 13794 else $as_nop 13795 ac_cv_search_inet_aton=no 13796 fi 13797 rm conftest.$ac_ext 13798 LIBS=$ac_func_search_save_LIBS 13799 fi 13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 13801 printf "%s\n" "$ac_cv_search_inet_aton" >&6; } 13802 ac_res=$ac_cv_search_inet_aton 13803 if test "$ac_res" != no 13804 then : 13805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13806 13807 fi 13808 13809 if test "x$enable_clock_gettime" = "xyes"; then 13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 13811 printf %s "checking for library containing clock_gettime... " >&6; } 13812 if test ${ac_cv_search_clock_gettime+y} 13813 then : 13814 printf %s "(cached) " >&6 13815 else $as_nop 13816 ac_func_search_save_LIBS=$LIBS 13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818 /* end confdefs.h. */ 13819 13820 /* Override any GCC internal prototype to avoid an error. 13821 Use char because int might match the return type of a GCC 13822 builtin and then its argument prototype would still apply. */ 13823 char clock_gettime (); 13824 int 13825 main (void) 13826 { 13827 return clock_gettime (); 13828 ; 13829 return 0; 13830 } 13831 _ACEOF 13832 for ac_lib in '' rt 13833 do 13834 if test -z "$ac_lib"; then 13835 ac_res="none required" 13836 else 13837 ac_res=-l$ac_lib 13838 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13839 fi 13840 if ac_fn_c_try_link "$LINENO" 13841 then : 13842 ac_cv_search_clock_gettime=$ac_res 13843 fi 13844 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13845 conftest$ac_exeext 13846 if test ${ac_cv_search_clock_gettime+y} 13847 then : 13848 break 13849 fi 13850 done 13851 if test ${ac_cv_search_clock_gettime+y} 13852 then : 13853 13854 else $as_nop 13855 ac_cv_search_clock_gettime=no 13856 fi 13857 rm conftest.$ac_ext 13858 LIBS=$ac_func_search_save_LIBS 13859 fi 13860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 13861 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 13862 ac_res=$ac_cv_search_clock_gettime 13863 if test "$ac_res" != no 13864 then : 13865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13866 13867 fi 13868 13869 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 13870 if test "x$ac_cv_func_clock_gettime" = xyes 13871 then : 13872 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 13873 13874 fi 13875 13876 fi 13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5 13878 printf %s "checking for library containing sendfile... " >&6; } 13879 if test ${ac_cv_search_sendfile+y} 13880 then : 13881 printf %s "(cached) " >&6 13882 else $as_nop 13883 ac_func_search_save_LIBS=$LIBS 13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13885 /* end confdefs.h. */ 13886 13887 /* Override any GCC internal prototype to avoid an error. 13888 Use char because int might match the return type of a GCC 13889 builtin and then its argument prototype would still apply. */ 13890 char sendfile (); 13891 int 13892 main (void) 13893 { 13894 return sendfile (); 13895 ; 13896 return 0; 13897 } 13898 _ACEOF 13899 for ac_lib in '' sendfile 13900 do 13901 if test -z "$ac_lib"; then 13902 ac_res="none required" 13903 else 13904 ac_res=-l$ac_lib 13905 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13906 fi 13907 if ac_fn_c_try_link "$LINENO" 13908 then : 13909 ac_cv_search_sendfile=$ac_res 13910 fi 13911 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13912 conftest$ac_exeext 13913 if test ${ac_cv_search_sendfile+y} 13914 then : 13915 break 13916 fi 13917 done 13918 if test ${ac_cv_search_sendfile+y} 13919 then : 13920 13921 else $as_nop 13922 ac_cv_search_sendfile=no 13923 fi 13924 rm conftest.$ac_ext 13925 LIBS=$ac_func_search_save_LIBS 13926 fi 13927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5 13928 printf "%s\n" "$ac_cv_search_sendfile" >&6; } 13929 ac_res=$ac_cv_search_sendfile 13930 if test "$ac_res" != no 13931 then : 13932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13933 13934 fi 13935 13936 13937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5 13938 printf %s "checking for WIN32... " >&6; } 13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13940 /* end confdefs.h. */ 13941 13942 int 13943 main (void) 13944 { 13945 13946 #ifndef _WIN32 13947 die horribly 13948 #endif 13949 13950 13951 ; 13952 return 0; 13953 } 13954 _ACEOF 13955 if ac_fn_c_try_compile "$LINENO" 13956 then : 13957 bwin32=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13958 printf "%s\n" "yes" >&6; } 13959 else $as_nop 13960 bwin32=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13961 printf "%s\n" "no" >&6; } 13962 13963 fi 13964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13965 13966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MIDIPIX" >&5 13967 printf %s "checking for MIDIPIX... " >&6; } 13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13969 /* end confdefs.h. */ 13970 13971 int 13972 main (void) 13973 { 13974 13975 #ifndef __midipix__ 13976 die horribly 13977 #endif 13978 13979 13980 ; 13981 return 0; 13982 } 13983 _ACEOF 13984 if ac_fn_c_try_compile "$LINENO" 13985 then : 13986 midipix=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13987 printf "%s\n" "yes" >&6; } 13988 else $as_nop 13989 midipix=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13990 printf "%s\n" "no" >&6; } 13991 13992 fi 13993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13994 13995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5 13996 printf %s "checking for CYGWIN... " >&6; } 13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13998 /* end confdefs.h. */ 13999 14000 int 14001 main (void) 14002 { 14003 14004 #ifndef __CYGWIN__ 14005 die horribly 14006 #endif 14007 14008 14009 ; 14010 return 0; 14011 } 14012 _ACEOF 14013 if ac_fn_c_try_compile "$LINENO" 14014 then : 14015 cygwin=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14016 printf "%s\n" "yes" >&6; } 14017 else $as_nop 14018 cygwin=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14019 printf "%s\n" "no" >&6; } 14020 14021 fi 14022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14023 14024 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 14025 if test "x$ac_cv_header_zlib_h" = xyes 14026 then : 14027 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h 14028 14029 fi 14030 14031 14032 if test "x$ac_cv_header_zlib_h" = "xyes"; then 14033 save_LIBS="$LIBS" 14034 LIBS="" 14035 ZLIB_LIBS="" 14036 have_zlib=no 14037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5 14038 printf %s "checking for library containing inflateEnd... " >&6; } 14039 if test ${ac_cv_search_inflateEnd+y} 14040 then : 14041 printf %s "(cached) " >&6 14042 else $as_nop 14043 ac_func_search_save_LIBS=$LIBS 14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14045 /* end confdefs.h. */ 14046 14047 /* Override any GCC internal prototype to avoid an error. 14048 Use char because int might match the return type of a GCC 14049 builtin and then its argument prototype would still apply. */ 14050 char inflateEnd (); 14051 int 14052 main (void) 14053 { 14054 return inflateEnd (); 14055 ; 14056 return 0; 14057 } 14058 _ACEOF 14059 for ac_lib in '' z 14060 do 14061 if test -z "$ac_lib"; then 14062 ac_res="none required" 14063 else 14064 ac_res=-l$ac_lib 14065 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14066 fi 14067 if ac_fn_c_try_link "$LINENO" 14068 then : 14069 ac_cv_search_inflateEnd=$ac_res 14070 fi 14071 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14072 conftest$ac_exeext 14073 if test ${ac_cv_search_inflateEnd+y} 14074 then : 14075 break 14076 fi 14077 done 14078 if test ${ac_cv_search_inflateEnd+y} 14079 then : 14080 14081 else $as_nop 14082 ac_cv_search_inflateEnd=no 14083 fi 14084 rm conftest.$ac_ext 14085 LIBS=$ac_func_search_save_LIBS 14086 fi 14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5 14088 printf "%s\n" "$ac_cv_search_inflateEnd" >&6; } 14089 ac_res=$ac_cv_search_inflateEnd 14090 if test "$ac_res" != no 14091 then : 14092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14093 have_zlib=yes 14094 ZLIB_LIBS="$LIBS" 14095 14096 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 14097 14098 fi 14099 14100 LIBS="$save_LIBS" 14101 14102 fi 14103 if test "$have_zlib" = "yes"; then 14104 ZLIB_REGRESS_TRUE= 14105 ZLIB_REGRESS_FALSE='#' 14106 else 14107 ZLIB_REGRESS_TRUE='#' 14108 ZLIB_REGRESS_FALSE= 14109 fi 14110 14111 14112 if test "$bwin32" = true; then 14113 EV_LIB_WS32=-lws2_32 14114 EV_LIB_GDI=-lgdi32 14115 else 14116 EV_LIB_WS32= 14117 EV_LIB_GDI= 14118 fi 14119 14120 14121 14122 14123 # Check whether --enable-largefile was given. 14124 if test ${enable_largefile+y} 14125 then : 14126 enableval=$enable_largefile; 14127 fi 14128 14129 if test "$enable_largefile" != no; then 14130 14131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14132 printf %s "checking for special C compiler options needed for large files... " >&6; } 14133 if test ${ac_cv_sys_largefile_CC+y} 14134 then : 14135 printf %s "(cached) " >&6 14136 else $as_nop 14137 ac_cv_sys_largefile_CC=no 14138 if test "$GCC" != yes; then 14139 ac_save_CC=$CC 14140 while :; do 14141 # IRIX 6.2 and later do not support large files by default, 14142 # so use the C compiler's -n32 option if that helps. 14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14144 /* end confdefs.h. */ 14145 #include <sys/types.h> 14146 /* Check that off_t can represent 2**63 - 1 correctly. 14147 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14148 since some C++ compilers masquerading as C compilers 14149 incorrectly reject 9223372036854775807. */ 14150 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14152 && LARGE_OFF_T % 2147483647 == 1) 14153 ? 1 : -1]; 14154 int 14155 main (void) 14156 { 14157 14158 ; 14159 return 0; 14160 } 14161 _ACEOF 14162 if ac_fn_c_try_compile "$LINENO" 14163 then : 14164 break 14165 fi 14166 rm -f core conftest.err conftest.$ac_objext conftest.beam 14167 CC="$CC -n32" 14168 if ac_fn_c_try_compile "$LINENO" 14169 then : 14170 ac_cv_sys_largefile_CC=' -n32'; break 14171 fi 14172 rm -f core conftest.err conftest.$ac_objext conftest.beam 14173 break 14174 done 14175 CC=$ac_save_CC 14176 rm -f conftest.$ac_ext 14177 fi 14178 fi 14179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14180 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 14181 if test "$ac_cv_sys_largefile_CC" != no; then 14182 CC=$CC$ac_cv_sys_largefile_CC 14183 fi 14184 14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14186 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14187 if test ${ac_cv_sys_file_offset_bits+y} 14188 then : 14189 printf %s "(cached) " >&6 14190 else $as_nop 14191 while :; do 14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14193 /* end confdefs.h. */ 14194 #include <sys/types.h> 14195 /* Check that off_t can represent 2**63 - 1 correctly. 14196 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14197 since some C++ compilers masquerading as C compilers 14198 incorrectly reject 9223372036854775807. */ 14199 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14201 && LARGE_OFF_T % 2147483647 == 1) 14202 ? 1 : -1]; 14203 int 14204 main (void) 14205 { 14206 14207 ; 14208 return 0; 14209 } 14210 _ACEOF 14211 if ac_fn_c_try_compile "$LINENO" 14212 then : 14213 ac_cv_sys_file_offset_bits=no; break 14214 fi 14215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14217 /* end confdefs.h. */ 14218 #define _FILE_OFFSET_BITS 64 14219 #include <sys/types.h> 14220 /* Check that off_t can represent 2**63 - 1 correctly. 14221 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14222 since some C++ compilers masquerading as C compilers 14223 incorrectly reject 9223372036854775807. */ 14224 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14226 && LARGE_OFF_T % 2147483647 == 1) 14227 ? 1 : -1]; 14228 int 14229 main (void) 14230 { 14231 14232 ; 14233 return 0; 14234 } 14235 _ACEOF 14236 if ac_fn_c_try_compile "$LINENO" 14237 then : 14238 ac_cv_sys_file_offset_bits=64; break 14239 fi 14240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14241 ac_cv_sys_file_offset_bits=unknown 14242 break 14243 done 14244 fi 14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14246 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 14247 case $ac_cv_sys_file_offset_bits in #( 14248 no | unknown) ;; 14249 *) 14250 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 14251 ;; 14252 esac 14253 rm -rf conftest* 14254 if test $ac_cv_sys_file_offset_bits = unknown; then 14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14256 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 14257 if test ${ac_cv_sys_large_files+y} 14258 then : 14259 printf %s "(cached) " >&6 14260 else $as_nop 14261 while :; do 14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14263 /* end confdefs.h. */ 14264 #include <sys/types.h> 14265 /* Check that off_t can represent 2**63 - 1 correctly. 14266 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14267 since some C++ compilers masquerading as C compilers 14268 incorrectly reject 9223372036854775807. */ 14269 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14270 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14271 && LARGE_OFF_T % 2147483647 == 1) 14272 ? 1 : -1]; 14273 int 14274 main (void) 14275 { 14276 14277 ; 14278 return 0; 14279 } 14280 _ACEOF 14281 if ac_fn_c_try_compile "$LINENO" 14282 then : 14283 ac_cv_sys_large_files=no; break 14284 fi 14285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14287 /* end confdefs.h. */ 14288 #define _LARGE_FILES 1 14289 #include <sys/types.h> 14290 /* Check that off_t can represent 2**63 - 1 correctly. 14291 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14292 since some C++ compilers masquerading as C compilers 14293 incorrectly reject 9223372036854775807. */ 14294 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14296 && LARGE_OFF_T % 2147483647 == 1) 14297 ? 1 : -1]; 14298 int 14299 main (void) 14300 { 14301 14302 ; 14303 return 0; 14304 } 14305 _ACEOF 14306 if ac_fn_c_try_compile "$LINENO" 14307 then : 14308 ac_cv_sys_large_files=1; break 14309 fi 14310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14311 ac_cv_sys_large_files=unknown 14312 break 14313 done 14314 fi 14315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14316 printf "%s\n" "$ac_cv_sys_large_files" >&6; } 14317 case $ac_cv_sys_large_files in #( 14318 no | unknown) ;; 14319 *) 14320 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 14321 ;; 14322 esac 14323 rm -rf conftest* 14324 fi 14325 fi 14326 14327 14328 14329 14330 ntp_pkgconfig_min_version='0.15.0' 14331 if test -n "$ac_tool_prefix"; then 14332 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14333 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14335 printf %s "checking for $ac_word... " >&6; } 14336 if test ${ac_cv_path_PKG_CONFIG+y} 14337 then : 14338 printf %s "(cached) " >&6 14339 else $as_nop 14340 case $PKG_CONFIG in 14341 [\\/]* | ?:[\\/]*) 14342 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14343 ;; 14344 *) 14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14346 for as_dir in $PATH 14347 do 14348 IFS=$as_save_IFS 14349 case $as_dir in #((( 14350 '') as_dir=./ ;; 14351 */) ;; 14352 *) as_dir=$as_dir/ ;; 14353 esac 14354 for ac_exec_ext in '' $ac_executable_extensions; do 14355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14356 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14358 break 2 14359 fi 14360 done 14361 done 14362 IFS=$as_save_IFS 14363 14364 ;; 14365 esac 14366 fi 14367 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14368 if test -n "$PKG_CONFIG"; then 14369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14370 printf "%s\n" "$PKG_CONFIG" >&6; } 14371 else 14372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14373 printf "%s\n" "no" >&6; } 14374 fi 14375 14376 14377 fi 14378 if test -z "$ac_cv_path_PKG_CONFIG"; then 14379 ac_pt_PKG_CONFIG=$PKG_CONFIG 14380 # Extract the first word of "pkg-config", so it can be a program name with args. 14381 set dummy pkg-config; ac_word=$2 14382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14383 printf %s "checking for $ac_word... " >&6; } 14384 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 14385 then : 14386 printf %s "(cached) " >&6 14387 else $as_nop 14388 case $ac_pt_PKG_CONFIG in 14389 [\\/]* | ?:[\\/]*) 14390 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14391 ;; 14392 *) 14393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14394 for as_dir in $PATH 14395 do 14396 IFS=$as_save_IFS 14397 case $as_dir in #((( 14398 '') as_dir=./ ;; 14399 */) ;; 14400 *) as_dir=$as_dir/ ;; 14401 esac 14402 for ac_exec_ext in '' $ac_executable_extensions; do 14403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14404 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14406 break 2 14407 fi 14408 done 14409 done 14410 IFS=$as_save_IFS 14411 14412 ;; 14413 esac 14414 fi 14415 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14416 if test -n "$ac_pt_PKG_CONFIG"; then 14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14418 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 14419 else 14420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14421 printf "%s\n" "no" >&6; } 14422 fi 14423 14424 if test "x$ac_pt_PKG_CONFIG" = x; then 14425 PKG_CONFIG="" 14426 else 14427 case $cross_compiling:$ac_tool_warned in 14428 yes:) 14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14430 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14431 ac_tool_warned=yes ;; 14432 esac 14433 PKG_CONFIG=$ac_pt_PKG_CONFIG 14434 fi 14435 else 14436 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14437 fi 14438 14439 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 14440 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 14441 14442 case "$PKG_CONFIG" in 14443 /*) 14444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 14445 printf %s "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 14446 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14448 printf "%s\n" "yes" >&6; } 14449 else 14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14451 printf "%s\n" "no" >&6; } 14452 PKG_CONFIG="" 14453 fi 14454 ;; 14455 esac 14456 14457 14458 14459 14460 case "$enable_openssl" in 14461 yes) 14462 have_openssl=no 14463 case "$PKG_CONFIG" in 14464 '') 14465 ;; 14466 *) 14467 OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null` 14468 case "$OPENSSL_LIBS" in 14469 '') ;; 14470 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" 14471 have_openssl=yes 14472 ;; 14473 esac 14474 OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null` 14475 ;; 14476 esac 14477 case "$have_openssl" in 14478 yes) ;; 14479 *) 14480 save_LIBS="$LIBS" 14481 LIBS="" 14482 OPENSSL_LIBS="" 14483 for lib in crypto eay32; do 14484 # clear cache 14485 unset ac_cv_search_SSL_new 14486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5 14487 printf %s "checking for library containing SSL_new... " >&6; } 14488 if test ${ac_cv_search_SSL_new+y} 14489 then : 14490 printf %s "(cached) " >&6 14491 else $as_nop 14492 ac_func_search_save_LIBS=$LIBS 14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14494 /* end confdefs.h. */ 14495 14496 /* Override any GCC internal prototype to avoid an error. 14497 Use char because int might match the return type of a GCC 14498 builtin and then its argument prototype would still apply. */ 14499 char SSL_new (); 14500 int 14501 main (void) 14502 { 14503 return SSL_new (); 14504 ; 14505 return 0; 14506 } 14507 _ACEOF 14508 for ac_lib in '' ssl ssl32 14509 do 14510 if test -z "$ac_lib"; then 14511 ac_res="none required" 14512 else 14513 ac_res=-l$ac_lib 14514 LIBS="-l$ac_lib -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS" 14515 fi 14516 if ac_fn_c_try_link "$LINENO" 14517 then : 14518 ac_cv_search_SSL_new=$ac_res 14519 fi 14520 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14521 conftest$ac_exeext 14522 if test ${ac_cv_search_SSL_new+y} 14523 then : 14524 break 14525 fi 14526 done 14527 if test ${ac_cv_search_SSL_new+y} 14528 then : 14529 14530 else $as_nop 14531 ac_cv_search_SSL_new=no 14532 fi 14533 rm conftest.$ac_ext 14534 LIBS=$ac_func_search_save_LIBS 14535 fi 14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5 14537 printf "%s\n" "$ac_cv_search_SSL_new" >&6; } 14538 ac_res=$ac_cv_search_SSL_new 14539 if test "$ac_res" != no 14540 then : 14541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14542 have_openssl=yes 14543 OPENSSL_LIBS="$LIBS -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" 14544 else $as_nop 14545 have_openssl=no 14546 fi 14547 14548 LIBS="$save_LIBS" 14549 test "$have_openssl" = "yes" && break 14550 done 14551 ;; 14552 esac 14553 CPPFLAGS_SAVE=$CPPFLAGS 14554 CPPFLAGS="$CPPFLAGS $OPENSSL_INCS" 14555 for ac_header in openssl/ssl.h 14556 do : 14557 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 14558 if test "x$ac_cv_header_openssl_ssl_h" = xyes 14559 then : 14560 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 14561 14562 else $as_nop 14563 have_openssl=no 14564 fi 14565 14566 done 14567 CPPFLAGS=$CPPFLAGS_SAVE 14568 14569 14570 case "$have_openssl" in 14571 yes) 14572 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h 14573 ;; 14574 *) as_fn_error $? "openssl is a must but can not be found. You should add the \ 14575 directory containing \`openssl.pc' to the \`PKG_CONFIG_PATH' environment variable, \ 14576 or set \`CFLAGS' and \`LDFLAGS' directly for openssl, or use \`--disable-openssl' \ 14577 to disable support for openssl encryption" "$LINENO" 5 14578 ;; 14579 esac 14580 ;; 14581 esac 14582 14583 # check if we have and should use openssl 14584 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then 14585 OPENSSL_TRUE= 14586 OPENSSL_FALSE='#' 14587 else 14588 OPENSSL_TRUE='#' 14589 OPENSSL_FALSE= 14590 fi 14591 14592 14593 14594 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 14595 if test "x$ac_cv_header_arpa_inet_h" = xyes 14596 then : 14597 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 14598 14599 fi 14600 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 14601 if test "x$ac_cv_header_fcntl_h" = xyes 14602 then : 14603 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 14604 14605 fi 14606 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" 14607 if test "x$ac_cv_header_ifaddrs_h" = xyes 14608 then : 14609 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h 14610 14611 fi 14612 ac_fn_c_check_header_compile "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default" 14613 if test "x$ac_cv_header_mach_mach_time_h" = xyes 14614 then : 14615 printf "%s\n" "#define HAVE_MACH_MACH_TIME_H 1" >>confdefs.h 14616 14617 fi 14618 ac_fn_c_check_header_compile "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" 14619 if test "x$ac_cv_header_mach_mach_h" = xyes 14620 then : 14621 printf "%s\n" "#define HAVE_MACH_MACH_H 1" >>confdefs.h 14622 14623 fi 14624 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" 14625 if test "x$ac_cv_header_netdb_h" = xyes 14626 then : 14627 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 14628 14629 fi 14630 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 14631 if test "x$ac_cv_header_netinet_in_h" = xyes 14632 then : 14633 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 14634 14635 fi 14636 ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "$ac_includes_default" 14637 if test "x$ac_cv_header_netinet_in6_h" = xyes 14638 then : 14639 printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h 14640 14641 fi 14642 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" 14643 if test "x$ac_cv_header_netinet_tcp_h" = xyes 14644 then : 14645 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 14646 14647 fi 14648 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 14649 if test "x$ac_cv_header_sys_un_h" = xyes 14650 then : 14651 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 14652 14653 fi 14654 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 14655 if test "x$ac_cv_header_poll_h" = xyes 14656 then : 14657 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 14658 14659 fi 14660 ac_fn_c_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default" 14661 if test "x$ac_cv_header_port_h" = xyes 14662 then : 14663 printf "%s\n" "#define HAVE_PORT_H 1" >>confdefs.h 14664 14665 fi 14666 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 14667 if test "x$ac_cv_header_stdarg_h" = xyes 14668 then : 14669 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h 14670 14671 fi 14672 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" 14673 if test "x$ac_cv_header_stddef_h" = xyes 14674 then : 14675 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h 14676 14677 fi 14678 ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default" 14679 if test "x$ac_cv_header_sys_devpoll_h" = xyes 14680 then : 14681 printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h 14682 14683 fi 14684 ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" 14685 if test "x$ac_cv_header_sys_epoll_h" = xyes 14686 then : 14687 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h 14688 14689 fi 14690 ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" 14691 if test "x$ac_cv_header_sys_event_h" = xyes 14692 then : 14693 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h 14694 14695 fi 14696 ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" 14697 if test "x$ac_cv_header_sys_eventfd_h" = xyes 14698 then : 14699 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h 14700 14701 fi 14702 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 14703 if test "x$ac_cv_header_sys_ioctl_h" = xyes 14704 then : 14705 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 14706 14707 fi 14708 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 14709 if test "x$ac_cv_header_sys_mman_h" = xyes 14710 then : 14711 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 14712 14713 fi 14714 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 14715 if test "x$ac_cv_header_sys_param_h" = xyes 14716 then : 14717 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 14718 14719 fi 14720 ac_fn_c_check_header_compile "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "$ac_includes_default" 14721 if test "x$ac_cv_header_sys_queue_h" = xyes 14722 then : 14723 printf "%s\n" "#define HAVE_SYS_QUEUE_H 1" >>confdefs.h 14724 14725 fi 14726 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" 14727 if test "x$ac_cv_header_sys_resource_h" = xyes 14728 then : 14729 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 14730 14731 fi 14732 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 14733 if test "x$ac_cv_header_sys_select_h" = xyes 14734 then : 14735 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 14736 14737 fi 14738 ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default" 14739 if test "x$ac_cv_header_sys_sendfile_h" = xyes 14740 then : 14741 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h 14742 14743 fi 14744 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 14745 if test "x$ac_cv_header_sys_socket_h" = xyes 14746 then : 14747 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 14748 14749 fi 14750 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 14751 if test "x$ac_cv_header_sys_stat_h" = xyes 14752 then : 14753 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 14754 14755 fi 14756 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 14757 if test "x$ac_cv_header_sys_time_h" = xyes 14758 then : 14759 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 14760 14761 fi 14762 ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" 14763 if test "x$ac_cv_header_sys_timerfd_h" = xyes 14764 then : 14765 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h 14766 14767 fi 14768 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" 14769 if test "x$ac_cv_header_sys_uio_h" = xyes 14770 then : 14771 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 14772 14773 fi 14774 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 14775 if test "x$ac_cv_header_sys_wait_h" = xyes 14776 then : 14777 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 14778 14779 fi 14780 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" 14781 if test "x$ac_cv_header_sys_random_h" = xyes 14782 then : 14783 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h 14784 14785 fi 14786 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 14787 if test "x$ac_cv_header_errno_h" = xyes 14788 then : 14789 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h 14790 14791 fi 14792 ac_fn_c_check_header_compile "$LINENO" "afunix.h" "ac_cv_header_afunix_h" "$ac_includes_default" 14793 if test "x$ac_cv_header_afunix_h" = xyes 14794 then : 14795 printf "%s\n" "#define HAVE_AFUNIX_H 1" >>confdefs.h 14796 14797 fi 14798 14799 14800 case "${host_os}" in 14801 linux*) ;; 14802 *) 14803 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 14804 #ifdef HAVE_SYS_PARAM_H 14805 #include <sys/param.h> 14806 #endif 14807 14808 " 14809 if test "x$ac_cv_header_sys_sysctl_h" = xyes 14810 then : 14811 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h 14812 14813 fi 14814 14815 esac 14816 14817 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then 14818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5 14819 printf %s "checking for TAILQ_FOREACH in sys/queue.h... " >&6; } 14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14821 /* end confdefs.h. */ 14822 14823 #include <sys/queue.h> 14824 #ifdef TAILQ_FOREACH 14825 yes 14826 #endif 14827 14828 _ACEOF 14829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14830 $EGREP "yes" >/dev/null 2>&1 14831 then : 14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14833 printf "%s\n" "yes" >&6; } 14834 14835 printf "%s\n" "#define HAVE_TAILQFOREACH 1" >>confdefs.h 14836 14837 else $as_nop 14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14839 printf "%s\n" "no" >&6; } 14840 14841 fi 14842 rm -rf conftest* 14843 14844 fi 14845 14846 if test "x$ac_cv_header_sys_time_h" = "xyes"; then 14847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5 14848 printf %s "checking for timeradd in sys/time.h... " >&6; } 14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14850 /* end confdefs.h. */ 14851 14852 #include <sys/time.h> 14853 #ifdef timeradd 14854 yes 14855 #endif 14856 14857 _ACEOF 14858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14859 $EGREP "yes" >/dev/null 2>&1 14860 then : 14861 14862 printf "%s\n" "#define HAVE_TIMERADD 1" >>confdefs.h 14863 14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14865 printf "%s\n" "yes" >&6; } 14866 else $as_nop 14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14868 printf "%s\n" "no" >&6; } 14869 14870 fi 14871 rm -rf conftest* 14872 14873 fi 14874 14875 if test "x$ac_cv_header_sys_time_h" = "xyes"; then 14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5 14877 printf %s "checking for timercmp in sys/time.h... " >&6; } 14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14879 /* end confdefs.h. */ 14880 14881 #include <sys/time.h> 14882 #ifdef timercmp 14883 yes 14884 #endif 14885 14886 _ACEOF 14887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14888 $EGREP "yes" >/dev/null 2>&1 14889 then : 14890 14891 printf "%s\n" "#define HAVE_TIMERCMP 1" >>confdefs.h 14892 14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14894 printf "%s\n" "yes" >&6; } 14895 else $as_nop 14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14897 printf "%s\n" "no" >&6; } 14898 14899 fi 14900 rm -rf conftest* 14901 14902 fi 14903 14904 if test "x$ac_cv_header_sys_time_h" = "xyes"; then 14905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5 14906 printf %s "checking for timerclear in sys/time.h... " >&6; } 14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14908 /* end confdefs.h. */ 14909 14910 #include <sys/time.h> 14911 #ifdef timerclear 14912 yes 14913 #endif 14914 14915 _ACEOF 14916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14917 $EGREP "yes" >/dev/null 2>&1 14918 then : 14919 14920 printf "%s\n" "#define HAVE_TIMERCLEAR 1" >>confdefs.h 14921 14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14923 printf "%s\n" "yes" >&6; } 14924 else $as_nop 14925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14926 printf "%s\n" "no" >&6; } 14927 14928 fi 14929 rm -rf conftest* 14930 14931 fi 14932 14933 if test "x$ac_cv_header_sys_time_h" = "xyes"; then 14934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5 14935 printf %s "checking for timerisset in sys/time.h... " >&6; } 14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14937 /* end confdefs.h. */ 14938 14939 #include <sys/time.h> 14940 #ifdef timerisset 14941 yes 14942 #endif 14943 14944 _ACEOF 14945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14946 $EGREP "yes" >/dev/null 2>&1 14947 then : 14948 14949 printf "%s\n" "#define HAVE_TIMERISSET 1" >>confdefs.h 14950 14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14952 printf "%s\n" "yes" >&6; } 14953 else $as_nop 14954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14955 printf "%s\n" "no" >&6; } 14956 14957 fi 14958 rm -rf conftest* 14959 14960 fi 14961 14962 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then 14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 14964 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 14965 if test ${ac_cv_c_undeclared_builtin_options+y} 14966 then : 14967 printf %s "(cached) " >&6 14968 else $as_nop 14969 ac_save_CFLAGS=$CFLAGS 14970 ac_cv_c_undeclared_builtin_options='cannot detect' 14971 for ac_arg in '' -fno-builtin; do 14972 CFLAGS="$ac_save_CFLAGS $ac_arg" 14973 # This test program should *not* compile successfully. 14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14975 /* end confdefs.h. */ 14976 14977 int 14978 main (void) 14979 { 14980 (void) strchr; 14981 ; 14982 return 0; 14983 } 14984 _ACEOF 14985 if ac_fn_c_try_compile "$LINENO" 14986 then : 14987 14988 else $as_nop 14989 # This test program should compile successfully. 14990 # No library function is consistently available on 14991 # freestanding implementations, so test against a dummy 14992 # declaration. Include always-available headers on the 14993 # off chance that they somehow elicit warnings. 14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14995 /* end confdefs.h. */ 14996 #include <float.h> 14997 #include <limits.h> 14998 #include <stdarg.h> 14999 #include <stddef.h> 15000 extern void ac_decl (int, char *); 15001 15002 int 15003 main (void) 15004 { 15005 (void) ac_decl (0, (char *) 0); 15006 (void) ac_decl; 15007 15008 ; 15009 return 0; 15010 } 15011 _ACEOF 15012 if ac_fn_c_try_compile "$LINENO" 15013 then : 15014 if test x"$ac_arg" = x 15015 then : 15016 ac_cv_c_undeclared_builtin_options='none needed' 15017 else $as_nop 15018 ac_cv_c_undeclared_builtin_options=$ac_arg 15019 fi 15020 break 15021 fi 15022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15023 fi 15024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15025 done 15026 CFLAGS=$ac_save_CFLAGS 15027 15028 fi 15029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 15030 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 15031 case $ac_cv_c_undeclared_builtin_options in #( 15032 'cannot detect') : 15033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15034 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15035 as_fn_error $? "cannot make $CC report undeclared builtins 15036 See \`config.log' for more details" "$LINENO" 5; } ;; #( 15037 'none needed') : 15038 ac_c_undeclared_builtin_options='' ;; #( 15039 *) : 15040 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 15041 esac 15042 15043 ac_fn_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h> 15044 #include <sys/sysctl.h> 15045 15046 " "$ac_c_undeclared_builtin_options" "CFLAGS" 15047 if test "x$ac_cv_have_decl_CTL_KERN" = xyes 15048 then : 15049 ac_have_decl=1 15050 else $as_nop 15051 ac_have_decl=0 15052 fi 15053 printf "%s\n" "#define HAVE_DECL_CTL_KERN $ac_have_decl" >>confdefs.h 15054 ac_fn_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h> 15055 #include <sys/sysctl.h> 15056 15057 " "$ac_c_undeclared_builtin_options" "CFLAGS" 15058 if test "x$ac_cv_have_decl_KERN_ARND" = xyes 15059 then : 15060 ac_have_decl=1 15061 else $as_nop 15062 ac_have_decl=0 15063 fi 15064 printf "%s\n" "#define HAVE_DECL_KERN_ARND $ac_have_decl" >>confdefs.h 15065 15066 fi 15067 15068 if test x$bwin32 = xtrue; then 15069 BUILD_WIN32_TRUE= 15070 BUILD_WIN32_FALSE='#' 15071 else 15072 BUILD_WIN32_TRUE='#' 15073 BUILD_WIN32_FALSE= 15074 fi 15075 15076 if test x$cygwin = xtrue; then 15077 BUILD_CYGWIN_TRUE= 15078 BUILD_CYGWIN_FALSE='#' 15079 else 15080 BUILD_CYGWIN_TRUE='#' 15081 BUILD_CYGWIN_FALSE= 15082 fi 15083 15084 if test x$midipix = xtrue; then 15085 BUILD_MIDIPIX_TRUE= 15086 BUILD_MIDIPIX_FALSE='#' 15087 else 15088 BUILD_MIDIPIX_TRUE='#' 15089 BUILD_MIDIPIX_FALSE= 15090 fi 15091 15092 if test x$bwin32 = xtrue || test x$cygwin = xtrue || test x$midipix = xtrue; then 15093 BUILD_WITH_NO_UNDEFINED_TRUE= 15094 BUILD_WITH_NO_UNDEFINED_FALSE='#' 15095 else 15096 BUILD_WITH_NO_UNDEFINED_TRUE='#' 15097 BUILD_WITH_NO_UNDEFINED_FALSE= 15098 fi 15099 15100 15101 if test x$bwin32 = xtrue; then 15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 15103 printf %s "checking for main in -lws2_32... " >&6; } 15104 if test ${ac_cv_lib_ws2_32_main+y} 15105 then : 15106 printf %s "(cached) " >&6 15107 else $as_nop 15108 ac_check_lib_save_LIBS=$LIBS 15109 LIBS="-lws2_32 $LIBS" 15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15111 /* end confdefs.h. */ 15112 15113 15114 int 15115 main (void) 15116 { 15117 return main (); 15118 ; 15119 return 0; 15120 } 15121 _ACEOF 15122 if ac_fn_c_try_link "$LINENO" 15123 then : 15124 ac_cv_lib_ws2_32_main=yes 15125 else $as_nop 15126 ac_cv_lib_ws2_32_main=no 15127 fi 15128 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15129 conftest$ac_exeext conftest.$ac_ext 15130 LIBS=$ac_check_lib_save_LIBS 15131 fi 15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 15133 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 15134 if test "x$ac_cv_lib_ws2_32_main" = xyes 15135 then : 15136 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 15137 15138 LIBS="-lws2_32 $LIBS" 15139 15140 fi 15141 15142 fi 15143 15144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15145 printf %s "checking for an ANSI C-conforming const... " >&6; } 15146 if test ${ac_cv_c_const+y} 15147 then : 15148 printf %s "(cached) " >&6 15149 else $as_nop 15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15151 /* end confdefs.h. */ 15152 15153 int 15154 main (void) 15155 { 15156 15157 #ifndef __cplusplus 15158 /* Ultrix mips cc rejects this sort of thing. */ 15159 typedef int charset[2]; 15160 const charset cs = { 0, 0 }; 15161 /* SunOS 4.1.1 cc rejects this. */ 15162 char const *const *pcpcc; 15163 char **ppc; 15164 /* NEC SVR4.0.2 mips cc rejects this. */ 15165 struct point {int x, y;}; 15166 static struct point const zero = {0,0}; 15167 /* IBM XL C 1.02.0.0 rejects this. 15168 It does not let you subtract one const X* pointer from another in 15169 an arm of an if-expression whose if-part is not a constant 15170 expression */ 15171 const char *g = "string"; 15172 pcpcc = &g + (g ? g-g : 0); 15173 /* HPUX 7.0 cc rejects these. */ 15174 ++pcpcc; 15175 ppc = (char**) pcpcc; 15176 pcpcc = (char const *const *) ppc; 15177 { /* SCO 3.2v4 cc rejects this sort of thing. */ 15178 char tx; 15179 char *t = &tx; 15180 char const *s = 0 ? (char *) 0 : (char const *) 0; 15181 15182 *t++ = 0; 15183 if (s) return 0; 15184 } 15185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15186 int x[] = {25, 17}; 15187 const int *foo = &x[0]; 15188 ++foo; 15189 } 15190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15191 typedef const int *iptr; 15192 iptr p = 0; 15193 ++p; 15194 } 15195 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 15196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15197 struct s { int j; const int *ap[3]; } bx; 15198 struct s *b = &bx; b->j = 5; 15199 } 15200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15201 const int foo = 10; 15202 if (!foo) return 0; 15203 } 15204 return !cs[0] && !zero.x; 15205 #endif 15206 15207 ; 15208 return 0; 15209 } 15210 _ACEOF 15211 if ac_fn_c_try_compile "$LINENO" 15212 then : 15213 ac_cv_c_const=yes 15214 else $as_nop 15215 ac_cv_c_const=no 15216 fi 15217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15218 fi 15219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 15220 printf "%s\n" "$ac_cv_c_const" >&6; } 15221 if test $ac_cv_c_const = no; then 15222 15223 printf "%s\n" "#define const /**/" >>confdefs.h 15224 15225 fi 15226 15227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 15228 printf %s "checking for inline... " >&6; } 15229 if test ${ac_cv_c_inline+y} 15230 then : 15231 printf %s "(cached) " >&6 15232 else $as_nop 15233 ac_cv_c_inline=no 15234 for ac_kw in inline __inline__ __inline; do 15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15236 /* end confdefs.h. */ 15237 #ifndef __cplusplus 15238 typedef int foo_t; 15239 static $ac_kw foo_t static_foo (void) {return 0; } 15240 $ac_kw foo_t foo (void) {return 0; } 15241 #endif 15242 15243 _ACEOF 15244 if ac_fn_c_try_compile "$LINENO" 15245 then : 15246 ac_cv_c_inline=$ac_kw 15247 fi 15248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15249 test "$ac_cv_c_inline" != no && break 15250 done 15251 15252 fi 15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 15254 printf "%s\n" "$ac_cv_c_inline" >&6; } 15255 15256 case $ac_cv_c_inline in 15257 inline | yes) ;; 15258 *) 15259 case $ac_cv_c_inline in 15260 no) ac_val=;; 15261 *) ac_val=$ac_cv_c_inline;; 15262 esac 15263 cat >>confdefs.h <<_ACEOF 15264 #ifndef __cplusplus 15265 #define inline $ac_val 15266 #endif 15267 _ACEOF 15268 ;; 15269 esac 15270 15271 15272 15273 # Obsolete code to be removed. 15274 if test $ac_cv_header_sys_time_h = yes; then 15275 15276 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 15277 15278 fi 15279 # End of obsolete code. 15280 15281 15282 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 15283 if test "x$ac_cv_func_accept4" = xyes 15284 then : 15285 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h 15286 15287 fi 15288 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 15289 if test "x$ac_cv_func_arc4random" = xyes 15290 then : 15291 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 15292 15293 fi 15294 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 15295 if test "x$ac_cv_func_arc4random_buf" = xyes 15296 then : 15297 printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h 15298 15299 fi 15300 ac_fn_c_check_func "$LINENO" "arc4random_addrandom" "ac_cv_func_arc4random_addrandom" 15301 if test "x$ac_cv_func_arc4random_addrandom" = xyes 15302 then : 15303 printf "%s\n" "#define HAVE_ARC4RANDOM_ADDRANDOM 1" >>confdefs.h 15304 15305 fi 15306 ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd" 15307 if test "x$ac_cv_func_eventfd" = xyes 15308 then : 15309 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h 15310 15311 fi 15312 ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1" 15313 if test "x$ac_cv_func_epoll_create1" = xyes 15314 then : 15315 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 15316 15317 fi 15318 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 15319 if test "x$ac_cv_func_fcntl" = xyes 15320 then : 15321 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 15322 15323 fi 15324 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid" 15325 if test "x$ac_cv_func_getegid" = xyes 15326 then : 15327 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h 15328 15329 fi 15330 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 15331 if test "x$ac_cv_func_geteuid" = xyes 15332 then : 15333 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 15334 15335 fi 15336 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 15337 if test "x$ac_cv_func_getifaddrs" = xyes 15338 then : 15339 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 15340 15341 fi 15342 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 15343 if test "x$ac_cv_func_gettimeofday" = xyes 15344 then : 15345 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 15346 15347 fi 15348 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 15349 if test "x$ac_cv_func_issetugid" = xyes 15350 then : 15351 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h 15352 15353 fi 15354 ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time" 15355 if test "x$ac_cv_func_mach_absolute_time" = xyes 15356 then : 15357 printf "%s\n" "#define HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h 15358 15359 fi 15360 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 15361 if test "x$ac_cv_func_mmap" = xyes 15362 then : 15363 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 15364 15365 fi 15366 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 15367 if test "x$ac_cv_func_nanosleep" = xyes 15368 then : 15369 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h 15370 15371 fi 15372 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe" 15373 if test "x$ac_cv_func_pipe" = xyes 15374 then : 15375 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h 15376 15377 fi 15378 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" 15379 if test "x$ac_cv_func_pipe2" = xyes 15380 then : 15381 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h 15382 15383 fi 15384 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" 15385 if test "x$ac_cv_func_putenv" = xyes 15386 then : 15387 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h 15388 15389 fi 15390 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" 15391 if test "x$ac_cv_func_sendfile" = xyes 15392 then : 15393 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h 15394 15395 fi 15396 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 15397 if test "x$ac_cv_func_setenv" = xyes 15398 then : 15399 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h 15400 15401 fi 15402 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" 15403 if test "x$ac_cv_func_setrlimit" = xyes 15404 then : 15405 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h 15406 15407 fi 15408 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 15409 if test "x$ac_cv_func_sigaction" = xyes 15410 then : 15411 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 15412 15413 fi 15414 ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal" 15415 if test "x$ac_cv_func_signal" = xyes 15416 then : 15417 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h 15418 15419 fi 15420 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice" 15421 if test "x$ac_cv_func_splice" = xyes 15422 then : 15423 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h 15424 15425 fi 15426 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15427 if test "x$ac_cv_func_strlcpy" = xyes 15428 then : 15429 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 15430 15431 fi 15432 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 15433 if test "x$ac_cv_func_strsep" = xyes 15434 then : 15435 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h 15436 15437 fi 15438 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" 15439 if test "x$ac_cv_func_strtok_r" = xyes 15440 then : 15441 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h 15442 15443 fi 15444 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 15445 if test "x$ac_cv_func_strtoll" = xyes 15446 then : 15447 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h 15448 15449 fi 15450 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl" 15451 if test "x$ac_cv_func_sysctl" = xyes 15452 then : 15453 printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h 15454 15455 fi 15456 ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create" 15457 if test "x$ac_cv_func_timerfd_create" = xyes 15458 then : 15459 printf "%s\n" "#define HAVE_TIMERFD_CREATE 1" >>confdefs.h 15460 15461 fi 15462 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask" 15463 if test "x$ac_cv_func_umask" = xyes 15464 then : 15465 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h 15466 15467 fi 15468 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 15469 if test "x$ac_cv_func_unsetenv" = xyes 15470 then : 15471 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h 15472 15473 fi 15474 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 15475 if test "x$ac_cv_func_usleep" = xyes 15476 then : 15477 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h 15478 15479 fi 15480 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 15481 if test "x$ac_cv_func_vasprintf" = xyes 15482 then : 15483 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 15484 15485 fi 15486 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" 15487 if test "x$ac_cv_func_getrandom" = xyes 15488 then : 15489 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h 15490 15491 fi 15492 15493 15494 if test x$bwin32 = xtrue 15495 then : 15496 15497 for ac_func in _gmtime64_s 15498 do : 15499 ac_fn_c_check_func "$LINENO" "_gmtime64_s" "ac_cv_func__gmtime64_s" 15500 if test "x$ac_cv_func__gmtime64_s" = xyes 15501 then : 15502 printf "%s\n" "#define HAVE__GMTIME64_S 1" >>confdefs.h 15503 15504 else $as_nop 15505 ac_fn_c_check_func "$LINENO" "_gmtime64" "ac_cv_func__gmtime64" 15506 if test "x$ac_cv_func__gmtime64" = xyes 15507 then : 15508 printf "%s\n" "#define HAVE__GMTIME64 1" >>confdefs.h 15509 15510 fi 15511 15512 fi 15513 15514 done 15515 15516 fi 15517 15518 if test x"$ac_cv_func_strlcpy" = xno; then 15519 STRLCPY_IMPL_TRUE= 15520 STRLCPY_IMPL_FALSE='#' 15521 else 15522 STRLCPY_IMPL_TRUE='#' 15523 STRLCPY_IMPL_FALSE= 15524 fi 15525 15526 15527 15528 15529 if test x$bwin32 = xtrue 15530 then : 15531 if test "x#ifdef _WIN32 15532 #include <winsock2.h> 15533 #include <ws2tcpip.h> 15534 #endif" = "x" 15535 then : 15536 as_fn_error $? "header not privided" "$LINENO" 5 15537 fi 15538 if test "x#ifdef _WIN32 15539 #include <winsock2.h> 15540 #include <ws2tcpip.h> 15541 #endif" = "x" 15542 then : 15543 as_fn_error $? "header not privided" "$LINENO" 5 15544 fi 15545 15546 ac_fn_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_decl" " #ifdef _WIN32 15547 #include <winsock2.h> 15548 #include <ws2tcpip.h> 15549 #endif 15550 " "$ac_c_undeclared_builtin_options" "CFLAGS" 15551 if test "x$ac_cv_have_decl_decl" = xyes 15552 then : 15553 15554 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 15555 15556 fi 15557 if test "x#ifdef _WIN32 15558 #include <winsock2.h> 15559 #include <ws2tcpip.h> 15560 #endif" = "x" 15561 then : 15562 as_fn_error $? "header not privided" "$LINENO" 5 15563 fi 15564 15565 ac_fn_check_decl "$LINENO" "getprotobynumber" "ac_cv_have_decl_decl" " #ifdef _WIN32 15566 #include <winsock2.h> 15567 #include <ws2tcpip.h> 15568 #endif 15569 " "$ac_c_undeclared_builtin_options" "CFLAGS" 15570 if test "x$ac_cv_have_decl_decl" = xyes 15571 then : 15572 15573 printf "%s\n" "#define HAVE_GETPROTOBYNUMBER 1" >>confdefs.h 15574 15575 fi 15576 if test "x#ifdef _WIN32 15577 #include <winsock2.h> 15578 #include <ws2tcpip.h> 15579 #endif" = "x" 15580 then : 15581 as_fn_error $? "header not privided" "$LINENO" 5 15582 fi 15583 15584 ac_fn_check_decl "$LINENO" "getservbyname" "ac_cv_have_decl_decl" " #ifdef _WIN32 15585 #include <winsock2.h> 15586 #include <ws2tcpip.h> 15587 #endif 15588 " "$ac_c_undeclared_builtin_options" "CFLAGS" 15589 if test "x$ac_cv_have_decl_decl" = xyes 15590 then : 15591 15592 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h 15593 15594 fi 15595 if test "x#ifdef _WIN32 15596 #include <winsock2.h> 15597 #include <ws2tcpip.h> 15598 #endif" = "x" 15599 then : 15600 as_fn_error $? "header not privided" "$LINENO" 5 15601 fi 15602 15603 ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_decl" " #ifdef _WIN32 15604 #include <winsock2.h> 15605 #include <ws2tcpip.h> 15606 #endif 15607 " "$ac_c_undeclared_builtin_options" "CFLAGS" 15608 if test "x$ac_cv_have_decl_decl" = xyes 15609 then : 15610 15611 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 15612 15613 fi 15614 if test "x#ifdef _WIN32 15615 #include <winsock2.h> 15616 #include <ws2tcpip.h> 15617 #endif" = "x" 15618 then : 15619 as_fn_error $? "header not privided" "$LINENO" 5 15620 fi 15621 15622 ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_decl" " #ifdef _WIN32 15623 #include <winsock2.h> 15624 #include <ws2tcpip.h> 15625 #endif 15626 " "$ac_c_undeclared_builtin_options" "CFLAGS" 15627 if test "x$ac_cv_have_decl_decl" = xyes 15628 then : 15629 15630 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 15631 15632 fi 15633 if test "x#ifdef _WIN32 15634 #include <winsock2.h> 15635 #include <ws2tcpip.h> 15636 #endif" = "x" 15637 then : 15638 as_fn_error $? "header not privided" "$LINENO" 5 15639 fi 15640 15641 ac_fn_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_decl" " #ifdef _WIN32 15642 #include <winsock2.h> 15643 #include <ws2tcpip.h> 15644 #endif 15645 " "$ac_c_undeclared_builtin_options" "CFLAGS" 15646 if test "x$ac_cv_have_decl_decl" = xyes 15647 then : 15648 15649 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 15650 15651 fi 15652 15653 15654 else $as_nop 15655 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 15656 if test "x$ac_cv_func_getnameinfo" = xyes 15657 then : 15658 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 15659 15660 fi 15661 ac_fn_c_check_func "$LINENO" "getprotobynumber" "ac_cv_func_getprotobynumber" 15662 if test "x$ac_cv_func_getprotobynumber" = xyes 15663 then : 15664 printf "%s\n" "#define HAVE_GETPROTOBYNUMBER 1" >>confdefs.h 15665 15666 fi 15667 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" 15668 if test "x$ac_cv_func_getservbyname" = xyes 15669 then : 15670 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h 15671 15672 fi 15673 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 15674 if test "x$ac_cv_func_inet_ntop" = xyes 15675 then : 15676 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 15677 15678 fi 15679 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 15680 if test "x$ac_cv_func_inet_pton" = xyes 15681 then : 15682 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 15683 15684 fi 15685 15686 15687 fi 15688 15689 15690 15691 if test x$bwin32 = xfalse 15692 then : 15693 15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 15695 printf %s "checking for getaddrinfo... " >&6; } 15696 if test ${libevent_cv_getaddrinfo+y} 15697 then : 15698 printf %s "(cached) " >&6 15699 else $as_nop 15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15701 /* end confdefs.h. */ 15702 15703 #ifdef HAVE_NETDB_H 15704 #include <netdb.h> 15705 #endif 15706 15707 int 15708 main (void) 15709 { 15710 15711 getaddrinfo; 15712 15713 15714 ; 15715 return 0; 15716 } 15717 _ACEOF 15718 if ac_fn_c_try_link "$LINENO" 15719 then : 15720 libevent_cv_getaddrinfo=yes 15721 else $as_nop 15722 libevent_cv_getaddrinfo=no 15723 15724 fi 15725 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15726 conftest$ac_exeext conftest.$ac_ext 15727 15728 fi 15729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5 15730 printf "%s\n" "$libevent_cv_getaddrinfo" >&6; } 15731 if test "$libevent_cv_getaddrinfo" = "yes" ; then 15732 15733 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 15734 15735 else 15736 15737 # Check for gethostbyname_r in all its glorious incompatible versions. 15738 # (This is cut-and-pasted from Tor, which based its logic on 15739 # Python's configure.in.) 15740 15741 15742 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 15743 if test "x$ac_cv_func_gethostbyname_r" = xyes 15744 then : 15745 15746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5 15747 printf %s "checking how many arguments gethostbyname_r() wants... " >&6; } 15748 OLD_CFLAGS=$CFLAGS 15749 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15751 /* end confdefs.h. */ 15752 15753 #include <netdb.h> 15754 15755 int 15756 main (void) 15757 { 15758 15759 char *cp1, *cp2; 15760 struct hostent *h1, *h2; 15761 int i1, i2; 15762 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2); 15763 15764 ; 15765 return 0; 15766 } 15767 _ACEOF 15768 if ac_fn_c_try_compile "$LINENO" 15769 then : 15770 15771 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 15772 15773 15774 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 15775 15776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 6" >&5 15777 printf "%s\n" "6" >&6; } 15778 15779 else $as_nop 15780 15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15782 /* end confdefs.h. */ 15783 15784 #include <netdb.h> 15785 15786 int 15787 main (void) 15788 { 15789 15790 char *cp1, *cp2; 15791 struct hostent *h1; 15792 int i1, i2; 15793 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2); 15794 15795 ; 15796 return 0; 15797 } 15798 _ACEOF 15799 if ac_fn_c_try_compile "$LINENO" 15800 then : 15801 15802 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 15803 15804 15805 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 15806 15807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 5" >&5 15808 printf "%s\n" "5" >&6; } 15809 15810 else $as_nop 15811 15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15813 /* end confdefs.h. */ 15814 15815 #include <netdb.h> 15816 15817 int 15818 main (void) 15819 { 15820 15821 char *cp1; 15822 struct hostent *h1; 15823 struct hostent_data hd; 15824 (void) gethostbyname_r(cp1,h1,&hd); 15825 15826 ; 15827 return 0; 15828 } 15829 _ACEOF 15830 if ac_fn_c_try_compile "$LINENO" 15831 then : 15832 15833 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 15834 15835 15836 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 15837 15838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 3" >&5 15839 printf "%s\n" "3" >&6; } 15840 15841 else $as_nop 15842 15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 0" >&5 15844 printf "%s\n" "0" >&6; } 15845 15846 fi 15847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15848 15849 fi 15850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15851 15852 fi 15853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15854 CFLAGS=$OLD_CFLAGS 15855 15856 fi 15857 15858 15859 fi 15860 15861 fi 15862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5 15863 printf %s "checking for F_SETFD in fcntl.h... " >&6; } 15864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15865 /* end confdefs.h. */ 15866 15867 #define _GNU_SOURCE 1 15868 #include <fcntl.h> 15869 #ifdef F_SETFD 15870 yes 15871 #endif 15872 15873 _ACEOF 15874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15875 $EGREP "yes" >/dev/null 2>&1 15876 then : 15877 15878 printf "%s\n" "#define HAVE_SETFD 1" >>confdefs.h 15879 15880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15881 printf "%s\n" "yes" >&6; } 15882 else $as_nop 15883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15884 printf "%s\n" "no" >&6; } 15885 fi 15886 rm -rf conftest* 15887 15888 15889 needsignal=no 15890 haveselect=no 15891 if test x$bwin32 != xtrue; then 15892 15893 for ac_func in select 15894 do : 15895 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 15896 if test "x$ac_cv_func_select" = xyes 15897 then : 15898 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h 15899 haveselect=yes 15900 fi 15901 15902 done 15903 if test "x$haveselect" = "xyes" ; then 15904 needsignal=yes 15905 fi 15906 fi 15907 if test "x$haveselect" = "xyes"; then 15908 SELECT_BACKEND_TRUE= 15909 SELECT_BACKEND_FALSE='#' 15910 else 15911 SELECT_BACKEND_TRUE='#' 15912 SELECT_BACKEND_FALSE= 15913 fi 15914 15915 15916 havepoll=no 15917 15918 for ac_func in poll 15919 do : 15920 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 15921 if test "x$ac_cv_func_poll" = xyes 15922 then : 15923 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 15924 havepoll=yes 15925 fi 15926 15927 done 15928 if test "x$havepoll" = "xyes" ; then 15929 needsignal=yes 15930 fi 15931 if test "x$havepoll" = "xyes"; then 15932 POLL_BACKEND_TRUE= 15933 POLL_BACKEND_FALSE='#' 15934 else 15935 POLL_BACKEND_TRUE='#' 15936 POLL_BACKEND_FALSE= 15937 fi 15938 15939 15940 havedevpoll=no 15941 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 15942 15943 printf "%s\n" "#define HAVE_DEVPOLL 1" >>confdefs.h 15944 15945 fi 15946 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 15947 DEVPOLL_BACKEND_TRUE= 15948 DEVPOLL_BACKEND_FALSE='#' 15949 else 15950 DEVPOLL_BACKEND_TRUE='#' 15951 DEVPOLL_BACKEND_FALSE= 15952 fi 15953 15954 15955 havekqueue=no 15956 if test "x$ac_cv_header_sys_event_h" = "xyes"; then 15957 15958 for ac_func in kqueue 15959 do : 15960 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 15961 if test "x$ac_cv_func_kqueue" = xyes 15962 then : 15963 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h 15964 havekqueue=yes 15965 fi 15966 15967 done 15968 if test "x$havekqueue" = "xyes" ; then 15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5 15970 printf %s "checking for working kqueue... " >&6; } 15971 if test "$cross_compiling" = yes 15972 then : 15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15974 printf "%s\n" "no" >&6; } 15975 15976 else $as_nop 15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15978 /* end confdefs.h. */ 15979 15980 #ifdef HAVE_STDLIB_H 15981 #include <stdlib.h> 15982 #endif 15983 #ifdef HAVE_STRING_H 15984 #include <string.h> 15985 #endif 15986 #include <sys/types.h> 15987 #include <sys/time.h> 15988 #include <sys/event.h> 15989 #include <stdio.h> 15990 #include <unistd.h> 15991 #include <fcntl.h> 15992 15993 int 15994 main (void) 15995 { 15996 15997 int kq; 15998 int n; 15999 int fd[2]; 16000 struct kevent ev; 16001 struct timespec ts; 16002 char buf[80000]; 16003 16004 if (pipe(fd) == -1) 16005 return 1; 16006 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1) 16007 return 1; 16008 16009 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf)) 16010 ; 16011 16012 if ((kq = kqueue()) == -1) 16013 return 1; 16014 16015 memset(&ev, 0, sizeof(ev)); 16016 ev.ident = fd[1]; 16017 ev.filter = EVFILT_WRITE; 16018 ev.flags = EV_ADD | EV_ENABLE; 16019 n = kevent(kq, &ev, 1, NULL, 0, NULL); 16020 if (n == -1) 16021 return 1; 16022 16023 read(fd[0], buf, sizeof(buf)); 16024 16025 ts.tv_sec = 0; 16026 ts.tv_nsec = 0; 16027 n = kevent(kq, NULL, 0, &ev, 1, &ts); 16028 if (n == -1 || n == 0) 16029 return 1; 16030 16031 return 0; 16032 16033 16034 ; 16035 return 0; 16036 } 16037 _ACEOF 16038 if ac_fn_c_try_run "$LINENO" 16039 then : 16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16041 printf "%s\n" "yes" >&6; } 16042 16043 printf "%s\n" "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h 16044 16045 havekqueue=yes 16046 16047 else $as_nop 16048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16049 printf "%s\n" "no" >&6; } 16050 fi 16051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16052 conftest.$ac_objext conftest.beam conftest.$ac_ext 16053 fi 16054 16055 fi 16056 fi 16057 if test "x$havekqueue" = "xyes"; then 16058 KQUEUE_BACKEND_TRUE= 16059 KQUEUE_BACKEND_FALSE='#' 16060 else 16061 KQUEUE_BACKEND_TRUE='#' 16062 KQUEUE_BACKEND_FALSE= 16063 fi 16064 16065 16066 haveepollsyscall=no 16067 haveepoll=no 16068 16069 for ac_func in epoll_ctl 16070 do : 16071 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" 16072 if test "x$ac_cv_func_epoll_ctl" = xyes 16073 then : 16074 printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h 16075 haveepoll=yes 16076 fi 16077 16078 done 16079 if test "x$haveepoll" = "xyes" ; then 16080 16081 printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h 16082 16083 needsignal=yes 16084 fi 16085 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then 16086 if test "x$haveepoll" = "xno" ; then 16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 16088 printf %s "checking for epoll system call... " >&6; } 16089 if test "$cross_compiling" = yes 16090 then : 16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16092 printf "%s\n" "no" >&6; } 16093 16094 else $as_nop 16095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16096 /* end confdefs.h. */ 16097 16098 #include <stdint.h> 16099 #include <sys/param.h> 16100 #include <sys/types.h> 16101 #include <sys/syscall.h> 16102 #include <sys/epoll.h> 16103 #include <unistd.h> 16104 16105 int 16106 epoll_create(int size) 16107 { 16108 return (syscall(__NR_epoll_create, size)); 16109 } 16110 16111 int 16112 main (void) 16113 { 16114 16115 int epfd; 16116 16117 epfd = epoll_create(256); 16118 return (epfd == -1 ? 1 : 0); 16119 16120 16121 ; 16122 return 0; 16123 } 16124 _ACEOF 16125 if ac_fn_c_try_run "$LINENO" 16126 then : 16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16128 printf "%s\n" "yes" >&6; } 16129 16130 printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h 16131 16132 needsignal=yes 16133 have_epoll=yes 16134 case " $LIBOBJS " in 16135 *" epoll_sub.$ac_objext "* ) ;; 16136 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext" 16137 ;; 16138 esac 16139 16140 16141 else $as_nop 16142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16143 printf "%s\n" "no" >&6; } 16144 fi 16145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16146 conftest.$ac_objext conftest.beam conftest.$ac_ext 16147 fi 16148 16149 fi 16150 fi 16151 if test "x$haveepoll" = "xyes"; then 16152 EPOLL_BACKEND_TRUE= 16153 EPOLL_BACKEND_FALSE='#' 16154 else 16155 EPOLL_BACKEND_TRUE='#' 16156 EPOLL_BACKEND_FALSE= 16157 fi 16158 16159 16160 haveeventports=no 16161 16162 for ac_func in port_create 16163 do : 16164 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create" 16165 if test "x$ac_cv_func_port_create" = xyes 16166 then : 16167 printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h 16168 haveeventports=yes 16169 fi 16170 16171 done 16172 if test "x$haveeventports" = "xyes" ; then 16173 16174 printf "%s\n" "#define HAVE_EVENT_PORTS 1" >>confdefs.h 16175 16176 needsignal=yes 16177 fi 16178 if test "x$haveeventports" = "xyes"; then 16179 EVPORT_BACKEND_TRUE= 16180 EVPORT_BACKEND_FALSE='#' 16181 else 16182 EVPORT_BACKEND_TRUE='#' 16183 EVPORT_BACKEND_FALSE= 16184 fi 16185 16186 16187 if test "x$bwin32" = "xtrue"; then 16188 needsignal=yes 16189 fi 16190 16191 if test "x$needsignal" = "xyes"; then 16192 SIGNAL_SUPPORT_TRUE= 16193 SIGNAL_SUPPORT_FALSE='#' 16194 else 16195 SIGNAL_SUPPORT_TRUE='#' 16196 SIGNAL_SUPPORT_FALSE= 16197 fi 16198 16199 16200 16201 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 16202 " 16203 if test "x$ac_cv_type_pid_t" = xyes 16204 then : 16205 16206 else $as_nop 16207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16208 /* end confdefs.h. */ 16209 16210 #if defined _WIN64 && !defined __CYGWIN__ 16211 LLP64 16212 #endif 16213 16214 int 16215 main (void) 16216 { 16217 16218 ; 16219 return 0; 16220 } 16221 16222 _ACEOF 16223 if ac_fn_c_try_compile "$LINENO" 16224 then : 16225 ac_pid_type='int' 16226 else $as_nop 16227 ac_pid_type='__int64' 16228 fi 16229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16230 16231 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 16232 16233 16234 fi 16235 16236 16237 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16238 if test "x$ac_cv_type_size_t" = xyes 16239 then : 16240 16241 else $as_nop 16242 16243 printf "%s\n" "#define size_t unsigned int" >>confdefs.h 16244 16245 fi 16246 16247 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 16248 if test "x$ac_cv_type_ssize_t" = xyes 16249 then : 16250 16251 else $as_nop 16252 16253 printf "%s\n" "#define ssize_t int" >>confdefs.h 16254 16255 fi 16256 16257 16258 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H 16259 #include <stdint.h> 16260 #elif defined(HAVE_INTTYPES_H) 16261 #include <inttypes.h> 16262 #endif 16263 #ifdef HAVE_SYS_TYPES_H 16264 #include <sys/types.h> 16265 #endif 16266 " 16267 if test "x$ac_cv_type_uint64_t" = xyes 16268 then : 16269 16270 printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h 16271 16272 16273 fi 16274 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H 16275 #include <stdint.h> 16276 #elif defined(HAVE_INTTYPES_H) 16277 #include <inttypes.h> 16278 #endif 16279 #ifdef HAVE_SYS_TYPES_H 16280 #include <sys/types.h> 16281 #endif 16282 " 16283 if test "x$ac_cv_type_uint32_t" = xyes 16284 then : 16285 16286 printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h 16287 16288 16289 fi 16290 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H 16291 #include <stdint.h> 16292 #elif defined(HAVE_INTTYPES_H) 16293 #include <inttypes.h> 16294 #endif 16295 #ifdef HAVE_SYS_TYPES_H 16296 #include <sys/types.h> 16297 #endif 16298 " 16299 if test "x$ac_cv_type_uint16_t" = xyes 16300 then : 16301 16302 printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h 16303 16304 16305 fi 16306 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H 16307 #include <stdint.h> 16308 #elif defined(HAVE_INTTYPES_H) 16309 #include <inttypes.h> 16310 #endif 16311 #ifdef HAVE_SYS_TYPES_H 16312 #include <sys/types.h> 16313 #endif 16314 " 16315 if test "x$ac_cv_type_uint8_t" = xyes 16316 then : 16317 16318 printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h 16319 16320 16321 fi 16322 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H 16323 #include <stdint.h> 16324 #elif defined(HAVE_INTTYPES_H) 16325 #include <inttypes.h> 16326 #endif 16327 #ifdef HAVE_SYS_TYPES_H 16328 #include <sys/types.h> 16329 #endif 16330 " 16331 if test "x$ac_cv_type_uintptr_t" = xyes 16332 then : 16333 16334 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 16335 16336 16337 fi 16338 16339 16340 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H 16341 #include <sys/types.h> 16342 #endif 16343 #ifdef HAVE_SYS_SELECT_H 16344 #include <sys/select.h> 16345 #endif 16346 " 16347 if test "x$ac_cv_type_fd_mask" = xyes 16348 then : 16349 16350 printf "%s\n" "#define HAVE_FD_MASK 1" >>confdefs.h 16351 16352 16353 fi 16354 16355 16356 # The cast to long int works around a bug in the HP C Compiler 16357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16359 # This bug is HP SR number 8606223364. 16360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 16361 printf %s "checking size of long long... " >&6; } 16362 if test ${ac_cv_sizeof_long_long+y} 16363 then : 16364 printf %s "(cached) " >&6 16365 else $as_nop 16366 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" 16367 then : 16368 16369 else $as_nop 16370 if test "$ac_cv_type_long_long" = yes; then 16371 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16372 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16373 as_fn_error 77 "cannot compute sizeof (long long) 16374 See \`config.log' for more details" "$LINENO" 5; } 16375 else 16376 ac_cv_sizeof_long_long=0 16377 fi 16378 fi 16379 16380 fi 16381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 16382 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } 16383 16384 16385 16386 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h 16387 16388 16389 # The cast to long int works around a bug in the HP C Compiler 16390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16392 # This bug is HP SR number 8606223364. 16393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 16394 printf %s "checking size of long... " >&6; } 16395 if test ${ac_cv_sizeof_long+y} 16396 then : 16397 printf %s "(cached) " >&6 16398 else $as_nop 16399 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" 16400 then : 16401 16402 else $as_nop 16403 if test "$ac_cv_type_long" = yes; then 16404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16405 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16406 as_fn_error 77 "cannot compute sizeof (long) 16407 See \`config.log' for more details" "$LINENO" 5; } 16408 else 16409 ac_cv_sizeof_long=0 16410 fi 16411 fi 16412 16413 fi 16414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 16415 printf "%s\n" "$ac_cv_sizeof_long" >&6; } 16416 16417 16418 16419 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h 16420 16421 16422 # The cast to long int works around a bug in the HP C Compiler 16423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16425 # This bug is HP SR number 8606223364. 16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 16427 printf %s "checking size of int... " >&6; } 16428 if test ${ac_cv_sizeof_int+y} 16429 then : 16430 printf %s "(cached) " >&6 16431 else $as_nop 16432 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" 16433 then : 16434 16435 else $as_nop 16436 if test "$ac_cv_type_int" = yes; then 16437 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16438 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16439 as_fn_error 77 "cannot compute sizeof (int) 16440 See \`config.log' for more details" "$LINENO" 5; } 16441 else 16442 ac_cv_sizeof_int=0 16443 fi 16444 fi 16445 16446 fi 16447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 16448 printf "%s\n" "$ac_cv_sizeof_int" >&6; } 16449 16450 16451 16452 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h 16453 16454 16455 # The cast to long int works around a bug in the HP C Compiler 16456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16458 # This bug is HP SR number 8606223364. 16459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 16460 printf %s "checking size of short... " >&6; } 16461 if test ${ac_cv_sizeof_short+y} 16462 then : 16463 printf %s "(cached) " >&6 16464 else $as_nop 16465 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" 16466 then : 16467 16468 else $as_nop 16469 if test "$ac_cv_type_short" = yes; then 16470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16471 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16472 as_fn_error 77 "cannot compute sizeof (short) 16473 See \`config.log' for more details" "$LINENO" 5; } 16474 else 16475 ac_cv_sizeof_short=0 16476 fi 16477 fi 16478 16479 fi 16480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 16481 printf "%s\n" "$ac_cv_sizeof_short" >&6; } 16482 16483 16484 16485 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h 16486 16487 16488 # The cast to long int works around a bug in the HP C Compiler 16489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16491 # This bug is HP SR number 8606223364. 16492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 16493 printf %s "checking size of size_t... " >&6; } 16494 if test ${ac_cv_sizeof_size_t+y} 16495 then : 16496 printf %s "(cached) " >&6 16497 else $as_nop 16498 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" 16499 then : 16500 16501 else $as_nop 16502 if test "$ac_cv_type_size_t" = yes; then 16503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16504 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16505 as_fn_error 77 "cannot compute sizeof (size_t) 16506 See \`config.log' for more details" "$LINENO" 5; } 16507 else 16508 ac_cv_sizeof_size_t=0 16509 fi 16510 fi 16511 16512 fi 16513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 16514 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } 16515 16516 16517 16518 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h 16519 16520 16521 # The cast to long int works around a bug in the HP C Compiler 16522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16524 # This bug is HP SR number 8606223364. 16525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 16526 printf %s "checking size of void *... " >&6; } 16527 if test ${ac_cv_sizeof_void_p+y} 16528 then : 16529 printf %s "(cached) " >&6 16530 else $as_nop 16531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" 16532 then : 16533 16534 else $as_nop 16535 if test "$ac_cv_type_void_p" = yes; then 16536 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16537 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16538 as_fn_error 77 "cannot compute sizeof (void *) 16539 See \`config.log' for more details" "$LINENO" 5; } 16540 else 16541 ac_cv_sizeof_void_p=0 16542 fi 16543 fi 16544 16545 fi 16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 16547 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } 16548 16549 16550 16551 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h 16552 16553 16554 # The cast to long int works around a bug in the HP C Compiler 16555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16557 # This bug is HP SR number 8606223364. 16558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 16559 printf %s "checking size of off_t... " >&6; } 16560 if test ${ac_cv_sizeof_off_t+y} 16561 then : 16562 printf %s "(cached) " >&6 16563 else $as_nop 16564 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" 16565 then : 16566 16567 else $as_nop 16568 if test "$ac_cv_type_off_t" = yes; then 16569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16570 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16571 as_fn_error 77 "cannot compute sizeof (off_t) 16572 See \`config.log' for more details" "$LINENO" 5; } 16573 else 16574 ac_cv_sizeof_off_t=0 16575 fi 16576 fi 16577 16578 fi 16579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 16580 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } 16581 16582 16583 16584 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h 16585 16586 16587 # The cast to long int works around a bug in the HP C Compiler 16588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16590 # This bug is HP SR number 8606223364. 16591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 16592 printf %s "checking size of time_t... " >&6; } 16593 if test ${ac_cv_sizeof_time_t+y} 16594 then : 16595 printf %s "(cached) " >&6 16596 else $as_nop 16597 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default" 16598 then : 16599 16600 else $as_nop 16601 if test "$ac_cv_type_time_t" = yes; then 16602 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16603 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16604 as_fn_error 77 "cannot compute sizeof (time_t) 16605 See \`config.log' for more details" "$LINENO" 5; } 16606 else 16607 ac_cv_sizeof_time_t=0 16608 fi 16609 fi 16610 16611 fi 16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 16613 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 16614 16615 16616 16617 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 16618 16619 16620 16621 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE 1 16622 #include <sys/types.h> 16623 #ifdef HAVE_NETINET_IN_H 16624 #include <netinet/in.h> 16625 #endif 16626 #ifdef HAVE_NETINET_IN6_H 16627 #include <netinet/in6.h> 16628 #endif 16629 #ifdef HAVE_SYS_UN_H 16630 #include <sys/un.h> 16631 #endif 16632 #ifdef HAVE_SYS_SOCKET_H 16633 #include <sys/socket.h> 16634 #endif 16635 #ifdef HAVE_NETDB_H 16636 #include <netdb.h> 16637 #endif 16638 #ifdef _WIN32 16639 #define WIN32_WINNT 0x400 16640 #define _WIN32_WINNT 0x400 16641 #define WIN32_LEAN_AND_MEAN 16642 #if defined(_MSC_VER) && (_MSC_VER < 1300) 16643 #include <winsock.h> 16644 #else 16645 #include <winsock2.h> 16646 #include <ws2tcpip.h> 16647 #endif 16648 #endif 16649 16650 " 16651 if test "x$ac_cv_type_struct_in6_addr" = xyes 16652 then : 16653 16654 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h 16655 16656 16657 fi 16658 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE 1 16659 #include <sys/types.h> 16660 #ifdef HAVE_NETINET_IN_H 16661 #include <netinet/in.h> 16662 #endif 16663 #ifdef HAVE_NETINET_IN6_H 16664 #include <netinet/in6.h> 16665 #endif 16666 #ifdef HAVE_SYS_UN_H 16667 #include <sys/un.h> 16668 #endif 16669 #ifdef HAVE_SYS_SOCKET_H 16670 #include <sys/socket.h> 16671 #endif 16672 #ifdef HAVE_NETDB_H 16673 #include <netdb.h> 16674 #endif 16675 #ifdef _WIN32 16676 #define WIN32_WINNT 0x400 16677 #define _WIN32_WINNT 0x400 16678 #define WIN32_LEAN_AND_MEAN 16679 #if defined(_MSC_VER) && (_MSC_VER < 1300) 16680 #include <winsock.h> 16681 #else 16682 #include <winsock2.h> 16683 #include <ws2tcpip.h> 16684 #endif 16685 #endif 16686 16687 " 16688 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes 16689 then : 16690 16691 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h 16692 16693 16694 fi 16695 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#define _GNU_SOURCE 1 16696 #include <sys/types.h> 16697 #ifdef HAVE_NETINET_IN_H 16698 #include <netinet/in.h> 16699 #endif 16700 #ifdef HAVE_NETINET_IN6_H 16701 #include <netinet/in6.h> 16702 #endif 16703 #ifdef HAVE_SYS_UN_H 16704 #include <sys/un.h> 16705 #endif 16706 #ifdef HAVE_SYS_SOCKET_H 16707 #include <sys/socket.h> 16708 #endif 16709 #ifdef HAVE_NETDB_H 16710 #include <netdb.h> 16711 #endif 16712 #ifdef _WIN32 16713 #define WIN32_WINNT 0x400 16714 #define _WIN32_WINNT 0x400 16715 #define WIN32_LEAN_AND_MEAN 16716 #if defined(_MSC_VER) && (_MSC_VER < 1300) 16717 #include <winsock.h> 16718 #else 16719 #include <winsock2.h> 16720 #include <ws2tcpip.h> 16721 #endif 16722 #endif 16723 16724 " 16725 if test "x$ac_cv_type_struct_sockaddr_un" = xyes 16726 then : 16727 16728 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h 16729 16730 16731 fi 16732 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE 1 16733 #include <sys/types.h> 16734 #ifdef HAVE_NETINET_IN_H 16735 #include <netinet/in.h> 16736 #endif 16737 #ifdef HAVE_NETINET_IN6_H 16738 #include <netinet/in6.h> 16739 #endif 16740 #ifdef HAVE_SYS_UN_H 16741 #include <sys/un.h> 16742 #endif 16743 #ifdef HAVE_SYS_SOCKET_H 16744 #include <sys/socket.h> 16745 #endif 16746 #ifdef HAVE_NETDB_H 16747 #include <netdb.h> 16748 #endif 16749 #ifdef _WIN32 16750 #define WIN32_WINNT 0x400 16751 #define _WIN32_WINNT 0x400 16752 #define WIN32_LEAN_AND_MEAN 16753 #if defined(_MSC_VER) && (_MSC_VER < 1300) 16754 #include <winsock.h> 16755 #else 16756 #include <winsock2.h> 16757 #include <ws2tcpip.h> 16758 #endif 16759 #endif 16760 16761 " 16762 if test "x$ac_cv_type_sa_family_t" = xyes 16763 then : 16764 16765 printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h 16766 16767 16768 fi 16769 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE 1 16770 #include <sys/types.h> 16771 #ifdef HAVE_NETINET_IN_H 16772 #include <netinet/in.h> 16773 #endif 16774 #ifdef HAVE_NETINET_IN6_H 16775 #include <netinet/in6.h> 16776 #endif 16777 #ifdef HAVE_SYS_UN_H 16778 #include <sys/un.h> 16779 #endif 16780 #ifdef HAVE_SYS_SOCKET_H 16781 #include <sys/socket.h> 16782 #endif 16783 #ifdef HAVE_NETDB_H 16784 #include <netdb.h> 16785 #endif 16786 #ifdef _WIN32 16787 #define WIN32_WINNT 0x400 16788 #define _WIN32_WINNT 0x400 16789 #define WIN32_LEAN_AND_MEAN 16790 #if defined(_MSC_VER) && (_MSC_VER < 1300) 16791 #include <winsock.h> 16792 #else 16793 #include <winsock2.h> 16794 #include <ws2tcpip.h> 16795 #endif 16796 #endif 16797 16798 " 16799 if test "x$ac_cv_type_struct_addrinfo" = xyes 16800 then : 16801 16802 printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 16803 16804 16805 fi 16806 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE 1 16807 #include <sys/types.h> 16808 #ifdef HAVE_NETINET_IN_H 16809 #include <netinet/in.h> 16810 #endif 16811 #ifdef HAVE_NETINET_IN6_H 16812 #include <netinet/in6.h> 16813 #endif 16814 #ifdef HAVE_SYS_UN_H 16815 #include <sys/un.h> 16816 #endif 16817 #ifdef HAVE_SYS_SOCKET_H 16818 #include <sys/socket.h> 16819 #endif 16820 #ifdef HAVE_NETDB_H 16821 #include <netdb.h> 16822 #endif 16823 #ifdef _WIN32 16824 #define WIN32_WINNT 0x400 16825 #define _WIN32_WINNT 0x400 16826 #define WIN32_LEAN_AND_MEAN 16827 #if defined(_MSC_VER) && (_MSC_VER < 1300) 16828 #include <winsock.h> 16829 #else 16830 #include <winsock2.h> 16831 #include <ws2tcpip.h> 16832 #endif 16833 #endif 16834 16835 " 16836 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 16837 then : 16838 16839 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 16840 16841 16842 fi 16843 16844 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h> 16845 #ifdef HAVE_NETINET_IN_H 16846 #include <netinet/in.h> 16847 #endif 16848 #ifdef HAVE_NETINET_IN6_H 16849 #include <netinet/in6.h> 16850 #endif 16851 #ifdef HAVE_SYS_SOCKET_H 16852 #include <sys/socket.h> 16853 #endif 16854 #ifdef _WIN32 16855 #define WIN32_WINNT 0x400 16856 #define _WIN32_WINNT 0x400 16857 #define WIN32_LEAN_AND_MEAN 16858 #if defined(_MSC_VER) && (_MSC_VER < 1300) 16859 #include <winsock.h> 16860 #else 16861 #include <winsock2.h> 16862 #include <ws2tcpip.h> 16863 #endif 16864 #endif 16865 16866 " 16867 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes 16868 then : 16869 16870 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1" >>confdefs.h 16871 16872 16873 fi 16874 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h> 16875 #ifdef HAVE_NETINET_IN_H 16876 #include <netinet/in.h> 16877 #endif 16878 #ifdef HAVE_NETINET_IN6_H 16879 #include <netinet/in6.h> 16880 #endif 16881 #ifdef HAVE_SYS_SOCKET_H 16882 #include <sys/socket.h> 16883 #endif 16884 #ifdef _WIN32 16885 #define WIN32_WINNT 0x400 16886 #define _WIN32_WINNT 0x400 16887 #define WIN32_LEAN_AND_MEAN 16888 #if defined(_MSC_VER) && (_MSC_VER < 1300) 16889 #include <winsock.h> 16890 #else 16891 #include <winsock2.h> 16892 #include <ws2tcpip.h> 16893 #endif 16894 #endif 16895 16896 " 16897 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes 16898 then : 16899 16900 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1" >>confdefs.h 16901 16902 16903 fi 16904 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> 16905 #ifdef HAVE_NETINET_IN_H 16906 #include <netinet/in.h> 16907 #endif 16908 #ifdef HAVE_NETINET_IN6_H 16909 #include <netinet/in6.h> 16910 #endif 16911 #ifdef HAVE_SYS_SOCKET_H 16912 #include <sys/socket.h> 16913 #endif 16914 #ifdef _WIN32 16915 #define WIN32_WINNT 0x400 16916 #define _WIN32_WINNT 0x400 16917 #define WIN32_LEAN_AND_MEAN 16918 #if defined(_MSC_VER) && (_MSC_VER < 1300) 16919 #include <winsock.h> 16920 #else 16921 #include <winsock2.h> 16922 #include <ws2tcpip.h> 16923 #endif 16924 #endif 16925 16926 " 16927 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 16928 then : 16929 16930 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h 16931 16932 16933 fi 16934 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h> 16935 #ifdef HAVE_NETINET_IN_H 16936 #include <netinet/in.h> 16937 #endif 16938 #ifdef HAVE_NETINET_IN6_H 16939 #include <netinet/in6.h> 16940 #endif 16941 #ifdef HAVE_SYS_SOCKET_H 16942 #include <sys/socket.h> 16943 #endif 16944 #ifdef _WIN32 16945 #define WIN32_WINNT 0x400 16946 #define _WIN32_WINNT 0x400 16947 #define WIN32_LEAN_AND_MEAN 16948 #if defined(_MSC_VER) && (_MSC_VER < 1300) 16949 #include <winsock.h> 16950 #else 16951 #include <winsock2.h> 16952 #include <ws2tcpip.h> 16953 #endif 16954 #endif 16955 16956 " 16957 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes 16958 then : 16959 16960 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h 16961 16962 16963 fi 16964 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h> 16965 #ifdef HAVE_NETINET_IN_H 16966 #include <netinet/in.h> 16967 #endif 16968 #ifdef HAVE_NETINET_IN6_H 16969 #include <netinet/in6.h> 16970 #endif 16971 #ifdef HAVE_SYS_SOCKET_H 16972 #include <sys/socket.h> 16973 #endif 16974 #ifdef _WIN32 16975 #define WIN32_WINNT 0x400 16976 #define _WIN32_WINNT 0x400 16977 #define WIN32_LEAN_AND_MEAN 16978 #if defined(_MSC_VER) && (_MSC_VER < 1300) 16979 #include <winsock.h> 16980 #else 16981 #include <winsock2.h> 16982 #include <ws2tcpip.h> 16983 #endif 16984 #endif 16985 16986 " 16987 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes 16988 then : 16989 16990 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h 16991 16992 16993 fi 16994 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h> 16995 #ifdef HAVE_NETINET_IN_H 16996 #include <netinet/in.h> 16997 #endif 16998 #ifdef HAVE_NETINET_IN6_H 16999 #include <netinet/in6.h> 17000 #endif 17001 #ifdef HAVE_SYS_SOCKET_H 17002 #include <sys/socket.h> 17003 #endif 17004 #ifdef _WIN32 17005 #define WIN32_WINNT 0x400 17006 #define _WIN32_WINNT 0x400 17007 #define WIN32_LEAN_AND_MEAN 17008 #if defined(_MSC_VER) && (_MSC_VER < 1300) 17009 #include <winsock.h> 17010 #else 17011 #include <winsock2.h> 17012 #include <ws2tcpip.h> 17013 #endif 17014 #endif 17015 17016 " 17017 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes 17018 then : 17019 17020 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1" >>confdefs.h 17021 17022 17023 fi 17024 17025 17026 ac_fn_c_check_type "$LINENO" "struct linger" "ac_cv_type_struct_linger" " 17027 #ifdef HAVE_SYS_SOCKET_H 17028 #include <sys/socket.h> 17029 #endif 17030 #ifdef _WIN32 17031 #include <winsock2.h> 17032 #endif 17033 17034 " 17035 if test "x$ac_cv_type_struct_linger" = xyes 17036 then : 17037 17038 printf "%s\n" "#define HAVE_STRUCT_LINGER 1" >>confdefs.h 17039 17040 17041 fi 17042 17043 17044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 17045 printf %s "checking for socklen_t... " >&6; } 17046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17047 /* end confdefs.h. */ 17048 17049 #include <sys/types.h> 17050 #ifdef _WIN32 17051 #include <ws2tcpip.h> 17052 #else 17053 #include <sys/socket.h> 17054 #endif 17055 17056 int 17057 main (void) 17058 { 17059 socklen_t x; 17060 17061 ; 17062 return 0; 17063 } 17064 _ACEOF 17065 if ac_fn_c_try_compile "$LINENO" 17066 then : 17067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17068 printf "%s\n" "yes" >&6; } 17069 else $as_nop 17070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17071 printf "%s\n" "no" >&6; } 17072 17073 printf "%s\n" "#define socklen_t unsigned int" >>confdefs.h 17074 17075 17076 fi 17077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17078 17079 # __func__/__FUNCTION__ is not a macros in general 17080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 17081 printf %s "checking whether our compiler supports __func__... " >&6; } 17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17083 /* end confdefs.h. */ 17084 17085 int 17086 main (void) 17087 { 17088 const char *cp = __func__; 17089 17090 ; 17091 return 0; 17092 } 17093 _ACEOF 17094 if ac_fn_c_try_compile "$LINENO" 17095 then : 17096 17097 printf "%s\n" "#define HAVE___func__ 1" >>confdefs.h 17098 17099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17100 printf "%s\n" "yes" >&6; } 17101 17102 else $as_nop 17103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17104 printf "%s\n" "no" >&6; } 17105 17106 fi 17107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 17109 printf %s "checking whether our compiler supports __FUNCTION__... " >&6; } 17110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17111 /* end confdefs.h. */ 17112 17113 int 17114 main (void) 17115 { 17116 const char *cp = __FUNCTION__; 17117 17118 ; 17119 return 0; 17120 } 17121 _ACEOF 17122 if ac_fn_c_try_compile "$LINENO" 17123 then : 17124 17125 printf "%s\n" "#define HAVE___FUNCTION__ 1" >>confdefs.h 17126 17127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17128 printf "%s\n" "yes" >&6; } 17129 17130 else $as_nop 17131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17132 printf "%s\n" "no" >&6; } 17133 17134 fi 17135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17136 17137 # check if we can compile with pthreads 17138 have_pthreads=no 17139 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then 17140 17141 17142 17143 ac_ext=c 17144 ac_cpp='$CPP $CPPFLAGS' 17145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17147 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17148 17149 acx_pthread_ok=no 17150 17151 # We used to check for pthread.h first, but this fails if pthread.h 17152 # requires special compiler flags (e.g. on True64 or Sequent). 17153 # It gets checked for in the link test anyway. 17154 17155 # First of all, check if the user has set any of the PTHREAD_LIBS, 17156 # etcetera environment variables, and if threads linking works using 17157 # them: 17158 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 17159 save_CFLAGS="$CFLAGS" 17160 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17161 save_LIBS="$LIBS" 17162 LIBS="$PTHREAD_LIBS $LIBS" 17163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 17164 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 17165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17166 /* end confdefs.h. */ 17167 17168 /* Override any GCC internal prototype to avoid an error. 17169 Use char because int might match the return type of a GCC 17170 builtin and then its argument prototype would still apply. */ 17171 char pthread_join (); 17172 int 17173 main (void) 17174 { 17175 return pthread_join (); 17176 ; 17177 return 0; 17178 } 17179 _ACEOF 17180 if ac_fn_c_try_link "$LINENO" 17181 then : 17182 acx_pthread_ok=yes 17183 fi 17184 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17185 conftest$ac_exeext conftest.$ac_ext 17186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 17187 printf "%s\n" "$acx_pthread_ok" >&6; } 17188 if test x"$acx_pthread_ok" = xno; then 17189 PTHREAD_LIBS="" 17190 PTHREAD_CFLAGS="" 17191 fi 17192 LIBS="$save_LIBS" 17193 CFLAGS="$save_CFLAGS" 17194 fi 17195 17196 # We must check for the threads library under a number of different 17197 # names; the ordering is very important because some systems 17198 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 17199 # libraries is broken (non-POSIX). 17200 17201 # Create a list of thread flags to try. Items starting with a "-" are 17202 # C compiler flags, and other items are library names, except for "none" 17203 # which indicates that we try without any flags at all, and "pthread-config" 17204 # which is a program returning the flags for the Pth emulation library. 17205 17206 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 17207 17208 # The ordering *is* (sometimes) important. Some notes on the 17209 # individual items follow: 17210 17211 # pthreads: AIX (must check this before -lpthread) 17212 # none: in case threads are in libc; should be tried before -Kthread and 17213 # other compiler flags to prevent continual compiler warnings 17214 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 17215 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 17216 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 17217 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 17218 # -pthreads: Solaris/gcc 17219 # -mthreads: Mingw32/gcc, Lynx/gcc 17220 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 17221 # doesn't hurt to check since this sometimes defines pthreads too; 17222 # also defines -D_REENTRANT) 17223 # ... -mt is also the pthreads flag for HP/aCC 17224 # pthread: Linux, etcetera 17225 # --thread-safe: KAI C++ 17226 # pthread-config: use pthread-config program (for GNU Pth library) 17227 17228 case "${host_cpu}-${host_os}" in 17229 *solaris*) 17230 17231 # On Solaris (at least, for some versions), libc contains stubbed 17232 # (non-functional) versions of the pthreads routines, so link-based 17233 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 17234 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 17235 # a function called by this macro, so we could check for that, but 17236 # who knows whether they'll stub that too in a future libc.) So, 17237 # we'll just look for -pthreads and -lpthread first: 17238 17239 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 17240 ;; 17241 esac 17242 17243 if test x"$acx_pthread_ok" = xno; then 17244 for flag in $acx_pthread_flags; do 17245 17246 case $flag in 17247 none) 17248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 17249 printf %s "checking whether pthreads work without any flags... " >&6; } 17250 ;; 17251 17252 -*) 17253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 17254 printf %s "checking whether pthreads work with $flag... " >&6; } 17255 PTHREAD_CFLAGS="$flag" 17256 ;; 17257 17258 pthread-config) 17259 # Extract the first word of "pthread-config", so it can be a program name with args. 17260 set dummy pthread-config; ac_word=$2 17261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17262 printf %s "checking for $ac_word... " >&6; } 17263 if test ${ac_cv_prog_acx_pthread_config+y} 17264 then : 17265 printf %s "(cached) " >&6 17266 else $as_nop 17267 if test -n "$acx_pthread_config"; then 17268 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 17269 else 17270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17271 for as_dir in $PATH 17272 do 17273 IFS=$as_save_IFS 17274 case $as_dir in #((( 17275 '') as_dir=./ ;; 17276 */) ;; 17277 *) as_dir=$as_dir/ ;; 17278 esac 17279 for ac_exec_ext in '' $ac_executable_extensions; do 17280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17281 ac_cv_prog_acx_pthread_config="yes" 17282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17283 break 2 17284 fi 17285 done 17286 done 17287 IFS=$as_save_IFS 17288 17289 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 17290 fi 17291 fi 17292 acx_pthread_config=$ac_cv_prog_acx_pthread_config 17293 if test -n "$acx_pthread_config"; then 17294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 17295 printf "%s\n" "$acx_pthread_config" >&6; } 17296 else 17297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17298 printf "%s\n" "no" >&6; } 17299 fi 17300 17301 17302 if test x"$acx_pthread_config" = xno; then continue; fi 17303 PTHREAD_CFLAGS="`pthread-config --cflags`" 17304 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 17305 ;; 17306 17307 *) 17308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 17309 printf %s "checking for the pthreads library -l$flag... " >&6; } 17310 PTHREAD_LIBS="-l$flag" 17311 ;; 17312 esac 17313 17314 save_LIBS="$LIBS" 17315 save_CFLAGS="$CFLAGS" 17316 LIBS="$PTHREAD_LIBS $LIBS" 17317 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17318 17319 # Check for various functions. We must include pthread.h, 17320 # since some functions may be macros. (On the Sequent, we 17321 # need a special flag -Kthread to make this header compile.) 17322 # We check for pthread_join because it is in -lpthread on IRIX 17323 # while pthread_create is in libc. We check for pthread_attr_init 17324 # due to DEC craziness with -lpthreads. We check for 17325 # pthread_cleanup_push because it is one of the few pthread 17326 # functions on Solaris that doesn't have a non-functional libc stub. 17327 # We try pthread_create on general principles. 17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17329 /* end confdefs.h. */ 17330 #include <pthread.h> 17331 int 17332 main (void) 17333 { 17334 pthread_t th; pthread_join(th, 0); 17335 pthread_attr_init(0); pthread_cleanup_push(0, 0); 17336 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 17337 ; 17338 return 0; 17339 } 17340 _ACEOF 17341 if ac_fn_c_try_link "$LINENO" 17342 then : 17343 acx_pthread_ok=yes 17344 fi 17345 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17346 conftest$ac_exeext conftest.$ac_ext 17347 17348 LIBS="$save_LIBS" 17349 CFLAGS="$save_CFLAGS" 17350 17351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 17352 printf "%s\n" "$acx_pthread_ok" >&6; } 17353 if test "x$acx_pthread_ok" = xyes; then 17354 break; 17355 fi 17356 17357 PTHREAD_LIBS="" 17358 PTHREAD_CFLAGS="" 17359 done 17360 fi 17361 17362 # Various other checks: 17363 if test "x$acx_pthread_ok" = xyes; then 17364 save_LIBS="$LIBS" 17365 LIBS="$PTHREAD_LIBS $LIBS" 17366 save_CFLAGS="$CFLAGS" 17367 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17368 17369 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 17371 printf %s "checking for joinable pthread attribute... " >&6; } 17372 attr_name=unknown 17373 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17375 /* end confdefs.h. */ 17376 #include <pthread.h> 17377 int 17378 main (void) 17379 { 17380 int attr=$attr; return attr; 17381 ; 17382 return 0; 17383 } 17384 _ACEOF 17385 if ac_fn_c_try_link "$LINENO" 17386 then : 17387 attr_name=$attr; break 17388 fi 17389 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17390 conftest$ac_exeext conftest.$ac_ext 17391 done 17392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 17393 printf "%s\n" "$attr_name" >&6; } 17394 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 17395 17396 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h 17397 17398 fi 17399 17400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 17401 printf %s "checking if more special flags are required for pthreads... " >&6; } 17402 flag=no 17403 case "${host_cpu}-${host_os}" in 17404 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 17405 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 17406 esac 17407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 17408 printf "%s\n" "${flag}" >&6; } 17409 if test "x$flag" != xno; then 17410 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 17411 fi 17412 17413 LIBS="$save_LIBS" 17414 CFLAGS="$save_CFLAGS" 17415 17416 # More AIX lossage: must compile with xlc_r or cc_r 17417 if test x"$GCC" != xyes; then 17418 for ac_prog in xlc_r cc_r 17419 do 17420 # Extract the first word of "$ac_prog", so it can be a program name with args. 17421 set dummy $ac_prog; ac_word=$2 17422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17423 printf %s "checking for $ac_word... " >&6; } 17424 if test ${ac_cv_prog_PTHREAD_CC+y} 17425 then : 17426 printf %s "(cached) " >&6 17427 else $as_nop 17428 if test -n "$PTHREAD_CC"; then 17429 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 17430 else 17431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17432 for as_dir in $PATH 17433 do 17434 IFS=$as_save_IFS 17435 case $as_dir in #((( 17436 '') as_dir=./ ;; 17437 */) ;; 17438 *) as_dir=$as_dir/ ;; 17439 esac 17440 for ac_exec_ext in '' $ac_executable_extensions; do 17441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17442 ac_cv_prog_PTHREAD_CC="$ac_prog" 17443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17444 break 2 17445 fi 17446 done 17447 done 17448 IFS=$as_save_IFS 17449 17450 fi 17451 fi 17452 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 17453 if test -n "$PTHREAD_CC"; then 17454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 17455 printf "%s\n" "$PTHREAD_CC" >&6; } 17456 else 17457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17458 printf "%s\n" "no" >&6; } 17459 fi 17460 17461 17462 test -n "$PTHREAD_CC" && break 17463 done 17464 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 17465 17466 else 17467 PTHREAD_CC=$CC 17468 fi 17469 else 17470 PTHREAD_CC="$CC" 17471 fi 17472 17473 17474 17475 17476 17477 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 17478 if test x"$acx_pthread_ok" = xyes; then 17479 17480 17481 printf "%s\n" "#define HAVE_PTHREADS 1" >>confdefs.h 17482 17483 have_pthreads=yes 17484 : 17485 else 17486 acx_pthread_ok=no 17487 17488 fi 17489 ac_ext=c 17490 ac_cpp='$CPP $CPPFLAGS' 17491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17493 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17494 17495 17496 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17497 # The cast to long int works around a bug in the HP C Compiler 17498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17500 # This bug is HP SR number 8606223364. 17501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 17502 printf %s "checking size of pthread_t... " >&6; } 17503 if test ${ac_cv_sizeof_pthread_t+y} 17504 then : 17505 printf %s "(cached) " >&6 17506 else $as_nop 17507 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default 17508 #include <pthread.h> 17509 17510 " 17511 then : 17512 17513 else $as_nop 17514 if test "$ac_cv_type_pthread_t" = yes; then 17515 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17516 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17517 as_fn_error 77 "cannot compute sizeof (pthread_t) 17518 See \`config.log' for more details" "$LINENO" 5; } 17519 else 17520 ac_cv_sizeof_pthread_t=0 17521 fi 17522 fi 17523 17524 fi 17525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 17526 printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; } 17527 17528 17529 17530 printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h 17531 17532 17533 fi 17534 if test "$enable_thread_support" != "no"; then 17535 THREADS_TRUE= 17536 THREADS_FALSE='#' 17537 else 17538 THREADS_TRUE='#' 17539 THREADS_FALSE= 17540 fi 17541 17542 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then 17543 PTHREADS_TRUE= 17544 PTHREADS_FALSE='#' 17545 else 17546 PTHREADS_TRUE='#' 17547 PTHREADS_FALSE= 17548 fi 17549 17550 17551 # check if we should compile locking into the library 17552 if test x$enable_thread_support = xno; then 17553 17554 printf "%s\n" "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h 17555 17556 fi 17557 17558 # check if we should hard-code the mm functions. 17559 if test x$enable_malloc_replacement = xno; then 17560 17561 printf "%s\n" "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h 17562 17563 fi 17564 17565 # check if we should hard-code debugging out 17566 if test x$enable_debug_mode = xno; then 17567 17568 printf "%s\n" "#define DISABLE_DEBUG_MODE 1" >>confdefs.h 17569 17570 fi 17571 17572 # check if we should enable verbose debugging 17573 if test x$enable_verbose_debug = xyes; then 17574 CFLAGS="$CFLAGS -DUSE_DEBUG" 17575 fi 17576 17577 # check if we have and should use openssl 17578 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then 17579 OPENSSL_TRUE= 17580 OPENSSL_FALSE='#' 17581 else 17582 OPENSSL_TRUE='#' 17583 OPENSSL_FALSE= 17584 fi 17585 17586 17587 # Add some more warnings which we use in development but not in the 17588 # released versions. (Some relevant gcc versions can't handle these.) 17589 if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then 17590 17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17592 /* end confdefs.h. */ 17593 17594 int 17595 main (void) 17596 { 17597 17598 #if !defined(__GNUC__) || (__GNUC__ < 4) 17599 #error 17600 #endif 17601 ; 17602 return 0; 17603 } 17604 _ACEOF 17605 if ac_fn_c_try_compile "$LINENO" 17606 then : 17607 have_gcc4=yes 17608 else $as_nop 17609 have_gcc4=no 17610 fi 17611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17612 17613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17614 /* end confdefs.h. */ 17615 17616 int 17617 main (void) 17618 { 17619 17620 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2) 17621 #error 17622 #endif 17623 ; 17624 return 0; 17625 } 17626 _ACEOF 17627 if ac_fn_c_try_compile "$LINENO" 17628 then : 17629 have_gcc42=yes 17630 else $as_nop 17631 have_gcc42=no 17632 fi 17633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17634 17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17636 /* end confdefs.h. */ 17637 17638 int 17639 main (void) 17640 { 17641 17642 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) 17643 #error 17644 #endif 17645 ; 17646 return 0; 17647 } 17648 _ACEOF 17649 if ac_fn_c_try_compile "$LINENO" 17650 then : 17651 have_gcc45=yes 17652 else $as_nop 17653 have_gcc45=no 17654 fi 17655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17656 17657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17658 /* end confdefs.h. */ 17659 17660 int 17661 main (void) 17662 { 17663 17664 #if !defined(__clang__) 17665 #error 17666 #endif 17667 ; 17668 return 0; 17669 } 17670 _ACEOF 17671 if ac_fn_c_try_compile "$LINENO" 17672 then : 17673 have_clang=yes 17674 else $as_nop 17675 have_clang=no 17676 fi 17677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17678 17679 # -W is the same as -Wextra 17680 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wmissing-declarations -Wnested-externs -Wbad-function-cast" 17681 if test x$enable_gcc_warnings = xyes; then 17682 CFLAGS="$CFLAGS -Werror" 17683 fi 17684 17685 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing" 17686 17687 if test x$have_gcc4 = xyes ; then 17688 # These warnings break gcc 3.3.5 and work on gcc 4.0.2 17689 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement" 17690 #CFLAGS="$CFLAGS -Wold-style-definition" 17691 fi 17692 17693 if test x$have_gcc42 = xyes ; then 17694 # These warnings break gcc 4.0.2 and work on gcc 4.2 17695 CFLAGS="$CFLAGS -Waddress" 17696 fi 17697 17698 if test x$have_gcc42 = xyes && test x$have_clang = xno; then 17699 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2 17700 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init" 17701 fi 17702 17703 if test x$have_gcc45 = xyes ; then 17704 # These warnings work on gcc 4.5 17705 CFLAGS="$CFLAGS -Wlogical-op" 17706 fi 17707 17708 if test x$have_clang = xyes; then 17709 # Disable the unused-function warnings, because these trigger 17710 # for minheap-internal.h related code. 17711 CFLAGS="$CFLAGS -Wno-unused-function" 17712 17713 # clang on macosx emits warnings for each directory specified which 17714 # isn't "used" generating a lot of build noise (typically 3 warnings 17715 # per file 17716 case "$host_os" in 17717 darwin*) 17718 CFLAGS="$CFLAGS -Qunused-arguments" 17719 ;; 17720 esac 17721 fi 17722 17723 ##This will break the world on some 64-bit architectures 17724 # CFLAGS="$CFLAGS -Winline" 17725 17726 fi 17727 17728 LIBEVENT_GC_SECTIONS= 17729 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then 17730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 17731 printf %s "checking if linker supports omitting unused code and data... " >&6; } 17732 if test ${libevent_cv_gc_sections_runs+y} 17733 then : 17734 printf %s "(cached) " >&6 17735 else $as_nop 17736 17737 origCFLAGS="$CFLAGS" 17738 CFLAGS="$CFLAGS -Wl,--gc-sections" 17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17740 /* end confdefs.h. */ 17741 17742 #include <stdlib.h> 17743 #include <stdio.h> 17744 17745 int 17746 main (void) 17747 { 17748 17749 FILE * fpC; 17750 char buf[32]; 17751 size_t cch; 17752 int read_success_once; 17753 17754 fpC = fopen("conftest.c", "r"); 17755 if (NULL == fpC) 17756 exit(1); 17757 do { 17758 cch = fread(buf, sizeof(buf), 1, fpC); 17759 read_success_once |= (0 != cch); 17760 } while (0 != cch); 17761 if (!read_success_once) 17762 exit(2); 17763 if (!feof(fpC)) 17764 exit(3); 17765 if (0 != fclose(fpC)) 17766 exit(4); 17767 17768 exit(EXIT_SUCCESS); 17769 17770 17771 ; 17772 return 0; 17773 } 17774 _ACEOF 17775 if ac_fn_c_try_link "$LINENO" 17776 then : 17777 17778 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 17779 libevent_cv_gc_sections_runs=no 17780 else 17781 libevent_cv_gc_sections_runs=no 17782 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes 17783 fi 17784 17785 else $as_nop 17786 libevent_cv_gc_sections_runs=no 17787 17788 fi 17789 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17790 conftest$ac_exeext conftest.$ac_ext 17791 CFLAGS="$origCFLAGS" 17792 { origCFLAGS=; unset origCFLAGS;} 17793 17794 17795 fi 17796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5 17797 printf "%s\n" "$libevent_cv_gc_sections_runs" >&6; } 17798 case "$libevent_cv_gc_sections_runs" in 17799 yes) 17800 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS" 17801 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections" 17802 ;; 17803 esac 17804 fi 17805 17806 17807 if test "$enable_libevent_install" = "yes"; then 17808 INSTALL_LIBEVENT_TRUE= 17809 INSTALL_LIBEVENT_FALSE='#' 17810 else 17811 INSTALL_LIBEVENT_TRUE='#' 17812 INSTALL_LIBEVENT_FALSE= 17813 fi 17814 17815 17816 17817 17818 17819 17820 # Doxygen support 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 # Files: 17832 DX_PROJECT=libevent 17833 17834 DX_CONFIG='${top_srcdir}/Doxyfile' 17835 17836 DX_DOCDIR='doxygen' 17837 17838 17839 # Environment variables used inside doxygen.cfg: 17840 DX_ENV="$DX_ENV SRCDIR='$srcdir'" 17841 SRCDIR=$srcdir 17842 17843 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'" 17844 PROJECT=$DX_PROJECT 17845 17846 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'" 17847 17848 17849 # Doxygen itself: 17850 17851 17852 17853 # Check whether --enable-doxygen-doc was given. 17854 if test ${enable_doxygen_doc+y} 17855 then : 17856 enableval=$enable_doxygen_doc; 17857 case "$enableval" in 17858 #( 17859 y|Y|yes|Yes|YES) 17860 DX_FLAG_doc=1 17861 17862 17863 ;; #( 17864 n|N|no|No|NO) 17865 DX_FLAG_doc=0 17866 17867 ;; #( 17868 *) 17869 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5 17870 ;; 17871 esac 17872 17873 else $as_nop 17874 17875 DX_FLAG_doc=0 17876 17877 17878 17879 fi 17880 17881 if test "$DX_FLAG_doc" = 1; then 17882 17883 if test -n "$ac_tool_prefix"; then 17884 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args. 17885 set dummy ${ac_tool_prefix}doxygen; ac_word=$2 17886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17887 printf %s "checking for $ac_word... " >&6; } 17888 if test ${ac_cv_path_DX_DOXYGEN+y} 17889 then : 17890 printf %s "(cached) " >&6 17891 else $as_nop 17892 case $DX_DOXYGEN in 17893 [\\/]* | ?:[\\/]*) 17894 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path. 17895 ;; 17896 *) 17897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17898 for as_dir in $PATH 17899 do 17900 IFS=$as_save_IFS 17901 case $as_dir in #((( 17902 '') as_dir=./ ;; 17903 */) ;; 17904 *) as_dir=$as_dir/ ;; 17905 esac 17906 for ac_exec_ext in '' $ac_executable_extensions; do 17907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17908 ac_cv_path_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 17909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17910 break 2 17911 fi 17912 done 17913 done 17914 IFS=$as_save_IFS 17915 17916 ;; 17917 esac 17918 fi 17919 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN 17920 if test -n "$DX_DOXYGEN"; then 17921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5 17922 printf "%s\n" "$DX_DOXYGEN" >&6; } 17923 else 17924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17925 printf "%s\n" "no" >&6; } 17926 fi 17927 17928 17929 fi 17930 if test -z "$ac_cv_path_DX_DOXYGEN"; then 17931 ac_pt_DX_DOXYGEN=$DX_DOXYGEN 17932 # Extract the first word of "doxygen", so it can be a program name with args. 17933 set dummy doxygen; ac_word=$2 17934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17935 printf %s "checking for $ac_word... " >&6; } 17936 if test ${ac_cv_path_ac_pt_DX_DOXYGEN+y} 17937 then : 17938 printf %s "(cached) " >&6 17939 else $as_nop 17940 case $ac_pt_DX_DOXYGEN in 17941 [\\/]* | ?:[\\/]*) 17942 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path. 17943 ;; 17944 *) 17945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17946 for as_dir in $PATH 17947 do 17948 IFS=$as_save_IFS 17949 case $as_dir in #((( 17950 '') as_dir=./ ;; 17951 */) ;; 17952 *) as_dir=$as_dir/ ;; 17953 esac 17954 for ac_exec_ext in '' $ac_executable_extensions; do 17955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17956 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 17957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17958 break 2 17959 fi 17960 done 17961 done 17962 IFS=$as_save_IFS 17963 17964 ;; 17965 esac 17966 fi 17967 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN 17968 if test -n "$ac_pt_DX_DOXYGEN"; then 17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5 17970 printf "%s\n" "$ac_pt_DX_DOXYGEN" >&6; } 17971 else 17972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17973 printf "%s\n" "no" >&6; } 17974 fi 17975 17976 if test "x$ac_pt_DX_DOXYGEN" = x; then 17977 DX_DOXYGEN="" 17978 else 17979 case $cross_compiling:$ac_tool_warned in 17980 yes:) 17981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17982 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17983 ac_tool_warned=yes ;; 17984 esac 17985 DX_DOXYGEN=$ac_pt_DX_DOXYGEN 17986 fi 17987 else 17988 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN" 17989 fi 17990 17991 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then 17992 if test "xdoxygen" = "xdoxygen"; then 17993 as_fn_error $? "doxygen not found - will not generate any doxygen documentation" "$LINENO" 5 17994 else 17995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5 17996 printf "%s\n" "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;} 17997 fi 17998 DX_FLAG_doc=0 17999 18000 fi 18001 18002 18003 if test -n "$ac_tool_prefix"; then 18004 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args. 18005 set dummy ${ac_tool_prefix}perl; ac_word=$2 18006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18007 printf %s "checking for $ac_word... " >&6; } 18008 if test ${ac_cv_path_DX_PERL+y} 18009 then : 18010 printf %s "(cached) " >&6 18011 else $as_nop 18012 case $DX_PERL in 18013 [\\/]* | ?:[\\/]*) 18014 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path. 18015 ;; 18016 *) 18017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18018 for as_dir in $PATH 18019 do 18020 IFS=$as_save_IFS 18021 case $as_dir in #((( 18022 '') as_dir=./ ;; 18023 */) ;; 18024 *) as_dir=$as_dir/ ;; 18025 esac 18026 for ac_exec_ext in '' $ac_executable_extensions; do 18027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18028 ac_cv_path_DX_PERL="$as_dir$ac_word$ac_exec_ext" 18029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18030 break 2 18031 fi 18032 done 18033 done 18034 IFS=$as_save_IFS 18035 18036 ;; 18037 esac 18038 fi 18039 DX_PERL=$ac_cv_path_DX_PERL 18040 if test -n "$DX_PERL"; then 18041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5 18042 printf "%s\n" "$DX_PERL" >&6; } 18043 else 18044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18045 printf "%s\n" "no" >&6; } 18046 fi 18047 18048 18049 fi 18050 if test -z "$ac_cv_path_DX_PERL"; then 18051 ac_pt_DX_PERL=$DX_PERL 18052 # Extract the first word of "perl", so it can be a program name with args. 18053 set dummy perl; ac_word=$2 18054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18055 printf %s "checking for $ac_word... " >&6; } 18056 if test ${ac_cv_path_ac_pt_DX_PERL+y} 18057 then : 18058 printf %s "(cached) " >&6 18059 else $as_nop 18060 case $ac_pt_DX_PERL in 18061 [\\/]* | ?:[\\/]*) 18062 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path. 18063 ;; 18064 *) 18065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18066 for as_dir in $PATH 18067 do 18068 IFS=$as_save_IFS 18069 case $as_dir in #((( 18070 '') as_dir=./ ;; 18071 */) ;; 18072 *) as_dir=$as_dir/ ;; 18073 esac 18074 for ac_exec_ext in '' $ac_executable_extensions; do 18075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18076 ac_cv_path_ac_pt_DX_PERL="$as_dir$ac_word$ac_exec_ext" 18077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18078 break 2 18079 fi 18080 done 18081 done 18082 IFS=$as_save_IFS 18083 18084 ;; 18085 esac 18086 fi 18087 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL 18088 if test -n "$ac_pt_DX_PERL"; then 18089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5 18090 printf "%s\n" "$ac_pt_DX_PERL" >&6; } 18091 else 18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18093 printf "%s\n" "no" >&6; } 18094 fi 18095 18096 if test "x$ac_pt_DX_PERL" = x; then 18097 DX_PERL="" 18098 else 18099 case $cross_compiling:$ac_tool_warned in 18100 yes:) 18101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18102 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18103 ac_tool_warned=yes ;; 18104 esac 18105 DX_PERL=$ac_pt_DX_PERL 18106 fi 18107 else 18108 DX_PERL="$ac_cv_path_DX_PERL" 18109 fi 18110 18111 if test "$DX_FLAG_doc$DX_PERL" = 1; then 18112 if test "xperl" = "xdoxygen"; then 18113 as_fn_error $? "perl not found - will not generate any doxygen documentation" "$LINENO" 5 18114 else 18115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5 18116 printf "%s\n" "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;} 18117 fi 18118 DX_FLAG_doc=0 18119 18120 fi 18121 18122 : 18123 fi 18124 if test "$DX_FLAG_doc" = 1; then 18125 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'" 18126 PERL_PATH=$DX_PERL 18127 18128 : 18129 else 18130 18131 : 18132 fi 18133 18134 18135 # Dot for graphics: 18136 18137 18138 18139 # Check whether --enable-doxygen-dot was given. 18140 if test ${enable_doxygen_dot+y} 18141 then : 18142 enableval=$enable_doxygen_dot; 18143 case "$enableval" in 18144 #( 18145 y|Y|yes|Yes|YES) 18146 DX_FLAG_dot=1 18147 18148 18149 test "$DX_FLAG_doc" = "1" \ 18150 || as_fn_error $? "doxygen-dot requires doxygen-doc" "$LINENO" 5 18151 18152 ;; #( 18153 n|N|no|No|NO) 18154 DX_FLAG_dot=0 18155 18156 ;; #( 18157 *) 18158 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5 18159 ;; 18160 esac 18161 18162 else $as_nop 18163 18164 DX_FLAG_dot=0 18165 18166 18167 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0 18168 18169 18170 18171 fi 18172 18173 if test "$DX_FLAG_dot" = 1; then 18174 18175 if test -n "$ac_tool_prefix"; then 18176 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args. 18177 set dummy ${ac_tool_prefix}dot; ac_word=$2 18178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18179 printf %s "checking for $ac_word... " >&6; } 18180 if test ${ac_cv_path_DX_DOT+y} 18181 then : 18182 printf %s "(cached) " >&6 18183 else $as_nop 18184 case $DX_DOT in 18185 [\\/]* | ?:[\\/]*) 18186 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path. 18187 ;; 18188 *) 18189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18190 for as_dir in $PATH 18191 do 18192 IFS=$as_save_IFS 18193 case $as_dir in #((( 18194 '') as_dir=./ ;; 18195 */) ;; 18196 *) as_dir=$as_dir/ ;; 18197 esac 18198 for ac_exec_ext in '' $ac_executable_extensions; do 18199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18200 ac_cv_path_DX_DOT="$as_dir$ac_word$ac_exec_ext" 18201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18202 break 2 18203 fi 18204 done 18205 done 18206 IFS=$as_save_IFS 18207 18208 ;; 18209 esac 18210 fi 18211 DX_DOT=$ac_cv_path_DX_DOT 18212 if test -n "$DX_DOT"; then 18213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5 18214 printf "%s\n" "$DX_DOT" >&6; } 18215 else 18216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18217 printf "%s\n" "no" >&6; } 18218 fi 18219 18220 18221 fi 18222 if test -z "$ac_cv_path_DX_DOT"; then 18223 ac_pt_DX_DOT=$DX_DOT 18224 # Extract the first word of "dot", so it can be a program name with args. 18225 set dummy dot; ac_word=$2 18226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18227 printf %s "checking for $ac_word... " >&6; } 18228 if test ${ac_cv_path_ac_pt_DX_DOT+y} 18229 then : 18230 printf %s "(cached) " >&6 18231 else $as_nop 18232 case $ac_pt_DX_DOT in 18233 [\\/]* | ?:[\\/]*) 18234 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path. 18235 ;; 18236 *) 18237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18238 for as_dir in $PATH 18239 do 18240 IFS=$as_save_IFS 18241 case $as_dir in #((( 18242 '') as_dir=./ ;; 18243 */) ;; 18244 *) as_dir=$as_dir/ ;; 18245 esac 18246 for ac_exec_ext in '' $ac_executable_extensions; do 18247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18248 ac_cv_path_ac_pt_DX_DOT="$as_dir$ac_word$ac_exec_ext" 18249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18250 break 2 18251 fi 18252 done 18253 done 18254 IFS=$as_save_IFS 18255 18256 ;; 18257 esac 18258 fi 18259 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT 18260 if test -n "$ac_pt_DX_DOT"; then 18261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5 18262 printf "%s\n" "$ac_pt_DX_DOT" >&6; } 18263 else 18264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18265 printf "%s\n" "no" >&6; } 18266 fi 18267 18268 if test "x$ac_pt_DX_DOT" = x; then 18269 DX_DOT="" 18270 else 18271 case $cross_compiling:$ac_tool_warned in 18272 yes:) 18273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18274 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18275 ac_tool_warned=yes ;; 18276 esac 18277 DX_DOT=$ac_pt_DX_DOT 18278 fi 18279 else 18280 DX_DOT="$ac_cv_path_DX_DOT" 18281 fi 18282 18283 if test "$DX_FLAG_dot$DX_DOT" = 1; then 18284 if test "xdot" = "xdoxygen"; then 18285 as_fn_error $? "dot not found - will not generate graphics for doxygen documentation" "$LINENO" 5 18286 else 18287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5 18288 printf "%s\n" "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;} 18289 fi 18290 DX_FLAG_dot=0 18291 18292 fi 18293 18294 : 18295 fi 18296 if test "$DX_FLAG_dot" = 1; then 18297 DX_ENV="$DX_ENV HAVE_DOT='YES'" 18298 HAVE_DOT=YES 18299 18300 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'" 18301 DOT_PATH=`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'` 18302 18303 : 18304 else 18305 DX_ENV="$DX_ENV HAVE_DOT='NO'" 18306 HAVE_DOT=NO 18307 18308 : 18309 fi 18310 18311 18312 # Man pages generation: 18313 18314 18315 18316 # Check whether --enable-doxygen-man was given. 18317 if test ${enable_doxygen_man+y} 18318 then : 18319 enableval=$enable_doxygen_man; 18320 case "$enableval" in 18321 #( 18322 y|Y|yes|Yes|YES) 18323 DX_FLAG_man=1 18324 18325 18326 test "$DX_FLAG_doc" = "1" \ 18327 || as_fn_error $? "doxygen-man requires doxygen-doc" "$LINENO" 5 18328 18329 ;; #( 18330 n|N|no|No|NO) 18331 DX_FLAG_man=0 18332 18333 ;; #( 18334 *) 18335 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5 18336 ;; 18337 esac 18338 18339 else $as_nop 18340 18341 DX_FLAG_man=0 18342 18343 18344 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0 18345 18346 18347 18348 fi 18349 18350 if test "$DX_FLAG_man" = 1; then 18351 18352 : 18353 fi 18354 if test "$DX_FLAG_man" = 1; then 18355 DX_ENV="$DX_ENV GENERATE_MAN='YES'" 18356 GENERATE_MAN=YES 18357 18358 : 18359 else 18360 DX_ENV="$DX_ENV GENERATE_MAN='NO'" 18361 GENERATE_MAN=NO 18362 18363 : 18364 fi 18365 18366 18367 # RTF file generation: 18368 18369 18370 18371 # Check whether --enable-doxygen-rtf was given. 18372 if test ${enable_doxygen_rtf+y} 18373 then : 18374 enableval=$enable_doxygen_rtf; 18375 case "$enableval" in 18376 #( 18377 y|Y|yes|Yes|YES) 18378 DX_FLAG_rtf=1 18379 18380 18381 test "$DX_FLAG_doc" = "1" \ 18382 || as_fn_error $? "doxygen-rtf requires doxygen-doc" "$LINENO" 5 18383 18384 ;; #( 18385 n|N|no|No|NO) 18386 DX_FLAG_rtf=0 18387 18388 ;; #( 18389 *) 18390 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5 18391 ;; 18392 esac 18393 18394 else $as_nop 18395 18396 DX_FLAG_rtf=0 18397 18398 18399 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0 18400 18401 18402 18403 fi 18404 18405 if test "$DX_FLAG_rtf" = 1; then 18406 18407 : 18408 fi 18409 if test "$DX_FLAG_rtf" = 1; then 18410 DX_ENV="$DX_ENV GENERATE_RTF='YES'" 18411 GENERATE_RTF=YES 18412 18413 : 18414 else 18415 DX_ENV="$DX_ENV GENERATE_RTF='NO'" 18416 GENERATE_RTF=NO 18417 18418 : 18419 fi 18420 18421 18422 # XML file generation: 18423 18424 18425 18426 # Check whether --enable-doxygen-xml was given. 18427 if test ${enable_doxygen_xml+y} 18428 then : 18429 enableval=$enable_doxygen_xml; 18430 case "$enableval" in 18431 #( 18432 y|Y|yes|Yes|YES) 18433 DX_FLAG_xml=1 18434 18435 18436 test "$DX_FLAG_doc" = "1" \ 18437 || as_fn_error $? "doxygen-xml requires doxygen-doc" "$LINENO" 5 18438 18439 ;; #( 18440 n|N|no|No|NO) 18441 DX_FLAG_xml=0 18442 18443 ;; #( 18444 *) 18445 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5 18446 ;; 18447 esac 18448 18449 else $as_nop 18450 18451 DX_FLAG_xml=0 18452 18453 18454 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0 18455 18456 18457 18458 fi 18459 18460 if test "$DX_FLAG_xml" = 1; then 18461 18462 : 18463 fi 18464 if test "$DX_FLAG_xml" = 1; then 18465 DX_ENV="$DX_ENV GENERATE_XML='YES'" 18466 GENERATE_XML=YES 18467 18468 : 18469 else 18470 DX_ENV="$DX_ENV GENERATE_XML='NO'" 18471 GENERATE_XML=NO 18472 18473 : 18474 fi 18475 18476 18477 # (Compressed) HTML help generation: 18478 18479 18480 18481 # Check whether --enable-doxygen-chm was given. 18482 if test ${enable_doxygen_chm+y} 18483 then : 18484 enableval=$enable_doxygen_chm; 18485 case "$enableval" in 18486 #( 18487 y|Y|yes|Yes|YES) 18488 DX_FLAG_chm=1 18489 18490 18491 test "$DX_FLAG_doc" = "1" \ 18492 || as_fn_error $? "doxygen-chm requires doxygen-doc" "$LINENO" 5 18493 18494 ;; #( 18495 n|N|no|No|NO) 18496 DX_FLAG_chm=0 18497 18498 ;; #( 18499 *) 18500 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5 18501 ;; 18502 esac 18503 18504 else $as_nop 18505 18506 DX_FLAG_chm=0 18507 18508 18509 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0 18510 18511 18512 18513 fi 18514 18515 if test "$DX_FLAG_chm" = 1; then 18516 18517 if test -n "$ac_tool_prefix"; then 18518 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args. 18519 set dummy ${ac_tool_prefix}hhc; ac_word=$2 18520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18521 printf %s "checking for $ac_word... " >&6; } 18522 if test ${ac_cv_path_DX_HHC+y} 18523 then : 18524 printf %s "(cached) " >&6 18525 else $as_nop 18526 case $DX_HHC in 18527 [\\/]* | ?:[\\/]*) 18528 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path. 18529 ;; 18530 *) 18531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18532 for as_dir in $PATH 18533 do 18534 IFS=$as_save_IFS 18535 case $as_dir in #((( 18536 '') as_dir=./ ;; 18537 */) ;; 18538 *) as_dir=$as_dir/ ;; 18539 esac 18540 for ac_exec_ext in '' $ac_executable_extensions; do 18541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18542 ac_cv_path_DX_HHC="$as_dir$ac_word$ac_exec_ext" 18543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18544 break 2 18545 fi 18546 done 18547 done 18548 IFS=$as_save_IFS 18549 18550 ;; 18551 esac 18552 fi 18553 DX_HHC=$ac_cv_path_DX_HHC 18554 if test -n "$DX_HHC"; then 18555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5 18556 printf "%s\n" "$DX_HHC" >&6; } 18557 else 18558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18559 printf "%s\n" "no" >&6; } 18560 fi 18561 18562 18563 fi 18564 if test -z "$ac_cv_path_DX_HHC"; then 18565 ac_pt_DX_HHC=$DX_HHC 18566 # Extract the first word of "hhc", so it can be a program name with args. 18567 set dummy hhc; ac_word=$2 18568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18569 printf %s "checking for $ac_word... " >&6; } 18570 if test ${ac_cv_path_ac_pt_DX_HHC+y} 18571 then : 18572 printf %s "(cached) " >&6 18573 else $as_nop 18574 case $ac_pt_DX_HHC in 18575 [\\/]* | ?:[\\/]*) 18576 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path. 18577 ;; 18578 *) 18579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18580 for as_dir in $PATH 18581 do 18582 IFS=$as_save_IFS 18583 case $as_dir in #((( 18584 '') as_dir=./ ;; 18585 */) ;; 18586 *) as_dir=$as_dir/ ;; 18587 esac 18588 for ac_exec_ext in '' $ac_executable_extensions; do 18589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18590 ac_cv_path_ac_pt_DX_HHC="$as_dir$ac_word$ac_exec_ext" 18591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18592 break 2 18593 fi 18594 done 18595 done 18596 IFS=$as_save_IFS 18597 18598 ;; 18599 esac 18600 fi 18601 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC 18602 if test -n "$ac_pt_DX_HHC"; then 18603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5 18604 printf "%s\n" "$ac_pt_DX_HHC" >&6; } 18605 else 18606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18607 printf "%s\n" "no" >&6; } 18608 fi 18609 18610 if test "x$ac_pt_DX_HHC" = x; then 18611 DX_HHC="" 18612 else 18613 case $cross_compiling:$ac_tool_warned in 18614 yes:) 18615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18616 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18617 ac_tool_warned=yes ;; 18618 esac 18619 DX_HHC=$ac_pt_DX_HHC 18620 fi 18621 else 18622 DX_HHC="$ac_cv_path_DX_HHC" 18623 fi 18624 18625 if test "$DX_FLAG_chm$DX_HHC" = 1; then 18626 if test "xhhc" = "xdoxygen"; then 18627 as_fn_error $? "hhc not found - will not generate doxygen compressed HTML help documentation" "$LINENO" 5 18628 else 18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5 18630 printf "%s\n" "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;} 18631 fi 18632 DX_FLAG_chm=0 18633 18634 fi 18635 18636 : 18637 fi 18638 if test "$DX_FLAG_chm" = 1; then 18639 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'" 18640 HHC_PATH=$DX_HHC 18641 18642 DX_ENV="$DX_ENV GENERATE_HTML='YES'" 18643 GENERATE_HTML=YES 18644 18645 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'" 18646 GENERATE_HTMLHELP=YES 18647 18648 : 18649 else 18650 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'" 18651 GENERATE_HTMLHELP=NO 18652 18653 : 18654 fi 18655 18656 18657 # Separate CHI file generation. 18658 18659 18660 18661 # Check whether --enable-doxygen-chi was given. 18662 if test ${enable_doxygen_chi+y} 18663 then : 18664 enableval=$enable_doxygen_chi; 18665 case "$enableval" in 18666 #( 18667 y|Y|yes|Yes|YES) 18668 DX_FLAG_chi=1 18669 18670 18671 test "$DX_FLAG_chm" = "1" \ 18672 || as_fn_error $? "doxygen-chi requires doxygen-chm" "$LINENO" 5 18673 18674 ;; #( 18675 n|N|no|No|NO) 18676 DX_FLAG_chi=0 18677 18678 ;; #( 18679 *) 18680 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5 18681 ;; 18682 esac 18683 18684 else $as_nop 18685 18686 DX_FLAG_chi=0 18687 18688 18689 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0 18690 18691 18692 18693 fi 18694 18695 if test "$DX_FLAG_chi" = 1; then 18696 18697 : 18698 fi 18699 if test "$DX_FLAG_chi" = 1; then 18700 DX_ENV="$DX_ENV GENERATE_CHI='YES'" 18701 GENERATE_CHI=YES 18702 18703 : 18704 else 18705 DX_ENV="$DX_ENV GENERATE_CHI='NO'" 18706 GENERATE_CHI=NO 18707 18708 : 18709 fi 18710 18711 18712 # Plain HTML pages generation: 18713 18714 18715 18716 # Check whether --enable-doxygen-html was given. 18717 if test ${enable_doxygen_html+y} 18718 then : 18719 enableval=$enable_doxygen_html; 18720 case "$enableval" in 18721 #( 18722 y|Y|yes|Yes|YES) 18723 DX_FLAG_html=1 18724 18725 18726 test "$DX_FLAG_doc" = "1" \ 18727 || as_fn_error $? "doxygen-html requires doxygen-doc" "$LINENO" 5 18728 18729 test "$DX_FLAG_chm" = "0" \ 18730 || as_fn_error $? "doxygen-html contradicts doxygen-chm" "$LINENO" 5 18731 18732 ;; #( 18733 n|N|no|No|NO) 18734 DX_FLAG_html=0 18735 18736 ;; #( 18737 *) 18738 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5 18739 ;; 18740 esac 18741 18742 else $as_nop 18743 18744 DX_FLAG_html=1 18745 18746 18747 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0 18748 18749 18750 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0 18751 18752 18753 18754 fi 18755 18756 if test "$DX_FLAG_html" = 1; then 18757 18758 : 18759 fi 18760 if test "$DX_FLAG_html" = 1; then 18761 DX_ENV="$DX_ENV GENERATE_HTML='YES'" 18762 GENERATE_HTML=YES 18763 18764 : 18765 else 18766 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'" 18767 GENERATE_HTML=NO 18768 18769 : 18770 fi 18771 18772 18773 # PostScript file generation: 18774 18775 18776 18777 # Check whether --enable-doxygen-ps was given. 18778 if test ${enable_doxygen_ps+y} 18779 then : 18780 enableval=$enable_doxygen_ps; 18781 case "$enableval" in 18782 #( 18783 y|Y|yes|Yes|YES) 18784 DX_FLAG_ps=1 18785 18786 18787 test "$DX_FLAG_doc" = "1" \ 18788 || as_fn_error $? "doxygen-ps requires doxygen-doc" "$LINENO" 5 18789 18790 ;; #( 18791 n|N|no|No|NO) 18792 DX_FLAG_ps=0 18793 18794 ;; #( 18795 *) 18796 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5 18797 ;; 18798 esac 18799 18800 else $as_nop 18801 18802 DX_FLAG_ps=0 18803 18804 18805 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0 18806 18807 18808 18809 fi 18810 18811 if test "$DX_FLAG_ps" = 1; then 18812 18813 if test -n "$ac_tool_prefix"; then 18814 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args. 18815 set dummy ${ac_tool_prefix}latex; ac_word=$2 18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18817 printf %s "checking for $ac_word... " >&6; } 18818 if test ${ac_cv_path_DX_LATEX+y} 18819 then : 18820 printf %s "(cached) " >&6 18821 else $as_nop 18822 case $DX_LATEX in 18823 [\\/]* | ?:[\\/]*) 18824 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path. 18825 ;; 18826 *) 18827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18828 for as_dir in $PATH 18829 do 18830 IFS=$as_save_IFS 18831 case $as_dir in #((( 18832 '') as_dir=./ ;; 18833 */) ;; 18834 *) as_dir=$as_dir/ ;; 18835 esac 18836 for ac_exec_ext in '' $ac_executable_extensions; do 18837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18838 ac_cv_path_DX_LATEX="$as_dir$ac_word$ac_exec_ext" 18839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18840 break 2 18841 fi 18842 done 18843 done 18844 IFS=$as_save_IFS 18845 18846 ;; 18847 esac 18848 fi 18849 DX_LATEX=$ac_cv_path_DX_LATEX 18850 if test -n "$DX_LATEX"; then 18851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5 18852 printf "%s\n" "$DX_LATEX" >&6; } 18853 else 18854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18855 printf "%s\n" "no" >&6; } 18856 fi 18857 18858 18859 fi 18860 if test -z "$ac_cv_path_DX_LATEX"; then 18861 ac_pt_DX_LATEX=$DX_LATEX 18862 # Extract the first word of "latex", so it can be a program name with args. 18863 set dummy latex; ac_word=$2 18864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18865 printf %s "checking for $ac_word... " >&6; } 18866 if test ${ac_cv_path_ac_pt_DX_LATEX+y} 18867 then : 18868 printf %s "(cached) " >&6 18869 else $as_nop 18870 case $ac_pt_DX_LATEX in 18871 [\\/]* | ?:[\\/]*) 18872 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path. 18873 ;; 18874 *) 18875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18876 for as_dir in $PATH 18877 do 18878 IFS=$as_save_IFS 18879 case $as_dir in #((( 18880 '') as_dir=./ ;; 18881 */) ;; 18882 *) as_dir=$as_dir/ ;; 18883 esac 18884 for ac_exec_ext in '' $ac_executable_extensions; do 18885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18886 ac_cv_path_ac_pt_DX_LATEX="$as_dir$ac_word$ac_exec_ext" 18887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18888 break 2 18889 fi 18890 done 18891 done 18892 IFS=$as_save_IFS 18893 18894 ;; 18895 esac 18896 fi 18897 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX 18898 if test -n "$ac_pt_DX_LATEX"; then 18899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5 18900 printf "%s\n" "$ac_pt_DX_LATEX" >&6; } 18901 else 18902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18903 printf "%s\n" "no" >&6; } 18904 fi 18905 18906 if test "x$ac_pt_DX_LATEX" = x; then 18907 DX_LATEX="" 18908 else 18909 case $cross_compiling:$ac_tool_warned in 18910 yes:) 18911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18912 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18913 ac_tool_warned=yes ;; 18914 esac 18915 DX_LATEX=$ac_pt_DX_LATEX 18916 fi 18917 else 18918 DX_LATEX="$ac_cv_path_DX_LATEX" 18919 fi 18920 18921 if test "$DX_FLAG_ps$DX_LATEX" = 1; then 18922 if test "xlatex" = "xdoxygen"; then 18923 as_fn_error $? "latex not found - will not generate doxygen PostScript documentation" "$LINENO" 5 18924 else 18925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5 18926 printf "%s\n" "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;} 18927 fi 18928 DX_FLAG_ps=0 18929 18930 fi 18931 18932 18933 if test -n "$ac_tool_prefix"; then 18934 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. 18935 set dummy ${ac_tool_prefix}makeindex; ac_word=$2 18936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18937 printf %s "checking for $ac_word... " >&6; } 18938 if test ${ac_cv_path_DX_MAKEINDEX+y} 18939 then : 18940 printf %s "(cached) " >&6 18941 else $as_nop 18942 case $DX_MAKEINDEX in 18943 [\\/]* | ?:[\\/]*) 18944 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. 18945 ;; 18946 *) 18947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18948 for as_dir in $PATH 18949 do 18950 IFS=$as_save_IFS 18951 case $as_dir in #((( 18952 '') as_dir=./ ;; 18953 */) ;; 18954 *) as_dir=$as_dir/ ;; 18955 esac 18956 for ac_exec_ext in '' $ac_executable_extensions; do 18957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18958 ac_cv_path_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" 18959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18960 break 2 18961 fi 18962 done 18963 done 18964 IFS=$as_save_IFS 18965 18966 ;; 18967 esac 18968 fi 18969 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX 18970 if test -n "$DX_MAKEINDEX"; then 18971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 18972 printf "%s\n" "$DX_MAKEINDEX" >&6; } 18973 else 18974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18975 printf "%s\n" "no" >&6; } 18976 fi 18977 18978 18979 fi 18980 if test -z "$ac_cv_path_DX_MAKEINDEX"; then 18981 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX 18982 # Extract the first word of "makeindex", so it can be a program name with args. 18983 set dummy makeindex; ac_word=$2 18984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18985 printf %s "checking for $ac_word... " >&6; } 18986 if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y} 18987 then : 18988 printf %s "(cached) " >&6 18989 else $as_nop 18990 case $ac_pt_DX_MAKEINDEX in 18991 [\\/]* | ?:[\\/]*) 18992 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. 18993 ;; 18994 *) 18995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18996 for as_dir in $PATH 18997 do 18998 IFS=$as_save_IFS 18999 case $as_dir in #((( 19000 '') as_dir=./ ;; 19001 */) ;; 19002 *) as_dir=$as_dir/ ;; 19003 esac 19004 for ac_exec_ext in '' $ac_executable_extensions; do 19005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19006 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" 19007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19008 break 2 19009 fi 19010 done 19011 done 19012 IFS=$as_save_IFS 19013 19014 ;; 19015 esac 19016 fi 19017 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX 19018 if test -n "$ac_pt_DX_MAKEINDEX"; then 19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 19020 printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; } 19021 else 19022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19023 printf "%s\n" "no" >&6; } 19024 fi 19025 19026 if test "x$ac_pt_DX_MAKEINDEX" = x; then 19027 DX_MAKEINDEX="" 19028 else 19029 case $cross_compiling:$ac_tool_warned in 19030 yes:) 19031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19032 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19033 ac_tool_warned=yes ;; 19034 esac 19035 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX 19036 fi 19037 else 19038 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" 19039 fi 19040 19041 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then 19042 if test "xmakeindex" = "xdoxygen"; then 19043 as_fn_error $? "makeindex not found - will not generate doxygen PostScript documentation" "$LINENO" 5 19044 else 19045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5 19046 printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;} 19047 fi 19048 DX_FLAG_ps=0 19049 19050 fi 19051 19052 19053 if test -n "$ac_tool_prefix"; then 19054 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args. 19055 set dummy ${ac_tool_prefix}dvips; ac_word=$2 19056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19057 printf %s "checking for $ac_word... " >&6; } 19058 if test ${ac_cv_path_DX_DVIPS+y} 19059 then : 19060 printf %s "(cached) " >&6 19061 else $as_nop 19062 case $DX_DVIPS in 19063 [\\/]* | ?:[\\/]*) 19064 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path. 19065 ;; 19066 *) 19067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19068 for as_dir in $PATH 19069 do 19070 IFS=$as_save_IFS 19071 case $as_dir in #((( 19072 '') as_dir=./ ;; 19073 */) ;; 19074 *) as_dir=$as_dir/ ;; 19075 esac 19076 for ac_exec_ext in '' $ac_executable_extensions; do 19077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19078 ac_cv_path_DX_DVIPS="$as_dir$ac_word$ac_exec_ext" 19079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19080 break 2 19081 fi 19082 done 19083 done 19084 IFS=$as_save_IFS 19085 19086 ;; 19087 esac 19088 fi 19089 DX_DVIPS=$ac_cv_path_DX_DVIPS 19090 if test -n "$DX_DVIPS"; then 19091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5 19092 printf "%s\n" "$DX_DVIPS" >&6; } 19093 else 19094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19095 printf "%s\n" "no" >&6; } 19096 fi 19097 19098 19099 fi 19100 if test -z "$ac_cv_path_DX_DVIPS"; then 19101 ac_pt_DX_DVIPS=$DX_DVIPS 19102 # Extract the first word of "dvips", so it can be a program name with args. 19103 set dummy dvips; ac_word=$2 19104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19105 printf %s "checking for $ac_word... " >&6; } 19106 if test ${ac_cv_path_ac_pt_DX_DVIPS+y} 19107 then : 19108 printf %s "(cached) " >&6 19109 else $as_nop 19110 case $ac_pt_DX_DVIPS in 19111 [\\/]* | ?:[\\/]*) 19112 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path. 19113 ;; 19114 *) 19115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19116 for as_dir in $PATH 19117 do 19118 IFS=$as_save_IFS 19119 case $as_dir in #((( 19120 '') as_dir=./ ;; 19121 */) ;; 19122 *) as_dir=$as_dir/ ;; 19123 esac 19124 for ac_exec_ext in '' $ac_executable_extensions; do 19125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19126 ac_cv_path_ac_pt_DX_DVIPS="$as_dir$ac_word$ac_exec_ext" 19127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19128 break 2 19129 fi 19130 done 19131 done 19132 IFS=$as_save_IFS 19133 19134 ;; 19135 esac 19136 fi 19137 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS 19138 if test -n "$ac_pt_DX_DVIPS"; then 19139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5 19140 printf "%s\n" "$ac_pt_DX_DVIPS" >&6; } 19141 else 19142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19143 printf "%s\n" "no" >&6; } 19144 fi 19145 19146 if test "x$ac_pt_DX_DVIPS" = x; then 19147 DX_DVIPS="" 19148 else 19149 case $cross_compiling:$ac_tool_warned in 19150 yes:) 19151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19152 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19153 ac_tool_warned=yes ;; 19154 esac 19155 DX_DVIPS=$ac_pt_DX_DVIPS 19156 fi 19157 else 19158 DX_DVIPS="$ac_cv_path_DX_DVIPS" 19159 fi 19160 19161 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then 19162 if test "xdvips" = "xdoxygen"; then 19163 as_fn_error $? "dvips not found - will not generate doxygen PostScript documentation" "$LINENO" 5 19164 else 19165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5 19166 printf "%s\n" "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;} 19167 fi 19168 DX_FLAG_ps=0 19169 19170 fi 19171 19172 19173 if test -n "$ac_tool_prefix"; then 19174 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. 19175 set dummy ${ac_tool_prefix}egrep; ac_word=$2 19176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19177 printf %s "checking for $ac_word... " >&6; } 19178 if test ${ac_cv_path_DX_EGREP+y} 19179 then : 19180 printf %s "(cached) " >&6 19181 else $as_nop 19182 case $DX_EGREP in 19183 [\\/]* | ?:[\\/]*) 19184 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. 19185 ;; 19186 *) 19187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19188 for as_dir in $PATH 19189 do 19190 IFS=$as_save_IFS 19191 case $as_dir in #((( 19192 '') as_dir=./ ;; 19193 */) ;; 19194 *) as_dir=$as_dir/ ;; 19195 esac 19196 for ac_exec_ext in '' $ac_executable_extensions; do 19197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19198 ac_cv_path_DX_EGREP="$as_dir$ac_word$ac_exec_ext" 19199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19200 break 2 19201 fi 19202 done 19203 done 19204 IFS=$as_save_IFS 19205 19206 ;; 19207 esac 19208 fi 19209 DX_EGREP=$ac_cv_path_DX_EGREP 19210 if test -n "$DX_EGREP"; then 19211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 19212 printf "%s\n" "$DX_EGREP" >&6; } 19213 else 19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19215 printf "%s\n" "no" >&6; } 19216 fi 19217 19218 19219 fi 19220 if test -z "$ac_cv_path_DX_EGREP"; then 19221 ac_pt_DX_EGREP=$DX_EGREP 19222 # Extract the first word of "egrep", so it can be a program name with args. 19223 set dummy egrep; ac_word=$2 19224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19225 printf %s "checking for $ac_word... " >&6; } 19226 if test ${ac_cv_path_ac_pt_DX_EGREP+y} 19227 then : 19228 printf %s "(cached) " >&6 19229 else $as_nop 19230 case $ac_pt_DX_EGREP in 19231 [\\/]* | ?:[\\/]*) 19232 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. 19233 ;; 19234 *) 19235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19236 for as_dir in $PATH 19237 do 19238 IFS=$as_save_IFS 19239 case $as_dir in #((( 19240 '') as_dir=./ ;; 19241 */) ;; 19242 *) as_dir=$as_dir/ ;; 19243 esac 19244 for ac_exec_ext in '' $ac_executable_extensions; do 19245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19246 ac_cv_path_ac_pt_DX_EGREP="$as_dir$ac_word$ac_exec_ext" 19247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19248 break 2 19249 fi 19250 done 19251 done 19252 IFS=$as_save_IFS 19253 19254 ;; 19255 esac 19256 fi 19257 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP 19258 if test -n "$ac_pt_DX_EGREP"; then 19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 19260 printf "%s\n" "$ac_pt_DX_EGREP" >&6; } 19261 else 19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19263 printf "%s\n" "no" >&6; } 19264 fi 19265 19266 if test "x$ac_pt_DX_EGREP" = x; then 19267 DX_EGREP="" 19268 else 19269 case $cross_compiling:$ac_tool_warned in 19270 yes:) 19271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19272 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19273 ac_tool_warned=yes ;; 19274 esac 19275 DX_EGREP=$ac_pt_DX_EGREP 19276 fi 19277 else 19278 DX_EGREP="$ac_cv_path_DX_EGREP" 19279 fi 19280 19281 if test "$DX_FLAG_ps$DX_EGREP" = 1; then 19282 if test "xegrep" = "xdoxygen"; then 19283 as_fn_error $? "egrep not found - will not generate doxygen PostScript documentation" "$LINENO" 5 19284 else 19285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5 19286 printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;} 19287 fi 19288 DX_FLAG_ps=0 19289 19290 fi 19291 19292 : 19293 fi 19294 if test "$DX_FLAG_ps" = 1; then 19295 19296 : 19297 else 19298 19299 : 19300 fi 19301 19302 19303 # PDF file generation: 19304 19305 19306 19307 # Check whether --enable-doxygen-pdf was given. 19308 if test ${enable_doxygen_pdf+y} 19309 then : 19310 enableval=$enable_doxygen_pdf; 19311 case "$enableval" in 19312 #( 19313 y|Y|yes|Yes|YES) 19314 DX_FLAG_pdf=1 19315 19316 19317 test "$DX_FLAG_doc" = "1" \ 19318 || as_fn_error $? "doxygen-pdf requires doxygen-doc" "$LINENO" 5 19319 19320 ;; #( 19321 n|N|no|No|NO) 19322 DX_FLAG_pdf=0 19323 19324 ;; #( 19325 *) 19326 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5 19327 ;; 19328 esac 19329 19330 else $as_nop 19331 19332 DX_FLAG_pdf=0 19333 19334 19335 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0 19336 19337 19338 19339 fi 19340 19341 if test "$DX_FLAG_pdf" = 1; then 19342 19343 if test -n "$ac_tool_prefix"; then 19344 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args. 19345 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2 19346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19347 printf %s "checking for $ac_word... " >&6; } 19348 if test ${ac_cv_path_DX_PDFLATEX+y} 19349 then : 19350 printf %s "(cached) " >&6 19351 else $as_nop 19352 case $DX_PDFLATEX in 19353 [\\/]* | ?:[\\/]*) 19354 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path. 19355 ;; 19356 *) 19357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19358 for as_dir in $PATH 19359 do 19360 IFS=$as_save_IFS 19361 case $as_dir in #((( 19362 '') as_dir=./ ;; 19363 */) ;; 19364 *) as_dir=$as_dir/ ;; 19365 esac 19366 for ac_exec_ext in '' $ac_executable_extensions; do 19367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19368 ac_cv_path_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext" 19369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19370 break 2 19371 fi 19372 done 19373 done 19374 IFS=$as_save_IFS 19375 19376 ;; 19377 esac 19378 fi 19379 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX 19380 if test -n "$DX_PDFLATEX"; then 19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5 19382 printf "%s\n" "$DX_PDFLATEX" >&6; } 19383 else 19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19385 printf "%s\n" "no" >&6; } 19386 fi 19387 19388 19389 fi 19390 if test -z "$ac_cv_path_DX_PDFLATEX"; then 19391 ac_pt_DX_PDFLATEX=$DX_PDFLATEX 19392 # Extract the first word of "pdflatex", so it can be a program name with args. 19393 set dummy pdflatex; ac_word=$2 19394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19395 printf %s "checking for $ac_word... " >&6; } 19396 if test ${ac_cv_path_ac_pt_DX_PDFLATEX+y} 19397 then : 19398 printf %s "(cached) " >&6 19399 else $as_nop 19400 case $ac_pt_DX_PDFLATEX in 19401 [\\/]* | ?:[\\/]*) 19402 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path. 19403 ;; 19404 *) 19405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19406 for as_dir in $PATH 19407 do 19408 IFS=$as_save_IFS 19409 case $as_dir in #((( 19410 '') as_dir=./ ;; 19411 */) ;; 19412 *) as_dir=$as_dir/ ;; 19413 esac 19414 for ac_exec_ext in '' $ac_executable_extensions; do 19415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19416 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext" 19417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19418 break 2 19419 fi 19420 done 19421 done 19422 IFS=$as_save_IFS 19423 19424 ;; 19425 esac 19426 fi 19427 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX 19428 if test -n "$ac_pt_DX_PDFLATEX"; then 19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5 19430 printf "%s\n" "$ac_pt_DX_PDFLATEX" >&6; } 19431 else 19432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19433 printf "%s\n" "no" >&6; } 19434 fi 19435 19436 if test "x$ac_pt_DX_PDFLATEX" = x; then 19437 DX_PDFLATEX="" 19438 else 19439 case $cross_compiling:$ac_tool_warned in 19440 yes:) 19441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19442 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19443 ac_tool_warned=yes ;; 19444 esac 19445 DX_PDFLATEX=$ac_pt_DX_PDFLATEX 19446 fi 19447 else 19448 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX" 19449 fi 19450 19451 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then 19452 if test "xpdflatex" = "xdoxygen"; then 19453 as_fn_error $? "pdflatex not found - will not generate doxygen PDF documentation" "$LINENO" 5 19454 else 19455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5 19456 printf "%s\n" "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;} 19457 fi 19458 DX_FLAG_pdf=0 19459 19460 fi 19461 19462 19463 if test -n "$ac_tool_prefix"; then 19464 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. 19465 set dummy ${ac_tool_prefix}makeindex; ac_word=$2 19466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19467 printf %s "checking for $ac_word... " >&6; } 19468 if test ${ac_cv_path_DX_MAKEINDEX+y} 19469 then : 19470 printf %s "(cached) " >&6 19471 else $as_nop 19472 case $DX_MAKEINDEX in 19473 [\\/]* | ?:[\\/]*) 19474 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. 19475 ;; 19476 *) 19477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19478 for as_dir in $PATH 19479 do 19480 IFS=$as_save_IFS 19481 case $as_dir in #((( 19482 '') as_dir=./ ;; 19483 */) ;; 19484 *) as_dir=$as_dir/ ;; 19485 esac 19486 for ac_exec_ext in '' $ac_executable_extensions; do 19487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19488 ac_cv_path_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" 19489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19490 break 2 19491 fi 19492 done 19493 done 19494 IFS=$as_save_IFS 19495 19496 ;; 19497 esac 19498 fi 19499 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX 19500 if test -n "$DX_MAKEINDEX"; then 19501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 19502 printf "%s\n" "$DX_MAKEINDEX" >&6; } 19503 else 19504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19505 printf "%s\n" "no" >&6; } 19506 fi 19507 19508 19509 fi 19510 if test -z "$ac_cv_path_DX_MAKEINDEX"; then 19511 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX 19512 # Extract the first word of "makeindex", so it can be a program name with args. 19513 set dummy makeindex; ac_word=$2 19514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19515 printf %s "checking for $ac_word... " >&6; } 19516 if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y} 19517 then : 19518 printf %s "(cached) " >&6 19519 else $as_nop 19520 case $ac_pt_DX_MAKEINDEX in 19521 [\\/]* | ?:[\\/]*) 19522 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. 19523 ;; 19524 *) 19525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19526 for as_dir in $PATH 19527 do 19528 IFS=$as_save_IFS 19529 case $as_dir in #((( 19530 '') as_dir=./ ;; 19531 */) ;; 19532 *) as_dir=$as_dir/ ;; 19533 esac 19534 for ac_exec_ext in '' $ac_executable_extensions; do 19535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19536 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" 19537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19538 break 2 19539 fi 19540 done 19541 done 19542 IFS=$as_save_IFS 19543 19544 ;; 19545 esac 19546 fi 19547 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX 19548 if test -n "$ac_pt_DX_MAKEINDEX"; then 19549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 19550 printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; } 19551 else 19552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19553 printf "%s\n" "no" >&6; } 19554 fi 19555 19556 if test "x$ac_pt_DX_MAKEINDEX" = x; then 19557 DX_MAKEINDEX="" 19558 else 19559 case $cross_compiling:$ac_tool_warned in 19560 yes:) 19561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19562 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19563 ac_tool_warned=yes ;; 19564 esac 19565 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX 19566 fi 19567 else 19568 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" 19569 fi 19570 19571 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then 19572 if test "xmakeindex" = "xdoxygen"; then 19573 as_fn_error $? "makeindex not found - will not generate doxygen PDF documentation" "$LINENO" 5 19574 else 19575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5 19576 printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;} 19577 fi 19578 DX_FLAG_pdf=0 19579 19580 fi 19581 19582 19583 if test -n "$ac_tool_prefix"; then 19584 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. 19585 set dummy ${ac_tool_prefix}egrep; ac_word=$2 19586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19587 printf %s "checking for $ac_word... " >&6; } 19588 if test ${ac_cv_path_DX_EGREP+y} 19589 then : 19590 printf %s "(cached) " >&6 19591 else $as_nop 19592 case $DX_EGREP in 19593 [\\/]* | ?:[\\/]*) 19594 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. 19595 ;; 19596 *) 19597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19598 for as_dir in $PATH 19599 do 19600 IFS=$as_save_IFS 19601 case $as_dir in #((( 19602 '') as_dir=./ ;; 19603 */) ;; 19604 *) as_dir=$as_dir/ ;; 19605 esac 19606 for ac_exec_ext in '' $ac_executable_extensions; do 19607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19608 ac_cv_path_DX_EGREP="$as_dir$ac_word$ac_exec_ext" 19609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19610 break 2 19611 fi 19612 done 19613 done 19614 IFS=$as_save_IFS 19615 19616 ;; 19617 esac 19618 fi 19619 DX_EGREP=$ac_cv_path_DX_EGREP 19620 if test -n "$DX_EGREP"; then 19621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 19622 printf "%s\n" "$DX_EGREP" >&6; } 19623 else 19624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19625 printf "%s\n" "no" >&6; } 19626 fi 19627 19628 19629 fi 19630 if test -z "$ac_cv_path_DX_EGREP"; then 19631 ac_pt_DX_EGREP=$DX_EGREP 19632 # Extract the first word of "egrep", so it can be a program name with args. 19633 set dummy egrep; ac_word=$2 19634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19635 printf %s "checking for $ac_word... " >&6; } 19636 if test ${ac_cv_path_ac_pt_DX_EGREP+y} 19637 then : 19638 printf %s "(cached) " >&6 19639 else $as_nop 19640 case $ac_pt_DX_EGREP in 19641 [\\/]* | ?:[\\/]*) 19642 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. 19643 ;; 19644 *) 19645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19646 for as_dir in $PATH 19647 do 19648 IFS=$as_save_IFS 19649 case $as_dir in #((( 19650 '') as_dir=./ ;; 19651 */) ;; 19652 *) as_dir=$as_dir/ ;; 19653 esac 19654 for ac_exec_ext in '' $ac_executable_extensions; do 19655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19656 ac_cv_path_ac_pt_DX_EGREP="$as_dir$ac_word$ac_exec_ext" 19657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19658 break 2 19659 fi 19660 done 19661 done 19662 IFS=$as_save_IFS 19663 19664 ;; 19665 esac 19666 fi 19667 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP 19668 if test -n "$ac_pt_DX_EGREP"; then 19669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 19670 printf "%s\n" "$ac_pt_DX_EGREP" >&6; } 19671 else 19672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19673 printf "%s\n" "no" >&6; } 19674 fi 19675 19676 if test "x$ac_pt_DX_EGREP" = x; then 19677 DX_EGREP="" 19678 else 19679 case $cross_compiling:$ac_tool_warned in 19680 yes:) 19681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19683 ac_tool_warned=yes ;; 19684 esac 19685 DX_EGREP=$ac_pt_DX_EGREP 19686 fi 19687 else 19688 DX_EGREP="$ac_cv_path_DX_EGREP" 19689 fi 19690 19691 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then 19692 if test "xegrep" = "xdoxygen"; then 19693 as_fn_error $? "egrep not found - will not generate doxygen PDF documentation" "$LINENO" 5 19694 else 19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5 19696 printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;} 19697 fi 19698 DX_FLAG_pdf=0 19699 19700 fi 19701 19702 : 19703 fi 19704 if test "$DX_FLAG_pdf" = 1; then 19705 19706 : 19707 else 19708 19709 : 19710 fi 19711 19712 19713 # LaTeX generation for PS and/or PDF: 19714 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then 19715 DX_ENV="$DX_ENV GENERATE_LATEX='YES'" 19716 GENERATE_LATEX=YES 19717 19718 else 19719 DX_ENV="$DX_ENV GENERATE_LATEX='NO'" 19720 GENERATE_LATEX=NO 19721 19722 fi 19723 19724 # Paper size for PS and/or PDF: 19725 19726 case "$DOXYGEN_PAPER_SIZE" in 19727 #( 19728 "") 19729 DOXYGEN_PAPER_SIZE="" 19730 19731 ;; #( 19732 a4wide|a4|letter|legal|executive) 19733 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" 19734 PAPER_SIZE=$DOXYGEN_PAPER_SIZE 19735 19736 ;; #( 19737 *) 19738 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5 19739 ;; 19740 esac 19741 19742 # Rules: 19743 if test $DX_FLAG_html -eq 1 19744 then : 19745 DX_SNIPPET_html="## ------------------------------- ## 19746 ## Rules specific for HTML output. ## 19747 ## ------------------------------- ## 19748 19749 DX_CLEAN_HTML = \$(DX_DOCDIR)/html\\ 19750 \$(DX_DOCDIR)/html 19751 19752 " 19753 else $as_nop 19754 DX_SNIPPET_html="" 19755 fi 19756 if test $DX_FLAG_chi -eq 1 19757 then : 19758 DX_SNIPPET_chi=" 19759 DX_CLEAN_CHI = \$(DX_DOCDIR)/\$(PACKAGE).chi\\ 19760 \$(DX_DOCDIR)/\$(PACKAGE).chi" 19761 else $as_nop 19762 DX_SNIPPET_chi="" 19763 fi 19764 if test $DX_FLAG_chm -eq 1 19765 then : 19766 DX_SNIPPET_chm="## ------------------------------ ## 19767 ## Rules specific for CHM output. ## 19768 ## ------------------------------ ## 19769 19770 DX_CLEAN_CHM = \$(DX_DOCDIR)/chm\\ 19771 \$(DX_DOCDIR)/chm\ 19772 ${DX_SNIPPET_chi} 19773 19774 " 19775 else $as_nop 19776 DX_SNIPPET_chm="" 19777 fi 19778 if test $DX_FLAG_man -eq 1 19779 then : 19780 DX_SNIPPET_man="## ------------------------------ ## 19781 ## Rules specific for MAN output. ## 19782 ## ------------------------------ ## 19783 19784 DX_CLEAN_MAN = \$(DX_DOCDIR)/man\\ 19785 \$(DX_DOCDIR)/man 19786 19787 " 19788 else $as_nop 19789 DX_SNIPPET_man="" 19790 fi 19791 if test $DX_FLAG_rtf -eq 1 19792 then : 19793 DX_SNIPPET_rtf="## ------------------------------ ## 19794 ## Rules specific for RTF output. ## 19795 ## ------------------------------ ## 19796 19797 DX_CLEAN_RTF = \$(DX_DOCDIR)/rtf\\ 19798 \$(DX_DOCDIR)/rtf 19799 19800 " 19801 else $as_nop 19802 DX_SNIPPET_rtf="" 19803 fi 19804 if test $DX_FLAG_xml -eq 1 19805 then : 19806 DX_SNIPPET_xml="## ------------------------------ ## 19807 ## Rules specific for XML output. ## 19808 ## ------------------------------ ## 19809 19810 DX_CLEAN_XML = \$(DX_DOCDIR)/xml\\ 19811 \$(DX_DOCDIR)/xml 19812 19813 " 19814 else $as_nop 19815 DX_SNIPPET_xml="" 19816 fi 19817 if test $DX_FLAG_ps -eq 1 19818 then : 19819 DX_SNIPPET_ps="## ----------------------------- ## 19820 ## Rules specific for PS output. ## 19821 ## ----------------------------- ## 19822 19823 DX_CLEAN_PS = \$(DX_DOCDIR)/\$(PACKAGE).ps\\ 19824 \$(DX_DOCDIR)/\$(PACKAGE).ps 19825 19826 DX_PS_GOAL = doxygen-ps 19827 19828 doxygen-ps: \$(DX_CLEAN_PS) 19829 19830 \$(DX_DOCDIR)/\$(PACKAGE).ps: \$(DX_DOCDIR)/\$(PACKAGE).tag 19831 \$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\ 19832 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\ 19833 \$(DX_LATEX) refman.tex; \\ 19834 \$(DX_MAKEINDEX) refman.idx; \\ 19835 \$(DX_LATEX) refman.tex; \\ 19836 countdown=5; \\ 19837 while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\ 19838 refman.log > /dev/null 2>&1 \\ 19839 && test \$\$countdown -gt 0; do \\ 19840 \$(DX_LATEX) refman.tex; \\ 19841 countdown=\`expr \$\$countdown - 1\`; \\ 19842 done; \\ 19843 \$(DX_DVIPS) -o ../\$(PACKAGE).ps refman.dvi 19844 19845 " 19846 else $as_nop 19847 DX_SNIPPET_ps="" 19848 fi 19849 if test $DX_FLAG_pdf -eq 1 19850 then : 19851 DX_SNIPPET_pdf="## ------------------------------ ## 19852 ## Rules specific for PDF output. ## 19853 ## ------------------------------ ## 19854 19855 DX_CLEAN_PDF = \$(DX_DOCDIR)/\$(PACKAGE).pdf\\ 19856 \$(DX_DOCDIR)/\$(PACKAGE).pdf 19857 19858 DX_PDF_GOAL = doxygen-pdf 19859 19860 doxygen-pdf: \$(DX_CLEAN_PDF) 19861 19862 \$(DX_DOCDIR)/\$(PACKAGE).pdf: \$(DX_DOCDIR)/\$(PACKAGE).tag 19863 \$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\ 19864 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\ 19865 \$(DX_PDFLATEX) refman.tex; \\ 19866 \$(DX_MAKEINDEX) refman.idx; \\ 19867 \$(DX_PDFLATEX) refman.tex; \\ 19868 countdown=5; \\ 19869 while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\ 19870 refman.log > /dev/null 2>&1 \\ 19871 && test \$\$countdown -gt 0; do \\ 19872 \$(DX_PDFLATEX) refman.tex; \\ 19873 countdown=\`expr \$\$countdown - 1\`; \\ 19874 done; \\ 19875 mv refman.pdf ../\$(PACKAGE).pdf 19876 19877 " 19878 else $as_nop 19879 DX_SNIPPET_pdf="" 19880 fi 19881 if test $DX_FLAG_ps -eq 1 -o $DX_FLAG_pdf -eq 1 19882 then : 19883 DX_SNIPPET_latex="## ------------------------------------------------- ## 19884 ## Rules specific for LaTeX (shared for PS and PDF). ## 19885 ## ------------------------------------------------- ## 19886 19887 DX_V_LATEX = \$(_DX_v_LATEX_\$(V)) 19888 _DX_v_LATEX_ = \$(_DX_v_LATEX_\$(AM_DEFAULT_VERBOSITY)) 19889 _DX_v_LATEX_0 = @echo \" LATEX \" \$@; 19890 19891 DX_CLEAN_LATEX = \$(DX_DOCDIR)/latex\\ 19892 \$(DX_DOCDIR)/latex 19893 19894 " 19895 else $as_nop 19896 DX_SNIPPET_latex="" 19897 fi 19898 19899 if test $DX_FLAG_doc -eq 1 19900 then : 19901 DX_SNIPPET_doc="## --------------------------------- ## 19902 ## Format-independent Doxygen rules. ## 19903 ## --------------------------------- ## 19904 19905 ${DX_SNIPPET_html}\ 19906 ${DX_SNIPPET_chm}\ 19907 ${DX_SNIPPET_man}\ 19908 ${DX_SNIPPET_rtf}\ 19909 ${DX_SNIPPET_xml}\ 19910 ${DX_SNIPPET_ps}\ 19911 ${DX_SNIPPET_pdf}\ 19912 ${DX_SNIPPET_latex}\ 19913 DX_V_DXGEN = \$(_DX_v_DXGEN_\$(V)) 19914 _DX_v_DXGEN_ = \$(_DX_v_DXGEN_\$(AM_DEFAULT_VERBOSITY)) 19915 _DX_v_DXGEN_0 = @echo \" DXGEN \" \$<; 19916 19917 .PHONY: doxygen-run doxygen-doc \$(DX_PS_GOAL) \$(DX_PDF_GOAL) 19918 19919 .INTERMEDIATE: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL) 19920 19921 doxygen-run: \$(DX_DOCDIR)/\$(PACKAGE).tag 19922 19923 doxygen-doc: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL) 19924 19925 \$(DX_DOCDIR)/\$(PACKAGE).tag: \$(DX_CONFIG) \$(pkginclude_HEADERS) 19926 \$(A""M_V_at)rm -rf \$(DX_DOCDIR) 19927 \$(DX_V_DXGEN)\$(DX_ENV) DOCDIR=\$(DX_DOCDIR) \$(DX_DOXYGEN) \$(DX_CONFIG) 19928 \$(A""M_V_at)echo Timestamp >\$@ 19929 19930 DX_CLEANFILES = \\ 19931 \$(DX_DOCDIR)/doxygen_sqlite3.db \\ 19932 \$(DX_DOCDIR)/\$(PACKAGE).tag \\ 19933 -r \\ 19934 \$(DX_CLEAN_HTML) \\ 19935 \$(DX_CLEAN_CHM) \\ 19936 \$(DX_CLEAN_CHI) \\ 19937 \$(DX_CLEAN_MAN) \\ 19938 \$(DX_CLEAN_RTF) \\ 19939 \$(DX_CLEAN_XML) \\ 19940 \$(DX_CLEAN_PS) \\ 19941 \$(DX_CLEAN_PDF) \\ 19942 \$(DX_CLEAN_LATEX) 19943 DX_INSTALL_DOCS = \\ 19944 \$(DX_CLEAN_HTML) \\ 19945 \$(DX_CLEAN_CHM) \\ 19946 \$(DX_CLEAN_CHI) \\ 19947 \$(DX_CLEAN_RTF) \\ 19948 \$(DX_CLEAN_XML) \\ 19949 \$(DX_CLEAN_PS) \\ 19950 \$(DX_CLEAN_PDF) \\ 19951 \$(DX_CLEAN_LATEX) 19952 " 19953 else $as_nop 19954 DX_SNIPPET_doc="" 19955 fi 19956 DX_RULES="${DX_SNIPPET_doc}" 19957 19958 19959 #For debugging: 19960 #echo DX_FLAG_doc=$DX_FLAG_doc 19961 #echo DX_FLAG_dot=$DX_FLAG_dot 19962 #echo DX_FLAG_man=$DX_FLAG_man 19963 #echo DX_FLAG_html=$DX_FLAG_html 19964 #echo DX_FLAG_chm=$DX_FLAG_chm 19965 #echo DX_FLAG_chi=$DX_FLAG_chi 19966 #echo DX_FLAG_rtf=$DX_FLAG_rtf 19967 #echo DX_FLAG_xml=$DX_FLAG_xml 19968 #echo DX_FLAG_pdf=$DX_FLAG_pdf 19969 #echo DX_FLAG_ps=$DX_FLAG_ps 19970 #echo DX_ENV=$DX_ENV 19971 19972 19973 if test "$DX_FLAG_doc" = "1"; then 19974 ENABLE_DOXYGEN_TRUE= 19975 ENABLE_DOXYGEN_FALSE='#' 19976 else 19977 ENABLE_DOXYGEN_TRUE='#' 19978 ENABLE_DOXYGEN_FALSE= 19979 fi 19980 19981 if test "$DX_FLAG_man" = "1"; then 19982 ENABLE_DOXYGEN_MAN_TRUE= 19983 ENABLE_DOXYGEN_MAN_FALSE='#' 19984 else 19985 ENABLE_DOXYGEN_MAN_TRUE='#' 19986 ENABLE_DOXYGEN_MAN_FALSE= 19987 fi 19988 19989 19990 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc libevent_core.pc libevent_extra.pc" 19991 19992 ac_config_files="$ac_config_files Makefile" 19993 19994 cat >confcache <<\_ACEOF 19995 # This file is a shell script that caches the results of configure 19996 # tests run on this system so they can be shared between configure 19997 # scripts and configure runs, see configure's option --config-cache. 19998 # It is not useful on other systems. If it contains results you don't 19999 # want to keep, you may remove or edit it. 20000 # 20001 # config.status only pays attention to the cache file if you give it 20002 # the --recheck option to rerun configure. 20003 # 20004 # `ac_cv_env_foo' variables (set or unset) will be overridden when 20005 # loading this file, other *unset* `ac_cv_foo' will be assigned the 20006 # following values. 20007 20008 _ACEOF 20009 20010 # The following way of writing the cache mishandles newlines in values, 20011 # but we know of no workaround that is simple, portable, and efficient. 20012 # So, we kill variables containing newlines. 20013 # Ultrix sh set writes to stderr and can't be redirected directly, 20014 # and sets the high bit in the cache file unless we assign to the vars. 20015 ( 20016 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20017 eval ac_val=\$$ac_var 20018 case $ac_val in #( 20019 *${as_nl}*) 20020 case $ac_var in #( 20021 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20022 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20023 esac 20024 case $ac_var in #( 20025 _ | IFS | as_nl) ;; #( 20026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20027 *) { eval $ac_var=; unset $ac_var;} ;; 20028 esac ;; 20029 esac 20030 done 20031 20032 (set) 2>&1 | 20033 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20034 *${as_nl}ac_space=\ *) 20035 # `set' does not quote correctly, so add quotes: double-quote 20036 # substitution turns \\\\ into \\, and sed turns \\ into \. 20037 sed -n \ 20038 "s/'/'\\\\''/g; 20039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20040 ;; #( 20041 *) 20042 # `set' quotes correctly as required by POSIX, so do not add quotes. 20043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20044 ;; 20045 esac | 20046 sort 20047 ) | 20048 sed ' 20049 /^ac_cv_env_/b end 20050 t clear 20051 :clear 20052 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20053 t end 20054 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20055 :end' >>confcache 20056 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20057 if test -w "$cache_file"; then 20058 if test "x$cache_file" != "x/dev/null"; then 20059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20060 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20061 if test ! -f "$cache_file" || test -h "$cache_file"; then 20062 cat confcache >"$cache_file" 20063 else 20064 case $cache_file in #( 20065 */* | ?:*) 20066 mv -f confcache "$cache_file"$$ && 20067 mv -f "$cache_file"$$ "$cache_file" ;; #( 20068 *) 20069 mv -f confcache "$cache_file" ;; 20070 esac 20071 fi 20072 fi 20073 else 20074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20075 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20076 fi 20077 fi 20078 rm -f confcache 20079 20080 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20081 # Let make expand exec_prefix. 20082 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20083 20084 DEFS=-DHAVE_CONFIG_H 20085 20086 ac_libobjs= 20087 ac_ltlibobjs= 20088 U= 20089 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20090 # 1. Remove the extension, and $U if already installed. 20091 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20092 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20093 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20094 # will be set to the directory where LIBOBJS objects are built. 20095 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20096 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20097 done 20098 LIBOBJS=$ac_libobjs 20099 20100 LTLIBOBJS=$ac_ltlibobjs 20101 20102 20103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20104 printf %s "checking that generated files are newer than configure... " >&6; } 20105 if test -n "$am_sleep_pid"; then 20106 # Hide warnings about reused PIDs. 20107 wait $am_sleep_pid 2>/dev/null 20108 fi 20109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20110 printf "%s\n" "done" >&6; } 20111 if test -n "$EXEEXT"; then 20112 am__EXEEXT_TRUE= 20113 am__EXEEXT_FALSE='#' 20114 else 20115 am__EXEEXT_TRUE='#' 20116 am__EXEEXT_FALSE= 20117 fi 20118 20119 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20120 as_fn_error $? "conditional \"AMDEP\" was never defined. 20121 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20122 fi 20123 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20124 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20125 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20126 fi 20127 if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then 20128 as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined. 20129 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20130 fi 20131 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then 20132 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined. 20133 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20134 fi 20135 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then 20136 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined. 20137 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20138 fi 20139 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then 20140 as_fn_error $? "conditional \"OPENSSL\" was never defined. 20141 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20142 fi 20143 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then 20144 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined. 20145 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20146 fi 20147 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then 20148 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined. 20149 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20150 fi 20151 if test -z "${BUILD_MIDIPIX_TRUE}" && test -z "${BUILD_MIDIPIX_FALSE}"; then 20152 as_fn_error $? "conditional \"BUILD_MIDIPIX\" was never defined. 20153 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20154 fi 20155 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then 20156 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined. 20157 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20158 fi 20159 if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then 20160 as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined. 20161 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20162 fi 20163 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then 20164 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined. 20165 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20166 fi 20167 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then 20168 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined. 20169 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20170 fi 20171 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then 20172 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined. 20173 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20174 fi 20175 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then 20176 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined. 20177 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20178 fi 20179 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then 20180 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined. 20181 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20182 fi 20183 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then 20184 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined. 20185 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20186 fi 20187 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then 20188 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined. 20189 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20190 fi 20191 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then 20192 as_fn_error $? "conditional \"THREADS\" was never defined. 20193 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20194 fi 20195 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 20196 as_fn_error $? "conditional \"PTHREADS\" was never defined. 20197 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20198 fi 20199 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then 20200 as_fn_error $? "conditional \"OPENSSL\" was never defined. 20201 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20202 fi 20203 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then 20204 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined. 20205 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20206 fi 20207 if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then 20208 as_fn_error $? "conditional \"ENABLE_DOXYGEN\" was never defined. 20209 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20210 fi 20211 if test -z "${ENABLE_DOXYGEN_MAN_TRUE}" && test -z "${ENABLE_DOXYGEN_MAN_FALSE}"; then 20212 as_fn_error $? "conditional \"ENABLE_DOXYGEN_MAN\" was never defined. 20213 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20214 fi 20215 20216 : "${CONFIG_STATUS=./config.status}" 20217 ac_write_fail=0 20218 ac_clean_files_save=$ac_clean_files 20219 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20221 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20222 as_write_fail=0 20223 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20224 #! $SHELL 20225 # Generated by $as_me. 20226 # Run this file to recreate the current configuration. 20227 # Compiler output produced by configure, useful for debugging 20228 # configure, is in config.log if it exists. 20229 20230 debug=false 20231 ac_cs_recheck=false 20232 ac_cs_silent=false 20233 20234 SHELL=\${CONFIG_SHELL-$SHELL} 20235 export SHELL 20236 _ASEOF 20237 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20238 ## -------------------- ## 20239 ## M4sh Initialization. ## 20240 ## -------------------- ## 20241 20242 # Be more Bourne compatible 20243 DUALCASE=1; export DUALCASE # for MKS sh 20244 as_nop=: 20245 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20246 then : 20247 emulate sh 20248 NULLCMD=: 20249 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20250 # is contrary to our usage. Disable this feature. 20251 alias -g '${1+"$@"}'='"$@"' 20252 setopt NO_GLOB_SUBST 20253 else $as_nop 20254 case `(set -o) 2>/dev/null` in #( 20255 *posix*) : 20256 set -o posix ;; #( 20257 *) : 20258 ;; 20259 esac 20260 fi 20261 20262 20263 20264 # Reset variables that may have inherited troublesome values from 20265 # the environment. 20266 20267 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20268 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20269 # side effect of setting IFS to empty, thus disabling word splitting.) 20270 # Quoting is to prevent editors from complaining about space-tab. 20271 as_nl=' 20272 ' 20273 export as_nl 20274 IFS=" "" $as_nl" 20275 20276 PS1='$ ' 20277 PS2='> ' 20278 PS4='+ ' 20279 20280 # Ensure predictable behavior from utilities with locale-dependent output. 20281 LC_ALL=C 20282 export LC_ALL 20283 LANGUAGE=C 20284 export LANGUAGE 20285 20286 # We cannot yet rely on "unset" to work, but we need these variables 20287 # to be unset--not just set to an empty or harmless value--now, to 20288 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20289 # also avoids known problems related to "unset" and subshell syntax 20290 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20291 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20292 do eval test \${$as_var+y} \ 20293 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20294 done 20295 20296 # Ensure that fds 0, 1, and 2 are open. 20297 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20298 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20299 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20300 20301 # The user is always right. 20302 if ${PATH_SEPARATOR+false} :; then 20303 PATH_SEPARATOR=: 20304 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20305 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20306 PATH_SEPARATOR=';' 20307 } 20308 fi 20309 20310 20311 # Find who we are. Look in the path if we contain no directory separator. 20312 as_myself= 20313 case $0 in #(( 20314 *[\\/]* ) as_myself=$0 ;; 20315 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20316 for as_dir in $PATH 20317 do 20318 IFS=$as_save_IFS 20319 case $as_dir in #((( 20320 '') as_dir=./ ;; 20321 */) ;; 20322 *) as_dir=$as_dir/ ;; 20323 esac 20324 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20325 done 20326 IFS=$as_save_IFS 20327 20328 ;; 20329 esac 20330 # We did not find ourselves, most probably we were run as `sh COMMAND' 20331 # in which case we are not to be found in the path. 20332 if test "x$as_myself" = x; then 20333 as_myself=$0 20334 fi 20335 if test ! -f "$as_myself"; then 20336 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20337 exit 1 20338 fi 20339 20340 20341 20342 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20343 # ---------------------------------------- 20344 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20345 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20346 # script with STATUS, using 1 if that was 0. 20347 as_fn_error () 20348 { 20349 as_status=$1; test $as_status -eq 0 && as_status=1 20350 if test "$4"; then 20351 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20353 fi 20354 printf "%s\n" "$as_me: error: $2" >&2 20355 as_fn_exit $as_status 20356 } # as_fn_error 20357 20358 20359 20360 # as_fn_set_status STATUS 20361 # ----------------------- 20362 # Set $? to STATUS, without forking. 20363 as_fn_set_status () 20364 { 20365 return $1 20366 } # as_fn_set_status 20367 20368 # as_fn_exit STATUS 20369 # ----------------- 20370 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20371 as_fn_exit () 20372 { 20373 set +e 20374 as_fn_set_status $1 20375 exit $1 20376 } # as_fn_exit 20377 20378 # as_fn_unset VAR 20379 # --------------- 20380 # Portably unset VAR. 20381 as_fn_unset () 20382 { 20383 { eval $1=; unset $1;} 20384 } 20385 as_unset=as_fn_unset 20386 20387 # as_fn_append VAR VALUE 20388 # ---------------------- 20389 # Append the text in VALUE to the end of the definition contained in VAR. Take 20390 # advantage of any shell optimizations that allow amortized linear growth over 20391 # repeated appends, instead of the typical quadratic growth present in naive 20392 # implementations. 20393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20394 then : 20395 eval 'as_fn_append () 20396 { 20397 eval $1+=\$2 20398 }' 20399 else $as_nop 20400 as_fn_append () 20401 { 20402 eval $1=\$$1\$2 20403 } 20404 fi # as_fn_append 20405 20406 # as_fn_arith ARG... 20407 # ------------------ 20408 # Perform arithmetic evaluation on the ARGs, and store the result in the 20409 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20410 # must be portable across $(()) and expr. 20411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20412 then : 20413 eval 'as_fn_arith () 20414 { 20415 as_val=$(( $* )) 20416 }' 20417 else $as_nop 20418 as_fn_arith () 20419 { 20420 as_val=`expr "$@" || test $? -eq 1` 20421 } 20422 fi # as_fn_arith 20423 20424 20425 if expr a : '\(a\)' >/dev/null 2>&1 && 20426 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20427 as_expr=expr 20428 else 20429 as_expr=false 20430 fi 20431 20432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20433 as_basename=basename 20434 else 20435 as_basename=false 20436 fi 20437 20438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20439 as_dirname=dirname 20440 else 20441 as_dirname=false 20442 fi 20443 20444 as_me=`$as_basename -- "$0" || 20445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20446 X"$0" : 'X\(//\)$' \| \ 20447 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20448 printf "%s\n" X/"$0" | 20449 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20450 s//\1/ 20451 q 20452 } 20453 /^X\/\(\/\/\)$/{ 20454 s//\1/ 20455 q 20456 } 20457 /^X\/\(\/\).*/{ 20458 s//\1/ 20459 q 20460 } 20461 s/.*/./; q'` 20462 20463 # Avoid depending upon Character Ranges. 20464 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20467 as_cr_digits='0123456789' 20468 as_cr_alnum=$as_cr_Letters$as_cr_digits 20469 20470 20471 # Determine whether it's possible to make 'echo' print without a newline. 20472 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20473 # for compatibility with existing Makefiles. 20474 ECHO_C= ECHO_N= ECHO_T= 20475 case `echo -n x` in #((((( 20476 -n*) 20477 case `echo 'xy\c'` in 20478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20479 xy) ECHO_C='\c';; 20480 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20481 ECHO_T=' ';; 20482 esac;; 20483 *) 20484 ECHO_N='-n';; 20485 esac 20486 20487 # For backward compatibility with old third-party macros, we provide 20488 # the shell variables $as_echo and $as_echo_n. New code should use 20489 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20490 as_echo='printf %s\n' 20491 as_echo_n='printf %s' 20492 20493 rm -f conf$$ conf$$.exe conf$$.file 20494 if test -d conf$$.dir; then 20495 rm -f conf$$.dir/conf$$.file 20496 else 20497 rm -f conf$$.dir 20498 mkdir conf$$.dir 2>/dev/null 20499 fi 20500 if (echo >conf$$.file) 2>/dev/null; then 20501 if ln -s conf$$.file conf$$ 2>/dev/null; then 20502 as_ln_s='ln -s' 20503 # ... but there are two gotchas: 20504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20506 # In both cases, we have to default to `cp -pR'. 20507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20508 as_ln_s='cp -pR' 20509 elif ln conf$$.file conf$$ 2>/dev/null; then 20510 as_ln_s=ln 20511 else 20512 as_ln_s='cp -pR' 20513 fi 20514 else 20515 as_ln_s='cp -pR' 20516 fi 20517 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20518 rmdir conf$$.dir 2>/dev/null 20519 20520 20521 # as_fn_mkdir_p 20522 # ------------- 20523 # Create "$as_dir" as a directory, including parents if necessary. 20524 as_fn_mkdir_p () 20525 { 20526 20527 case $as_dir in #( 20528 -*) as_dir=./$as_dir;; 20529 esac 20530 test -d "$as_dir" || eval $as_mkdir_p || { 20531 as_dirs= 20532 while :; do 20533 case $as_dir in #( 20534 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20535 *) as_qdir=$as_dir;; 20536 esac 20537 as_dirs="'$as_qdir' $as_dirs" 20538 as_dir=`$as_dirname -- "$as_dir" || 20539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20540 X"$as_dir" : 'X\(//\)[^/]' \| \ 20541 X"$as_dir" : 'X\(//\)$' \| \ 20542 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20543 printf "%s\n" X"$as_dir" | 20544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20545 s//\1/ 20546 q 20547 } 20548 /^X\(\/\/\)[^/].*/{ 20549 s//\1/ 20550 q 20551 } 20552 /^X\(\/\/\)$/{ 20553 s//\1/ 20554 q 20555 } 20556 /^X\(\/\).*/{ 20557 s//\1/ 20558 q 20559 } 20560 s/.*/./; q'` 20561 test -d "$as_dir" && break 20562 done 20563 test -z "$as_dirs" || eval "mkdir $as_dirs" 20564 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20565 20566 20567 } # as_fn_mkdir_p 20568 if mkdir -p . 2>/dev/null; then 20569 as_mkdir_p='mkdir -p "$as_dir"' 20570 else 20571 test -d ./-p && rmdir ./-p 20572 as_mkdir_p=false 20573 fi 20574 20575 20576 # as_fn_executable_p FILE 20577 # ----------------------- 20578 # Test if FILE is an executable regular file. 20579 as_fn_executable_p () 20580 { 20581 test -f "$1" && test -x "$1" 20582 } # as_fn_executable_p 20583 as_test_x='test -x' 20584 as_executable_p=as_fn_executable_p 20585 20586 # Sed expression to map a string onto a valid CPP name. 20587 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20588 20589 # Sed expression to map a string onto a valid variable name. 20590 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20591 20592 20593 exec 6>&1 20594 ## ----------------------------------- ## 20595 ## Main body of $CONFIG_STATUS script. ## 20596 ## ----------------------------------- ## 20597 _ASEOF 20598 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20599 20600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20601 # Save the log message, to keep $0 and so on meaningful, and to 20602 # report actual input values of CONFIG_FILES etc. instead of their 20603 # values after options handling. 20604 ac_log=" 20605 This file was extended by libevent $as_me 2.1.12-stable, which was 20606 generated by GNU Autoconf 2.71. Invocation command line was 20607 20608 CONFIG_FILES = $CONFIG_FILES 20609 CONFIG_HEADERS = $CONFIG_HEADERS 20610 CONFIG_LINKS = $CONFIG_LINKS 20611 CONFIG_COMMANDS = $CONFIG_COMMANDS 20612 $ $0 $@ 20613 20614 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20615 " 20616 20617 _ACEOF 20618 20619 case $ac_config_files in *" 20620 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20621 esac 20622 20623 case $ac_config_headers in *" 20624 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20625 esac 20626 20627 20628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20629 # Files that config.status was made for. 20630 config_files="$ac_config_files" 20631 config_headers="$ac_config_headers" 20632 config_commands="$ac_config_commands" 20633 20634 _ACEOF 20635 20636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20637 ac_cs_usage="\ 20638 \`$as_me' instantiates files and other configuration actions 20639 from templates according to the current configuration. Unless the files 20640 and actions are specified as TAGs, all are instantiated by default. 20641 20642 Usage: $0 [OPTION]... [TAG]... 20643 20644 -h, --help print this help, then exit 20645 -V, --version print version number and configuration settings, then exit 20646 --config print configuration, then exit 20647 -q, --quiet, --silent 20648 do not print progress messages 20649 -d, --debug don't remove temporary files 20650 --recheck update $as_me by reconfiguring in the same conditions 20651 --file=FILE[:TEMPLATE] 20652 instantiate the configuration file FILE 20653 --header=FILE[:TEMPLATE] 20654 instantiate the configuration header FILE 20655 20656 Configuration files: 20657 $config_files 20658 20659 Configuration headers: 20660 $config_headers 20661 20662 Configuration commands: 20663 $config_commands 20664 20665 Report bugs to the package provider." 20666 20667 _ACEOF 20668 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20669 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20671 ac_cs_config='$ac_cs_config_escaped' 20672 ac_cs_version="\\ 20673 libevent config.status 2.1.12-stable 20674 configured by $0, generated by GNU Autoconf 2.71, 20675 with options \\"\$ac_cs_config\\" 20676 20677 Copyright (C) 2021 Free Software Foundation, Inc. 20678 This config.status script is free software; the Free Software Foundation 20679 gives unlimited permission to copy, distribute and modify it." 20680 20681 ac_pwd='$ac_pwd' 20682 srcdir='$srcdir' 20683 INSTALL='$INSTALL' 20684 MKDIR_P='$MKDIR_P' 20685 AWK='$AWK' 20686 test -n "\$AWK" || AWK=awk 20687 _ACEOF 20688 20689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20690 # The default lists apply if the user does not specify any file. 20691 ac_need_defaults=: 20692 while test $# != 0 20693 do 20694 case $1 in 20695 --*=?*) 20696 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20697 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20698 ac_shift=: 20699 ;; 20700 --*=) 20701 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20702 ac_optarg= 20703 ac_shift=: 20704 ;; 20705 *) 20706 ac_option=$1 20707 ac_optarg=$2 20708 ac_shift=shift 20709 ;; 20710 esac 20711 20712 case $ac_option in 20713 # Handling of the options. 20714 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20715 ac_cs_recheck=: ;; 20716 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20717 printf "%s\n" "$ac_cs_version"; exit ;; 20718 --config | --confi | --conf | --con | --co | --c ) 20719 printf "%s\n" "$ac_cs_config"; exit ;; 20720 --debug | --debu | --deb | --de | --d | -d ) 20721 debug=: ;; 20722 --file | --fil | --fi | --f ) 20723 $ac_shift 20724 case $ac_optarg in 20725 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20726 '') as_fn_error $? "missing file argument" ;; 20727 esac 20728 as_fn_append CONFIG_FILES " '$ac_optarg'" 20729 ac_need_defaults=false;; 20730 --header | --heade | --head | --hea ) 20731 $ac_shift 20732 case $ac_optarg in 20733 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20734 esac 20735 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20736 ac_need_defaults=false;; 20737 --he | --h) 20738 # Conflict between --help and --header 20739 as_fn_error $? "ambiguous option: \`$1' 20740 Try \`$0 --help' for more information.";; 20741 --help | --hel | -h ) 20742 printf "%s\n" "$ac_cs_usage"; exit ;; 20743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20744 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20745 ac_cs_silent=: ;; 20746 20747 # This is an error. 20748 -*) as_fn_error $? "unrecognized option: \`$1' 20749 Try \`$0 --help' for more information." ;; 20750 20751 *) as_fn_append ac_config_targets " $1" 20752 ac_need_defaults=false ;; 20753 20754 esac 20755 shift 20756 done 20757 20758 ac_configure_extra_args= 20759 20760 if $ac_cs_silent; then 20761 exec 6>/dev/null 20762 ac_configure_extra_args="$ac_configure_extra_args --silent" 20763 fi 20764 20765 _ACEOF 20766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20767 if \$ac_cs_recheck; then 20768 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20769 shift 20770 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20771 CONFIG_SHELL='$SHELL' 20772 export CONFIG_SHELL 20773 exec "\$@" 20774 fi 20775 20776 _ACEOF 20777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20778 exec 5>>config.log 20779 { 20780 echo 20781 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20782 ## Running $as_me. ## 20783 _ASBOX 20784 printf "%s\n" "$ac_log" 20785 } >&5 20786 20787 _ACEOF 20788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20789 # 20790 # INIT-COMMANDS 20791 # 20792 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20793 20794 20795 # The HP-UX ksh and POSIX shell print the target directory to stdout 20796 # if CDPATH is set. 20797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20798 20799 sed_quote_subst='$sed_quote_subst' 20800 double_quote_subst='$double_quote_subst' 20801 delay_variable_subst='$delay_variable_subst' 20802 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20803 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20804 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20805 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20806 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20807 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20808 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20809 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20810 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20811 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20812 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20813 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20814 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20815 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20816 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20817 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20818 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20819 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20820 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20821 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20822 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20823 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20824 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20825 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20826 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20827 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20828 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20829 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20830 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20831 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20832 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20833 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20834 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20835 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20836 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20837 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20838 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20839 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20840 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20841 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20842 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20843 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20844 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20845 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20846 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20847 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20848 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20849 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20850 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20851 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20852 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20853 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20854 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20855 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20856 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20857 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20858 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20859 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20860 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"`' 20861 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20862 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20863 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20864 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20865 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20866 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20867 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20868 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20869 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20870 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20871 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20872 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20873 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20874 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20875 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20876 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20877 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20878 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20879 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20880 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20881 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20882 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20883 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20884 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20885 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20886 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20887 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20888 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20889 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20890 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20891 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20892 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20893 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20894 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20895 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20896 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20897 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20898 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20899 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20900 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20901 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20902 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20903 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20904 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20905 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20906 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20907 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20908 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20909 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20910 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20911 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20912 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20913 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20914 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20915 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20916 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20917 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20918 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20919 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20920 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20921 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20922 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20923 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20924 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20925 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20926 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20927 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20928 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20929 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20930 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20931 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20932 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20933 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20934 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20935 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20936 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20937 20938 LTCC='$LTCC' 20939 LTCFLAGS='$LTCFLAGS' 20940 compiler='$compiler_DEFAULT' 20941 20942 # A function that is used when there is no print builtin or printf. 20943 func_fallback_echo () 20944 { 20945 eval 'cat <<_LTECHO_EOF 20946 \$1 20947 _LTECHO_EOF' 20948 } 20949 20950 # Quote evaled strings. 20951 for var in SHELL \ 20952 ECHO \ 20953 PATH_SEPARATOR \ 20954 SED \ 20955 GREP \ 20956 EGREP \ 20957 FGREP \ 20958 LD \ 20959 NM \ 20960 LN_S \ 20961 lt_SP2NL \ 20962 lt_NL2SP \ 20963 reload_flag \ 20964 OBJDUMP \ 20965 deplibs_check_method \ 20966 file_magic_cmd \ 20967 file_magic_glob \ 20968 want_nocaseglob \ 20969 DLLTOOL \ 20970 sharedlib_from_linklib_cmd \ 20971 AR \ 20972 AR_FLAGS \ 20973 archiver_list_spec \ 20974 STRIP \ 20975 RANLIB \ 20976 CC \ 20977 CFLAGS \ 20978 compiler \ 20979 lt_cv_sys_global_symbol_pipe \ 20980 lt_cv_sys_global_symbol_to_cdecl \ 20981 lt_cv_sys_global_symbol_to_import \ 20982 lt_cv_sys_global_symbol_to_c_name_address \ 20983 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20984 lt_cv_nm_interface \ 20985 nm_file_list_spec \ 20986 lt_cv_truncate_bin \ 20987 lt_prog_compiler_no_builtin_flag \ 20988 lt_prog_compiler_pic \ 20989 lt_prog_compiler_wl \ 20990 lt_prog_compiler_static \ 20991 lt_cv_prog_compiler_c_o \ 20992 need_locks \ 20993 MANIFEST_TOOL \ 20994 DSYMUTIL \ 20995 NMEDIT \ 20996 LIPO \ 20997 OTOOL \ 20998 OTOOL64 \ 20999 shrext_cmds \ 21000 export_dynamic_flag_spec \ 21001 whole_archive_flag_spec \ 21002 compiler_needs_object \ 21003 with_gnu_ld \ 21004 allow_undefined_flag \ 21005 no_undefined_flag \ 21006 hardcode_libdir_flag_spec \ 21007 hardcode_libdir_separator \ 21008 exclude_expsyms \ 21009 include_expsyms \ 21010 file_list_spec \ 21011 variables_saved_for_relink \ 21012 libname_spec \ 21013 library_names_spec \ 21014 soname_spec \ 21015 install_override_mode \ 21016 finish_eval \ 21017 old_striplib \ 21018 striplib; do 21019 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21020 *[\\\\\\\`\\"\\\$]*) 21021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21022 ;; 21023 *) 21024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21025 ;; 21026 esac 21027 done 21028 21029 # Double-quote double-evaled strings. 21030 for var in reload_cmds \ 21031 old_postinstall_cmds \ 21032 old_postuninstall_cmds \ 21033 old_archive_cmds \ 21034 extract_expsyms_cmds \ 21035 old_archive_from_new_cmds \ 21036 old_archive_from_expsyms_cmds \ 21037 archive_cmds \ 21038 archive_expsym_cmds \ 21039 module_cmds \ 21040 module_expsym_cmds \ 21041 export_symbols_cmds \ 21042 prelink_cmds \ 21043 postlink_cmds \ 21044 postinstall_cmds \ 21045 postuninstall_cmds \ 21046 finish_cmds \ 21047 sys_lib_search_path_spec \ 21048 configure_time_dlsearch_path \ 21049 configure_time_lt_sys_library_path; do 21050 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21051 *[\\\\\\\`\\"\\\$]*) 21052 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21053 ;; 21054 *) 21055 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21056 ;; 21057 esac 21058 done 21059 21060 ac_aux_dir='$ac_aux_dir' 21061 21062 # See if we are running on zsh, and set the options that allow our 21063 # commands through without removal of \ escapes INIT. 21064 if test -n "\${ZSH_VERSION+set}"; then 21065 setopt NO_GLOB_SUBST 21066 fi 21067 21068 21069 PACKAGE='$PACKAGE' 21070 VERSION='$VERSION' 21071 RM='$RM' 21072 ofile='$ofile' 21073 21074 21075 21076 21077 _ACEOF 21078 21079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21080 21081 # Handling of arguments. 21082 for ac_config_target in $ac_config_targets 21083 do 21084 case $ac_config_target in 21085 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21086 "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;; 21087 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21088 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21089 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;; 21090 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;; 21091 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;; 21092 "libevent_core.pc") CONFIG_FILES="$CONFIG_FILES libevent_core.pc" ;; 21093 "libevent_extra.pc") CONFIG_FILES="$CONFIG_FILES libevent_extra.pc" ;; 21094 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21095 21096 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21097 esac 21098 done 21099 21100 21101 # If the user did not use the arguments to specify the items to instantiate, 21102 # then the envvar interface is used. Set only those that are not. 21103 # We use the long form for the default assignment because of an extremely 21104 # bizarre bug on SunOS 4.1.3. 21105 if $ac_need_defaults; then 21106 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21107 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21108 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21109 fi 21110 21111 # Have a temporary directory for convenience. Make it in the build tree 21112 # simply because there is no reason against having it here, and in addition, 21113 # creating and moving files from /tmp can sometimes cause problems. 21114 # Hook for its removal unless debugging. 21115 # Note that there is a small window in which the directory will not be cleaned: 21116 # after its creation but before its name has been assigned to `$tmp'. 21117 $debug || 21118 { 21119 tmp= ac_tmp= 21120 trap 'exit_status=$? 21121 : "${ac_tmp:=$tmp}" 21122 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21123 ' 0 21124 trap 'as_fn_exit 1' 1 2 13 15 21125 } 21126 # Create a (secure) tmp directory for tmp files. 21127 21128 { 21129 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21130 test -d "$tmp" 21131 } || 21132 { 21133 tmp=./conf$$-$RANDOM 21134 (umask 077 && mkdir "$tmp") 21135 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21136 ac_tmp=$tmp 21137 21138 # Set up the scripts for CONFIG_FILES section. 21139 # No need to generate them if there are no CONFIG_FILES. 21140 # This happens for instance with `./config.status config.h'. 21141 if test -n "$CONFIG_FILES"; then 21142 21143 21144 ac_cr=`echo X | tr X '\015'` 21145 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21146 # But we know of no other shell where ac_cr would be empty at this 21147 # point, so we can use a bashism as a fallback. 21148 if test "x$ac_cr" = x; then 21149 eval ac_cr=\$\'\\r\' 21150 fi 21151 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21152 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21153 ac_cs_awk_cr='\\r' 21154 else 21155 ac_cs_awk_cr=$ac_cr 21156 fi 21157 21158 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21159 _ACEOF 21160 21161 21162 { 21163 echo "cat >conf$$subs.awk <<_ACEOF" && 21164 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21165 echo "_ACEOF" 21166 } >conf$$subs.sh || 21167 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21168 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21169 ac_delim='%!_!# ' 21170 for ac_last_try in false false false false false :; do 21171 . ./conf$$subs.sh || 21172 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21173 21174 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21175 if test $ac_delim_n = $ac_delim_num; then 21176 break 21177 elif $ac_last_try; then 21178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21179 else 21180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21181 fi 21182 done 21183 rm -f conf$$subs.sh 21184 21185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21186 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21187 _ACEOF 21188 sed -n ' 21189 h 21190 s/^/S["/; s/!.*/"]=/ 21191 p 21192 g 21193 s/^[^!]*!// 21194 :repl 21195 t repl 21196 s/'"$ac_delim"'$// 21197 t delim 21198 :nl 21199 h 21200 s/\(.\{148\}\)..*/\1/ 21201 t more1 21202 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21203 p 21204 n 21205 b repl 21206 :more1 21207 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21208 p 21209 g 21210 s/.\{148\}// 21211 t nl 21212 :delim 21213 h 21214 s/\(.\{148\}\)..*/\1/ 21215 t more2 21216 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21217 p 21218 b 21219 :more2 21220 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21221 p 21222 g 21223 s/.\{148\}// 21224 t delim 21225 ' <conf$$subs.awk | sed ' 21226 /^[^""]/{ 21227 N 21228 s/\n// 21229 } 21230 ' >>$CONFIG_STATUS || ac_write_fail=1 21231 rm -f conf$$subs.awk 21232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21233 _ACAWK 21234 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21235 for (key in S) S_is_set[key] = 1 21236 FS = "" 21237 21238 } 21239 { 21240 line = $ 0 21241 nfields = split(line, field, "@") 21242 substed = 0 21243 len = length(field[1]) 21244 for (i = 2; i < nfields; i++) { 21245 key = field[i] 21246 keylen = length(key) 21247 if (S_is_set[key]) { 21248 value = S[key] 21249 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21250 len += length(value) + length(field[++i]) 21251 substed = 1 21252 } else 21253 len += 1 + keylen 21254 } 21255 21256 print line 21257 } 21258 21259 _ACAWK 21260 _ACEOF 21261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21262 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21263 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21264 else 21265 cat 21266 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21267 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21268 _ACEOF 21269 21270 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21271 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21272 # trailing colons and then remove the whole line if VPATH becomes empty 21273 # (actually we leave an empty line to preserve line numbers). 21274 if test "x$srcdir" = x.; then 21275 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21276 h 21277 s/// 21278 s/^/:/ 21279 s/[ ]*$/:/ 21280 s/:\$(srcdir):/:/g 21281 s/:\${srcdir}:/:/g 21282 s/:@srcdir@:/:/g 21283 s/^:*// 21284 s/:*$// 21285 x 21286 s/\(=[ ]*\).*/\1/ 21287 G 21288 s/\n// 21289 s/^[^=]*=[ ]*$// 21290 }' 21291 fi 21292 21293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21294 fi # test -n "$CONFIG_FILES" 21295 21296 # Set up the scripts for CONFIG_HEADERS section. 21297 # No need to generate them if there are no CONFIG_HEADERS. 21298 # This happens for instance with `./config.status Makefile'. 21299 if test -n "$CONFIG_HEADERS"; then 21300 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21301 BEGIN { 21302 _ACEOF 21303 21304 # Transform confdefs.h into an awk script `defines.awk', embedded as 21305 # here-document in config.status, that substitutes the proper values into 21306 # config.h.in to produce config.h. 21307 21308 # Create a delimiter string that does not exist in confdefs.h, to ease 21309 # handling of long lines. 21310 ac_delim='%!_!# ' 21311 for ac_last_try in false false :; do 21312 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21313 if test -z "$ac_tt"; then 21314 break 21315 elif $ac_last_try; then 21316 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21317 else 21318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21319 fi 21320 done 21321 21322 # For the awk script, D is an array of macro values keyed by name, 21323 # likewise P contains macro parameters if any. Preserve backslash 21324 # newline sequences. 21325 21326 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21327 sed -n ' 21328 s/.\{148\}/&'"$ac_delim"'/g 21329 t rset 21330 :rset 21331 s/^[ ]*#[ ]*define[ ][ ]*/ / 21332 t def 21333 d 21334 :def 21335 s/\\$// 21336 t bsnl 21337 s/["\\]/\\&/g 21338 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21339 D["\1"]=" \3"/p 21340 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21341 d 21342 :bsnl 21343 s/["\\]/\\&/g 21344 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21345 D["\1"]=" \3\\\\\\n"\\/p 21346 t cont 21347 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21348 t cont 21349 d 21350 :cont 21351 n 21352 s/.\{148\}/&'"$ac_delim"'/g 21353 t clear 21354 :clear 21355 s/\\$// 21356 t bsnlc 21357 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21358 d 21359 :bsnlc 21360 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21361 b cont 21362 ' <confdefs.h | sed ' 21363 s/'"$ac_delim"'/"\\\ 21364 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21365 21366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21367 for (key in D) D_is_set[key] = 1 21368 FS = "" 21369 } 21370 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21371 line = \$ 0 21372 split(line, arg, " ") 21373 if (arg[1] == "#") { 21374 defundef = arg[2] 21375 mac1 = arg[3] 21376 } else { 21377 defundef = substr(arg[1], 2) 21378 mac1 = arg[2] 21379 } 21380 split(mac1, mac2, "(") #) 21381 macro = mac2[1] 21382 prefix = substr(line, 1, index(line, defundef) - 1) 21383 if (D_is_set[macro]) { 21384 # Preserve the white space surrounding the "#". 21385 print prefix "define", macro P[macro] D[macro] 21386 next 21387 } else { 21388 # Replace #undef with comments. This is necessary, for example, 21389 # in the case of _POSIX_SOURCE, which is predefined and required 21390 # on some systems where configure will not decide to define it. 21391 if (defundef == "undef") { 21392 print "/*", prefix defundef, macro, "*/" 21393 next 21394 } 21395 } 21396 } 21397 { print } 21398 _ACAWK 21399 _ACEOF 21400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21401 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21402 fi # test -n "$CONFIG_HEADERS" 21403 21404 21405 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21406 shift 21407 for ac_tag 21408 do 21409 case $ac_tag in 21410 :[FHLC]) ac_mode=$ac_tag; continue;; 21411 esac 21412 case $ac_mode$ac_tag in 21413 :[FHL]*:*);; 21414 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21415 :[FH]-) ac_tag=-:-;; 21416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21417 esac 21418 ac_save_IFS=$IFS 21419 IFS=: 21420 set x $ac_tag 21421 IFS=$ac_save_IFS 21422 shift 21423 ac_file=$1 21424 shift 21425 21426 case $ac_mode in 21427 :L) ac_source=$1;; 21428 :[FH]) 21429 ac_file_inputs= 21430 for ac_f 21431 do 21432 case $ac_f in 21433 -) ac_f="$ac_tmp/stdin";; 21434 *) # Look for the file first in the build tree, then in the source tree 21435 # (if the path is not absolute). The absolute path cannot be DOS-style, 21436 # because $ac_f cannot contain `:'. 21437 test -f "$ac_f" || 21438 case $ac_f in 21439 [\\/$]*) false;; 21440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21441 esac || 21442 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21443 esac 21444 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21445 as_fn_append ac_file_inputs " '$ac_f'" 21446 done 21447 21448 # Let's still pretend it is `configure' which instantiates (i.e., don't 21449 # use $as_me), people would be surprised to read: 21450 # /* config.h. Generated by config.status. */ 21451 configure_input='Generated from '` 21452 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21453 `' by configure.' 21454 if test x"$ac_file" != x-; then 21455 configure_input="$ac_file. $configure_input" 21456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21457 printf "%s\n" "$as_me: creating $ac_file" >&6;} 21458 fi 21459 # Neutralize special characters interpreted by sed in replacement strings. 21460 case $configure_input in #( 21461 *\&* | *\|* | *\\* ) 21462 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21463 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21464 *) ac_sed_conf_input=$configure_input;; 21465 esac 21466 21467 case $ac_tag in 21468 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21470 esac 21471 ;; 21472 esac 21473 21474 ac_dir=`$as_dirname -- "$ac_file" || 21475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21476 X"$ac_file" : 'X\(//\)[^/]' \| \ 21477 X"$ac_file" : 'X\(//\)$' \| \ 21478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21479 printf "%s\n" X"$ac_file" | 21480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21481 s//\1/ 21482 q 21483 } 21484 /^X\(\/\/\)[^/].*/{ 21485 s//\1/ 21486 q 21487 } 21488 /^X\(\/\/\)$/{ 21489 s//\1/ 21490 q 21491 } 21492 /^X\(\/\).*/{ 21493 s//\1/ 21494 q 21495 } 21496 s/.*/./; q'` 21497 as_dir="$ac_dir"; as_fn_mkdir_p 21498 ac_builddir=. 21499 21500 case "$ac_dir" in 21501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21502 *) 21503 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21504 # A ".." for each directory in $ac_dir_suffix. 21505 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21506 case $ac_top_builddir_sub in 21507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21509 esac ;; 21510 esac 21511 ac_abs_top_builddir=$ac_pwd 21512 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21513 # for backward compatibility: 21514 ac_top_builddir=$ac_top_build_prefix 21515 21516 case $srcdir in 21517 .) # We are building in place. 21518 ac_srcdir=. 21519 ac_top_srcdir=$ac_top_builddir_sub 21520 ac_abs_top_srcdir=$ac_pwd ;; 21521 [\\/]* | ?:[\\/]* ) # Absolute name. 21522 ac_srcdir=$srcdir$ac_dir_suffix; 21523 ac_top_srcdir=$srcdir 21524 ac_abs_top_srcdir=$srcdir ;; 21525 *) # Relative name. 21526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21527 ac_top_srcdir=$ac_top_build_prefix$srcdir 21528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21529 esac 21530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21531 21532 21533 case $ac_mode in 21534 :F) 21535 # 21536 # CONFIG_FILE 21537 # 21538 21539 case $INSTALL in 21540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21542 esac 21543 ac_MKDIR_P=$MKDIR_P 21544 case $MKDIR_P in 21545 [\\/$]* | ?:[\\/]* ) ;; 21546 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21547 esac 21548 _ACEOF 21549 21550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21551 # If the template does not know about datarootdir, expand it. 21552 # FIXME: This hack should be removed a few years after 2.60. 21553 ac_datarootdir_hack=; ac_datarootdir_seen= 21554 ac_sed_dataroot=' 21555 /datarootdir/ { 21556 p 21557 q 21558 } 21559 /@datadir@/p 21560 /@docdir@/p 21561 /@infodir@/p 21562 /@localedir@/p 21563 /@mandir@/p' 21564 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21565 *datarootdir*) ac_datarootdir_seen=yes;; 21566 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21568 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21569 _ACEOF 21570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21571 ac_datarootdir_hack=' 21572 s&@datadir@&$datadir&g 21573 s&@docdir@&$docdir&g 21574 s&@infodir@&$infodir&g 21575 s&@localedir@&$localedir&g 21576 s&@mandir@&$mandir&g 21577 s&\\\${datarootdir}&$datarootdir&g' ;; 21578 esac 21579 _ACEOF 21580 21581 # Neutralize VPATH when `$srcdir' = `.'. 21582 # Shell code in configure.ac might set extrasub. 21583 # FIXME: do we really want to maintain this feature? 21584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21585 ac_sed_extra="$ac_vpsub 21586 $extrasub 21587 _ACEOF 21588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21589 :t 21590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21591 s|@configure_input@|$ac_sed_conf_input|;t t 21592 s&@top_builddir@&$ac_top_builddir_sub&;t t 21593 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21594 s&@srcdir@&$ac_srcdir&;t t 21595 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21596 s&@top_srcdir@&$ac_top_srcdir&;t t 21597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21598 s&@builddir@&$ac_builddir&;t t 21599 s&@abs_builddir@&$ac_abs_builddir&;t t 21600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21601 s&@INSTALL@&$ac_INSTALL&;t t 21602 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21603 $ac_datarootdir_hack 21604 " 21605 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21606 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21607 21608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21609 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21611 "$ac_tmp/out"`; test -z "$ac_out"; } && 21612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21613 which seems to be undefined. Please make sure it is defined" >&5 21614 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21615 which seems to be undefined. Please make sure it is defined" >&2;} 21616 21617 rm -f "$ac_tmp/stdin" 21618 case $ac_file in 21619 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21620 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21621 esac \ 21622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21623 ;; 21624 :H) 21625 # 21626 # CONFIG_HEADER 21627 # 21628 if test x"$ac_file" != x-; then 21629 { 21630 printf "%s\n" "/* $configure_input */" >&1 \ 21631 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21632 } >"$ac_tmp/config.h" \ 21633 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21634 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21636 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21637 else 21638 rm -f "$ac_file" 21639 mv "$ac_tmp/config.h" "$ac_file" \ 21640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21641 fi 21642 else 21643 printf "%s\n" "/* $configure_input */" >&1 \ 21644 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21645 || as_fn_error $? "could not create -" "$LINENO" 5 21646 fi 21647 # Compute "$ac_file"'s index in $config_headers. 21648 _am_arg="$ac_file" 21649 _am_stamp_count=1 21650 for _am_header in $config_headers :; do 21651 case $_am_header in 21652 $_am_arg | $_am_arg:* ) 21653 break ;; 21654 * ) 21655 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21656 esac 21657 done 21658 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21659 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21660 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21661 X"$_am_arg" : 'X\(//\)$' \| \ 21662 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21663 printf "%s\n" X"$_am_arg" | 21664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21665 s//\1/ 21666 q 21667 } 21668 /^X\(\/\/\)[^/].*/{ 21669 s//\1/ 21670 q 21671 } 21672 /^X\(\/\/\)$/{ 21673 s//\1/ 21674 q 21675 } 21676 /^X\(\/\).*/{ 21677 s//\1/ 21678 q 21679 } 21680 s/.*/./; q'`/stamp-h$_am_stamp_count 21681 ;; 21682 21683 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21684 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21685 ;; 21686 esac 21687 21688 21689 case $ac_file$ac_mode in 21690 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21691 # Older Autoconf quotes --file arguments for eval, but not when files 21692 # are listed without --file. Let's play safe and only enable the eval 21693 # if we detect the quoting. 21694 # TODO: see whether this extra hack can be removed once we start 21695 # requiring Autoconf 2.70 or later. 21696 case $CONFIG_FILES in #( 21697 *\'*) : 21698 eval set x "$CONFIG_FILES" ;; #( 21699 *) : 21700 set x $CONFIG_FILES ;; #( 21701 *) : 21702 ;; 21703 esac 21704 shift 21705 # Used to flag and report bootstrapping failures. 21706 am_rc=0 21707 for am_mf 21708 do 21709 # Strip MF so we end up with the name of the file. 21710 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21711 # Check whether this is an Automake generated Makefile which includes 21712 # dependency-tracking related rules and includes. 21713 # Grep'ing the whole file directly is not great: AIX grep has a line 21714 # limit of 2048, but all sed's we know have understand at least 4000. 21715 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21716 || continue 21717 am_dirpart=`$as_dirname -- "$am_mf" || 21718 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21719 X"$am_mf" : 'X\(//\)[^/]' \| \ 21720 X"$am_mf" : 'X\(//\)$' \| \ 21721 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21722 printf "%s\n" X"$am_mf" | 21723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21724 s//\1/ 21725 q 21726 } 21727 /^X\(\/\/\)[^/].*/{ 21728 s//\1/ 21729 q 21730 } 21731 /^X\(\/\/\)$/{ 21732 s//\1/ 21733 q 21734 } 21735 /^X\(\/\).*/{ 21736 s//\1/ 21737 q 21738 } 21739 s/.*/./; q'` 21740 am_filepart=`$as_basename -- "$am_mf" || 21741 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21742 X"$am_mf" : 'X\(//\)$' \| \ 21743 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21744 printf "%s\n" X/"$am_mf" | 21745 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21746 s//\1/ 21747 q 21748 } 21749 /^X\/\(\/\/\)$/{ 21750 s//\1/ 21751 q 21752 } 21753 /^X\/\(\/\).*/{ 21754 s//\1/ 21755 q 21756 } 21757 s/.*/./; q'` 21758 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21759 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21760 | $MAKE -f - am--depfiles" >&5 21761 (cd "$am_dirpart" \ 21762 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21763 | $MAKE -f - am--depfiles) >&5 2>&5 21764 ac_status=$? 21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21766 (exit $ac_status); } || am_rc=$? 21767 done 21768 if test $am_rc -ne 0; then 21769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21770 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21771 as_fn_error $? "Something went wrong bootstrapping makefile fragments 21772 for automatic dependency tracking. If GNU make was not used, consider 21773 re-running the configure script with MAKE=\"gmake\" (or whatever is 21774 necessary). You can also try re-running configure with the 21775 '--disable-dependency-tracking' option to at least be able to build 21776 the package (albeit without support for automatic dependency tracking). 21777 See \`config.log' for more details" "$LINENO" 5; } 21778 fi 21779 { am_dirpart=; unset am_dirpart;} 21780 { am_filepart=; unset am_filepart;} 21781 { am_mf=; unset am_mf;} 21782 { am_rc=; unset am_rc;} 21783 rm -f conftest-deps.mk 21784 } 21785 ;; 21786 "libtool":C) 21787 21788 # See if we are running on zsh, and set the options that allow our 21789 # commands through without removal of \ escapes. 21790 if test -n "${ZSH_VERSION+set}"; then 21791 setopt NO_GLOB_SUBST 21792 fi 21793 21794 cfgfile=${ofile}T 21795 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21796 $RM "$cfgfile" 21797 21798 cat <<_LT_EOF >> "$cfgfile" 21799 #! $SHELL 21800 # Generated automatically by $as_me ($PACKAGE) $VERSION 21801 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21802 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 21803 21804 # Provide generalized library-building support services. 21805 # Written by Gordon Matzigkeit, 1996 21806 21807 # Copyright (C) 2014 Free Software Foundation, Inc. 21808 # This is free software; see the source for copying conditions. There is NO 21809 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21810 21811 # GNU Libtool is free software; you can redistribute it and/or modify 21812 # it under the terms of the GNU General Public License as published by 21813 # the Free Software Foundation; either version 2 of of the License, or 21814 # (at your option) any later version. 21815 # 21816 # As a special exception to the GNU General Public License, if you 21817 # distribute this file as part of a program or library that is built 21818 # using GNU Libtool, you may include this file under the same 21819 # distribution terms that you use for the rest of that program. 21820 # 21821 # GNU Libtool is distributed in the hope that it will be useful, but 21822 # WITHOUT ANY WARRANTY; without even the implied warranty of 21823 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21824 # GNU General Public License for more details. 21825 # 21826 # You should have received a copy of the GNU General Public License 21827 # along with this program. If not, see <http://www.gnu.org/licenses/>. 21828 21829 21830 # The names of the tagged configurations supported by this script. 21831 available_tags='' 21832 21833 # Configured defaults for sys_lib_dlsearch_path munging. 21834 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21835 21836 # ### BEGIN LIBTOOL CONFIG 21837 21838 # Which release of libtool.m4 was used? 21839 macro_version=$macro_version 21840 macro_revision=$macro_revision 21841 21842 # Whether or not to build shared libraries. 21843 build_libtool_libs=$enable_shared 21844 21845 # Whether or not to build static libraries. 21846 build_old_libs=$enable_static 21847 21848 # What type of objects to build. 21849 pic_mode=$pic_mode 21850 21851 # Whether or not to optimize for fast installation. 21852 fast_install=$enable_fast_install 21853 21854 # Shared archive member basename,for filename based shared library versioning on AIX. 21855 shared_archive_member_spec=$shared_archive_member_spec 21856 21857 # Shell to use when invoking shell scripts. 21858 SHELL=$lt_SHELL 21859 21860 # An echo program that protects backslashes. 21861 ECHO=$lt_ECHO 21862 21863 # The PATH separator for the build system. 21864 PATH_SEPARATOR=$lt_PATH_SEPARATOR 21865 21866 # The host system. 21867 host_alias=$host_alias 21868 host=$host 21869 host_os=$host_os 21870 21871 # The build system. 21872 build_alias=$build_alias 21873 build=$build 21874 build_os=$build_os 21875 21876 # A sed program that does not truncate output. 21877 SED=$lt_SED 21878 21879 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 21880 Xsed="\$SED -e 1s/^X//" 21881 21882 # A grep program that handles long lines. 21883 GREP=$lt_GREP 21884 21885 # An ERE matcher. 21886 EGREP=$lt_EGREP 21887 21888 # A literal string matcher. 21889 FGREP=$lt_FGREP 21890 21891 # A BSD- or MS-compatible name lister. 21892 NM=$lt_NM 21893 21894 # Whether we need soft or hard links. 21895 LN_S=$lt_LN_S 21896 21897 # What is the maximum length of a command? 21898 max_cmd_len=$max_cmd_len 21899 21900 # Object file suffix (normally "o"). 21901 objext=$ac_objext 21902 21903 # Executable file suffix (normally ""). 21904 exeext=$exeext 21905 21906 # whether the shell understands "unset". 21907 lt_unset=$lt_unset 21908 21909 # turn spaces into newlines. 21910 SP2NL=$lt_lt_SP2NL 21911 21912 # turn newlines into spaces. 21913 NL2SP=$lt_lt_NL2SP 21914 21915 # convert \$build file names to \$host format. 21916 to_host_file_cmd=$lt_cv_to_host_file_cmd 21917 21918 # convert \$build files to toolchain format. 21919 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21920 21921 # An object symbol dumper. 21922 OBJDUMP=$lt_OBJDUMP 21923 21924 # Method to check whether dependent libraries are shared objects. 21925 deplibs_check_method=$lt_deplibs_check_method 21926 21927 # Command to use when deplibs_check_method = "file_magic". 21928 file_magic_cmd=$lt_file_magic_cmd 21929 21930 # How to find potential files when deplibs_check_method = "file_magic". 21931 file_magic_glob=$lt_file_magic_glob 21932 21933 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21934 want_nocaseglob=$lt_want_nocaseglob 21935 21936 # DLL creation program. 21937 DLLTOOL=$lt_DLLTOOL 21938 21939 # Command to associate shared and link libraries. 21940 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21941 21942 # The archiver. 21943 AR=$lt_AR 21944 21945 # Flags to create an archive. 21946 AR_FLAGS=$lt_AR_FLAGS 21947 21948 # How to feed a file listing to the archiver. 21949 archiver_list_spec=$lt_archiver_list_spec 21950 21951 # A symbol stripping program. 21952 STRIP=$lt_STRIP 21953 21954 # Commands used to install an old-style archive. 21955 RANLIB=$lt_RANLIB 21956 old_postinstall_cmds=$lt_old_postinstall_cmds 21957 old_postuninstall_cmds=$lt_old_postuninstall_cmds 21958 21959 # Whether to use a lock for old archive extraction. 21960 lock_old_archive_extraction=$lock_old_archive_extraction 21961 21962 # A C compiler. 21963 LTCC=$lt_CC 21964 21965 # LTCC compiler flags. 21966 LTCFLAGS=$lt_CFLAGS 21967 21968 # Take the output of nm and produce a listing of raw symbols and C names. 21969 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21970 21971 # Transform the output of nm in a proper C declaration. 21972 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21973 21974 # Transform the output of nm into a list of symbols to manually relocate. 21975 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21976 21977 # Transform the output of nm in a C name address pair. 21978 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21979 21980 # Transform the output of nm in a C name address pair when lib prefix is needed. 21981 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21982 21983 # The name lister interface. 21984 nm_interface=$lt_lt_cv_nm_interface 21985 21986 # Specify filename containing input files for \$NM. 21987 nm_file_list_spec=$lt_nm_file_list_spec 21988 21989 # The root where to search for dependent libraries,and where our libraries should be installed. 21990 lt_sysroot=$lt_sysroot 21991 21992 # Command to truncate a binary pipe. 21993 lt_truncate_bin=$lt_lt_cv_truncate_bin 21994 21995 # The name of the directory that contains temporary libtool files. 21996 objdir=$objdir 21997 21998 # Used to examine libraries when file_magic_cmd begins with "file". 21999 MAGIC_CMD=$MAGIC_CMD 22000 22001 # Must we lock files when doing compilation? 22002 need_locks=$lt_need_locks 22003 22004 # Manifest tool. 22005 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22006 22007 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22008 DSYMUTIL=$lt_DSYMUTIL 22009 22010 # Tool to change global to local symbols on Mac OS X. 22011 NMEDIT=$lt_NMEDIT 22012 22013 # Tool to manipulate fat objects and archives on Mac OS X. 22014 LIPO=$lt_LIPO 22015 22016 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22017 OTOOL=$lt_OTOOL 22018 22019 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22020 OTOOL64=$lt_OTOOL64 22021 22022 # Old archive suffix (normally "a"). 22023 libext=$libext 22024 22025 # Shared library suffix (normally ".so"). 22026 shrext_cmds=$lt_shrext_cmds 22027 22028 # The commands to extract the exported symbol list from a shared archive. 22029 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22030 22031 # Variables whose values should be saved in libtool wrapper scripts and 22032 # restored at link time. 22033 variables_saved_for_relink=$lt_variables_saved_for_relink 22034 22035 # Do we need the "lib" prefix for modules? 22036 need_lib_prefix=$need_lib_prefix 22037 22038 # Do we need a version for libraries? 22039 need_version=$need_version 22040 22041 # Library versioning type. 22042 version_type=$version_type 22043 22044 # Shared library runtime path variable. 22045 runpath_var=$runpath_var 22046 22047 # Shared library path variable. 22048 shlibpath_var=$shlibpath_var 22049 22050 # Is shlibpath searched before the hard-coded library search path? 22051 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22052 22053 # Format of library name prefix. 22054 libname_spec=$lt_libname_spec 22055 22056 # List of archive names. First name is the real one, the rest are links. 22057 # The last name is the one that the linker finds with -lNAME 22058 library_names_spec=$lt_library_names_spec 22059 22060 # The coded name of the library, if different from the real name. 22061 soname_spec=$lt_soname_spec 22062 22063 # Permission mode override for installation of shared libraries. 22064 install_override_mode=$lt_install_override_mode 22065 22066 # Command to use after installation of a shared archive. 22067 postinstall_cmds=$lt_postinstall_cmds 22068 22069 # Command to use after uninstallation of a shared archive. 22070 postuninstall_cmds=$lt_postuninstall_cmds 22071 22072 # Commands used to finish a libtool library installation in a directory. 22073 finish_cmds=$lt_finish_cmds 22074 22075 # As "finish_cmds", except a single script fragment to be evaled but 22076 # not shown. 22077 finish_eval=$lt_finish_eval 22078 22079 # Whether we should hardcode library paths into libraries. 22080 hardcode_into_libs=$hardcode_into_libs 22081 22082 # Compile-time system search path for libraries. 22083 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22084 22085 # Detected run-time system search path for libraries. 22086 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22087 22088 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22089 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22090 22091 # Whether dlopen is supported. 22092 dlopen_support=$enable_dlopen 22093 22094 # Whether dlopen of programs is supported. 22095 dlopen_self=$enable_dlopen_self 22096 22097 # Whether dlopen of statically linked programs is supported. 22098 dlopen_self_static=$enable_dlopen_self_static 22099 22100 # Commands to strip libraries. 22101 old_striplib=$lt_old_striplib 22102 striplib=$lt_striplib 22103 22104 22105 # The linker used to build libraries. 22106 LD=$lt_LD 22107 22108 # How to create reloadable object files. 22109 reload_flag=$lt_reload_flag 22110 reload_cmds=$lt_reload_cmds 22111 22112 # Commands used to build an old-style archive. 22113 old_archive_cmds=$lt_old_archive_cmds 22114 22115 # A language specific compiler. 22116 CC=$lt_compiler 22117 22118 # Is the compiler the GNU compiler? 22119 with_gcc=$GCC 22120 22121 # Compiler flag to turn off builtin functions. 22122 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22123 22124 # Additional compiler flags for building library objects. 22125 pic_flag=$lt_lt_prog_compiler_pic 22126 22127 # How to pass a linker flag through the compiler. 22128 wl=$lt_lt_prog_compiler_wl 22129 22130 # Compiler flag to prevent dynamic linking. 22131 link_static_flag=$lt_lt_prog_compiler_static 22132 22133 # Does compiler simultaneously support -c and -o options? 22134 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22135 22136 # Whether or not to add -lc for building shared libraries. 22137 build_libtool_need_lc=$archive_cmds_need_lc 22138 22139 # Whether or not to disallow shared libs when runtime libs are static. 22140 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22141 22142 # Compiler flag to allow reflexive dlopens. 22143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22144 22145 # Compiler flag to generate shared objects directly from archives. 22146 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22147 22148 # Whether the compiler copes with passing no objects directly. 22149 compiler_needs_object=$lt_compiler_needs_object 22150 22151 # Create an old-style archive from a shared archive. 22152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22153 22154 # Create a temporary old-style archive to link instead of a shared archive. 22155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22156 22157 # Commands used to build a shared archive. 22158 archive_cmds=$lt_archive_cmds 22159 archive_expsym_cmds=$lt_archive_expsym_cmds 22160 22161 # Commands used to build a loadable module if different from building 22162 # a shared archive. 22163 module_cmds=$lt_module_cmds 22164 module_expsym_cmds=$lt_module_expsym_cmds 22165 22166 # Whether we are building with GNU ld or not. 22167 with_gnu_ld=$lt_with_gnu_ld 22168 22169 # Flag that allows shared libraries with undefined symbols to be built. 22170 allow_undefined_flag=$lt_allow_undefined_flag 22171 22172 # Flag that enforces no undefined symbols. 22173 no_undefined_flag=$lt_no_undefined_flag 22174 22175 # Flag to hardcode \$libdir into a binary during linking. 22176 # This must work even if \$libdir does not exist 22177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22178 22179 # Whether we need a single "-rpath" flag with a separated argument. 22180 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22181 22182 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22183 # DIR into the resulting binary. 22184 hardcode_direct=$hardcode_direct 22185 22186 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22187 # DIR into the resulting binary and the resulting library dependency is 22188 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 22189 # library is relocated. 22190 hardcode_direct_absolute=$hardcode_direct_absolute 22191 22192 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22193 # into the resulting binary. 22194 hardcode_minus_L=$hardcode_minus_L 22195 22196 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22197 # into the resulting binary. 22198 hardcode_shlibpath_var=$hardcode_shlibpath_var 22199 22200 # Set to "yes" if building a shared library automatically hardcodes DIR 22201 # into the library and all subsequent libraries and executables linked 22202 # against it. 22203 hardcode_automatic=$hardcode_automatic 22204 22205 # Set to yes if linker adds runtime paths of dependent libraries 22206 # to runtime path list. 22207 inherit_rpath=$inherit_rpath 22208 22209 # Whether libtool must link a program against all its dependency libraries. 22210 link_all_deplibs=$link_all_deplibs 22211 22212 # Set to "yes" if exported symbols are required. 22213 always_export_symbols=$always_export_symbols 22214 22215 # The commands to list exported symbols. 22216 export_symbols_cmds=$lt_export_symbols_cmds 22217 22218 # Symbols that should not be listed in the preloaded symbols. 22219 exclude_expsyms=$lt_exclude_expsyms 22220 22221 # Symbols that must always be exported. 22222 include_expsyms=$lt_include_expsyms 22223 22224 # Commands necessary for linking programs (against libraries) with templates. 22225 prelink_cmds=$lt_prelink_cmds 22226 22227 # Commands necessary for finishing linking programs. 22228 postlink_cmds=$lt_postlink_cmds 22229 22230 # Specify filename containing input files. 22231 file_list_spec=$lt_file_list_spec 22232 22233 # How to hardcode a shared library path into an executable. 22234 hardcode_action=$hardcode_action 22235 22236 # ### END LIBTOOL CONFIG 22237 22238 _LT_EOF 22239 22240 cat <<'_LT_EOF' >> "$cfgfile" 22241 22242 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22243 22244 # func_munge_path_list VARIABLE PATH 22245 # ----------------------------------- 22246 # VARIABLE is name of variable containing _space_ separated list of 22247 # directories to be munged by the contents of PATH, which is string 22248 # having a format: 22249 # "DIR[:DIR]:" 22250 # string "DIR[ DIR]" will be prepended to VARIABLE 22251 # ":DIR[:DIR]" 22252 # string "DIR[ DIR]" will be appended to VARIABLE 22253 # "DIRP[:DIRP]::[DIRA:]DIRA" 22254 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22255 # "DIRA[ DIRA]" will be appended to VARIABLE 22256 # "DIR[:DIR]" 22257 # VARIABLE will be replaced by "DIR[ DIR]" 22258 func_munge_path_list () 22259 { 22260 case x$2 in 22261 x) 22262 ;; 22263 *:) 22264 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22265 ;; 22266 x:*) 22267 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22268 ;; 22269 *::*) 22270 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22271 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22272 ;; 22273 *) 22274 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22275 ;; 22276 esac 22277 } 22278 22279 22280 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22281 func_cc_basename () 22282 { 22283 for cc_temp in $*""; do 22284 case $cc_temp in 22285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22287 \-*) ;; 22288 *) break;; 22289 esac 22290 done 22291 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22292 } 22293 22294 22295 # ### END FUNCTIONS SHARED WITH CONFIGURE 22296 22297 _LT_EOF 22298 22299 case $host_os in 22300 aix3*) 22301 cat <<\_LT_EOF >> "$cfgfile" 22302 # AIX sometimes has problems with the GCC collect2 program. For some 22303 # reason, if we set the COLLECT_NAMES environment variable, the problems 22304 # vanish in a puff of smoke. 22305 if test set != "${COLLECT_NAMES+set}"; then 22306 COLLECT_NAMES= 22307 export COLLECT_NAMES 22308 fi 22309 _LT_EOF 22310 ;; 22311 esac 22312 22313 22314 22315 ltmain=$ac_aux_dir/ltmain.sh 22316 22317 22318 # We use sed instead of cat because bash on DJGPP gets confused if 22319 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22320 # text mode, it properly converts lines to CR/LF. This bash problem 22321 # is reportedly fixed, but why not run on old versions too? 22322 sed '$q' "$ltmain" >> "$cfgfile" \ 22323 || (rm -f "$cfgfile"; exit 1) 22324 22325 mv -f "$cfgfile" "$ofile" || 22326 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22327 chmod +x "$ofile" 22328 22329 ;; 22330 22331 esac 22332 done # for ac_tag 22333 22334 22335 as_fn_exit 0 22336 _ACEOF 22337 ac_clean_files=$ac_clean_files_save 22338 22339 test $ac_write_fail = 0 || 22340 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22341 22342 22343 # configure is writing to config.log, and then calls config.status. 22344 # config.status does its own redirection, appending to config.log. 22345 # Unfortunately, on DOS this fails, as config.log is still kept open 22346 # by configure, so config.status won't be able to write to it; its 22347 # output is simply discarded. So we exec the FD to /dev/null, 22348 # effectively closing config.log, so it can be properly (re)opened and 22349 # appended to by config.status. When coming back to configure, we 22350 # need to make the FD available again. 22351 if test "$no_create" != yes; then 22352 ac_cs_success=: 22353 ac_config_status_args= 22354 test "$silent" = yes && 22355 ac_config_status_args="$ac_config_status_args --quiet" 22356 exec 5>/dev/null 22357 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22358 exec 5>>config.log 22359 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22360 # would make configure fail if this is the last instruction. 22361 $ac_cs_success || as_fn_exit 1 22362 fi 22363 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22365 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22366 fi 22367 22368 22369