1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for libuv 1.51.0. 4 # 5 # Report bugs to <https://github.com/libuv/libuv/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 as_nop=: 21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed `exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152 else \$as_nop 153 case \`(set -o) 2>/dev/null\` in 154 *posix*) set -o posix ;; 155 esac 156 fi 157 " 158 as_required="as_fn_return () { (exit \$1); } 159 as_fn_success () { as_fn_return 0; } 160 as_fn_failure () { as_fn_return 1; } 161 as_fn_ret_success () { return 0; } 162 as_fn_ret_failure () { return 1; } 163 164 exitcode=0 165 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 169 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 170 then : 171 172 else \$as_nop 173 exitcode=1; echo positional parameters were not saved. 174 fi 175 test x\$exitcode = x0 || exit 1 176 blah=\$(echo \$(echo blah)) 177 test x\"\$blah\" = xblah || exit 1 178 test -x / || exit 1" 179 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 180 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 181 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 182 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 183 184 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 185 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 186 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 188 PATH=/empty FPATH=/empty; export PATH FPATH 189 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 190 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 191 test \$(( 1 + 1 )) = 2 || exit 1" 192 if (eval "$as_required") 2>/dev/null 193 then : 194 as_have_required=yes 195 else $as_nop 196 as_have_required=no 197 fi 198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 199 then : 200 201 else $as_nop 202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 203 as_found=false 204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 205 do 206 IFS=$as_save_IFS 207 case $as_dir in #((( 208 '') as_dir=./ ;; 209 */) ;; 210 *) as_dir=$as_dir/ ;; 211 esac 212 as_found=: 213 case $as_dir in #( 214 /*) 215 for as_base in sh bash ksh sh5; do 216 # Try only shells that exist, to save several forks. 217 as_shell=$as_dir$as_base 218 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 220 then : 221 CONFIG_SHELL=$as_shell as_have_required=yes 222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 223 then : 224 break 2 225 fi 226 fi 227 done;; 228 esac 229 as_found=false 230 done 231 IFS=$as_save_IFS 232 if $as_found 233 then : 234 235 else $as_nop 236 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 238 then : 239 CONFIG_SHELL=$SHELL as_have_required=yes 240 fi 241 fi 242 243 244 if test "x$CONFIG_SHELL" != x 245 then : 246 export CONFIG_SHELL 247 # We cannot yet assume a decent shell, so we have to provide a 248 # neutralization value for shells without unset; and this also 249 # works around shells that cannot unset nonexistent variables. 250 # Preserve -v and -x to the replacement shell. 251 BASH_ENV=/dev/null 252 ENV=/dev/null 253 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 254 case $- in # (((( 255 *v*x* | *x*v* ) as_opts=-vx ;; 256 *v* ) as_opts=-v ;; 257 *x* ) as_opts=-x ;; 258 * ) as_opts= ;; 259 esac 260 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 261 # Admittedly, this is quite paranoid, since all the known shells bail 262 # out after a failed `exec'. 263 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 264 exit 255 265 fi 266 267 if test x$as_have_required = xno 268 then : 269 printf "%s\n" "$0: This script requires a shell more modern than all" 270 printf "%s\n" "$0: the shells that I found on your system." 271 if test ${ZSH_VERSION+y} ; then 272 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 276 $0: https://github.com/libuv/libuv/issues about your 277 $0: system, 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='libuv' 620 PACKAGE_TARNAME='libuv' 621 PACKAGE_VERSION='1.51.0' 622 PACKAGE_STRING='libuv 1.51.0' 623 PACKAGE_BUGREPORT='https://github.com/libuv/libuv/issues' 624 PACKAGE_URL='' 625 626 # Factoring default headers for most tests. 627 ac_includes_default="\ 628 #include <stddef.h> 629 #ifdef HAVE_STDIO_H 630 # include <stdio.h> 631 #endif 632 #ifdef HAVE_STDLIB_H 633 # include <stdlib.h> 634 #endif 635 #ifdef HAVE_STRING_H 636 # include <string.h> 637 #endif 638 #ifdef HAVE_INTTYPES_H 639 # include <inttypes.h> 640 #endif 641 #ifdef HAVE_STDINT_H 642 # include <stdint.h> 643 #endif 644 #ifdef HAVE_STRINGS_H 645 # include <strings.h> 646 #endif 647 #ifdef HAVE_SYS_TYPES_H 648 # include <sys/types.h> 649 #endif 650 #ifdef HAVE_SYS_STAT_H 651 # include <sys/stat.h> 652 #endif 653 #ifdef HAVE_UNISTD_H 654 # include <unistd.h> 655 #endif" 656 657 ac_header_c_list= 658 ac_subst_vars='am__EXEEXT_FALSE 659 am__EXEEXT_TRUE 660 LTLIBOBJS 661 LIBOBJS 662 WINNT_FALSE 663 WINNT_TRUE 664 SUNOS_FALSE 665 SUNOS_TRUE 666 OS400_FALSE 667 OS400_TRUE 668 OS390_FALSE 669 OS390_TRUE 670 OPENBSD_FALSE 671 OPENBSD_TRUE 672 NETBSD_FALSE 673 NETBSD_TRUE 674 MSYS_FALSE 675 MSYS_TRUE 676 LINUX_FALSE 677 LINUX_TRUE 678 HURD_FALSE 679 HURD_TRUE 680 HAIKU_FALSE 681 HAIKU_TRUE 682 FREEBSD_FALSE 683 FREEBSD_TRUE 684 DRAGONFLY_FALSE 685 DRAGONFLY_TRUE 686 DARWIN_FALSE 687 DARWIN_TRUE 688 CYGWIN_FALSE 689 CYGWIN_TRUE 690 ANDROID_FALSE 691 ANDROID_TRUE 692 AIX_FALSE 693 AIX_TRUE 694 PTHREAD_CFLAGS 695 PTHREAD_LIBS 696 PTHREAD_CC 697 ax_pthread_config 698 CPP 699 LT_SYS_LIBRARY_PATH 700 OTOOL64 701 OTOOL 702 LIPO 703 NMEDIT 704 DSYMUTIL 705 MANIFEST_TOOL 706 RANLIB 707 DLLTOOL 708 OBJDUMP 709 FILECMD 710 LN_S 711 NM 712 ac_ct_DUMPBIN 713 DUMPBIN 714 LD 715 FGREP 716 EGREP 717 GREP 718 SED 719 LIBTOOL 720 ac_ct_AR 721 AR 722 AM_CFLAGS 723 am__fastdepCC_FALSE 724 am__fastdepCC_TRUE 725 CCDEPMODE 726 am__nodep 727 AMDEPBACKSLASH 728 AMDEP_FALSE 729 AMDEP_TRUE 730 am__include 731 DEPDIR 732 OBJEXT 733 EXEEXT 734 ac_ct_CC 735 CPPFLAGS 736 LDFLAGS 737 CFLAGS 738 CC 739 host_os 740 host_vendor 741 host_cpu 742 host 743 build_os 744 build_vendor 745 build_cpu 746 build 747 MAINT 748 MAINTAINER_MODE_FALSE 749 MAINTAINER_MODE_TRUE 750 AM_BACKSLASH 751 AM_DEFAULT_VERBOSITY 752 AM_DEFAULT_V 753 AM_V 754 CSCOPE 755 ETAGS 756 CTAGS 757 am__untar 758 am__tar 759 AMTAR 760 am__leading_dot 761 SET_MAKE 762 AWK 763 mkdir_p 764 MKDIR_P 765 INSTALL_STRIP_PROGRAM 766 STRIP 767 install_sh 768 MAKEINFO 769 AUTOHEADER 770 AUTOMAKE 771 AUTOCONF 772 ACLOCAL 773 VERSION 774 PACKAGE 775 CYGPATH_W 776 am__isrc 777 INSTALL_DATA 778 INSTALL_SCRIPT 779 INSTALL_PROGRAM 780 target_alias 781 host_alias 782 build_alias 783 LIBS 784 ECHO_T 785 ECHO_N 786 ECHO_C 787 DEFS 788 mandir 789 localedir 790 libdir 791 psdir 792 pdfdir 793 dvidir 794 htmldir 795 infodir 796 docdir 797 oldincludedir 798 includedir 799 runstatedir 800 localstatedir 801 sharedstatedir 802 sysconfdir 803 datadir 804 datarootdir 805 libexecdir 806 sbindir 807 bindir 808 program_transform_name 809 prefix 810 exec_prefix 811 PACKAGE_URL 812 PACKAGE_BUGREPORT 813 PACKAGE_STRING 814 PACKAGE_VERSION 815 PACKAGE_TARNAME 816 PACKAGE_NAME 817 PATH_SEPARATOR 818 SHELL 819 am__quote' 820 ac_subst_files='' 821 ac_user_opts=' 822 enable_option_checking 823 enable_silent_rules 824 enable_maintainer_mode 825 enable_shared 826 enable_static 827 enable_dependency_tracking 828 with_pic 829 enable_fast_install 830 with_aix_soname 831 with_gnu_ld 832 with_sysroot 833 enable_libtool_lock 834 enable_largefile 835 ' 836 ac_precious_vars='build_alias 837 host_alias 838 target_alias 839 CC 840 CFLAGS 841 LDFLAGS 842 LIBS 843 CPPFLAGS 844 LT_SYS_LIBRARY_PATH 845 CPP' 846 847 848 # Initialize some variables set by options. 849 ac_init_help= 850 ac_init_version=false 851 ac_unrecognized_opts= 852 ac_unrecognized_sep= 853 # The variables have the same names as the options, with 854 # dashes changed to underlines. 855 cache_file=/dev/null 856 exec_prefix=NONE 857 no_create= 858 no_recursion= 859 prefix=NONE 860 program_prefix=NONE 861 program_suffix=NONE 862 program_transform_name=s,x,x, 863 silent= 864 site= 865 srcdir= 866 verbose= 867 x_includes=NONE 868 x_libraries=NONE 869 870 # Installation directory options. 871 # These are left unexpanded so users can "make install exec_prefix=/foo" 872 # and all the variables that are supposed to be based on exec_prefix 873 # by default will actually change. 874 # Use braces instead of parens because sh, perl, etc. also accept them. 875 # (The list follows the same order as the GNU Coding Standards.) 876 bindir='${exec_prefix}/bin' 877 sbindir='${exec_prefix}/sbin' 878 libexecdir='${exec_prefix}/libexec' 879 datarootdir='${prefix}/share' 880 datadir='${datarootdir}' 881 sysconfdir='${prefix}/etc' 882 sharedstatedir='${prefix}/com' 883 localstatedir='${prefix}/var' 884 runstatedir='${localstatedir}/run' 885 includedir='${prefix}/include' 886 oldincludedir='/usr/include' 887 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 888 infodir='${datarootdir}/info' 889 htmldir='${docdir}' 890 dvidir='${docdir}' 891 pdfdir='${docdir}' 892 psdir='${docdir}' 893 libdir='${exec_prefix}/lib' 894 localedir='${datarootdir}/locale' 895 mandir='${datarootdir}/man' 896 897 ac_prev= 898 ac_dashdash= 899 for ac_option 900 do 901 # If the previous option needs an argument, assign it. 902 if test -n "$ac_prev"; then 903 eval $ac_prev=\$ac_option 904 ac_prev= 905 continue 906 fi 907 908 case $ac_option in 909 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 910 *=) ac_optarg= ;; 911 *) ac_optarg=yes ;; 912 esac 913 914 case $ac_dashdash$ac_option in 915 --) 916 ac_dashdash=yes ;; 917 918 -bindir | --bindir | --bindi | --bind | --bin | --bi) 919 ac_prev=bindir ;; 920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 921 bindir=$ac_optarg ;; 922 923 -build | --build | --buil | --bui | --bu) 924 ac_prev=build_alias ;; 925 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 926 build_alias=$ac_optarg ;; 927 928 -cache-file | --cache-file | --cache-fil | --cache-fi \ 929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 930 ac_prev=cache_file ;; 931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 933 cache_file=$ac_optarg ;; 934 935 --config-cache | -C) 936 cache_file=config.cache ;; 937 938 -datadir | --datadir | --datadi | --datad) 939 ac_prev=datadir ;; 940 -datadir=* | --datadir=* | --datadi=* | --datad=*) 941 datadir=$ac_optarg ;; 942 943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 944 | --dataroo | --dataro | --datar) 945 ac_prev=datarootdir ;; 946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 948 datarootdir=$ac_optarg ;; 949 950 -disable-* | --disable-*) 951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 952 # Reject names that are not valid shell variable names. 953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 954 as_fn_error $? "invalid feature name: \`$ac_useropt'" 955 ac_useropt_orig=$ac_useropt 956 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 957 case $ac_user_opts in 958 *" 959 "enable_$ac_useropt" 960 "*) ;; 961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 962 ac_unrecognized_sep=', ';; 963 esac 964 eval enable_$ac_useropt=no ;; 965 966 -docdir | --docdir | --docdi | --doc | --do) 967 ac_prev=docdir ;; 968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 969 docdir=$ac_optarg ;; 970 971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 972 ac_prev=dvidir ;; 973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 974 dvidir=$ac_optarg ;; 975 976 -enable-* | --enable-*) 977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 978 # Reject names that are not valid shell variable names. 979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 980 as_fn_error $? "invalid feature name: \`$ac_useropt'" 981 ac_useropt_orig=$ac_useropt 982 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 983 case $ac_user_opts in 984 *" 985 "enable_$ac_useropt" 986 "*) ;; 987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 988 ac_unrecognized_sep=', ';; 989 esac 990 eval enable_$ac_useropt=\$ac_optarg ;; 991 992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 994 | --exec | --exe | --ex) 995 ac_prev=exec_prefix ;; 996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 998 | --exec=* | --exe=* | --ex=*) 999 exec_prefix=$ac_optarg ;; 1000 1001 -gas | --gas | --ga | --g) 1002 # Obsolete; use --with-gas. 1003 with_gas=yes ;; 1004 1005 -help | --help | --hel | --he | -h) 1006 ac_init_help=long ;; 1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1008 ac_init_help=recursive ;; 1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1010 ac_init_help=short ;; 1011 1012 -host | --host | --hos | --ho) 1013 ac_prev=host_alias ;; 1014 -host=* | --host=* | --hos=* | --ho=*) 1015 host_alias=$ac_optarg ;; 1016 1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1018 ac_prev=htmldir ;; 1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1020 | --ht=*) 1021 htmldir=$ac_optarg ;; 1022 1023 -includedir | --includedir | --includedi | --included | --include \ 1024 | --includ | --inclu | --incl | --inc) 1025 ac_prev=includedir ;; 1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1027 | --includ=* | --inclu=* | --incl=* | --inc=*) 1028 includedir=$ac_optarg ;; 1029 1030 -infodir | --infodir | --infodi | --infod | --info | --inf) 1031 ac_prev=infodir ;; 1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1033 infodir=$ac_optarg ;; 1034 1035 -libdir | --libdir | --libdi | --libd) 1036 ac_prev=libdir ;; 1037 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1038 libdir=$ac_optarg ;; 1039 1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1041 | --libexe | --libex | --libe) 1042 ac_prev=libexecdir ;; 1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1044 | --libexe=* | --libex=* | --libe=*) 1045 libexecdir=$ac_optarg ;; 1046 1047 -localedir | --localedir | --localedi | --localed | --locale) 1048 ac_prev=localedir ;; 1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1050 localedir=$ac_optarg ;; 1051 1052 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1053 | --localstate | --localstat | --localsta | --localst | --locals) 1054 ac_prev=localstatedir ;; 1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1057 localstatedir=$ac_optarg ;; 1058 1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1060 ac_prev=mandir ;; 1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1062 mandir=$ac_optarg ;; 1063 1064 -nfp | --nfp | --nf) 1065 # Obsolete; use --without-fp. 1066 with_fp=no ;; 1067 1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1069 | --no-cr | --no-c | -n) 1070 no_create=yes ;; 1071 1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1074 no_recursion=yes ;; 1075 1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1078 | --oldin | --oldi | --old | --ol | --o) 1079 ac_prev=oldincludedir ;; 1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1083 oldincludedir=$ac_optarg ;; 1084 1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1086 ac_prev=prefix ;; 1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1088 prefix=$ac_optarg ;; 1089 1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1091 | --program-pre | --program-pr | --program-p) 1092 ac_prev=program_prefix ;; 1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1095 program_prefix=$ac_optarg ;; 1096 1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1098 | --program-suf | --program-su | --program-s) 1099 ac_prev=program_suffix ;; 1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1102 program_suffix=$ac_optarg ;; 1103 1104 -program-transform-name | --program-transform-name \ 1105 | --program-transform-nam | --program-transform-na \ 1106 | --program-transform-n | --program-transform- \ 1107 | --program-transform | --program-transfor \ 1108 | --program-transfo | --program-transf \ 1109 | --program-trans | --program-tran \ 1110 | --progr-tra | --program-tr | --program-t) 1111 ac_prev=program_transform_name ;; 1112 -program-transform-name=* | --program-transform-name=* \ 1113 | --program-transform-nam=* | --program-transform-na=* \ 1114 | --program-transform-n=* | --program-transform-=* \ 1115 | --program-transform=* | --program-transfor=* \ 1116 | --program-transfo=* | --program-transf=* \ 1117 | --program-trans=* | --program-tran=* \ 1118 | --progr-tra=* | --program-tr=* | --program-t=*) 1119 program_transform_name=$ac_optarg ;; 1120 1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1122 ac_prev=pdfdir ;; 1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1124 pdfdir=$ac_optarg ;; 1125 1126 -psdir | --psdir | --psdi | --psd | --ps) 1127 ac_prev=psdir ;; 1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1129 psdir=$ac_optarg ;; 1130 1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1132 | -silent | --silent | --silen | --sile | --sil) 1133 silent=yes ;; 1134 1135 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1136 | --runstate | --runstat | --runsta | --runst | --runs \ 1137 | --run | --ru | --r) 1138 ac_prev=runstatedir ;; 1139 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1140 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1141 | --run=* | --ru=* | --r=*) 1142 runstatedir=$ac_optarg ;; 1143 1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1145 ac_prev=sbindir ;; 1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1147 | --sbi=* | --sb=*) 1148 sbindir=$ac_optarg ;; 1149 1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1152 | --sharedst | --shareds | --shared | --share | --shar \ 1153 | --sha | --sh) 1154 ac_prev=sharedstatedir ;; 1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1158 | --sha=* | --sh=*) 1159 sharedstatedir=$ac_optarg ;; 1160 1161 -site | --site | --sit) 1162 ac_prev=site ;; 1163 -site=* | --site=* | --sit=*) 1164 site=$ac_optarg ;; 1165 1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1167 ac_prev=srcdir ;; 1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1169 srcdir=$ac_optarg ;; 1170 1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1172 | --syscon | --sysco | --sysc | --sys | --sy) 1173 ac_prev=sysconfdir ;; 1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1176 sysconfdir=$ac_optarg ;; 1177 1178 -target | --target | --targe | --targ | --tar | --ta | --t) 1179 ac_prev=target_alias ;; 1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1181 target_alias=$ac_optarg ;; 1182 1183 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1184 verbose=yes ;; 1185 1186 -version | --version | --versio | --versi | --vers | -V) 1187 ac_init_version=: ;; 1188 1189 -with-* | --with-*) 1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1191 # Reject names that are not valid shell variable names. 1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1193 as_fn_error $? "invalid package name: \`$ac_useropt'" 1194 ac_useropt_orig=$ac_useropt 1195 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1196 case $ac_user_opts in 1197 *" 1198 "with_$ac_useropt" 1199 "*) ;; 1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1201 ac_unrecognized_sep=', ';; 1202 esac 1203 eval with_$ac_useropt=\$ac_optarg ;; 1204 1205 -without-* | --without-*) 1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1207 # Reject names that are not valid shell variable names. 1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1209 as_fn_error $? "invalid package name: \`$ac_useropt'" 1210 ac_useropt_orig=$ac_useropt 1211 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1212 case $ac_user_opts in 1213 *" 1214 "with_$ac_useropt" 1215 "*) ;; 1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1217 ac_unrecognized_sep=', ';; 1218 esac 1219 eval with_$ac_useropt=no ;; 1220 1221 --x) 1222 # Obsolete; use --with-x. 1223 with_x=yes ;; 1224 1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1226 | --x-incl | --x-inc | --x-in | --x-i) 1227 ac_prev=x_includes ;; 1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1230 x_includes=$ac_optarg ;; 1231 1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1234 ac_prev=x_libraries ;; 1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1237 x_libraries=$ac_optarg ;; 1238 1239 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1240 Try \`$0 --help' for more information" 1241 ;; 1242 1243 *=*) 1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1245 # Reject names that are not valid shell variable names. 1246 case $ac_envvar in #( 1247 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1249 esac 1250 eval $ac_envvar=\$ac_optarg 1251 export $ac_envvar ;; 1252 1253 *) 1254 # FIXME: should be removed in autoconf 3.0. 1255 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1257 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1259 ;; 1260 1261 esac 1262 done 1263 1264 if test -n "$ac_prev"; then 1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1266 as_fn_error $? "missing argument to $ac_option" 1267 fi 1268 1269 if test -n "$ac_unrecognized_opts"; then 1270 case $enable_option_checking in 1271 no) ;; 1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1273 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1274 esac 1275 fi 1276 1277 # Check all directory arguments for consistency. 1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1279 datadir sysconfdir sharedstatedir localstatedir includedir \ 1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1281 libdir localedir mandir runstatedir 1282 do 1283 eval ac_val=\$$ac_var 1284 # Remove trailing slashes. 1285 case $ac_val in 1286 */ ) 1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1288 eval $ac_var=\$ac_val;; 1289 esac 1290 # Be sure to have absolute directory names. 1291 case $ac_val in 1292 [\\/$]* | ?:[\\/]* ) continue;; 1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1294 esac 1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1296 done 1297 1298 # There might be people who depend on the old broken behavior: `$host' 1299 # used to hold the argument of --host etc. 1300 # FIXME: To remove some day. 1301 build=$build_alias 1302 host=$host_alias 1303 target=$target_alias 1304 1305 # FIXME: To remove some day. 1306 if test "x$host_alias" != x; then 1307 if test "x$build_alias" = x; then 1308 cross_compiling=maybe 1309 elif test "x$build_alias" != "x$host_alias"; then 1310 cross_compiling=yes 1311 fi 1312 fi 1313 1314 ac_tool_prefix= 1315 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1316 1317 test "$silent" = yes && exec 6>/dev/null 1318 1319 1320 ac_pwd=`pwd` && test -n "$ac_pwd" && 1321 ac_ls_di=`ls -di .` && 1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1323 as_fn_error $? "working directory cannot be determined" 1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1325 as_fn_error $? "pwd does not report name of working directory" 1326 1327 1328 # Find the source files, if location was not specified. 1329 if test -z "$srcdir"; then 1330 ac_srcdir_defaulted=yes 1331 # Try the directory containing this script, then the parent directory. 1332 ac_confdir=`$as_dirname -- "$as_myself" || 1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1334 X"$as_myself" : 'X\(//\)[^/]' \| \ 1335 X"$as_myself" : 'X\(//\)$' \| \ 1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1337 printf "%s\n" X"$as_myself" | 1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)[^/].*/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\/\)$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\).*/{ 1351 s//\1/ 1352 q 1353 } 1354 s/.*/./; q'` 1355 srcdir=$ac_confdir 1356 if test ! -r "$srcdir/$ac_unique_file"; then 1357 srcdir=.. 1358 fi 1359 else 1360 ac_srcdir_defaulted=no 1361 fi 1362 if test ! -r "$srcdir/$ac_unique_file"; then 1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1365 fi 1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1367 ac_abs_confdir=`( 1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1369 pwd)` 1370 # When building in place, set srcdir=. 1371 if test "$ac_abs_confdir" = "$ac_pwd"; then 1372 srcdir=. 1373 fi 1374 # Remove unnecessary trailing slashes from srcdir. 1375 # Double slashes in file names in object file debugging info 1376 # mess up M-x gdb in Emacs. 1377 case $srcdir in 1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1379 esac 1380 for ac_var in $ac_precious_vars; do 1381 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1382 eval ac_env_${ac_var}_value=\$${ac_var} 1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1384 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1385 done 1386 1387 # 1388 # Report the --help message. 1389 # 1390 if test "$ac_init_help" = "long"; then 1391 # Omit some internal or obsolete options to make the list less imposing. 1392 # This message is too long to be a string in the A/UX 3.1 sh. 1393 cat <<_ACEOF 1394 \`configure' configures libuv 1.51.0 to adapt to many kinds of systems. 1395 1396 Usage: $0 [OPTION]... [VAR=VALUE]... 1397 1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1399 VAR=VALUE. See below for descriptions of some of the useful variables. 1400 1401 Defaults for the options are specified in brackets. 1402 1403 Configuration: 1404 -h, --help display this help and exit 1405 --help=short display options specific to this package 1406 --help=recursive display the short help of all the included packages 1407 -V, --version display version information and exit 1408 -q, --quiet, --silent do not print \`checking ...' messages 1409 --cache-file=FILE cache test results in FILE [disabled] 1410 -C, --config-cache alias for \`--cache-file=config.cache' 1411 -n, --no-create do not create output files 1412 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1413 1414 Installation directories: 1415 --prefix=PREFIX install architecture-independent files in PREFIX 1416 [$ac_default_prefix] 1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1418 [PREFIX] 1419 1420 By default, \`make install' will install all the files in 1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1423 for instance \`--prefix=\$HOME'. 1424 1425 For better control, use the options below. 1426 1427 Fine tuning of the installation directories: 1428 --bindir=DIR user executables [EPREFIX/bin] 1429 --sbindir=DIR system admin executables [EPREFIX/sbin] 1430 --libexecdir=DIR program executables [EPREFIX/libexec] 1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1434 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1435 --libdir=DIR object code libraries [EPREFIX/lib] 1436 --includedir=DIR C header files [PREFIX/include] 1437 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1440 --infodir=DIR info documentation [DATAROOTDIR/info] 1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1442 --mandir=DIR man documentation [DATAROOTDIR/man] 1443 --docdir=DIR documentation root [DATAROOTDIR/doc/libuv] 1444 --htmldir=DIR html documentation [DOCDIR] 1445 --dvidir=DIR dvi documentation [DOCDIR] 1446 --pdfdir=DIR pdf documentation [DOCDIR] 1447 --psdir=DIR ps documentation [DOCDIR] 1448 _ACEOF 1449 1450 cat <<\_ACEOF 1451 1452 Program names: 1453 --program-prefix=PREFIX prepend PREFIX to installed program names 1454 --program-suffix=SUFFIX append SUFFIX to installed program names 1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1456 1457 System types: 1458 --build=BUILD configure for building on BUILD [guessed] 1459 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1460 _ACEOF 1461 fi 1462 1463 if test -n "$ac_init_help"; then 1464 case $ac_init_help in 1465 short | recursive ) echo "Configuration of libuv 1.51.0:";; 1466 esac 1467 cat <<\_ACEOF 1468 1469 Optional Features: 1470 --disable-option-checking ignore unrecognized --enable/--with options 1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1473 --enable-silent-rules less verbose build output (undo: "make V=1") 1474 --disable-silent-rules verbose build output (undo: "make V=0") 1475 --disable-maintainer-mode 1476 disable make rules and dependencies not useful (and 1477 sometimes confusing) to the casual installer 1478 --enable-shared[=PKGS] build shared libraries [default=yes] 1479 --enable-static[=PKGS] build static libraries [default=yes] 1480 --enable-dependency-tracking 1481 do not reject slow dependency extractors 1482 --disable-dependency-tracking 1483 speeds up one-time build 1484 --enable-fast-install[=PKGS] 1485 optimize for fast installation [default=yes] 1486 --disable-libtool-lock avoid locking (might break parallel builds) 1487 --disable-largefile omit support for large files 1488 1489 Optional Packages: 1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1492 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1493 both] 1494 --with-aix-soname=aix|svr4|both 1495 shared library versioning (aka "SONAME") variant to 1496 provide on AIX, [default=aix]. 1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1498 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1499 compiler's sysroot if not specified). 1500 1501 Some influential environment variables: 1502 CC C compiler command 1503 CFLAGS C compiler flags 1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1505 nonstandard directory <lib dir> 1506 LIBS libraries to pass to the linker, e.g. -l<library> 1507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1508 you have headers in a nonstandard directory <include dir> 1509 LT_SYS_LIBRARY_PATH 1510 User-defined run-time library search path. 1511 CPP C preprocessor 1512 1513 Use these variables to override the choices made by `configure' or to help 1514 it to find libraries and programs with nonstandard names/locations. 1515 1516 Report bugs to <https://github.com/libuv/libuv/issues>. 1517 _ACEOF 1518 ac_status=$? 1519 fi 1520 1521 if test "$ac_init_help" = "recursive"; then 1522 # If there are subdirs, report their specific --help. 1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1524 test -d "$ac_dir" || 1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1526 continue 1527 ac_builddir=. 1528 1529 case "$ac_dir" in 1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1531 *) 1532 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1533 # A ".." for each directory in $ac_dir_suffix. 1534 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1535 case $ac_top_builddir_sub in 1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1538 esac ;; 1539 esac 1540 ac_abs_top_builddir=$ac_pwd 1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1542 # for backward compatibility: 1543 ac_top_builddir=$ac_top_build_prefix 1544 1545 case $srcdir in 1546 .) # We are building in place. 1547 ac_srcdir=. 1548 ac_top_srcdir=$ac_top_builddir_sub 1549 ac_abs_top_srcdir=$ac_pwd ;; 1550 [\\/]* | ?:[\\/]* ) # Absolute name. 1551 ac_srcdir=$srcdir$ac_dir_suffix; 1552 ac_top_srcdir=$srcdir 1553 ac_abs_top_srcdir=$srcdir ;; 1554 *) # Relative name. 1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1556 ac_top_srcdir=$ac_top_build_prefix$srcdir 1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1558 esac 1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1560 1561 cd "$ac_dir" || { ac_status=$?; continue; } 1562 # Check for configure.gnu first; this name is used for a wrapper for 1563 # Metaconfig's "Configure" on case-insensitive file systems. 1564 if test -f "$ac_srcdir/configure.gnu"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1567 elif test -f "$ac_srcdir/configure"; then 1568 echo && 1569 $SHELL "$ac_srcdir/configure" --help=recursive 1570 else 1571 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1572 fi || ac_status=$? 1573 cd "$ac_pwd" || { ac_status=$?; break; } 1574 done 1575 fi 1576 1577 test -n "$ac_init_help" && exit $ac_status 1578 if $ac_init_version; then 1579 cat <<\_ACEOF 1580 libuv configure 1.51.0 1581 generated by GNU Autoconf 2.71 1582 1583 Copyright (C) 2021 Free Software Foundation, Inc. 1584 This configure script is free software; the Free Software Foundation 1585 gives unlimited permission to copy, distribute and modify it. 1586 _ACEOF 1587 exit 1588 fi 1589 1590 ## ------------------------ ## 1591 ## Autoconf initialization. ## 1592 ## ------------------------ ## 1593 1594 # ac_fn_c_try_compile LINENO 1595 # -------------------------- 1596 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1597 ac_fn_c_try_compile () 1598 { 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 rm -f conftest.$ac_objext conftest.beam 1601 if { { ac_try="$ac_compile" 1602 case "(($ac_try" in 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1604 *) ac_try_echo=$ac_try;; 1605 esac 1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1607 printf "%s\n" "$ac_try_echo"; } >&5 1608 (eval "$ac_compile") 2>conftest.err 1609 ac_status=$? 1610 if test -s conftest.err; then 1611 grep -v '^ *+' conftest.err >conftest.er1 1612 cat conftest.er1 >&5 1613 mv -f conftest.er1 conftest.err 1614 fi 1615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1616 test $ac_status = 0; } && { 1617 test -z "$ac_c_werror_flag" || 1618 test ! -s conftest.err 1619 } && test -s conftest.$ac_objext 1620 then : 1621 ac_retval=0 1622 else $as_nop 1623 printf "%s\n" "$as_me: failed program was:" >&5 1624 sed 's/^/| /' conftest.$ac_ext >&5 1625 1626 ac_retval=1 1627 fi 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 as_fn_set_status $ac_retval 1630 1631 } # ac_fn_c_try_compile 1632 1633 # ac_fn_c_try_link LINENO 1634 # ----------------------- 1635 # Try to link conftest.$ac_ext, and return whether this succeeded. 1636 ac_fn_c_try_link () 1637 { 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1640 if { { ac_try="$ac_link" 1641 case "(($ac_try" in 1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1643 *) ac_try_echo=$ac_try;; 1644 esac 1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1646 printf "%s\n" "$ac_try_echo"; } >&5 1647 (eval "$ac_link") 2>conftest.err 1648 ac_status=$? 1649 if test -s conftest.err; then 1650 grep -v '^ *+' conftest.err >conftest.er1 1651 cat conftest.er1 >&5 1652 mv -f conftest.er1 conftest.err 1653 fi 1654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1655 test $ac_status = 0; } && { 1656 test -z "$ac_c_werror_flag" || 1657 test ! -s conftest.err 1658 } && test -s conftest$ac_exeext && { 1659 test "$cross_compiling" = yes || 1660 test -x conftest$ac_exeext 1661 } 1662 then : 1663 ac_retval=0 1664 else $as_nop 1665 printf "%s\n" "$as_me: failed program was:" >&5 1666 sed 's/^/| /' conftest.$ac_ext >&5 1667 1668 ac_retval=1 1669 fi 1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1672 # interfere with the next link command; also delete a directory that is 1673 # left behind by Apple's compiler. We do this before executing the actions. 1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1676 as_fn_set_status $ac_retval 1677 1678 } # ac_fn_c_try_link 1679 1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1681 # ------------------------------------------------------- 1682 # Tests whether HEADER exists and can be compiled using the include files in 1683 # INCLUDES, setting the cache variable VAR accordingly. 1684 ac_fn_c_check_header_compile () 1685 { 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1688 printf %s "checking for $2... " >&6; } 1689 if eval test \${$3+y} 1690 then : 1691 printf %s "(cached) " >&6 1692 else $as_nop 1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1694 /* end confdefs.h. */ 1695 $4 1696 #include <$2> 1697 _ACEOF 1698 if ac_fn_c_try_compile "$LINENO" 1699 then : 1700 eval "$3=yes" 1701 else $as_nop 1702 eval "$3=no" 1703 fi 1704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1705 fi 1706 eval ac_res=\$$3 1707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1708 printf "%s\n" "$ac_res" >&6; } 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1710 1711 } # ac_fn_c_check_header_compile 1712 1713 # ac_fn_c_check_func LINENO FUNC VAR 1714 # ---------------------------------- 1715 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1716 ac_fn_c_check_func () 1717 { 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1720 printf %s "checking for $2... " >&6; } 1721 if eval test \${$3+y} 1722 then : 1723 printf %s "(cached) " >&6 1724 else $as_nop 1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1726 /* end confdefs.h. */ 1727 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1729 #define $2 innocuous_$2 1730 1731 /* System header to define __stub macros and hopefully few prototypes, 1732 which can conflict with char $2 (); below. */ 1733 1734 #include <limits.h> 1735 #undef $2 1736 1737 /* Override any GCC internal prototype to avoid an error. 1738 Use char because int might match the return type of a GCC 1739 builtin and then its argument prototype would still apply. */ 1740 #ifdef __cplusplus 1741 extern "C" 1742 #endif 1743 char $2 (); 1744 /* The GNU C library defines this for functions which it implements 1745 to always fail with ENOSYS. Some functions are actually named 1746 something starting with __ and the normal name is an alias. */ 1747 #if defined __stub_$2 || defined __stub___$2 1748 choke me 1749 #endif 1750 1751 int 1752 main (void) 1753 { 1754 return $2 (); 1755 ; 1756 return 0; 1757 } 1758 _ACEOF 1759 if ac_fn_c_try_link "$LINENO" 1760 then : 1761 eval "$3=yes" 1762 else $as_nop 1763 eval "$3=no" 1764 fi 1765 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1766 conftest$ac_exeext conftest.$ac_ext 1767 fi 1768 eval ac_res=\$$3 1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1770 printf "%s\n" "$ac_res" >&6; } 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 1773 } # ac_fn_c_check_func 1774 1775 # ac_fn_c_try_cpp LINENO 1776 # ---------------------- 1777 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1778 ac_fn_c_try_cpp () 1779 { 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 if { { ac_try="$ac_cpp conftest.$ac_ext" 1782 case "(($ac_try" in 1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1784 *) ac_try_echo=$ac_try;; 1785 esac 1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1787 printf "%s\n" "$ac_try_echo"; } >&5 1788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1789 ac_status=$? 1790 if test -s conftest.err; then 1791 grep -v '^ *+' conftest.err >conftest.er1 1792 cat conftest.er1 >&5 1793 mv -f conftest.er1 conftest.err 1794 fi 1795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1796 test $ac_status = 0; } > conftest.i && { 1797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1798 test ! -s conftest.err 1799 } 1800 then : 1801 ac_retval=0 1802 else $as_nop 1803 printf "%s\n" "$as_me: failed program was:" >&5 1804 sed 's/^/| /' conftest.$ac_ext >&5 1805 1806 ac_retval=1 1807 fi 1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1809 as_fn_set_status $ac_retval 1810 1811 } # ac_fn_c_try_cpp 1812 ac_configure_args_raw= 1813 for ac_arg 1814 do 1815 case $ac_arg in 1816 *\'*) 1817 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1818 esac 1819 as_fn_append ac_configure_args_raw " '$ac_arg'" 1820 done 1821 1822 case $ac_configure_args_raw in 1823 *$as_nl*) 1824 ac_safe_unquote= ;; 1825 *) 1826 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1827 ac_unsafe_a="$ac_unsafe_z#~" 1828 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1829 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1830 esac 1831 1832 cat >config.log <<_ACEOF 1833 This file contains any messages produced by compilers while 1834 running configure, to aid debugging if configure makes a mistake. 1835 1836 It was created by libuv $as_me 1.51.0, which was 1837 generated by GNU Autoconf 2.71. Invocation command line was 1838 1839 $ $0$ac_configure_args_raw 1840 1841 _ACEOF 1842 exec 5>>config.log 1843 { 1844 cat <<_ASUNAME 1845 ## --------- ## 1846 ## Platform. ## 1847 ## --------- ## 1848 1849 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1850 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1851 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1852 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1853 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1854 1855 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1856 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1857 1858 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1859 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1860 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1861 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1862 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1863 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1864 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1865 1866 _ASUNAME 1867 1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1869 for as_dir in $PATH 1870 do 1871 IFS=$as_save_IFS 1872 case $as_dir in #((( 1873 '') as_dir=./ ;; 1874 */) ;; 1875 *) as_dir=$as_dir/ ;; 1876 esac 1877 printf "%s\n" "PATH: $as_dir" 1878 done 1879 IFS=$as_save_IFS 1880 1881 } >&5 1882 1883 cat >&5 <<_ACEOF 1884 1885 1886 ## ----------- ## 1887 ## Core tests. ## 1888 ## ----------- ## 1889 1890 _ACEOF 1891 1892 1893 # Keep a trace of the command line. 1894 # Strip out --no-create and --no-recursion so they do not pile up. 1895 # Strip out --silent because we don't want to record it for future runs. 1896 # Also quote any args containing shell meta-characters. 1897 # Make two passes to allow for proper duplicate-argument suppression. 1898 ac_configure_args= 1899 ac_configure_args0= 1900 ac_configure_args1= 1901 ac_must_keep_next=false 1902 for ac_pass in 1 2 1903 do 1904 for ac_arg 1905 do 1906 case $ac_arg in 1907 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1909 | -silent | --silent | --silen | --sile | --sil) 1910 continue ;; 1911 *\'*) 1912 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1913 esac 1914 case $ac_pass in 1915 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1916 2) 1917 as_fn_append ac_configure_args1 " '$ac_arg'" 1918 if test $ac_must_keep_next = true; then 1919 ac_must_keep_next=false # Got value, back to normal. 1920 else 1921 case $ac_arg in 1922 *=* | --config-cache | -C | -disable-* | --disable-* \ 1923 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1924 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1925 | -with-* | --with-* | -without-* | --without-* | --x) 1926 case "$ac_configure_args0 " in 1927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1928 esac 1929 ;; 1930 -* ) ac_must_keep_next=true ;; 1931 esac 1932 fi 1933 as_fn_append ac_configure_args " '$ac_arg'" 1934 ;; 1935 esac 1936 done 1937 done 1938 { ac_configure_args0=; unset ac_configure_args0;} 1939 { ac_configure_args1=; unset ac_configure_args1;} 1940 1941 # When interrupted or exit'd, cleanup temporary files, and complete 1942 # config.log. We remove comments because anyway the quotes in there 1943 # would cause problems or look ugly. 1944 # WARNING: Use '\'' to represent an apostrophe within the trap. 1945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1946 trap 'exit_status=$? 1947 # Sanitize IFS. 1948 IFS=" "" $as_nl" 1949 # Save into config.log some information that might help in debugging. 1950 { 1951 echo 1952 1953 printf "%s\n" "## ---------------- ## 1954 ## Cache variables. ## 1955 ## ---------------- ##" 1956 echo 1957 # The following way of writing the cache mishandles newlines in values, 1958 ( 1959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1960 eval ac_val=\$$ac_var 1961 case $ac_val in #( 1962 *${as_nl}*) 1963 case $ac_var in #( 1964 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1965 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1966 esac 1967 case $ac_var in #( 1968 _ | IFS | as_nl) ;; #( 1969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1970 *) { eval $ac_var=; unset $ac_var;} ;; 1971 esac ;; 1972 esac 1973 done 1974 (set) 2>&1 | 1975 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1976 *${as_nl}ac_space=\ *) 1977 sed -n \ 1978 "s/'\''/'\''\\\\'\'''\''/g; 1979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1980 ;; #( 1981 *) 1982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1983 ;; 1984 esac | 1985 sort 1986 ) 1987 echo 1988 1989 printf "%s\n" "## ----------------- ## 1990 ## Output variables. ## 1991 ## ----------------- ##" 1992 echo 1993 for ac_var in $ac_subst_vars 1994 do 1995 eval ac_val=\$$ac_var 1996 case $ac_val in 1997 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1998 esac 1999 printf "%s\n" "$ac_var='\''$ac_val'\''" 2000 done | sort 2001 echo 2002 2003 if test -n "$ac_subst_files"; then 2004 printf "%s\n" "## ------------------- ## 2005 ## File substitutions. ## 2006 ## ------------------- ##" 2007 echo 2008 for ac_var in $ac_subst_files 2009 do 2010 eval ac_val=\$$ac_var 2011 case $ac_val in 2012 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2013 esac 2014 printf "%s\n" "$ac_var='\''$ac_val'\''" 2015 done | sort 2016 echo 2017 fi 2018 2019 if test -s confdefs.h; then 2020 printf "%s\n" "## ----------- ## 2021 ## confdefs.h. ## 2022 ## ----------- ##" 2023 echo 2024 cat confdefs.h 2025 echo 2026 fi 2027 test "$ac_signal" != 0 && 2028 printf "%s\n" "$as_me: caught signal $ac_signal" 2029 printf "%s\n" "$as_me: exit $exit_status" 2030 } >&5 2031 rm -f core *.core core.conftest.* && 2032 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2033 exit $exit_status 2034 ' 0 2035 for ac_signal in 1 2 13 15; do 2036 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2037 done 2038 ac_signal=0 2039 2040 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2041 rm -f -r conftest* confdefs.h 2042 2043 printf "%s\n" "/* confdefs.h */" > confdefs.h 2044 2045 # Predefined preprocessor variables. 2046 2047 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2048 2049 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2050 2051 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2052 2053 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2054 2055 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2056 2057 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2058 2059 2060 # Let the site file select an alternate cache file if it wants to. 2061 # Prefer an explicitly selected file to automatically selected ones. 2062 if test -n "$CONFIG_SITE"; then 2063 ac_site_files="$CONFIG_SITE" 2064 elif test "x$prefix" != xNONE; then 2065 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2066 else 2067 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2068 fi 2069 2070 for ac_site_file in $ac_site_files 2071 do 2072 case $ac_site_file in #( 2073 */*) : 2074 ;; #( 2075 *) : 2076 ac_site_file=./$ac_site_file ;; 2077 esac 2078 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2080 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2081 sed 's/^/| /' "$ac_site_file" >&5 2082 . "$ac_site_file" \ 2083 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2084 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2085 as_fn_error $? "failed to load site script $ac_site_file 2086 See \`config.log' for more details" "$LINENO" 5; } 2087 fi 2088 done 2089 2090 if test -r "$cache_file"; then 2091 # Some versions of bash will fail to source /dev/null (special files 2092 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2093 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2095 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2096 case $cache_file in 2097 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2098 *) . "./$cache_file";; 2099 esac 2100 fi 2101 else 2102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2103 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2104 >$cache_file 2105 fi 2106 2107 # Test code for whether the C compiler supports C89 (global declarations) 2108 ac_c_conftest_c89_globals=' 2109 /* Does the compiler advertise C89 conformance? 2110 Do not test the value of __STDC__, because some compilers set it to 0 2111 while being otherwise adequately conformant. */ 2112 #if !defined __STDC__ 2113 # error "Compiler does not advertise C89 conformance" 2114 #endif 2115 2116 #include <stddef.h> 2117 #include <stdarg.h> 2118 struct stat; 2119 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2120 struct buf { int x; }; 2121 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2122 static char *e (p, i) 2123 char **p; 2124 int i; 2125 { 2126 return p[i]; 2127 } 2128 static char *f (char * (*g) (char **, int), char **p, ...) 2129 { 2130 char *s; 2131 va_list v; 2132 va_start (v,p); 2133 s = g (p, va_arg (v,int)); 2134 va_end (v); 2135 return s; 2136 } 2137 2138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2139 function prototypes and stuff, but not \xHH hex character constants. 2140 These do not provoke an error unfortunately, instead are silently treated 2141 as an "x". The following induces an error, until -std is added to get 2142 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2143 array size at least. It is necessary to write \x00 == 0 to get something 2144 that is true only with -std. */ 2145 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2146 2147 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2148 inside strings and character constants. */ 2149 #define FOO(x) '\''x'\'' 2150 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2151 2152 int test (int i, double x); 2153 struct s1 {int (*f) (int a);}; 2154 struct s2 {int (*f) (double a);}; 2155 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2156 int, int);' 2157 2158 # Test code for whether the C compiler supports C89 (body of main). 2159 ac_c_conftest_c89_main=' 2160 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2161 ' 2162 2163 # Test code for whether the C compiler supports C99 (global declarations) 2164 ac_c_conftest_c99_globals=' 2165 // Does the compiler advertise C99 conformance? 2166 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2167 # error "Compiler does not advertise C99 conformance" 2168 #endif 2169 2170 #include <stdbool.h> 2171 extern int puts (const char *); 2172 extern int printf (const char *, ...); 2173 extern int dprintf (int, const char *, ...); 2174 extern void *malloc (size_t); 2175 2176 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2177 // dprintf is used instead of fprintf to avoid needing to declare 2178 // FILE and stderr. 2179 #define debug(...) dprintf (2, __VA_ARGS__) 2180 #define showlist(...) puts (#__VA_ARGS__) 2181 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2182 static void 2183 test_varargs_macros (void) 2184 { 2185 int x = 1234; 2186 int y = 5678; 2187 debug ("Flag"); 2188 debug ("X = %d\n", x); 2189 showlist (The first, second, and third items.); 2190 report (x>y, "x is %d but y is %d", x, y); 2191 } 2192 2193 // Check long long types. 2194 #define BIG64 18446744073709551615ull 2195 #define BIG32 4294967295ul 2196 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2197 #if !BIG_OK 2198 #error "your preprocessor is broken" 2199 #endif 2200 #if BIG_OK 2201 #else 2202 #error "your preprocessor is broken" 2203 #endif 2204 static long long int bignum = -9223372036854775807LL; 2205 static unsigned long long int ubignum = BIG64; 2206 2207 struct incomplete_array 2208 { 2209 int datasize; 2210 double data[]; 2211 }; 2212 2213 struct named_init { 2214 int number; 2215 const wchar_t *name; 2216 double average; 2217 }; 2218 2219 typedef const char *ccp; 2220 2221 static inline int 2222 test_restrict (ccp restrict text) 2223 { 2224 // See if C++-style comments work. 2225 // Iterate through items via the restricted pointer. 2226 // Also check for declarations in for loops. 2227 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2228 continue; 2229 return 0; 2230 } 2231 2232 // Check varargs and va_copy. 2233 static bool 2234 test_varargs (const char *format, ...) 2235 { 2236 va_list args; 2237 va_start (args, format); 2238 va_list args_copy; 2239 va_copy (args_copy, args); 2240 2241 const char *str = ""; 2242 int number = 0; 2243 float fnumber = 0; 2244 2245 while (*format) 2246 { 2247 switch (*format++) 2248 { 2249 case '\''s'\'': // string 2250 str = va_arg (args_copy, const char *); 2251 break; 2252 case '\''d'\'': // int 2253 number = va_arg (args_copy, int); 2254 break; 2255 case '\''f'\'': // float 2256 fnumber = va_arg (args_copy, double); 2257 break; 2258 default: 2259 break; 2260 } 2261 } 2262 va_end (args_copy); 2263 va_end (args); 2264 2265 return *str && number && fnumber; 2266 } 2267 ' 2268 2269 # Test code for whether the C compiler supports C99 (body of main). 2270 ac_c_conftest_c99_main=' 2271 // Check bool. 2272 _Bool success = false; 2273 success |= (argc != 0); 2274 2275 // Check restrict. 2276 if (test_restrict ("String literal") == 0) 2277 success = true; 2278 char *restrict newvar = "Another string"; 2279 2280 // Check varargs. 2281 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2282 test_varargs_macros (); 2283 2284 // Check flexible array members. 2285 struct incomplete_array *ia = 2286 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2287 ia->datasize = 10; 2288 for (int i = 0; i < ia->datasize; ++i) 2289 ia->data[i] = i * 1.234; 2290 2291 // Check named initializers. 2292 struct named_init ni = { 2293 .number = 34, 2294 .name = L"Test wide string", 2295 .average = 543.34343, 2296 }; 2297 2298 ni.number = 58; 2299 2300 int dynamic_array[ni.number]; 2301 dynamic_array[0] = argv[0][0]; 2302 dynamic_array[ni.number - 1] = 543; 2303 2304 // work around unused variable warnings 2305 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2306 || dynamic_array[ni.number - 1] != 543); 2307 ' 2308 2309 # Test code for whether the C compiler supports C11 (global declarations) 2310 ac_c_conftest_c11_globals=' 2311 // Does the compiler advertise C11 conformance? 2312 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2313 # error "Compiler does not advertise C11 conformance" 2314 #endif 2315 2316 // Check _Alignas. 2317 char _Alignas (double) aligned_as_double; 2318 char _Alignas (0) no_special_alignment; 2319 extern char aligned_as_int; 2320 char _Alignas (0) _Alignas (int) aligned_as_int; 2321 2322 // Check _Alignof. 2323 enum 2324 { 2325 int_alignment = _Alignof (int), 2326 int_array_alignment = _Alignof (int[100]), 2327 char_alignment = _Alignof (char) 2328 }; 2329 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2330 2331 // Check _Noreturn. 2332 int _Noreturn does_not_return (void) { for (;;) continue; } 2333 2334 // Check _Static_assert. 2335 struct test_static_assert 2336 { 2337 int x; 2338 _Static_assert (sizeof (int) <= sizeof (long int), 2339 "_Static_assert does not work in struct"); 2340 long int y; 2341 }; 2342 2343 // Check UTF-8 literals. 2344 #define u8 syntax error! 2345 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2346 2347 // Check duplicate typedefs. 2348 typedef long *long_ptr; 2349 typedef long int *long_ptr; 2350 typedef long_ptr long_ptr; 2351 2352 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2353 struct anonymous 2354 { 2355 union { 2356 struct { int i; int j; }; 2357 struct { int k; long int l; } w; 2358 }; 2359 int m; 2360 } v1; 2361 ' 2362 2363 # Test code for whether the C compiler supports C11 (body of main). 2364 ac_c_conftest_c11_main=' 2365 _Static_assert ((offsetof (struct anonymous, i) 2366 == offsetof (struct anonymous, w.k)), 2367 "Anonymous union alignment botch"); 2368 v1.i = 2; 2369 v1.w.k = 5; 2370 ok |= v1.i != 5; 2371 ' 2372 2373 # Test code for whether the C compiler supports C11 (complete). 2374 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2375 ${ac_c_conftest_c99_globals} 2376 ${ac_c_conftest_c11_globals} 2377 2378 int 2379 main (int argc, char **argv) 2380 { 2381 int ok = 0; 2382 ${ac_c_conftest_c89_main} 2383 ${ac_c_conftest_c99_main} 2384 ${ac_c_conftest_c11_main} 2385 return ok; 2386 } 2387 " 2388 2389 # Test code for whether the C compiler supports C99 (complete). 2390 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2391 ${ac_c_conftest_c99_globals} 2392 2393 int 2394 main (int argc, char **argv) 2395 { 2396 int ok = 0; 2397 ${ac_c_conftest_c89_main} 2398 ${ac_c_conftest_c99_main} 2399 return ok; 2400 } 2401 " 2402 2403 # Test code for whether the C compiler supports C89 (complete). 2404 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2405 2406 int 2407 main (int argc, char **argv) 2408 { 2409 int ok = 0; 2410 ${ac_c_conftest_c89_main} 2411 return ok; 2412 } 2413 " 2414 2415 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2416 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2417 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2418 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2419 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2420 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2421 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2422 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2423 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2424 2425 # Auxiliary files required by this configure script. 2426 ac_aux_files="ltmain.sh ar-lib compile config.guess config.sub missing install-sh" 2427 2428 # Locations in which to look for auxiliary files. 2429 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2430 2431 # Search for a directory containing all of the required auxiliary files, 2432 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2433 # If we don't find one directory that contains all the files we need, 2434 # we report the set of missing files from the *first* directory in 2435 # $ac_aux_dir_candidates and give up. 2436 ac_missing_aux_files="" 2437 ac_first_candidate=: 2438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2440 as_found=false 2441 for as_dir in $ac_aux_dir_candidates 2442 do 2443 IFS=$as_save_IFS 2444 case $as_dir in #((( 2445 '') as_dir=./ ;; 2446 */) ;; 2447 *) as_dir=$as_dir/ ;; 2448 esac 2449 as_found=: 2450 2451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2452 ac_aux_dir_found=yes 2453 ac_install_sh= 2454 for ac_aux in $ac_aux_files 2455 do 2456 # As a special case, if "install-sh" is required, that requirement 2457 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2458 # and $ac_install_sh is set appropriately for whichever one is found. 2459 if test x"$ac_aux" = x"install-sh" 2460 then 2461 if test -f "${as_dir}install-sh"; then 2462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2463 ac_install_sh="${as_dir}install-sh -c" 2464 elif test -f "${as_dir}install.sh"; then 2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2466 ac_install_sh="${as_dir}install.sh -c" 2467 elif test -f "${as_dir}shtool"; then 2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2469 ac_install_sh="${as_dir}shtool install -c" 2470 else 2471 ac_aux_dir_found=no 2472 if $ac_first_candidate; then 2473 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2474 else 2475 break 2476 fi 2477 fi 2478 else 2479 if test -f "${as_dir}${ac_aux}"; then 2480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2481 else 2482 ac_aux_dir_found=no 2483 if $ac_first_candidate; then 2484 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2485 else 2486 break 2487 fi 2488 fi 2489 fi 2490 done 2491 if test "$ac_aux_dir_found" = yes; then 2492 ac_aux_dir="$as_dir" 2493 break 2494 fi 2495 ac_first_candidate=false 2496 2497 as_found=false 2498 done 2499 IFS=$as_save_IFS 2500 if $as_found 2501 then : 2502 2503 else $as_nop 2504 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2505 fi 2506 2507 2508 # These three variables are undocumented and unsupported, 2509 # and are intended to be withdrawn in a future Autoconf release. 2510 # They can cause serious problems if a builder's source tree is in a directory 2511 # whose full name contains unusual characters. 2512 if test -f "${ac_aux_dir}config.guess"; then 2513 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2514 fi 2515 if test -f "${ac_aux_dir}config.sub"; then 2516 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2517 fi 2518 if test -f "$ac_aux_dir/configure"; then 2519 ac_configure="$SHELL ${ac_aux_dir}configure" 2520 fi 2521 2522 # Check that the precious variables saved in the cache have kept the same 2523 # value. 2524 ac_cache_corrupted=false 2525 for ac_var in $ac_precious_vars; do 2526 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2527 eval ac_new_set=\$ac_env_${ac_var}_set 2528 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2529 eval ac_new_val=\$ac_env_${ac_var}_value 2530 case $ac_old_set,$ac_new_set in 2531 set,) 2532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2533 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2534 ac_cache_corrupted=: ;; 2535 ,set) 2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2537 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2538 ac_cache_corrupted=: ;; 2539 ,);; 2540 *) 2541 if test "x$ac_old_val" != "x$ac_new_val"; then 2542 # differences in whitespace do not lead to failure. 2543 ac_old_val_w=`echo x $ac_old_val` 2544 ac_new_val_w=`echo x $ac_new_val` 2545 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2547 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2548 ac_cache_corrupted=: 2549 else 2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2551 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2552 eval $ac_var=\$ac_old_val 2553 fi 2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2555 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2557 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2558 fi;; 2559 esac 2560 # Pass precious variables to config.status. 2561 if test "$ac_new_set" = set; then 2562 case $ac_new_val in 2563 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2564 *) ac_arg=$ac_var=$ac_new_val ;; 2565 esac 2566 case " $ac_configure_args " in 2567 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2568 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2569 esac 2570 fi 2571 done 2572 if $ac_cache_corrupted; then 2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2574 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2576 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2577 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2578 and start over" "$LINENO" 5 2579 fi 2580 ## -------------------- ## 2581 ## Main body of script. ## 2582 ## -------------------- ## 2583 2584 ac_ext=c 2585 ac_cpp='$CPP $CPPFLAGS' 2586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2588 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2589 2590 2591 2592 2593 2594 # AS_CASE(WORD, [PATTERN1], [IF-MATCHED1]...[DEFAULT]) 2595 # ---------------------------------------------------- 2596 # Expand into 2597 # | case WORD in 2598 # | PATTERN1) IF-MATCHED1 ;; 2599 # | ... 2600 # | *) DEFAULT ;; 2601 # | esac 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 am__api_version='1.16' 2660 2661 2662 2663 # Find a good install program. We prefer a C program (faster), 2664 # so one script is as good as another. But avoid the broken or 2665 # incompatible versions: 2666 # SysV /etc/install, /usr/sbin/install 2667 # SunOS /usr/etc/install 2668 # IRIX /sbin/install 2669 # AIX /bin/install 2670 # AmigaOS /C/install, which installs bootblocks on floppy discs 2671 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2672 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2673 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2674 # OS/2's system install, which has a completely different semantic 2675 # ./install, which can be erroneously created by make from ./install.sh. 2676 # Reject install programs that cannot install multiple files. 2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2678 printf %s "checking for a BSD-compatible install... " >&6; } 2679 if test -z "$INSTALL"; then 2680 if test ${ac_cv_path_install+y} 2681 then : 2682 printf %s "(cached) " >&6 2683 else $as_nop 2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685 for as_dir in $PATH 2686 do 2687 IFS=$as_save_IFS 2688 case $as_dir in #((( 2689 '') as_dir=./ ;; 2690 */) ;; 2691 *) as_dir=$as_dir/ ;; 2692 esac 2693 # Account for fact that we put trailing slashes in our PATH walk. 2694 case $as_dir in #(( 2695 ./ | /[cC]/* | \ 2696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2698 /usr/ucb/* ) ;; 2699 *) 2700 # OSF1 and SCO ODT 3.0 have their own names for install. 2701 # Don't use installbsd from OSF since it installs stuff as root 2702 # by default. 2703 for ac_prog in ginstall scoinst install; do 2704 for ac_exec_ext in '' $ac_executable_extensions; do 2705 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2706 if test $ac_prog = install && 2707 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2708 # AIX install. It has an incompatible calling convention. 2709 : 2710 elif test $ac_prog = install && 2711 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2712 # program-specific install script used by HP pwplus--don't use. 2713 : 2714 else 2715 rm -rf conftest.one conftest.two conftest.dir 2716 echo one > conftest.one 2717 echo two > conftest.two 2718 mkdir conftest.dir 2719 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2720 test -s conftest.one && test -s conftest.two && 2721 test -s conftest.dir/conftest.one && 2722 test -s conftest.dir/conftest.two 2723 then 2724 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2725 break 3 2726 fi 2727 fi 2728 fi 2729 done 2730 done 2731 ;; 2732 esac 2733 2734 done 2735 IFS=$as_save_IFS 2736 2737 rm -rf conftest.one conftest.two conftest.dir 2738 2739 fi 2740 if test ${ac_cv_path_install+y}; then 2741 INSTALL=$ac_cv_path_install 2742 else 2743 # As a last resort, use the slow shell script. Don't cache a 2744 # value for INSTALL within a source directory, because that will 2745 # break other packages using the cache if that directory is 2746 # removed, or if the value is a relative name. 2747 INSTALL=$ac_install_sh 2748 fi 2749 fi 2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2751 printf "%s\n" "$INSTALL" >&6; } 2752 2753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2754 # It thinks the first close brace ends the variable substitution. 2755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2756 2757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2758 2759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2760 2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2762 printf %s "checking whether build environment is sane... " >&6; } 2763 # Reject unsafe characters in $srcdir or the absolute working directory 2764 # name. Accept space and tab only in the latter. 2765 am_lf=' 2766 ' 2767 case `pwd` in 2768 *[\\\"\#\$\&\'\`$am_lf]*) 2769 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2770 esac 2771 case $srcdir in 2772 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2773 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2774 esac 2775 2776 # Do 'set' in a subshell so we don't clobber the current shell's 2777 # arguments. Must try -L first in case configure is actually a 2778 # symlink; some systems play weird games with the mod time of symlinks 2779 # (eg FreeBSD returns the mod time of the symlink's containing 2780 # directory). 2781 if ( 2782 am_has_slept=no 2783 for am_try in 1 2; do 2784 echo "timestamp, slept: $am_has_slept" > conftest.file 2785 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2786 if test "$*" = "X"; then 2787 # -L didn't work. 2788 set X `ls -t "$srcdir/configure" conftest.file` 2789 fi 2790 if test "$*" != "X $srcdir/configure conftest.file" \ 2791 && test "$*" != "X conftest.file $srcdir/configure"; then 2792 2793 # If neither matched, then we have a broken ls. This can happen 2794 # if, for instance, CONFIG_SHELL is bash and it inherits a 2795 # broken ls alias from the environment. This has actually 2796 # happened. Such a system could not be considered "sane". 2797 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2798 alias in your environment" "$LINENO" 5 2799 fi 2800 if test "$2" = conftest.file || test $am_try -eq 2; then 2801 break 2802 fi 2803 # Just in case. 2804 sleep 1 2805 am_has_slept=yes 2806 done 2807 test "$2" = conftest.file 2808 ) 2809 then 2810 # Ok. 2811 : 2812 else 2813 as_fn_error $? "newly created file is older than distributed files! 2814 Check your system clock" "$LINENO" 5 2815 fi 2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2817 printf "%s\n" "yes" >&6; } 2818 # If we didn't sleep, we still need to ensure time stamps of config.status and 2819 # generated files are strictly newer. 2820 am_sleep_pid= 2821 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2822 ( sleep 1 ) & 2823 am_sleep_pid=$! 2824 fi 2825 2826 rm -f conftest.file 2827 2828 test "$program_prefix" != NONE && 2829 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2830 # Use a double $ so make ignores it. 2831 test "$program_suffix" != NONE && 2832 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2833 # Double any \ or $. 2834 # By default was `s,x,x', remove it if useless. 2835 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2836 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2837 2838 2839 # Expand $ac_aux_dir to an absolute path. 2840 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2841 2842 2843 if test x"${MISSING+set}" != xset; then 2844 MISSING="\${SHELL} '$am_aux_dir/missing'" 2845 fi 2846 # Use eval to expand $SHELL 2847 if eval "$MISSING --is-lightweight"; then 2848 am_missing_run="$MISSING " 2849 else 2850 am_missing_run= 2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2852 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2853 fi 2854 2855 if test x"${install_sh+set}" != xset; then 2856 case $am_aux_dir in 2857 *\ * | *\ *) 2858 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2859 *) 2860 install_sh="\${SHELL} $am_aux_dir/install-sh" 2861 esac 2862 fi 2863 2864 # Installed binaries are usually stripped using 'strip' when the user 2865 # run "make install-strip". However 'strip' might not be the right 2866 # tool to use in cross-compilation environments, therefore Automake 2867 # will honor the 'STRIP' environment variable to overrule this program. 2868 if test "$cross_compiling" != no; then 2869 if test -n "$ac_tool_prefix"; then 2870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2871 set dummy ${ac_tool_prefix}strip; ac_word=$2 2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2873 printf %s "checking for $ac_word... " >&6; } 2874 if test ${ac_cv_prog_STRIP+y} 2875 then : 2876 printf %s "(cached) " >&6 2877 else $as_nop 2878 if test -n "$STRIP"; then 2879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2880 else 2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882 for as_dir in $PATH 2883 do 2884 IFS=$as_save_IFS 2885 case $as_dir in #((( 2886 '') as_dir=./ ;; 2887 */) ;; 2888 *) as_dir=$as_dir/ ;; 2889 esac 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896 done 2897 done 2898 IFS=$as_save_IFS 2899 2900 fi 2901 fi 2902 STRIP=$ac_cv_prog_STRIP 2903 if test -n "$STRIP"; then 2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2905 printf "%s\n" "$STRIP" >&6; } 2906 else 2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2908 printf "%s\n" "no" >&6; } 2909 fi 2910 2911 2912 fi 2913 if test -z "$ac_cv_prog_STRIP"; then 2914 ac_ct_STRIP=$STRIP 2915 # Extract the first word of "strip", so it can be a program name with args. 2916 set dummy strip; ac_word=$2 2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2918 printf %s "checking for $ac_word... " >&6; } 2919 if test ${ac_cv_prog_ac_ct_STRIP+y} 2920 then : 2921 printf %s "(cached) " >&6 2922 else $as_nop 2923 if test -n "$ac_ct_STRIP"; then 2924 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2925 else 2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2927 for as_dir in $PATH 2928 do 2929 IFS=$as_save_IFS 2930 case $as_dir in #((( 2931 '') as_dir=./ ;; 2932 */) ;; 2933 *) as_dir=$as_dir/ ;; 2934 esac 2935 for ac_exec_ext in '' $ac_executable_extensions; do 2936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2937 ac_cv_prog_ac_ct_STRIP="strip" 2938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2939 break 2 2940 fi 2941 done 2942 done 2943 IFS=$as_save_IFS 2944 2945 fi 2946 fi 2947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2948 if test -n "$ac_ct_STRIP"; then 2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2950 printf "%s\n" "$ac_ct_STRIP" >&6; } 2951 else 2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2953 printf "%s\n" "no" >&6; } 2954 fi 2955 2956 if test "x$ac_ct_STRIP" = x; then 2957 STRIP=":" 2958 else 2959 case $cross_compiling:$ac_tool_warned in 2960 yes:) 2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2962 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2963 ac_tool_warned=yes ;; 2964 esac 2965 STRIP=$ac_ct_STRIP 2966 fi 2967 else 2968 STRIP="$ac_cv_prog_STRIP" 2969 fi 2970 2971 fi 2972 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2973 2974 2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2976 printf %s "checking for a race-free mkdir -p... " >&6; } 2977 if test -z "$MKDIR_P"; then 2978 if test ${ac_cv_path_mkdir+y} 2979 then : 2980 printf %s "(cached) " >&6 2981 else $as_nop 2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2983 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2984 do 2985 IFS=$as_save_IFS 2986 case $as_dir in #((( 2987 '') as_dir=./ ;; 2988 */) ;; 2989 *) as_dir=$as_dir/ ;; 2990 esac 2991 for ac_prog in mkdir gmkdir; do 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2994 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2995 'mkdir ('*'coreutils) '* | \ 2996 'BusyBox '* | \ 2997 'mkdir (fileutils) '4.1*) 2998 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2999 break 3;; 3000 esac 3001 done 3002 done 3003 done 3004 IFS=$as_save_IFS 3005 3006 fi 3007 3008 test -d ./--version && rmdir ./--version 3009 if test ${ac_cv_path_mkdir+y}; then 3010 MKDIR_P="$ac_cv_path_mkdir -p" 3011 else 3012 # As a last resort, use the slow shell script. Don't cache a 3013 # value for MKDIR_P within a source directory, because that will 3014 # break other packages using the cache if that directory is 3015 # removed, or if the value is a relative name. 3016 MKDIR_P="$ac_install_sh -d" 3017 fi 3018 fi 3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3020 printf "%s\n" "$MKDIR_P" >&6; } 3021 3022 for ac_prog in gawk mawk nawk awk 3023 do 3024 # Extract the first word of "$ac_prog", so it can be a program name with args. 3025 set dummy $ac_prog; ac_word=$2 3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3027 printf %s "checking for $ac_word... " >&6; } 3028 if test ${ac_cv_prog_AWK+y} 3029 then : 3030 printf %s "(cached) " >&6 3031 else $as_nop 3032 if test -n "$AWK"; then 3033 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3034 else 3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3036 for as_dir in $PATH 3037 do 3038 IFS=$as_save_IFS 3039 case $as_dir in #((( 3040 '') as_dir=./ ;; 3041 */) ;; 3042 *) as_dir=$as_dir/ ;; 3043 esac 3044 for ac_exec_ext in '' $ac_executable_extensions; do 3045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3046 ac_cv_prog_AWK="$ac_prog" 3047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3048 break 2 3049 fi 3050 done 3051 done 3052 IFS=$as_save_IFS 3053 3054 fi 3055 fi 3056 AWK=$ac_cv_prog_AWK 3057 if test -n "$AWK"; then 3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3059 printf "%s\n" "$AWK" >&6; } 3060 else 3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3062 printf "%s\n" "no" >&6; } 3063 fi 3064 3065 3066 test -n "$AWK" && break 3067 done 3068 3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3070 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3071 set x ${MAKE-make} 3072 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3073 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3074 then : 3075 printf %s "(cached) " >&6 3076 else $as_nop 3077 cat >conftest.make <<\_ACEOF 3078 SHELL = /bin/sh 3079 all: 3080 @echo '@@@%%%=$(MAKE)=@@@%%%' 3081 _ACEOF 3082 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3083 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3084 *@@@%%%=?*=@@@%%%*) 3085 eval ac_cv_prog_make_${ac_make}_set=yes;; 3086 *) 3087 eval ac_cv_prog_make_${ac_make}_set=no;; 3088 esac 3089 rm -f conftest.make 3090 fi 3091 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3093 printf "%s\n" "yes" >&6; } 3094 SET_MAKE= 3095 else 3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3097 printf "%s\n" "no" >&6; } 3098 SET_MAKE="MAKE=${MAKE-make}" 3099 fi 3100 3101 rm -rf .tst 2>/dev/null 3102 mkdir .tst 2>/dev/null 3103 if test -d .tst; then 3104 am__leading_dot=. 3105 else 3106 am__leading_dot=_ 3107 fi 3108 rmdir .tst 2>/dev/null 3109 3110 # Check whether --enable-silent-rules was given. 3111 if test ${enable_silent_rules+y} 3112 then : 3113 enableval=$enable_silent_rules; 3114 fi 3115 3116 case $enable_silent_rules in # ((( 3117 yes) AM_DEFAULT_VERBOSITY=0;; 3118 no) AM_DEFAULT_VERBOSITY=1;; 3119 *) AM_DEFAULT_VERBOSITY=1;; 3120 esac 3121 am_make=${MAKE-make} 3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3123 printf %s "checking whether $am_make supports nested variables... " >&6; } 3124 if test ${am_cv_make_support_nested_variables+y} 3125 then : 3126 printf %s "(cached) " >&6 3127 else $as_nop 3128 if printf "%s\n" 'TRUE=$(BAR$(V)) 3129 BAR0=false 3130 BAR1=true 3131 V=1 3132 am__doit: 3133 @$(TRUE) 3134 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3135 am_cv_make_support_nested_variables=yes 3136 else 3137 am_cv_make_support_nested_variables=no 3138 fi 3139 fi 3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3141 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3142 if test $am_cv_make_support_nested_variables = yes; then 3143 AM_V='$(V)' 3144 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3145 else 3146 AM_V=$AM_DEFAULT_VERBOSITY 3147 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3148 fi 3149 AM_BACKSLASH='\' 3150 3151 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3152 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3153 # is not polluted with repeated "-I." 3154 am__isrc=' -I$(srcdir)' 3155 # test to see if srcdir already configured 3156 if test -f $srcdir/config.status; then 3157 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3158 fi 3159 fi 3160 3161 # test whether we have cygpath 3162 if test -z "$CYGPATH_W"; then 3163 if (cygpath --version) >/dev/null 2>/dev/null; then 3164 CYGPATH_W='cygpath -w' 3165 else 3166 CYGPATH_W=echo 3167 fi 3168 fi 3169 3170 3171 # Define the identity of the package. 3172 PACKAGE='libuv' 3173 VERSION='1.51.0' 3174 3175 3176 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3177 3178 3179 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3180 3181 # Some tools Automake needs. 3182 3183 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3184 3185 3186 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3187 3188 3189 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3190 3191 3192 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3193 3194 3195 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3196 3197 # For better backward compatibility. To be removed once Automake 1.9.x 3198 # dies out for good. For more background, see: 3199 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3200 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3201 mkdir_p='$(MKDIR_P)' 3202 3203 # We need awk for the "check" target (and possibly the TAP driver). The 3204 # system "awk" is bad on some platforms. 3205 # Always define AMTAR for backward compatibility. Yes, it's still used 3206 # in the wild :-( We should find a proper way to deprecate it ... 3207 AMTAR='$${TAR-tar}' 3208 3209 3210 # We'll loop over all known methods to create a tar archive until one works. 3211 _am_tools='gnutar pax cpio none' 3212 3213 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3214 3215 3216 3217 3218 3219 # Variables for tags utilities; see am/tags.am 3220 if test -z "$CTAGS"; then 3221 CTAGS=ctags 3222 fi 3223 3224 if test -z "$ETAGS"; then 3225 ETAGS=etags 3226 fi 3227 3228 if test -z "$CSCOPE"; then 3229 CSCOPE=cscope 3230 fi 3231 3232 3233 3234 # POSIX will say in a future version that running "rm -f" with no argument 3235 # is OK; and we want to be able to make that assumption in our Makefile 3236 # recipes. So use an aggressive probe to check that the usage we want is 3237 # actually supported "in the wild" to an acceptable degree. 3238 # See automake bug#10828. 3239 # To make any issue more visible, cause the running configure to be aborted 3240 # by default if the 'rm' program in use doesn't match our expectations; the 3241 # user can still override this though. 3242 if rm -f && rm -fr && rm -rf; then : OK; else 3243 cat >&2 <<'END' 3244 Oops! 3245 3246 Your 'rm' program seems unable to run without file operands specified 3247 on the command line, even when the '-f' option is present. This is contrary 3248 to the behaviour of most rm programs out there, and not conforming with 3249 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3250 3251 Please tell bug-automake@gnu.org about your system, including the value 3252 of your $PATH and any error possibly output before this message. This 3253 can help us improve future automake versions. 3254 3255 END 3256 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3257 echo 'Configuration will proceed anyway, since you have set the' >&2 3258 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3259 echo >&2 3260 else 3261 cat >&2 <<'END' 3262 Aborting the configuration process, to ensure you take notice of the issue. 3263 3264 You can download and install GNU coreutils to get an 'rm' implementation 3265 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3266 3267 If you want to complete the configuration process using your problematic 3268 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3269 to "yes", and re-run configure. 3270 3271 END 3272 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3273 fi 3274 fi 3275 3276 3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3278 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3279 # Check whether --enable-maintainer-mode was given. 3280 if test ${enable_maintainer_mode+y} 3281 then : 3282 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3283 else $as_nop 3284 USE_MAINTAINER_MODE=yes 3285 fi 3286 3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3288 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3289 if test $USE_MAINTAINER_MODE = yes; then 3290 MAINTAINER_MODE_TRUE= 3291 MAINTAINER_MODE_FALSE='#' 3292 else 3293 MAINTAINER_MODE_TRUE='#' 3294 MAINTAINER_MODE_FALSE= 3295 fi 3296 3297 MAINT=$MAINTAINER_MODE_TRUE 3298 3299 # pass --disable-maintainer-mode if autotools may be unavailable 3300 3301 3302 # Make sure we can run config.sub. 3303 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3304 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3305 3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3307 printf %s "checking build system type... " >&6; } 3308 if test ${ac_cv_build+y} 3309 then : 3310 printf %s "(cached) " >&6 3311 else $as_nop 3312 ac_build_alias=$build_alias 3313 test "x$ac_build_alias" = x && 3314 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3315 test "x$ac_build_alias" = x && 3316 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3317 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3318 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3319 3320 fi 3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3322 printf "%s\n" "$ac_cv_build" >&6; } 3323 case $ac_cv_build in 3324 *-*-*) ;; 3325 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3326 esac 3327 build=$ac_cv_build 3328 ac_save_IFS=$IFS; IFS='-' 3329 set x $ac_cv_build 3330 shift 3331 build_cpu=$1 3332 build_vendor=$2 3333 shift; shift 3334 # Remember, the first character of IFS is used to create $*, 3335 # except with old shells: 3336 build_os=$* 3337 IFS=$ac_save_IFS 3338 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3339 3340 3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3342 printf %s "checking host system type... " >&6; } 3343 if test ${ac_cv_host+y} 3344 then : 3345 printf %s "(cached) " >&6 3346 else $as_nop 3347 if test "x$host_alias" = x; then 3348 ac_cv_host=$ac_cv_build 3349 else 3350 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3351 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3352 fi 3353 3354 fi 3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3356 printf "%s\n" "$ac_cv_host" >&6; } 3357 case $ac_cv_host in 3358 *-*-*) ;; 3359 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3360 esac 3361 host=$ac_cv_host 3362 ac_save_IFS=$IFS; IFS='-' 3363 set x $ac_cv_host 3364 shift 3365 host_cpu=$1 3366 host_vendor=$2 3367 shift; shift 3368 # Remember, the first character of IFS is used to create $*, 3369 # except with old shells: 3370 host_os=$* 3371 IFS=$ac_save_IFS 3372 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3373 3374 3375 # Check whether --enable-shared was given. 3376 if test ${enable_shared+y} 3377 then : 3378 enableval=$enable_shared; p=${PACKAGE-default} 3379 case $enableval in 3380 yes) enable_shared=yes ;; 3381 no) enable_shared=no ;; 3382 *) 3383 enable_shared=no 3384 # Look at the argument we got. We use all the common list separators. 3385 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 3386 for pkg in $enableval; do 3387 IFS=$lt_save_ifs 3388 if test "X$pkg" = "X$p"; then 3389 enable_shared=yes 3390 fi 3391 done 3392 IFS=$lt_save_ifs 3393 ;; 3394 esac 3395 else $as_nop 3396 enable_shared=yes 3397 fi 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 # Check whether --enable-static was given. 3408 if test ${enable_static+y} 3409 then : 3410 enableval=$enable_static; p=${PACKAGE-default} 3411 case $enableval in 3412 yes) enable_static=yes ;; 3413 no) enable_static=no ;; 3414 *) 3415 enable_static=no 3416 # Look at the argument we got. We use all the common list separators. 3417 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 3418 for pkg in $enableval; do 3419 IFS=$lt_save_ifs 3420 if test "X$pkg" = "X$p"; then 3421 enable_static=yes 3422 fi 3423 done 3424 IFS=$lt_save_ifs 3425 ;; 3426 esac 3427 else $as_nop 3428 enable_static=yes 3429 fi 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 ac_ext=c 3449 ac_cpp='$CPP $CPPFLAGS' 3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3453 if test -n "$ac_tool_prefix"; then 3454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3455 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3457 printf %s "checking for $ac_word... " >&6; } 3458 if test ${ac_cv_prog_CC+y} 3459 then : 3460 printf %s "(cached) " >&6 3461 else $as_nop 3462 if test -n "$CC"; then 3463 ac_cv_prog_CC="$CC" # Let the user override the test. 3464 else 3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3466 for as_dir in $PATH 3467 do 3468 IFS=$as_save_IFS 3469 case $as_dir in #((( 3470 '') as_dir=./ ;; 3471 */) ;; 3472 *) as_dir=$as_dir/ ;; 3473 esac 3474 for ac_exec_ext in '' $ac_executable_extensions; do 3475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3476 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3478 break 2 3479 fi 3480 done 3481 done 3482 IFS=$as_save_IFS 3483 3484 fi 3485 fi 3486 CC=$ac_cv_prog_CC 3487 if test -n "$CC"; then 3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3489 printf "%s\n" "$CC" >&6; } 3490 else 3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3492 printf "%s\n" "no" >&6; } 3493 fi 3494 3495 3496 fi 3497 if test -z "$ac_cv_prog_CC"; then 3498 ac_ct_CC=$CC 3499 # Extract the first word of "gcc", so it can be a program name with args. 3500 set dummy gcc; ac_word=$2 3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3502 printf %s "checking for $ac_word... " >&6; } 3503 if test ${ac_cv_prog_ac_ct_CC+y} 3504 then : 3505 printf %s "(cached) " >&6 3506 else $as_nop 3507 if test -n "$ac_ct_CC"; then 3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3509 else 3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3511 for as_dir in $PATH 3512 do 3513 IFS=$as_save_IFS 3514 case $as_dir in #((( 3515 '') as_dir=./ ;; 3516 */) ;; 3517 *) as_dir=$as_dir/ ;; 3518 esac 3519 for ac_exec_ext in '' $ac_executable_extensions; do 3520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3521 ac_cv_prog_ac_ct_CC="gcc" 3522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3523 break 2 3524 fi 3525 done 3526 done 3527 IFS=$as_save_IFS 3528 3529 fi 3530 fi 3531 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3532 if test -n "$ac_ct_CC"; then 3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3534 printf "%s\n" "$ac_ct_CC" >&6; } 3535 else 3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3537 printf "%s\n" "no" >&6; } 3538 fi 3539 3540 if test "x$ac_ct_CC" = x; then 3541 CC="" 3542 else 3543 case $cross_compiling:$ac_tool_warned in 3544 yes:) 3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3546 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3547 ac_tool_warned=yes ;; 3548 esac 3549 CC=$ac_ct_CC 3550 fi 3551 else 3552 CC="$ac_cv_prog_CC" 3553 fi 3554 3555 if test -z "$CC"; then 3556 if test -n "$ac_tool_prefix"; then 3557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3558 set dummy ${ac_tool_prefix}cc; ac_word=$2 3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3560 printf %s "checking for $ac_word... " >&6; } 3561 if test ${ac_cv_prog_CC+y} 3562 then : 3563 printf %s "(cached) " >&6 3564 else $as_nop 3565 if test -n "$CC"; then 3566 ac_cv_prog_CC="$CC" # Let the user override the test. 3567 else 3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3569 for as_dir in $PATH 3570 do 3571 IFS=$as_save_IFS 3572 case $as_dir in #((( 3573 '') as_dir=./ ;; 3574 */) ;; 3575 *) as_dir=$as_dir/ ;; 3576 esac 3577 for ac_exec_ext in '' $ac_executable_extensions; do 3578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3579 ac_cv_prog_CC="${ac_tool_prefix}cc" 3580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3581 break 2 3582 fi 3583 done 3584 done 3585 IFS=$as_save_IFS 3586 3587 fi 3588 fi 3589 CC=$ac_cv_prog_CC 3590 if test -n "$CC"; then 3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3592 printf "%s\n" "$CC" >&6; } 3593 else 3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3595 printf "%s\n" "no" >&6; } 3596 fi 3597 3598 3599 fi 3600 fi 3601 if test -z "$CC"; then 3602 # Extract the first word of "cc", so it can be a program name with args. 3603 set dummy cc; ac_word=$2 3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3605 printf %s "checking for $ac_word... " >&6; } 3606 if test ${ac_cv_prog_CC+y} 3607 then : 3608 printf %s "(cached) " >&6 3609 else $as_nop 3610 if test -n "$CC"; then 3611 ac_cv_prog_CC="$CC" # Let the user override the test. 3612 else 3613 ac_prog_rejected=no 3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3615 for as_dir in $PATH 3616 do 3617 IFS=$as_save_IFS 3618 case $as_dir in #((( 3619 '') as_dir=./ ;; 3620 */) ;; 3621 *) as_dir=$as_dir/ ;; 3622 esac 3623 for ac_exec_ext in '' $ac_executable_extensions; do 3624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3625 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3626 ac_prog_rejected=yes 3627 continue 3628 fi 3629 ac_cv_prog_CC="cc" 3630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3631 break 2 3632 fi 3633 done 3634 done 3635 IFS=$as_save_IFS 3636 3637 if test $ac_prog_rejected = yes; then 3638 # We found a bogon in the path, so make sure we never use it. 3639 set dummy $ac_cv_prog_CC 3640 shift 3641 if test $# != 0; then 3642 # We chose a different compiler from the bogus one. 3643 # However, it has the same basename, so the bogon will be chosen 3644 # first if we set CC to just the basename; use the full file name. 3645 shift 3646 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3647 fi 3648 fi 3649 fi 3650 fi 3651 CC=$ac_cv_prog_CC 3652 if test -n "$CC"; then 3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3654 printf "%s\n" "$CC" >&6; } 3655 else 3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3657 printf "%s\n" "no" >&6; } 3658 fi 3659 3660 3661 fi 3662 if test -z "$CC"; then 3663 if test -n "$ac_tool_prefix"; then 3664 for ac_prog in cl.exe 3665 do 3666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3669 printf %s "checking for $ac_word... " >&6; } 3670 if test ${ac_cv_prog_CC+y} 3671 then : 3672 printf %s "(cached) " >&6 3673 else $as_nop 3674 if test -n "$CC"; then 3675 ac_cv_prog_CC="$CC" # Let the user override the test. 3676 else 3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3678 for as_dir in $PATH 3679 do 3680 IFS=$as_save_IFS 3681 case $as_dir in #((( 3682 '') as_dir=./ ;; 3683 */) ;; 3684 *) as_dir=$as_dir/ ;; 3685 esac 3686 for ac_exec_ext in '' $ac_executable_extensions; do 3687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3688 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3690 break 2 3691 fi 3692 done 3693 done 3694 IFS=$as_save_IFS 3695 3696 fi 3697 fi 3698 CC=$ac_cv_prog_CC 3699 if test -n "$CC"; then 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3701 printf "%s\n" "$CC" >&6; } 3702 else 3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3704 printf "%s\n" "no" >&6; } 3705 fi 3706 3707 3708 test -n "$CC" && break 3709 done 3710 fi 3711 if test -z "$CC"; then 3712 ac_ct_CC=$CC 3713 for ac_prog in cl.exe 3714 do 3715 # Extract the first word of "$ac_prog", so it can be a program name with args. 3716 set dummy $ac_prog; ac_word=$2 3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3718 printf %s "checking for $ac_word... " >&6; } 3719 if test ${ac_cv_prog_ac_ct_CC+y} 3720 then : 3721 printf %s "(cached) " >&6 3722 else $as_nop 3723 if test -n "$ac_ct_CC"; then 3724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3725 else 3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3727 for as_dir in $PATH 3728 do 3729 IFS=$as_save_IFS 3730 case $as_dir in #((( 3731 '') as_dir=./ ;; 3732 */) ;; 3733 *) as_dir=$as_dir/ ;; 3734 esac 3735 for ac_exec_ext in '' $ac_executable_extensions; do 3736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3737 ac_cv_prog_ac_ct_CC="$ac_prog" 3738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3739 break 2 3740 fi 3741 done 3742 done 3743 IFS=$as_save_IFS 3744 3745 fi 3746 fi 3747 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3748 if test -n "$ac_ct_CC"; then 3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3750 printf "%s\n" "$ac_ct_CC" >&6; } 3751 else 3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3753 printf "%s\n" "no" >&6; } 3754 fi 3755 3756 3757 test -n "$ac_ct_CC" && break 3758 done 3759 3760 if test "x$ac_ct_CC" = x; then 3761 CC="" 3762 else 3763 case $cross_compiling:$ac_tool_warned in 3764 yes:) 3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3766 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3767 ac_tool_warned=yes ;; 3768 esac 3769 CC=$ac_ct_CC 3770 fi 3771 fi 3772 3773 fi 3774 if test -z "$CC"; then 3775 if test -n "$ac_tool_prefix"; then 3776 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3777 set dummy ${ac_tool_prefix}clang; ac_word=$2 3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3779 printf %s "checking for $ac_word... " >&6; } 3780 if test ${ac_cv_prog_CC+y} 3781 then : 3782 printf %s "(cached) " >&6 3783 else $as_nop 3784 if test -n "$CC"; then 3785 ac_cv_prog_CC="$CC" # Let the user override the test. 3786 else 3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3788 for as_dir in $PATH 3789 do 3790 IFS=$as_save_IFS 3791 case $as_dir in #((( 3792 '') as_dir=./ ;; 3793 */) ;; 3794 *) as_dir=$as_dir/ ;; 3795 esac 3796 for ac_exec_ext in '' $ac_executable_extensions; do 3797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3798 ac_cv_prog_CC="${ac_tool_prefix}clang" 3799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3800 break 2 3801 fi 3802 done 3803 done 3804 IFS=$as_save_IFS 3805 3806 fi 3807 fi 3808 CC=$ac_cv_prog_CC 3809 if test -n "$CC"; then 3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3811 printf "%s\n" "$CC" >&6; } 3812 else 3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3814 printf "%s\n" "no" >&6; } 3815 fi 3816 3817 3818 fi 3819 if test -z "$ac_cv_prog_CC"; then 3820 ac_ct_CC=$CC 3821 # Extract the first word of "clang", so it can be a program name with args. 3822 set dummy clang; ac_word=$2 3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3824 printf %s "checking for $ac_word... " >&6; } 3825 if test ${ac_cv_prog_ac_ct_CC+y} 3826 then : 3827 printf %s "(cached) " >&6 3828 else $as_nop 3829 if test -n "$ac_ct_CC"; then 3830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3831 else 3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3833 for as_dir in $PATH 3834 do 3835 IFS=$as_save_IFS 3836 case $as_dir in #((( 3837 '') as_dir=./ ;; 3838 */) ;; 3839 *) as_dir=$as_dir/ ;; 3840 esac 3841 for ac_exec_ext in '' $ac_executable_extensions; do 3842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3843 ac_cv_prog_ac_ct_CC="clang" 3844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3845 break 2 3846 fi 3847 done 3848 done 3849 IFS=$as_save_IFS 3850 3851 fi 3852 fi 3853 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3854 if test -n "$ac_ct_CC"; then 3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3856 printf "%s\n" "$ac_ct_CC" >&6; } 3857 else 3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3859 printf "%s\n" "no" >&6; } 3860 fi 3861 3862 if test "x$ac_ct_CC" = x; then 3863 CC="" 3864 else 3865 case $cross_compiling:$ac_tool_warned in 3866 yes:) 3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3868 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3869 ac_tool_warned=yes ;; 3870 esac 3871 CC=$ac_ct_CC 3872 fi 3873 else 3874 CC="$ac_cv_prog_CC" 3875 fi 3876 3877 fi 3878 3879 3880 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3881 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3882 as_fn_error $? "no acceptable C compiler found in \$PATH 3883 See \`config.log' for more details" "$LINENO" 5; } 3884 3885 # Provide some information about the compiler. 3886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3887 set X $ac_compile 3888 ac_compiler=$2 3889 for ac_option in --version -v -V -qversion -version; do 3890 { { ac_try="$ac_compiler $ac_option >&5" 3891 case "(($ac_try" in 3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3893 *) ac_try_echo=$ac_try;; 3894 esac 3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3896 printf "%s\n" "$ac_try_echo"; } >&5 3897 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3898 ac_status=$? 3899 if test -s conftest.err; then 3900 sed '10a\ 3901 ... rest of stderr output deleted ... 3902 10q' conftest.err >conftest.er1 3903 cat conftest.er1 >&5 3904 fi 3905 rm -f conftest.er1 conftest.err 3906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3907 test $ac_status = 0; } 3908 done 3909 3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3911 /* end confdefs.h. */ 3912 3913 int 3914 main (void) 3915 { 3916 3917 ; 3918 return 0; 3919 } 3920 _ACEOF 3921 ac_clean_files_save=$ac_clean_files 3922 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3923 # Try to create an executable without -o first, disregard a.out. 3924 # It will help us diagnose broken compilers, and finding out an intuition 3925 # of exeext. 3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3927 printf %s "checking whether the C compiler works... " >&6; } 3928 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3929 3930 # The possible output files: 3931 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3932 3933 ac_rmfiles= 3934 for ac_file in $ac_files 3935 do 3936 case $ac_file in 3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3938 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3939 esac 3940 done 3941 rm -f $ac_rmfiles 3942 3943 if { { ac_try="$ac_link_default" 3944 case "(($ac_try" in 3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3946 *) ac_try_echo=$ac_try;; 3947 esac 3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3949 printf "%s\n" "$ac_try_echo"; } >&5 3950 (eval "$ac_link_default") 2>&5 3951 ac_status=$? 3952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3953 test $ac_status = 0; } 3954 then : 3955 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3956 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3957 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3958 # so that the user can short-circuit this test for compilers unknown to 3959 # Autoconf. 3960 for ac_file in $ac_files '' 3961 do 3962 test -f "$ac_file" || continue 3963 case $ac_file in 3964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3965 ;; 3966 [ab].out ) 3967 # We found the default executable, but exeext='' is most 3968 # certainly right. 3969 break;; 3970 *.* ) 3971 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3972 then :; else 3973 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3974 fi 3975 # We set ac_cv_exeext here because the later test for it is not 3976 # safe: cross compilers may not add the suffix if given an `-o' 3977 # argument, so we may need to know it at that point already. 3978 # Even if this section looks crufty: it has the advantage of 3979 # actually working. 3980 break;; 3981 * ) 3982 break;; 3983 esac 3984 done 3985 test "$ac_cv_exeext" = no && ac_cv_exeext= 3986 3987 else $as_nop 3988 ac_file='' 3989 fi 3990 if test -z "$ac_file" 3991 then : 3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3993 printf "%s\n" "no" >&6; } 3994 printf "%s\n" "$as_me: failed program was:" >&5 3995 sed 's/^/| /' conftest.$ac_ext >&5 3996 3997 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3998 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3999 as_fn_error 77 "C compiler cannot create executables 4000 See \`config.log' for more details" "$LINENO" 5; } 4001 else $as_nop 4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4003 printf "%s\n" "yes" >&6; } 4004 fi 4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4006 printf %s "checking for C compiler default output file name... " >&6; } 4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4008 printf "%s\n" "$ac_file" >&6; } 4009 ac_exeext=$ac_cv_exeext 4010 4011 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4012 ac_clean_files=$ac_clean_files_save 4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4014 printf %s "checking for suffix of executables... " >&6; } 4015 if { { ac_try="$ac_link" 4016 case "(($ac_try" in 4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4018 *) ac_try_echo=$ac_try;; 4019 esac 4020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4021 printf "%s\n" "$ac_try_echo"; } >&5 4022 (eval "$ac_link") 2>&5 4023 ac_status=$? 4024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4025 test $ac_status = 0; } 4026 then : 4027 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4028 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4029 # work properly (i.e., refer to `conftest.exe'), while it won't with 4030 # `rm'. 4031 for ac_file in conftest.exe conftest conftest.*; do 4032 test -f "$ac_file" || continue 4033 case $ac_file in 4034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4035 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4036 break;; 4037 * ) break;; 4038 esac 4039 done 4040 else $as_nop 4041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4042 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4043 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4044 See \`config.log' for more details" "$LINENO" 5; } 4045 fi 4046 rm -f conftest conftest$ac_cv_exeext 4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4048 printf "%s\n" "$ac_cv_exeext" >&6; } 4049 4050 rm -f conftest.$ac_ext 4051 EXEEXT=$ac_cv_exeext 4052 ac_exeext=$EXEEXT 4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4054 /* end confdefs.h. */ 4055 #include <stdio.h> 4056 int 4057 main (void) 4058 { 4059 FILE *f = fopen ("conftest.out", "w"); 4060 return ferror (f) || fclose (f) != 0; 4061 4062 ; 4063 return 0; 4064 } 4065 _ACEOF 4066 ac_clean_files="$ac_clean_files conftest.out" 4067 # Check that the compiler produces executables we can run. If not, either 4068 # the compiler is broken, or we cross compile. 4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4070 printf %s "checking whether we are cross compiling... " >&6; } 4071 if test "$cross_compiling" != yes; then 4072 { { ac_try="$ac_link" 4073 case "(($ac_try" in 4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4075 *) ac_try_echo=$ac_try;; 4076 esac 4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4078 printf "%s\n" "$ac_try_echo"; } >&5 4079 (eval "$ac_link") 2>&5 4080 ac_status=$? 4081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4082 test $ac_status = 0; } 4083 if { ac_try='./conftest$ac_cv_exeext' 4084 { { case "(($ac_try" in 4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4086 *) ac_try_echo=$ac_try;; 4087 esac 4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4089 printf "%s\n" "$ac_try_echo"; } >&5 4090 (eval "$ac_try") 2>&5 4091 ac_status=$? 4092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4093 test $ac_status = 0; }; }; then 4094 cross_compiling=no 4095 else 4096 if test "$cross_compiling" = maybe; then 4097 cross_compiling=yes 4098 else 4099 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4100 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4101 as_fn_error 77 "cannot run C compiled programs. 4102 If you meant to cross compile, use \`--host'. 4103 See \`config.log' for more details" "$LINENO" 5; } 4104 fi 4105 fi 4106 fi 4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4108 printf "%s\n" "$cross_compiling" >&6; } 4109 4110 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4111 ac_clean_files=$ac_clean_files_save 4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4113 printf %s "checking for suffix of object files... " >&6; } 4114 if test ${ac_cv_objext+y} 4115 then : 4116 printf %s "(cached) " >&6 4117 else $as_nop 4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4119 /* end confdefs.h. */ 4120 4121 int 4122 main (void) 4123 { 4124 4125 ; 4126 return 0; 4127 } 4128 _ACEOF 4129 rm -f conftest.o conftest.obj 4130 if { { ac_try="$ac_compile" 4131 case "(($ac_try" in 4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4133 *) ac_try_echo=$ac_try;; 4134 esac 4135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4136 printf "%s\n" "$ac_try_echo"; } >&5 4137 (eval "$ac_compile") 2>&5 4138 ac_status=$? 4139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4140 test $ac_status = 0; } 4141 then : 4142 for ac_file in conftest.o conftest.obj conftest.*; do 4143 test -f "$ac_file" || continue; 4144 case $ac_file in 4145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4146 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4147 break;; 4148 esac 4149 done 4150 else $as_nop 4151 printf "%s\n" "$as_me: failed program was:" >&5 4152 sed 's/^/| /' conftest.$ac_ext >&5 4153 4154 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4155 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4156 as_fn_error $? "cannot compute suffix of object files: cannot compile 4157 See \`config.log' for more details" "$LINENO" 5; } 4158 fi 4159 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4160 fi 4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4162 printf "%s\n" "$ac_cv_objext" >&6; } 4163 OBJEXT=$ac_cv_objext 4164 ac_objext=$OBJEXT 4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4166 printf %s "checking whether the compiler supports GNU C... " >&6; } 4167 if test ${ac_cv_c_compiler_gnu+y} 4168 then : 4169 printf %s "(cached) " >&6 4170 else $as_nop 4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4172 /* end confdefs.h. */ 4173 4174 int 4175 main (void) 4176 { 4177 #ifndef __GNUC__ 4178 choke me 4179 #endif 4180 4181 ; 4182 return 0; 4183 } 4184 _ACEOF 4185 if ac_fn_c_try_compile "$LINENO" 4186 then : 4187 ac_compiler_gnu=yes 4188 else $as_nop 4189 ac_compiler_gnu=no 4190 fi 4191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4192 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4193 4194 fi 4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4196 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4198 4199 if test $ac_compiler_gnu = yes; then 4200 GCC=yes 4201 else 4202 GCC= 4203 fi 4204 ac_test_CFLAGS=${CFLAGS+y} 4205 ac_save_CFLAGS=$CFLAGS 4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4207 printf %s "checking whether $CC accepts -g... " >&6; } 4208 if test ${ac_cv_prog_cc_g+y} 4209 then : 4210 printf %s "(cached) " >&6 4211 else $as_nop 4212 ac_save_c_werror_flag=$ac_c_werror_flag 4213 ac_c_werror_flag=yes 4214 ac_cv_prog_cc_g=no 4215 CFLAGS="-g" 4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4217 /* end confdefs.h. */ 4218 4219 int 4220 main (void) 4221 { 4222 4223 ; 4224 return 0; 4225 } 4226 _ACEOF 4227 if ac_fn_c_try_compile "$LINENO" 4228 then : 4229 ac_cv_prog_cc_g=yes 4230 else $as_nop 4231 CFLAGS="" 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233 /* end confdefs.h. */ 4234 4235 int 4236 main (void) 4237 { 4238 4239 ; 4240 return 0; 4241 } 4242 _ACEOF 4243 if ac_fn_c_try_compile "$LINENO" 4244 then : 4245 4246 else $as_nop 4247 ac_c_werror_flag=$ac_save_c_werror_flag 4248 CFLAGS="-g" 4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4250 /* end confdefs.h. */ 4251 4252 int 4253 main (void) 4254 { 4255 4256 ; 4257 return 0; 4258 } 4259 _ACEOF 4260 if ac_fn_c_try_compile "$LINENO" 4261 then : 4262 ac_cv_prog_cc_g=yes 4263 fi 4264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4265 fi 4266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4267 fi 4268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4269 ac_c_werror_flag=$ac_save_c_werror_flag 4270 fi 4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4272 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4273 if test $ac_test_CFLAGS; then 4274 CFLAGS=$ac_save_CFLAGS 4275 elif test $ac_cv_prog_cc_g = yes; then 4276 if test "$GCC" = yes; then 4277 CFLAGS="-g -O2" 4278 else 4279 CFLAGS="-g" 4280 fi 4281 else 4282 if test "$GCC" = yes; then 4283 CFLAGS="-O2" 4284 else 4285 CFLAGS= 4286 fi 4287 fi 4288 ac_prog_cc_stdc=no 4289 if test x$ac_prog_cc_stdc = xno 4290 then : 4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4292 printf %s "checking for $CC option to enable C11 features... " >&6; } 4293 if test ${ac_cv_prog_cc_c11+y} 4294 then : 4295 printf %s "(cached) " >&6 4296 else $as_nop 4297 ac_cv_prog_cc_c11=no 4298 ac_save_CC=$CC 4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300 /* end confdefs.h. */ 4301 $ac_c_conftest_c11_program 4302 _ACEOF 4303 for ac_arg in '' -std=gnu11 4304 do 4305 CC="$ac_save_CC $ac_arg" 4306 if ac_fn_c_try_compile "$LINENO" 4307 then : 4308 ac_cv_prog_cc_c11=$ac_arg 4309 fi 4310 rm -f core conftest.err conftest.$ac_objext conftest.beam 4311 test "x$ac_cv_prog_cc_c11" != "xno" && break 4312 done 4313 rm -f conftest.$ac_ext 4314 CC=$ac_save_CC 4315 fi 4316 4317 if test "x$ac_cv_prog_cc_c11" = xno 4318 then : 4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4320 printf "%s\n" "unsupported" >&6; } 4321 else $as_nop 4322 if test "x$ac_cv_prog_cc_c11" = x 4323 then : 4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4325 printf "%s\n" "none needed" >&6; } 4326 else $as_nop 4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4328 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4329 CC="$CC $ac_cv_prog_cc_c11" 4330 fi 4331 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4332 ac_prog_cc_stdc=c11 4333 fi 4334 fi 4335 if test x$ac_prog_cc_stdc = xno 4336 then : 4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4338 printf %s "checking for $CC option to enable C99 features... " >&6; } 4339 if test ${ac_cv_prog_cc_c99+y} 4340 then : 4341 printf %s "(cached) " >&6 4342 else $as_nop 4343 ac_cv_prog_cc_c99=no 4344 ac_save_CC=$CC 4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4346 /* end confdefs.h. */ 4347 $ac_c_conftest_c99_program 4348 _ACEOF 4349 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4350 do 4351 CC="$ac_save_CC $ac_arg" 4352 if ac_fn_c_try_compile "$LINENO" 4353 then : 4354 ac_cv_prog_cc_c99=$ac_arg 4355 fi 4356 rm -f core conftest.err conftest.$ac_objext conftest.beam 4357 test "x$ac_cv_prog_cc_c99" != "xno" && break 4358 done 4359 rm -f conftest.$ac_ext 4360 CC=$ac_save_CC 4361 fi 4362 4363 if test "x$ac_cv_prog_cc_c99" = xno 4364 then : 4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4366 printf "%s\n" "unsupported" >&6; } 4367 else $as_nop 4368 if test "x$ac_cv_prog_cc_c99" = x 4369 then : 4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4371 printf "%s\n" "none needed" >&6; } 4372 else $as_nop 4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4374 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4375 CC="$CC $ac_cv_prog_cc_c99" 4376 fi 4377 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4378 ac_prog_cc_stdc=c99 4379 fi 4380 fi 4381 if test x$ac_prog_cc_stdc = xno 4382 then : 4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4384 printf %s "checking for $CC option to enable C89 features... " >&6; } 4385 if test ${ac_cv_prog_cc_c89+y} 4386 then : 4387 printf %s "(cached) " >&6 4388 else $as_nop 4389 ac_cv_prog_cc_c89=no 4390 ac_save_CC=$CC 4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4392 /* end confdefs.h. */ 4393 $ac_c_conftest_c89_program 4394 _ACEOF 4395 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4396 do 4397 CC="$ac_save_CC $ac_arg" 4398 if ac_fn_c_try_compile "$LINENO" 4399 then : 4400 ac_cv_prog_cc_c89=$ac_arg 4401 fi 4402 rm -f core conftest.err conftest.$ac_objext conftest.beam 4403 test "x$ac_cv_prog_cc_c89" != "xno" && break 4404 done 4405 rm -f conftest.$ac_ext 4406 CC=$ac_save_CC 4407 fi 4408 4409 if test "x$ac_cv_prog_cc_c89" = xno 4410 then : 4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4412 printf "%s\n" "unsupported" >&6; } 4413 else $as_nop 4414 if test "x$ac_cv_prog_cc_c89" = x 4415 then : 4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4417 printf "%s\n" "none needed" >&6; } 4418 else $as_nop 4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4420 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4421 CC="$CC $ac_cv_prog_cc_c89" 4422 fi 4423 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4424 ac_prog_cc_stdc=c89 4425 fi 4426 fi 4427 4428 ac_ext=c 4429 ac_cpp='$CPP $CPPFLAGS' 4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4433 4434 4435 ac_ext=c 4436 ac_cpp='$CPP $CPPFLAGS' 4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4441 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4442 if test ${am_cv_prog_cc_c_o+y} 4443 then : 4444 printf %s "(cached) " >&6 4445 else $as_nop 4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447 /* end confdefs.h. */ 4448 4449 int 4450 main (void) 4451 { 4452 4453 ; 4454 return 0; 4455 } 4456 _ACEOF 4457 # Make sure it works both with $CC and with simple cc. 4458 # Following AC_PROG_CC_C_O, we do the test twice because some 4459 # compilers refuse to overwrite an existing .o file with -o, 4460 # though they will create one. 4461 am_cv_prog_cc_c_o=yes 4462 for am_i in 1 2; do 4463 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4464 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4465 ac_status=$? 4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4467 (exit $ac_status); } \ 4468 && test -f conftest2.$ac_objext; then 4469 : OK 4470 else 4471 am_cv_prog_cc_c_o=no 4472 break 4473 fi 4474 done 4475 rm -f core conftest* 4476 unset am_i 4477 fi 4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4479 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4480 if test "$am_cv_prog_cc_c_o" != yes; then 4481 # Losing compiler, so override with the script. 4482 # FIXME: It is wrong to rewrite CC. 4483 # But if we don't then we get into trouble of one sort or another. 4484 # A longer-term fix would be to have automake use am__CC in this case, 4485 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4486 CC="$am_aux_dir/compile $CC" 4487 fi 4488 ac_ext=c 4489 ac_cpp='$CPP $CPPFLAGS' 4490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4492 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4493 4494 DEPDIR="${am__leading_dot}deps" 4495 4496 ac_config_commands="$ac_config_commands depfiles" 4497 4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4499 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4500 cat > confinc.mk << 'END' 4501 am__doit: 4502 @echo this is the am__doit target >confinc.out 4503 .PHONY: am__doit 4504 END 4505 am__include="#" 4506 am__quote= 4507 # BSD make does it like this. 4508 echo '.include "confinc.mk" # ignored' > confmf.BSD 4509 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4510 echo 'include confinc.mk # ignored' > confmf.GNU 4511 _am_result=no 4512 for s in GNU BSD; do 4513 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4514 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4515 ac_status=$? 4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4517 (exit $ac_status); } 4518 case $?:`cat confinc.out 2>/dev/null` in 4519 '0:this is the am__doit target') case $s in 4520 BSD) am__include='.include' am__quote='"' ;; 4521 *) am__include='include' am__quote='' ;; 4522 esac ;; 4523 esac 4524 if test "$am__include" != "#"; then 4525 _am_result="yes ($s style)" 4526 break 4527 fi 4528 done 4529 rm -f confinc.* confmf.* 4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4531 printf "%s\n" "${_am_result}" >&6; } 4532 4533 # Check whether --enable-dependency-tracking was given. 4534 if test ${enable_dependency_tracking+y} 4535 then : 4536 enableval=$enable_dependency_tracking; 4537 fi 4538 4539 if test "x$enable_dependency_tracking" != xno; then 4540 am_depcomp="$ac_aux_dir/depcomp" 4541 AMDEPBACKSLASH='\' 4542 am__nodep='_no' 4543 fi 4544 if test "x$enable_dependency_tracking" != xno; then 4545 AMDEP_TRUE= 4546 AMDEP_FALSE='#' 4547 else 4548 AMDEP_TRUE='#' 4549 AMDEP_FALSE= 4550 fi 4551 4552 4553 4554 depcc="$CC" am_compiler_list= 4555 4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4557 printf %s "checking dependency style of $depcc... " >&6; } 4558 if test ${am_cv_CC_dependencies_compiler_type+y} 4559 then : 4560 printf %s "(cached) " >&6 4561 else $as_nop 4562 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4563 # We make a subdir and do the tests there. Otherwise we can end up 4564 # making bogus files that we don't know about and never remove. For 4565 # instance it was reported that on HP-UX the gcc test will end up 4566 # making a dummy file named 'D' -- because '-MD' means "put the output 4567 # in D". 4568 rm -rf conftest.dir 4569 mkdir conftest.dir 4570 # Copy depcomp to subdir because otherwise we won't find it if we're 4571 # using a relative directory. 4572 cp "$am_depcomp" conftest.dir 4573 cd conftest.dir 4574 # We will build objects and dependencies in a subdirectory because 4575 # it helps to detect inapplicable dependency modes. For instance 4576 # both Tru64's cc and ICC support -MD to output dependencies as a 4577 # side effect of compilation, but ICC will put the dependencies in 4578 # the current directory while Tru64 will put them in the object 4579 # directory. 4580 mkdir sub 4581 4582 am_cv_CC_dependencies_compiler_type=none 4583 if test "$am_compiler_list" = ""; then 4584 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4585 fi 4586 am__universal=false 4587 case " $depcc " in #( 4588 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4589 esac 4590 4591 for depmode in $am_compiler_list; do 4592 # Setup a source with many dependencies, because some compilers 4593 # like to wrap large dependency lists on column 80 (with \), and 4594 # we should not choose a depcomp mode which is confused by this. 4595 # 4596 # We need to recreate these files for each test, as the compiler may 4597 # overwrite some of them when testing with obscure command lines. 4598 # This happens at least with the AIX C compiler. 4599 : > sub/conftest.c 4600 for i in 1 2 3 4 5 6; do 4601 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4602 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4603 # Solaris 10 /bin/sh. 4604 echo '/* dummy */' > sub/conftst$i.h 4605 done 4606 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4607 4608 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4609 # mode. It turns out that the SunPro C++ compiler does not properly 4610 # handle '-M -o', and we need to detect this. Also, some Intel 4611 # versions had trouble with output in subdirs. 4612 am__obj=sub/conftest.${OBJEXT-o} 4613 am__minus_obj="-o $am__obj" 4614 case $depmode in 4615 gcc) 4616 # This depmode causes a compiler race in universal mode. 4617 test "$am__universal" = false || continue 4618 ;; 4619 nosideeffect) 4620 # After this tag, mechanisms are not by side-effect, so they'll 4621 # only be used when explicitly requested. 4622 if test "x$enable_dependency_tracking" = xyes; then 4623 continue 4624 else 4625 break 4626 fi 4627 ;; 4628 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4629 # This compiler won't grok '-c -o', but also, the minuso test has 4630 # not run yet. These depmodes are late enough in the game, and 4631 # so weak that their functioning should not be impacted. 4632 am__obj=conftest.${OBJEXT-o} 4633 am__minus_obj= 4634 ;; 4635 none) break ;; 4636 esac 4637 if depmode=$depmode \ 4638 source=sub/conftest.c object=$am__obj \ 4639 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4640 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4641 >/dev/null 2>conftest.err && 4642 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4644 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4646 # icc doesn't choke on unknown options, it will just issue warnings 4647 # or remarks (even with -Werror). So we grep stderr for any message 4648 # that says an option was ignored or not supported. 4649 # When given -MP, icc 7.0 and 7.1 complain thusly: 4650 # icc: Command line warning: ignoring option '-M'; no argument required 4651 # The diagnosis changed in icc 8.0: 4652 # icc: Command line remark: option '-MP' not supported 4653 if (grep 'ignoring option' conftest.err || 4654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4655 am_cv_CC_dependencies_compiler_type=$depmode 4656 break 4657 fi 4658 fi 4659 done 4660 4661 cd .. 4662 rm -rf conftest.dir 4663 else 4664 am_cv_CC_dependencies_compiler_type=none 4665 fi 4666 4667 fi 4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4669 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4670 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4671 4672 if 4673 test "x$enable_dependency_tracking" != xno \ 4674 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4675 am__fastdepCC_TRUE= 4676 am__fastdepCC_FALSE='#' 4677 else 4678 am__fastdepCC_TRUE='#' 4679 am__fastdepCC_FALSE= 4680 fi 4681 4682 4683 4684 4685 4686 4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC way to treat warnings as errors" >&5 4688 printf %s "checking for $CC way to treat warnings as errors... " >&6; } 4689 if test ${cc_cv_werror+y} 4690 then : 4691 printf %s "(cached) " >&6 4692 else $as_nop 4693 4694 if test ${cc_cv_cflags__Werror+y} 4695 then : 4696 printf %s "(cached) " >&6 4697 else $as_nop 4698 ac_save_CFLAGS="$CFLAGS" 4699 CFLAGS="$CFLAGS -Werror" 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701 /* end confdefs.h. */ 4702 int a; 4703 _ACEOF 4704 if ac_fn_c_try_compile "$LINENO" 4705 then : 4706 eval "cc_cv_cflags__Werror='yes'" 4707 else $as_nop 4708 eval "cc_cv_cflags__Werror='no'" 4709 fi 4710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4711 CFLAGS="$ac_save_CFLAGS" 4712 4713 fi 4714 4715 4716 if eval test x$cc_cv_cflags__Werror = xyes 4717 then : 4718 cc_cv_werror=-Werror 4719 else $as_nop 4720 4721 if test ${cc_cv_cflags__errwarn__all+y} 4722 then : 4723 printf %s "(cached) " >&6 4724 else $as_nop 4725 ac_save_CFLAGS="$CFLAGS" 4726 CFLAGS="$CFLAGS -errwarn=%all" 4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4728 /* end confdefs.h. */ 4729 int a; 4730 _ACEOF 4731 if ac_fn_c_try_compile "$LINENO" 4732 then : 4733 eval "cc_cv_cflags__errwarn__all='yes'" 4734 else $as_nop 4735 eval "cc_cv_cflags__errwarn__all='no'" 4736 fi 4737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4738 CFLAGS="$ac_save_CFLAGS" 4739 4740 fi 4741 4742 4743 if eval test x$cc_cv_cflags__errwarn__all = xyes 4744 then : 4745 cc_cv_werror=-errwarn=%all 4746 fi 4747 4748 fi 4749 4750 4751 fi 4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cc_cv_werror" >&5 4753 printf "%s\n" "$cc_cv_werror" >&6; } 4754 4755 4756 4757 4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__(( visibility(\"default\") ))" >&5 4759 printf %s "checking if $CC supports __attribute__(( visibility(\"default\") ))... " >&6; } 4760 if test ${cc_cv_attribute_visibility_default+y} 4761 then : 4762 printf %s "(cached) " >&6 4763 else $as_nop 4764 ac_save_CFLAGS="$CFLAGS" 4765 CFLAGS="$CFLAGS $cc_cv_werror" 4766 ac_ext=c 4767 ac_cpp='$CPP $CPPFLAGS' 4768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4770 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4771 4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4773 /* end confdefs.h. */ 4774 void __attribute__((visibility("default"))) default_function() { } 4775 _ACEOF 4776 if ac_fn_c_try_compile "$LINENO" 4777 then : 4778 eval "cc_cv_attribute_visibility_default='yes'" 4779 else $as_nop 4780 eval "cc_cv_attribute_visibility_default='no'" 4781 fi 4782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4783 ac_ext=c 4784 ac_cpp='$CPP $CPPFLAGS' 4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4788 4789 CFLAGS="$ac_save_CFLAGS" 4790 4791 fi 4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cc_cv_attribute_visibility_default" >&5 4793 printf "%s\n" "$cc_cv_attribute_visibility_default" >&6; } 4794 4795 if eval test x$cc_cv_attribute_visibility_default = xyes 4796 then : 4797 4798 printf "%s\n" "#define SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT 1" >>confdefs.h 4799 4800 4801 4802 4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fvisibility=hidden" >&5 4804 printf %s "checking if $CC supports -fvisibility=hidden... " >&6; } 4805 if test ${cc_cv_flag_visibility+y} 4806 then : 4807 printf %s "(cached) " >&6 4808 else $as_nop 4809 cc_flag_visibility_save_CFLAGS="$CFLAGS" 4810 CFLAGS="$CFLAGS $cc_cv_werror" 4811 4812 if test ${cc_cv_cflags__fvisibility_hidden+y} 4813 then : 4814 printf %s "(cached) " >&6 4815 else $as_nop 4816 ac_save_CFLAGS="$CFLAGS" 4817 CFLAGS="$CFLAGS -fvisibility=hidden" 4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4819 /* end confdefs.h. */ 4820 int a; 4821 _ACEOF 4822 if ac_fn_c_try_compile "$LINENO" 4823 then : 4824 eval "cc_cv_cflags__fvisibility_hidden='yes'" 4825 else $as_nop 4826 eval "cc_cv_cflags__fvisibility_hidden='no'" 4827 fi 4828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4829 CFLAGS="$ac_save_CFLAGS" 4830 4831 fi 4832 4833 4834 if eval test x$cc_cv_cflags__fvisibility_hidden = xyes 4835 then : 4836 cc_cv_flag_visibility='yes' 4837 else $as_nop 4838 cc_cv_flag_visibility='no' 4839 fi 4840 4841 CFLAGS="$cc_flag_visibility_save_CFLAGS" 4842 fi 4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cc_cv_flag_visibility" >&5 4844 printf "%s\n" "$cc_cv_flag_visibility" >&6; } 4845 4846 if test "x$cc_cv_flag_visibility" = "xyes" 4847 then : 4848 4849 printf "%s\n" "#define SUPPORT_FLAG_VISIBILITY 1" >>confdefs.h 4850 4851 CFLAGS="${CFLAGS} -fvisibility=hidden" 4852 fi 4853 4854 4855 fi 4856 4857 4858 # Xlc has a flag "-f<filename>". Need to use CC_CHECK_FLAG_SUPPORTED_APPEND so 4859 # we exclude -fno-strict-aliasing for xlc 4860 4861 4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing flag" >&5 4863 printf %s "checking if $CC supports -fno-strict-aliasing flag... " >&6; } 4864 if test ${cc_cv_cflags__fno_strict_aliasing+y} 4865 then : 4866 printf %s "(cached) " >&6 4867 else $as_nop 4868 4869 if test ${cc_cv_cflags__fno_strict_aliasing+y} 4870 then : 4871 printf %s "(cached) " >&6 4872 else $as_nop 4873 ac_save_CFLAGS="$CFLAGS" 4874 CFLAGS="$CFLAGS -fno-strict-aliasing" 4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4876 /* end confdefs.h. */ 4877 int a; 4878 _ACEOF 4879 if ac_fn_c_try_compile "$LINENO" 4880 then : 4881 eval "cc_cv_cflags__fno_strict_aliasing='yes'" 4882 else $as_nop 4883 eval "cc_cv_cflags__fno_strict_aliasing='no'" 4884 fi 4885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4886 CFLAGS="$ac_save_CFLAGS" 4887 4888 fi 4889 4890 4891 if eval test x$cc_cv_cflags__fno_strict_aliasing = xyes 4892 then : 4893 4894 fi 4895 4896 fi 4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cc_cv_cflags__fno_strict_aliasing" >&5 4898 printf "%s\n" "$cc_cv_cflags__fno_strict_aliasing" >&6; } 4899 4900 if eval test x$cc_cv_cflags__fno_strict_aliasing = xyes 4901 then : 4902 4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing flag" >&5 4904 printf %s "checking if $CC supports -fno-strict-aliasing flag... " >&6; } 4905 if test ${cc_cv_ldflags__fno_strict_aliasing+y} 4906 then : 4907 printf %s "(cached) " >&6 4908 else $as_nop 4909 ac_save_LDFLAGS="$LDFLAGS" 4910 LDFLAGS="$LDFLAGS -fno-strict-aliasing" 4911 ac_ext=c 4912 ac_cpp='$CPP $CPPFLAGS' 4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4916 4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4918 /* end confdefs.h. */ 4919 int main() { return 1; } 4920 _ACEOF 4921 if ac_fn_c_try_link "$LINENO" 4922 then : 4923 eval "cc_cv_ldflags__fno_strict_aliasing='yes'" 4924 else $as_nop 4925 eval "cc_cv_ldflags__fno_strict_aliasing=" 4926 fi 4927 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4928 conftest$ac_exeext conftest.$ac_ext 4929 ac_ext=c 4930 ac_cpp='$CPP $CPPFLAGS' 4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4934 4935 LDFLAGS="$ac_save_LDFLAGS" 4936 4937 fi 4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cc_cv_ldflags__fno_strict_aliasing" >&5 4939 printf "%s\n" "$cc_cv_ldflags__fno_strict_aliasing" >&6; } 4940 4941 if eval test x$cc_cv_ldflags__fno_strict_aliasing = xyes 4942 then : 4943 AM_CFLAGS="$AM_CFLAGS -fno-strict-aliasing"; 4944 DEBUG_CFLAGS="$DEBUG_CFLAGS -fno-strict-aliasing"; 4945 4946 4947 fi 4948 4949 4950 fi 4951 4952 4953 4954 for flag in -g; do 4955 4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 4957 printf %s "checking if $CC supports $flag flag... " >&6; } 4958 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 4959 then : 4960 printf %s "(cached) " >&6 4961 else $as_nop 4962 4963 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 4964 then : 4965 printf %s "(cached) " >&6 4966 else $as_nop 4967 ac_save_CFLAGS="$CFLAGS" 4968 CFLAGS="$CFLAGS $flag" 4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4970 /* end confdefs.h. */ 4971 int a; 4972 _ACEOF 4973 if ac_fn_c_try_compile "$LINENO" 4974 then : 4975 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 4976 else $as_nop 4977 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 4978 fi 4979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4980 CFLAGS="$ac_save_CFLAGS" 4981 4982 fi 4983 4984 4985 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 4986 then : 4987 4988 fi 4989 4990 fi 4991 eval ac_res=\$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` 4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4993 printf "%s\n" "$ac_res" >&6; } 4994 4995 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 4996 then : 4997 AM_CFLAGS="$AM_CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 4998 fi 4999 5000 5001 5002 done 5003 5004 5005 for flag in -std=gnu11; do 5006 5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 5008 printf %s "checking if $CC supports $flag flag... " >&6; } 5009 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 5010 then : 5011 printf %s "(cached) " >&6 5012 else $as_nop 5013 5014 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 5015 then : 5016 printf %s "(cached) " >&6 5017 else $as_nop 5018 ac_save_CFLAGS="$CFLAGS" 5019 CFLAGS="$CFLAGS $flag" 5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5021 /* end confdefs.h. */ 5022 int a; 5023 _ACEOF 5024 if ac_fn_c_try_compile "$LINENO" 5025 then : 5026 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 5027 else $as_nop 5028 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 5029 fi 5030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5031 CFLAGS="$ac_save_CFLAGS" 5032 5033 fi 5034 5035 5036 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 5037 then : 5038 5039 fi 5040 5041 fi 5042 eval ac_res=\$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` 5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5044 printf "%s\n" "$ac_res" >&6; } 5045 5046 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 5047 then : 5048 AM_CFLAGS="$AM_CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 5049 fi 5050 5051 5052 5053 done 5054 5055 5056 for flag in -Wall; do 5057 5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 5059 printf %s "checking if $CC supports $flag flag... " >&6; } 5060 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 5061 then : 5062 printf %s "(cached) " >&6 5063 else $as_nop 5064 5065 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 5066 then : 5067 printf %s "(cached) " >&6 5068 else $as_nop 5069 ac_save_CFLAGS="$CFLAGS" 5070 CFLAGS="$CFLAGS $flag" 5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5072 /* end confdefs.h. */ 5073 int a; 5074 _ACEOF 5075 if ac_fn_c_try_compile "$LINENO" 5076 then : 5077 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 5078 else $as_nop 5079 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 5080 fi 5081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5082 CFLAGS="$ac_save_CFLAGS" 5083 5084 fi 5085 5086 5087 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 5088 then : 5089 5090 fi 5091 5092 fi 5093 eval ac_res=\$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` 5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5095 printf "%s\n" "$ac_res" >&6; } 5096 5097 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 5098 then : 5099 AM_CFLAGS="$AM_CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 5100 fi 5101 5102 5103 5104 done 5105 5106 5107 for flag in -Wextra; do 5108 5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 5110 printf %s "checking if $CC supports $flag flag... " >&6; } 5111 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 5112 then : 5113 printf %s "(cached) " >&6 5114 else $as_nop 5115 5116 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 5117 then : 5118 printf %s "(cached) " >&6 5119 else $as_nop 5120 ac_save_CFLAGS="$CFLAGS" 5121 CFLAGS="$CFLAGS $flag" 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123 /* end confdefs.h. */ 5124 int a; 5125 _ACEOF 5126 if ac_fn_c_try_compile "$LINENO" 5127 then : 5128 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 5129 else $as_nop 5130 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 5131 fi 5132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5133 CFLAGS="$ac_save_CFLAGS" 5134 5135 fi 5136 5137 5138 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 5139 then : 5140 5141 fi 5142 5143 fi 5144 eval ac_res=\$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` 5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5146 printf "%s\n" "$ac_res" >&6; } 5147 5148 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 5149 then : 5150 AM_CFLAGS="$AM_CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 5151 fi 5152 5153 5154 5155 done 5156 5157 5158 for flag in -Wno-long-long; do 5159 5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 5161 printf %s "checking if $CC supports $flag flag... " >&6; } 5162 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 5163 then : 5164 printf %s "(cached) " >&6 5165 else $as_nop 5166 5167 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 5168 then : 5169 printf %s "(cached) " >&6 5170 else $as_nop 5171 ac_save_CFLAGS="$CFLAGS" 5172 CFLAGS="$CFLAGS $flag" 5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174 /* end confdefs.h. */ 5175 int a; 5176 _ACEOF 5177 if ac_fn_c_try_compile "$LINENO" 5178 then : 5179 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 5180 else $as_nop 5181 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 5182 fi 5183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5184 CFLAGS="$ac_save_CFLAGS" 5185 5186 fi 5187 5188 5189 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 5190 then : 5191 5192 fi 5193 5194 fi 5195 eval ac_res=\$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` 5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5197 printf "%s\n" "$ac_res" >&6; } 5198 5199 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 5200 then : 5201 AM_CFLAGS="$AM_CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 5202 fi 5203 5204 5205 5206 done 5207 5208 5209 for flag in -Wno-unused-parameter; do 5210 5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 5212 printf %s "checking if $CC supports $flag flag... " >&6; } 5213 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 5214 then : 5215 printf %s "(cached) " >&6 5216 else $as_nop 5217 5218 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 5219 then : 5220 printf %s "(cached) " >&6 5221 else $as_nop 5222 ac_save_CFLAGS="$CFLAGS" 5223 CFLAGS="$CFLAGS $flag" 5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5225 /* end confdefs.h. */ 5226 int a; 5227 _ACEOF 5228 if ac_fn_c_try_compile "$LINENO" 5229 then : 5230 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 5231 else $as_nop 5232 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 5233 fi 5234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5235 CFLAGS="$ac_save_CFLAGS" 5236 5237 fi 5238 5239 5240 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 5241 then : 5242 5243 fi 5244 5245 fi 5246 eval ac_res=\$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` 5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5248 printf "%s\n" "$ac_res" >&6; } 5249 5250 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 5251 then : 5252 AM_CFLAGS="$AM_CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 5253 fi 5254 5255 5256 5257 done 5258 5259 5260 for flag in -Wstrict-prototypes; do 5261 5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 5263 printf %s "checking if $CC supports $flag flag... " >&6; } 5264 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 5265 then : 5266 printf %s "(cached) " >&6 5267 else $as_nop 5268 5269 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 5270 then : 5271 printf %s "(cached) " >&6 5272 else $as_nop 5273 ac_save_CFLAGS="$CFLAGS" 5274 CFLAGS="$CFLAGS $flag" 5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5276 /* end confdefs.h. */ 5277 int a; 5278 _ACEOF 5279 if ac_fn_c_try_compile "$LINENO" 5280 then : 5281 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 5282 else $as_nop 5283 eval "`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 5284 fi 5285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5286 CFLAGS="$ac_save_CFLAGS" 5287 5288 fi 5289 5290 5291 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 5292 then : 5293 5294 fi 5295 5296 fi 5297 eval ac_res=\$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5299 printf "%s\n" "$ac_res" >&6; } 5300 5301 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | $as_tr_sh` = xyes 5302 then : 5303 AM_CFLAGS="$AM_CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 5304 fi 5305 5306 5307 5308 done 5309 5310 # AM_PROG_AR is not available in automake v0.11 but it's essential in v0.12. 5311 5312 if test -n "$ac_tool_prefix"; then 5313 for ac_prog in ar lib "link -lib" 5314 do 5315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5318 printf %s "checking for $ac_word... " >&6; } 5319 if test ${ac_cv_prog_AR+y} 5320 then : 5321 printf %s "(cached) " >&6 5322 else $as_nop 5323 if test -n "$AR"; then 5324 ac_cv_prog_AR="$AR" # Let the user override the test. 5325 else 5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5327 for as_dir in $PATH 5328 do 5329 IFS=$as_save_IFS 5330 case $as_dir in #((( 5331 '') as_dir=./ ;; 5332 */) ;; 5333 *) as_dir=$as_dir/ ;; 5334 esac 5335 for ac_exec_ext in '' $ac_executable_extensions; do 5336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5337 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5339 break 2 5340 fi 5341 done 5342 done 5343 IFS=$as_save_IFS 5344 5345 fi 5346 fi 5347 AR=$ac_cv_prog_AR 5348 if test -n "$AR"; then 5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5350 printf "%s\n" "$AR" >&6; } 5351 else 5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5353 printf "%s\n" "no" >&6; } 5354 fi 5355 5356 5357 test -n "$AR" && break 5358 done 5359 fi 5360 if test -z "$AR"; then 5361 ac_ct_AR=$AR 5362 for ac_prog in ar lib "link -lib" 5363 do 5364 # Extract the first word of "$ac_prog", so it can be a program name with args. 5365 set dummy $ac_prog; ac_word=$2 5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5367 printf %s "checking for $ac_word... " >&6; } 5368 if test ${ac_cv_prog_ac_ct_AR+y} 5369 then : 5370 printf %s "(cached) " >&6 5371 else $as_nop 5372 if test -n "$ac_ct_AR"; then 5373 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5374 else 5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5376 for as_dir in $PATH 5377 do 5378 IFS=$as_save_IFS 5379 case $as_dir in #((( 5380 '') as_dir=./ ;; 5381 */) ;; 5382 *) as_dir=$as_dir/ ;; 5383 esac 5384 for ac_exec_ext in '' $ac_executable_extensions; do 5385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5386 ac_cv_prog_ac_ct_AR="$ac_prog" 5387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5388 break 2 5389 fi 5390 done 5391 done 5392 IFS=$as_save_IFS 5393 5394 fi 5395 fi 5396 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5397 if test -n "$ac_ct_AR"; then 5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5399 printf "%s\n" "$ac_ct_AR" >&6; } 5400 else 5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5402 printf "%s\n" "no" >&6; } 5403 fi 5404 5405 5406 test -n "$ac_ct_AR" && break 5407 done 5408 5409 if test "x$ac_ct_AR" = x; then 5410 AR="false" 5411 else 5412 case $cross_compiling:$ac_tool_warned in 5413 yes:) 5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5415 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5416 ac_tool_warned=yes ;; 5417 esac 5418 AR=$ac_ct_AR 5419 fi 5420 fi 5421 5422 : ${AR=ar} 5423 5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5425 printf %s "checking the archiver ($AR) interface... " >&6; } 5426 if test ${am_cv_ar_interface+y} 5427 then : 5428 printf %s "(cached) " >&6 5429 else $as_nop 5430 ac_ext=c 5431 ac_cpp='$CPP $CPPFLAGS' 5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5435 5436 am_cv_ar_interface=ar 5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5438 /* end confdefs.h. */ 5439 int some_variable = 0; 5440 _ACEOF 5441 if ac_fn_c_try_compile "$LINENO" 5442 then : 5443 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5445 (eval $am_ar_try) 2>&5 5446 ac_status=$? 5447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5448 test $ac_status = 0; } 5449 if test "$ac_status" -eq 0; then 5450 am_cv_ar_interface=ar 5451 else 5452 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5454 (eval $am_ar_try) 2>&5 5455 ac_status=$? 5456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5457 test $ac_status = 0; } 5458 if test "$ac_status" -eq 0; then 5459 am_cv_ar_interface=lib 5460 else 5461 am_cv_ar_interface=unknown 5462 fi 5463 fi 5464 rm -f conftest.lib libconftest.a 5465 5466 fi 5467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5468 ac_ext=c 5469 ac_cpp='$CPP $CPPFLAGS' 5470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5472 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5473 5474 fi 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5476 printf "%s\n" "$am_cv_ar_interface" >&6; } 5477 5478 case $am_cv_ar_interface in 5479 ar) 5480 ;; 5481 lib) 5482 # Microsoft lib, so override with the ar-lib wrapper script. 5483 # FIXME: It is wrong to rewrite AR. 5484 # But if we don't then we get into trouble of one sort or another. 5485 # A longer-term fix would be to have automake use am__AR in this case, 5486 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5487 # similar. 5488 AR="$am_aux_dir/ar-lib $AR" 5489 ;; 5490 unknown) 5491 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5492 ;; 5493 esac 5494 5495 # autoconf complains if AC_PROG_LIBTOOL precedes AM_PROG_AR. 5496 case `pwd` in 5497 *\ * | *\ *) 5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5499 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5500 esac 5501 5502 5503 5504 macro_version='2.4.7' 5505 macro_revision='2.4.7' 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 ltmain=$ac_aux_dir/ltmain.sh 5521 5522 # Backslashify metacharacters that are still active within 5523 # double-quoted strings. 5524 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5525 5526 # Same as above, but do not quote variable references. 5527 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5528 5529 # Sed substitution to delay expansion of an escaped shell variable in a 5530 # double_quote_subst'ed string. 5531 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5532 5533 # Sed substitution to delay expansion of an escaped single quote. 5534 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5535 5536 # Sed substitution to avoid accidental globbing in evaled expressions 5537 no_glob_subst='s/\*/\\\*/g' 5538 5539 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5540 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5541 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5542 5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5544 printf %s "checking how to print strings... " >&6; } 5545 # Test print first, because it will be a builtin if present. 5546 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5547 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5548 ECHO='print -r --' 5549 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5550 ECHO='printf %s\n' 5551 else 5552 # Use this function as a fallback that always works. 5553 func_fallback_echo () 5554 { 5555 eval 'cat <<_LTECHO_EOF 5556 $1 5557 _LTECHO_EOF' 5558 } 5559 ECHO='func_fallback_echo' 5560 fi 5561 5562 # func_echo_all arg... 5563 # Invoke $ECHO with all args, space-separated. 5564 func_echo_all () 5565 { 5566 $ECHO "" 5567 } 5568 5569 case $ECHO in 5570 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5571 printf "%s\n" "printf" >&6; } ;; 5572 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5573 printf "%s\n" "print -r" >&6; } ;; 5574 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5575 printf "%s\n" "cat" >&6; } ;; 5576 esac 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5592 printf %s "checking for a sed that does not truncate output... " >&6; } 5593 if test ${ac_cv_path_SED+y} 5594 then : 5595 printf %s "(cached) " >&6 5596 else $as_nop 5597 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5598 for ac_i in 1 2 3 4 5 6 7; do 5599 ac_script="$ac_script$as_nl$ac_script" 5600 done 5601 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5602 { ac_script=; unset ac_script;} 5603 if test -z "$SED"; then 5604 ac_path_SED_found=false 5605 # Loop through the user's path and test for each of PROGNAME-LIST 5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5607 for as_dir in $PATH 5608 do 5609 IFS=$as_save_IFS 5610 case $as_dir in #((( 5611 '') as_dir=./ ;; 5612 */) ;; 5613 *) as_dir=$as_dir/ ;; 5614 esac 5615 for ac_prog in sed gsed 5616 do 5617 for ac_exec_ext in '' $ac_executable_extensions; do 5618 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5619 as_fn_executable_p "$ac_path_SED" || continue 5620 # Check for GNU ac_path_SED and select it if it is found. 5621 # Check for GNU $ac_path_SED 5622 case `"$ac_path_SED" --version 2>&1` in 5623 *GNU*) 5624 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5625 *) 5626 ac_count=0 5627 printf %s 0123456789 >"conftest.in" 5628 while : 5629 do 5630 cat "conftest.in" "conftest.in" >"conftest.tmp" 5631 mv "conftest.tmp" "conftest.in" 5632 cp "conftest.in" "conftest.nl" 5633 printf "%s\n" '' >> "conftest.nl" 5634 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5636 as_fn_arith $ac_count + 1 && ac_count=$as_val 5637 if test $ac_count -gt ${ac_path_SED_max-0}; then 5638 # Best one so far, save it but keep looking for a better one 5639 ac_cv_path_SED="$ac_path_SED" 5640 ac_path_SED_max=$ac_count 5641 fi 5642 # 10*(2^10) chars as input seems more than enough 5643 test $ac_count -gt 10 && break 5644 done 5645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5646 esac 5647 5648 $ac_path_SED_found && break 3 5649 done 5650 done 5651 done 5652 IFS=$as_save_IFS 5653 if test -z "$ac_cv_path_SED"; then 5654 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5655 fi 5656 else 5657 ac_cv_path_SED=$SED 5658 fi 5659 5660 fi 5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5662 printf "%s\n" "$ac_cv_path_SED" >&6; } 5663 SED="$ac_cv_path_SED" 5664 rm -f conftest.sed 5665 5666 test -z "$SED" && SED=sed 5667 Xsed="$SED -e 1s/^X//" 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5680 printf %s "checking for grep that handles long lines and -e... " >&6; } 5681 if test ${ac_cv_path_GREP+y} 5682 then : 5683 printf %s "(cached) " >&6 5684 else $as_nop 5685 if test -z "$GREP"; then 5686 ac_path_GREP_found=false 5687 # Loop through the user's path and test for each of PROGNAME-LIST 5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5689 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5690 do 5691 IFS=$as_save_IFS 5692 case $as_dir in #((( 5693 '') as_dir=./ ;; 5694 */) ;; 5695 *) as_dir=$as_dir/ ;; 5696 esac 5697 for ac_prog in grep ggrep 5698 do 5699 for ac_exec_ext in '' $ac_executable_extensions; do 5700 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5701 as_fn_executable_p "$ac_path_GREP" || continue 5702 # Check for GNU ac_path_GREP and select it if it is found. 5703 # Check for GNU $ac_path_GREP 5704 case `"$ac_path_GREP" --version 2>&1` in 5705 *GNU*) 5706 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5707 *) 5708 ac_count=0 5709 printf %s 0123456789 >"conftest.in" 5710 while : 5711 do 5712 cat "conftest.in" "conftest.in" >"conftest.tmp" 5713 mv "conftest.tmp" "conftest.in" 5714 cp "conftest.in" "conftest.nl" 5715 printf "%s\n" 'GREP' >> "conftest.nl" 5716 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5718 as_fn_arith $ac_count + 1 && ac_count=$as_val 5719 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5720 # Best one so far, save it but keep looking for a better one 5721 ac_cv_path_GREP="$ac_path_GREP" 5722 ac_path_GREP_max=$ac_count 5723 fi 5724 # 10*(2^10) chars as input seems more than enough 5725 test $ac_count -gt 10 && break 5726 done 5727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5728 esac 5729 5730 $ac_path_GREP_found && break 3 5731 done 5732 done 5733 done 5734 IFS=$as_save_IFS 5735 if test -z "$ac_cv_path_GREP"; then 5736 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5737 fi 5738 else 5739 ac_cv_path_GREP=$GREP 5740 fi 5741 5742 fi 5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5744 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5745 GREP="$ac_cv_path_GREP" 5746 5747 5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5749 printf %s "checking for egrep... " >&6; } 5750 if test ${ac_cv_path_EGREP+y} 5751 then : 5752 printf %s "(cached) " >&6 5753 else $as_nop 5754 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5755 then ac_cv_path_EGREP="$GREP -E" 5756 else 5757 if test -z "$EGREP"; then 5758 ac_path_EGREP_found=false 5759 # Loop through the user's path and test for each of PROGNAME-LIST 5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5762 do 5763 IFS=$as_save_IFS 5764 case $as_dir in #((( 5765 '') as_dir=./ ;; 5766 */) ;; 5767 *) as_dir=$as_dir/ ;; 5768 esac 5769 for ac_prog in egrep 5770 do 5771 for ac_exec_ext in '' $ac_executable_extensions; do 5772 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5773 as_fn_executable_p "$ac_path_EGREP" || continue 5774 # Check for GNU ac_path_EGREP and select it if it is found. 5775 # Check for GNU $ac_path_EGREP 5776 case `"$ac_path_EGREP" --version 2>&1` in 5777 *GNU*) 5778 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5779 *) 5780 ac_count=0 5781 printf %s 0123456789 >"conftest.in" 5782 while : 5783 do 5784 cat "conftest.in" "conftest.in" >"conftest.tmp" 5785 mv "conftest.tmp" "conftest.in" 5786 cp "conftest.in" "conftest.nl" 5787 printf "%s\n" 'EGREP' >> "conftest.nl" 5788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5790 as_fn_arith $ac_count + 1 && ac_count=$as_val 5791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5792 # Best one so far, save it but keep looking for a better one 5793 ac_cv_path_EGREP="$ac_path_EGREP" 5794 ac_path_EGREP_max=$ac_count 5795 fi 5796 # 10*(2^10) chars as input seems more than enough 5797 test $ac_count -gt 10 && break 5798 done 5799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5800 esac 5801 5802 $ac_path_EGREP_found && break 3 5803 done 5804 done 5805 done 5806 IFS=$as_save_IFS 5807 if test -z "$ac_cv_path_EGREP"; then 5808 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5809 fi 5810 else 5811 ac_cv_path_EGREP=$EGREP 5812 fi 5813 5814 fi 5815 fi 5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5817 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5818 EGREP="$ac_cv_path_EGREP" 5819 5820 5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5822 printf %s "checking for fgrep... " >&6; } 5823 if test ${ac_cv_path_FGREP+y} 5824 then : 5825 printf %s "(cached) " >&6 5826 else $as_nop 5827 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5828 then ac_cv_path_FGREP="$GREP -F" 5829 else 5830 if test -z "$FGREP"; then 5831 ac_path_FGREP_found=false 5832 # Loop through the user's path and test for each of PROGNAME-LIST 5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5835 do 5836 IFS=$as_save_IFS 5837 case $as_dir in #((( 5838 '') as_dir=./ ;; 5839 */) ;; 5840 *) as_dir=$as_dir/ ;; 5841 esac 5842 for ac_prog in fgrep 5843 do 5844 for ac_exec_ext in '' $ac_executable_extensions; do 5845 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5846 as_fn_executable_p "$ac_path_FGREP" || continue 5847 # Check for GNU ac_path_FGREP and select it if it is found. 5848 # Check for GNU $ac_path_FGREP 5849 case `"$ac_path_FGREP" --version 2>&1` in 5850 *GNU*) 5851 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5852 *) 5853 ac_count=0 5854 printf %s 0123456789 >"conftest.in" 5855 while : 5856 do 5857 cat "conftest.in" "conftest.in" >"conftest.tmp" 5858 mv "conftest.tmp" "conftest.in" 5859 cp "conftest.in" "conftest.nl" 5860 printf "%s\n" 'FGREP' >> "conftest.nl" 5861 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5863 as_fn_arith $ac_count + 1 && ac_count=$as_val 5864 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5865 # Best one so far, save it but keep looking for a better one 5866 ac_cv_path_FGREP="$ac_path_FGREP" 5867 ac_path_FGREP_max=$ac_count 5868 fi 5869 # 10*(2^10) chars as input seems more than enough 5870 test $ac_count -gt 10 && break 5871 done 5872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5873 esac 5874 5875 $ac_path_FGREP_found && break 3 5876 done 5877 done 5878 done 5879 IFS=$as_save_IFS 5880 if test -z "$ac_cv_path_FGREP"; then 5881 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5882 fi 5883 else 5884 ac_cv_path_FGREP=$FGREP 5885 fi 5886 5887 fi 5888 fi 5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5890 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5891 FGREP="$ac_cv_path_FGREP" 5892 5893 5894 test -z "$GREP" && GREP=grep 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 # Check whether --with-gnu-ld was given. 5915 if test ${with_gnu_ld+y} 5916 then : 5917 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5918 else $as_nop 5919 with_gnu_ld=no 5920 fi 5921 5922 ac_prog=ld 5923 if test yes = "$GCC"; then 5924 # Check if gcc -print-prog-name=ld gives a path. 5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5926 printf %s "checking for ld used by $CC... " >&6; } 5927 case $host in 5928 *-*-mingw*) 5929 # gcc leaves a trailing carriage return, which upsets mingw 5930 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5931 *) 5932 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5933 esac 5934 case $ac_prog in 5935 # Accept absolute paths. 5936 [\\/]* | ?:[\\/]*) 5937 re_direlt='/[^/][^/]*/\.\./' 5938 # Canonicalize the pathname of ld 5939 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5940 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5941 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5942 done 5943 test -z "$LD" && LD=$ac_prog 5944 ;; 5945 "") 5946 # If it fails, then pretend we aren't using GCC. 5947 ac_prog=ld 5948 ;; 5949 *) 5950 # If it is relative, then search for the first ld in PATH. 5951 with_gnu_ld=unknown 5952 ;; 5953 esac 5954 elif test yes = "$with_gnu_ld"; then 5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5956 printf %s "checking for GNU ld... " >&6; } 5957 else 5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5959 printf %s "checking for non-GNU ld... " >&6; } 5960 fi 5961 if test ${lt_cv_path_LD+y} 5962 then : 5963 printf %s "(cached) " >&6 5964 else $as_nop 5965 if test -z "$LD"; then 5966 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5967 for ac_dir in $PATH; do 5968 IFS=$lt_save_ifs 5969 test -z "$ac_dir" && ac_dir=. 5970 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5971 lt_cv_path_LD=$ac_dir/$ac_prog 5972 # Check to see if the program is GNU ld. I'd rather use --version, 5973 # but apparently some variants of GNU ld only accept -v. 5974 # Break only if it was the GNU/non-GNU ld that we prefer. 5975 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5976 *GNU* | *'with BFD'*) 5977 test no != "$with_gnu_ld" && break 5978 ;; 5979 *) 5980 test yes != "$with_gnu_ld" && break 5981 ;; 5982 esac 5983 fi 5984 done 5985 IFS=$lt_save_ifs 5986 else 5987 lt_cv_path_LD=$LD # Let the user override the test with a path. 5988 fi 5989 fi 5990 5991 LD=$lt_cv_path_LD 5992 if test -n "$LD"; then 5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5994 printf "%s\n" "$LD" >&6; } 5995 else 5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5997 printf "%s\n" "no" >&6; } 5998 fi 5999 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6001 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6002 if test ${lt_cv_prog_gnu_ld+y} 6003 then : 6004 printf %s "(cached) " >&6 6005 else $as_nop 6006 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6007 case `$LD -v 2>&1 </dev/null` in 6008 *GNU* | *'with BFD'*) 6009 lt_cv_prog_gnu_ld=yes 6010 ;; 6011 *) 6012 lt_cv_prog_gnu_ld=no 6013 ;; 6014 esac 6015 fi 6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6017 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6018 with_gnu_ld=$lt_cv_prog_gnu_ld 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6029 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6030 if test ${lt_cv_path_NM+y} 6031 then : 6032 printf %s "(cached) " >&6 6033 else $as_nop 6034 if test -n "$NM"; then 6035 # Let the user override the test. 6036 lt_cv_path_NM=$NM 6037 else 6038 lt_nm_to_check=${ac_tool_prefix}nm 6039 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6040 lt_nm_to_check="$lt_nm_to_check nm" 6041 fi 6042 for lt_tmp_nm in $lt_nm_to_check; do 6043 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6044 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6045 IFS=$lt_save_ifs 6046 test -z "$ac_dir" && ac_dir=. 6047 tmp_nm=$ac_dir/$lt_tmp_nm 6048 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6049 # Check to see if the nm accepts a BSD-compat flag. 6050 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6051 # nm: unknown option "B" ignored 6052 # Tru64's nm complains that /dev/null is an invalid object file 6053 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6054 case $build_os in 6055 mingw*) lt_bad_file=conftest.nm/nofile ;; 6056 *) lt_bad_file=/dev/null ;; 6057 esac 6058 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 6059 *$lt_bad_file* | *'Invalid file or object type'*) 6060 lt_cv_path_NM="$tmp_nm -B" 6061 break 2 6062 ;; 6063 *) 6064 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 6065 */dev/null*) 6066 lt_cv_path_NM="$tmp_nm -p" 6067 break 2 6068 ;; 6069 *) 6070 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6071 continue # so that we can try to find one that supports BSD flags 6072 ;; 6073 esac 6074 ;; 6075 esac 6076 fi 6077 done 6078 IFS=$lt_save_ifs 6079 done 6080 : ${lt_cv_path_NM=no} 6081 fi 6082 fi 6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6084 printf "%s\n" "$lt_cv_path_NM" >&6; } 6085 if test no != "$lt_cv_path_NM"; then 6086 NM=$lt_cv_path_NM 6087 else 6088 # Didn't find any BSD compatible name lister, look for dumpbin. 6089 if test -n "$DUMPBIN"; then : 6090 # Let the user override the test. 6091 else 6092 if test -n "$ac_tool_prefix"; then 6093 for ac_prog in dumpbin "link -dump" 6094 do 6095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6098 printf %s "checking for $ac_word... " >&6; } 6099 if test ${ac_cv_prog_DUMPBIN+y} 6100 then : 6101 printf %s "(cached) " >&6 6102 else $as_nop 6103 if test -n "$DUMPBIN"; then 6104 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6105 else 6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6107 for as_dir in $PATH 6108 do 6109 IFS=$as_save_IFS 6110 case $as_dir in #((( 6111 '') as_dir=./ ;; 6112 */) ;; 6113 *) as_dir=$as_dir/ ;; 6114 esac 6115 for ac_exec_ext in '' $ac_executable_extensions; do 6116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6117 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6119 break 2 6120 fi 6121 done 6122 done 6123 IFS=$as_save_IFS 6124 6125 fi 6126 fi 6127 DUMPBIN=$ac_cv_prog_DUMPBIN 6128 if test -n "$DUMPBIN"; then 6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6130 printf "%s\n" "$DUMPBIN" >&6; } 6131 else 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6133 printf "%s\n" "no" >&6; } 6134 fi 6135 6136 6137 test -n "$DUMPBIN" && break 6138 done 6139 fi 6140 if test -z "$DUMPBIN"; then 6141 ac_ct_DUMPBIN=$DUMPBIN 6142 for ac_prog in dumpbin "link -dump" 6143 do 6144 # Extract the first word of "$ac_prog", so it can be a program name with args. 6145 set dummy $ac_prog; ac_word=$2 6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6147 printf %s "checking for $ac_word... " >&6; } 6148 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6149 then : 6150 printf %s "(cached) " >&6 6151 else $as_nop 6152 if test -n "$ac_ct_DUMPBIN"; then 6153 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6154 else 6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6156 for as_dir in $PATH 6157 do 6158 IFS=$as_save_IFS 6159 case $as_dir in #((( 6160 '') as_dir=./ ;; 6161 */) ;; 6162 *) as_dir=$as_dir/ ;; 6163 esac 6164 for ac_exec_ext in '' $ac_executable_extensions; do 6165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6166 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6168 break 2 6169 fi 6170 done 6171 done 6172 IFS=$as_save_IFS 6173 6174 fi 6175 fi 6176 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6177 if test -n "$ac_ct_DUMPBIN"; then 6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6179 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6180 else 6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6182 printf "%s\n" "no" >&6; } 6183 fi 6184 6185 6186 test -n "$ac_ct_DUMPBIN" && break 6187 done 6188 6189 if test "x$ac_ct_DUMPBIN" = x; then 6190 DUMPBIN=":" 6191 else 6192 case $cross_compiling:$ac_tool_warned in 6193 yes:) 6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6195 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6196 ac_tool_warned=yes ;; 6197 esac 6198 DUMPBIN=$ac_ct_DUMPBIN 6199 fi 6200 fi 6201 6202 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 6203 *COFF*) 6204 DUMPBIN="$DUMPBIN -symbols -headers" 6205 ;; 6206 *) 6207 DUMPBIN=: 6208 ;; 6209 esac 6210 fi 6211 6212 if test : != "$DUMPBIN"; then 6213 NM=$DUMPBIN 6214 fi 6215 fi 6216 test -z "$NM" && NM=nm 6217 6218 6219 6220 6221 6222 6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6224 printf %s "checking the name lister ($NM) interface... " >&6; } 6225 if test ${lt_cv_nm_interface+y} 6226 then : 6227 printf %s "(cached) " >&6 6228 else $as_nop 6229 lt_cv_nm_interface="BSD nm" 6230 echo "int some_variable = 0;" > conftest.$ac_ext 6231 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6232 (eval "$ac_compile" 2>conftest.err) 6233 cat conftest.err >&5 6234 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6235 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6236 cat conftest.err >&5 6237 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6238 cat conftest.out >&5 6239 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6240 lt_cv_nm_interface="MS dumpbin" 6241 fi 6242 rm -f conftest* 6243 fi 6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6245 printf "%s\n" "$lt_cv_nm_interface" >&6; } 6246 6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6248 printf %s "checking whether ln -s works... " >&6; } 6249 LN_S=$as_ln_s 6250 if test "$LN_S" = "ln -s"; then 6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6252 printf "%s\n" "yes" >&6; } 6253 else 6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6255 printf "%s\n" "no, using $LN_S" >&6; } 6256 fi 6257 6258 # find the maximum length of command line arguments 6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6260 printf %s "checking the maximum length of command line arguments... " >&6; } 6261 if test ${lt_cv_sys_max_cmd_len+y} 6262 then : 6263 printf %s "(cached) " >&6 6264 else $as_nop 6265 i=0 6266 teststring=ABCD 6267 6268 case $build_os in 6269 msdosdjgpp*) 6270 # On DJGPP, this test can blow up pretty badly due to problems in libc 6271 # (any single argument exceeding 2000 bytes causes a buffer overrun 6272 # during glob expansion). Even if it were fixed, the result of this 6273 # check would be larger than it should be. 6274 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6275 ;; 6276 6277 gnu*) 6278 # Under GNU Hurd, this test is not required because there is 6279 # no limit to the length of command line arguments. 6280 # Libtool will interpret -1 as no limit whatsoever 6281 lt_cv_sys_max_cmd_len=-1; 6282 ;; 6283 6284 cygwin* | mingw* | cegcc*) 6285 # On Win9x/ME, this test blows up -- it succeeds, but takes 6286 # about 5 minutes as the teststring grows exponentially. 6287 # Worse, since 9x/ME are not pre-emptively multitasking, 6288 # you end up with a "frozen" computer, even though with patience 6289 # the test eventually succeeds (with a max line length of 256k). 6290 # Instead, let's just punt: use the minimum linelength reported by 6291 # all of the supported platforms: 8192 (on NT/2K/XP). 6292 lt_cv_sys_max_cmd_len=8192; 6293 ;; 6294 6295 mint*) 6296 # On MiNT this can take a long time and run out of memory. 6297 lt_cv_sys_max_cmd_len=8192; 6298 ;; 6299 6300 amigaos*) 6301 # On AmigaOS with pdksh, this test takes hours, literally. 6302 # So we just punt and use a minimum line length of 8192. 6303 lt_cv_sys_max_cmd_len=8192; 6304 ;; 6305 6306 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6307 # This has been around since 386BSD, at least. Likely further. 6308 if test -x /sbin/sysctl; then 6309 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6310 elif test -x /usr/sbin/sysctl; then 6311 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6312 else 6313 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6314 fi 6315 # And add a safety zone 6316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6318 ;; 6319 6320 interix*) 6321 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6322 lt_cv_sys_max_cmd_len=196608 6323 ;; 6324 6325 os2*) 6326 # The test takes a long time on OS/2. 6327 lt_cv_sys_max_cmd_len=8192 6328 ;; 6329 6330 osf*) 6331 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6332 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6333 # nice to cause kernel panics so lets avoid the loop below. 6334 # First set a reasonable default. 6335 lt_cv_sys_max_cmd_len=16384 6336 # 6337 if test -x /sbin/sysconfig; then 6338 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6339 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6340 esac 6341 fi 6342 ;; 6343 sco3.2v5*) 6344 lt_cv_sys_max_cmd_len=102400 6345 ;; 6346 sysv5* | sco5v6* | sysv4.2uw2*) 6347 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6348 if test -n "$kargmax"; then 6349 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6350 else 6351 lt_cv_sys_max_cmd_len=32768 6352 fi 6353 ;; 6354 *) 6355 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6356 if test -n "$lt_cv_sys_max_cmd_len" && \ 6357 test undefined != "$lt_cv_sys_max_cmd_len"; then 6358 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6360 else 6361 # Make teststring a little bigger before we do anything with it. 6362 # a 1K string should be a reasonable start. 6363 for i in 1 2 3 4 5 6 7 8; do 6364 teststring=$teststring$teststring 6365 done 6366 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6367 # If test is not a shell built-in, we'll probably end up computing a 6368 # maximum length that is only half of the actual maximum length, but 6369 # we can't tell. 6370 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6371 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6372 test 17 != "$i" # 1/2 MB should be enough 6373 do 6374 i=`expr $i + 1` 6375 teststring=$teststring$teststring 6376 done 6377 # Only check the string length outside the loop. 6378 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6379 teststring= 6380 # Add a significant safety factor because C++ compilers can tack on 6381 # massive amounts of additional arguments before passing them to the 6382 # linker. It appears as though 1/2 is a usable value. 6383 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6384 fi 6385 ;; 6386 esac 6387 6388 fi 6389 6390 if test -n "$lt_cv_sys_max_cmd_len"; then 6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6392 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6393 else 6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6395 printf "%s\n" "none" >&6; } 6396 fi 6397 max_cmd_len=$lt_cv_sys_max_cmd_len 6398 6399 6400 6401 6402 6403 6404 : ${CP="cp -f"} 6405 : ${MV="mv -f"} 6406 : ${RM="rm -f"} 6407 6408 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6409 lt_unset=unset 6410 else 6411 lt_unset=false 6412 fi 6413 6414 6415 6416 6417 6418 # test EBCDIC or ASCII 6419 case `echo X|tr X '\101'` in 6420 A) # ASCII based system 6421 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6422 lt_SP2NL='tr \040 \012' 6423 lt_NL2SP='tr \015\012 \040\040' 6424 ;; 6425 *) # EBCDIC based system 6426 lt_SP2NL='tr \100 \n' 6427 lt_NL2SP='tr \r\n \100\100' 6428 ;; 6429 esac 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6440 printf %s "checking how to convert $build file names to $host format... " >&6; } 6441 if test ${lt_cv_to_host_file_cmd+y} 6442 then : 6443 printf %s "(cached) " >&6 6444 else $as_nop 6445 case $host in 6446 *-*-mingw* ) 6447 case $build in 6448 *-*-mingw* ) # actually msys 6449 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6450 ;; 6451 *-*-cygwin* ) 6452 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6453 ;; 6454 * ) # otherwise, assume *nix 6455 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6456 ;; 6457 esac 6458 ;; 6459 *-*-cygwin* ) 6460 case $build in 6461 *-*-mingw* ) # actually msys 6462 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6463 ;; 6464 *-*-cygwin* ) 6465 lt_cv_to_host_file_cmd=func_convert_file_noop 6466 ;; 6467 * ) # otherwise, assume *nix 6468 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6469 ;; 6470 esac 6471 ;; 6472 * ) # unhandled hosts (and "normal" native builds) 6473 lt_cv_to_host_file_cmd=func_convert_file_noop 6474 ;; 6475 esac 6476 6477 fi 6478 6479 to_host_file_cmd=$lt_cv_to_host_file_cmd 6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6481 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6482 6483 6484 6485 6486 6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6488 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6489 if test ${lt_cv_to_tool_file_cmd+y} 6490 then : 6491 printf %s "(cached) " >&6 6492 else $as_nop 6493 #assume ordinary cross tools, or native build. 6494 lt_cv_to_tool_file_cmd=func_convert_file_noop 6495 case $host in 6496 *-*-mingw* ) 6497 case $build in 6498 *-*-mingw* ) # actually msys 6499 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6500 ;; 6501 esac 6502 ;; 6503 esac 6504 6505 fi 6506 6507 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6509 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6510 6511 6512 6513 6514 6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6516 printf %s "checking for $LD option to reload object files... " >&6; } 6517 if test ${lt_cv_ld_reload_flag+y} 6518 then : 6519 printf %s "(cached) " >&6 6520 else $as_nop 6521 lt_cv_ld_reload_flag='-r' 6522 fi 6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6524 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6525 reload_flag=$lt_cv_ld_reload_flag 6526 case $reload_flag in 6527 "" | " "*) ;; 6528 *) reload_flag=" $reload_flag" ;; 6529 esac 6530 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6531 case $host_os in 6532 cygwin* | mingw* | pw32* | cegcc*) 6533 if test yes != "$GCC"; then 6534 reload_cmds=false 6535 fi 6536 ;; 6537 darwin*) 6538 if test yes = "$GCC"; then 6539 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6540 else 6541 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6542 fi 6543 ;; 6544 esac 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 if test -n "$ac_tool_prefix"; then 6555 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6556 set dummy ${ac_tool_prefix}file; ac_word=$2 6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6558 printf %s "checking for $ac_word... " >&6; } 6559 if test ${ac_cv_prog_FILECMD+y} 6560 then : 6561 printf %s "(cached) " >&6 6562 else $as_nop 6563 if test -n "$FILECMD"; then 6564 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6565 else 6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6567 for as_dir in $PATH 6568 do 6569 IFS=$as_save_IFS 6570 case $as_dir in #((( 6571 '') as_dir=./ ;; 6572 */) ;; 6573 *) as_dir=$as_dir/ ;; 6574 esac 6575 for ac_exec_ext in '' $ac_executable_extensions; do 6576 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6577 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6579 break 2 6580 fi 6581 done 6582 done 6583 IFS=$as_save_IFS 6584 6585 fi 6586 fi 6587 FILECMD=$ac_cv_prog_FILECMD 6588 if test -n "$FILECMD"; then 6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6590 printf "%s\n" "$FILECMD" >&6; } 6591 else 6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6593 printf "%s\n" "no" >&6; } 6594 fi 6595 6596 6597 fi 6598 if test -z "$ac_cv_prog_FILECMD"; then 6599 ac_ct_FILECMD=$FILECMD 6600 # Extract the first word of "file", so it can be a program name with args. 6601 set dummy file; ac_word=$2 6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6603 printf %s "checking for $ac_word... " >&6; } 6604 if test ${ac_cv_prog_ac_ct_FILECMD+y} 6605 then : 6606 printf %s "(cached) " >&6 6607 else $as_nop 6608 if test -n "$ac_ct_FILECMD"; then 6609 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6610 else 6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6612 for as_dir in $PATH 6613 do 6614 IFS=$as_save_IFS 6615 case $as_dir in #((( 6616 '') as_dir=./ ;; 6617 */) ;; 6618 *) as_dir=$as_dir/ ;; 6619 esac 6620 for ac_exec_ext in '' $ac_executable_extensions; do 6621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6622 ac_cv_prog_ac_ct_FILECMD="file" 6623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6624 break 2 6625 fi 6626 done 6627 done 6628 IFS=$as_save_IFS 6629 6630 fi 6631 fi 6632 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6633 if test -n "$ac_ct_FILECMD"; then 6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6635 printf "%s\n" "$ac_ct_FILECMD" >&6; } 6636 else 6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6638 printf "%s\n" "no" >&6; } 6639 fi 6640 6641 if test "x$ac_ct_FILECMD" = x; then 6642 FILECMD=":" 6643 else 6644 case $cross_compiling:$ac_tool_warned in 6645 yes:) 6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6647 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6648 ac_tool_warned=yes ;; 6649 esac 6650 FILECMD=$ac_ct_FILECMD 6651 fi 6652 else 6653 FILECMD="$ac_cv_prog_FILECMD" 6654 fi 6655 6656 6657 6658 6659 6660 6661 6662 if test -n "$ac_tool_prefix"; then 6663 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6664 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6666 printf %s "checking for $ac_word... " >&6; } 6667 if test ${ac_cv_prog_OBJDUMP+y} 6668 then : 6669 printf %s "(cached) " >&6 6670 else $as_nop 6671 if test -n "$OBJDUMP"; then 6672 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6673 else 6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6675 for as_dir in $PATH 6676 do 6677 IFS=$as_save_IFS 6678 case $as_dir in #((( 6679 '') as_dir=./ ;; 6680 */) ;; 6681 *) as_dir=$as_dir/ ;; 6682 esac 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6685 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689 done 6690 done 6691 IFS=$as_save_IFS 6692 6693 fi 6694 fi 6695 OBJDUMP=$ac_cv_prog_OBJDUMP 6696 if test -n "$OBJDUMP"; then 6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6698 printf "%s\n" "$OBJDUMP" >&6; } 6699 else 6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6701 printf "%s\n" "no" >&6; } 6702 fi 6703 6704 6705 fi 6706 if test -z "$ac_cv_prog_OBJDUMP"; then 6707 ac_ct_OBJDUMP=$OBJDUMP 6708 # Extract the first word of "objdump", so it can be a program name with args. 6709 set dummy objdump; ac_word=$2 6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6711 printf %s "checking for $ac_word... " >&6; } 6712 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6713 then : 6714 printf %s "(cached) " >&6 6715 else $as_nop 6716 if test -n "$ac_ct_OBJDUMP"; then 6717 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6718 else 6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6720 for as_dir in $PATH 6721 do 6722 IFS=$as_save_IFS 6723 case $as_dir in #((( 6724 '') as_dir=./ ;; 6725 */) ;; 6726 *) as_dir=$as_dir/ ;; 6727 esac 6728 for ac_exec_ext in '' $ac_executable_extensions; do 6729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6730 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6732 break 2 6733 fi 6734 done 6735 done 6736 IFS=$as_save_IFS 6737 6738 fi 6739 fi 6740 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6741 if test -n "$ac_ct_OBJDUMP"; then 6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6743 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6744 else 6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6746 printf "%s\n" "no" >&6; } 6747 fi 6748 6749 if test "x$ac_ct_OBJDUMP" = x; then 6750 OBJDUMP="false" 6751 else 6752 case $cross_compiling:$ac_tool_warned in 6753 yes:) 6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6756 ac_tool_warned=yes ;; 6757 esac 6758 OBJDUMP=$ac_ct_OBJDUMP 6759 fi 6760 else 6761 OBJDUMP="$ac_cv_prog_OBJDUMP" 6762 fi 6763 6764 test -z "$OBJDUMP" && OBJDUMP=objdump 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6775 printf %s "checking how to recognize dependent libraries... " >&6; } 6776 if test ${lt_cv_deplibs_check_method+y} 6777 then : 6778 printf %s "(cached) " >&6 6779 else $as_nop 6780 lt_cv_file_magic_cmd='$MAGIC_CMD' 6781 lt_cv_file_magic_test_file= 6782 lt_cv_deplibs_check_method='unknown' 6783 # Need to set the preceding variable on all platforms that support 6784 # interlibrary dependencies. 6785 # 'none' -- dependencies not supported. 6786 # 'unknown' -- same as none, but documents that we really don't know. 6787 # 'pass_all' -- all dependencies passed with no checks. 6788 # 'test_compile' -- check by making test program. 6789 # 'file_magic [[regex]]' -- check by looking for files in library path 6790 # that responds to the $file_magic_cmd with a given extended regex. 6791 # If you have 'file' or equivalent on your system and you're not sure 6792 # whether 'pass_all' will *always* work, you probably want this one. 6793 6794 case $host_os in 6795 aix[4-9]*) 6796 lt_cv_deplibs_check_method=pass_all 6797 ;; 6798 6799 beos*) 6800 lt_cv_deplibs_check_method=pass_all 6801 ;; 6802 6803 bsdi[45]*) 6804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6805 lt_cv_file_magic_cmd='$FILECMD -L' 6806 lt_cv_file_magic_test_file=/shlib/libc.so 6807 ;; 6808 6809 cygwin*) 6810 # func_win32_libid is a shell function defined in ltmain.sh 6811 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6812 lt_cv_file_magic_cmd='func_win32_libid' 6813 ;; 6814 6815 mingw* | pw32*) 6816 # Base MSYS/MinGW do not provide the 'file' command needed by 6817 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6818 # unless we find 'file', for example because we are cross-compiling. 6819 if ( file / ) >/dev/null 2>&1; then 6820 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6821 lt_cv_file_magic_cmd='func_win32_libid' 6822 else 6823 # Keep this pattern in sync with the one in func_win32_libid. 6824 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6825 lt_cv_file_magic_cmd='$OBJDUMP -f' 6826 fi 6827 ;; 6828 6829 cegcc*) 6830 # use the weaker test based on 'objdump'. See mingw*. 6831 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6832 lt_cv_file_magic_cmd='$OBJDUMP -f' 6833 ;; 6834 6835 darwin* | rhapsody*) 6836 lt_cv_deplibs_check_method=pass_all 6837 ;; 6838 6839 freebsd* | dragonfly* | midnightbsd*) 6840 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6841 case $host_cpu in 6842 i*86 ) 6843 # Not sure whether the presence of OpenBSD here was a mistake. 6844 # Let's accept both of them until this is cleared up. 6845 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6846 lt_cv_file_magic_cmd=$FILECMD 6847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6848 ;; 6849 esac 6850 else 6851 lt_cv_deplibs_check_method=pass_all 6852 fi 6853 ;; 6854 6855 haiku*) 6856 lt_cv_deplibs_check_method=pass_all 6857 ;; 6858 6859 hpux10.20* | hpux11*) 6860 lt_cv_file_magic_cmd=$FILECMD 6861 case $host_cpu in 6862 ia64*) 6863 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6864 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6865 ;; 6866 hppa*64*) 6867 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]' 6868 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6869 ;; 6870 *) 6871 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6872 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6873 ;; 6874 esac 6875 ;; 6876 6877 interix[3-9]*) 6878 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6880 ;; 6881 6882 irix5* | irix6* | nonstopux*) 6883 case $LD in 6884 *-32|*"-32 ") libmagic=32-bit;; 6885 *-n32|*"-n32 ") libmagic=N32;; 6886 *-64|*"-64 ") libmagic=64-bit;; 6887 *) libmagic=never-match;; 6888 esac 6889 lt_cv_deplibs_check_method=pass_all 6890 ;; 6891 6892 # This must be glibc/ELF. 6893 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6894 lt_cv_deplibs_check_method=pass_all 6895 ;; 6896 6897 netbsd* | netbsdelf*-gnu) 6898 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6900 else 6901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6902 fi 6903 ;; 6904 6905 newos6*) 6906 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6907 lt_cv_file_magic_cmd=$FILECMD 6908 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6909 ;; 6910 6911 *nto* | *qnx*) 6912 lt_cv_deplibs_check_method=pass_all 6913 ;; 6914 6915 openbsd* | bitrig*) 6916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6918 else 6919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6920 fi 6921 ;; 6922 6923 osf3* | osf4* | osf5*) 6924 lt_cv_deplibs_check_method=pass_all 6925 ;; 6926 6927 rdos*) 6928 lt_cv_deplibs_check_method=pass_all 6929 ;; 6930 6931 solaris*) 6932 lt_cv_deplibs_check_method=pass_all 6933 ;; 6934 6935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6936 lt_cv_deplibs_check_method=pass_all 6937 ;; 6938 6939 sysv4 | sysv4.3*) 6940 case $host_vendor in 6941 motorola) 6942 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]' 6943 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6944 ;; 6945 ncr) 6946 lt_cv_deplibs_check_method=pass_all 6947 ;; 6948 sequent) 6949 lt_cv_file_magic_cmd='/bin/file' 6950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6951 ;; 6952 sni) 6953 lt_cv_file_magic_cmd='/bin/file' 6954 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6955 lt_cv_file_magic_test_file=/lib/libc.so 6956 ;; 6957 siemens) 6958 lt_cv_deplibs_check_method=pass_all 6959 ;; 6960 pc) 6961 lt_cv_deplibs_check_method=pass_all 6962 ;; 6963 esac 6964 ;; 6965 6966 tpf*) 6967 lt_cv_deplibs_check_method=pass_all 6968 ;; 6969 os2*) 6970 lt_cv_deplibs_check_method=pass_all 6971 ;; 6972 esac 6973 6974 fi 6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6976 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6977 6978 file_magic_glob= 6979 want_nocaseglob=no 6980 if test "$build" = "$host"; then 6981 case $host_os in 6982 mingw* | pw32*) 6983 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6984 want_nocaseglob=yes 6985 else 6986 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6987 fi 6988 ;; 6989 esac 6990 fi 6991 6992 file_magic_cmd=$lt_cv_file_magic_cmd 6993 deplibs_check_method=$lt_cv_deplibs_check_method 6994 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 if test -n "$ac_tool_prefix"; then 7018 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7019 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7021 printf %s "checking for $ac_word... " >&6; } 7022 if test ${ac_cv_prog_DLLTOOL+y} 7023 then : 7024 printf %s "(cached) " >&6 7025 else $as_nop 7026 if test -n "$DLLTOOL"; then 7027 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7028 else 7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7030 for as_dir in $PATH 7031 do 7032 IFS=$as_save_IFS 7033 case $as_dir in #((( 7034 '') as_dir=./ ;; 7035 */) ;; 7036 *) as_dir=$as_dir/ ;; 7037 esac 7038 for ac_exec_ext in '' $ac_executable_extensions; do 7039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7040 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7042 break 2 7043 fi 7044 done 7045 done 7046 IFS=$as_save_IFS 7047 7048 fi 7049 fi 7050 DLLTOOL=$ac_cv_prog_DLLTOOL 7051 if test -n "$DLLTOOL"; then 7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7053 printf "%s\n" "$DLLTOOL" >&6; } 7054 else 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7056 printf "%s\n" "no" >&6; } 7057 fi 7058 7059 7060 fi 7061 if test -z "$ac_cv_prog_DLLTOOL"; then 7062 ac_ct_DLLTOOL=$DLLTOOL 7063 # Extract the first word of "dlltool", so it can be a program name with args. 7064 set dummy dlltool; ac_word=$2 7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7066 printf %s "checking for $ac_word... " >&6; } 7067 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7068 then : 7069 printf %s "(cached) " >&6 7070 else $as_nop 7071 if test -n "$ac_ct_DLLTOOL"; then 7072 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7073 else 7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7075 for as_dir in $PATH 7076 do 7077 IFS=$as_save_IFS 7078 case $as_dir in #((( 7079 '') as_dir=./ ;; 7080 */) ;; 7081 *) as_dir=$as_dir/ ;; 7082 esac 7083 for ac_exec_ext in '' $ac_executable_extensions; do 7084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7085 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7087 break 2 7088 fi 7089 done 7090 done 7091 IFS=$as_save_IFS 7092 7093 fi 7094 fi 7095 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7096 if test -n "$ac_ct_DLLTOOL"; then 7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7098 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7099 else 7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7101 printf "%s\n" "no" >&6; } 7102 fi 7103 7104 if test "x$ac_ct_DLLTOOL" = x; then 7105 DLLTOOL="false" 7106 else 7107 case $cross_compiling:$ac_tool_warned in 7108 yes:) 7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7110 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7111 ac_tool_warned=yes ;; 7112 esac 7113 DLLTOOL=$ac_ct_DLLTOOL 7114 fi 7115 else 7116 DLLTOOL="$ac_cv_prog_DLLTOOL" 7117 fi 7118 7119 test -z "$DLLTOOL" && DLLTOOL=dlltool 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7131 printf %s "checking how to associate runtime and link libraries... " >&6; } 7132 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7133 then : 7134 printf %s "(cached) " >&6 7135 else $as_nop 7136 lt_cv_sharedlib_from_linklib_cmd='unknown' 7137 7138 case $host_os in 7139 cygwin* | mingw* | pw32* | cegcc*) 7140 # two different shell functions defined in ltmain.sh; 7141 # decide which one to use based on capabilities of $DLLTOOL 7142 case `$DLLTOOL --help 2>&1` in 7143 *--identify-strict*) 7144 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7145 ;; 7146 *) 7147 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7148 ;; 7149 esac 7150 ;; 7151 *) 7152 # fallback: assume linklib IS sharedlib 7153 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7154 ;; 7155 esac 7156 7157 fi 7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7159 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7160 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7161 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7162 7163 7164 7165 7166 7167 7168 7169 if test -n "$ac_tool_prefix"; then 7170 for ac_prog in ar 7171 do 7172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7175 printf %s "checking for $ac_word... " >&6; } 7176 if test ${ac_cv_prog_AR+y} 7177 then : 7178 printf %s "(cached) " >&6 7179 else $as_nop 7180 if test -n "$AR"; then 7181 ac_cv_prog_AR="$AR" # Let the user override the test. 7182 else 7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7184 for as_dir in $PATH 7185 do 7186 IFS=$as_save_IFS 7187 case $as_dir in #((( 7188 '') as_dir=./ ;; 7189 */) ;; 7190 *) as_dir=$as_dir/ ;; 7191 esac 7192 for ac_exec_ext in '' $ac_executable_extensions; do 7193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7194 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7196 break 2 7197 fi 7198 done 7199 done 7200 IFS=$as_save_IFS 7201 7202 fi 7203 fi 7204 AR=$ac_cv_prog_AR 7205 if test -n "$AR"; then 7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7207 printf "%s\n" "$AR" >&6; } 7208 else 7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7210 printf "%s\n" "no" >&6; } 7211 fi 7212 7213 7214 test -n "$AR" && break 7215 done 7216 fi 7217 if test -z "$AR"; then 7218 ac_ct_AR=$AR 7219 for ac_prog in ar 7220 do 7221 # Extract the first word of "$ac_prog", so it can be a program name with args. 7222 set dummy $ac_prog; ac_word=$2 7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7224 printf %s "checking for $ac_word... " >&6; } 7225 if test ${ac_cv_prog_ac_ct_AR+y} 7226 then : 7227 printf %s "(cached) " >&6 7228 else $as_nop 7229 if test -n "$ac_ct_AR"; then 7230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7231 else 7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7233 for as_dir in $PATH 7234 do 7235 IFS=$as_save_IFS 7236 case $as_dir in #((( 7237 '') as_dir=./ ;; 7238 */) ;; 7239 *) as_dir=$as_dir/ ;; 7240 esac 7241 for ac_exec_ext in '' $ac_executable_extensions; do 7242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7243 ac_cv_prog_ac_ct_AR="$ac_prog" 7244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7245 break 2 7246 fi 7247 done 7248 done 7249 IFS=$as_save_IFS 7250 7251 fi 7252 fi 7253 ac_ct_AR=$ac_cv_prog_ac_ct_AR 7254 if test -n "$ac_ct_AR"; then 7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7256 printf "%s\n" "$ac_ct_AR" >&6; } 7257 else 7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7259 printf "%s\n" "no" >&6; } 7260 fi 7261 7262 7263 test -n "$ac_ct_AR" && break 7264 done 7265 7266 if test "x$ac_ct_AR" = x; then 7267 AR="false" 7268 else 7269 case $cross_compiling:$ac_tool_warned in 7270 yes:) 7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7272 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7273 ac_tool_warned=yes ;; 7274 esac 7275 AR=$ac_ct_AR 7276 fi 7277 fi 7278 7279 : ${AR=ar} 7280 7281 7282 7283 7284 7285 7286 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 7287 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7288 # higher priority because thats what people were doing historically (setting 7289 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7290 # variable obsoleted/removed. 7291 7292 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7293 lt_ar_flags=$AR_FLAGS 7294 7295 7296 7297 7298 7299 7300 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7301 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7302 7303 7304 7305 7306 7307 7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7309 printf %s "checking for archiver @FILE support... " >&6; } 7310 if test ${lt_cv_ar_at_file+y} 7311 then : 7312 printf %s "(cached) " >&6 7313 else $as_nop 7314 lt_cv_ar_at_file=no 7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316 /* end confdefs.h. */ 7317 7318 int 7319 main (void) 7320 { 7321 7322 ; 7323 return 0; 7324 } 7325 _ACEOF 7326 if ac_fn_c_try_compile "$LINENO" 7327 then : 7328 echo conftest.$ac_objext > conftest.lst 7329 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7331 (eval $lt_ar_try) 2>&5 7332 ac_status=$? 7333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7334 test $ac_status = 0; } 7335 if test 0 -eq "$ac_status"; then 7336 # Ensure the archiver fails upon bogus file names. 7337 rm -f conftest.$ac_objext libconftest.a 7338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7339 (eval $lt_ar_try) 2>&5 7340 ac_status=$? 7341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7342 test $ac_status = 0; } 7343 if test 0 -ne "$ac_status"; then 7344 lt_cv_ar_at_file=@ 7345 fi 7346 fi 7347 rm -f conftest.* libconftest.a 7348 7349 fi 7350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7351 7352 fi 7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7354 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7355 7356 if test no = "$lt_cv_ar_at_file"; then 7357 archiver_list_spec= 7358 else 7359 archiver_list_spec=$lt_cv_ar_at_file 7360 fi 7361 7362 7363 7364 7365 7366 7367 7368 if test -n "$ac_tool_prefix"; then 7369 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7370 set dummy ${ac_tool_prefix}strip; ac_word=$2 7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7372 printf %s "checking for $ac_word... " >&6; } 7373 if test ${ac_cv_prog_STRIP+y} 7374 then : 7375 printf %s "(cached) " >&6 7376 else $as_nop 7377 if test -n "$STRIP"; then 7378 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7379 else 7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7381 for as_dir in $PATH 7382 do 7383 IFS=$as_save_IFS 7384 case $as_dir in #((( 7385 '') as_dir=./ ;; 7386 */) ;; 7387 *) as_dir=$as_dir/ ;; 7388 esac 7389 for ac_exec_ext in '' $ac_executable_extensions; do 7390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7391 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7393 break 2 7394 fi 7395 done 7396 done 7397 IFS=$as_save_IFS 7398 7399 fi 7400 fi 7401 STRIP=$ac_cv_prog_STRIP 7402 if test -n "$STRIP"; then 7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7404 printf "%s\n" "$STRIP" >&6; } 7405 else 7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7407 printf "%s\n" "no" >&6; } 7408 fi 7409 7410 7411 fi 7412 if test -z "$ac_cv_prog_STRIP"; then 7413 ac_ct_STRIP=$STRIP 7414 # Extract the first word of "strip", so it can be a program name with args. 7415 set dummy strip; ac_word=$2 7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7417 printf %s "checking for $ac_word... " >&6; } 7418 if test ${ac_cv_prog_ac_ct_STRIP+y} 7419 then : 7420 printf %s "(cached) " >&6 7421 else $as_nop 7422 if test -n "$ac_ct_STRIP"; then 7423 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7424 else 7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7426 for as_dir in $PATH 7427 do 7428 IFS=$as_save_IFS 7429 case $as_dir in #((( 7430 '') as_dir=./ ;; 7431 */) ;; 7432 *) as_dir=$as_dir/ ;; 7433 esac 7434 for ac_exec_ext in '' $ac_executable_extensions; do 7435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7436 ac_cv_prog_ac_ct_STRIP="strip" 7437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7438 break 2 7439 fi 7440 done 7441 done 7442 IFS=$as_save_IFS 7443 7444 fi 7445 fi 7446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7447 if test -n "$ac_ct_STRIP"; then 7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7449 printf "%s\n" "$ac_ct_STRIP" >&6; } 7450 else 7451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7452 printf "%s\n" "no" >&6; } 7453 fi 7454 7455 if test "x$ac_ct_STRIP" = x; then 7456 STRIP=":" 7457 else 7458 case $cross_compiling:$ac_tool_warned in 7459 yes:) 7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7461 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7462 ac_tool_warned=yes ;; 7463 esac 7464 STRIP=$ac_ct_STRIP 7465 fi 7466 else 7467 STRIP="$ac_cv_prog_STRIP" 7468 fi 7469 7470 test -z "$STRIP" && STRIP=: 7471 7472 7473 7474 7475 7476 7477 if test -n "$ac_tool_prefix"; then 7478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7479 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+y} 7483 then : 7484 printf %s "(cached) " >&6 7485 else $as_nop 7486 if test -n "$RANLIB"; then 7487 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib" 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 RANLIB=$ac_cv_prog_RANLIB 7511 if test -n "$RANLIB"; then 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7513 printf "%s\n" "$RANLIB" >&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 7520 fi 7521 if test -z "$ac_cv_prog_RANLIB"; then 7522 ac_ct_RANLIB=$RANLIB 7523 # Extract the first word of "ranlib", so it can be a program name with args. 7524 set dummy ranlib; ac_word=$2 7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7526 printf %s "checking for $ac_word... " >&6; } 7527 if test ${ac_cv_prog_ac_ct_RANLIB+y} 7528 then : 7529 printf %s "(cached) " >&6 7530 else $as_nop 7531 if test -n "$ac_ct_RANLIB"; then 7532 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7533 else 7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7535 for as_dir in $PATH 7536 do 7537 IFS=$as_save_IFS 7538 case $as_dir in #((( 7539 '') as_dir=./ ;; 7540 */) ;; 7541 *) as_dir=$as_dir/ ;; 7542 esac 7543 for ac_exec_ext in '' $ac_executable_extensions; do 7544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7545 ac_cv_prog_ac_ct_RANLIB="ranlib" 7546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7547 break 2 7548 fi 7549 done 7550 done 7551 IFS=$as_save_IFS 7552 7553 fi 7554 fi 7555 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7556 if test -n "$ac_ct_RANLIB"; then 7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7558 printf "%s\n" "$ac_ct_RANLIB" >&6; } 7559 else 7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7561 printf "%s\n" "no" >&6; } 7562 fi 7563 7564 if test "x$ac_ct_RANLIB" = x; then 7565 RANLIB=":" 7566 else 7567 case $cross_compiling:$ac_tool_warned in 7568 yes:) 7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7570 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7571 ac_tool_warned=yes ;; 7572 esac 7573 RANLIB=$ac_ct_RANLIB 7574 fi 7575 else 7576 RANLIB="$ac_cv_prog_RANLIB" 7577 fi 7578 7579 test -z "$RANLIB" && RANLIB=: 7580 7581 7582 7583 7584 7585 7586 # Determine commands to create old-style static archives. 7587 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7588 old_postinstall_cmds='chmod 644 $oldlib' 7589 old_postuninstall_cmds= 7590 7591 if test -n "$RANLIB"; then 7592 case $host_os in 7593 bitrig* | openbsd*) 7594 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7595 ;; 7596 *) 7597 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7598 ;; 7599 esac 7600 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7601 fi 7602 7603 case $host_os in 7604 darwin*) 7605 lock_old_archive_extraction=yes ;; 7606 *) 7607 lock_old_archive_extraction=no ;; 7608 esac 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 # If no C compiler was specified, use CC. 7649 LTCC=${LTCC-"$CC"} 7650 7651 # If no C compiler flags were specified, use CFLAGS. 7652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7653 7654 # Allow CC to be a program name with arguments. 7655 compiler=$CC 7656 7657 7658 # Check for command to grab the raw symbol name followed by C symbol from nm. 7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7660 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7661 if test ${lt_cv_sys_global_symbol_pipe+y} 7662 then : 7663 printf %s "(cached) " >&6 7664 else $as_nop 7665 7666 # These are sane defaults that work on at least a few old systems. 7667 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7668 7669 # Character class describing NM global symbol codes. 7670 symcode='[BCDEGRST]' 7671 7672 # Regexp to match symbols that can be accessed directly from C. 7673 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7674 7675 # Define system-specific variables. 7676 case $host_os in 7677 aix*) 7678 symcode='[BCDT]' 7679 ;; 7680 cygwin* | mingw* | pw32* | cegcc*) 7681 symcode='[ABCDGISTW]' 7682 ;; 7683 hpux*) 7684 if test ia64 = "$host_cpu"; then 7685 symcode='[ABCDEGRST]' 7686 fi 7687 ;; 7688 irix* | nonstopux*) 7689 symcode='[BCDEGRST]' 7690 ;; 7691 osf*) 7692 symcode='[BCDEGQRST]' 7693 ;; 7694 solaris*) 7695 symcode='[BDRT]' 7696 ;; 7697 sco3.2v5*) 7698 symcode='[DT]' 7699 ;; 7700 sysv4.2uw2*) 7701 symcode='[DT]' 7702 ;; 7703 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7704 symcode='[ABDT]' 7705 ;; 7706 sysv4) 7707 symcode='[DFNSTU]' 7708 ;; 7709 esac 7710 7711 # If we're using GNU nm, then use its standard symbol codes. 7712 case `$NM -V 2>&1` in 7713 *GNU* | *'with BFD'*) 7714 symcode='[ABCDGIRSTW]' ;; 7715 esac 7716 7717 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7718 # Gets list of data symbols to import. 7719 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7720 # Adjust the below global symbol transforms to fixup imported variables. 7721 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7722 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7723 lt_c_name_lib_hook="\ 7724 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7725 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7726 else 7727 # Disable hooks by default. 7728 lt_cv_sys_global_symbol_to_import= 7729 lt_cdecl_hook= 7730 lt_c_name_hook= 7731 lt_c_name_lib_hook= 7732 fi 7733 7734 # Transform an extracted symbol line into a proper C declaration. 7735 # Some systems (esp. on ia64) link data and code symbols differently, 7736 # so use this general approach. 7737 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7738 $lt_cdecl_hook\ 7739 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7740 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7741 7742 # Transform an extracted symbol line into symbol name and symbol address 7743 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7744 $lt_c_name_hook\ 7745 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7746 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7747 7748 # Transform an extracted symbol line into symbol name with lib prefix and 7749 # symbol address. 7750 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7751 $lt_c_name_lib_hook\ 7752 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7753 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7754 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7755 7756 # Handle CRLF in mingw tool chain 7757 opt_cr= 7758 case $build_os in 7759 mingw*) 7760 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7761 ;; 7762 esac 7763 7764 # Try without a prefix underscore, then with it. 7765 for ac_symprfx in "" "_"; do 7766 7767 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7768 symxfrm="\\1 $ac_symprfx\\2 \\2" 7769 7770 # Write the raw and C identifiers. 7771 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7772 # Fake it for dumpbin and say T for any non-static function, 7773 # D for any global variable and I for any imported variable. 7774 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7775 # which start with @ or ?. 7776 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7777 " {last_section=section; section=\$ 3};"\ 7778 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7779 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7780 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7781 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7782 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7783 " \$ 0!~/External *\|/{next};"\ 7784 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7785 " {if(hide[section]) next};"\ 7786 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7787 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7788 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7789 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7790 " ' prfx=^$ac_symprfx" 7791 else 7792 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7793 fi 7794 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7795 7796 # Check to see that the pipe works correctly. 7797 pipe_works=no 7798 7799 rm -f conftest* 7800 cat > conftest.$ac_ext <<_LT_EOF 7801 #ifdef __cplusplus 7802 extern "C" { 7803 #endif 7804 char nm_test_var; 7805 void nm_test_func(void); 7806 void nm_test_func(void){} 7807 #ifdef __cplusplus 7808 } 7809 #endif 7810 int main(){nm_test_var='a';nm_test_func();return(0);} 7811 _LT_EOF 7812 7813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7814 (eval $ac_compile) 2>&5 7815 ac_status=$? 7816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7817 test $ac_status = 0; }; then 7818 # Now try to grab the symbols. 7819 nlist=conftest.nm 7820 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7821 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7822 # Try sorting and uniquifying the output. 7823 if sort "$nlist" | uniq > "$nlist"T; then 7824 mv -f "$nlist"T "$nlist" 7825 else 7826 rm -f "$nlist"T 7827 fi 7828 7829 # Make sure that we snagged all the symbols we need. 7830 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7831 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7832 cat <<_LT_EOF > conftest.$ac_ext 7833 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7834 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7835 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7836 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7837 # define LT_DLSYM_CONST 7838 #elif defined __osf__ 7839 /* This system does not cope well with relocations in const data. */ 7840 # define LT_DLSYM_CONST 7841 #else 7842 # define LT_DLSYM_CONST const 7843 #endif 7844 7845 #ifdef __cplusplus 7846 extern "C" { 7847 #endif 7848 7849 _LT_EOF 7850 # Now generate the symbol file. 7851 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7852 7853 cat <<_LT_EOF >> conftest.$ac_ext 7854 7855 /* The mapping between symbol names and symbols. */ 7856 LT_DLSYM_CONST struct { 7857 const char *name; 7858 void *address; 7859 } 7860 lt__PROGRAM__LTX_preloaded_symbols[] = 7861 { 7862 { "@PROGRAM@", (void *) 0 }, 7863 _LT_EOF 7864 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7865 cat <<\_LT_EOF >> conftest.$ac_ext 7866 {0, (void *) 0} 7867 }; 7868 7869 /* This works around a problem in FreeBSD linker */ 7870 #ifdef FREEBSD_WORKAROUND 7871 static const void *lt_preloaded_setup() { 7872 return lt__PROGRAM__LTX_preloaded_symbols; 7873 } 7874 #endif 7875 7876 #ifdef __cplusplus 7877 } 7878 #endif 7879 _LT_EOF 7880 # Now try linking the two files. 7881 mv conftest.$ac_objext conftstm.$ac_objext 7882 lt_globsym_save_LIBS=$LIBS 7883 lt_globsym_save_CFLAGS=$CFLAGS 7884 LIBS=conftstm.$ac_objext 7885 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7887 (eval $ac_link) 2>&5 7888 ac_status=$? 7889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7890 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7891 pipe_works=yes 7892 fi 7893 LIBS=$lt_globsym_save_LIBS 7894 CFLAGS=$lt_globsym_save_CFLAGS 7895 else 7896 echo "cannot find nm_test_func in $nlist" >&5 7897 fi 7898 else 7899 echo "cannot find nm_test_var in $nlist" >&5 7900 fi 7901 else 7902 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7903 fi 7904 else 7905 echo "$progname: failed program was:" >&5 7906 cat conftest.$ac_ext >&5 7907 fi 7908 rm -rf conftest* conftst* 7909 7910 # Do not use the global_symbol_pipe unless it works. 7911 if test yes = "$pipe_works"; then 7912 break 7913 else 7914 lt_cv_sys_global_symbol_pipe= 7915 fi 7916 done 7917 7918 fi 7919 7920 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7921 lt_cv_sys_global_symbol_to_cdecl= 7922 fi 7923 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7925 printf "%s\n" "failed" >&6; } 7926 else 7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7928 printf "%s\n" "ok" >&6; } 7929 fi 7930 7931 # Response file support. 7932 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7933 nm_file_list_spec='@' 7934 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7935 nm_file_list_spec='@' 7936 fi 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7975 printf %s "checking for sysroot... " >&6; } 7976 7977 # Check whether --with-sysroot was given. 7978 if test ${with_sysroot+y} 7979 then : 7980 withval=$with_sysroot; 7981 else $as_nop 7982 with_sysroot=no 7983 fi 7984 7985 7986 lt_sysroot= 7987 case $with_sysroot in #( 7988 yes) 7989 if test yes = "$GCC"; then 7990 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7991 fi 7992 ;; #( 7993 /*) 7994 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7995 ;; #( 7996 no|'') 7997 ;; #( 7998 *) 7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8000 printf "%s\n" "$with_sysroot" >&6; } 8001 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8002 ;; 8003 esac 8004 8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8006 printf "%s\n" "${lt_sysroot:-no}" >&6; } 8007 8008 8009 8010 8011 8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8013 printf %s "checking for a working dd... " >&6; } 8014 if test ${ac_cv_path_lt_DD+y} 8015 then : 8016 printf %s "(cached) " >&6 8017 else $as_nop 8018 printf 0123456789abcdef0123456789abcdef >conftest.i 8019 cat conftest.i conftest.i >conftest2.i 8020 : ${lt_DD:=$DD} 8021 if test -z "$lt_DD"; then 8022 ac_path_lt_DD_found=false 8023 # Loop through the user's path and test for each of PROGNAME-LIST 8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8025 for as_dir in $PATH 8026 do 8027 IFS=$as_save_IFS 8028 case $as_dir in #((( 8029 '') as_dir=./ ;; 8030 */) ;; 8031 *) as_dir=$as_dir/ ;; 8032 esac 8033 for ac_prog in dd 8034 do 8035 for ac_exec_ext in '' $ac_executable_extensions; do 8036 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8037 as_fn_executable_p "$ac_path_lt_DD" || continue 8038 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8039 cmp -s conftest.i conftest.out \ 8040 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8041 fi 8042 $ac_path_lt_DD_found && break 3 8043 done 8044 done 8045 done 8046 IFS=$as_save_IFS 8047 if test -z "$ac_cv_path_lt_DD"; then 8048 : 8049 fi 8050 else 8051 ac_cv_path_lt_DD=$lt_DD 8052 fi 8053 8054 rm -f conftest.i conftest2.i conftest.out 8055 fi 8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8057 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8058 8059 8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8061 printf %s "checking how to truncate binary pipes... " >&6; } 8062 if test ${lt_cv_truncate_bin+y} 8063 then : 8064 printf %s "(cached) " >&6 8065 else $as_nop 8066 printf 0123456789abcdef0123456789abcdef >conftest.i 8067 cat conftest.i conftest.i >conftest2.i 8068 lt_cv_truncate_bin= 8069 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8070 cmp -s conftest.i conftest.out \ 8071 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8072 fi 8073 rm -f conftest.i conftest2.i conftest.out 8074 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8075 fi 8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8077 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8078 8079 8080 8081 8082 8083 8084 8085 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8086 func_cc_basename () 8087 { 8088 for cc_temp in $*""; do 8089 case $cc_temp in 8090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8092 \-*) ;; 8093 *) break;; 8094 esac 8095 done 8096 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8097 } 8098 8099 # Check whether --enable-libtool-lock was given. 8100 if test ${enable_libtool_lock+y} 8101 then : 8102 enableval=$enable_libtool_lock; 8103 fi 8104 8105 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8106 8107 # Some flags need to be propagated to the compiler or linker for good 8108 # libtool support. 8109 case $host in 8110 ia64-*-hpux*) 8111 # Find out what ABI is being produced by ac_compile, and set mode 8112 # options accordingly. 8113 echo 'int i;' > conftest.$ac_ext 8114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8115 (eval $ac_compile) 2>&5 8116 ac_status=$? 8117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8118 test $ac_status = 0; }; then 8119 case `$FILECMD conftest.$ac_objext` in 8120 *ELF-32*) 8121 HPUX_IA64_MODE=32 8122 ;; 8123 *ELF-64*) 8124 HPUX_IA64_MODE=64 8125 ;; 8126 esac 8127 fi 8128 rm -rf conftest* 8129 ;; 8130 *-*-irix6*) 8131 # Find out what ABI is being produced by ac_compile, and set linker 8132 # options accordingly. 8133 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8135 (eval $ac_compile) 2>&5 8136 ac_status=$? 8137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8138 test $ac_status = 0; }; then 8139 if test yes = "$lt_cv_prog_gnu_ld"; then 8140 case `$FILECMD conftest.$ac_objext` in 8141 *32-bit*) 8142 LD="${LD-ld} -melf32bsmip" 8143 ;; 8144 *N32*) 8145 LD="${LD-ld} -melf32bmipn32" 8146 ;; 8147 *64-bit*) 8148 LD="${LD-ld} -melf64bmip" 8149 ;; 8150 esac 8151 else 8152 case `$FILECMD conftest.$ac_objext` in 8153 *32-bit*) 8154 LD="${LD-ld} -32" 8155 ;; 8156 *N32*) 8157 LD="${LD-ld} -n32" 8158 ;; 8159 *64-bit*) 8160 LD="${LD-ld} -64" 8161 ;; 8162 esac 8163 fi 8164 fi 8165 rm -rf conftest* 8166 ;; 8167 8168 mips64*-*linux*) 8169 # Find out what ABI is being produced by ac_compile, and set linker 8170 # options accordingly. 8171 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8173 (eval $ac_compile) 2>&5 8174 ac_status=$? 8175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8176 test $ac_status = 0; }; then 8177 emul=elf 8178 case `$FILECMD conftest.$ac_objext` in 8179 *32-bit*) 8180 emul="${emul}32" 8181 ;; 8182 *64-bit*) 8183 emul="${emul}64" 8184 ;; 8185 esac 8186 case `$FILECMD conftest.$ac_objext` in 8187 *MSB*) 8188 emul="${emul}btsmip" 8189 ;; 8190 *LSB*) 8191 emul="${emul}ltsmip" 8192 ;; 8193 esac 8194 case `$FILECMD conftest.$ac_objext` in 8195 *N32*) 8196 emul="${emul}n32" 8197 ;; 8198 esac 8199 LD="${LD-ld} -m $emul" 8200 fi 8201 rm -rf conftest* 8202 ;; 8203 8204 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8205 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8206 # Find out what ABI is being produced by ac_compile, and set linker 8207 # options accordingly. Note that the listed cases only cover the 8208 # situations where additional linker options are needed (such as when 8209 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8210 # vice versa); the common cases where no linker options are needed do 8211 # not appear in the list. 8212 echo 'int i;' > conftest.$ac_ext 8213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8214 (eval $ac_compile) 2>&5 8215 ac_status=$? 8216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8217 test $ac_status = 0; }; then 8218 case `$FILECMD conftest.o` in 8219 *32-bit*) 8220 case $host in 8221 x86_64-*kfreebsd*-gnu) 8222 LD="${LD-ld} -m elf_i386_fbsd" 8223 ;; 8224 x86_64-*linux*) 8225 case `$FILECMD conftest.o` in 8226 *x86-64*) 8227 LD="${LD-ld} -m elf32_x86_64" 8228 ;; 8229 *) 8230 LD="${LD-ld} -m elf_i386" 8231 ;; 8232 esac 8233 ;; 8234 powerpc64le-*linux*) 8235 LD="${LD-ld} -m elf32lppclinux" 8236 ;; 8237 powerpc64-*linux*) 8238 LD="${LD-ld} -m elf32ppclinux" 8239 ;; 8240 s390x-*linux*) 8241 LD="${LD-ld} -m elf_s390" 8242 ;; 8243 sparc64-*linux*) 8244 LD="${LD-ld} -m elf32_sparc" 8245 ;; 8246 esac 8247 ;; 8248 *64-bit*) 8249 case $host in 8250 x86_64-*kfreebsd*-gnu) 8251 LD="${LD-ld} -m elf_x86_64_fbsd" 8252 ;; 8253 x86_64-*linux*) 8254 LD="${LD-ld} -m elf_x86_64" 8255 ;; 8256 powerpcle-*linux*) 8257 LD="${LD-ld} -m elf64lppc" 8258 ;; 8259 powerpc-*linux*) 8260 LD="${LD-ld} -m elf64ppc" 8261 ;; 8262 s390*-*linux*|s390*-*tpf*) 8263 LD="${LD-ld} -m elf64_s390" 8264 ;; 8265 sparc*-*linux*) 8266 LD="${LD-ld} -m elf64_sparc" 8267 ;; 8268 esac 8269 ;; 8270 esac 8271 fi 8272 rm -rf conftest* 8273 ;; 8274 8275 *-*-sco3.2v5*) 8276 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8277 SAVE_CFLAGS=$CFLAGS 8278 CFLAGS="$CFLAGS -belf" 8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8280 printf %s "checking whether the C compiler needs -belf... " >&6; } 8281 if test ${lt_cv_cc_needs_belf+y} 8282 then : 8283 printf %s "(cached) " >&6 8284 else $as_nop 8285 ac_ext=c 8286 ac_cpp='$CPP $CPPFLAGS' 8287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8289 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8290 8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8292 /* end confdefs.h. */ 8293 8294 int 8295 main (void) 8296 { 8297 8298 ; 8299 return 0; 8300 } 8301 _ACEOF 8302 if ac_fn_c_try_link "$LINENO" 8303 then : 8304 lt_cv_cc_needs_belf=yes 8305 else $as_nop 8306 lt_cv_cc_needs_belf=no 8307 fi 8308 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8309 conftest$ac_exeext conftest.$ac_ext 8310 ac_ext=c 8311 ac_cpp='$CPP $CPPFLAGS' 8312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8314 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8315 8316 fi 8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8318 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8319 if test yes != "$lt_cv_cc_needs_belf"; then 8320 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8321 CFLAGS=$SAVE_CFLAGS 8322 fi 8323 ;; 8324 *-*solaris*) 8325 # Find out what ABI is being produced by ac_compile, and set linker 8326 # options accordingly. 8327 echo 'int i;' > conftest.$ac_ext 8328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8329 (eval $ac_compile) 2>&5 8330 ac_status=$? 8331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8332 test $ac_status = 0; }; then 8333 case `$FILECMD conftest.o` in 8334 *64-bit*) 8335 case $lt_cv_prog_gnu_ld in 8336 yes*) 8337 case $host in 8338 i?86-*-solaris*|x86_64-*-solaris*) 8339 LD="${LD-ld} -m elf_x86_64" 8340 ;; 8341 sparc*-*-solaris*) 8342 LD="${LD-ld} -m elf64_sparc" 8343 ;; 8344 esac 8345 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8346 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8347 LD=${LD-ld}_sol2 8348 fi 8349 ;; 8350 *) 8351 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8352 LD="${LD-ld} -64" 8353 fi 8354 ;; 8355 esac 8356 ;; 8357 esac 8358 fi 8359 rm -rf conftest* 8360 ;; 8361 esac 8362 8363 need_locks=$enable_libtool_lock 8364 8365 if test -n "$ac_tool_prefix"; then 8366 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8367 set dummy ${ac_tool_prefix}mt; ac_word=$2 8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8369 printf %s "checking for $ac_word... " >&6; } 8370 if test ${ac_cv_prog_MANIFEST_TOOL+y} 8371 then : 8372 printf %s "(cached) " >&6 8373 else $as_nop 8374 if test -n "$MANIFEST_TOOL"; then 8375 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8376 else 8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8378 for as_dir in $PATH 8379 do 8380 IFS=$as_save_IFS 8381 case $as_dir in #((( 8382 '') as_dir=./ ;; 8383 */) ;; 8384 *) as_dir=$as_dir/ ;; 8385 esac 8386 for ac_exec_ext in '' $ac_executable_extensions; do 8387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8388 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8390 break 2 8391 fi 8392 done 8393 done 8394 IFS=$as_save_IFS 8395 8396 fi 8397 fi 8398 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8399 if test -n "$MANIFEST_TOOL"; then 8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8401 printf "%s\n" "$MANIFEST_TOOL" >&6; } 8402 else 8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8404 printf "%s\n" "no" >&6; } 8405 fi 8406 8407 8408 fi 8409 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8410 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8411 # Extract the first word of "mt", so it can be a program name with args. 8412 set dummy mt; ac_word=$2 8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8414 printf %s "checking for $ac_word... " >&6; } 8415 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8416 then : 8417 printf %s "(cached) " >&6 8418 else $as_nop 8419 if test -n "$ac_ct_MANIFEST_TOOL"; then 8420 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8421 else 8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8423 for as_dir in $PATH 8424 do 8425 IFS=$as_save_IFS 8426 case $as_dir in #((( 8427 '') as_dir=./ ;; 8428 */) ;; 8429 *) as_dir=$as_dir/ ;; 8430 esac 8431 for ac_exec_ext in '' $ac_executable_extensions; do 8432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8433 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8435 break 2 8436 fi 8437 done 8438 done 8439 IFS=$as_save_IFS 8440 8441 fi 8442 fi 8443 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8444 if test -n "$ac_ct_MANIFEST_TOOL"; then 8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8446 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8447 else 8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8449 printf "%s\n" "no" >&6; } 8450 fi 8451 8452 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8453 MANIFEST_TOOL=":" 8454 else 8455 case $cross_compiling:$ac_tool_warned in 8456 yes:) 8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8458 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8459 ac_tool_warned=yes ;; 8460 esac 8461 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8462 fi 8463 else 8464 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8465 fi 8466 8467 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8469 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8470 if test ${lt_cv_path_mainfest_tool+y} 8471 then : 8472 printf %s "(cached) " >&6 8473 else $as_nop 8474 lt_cv_path_mainfest_tool=no 8475 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8476 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8477 cat conftest.err >&5 8478 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8479 lt_cv_path_mainfest_tool=yes 8480 fi 8481 rm -f conftest* 8482 fi 8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8484 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8485 if test yes != "$lt_cv_path_mainfest_tool"; then 8486 MANIFEST_TOOL=: 8487 fi 8488 8489 8490 8491 8492 8493 8494 case $host_os in 8495 rhapsody* | darwin*) 8496 if test -n "$ac_tool_prefix"; then 8497 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8498 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8500 printf %s "checking for $ac_word... " >&6; } 8501 if test ${ac_cv_prog_DSYMUTIL+y} 8502 then : 8503 printf %s "(cached) " >&6 8504 else $as_nop 8505 if test -n "$DSYMUTIL"; then 8506 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8507 else 8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8509 for as_dir in $PATH 8510 do 8511 IFS=$as_save_IFS 8512 case $as_dir in #((( 8513 '') as_dir=./ ;; 8514 */) ;; 8515 *) as_dir=$as_dir/ ;; 8516 esac 8517 for ac_exec_ext in '' $ac_executable_extensions; do 8518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8519 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8521 break 2 8522 fi 8523 done 8524 done 8525 IFS=$as_save_IFS 8526 8527 fi 8528 fi 8529 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8530 if test -n "$DSYMUTIL"; then 8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8532 printf "%s\n" "$DSYMUTIL" >&6; } 8533 else 8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8535 printf "%s\n" "no" >&6; } 8536 fi 8537 8538 8539 fi 8540 if test -z "$ac_cv_prog_DSYMUTIL"; then 8541 ac_ct_DSYMUTIL=$DSYMUTIL 8542 # Extract the first word of "dsymutil", so it can be a program name with args. 8543 set dummy dsymutil; ac_word=$2 8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8545 printf %s "checking for $ac_word... " >&6; } 8546 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8547 then : 8548 printf %s "(cached) " >&6 8549 else $as_nop 8550 if test -n "$ac_ct_DSYMUTIL"; then 8551 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8552 else 8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8554 for as_dir in $PATH 8555 do 8556 IFS=$as_save_IFS 8557 case $as_dir in #((( 8558 '') as_dir=./ ;; 8559 */) ;; 8560 *) as_dir=$as_dir/ ;; 8561 esac 8562 for ac_exec_ext in '' $ac_executable_extensions; do 8563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8564 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8566 break 2 8567 fi 8568 done 8569 done 8570 IFS=$as_save_IFS 8571 8572 fi 8573 fi 8574 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8575 if test -n "$ac_ct_DSYMUTIL"; then 8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8577 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8578 else 8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8580 printf "%s\n" "no" >&6; } 8581 fi 8582 8583 if test "x$ac_ct_DSYMUTIL" = x; then 8584 DSYMUTIL=":" 8585 else 8586 case $cross_compiling:$ac_tool_warned in 8587 yes:) 8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8589 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8590 ac_tool_warned=yes ;; 8591 esac 8592 DSYMUTIL=$ac_ct_DSYMUTIL 8593 fi 8594 else 8595 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8596 fi 8597 8598 if test -n "$ac_tool_prefix"; then 8599 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8600 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8602 printf %s "checking for $ac_word... " >&6; } 8603 if test ${ac_cv_prog_NMEDIT+y} 8604 then : 8605 printf %s "(cached) " >&6 8606 else $as_nop 8607 if test -n "$NMEDIT"; then 8608 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8609 else 8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8611 for as_dir in $PATH 8612 do 8613 IFS=$as_save_IFS 8614 case $as_dir in #((( 8615 '') as_dir=./ ;; 8616 */) ;; 8617 *) as_dir=$as_dir/ ;; 8618 esac 8619 for ac_exec_ext in '' $ac_executable_extensions; do 8620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8621 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8623 break 2 8624 fi 8625 done 8626 done 8627 IFS=$as_save_IFS 8628 8629 fi 8630 fi 8631 NMEDIT=$ac_cv_prog_NMEDIT 8632 if test -n "$NMEDIT"; then 8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8634 printf "%s\n" "$NMEDIT" >&6; } 8635 else 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8637 printf "%s\n" "no" >&6; } 8638 fi 8639 8640 8641 fi 8642 if test -z "$ac_cv_prog_NMEDIT"; then 8643 ac_ct_NMEDIT=$NMEDIT 8644 # Extract the first word of "nmedit", so it can be a program name with args. 8645 set dummy nmedit; ac_word=$2 8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8647 printf %s "checking for $ac_word... " >&6; } 8648 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8649 then : 8650 printf %s "(cached) " >&6 8651 else $as_nop 8652 if test -n "$ac_ct_NMEDIT"; then 8653 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8654 else 8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8656 for as_dir in $PATH 8657 do 8658 IFS=$as_save_IFS 8659 case $as_dir in #((( 8660 '') as_dir=./ ;; 8661 */) ;; 8662 *) as_dir=$as_dir/ ;; 8663 esac 8664 for ac_exec_ext in '' $ac_executable_extensions; do 8665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8666 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8668 break 2 8669 fi 8670 done 8671 done 8672 IFS=$as_save_IFS 8673 8674 fi 8675 fi 8676 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8677 if test -n "$ac_ct_NMEDIT"; then 8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8679 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8680 else 8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8682 printf "%s\n" "no" >&6; } 8683 fi 8684 8685 if test "x$ac_ct_NMEDIT" = x; then 8686 NMEDIT=":" 8687 else 8688 case $cross_compiling:$ac_tool_warned in 8689 yes:) 8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8691 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8692 ac_tool_warned=yes ;; 8693 esac 8694 NMEDIT=$ac_ct_NMEDIT 8695 fi 8696 else 8697 NMEDIT="$ac_cv_prog_NMEDIT" 8698 fi 8699 8700 if test -n "$ac_tool_prefix"; then 8701 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8702 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8704 printf %s "checking for $ac_word... " >&6; } 8705 if test ${ac_cv_prog_LIPO+y} 8706 then : 8707 printf %s "(cached) " >&6 8708 else $as_nop 8709 if test -n "$LIPO"; then 8710 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8711 else 8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8713 for as_dir in $PATH 8714 do 8715 IFS=$as_save_IFS 8716 case $as_dir in #((( 8717 '') as_dir=./ ;; 8718 */) ;; 8719 *) as_dir=$as_dir/ ;; 8720 esac 8721 for ac_exec_ext in '' $ac_executable_extensions; do 8722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8723 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8725 break 2 8726 fi 8727 done 8728 done 8729 IFS=$as_save_IFS 8730 8731 fi 8732 fi 8733 LIPO=$ac_cv_prog_LIPO 8734 if test -n "$LIPO"; then 8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8736 printf "%s\n" "$LIPO" >&6; } 8737 else 8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8739 printf "%s\n" "no" >&6; } 8740 fi 8741 8742 8743 fi 8744 if test -z "$ac_cv_prog_LIPO"; then 8745 ac_ct_LIPO=$LIPO 8746 # Extract the first word of "lipo", so it can be a program name with args. 8747 set dummy lipo; ac_word=$2 8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8749 printf %s "checking for $ac_word... " >&6; } 8750 if test ${ac_cv_prog_ac_ct_LIPO+y} 8751 then : 8752 printf %s "(cached) " >&6 8753 else $as_nop 8754 if test -n "$ac_ct_LIPO"; then 8755 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8756 else 8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8758 for as_dir in $PATH 8759 do 8760 IFS=$as_save_IFS 8761 case $as_dir in #((( 8762 '') as_dir=./ ;; 8763 */) ;; 8764 *) as_dir=$as_dir/ ;; 8765 esac 8766 for ac_exec_ext in '' $ac_executable_extensions; do 8767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8768 ac_cv_prog_ac_ct_LIPO="lipo" 8769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8770 break 2 8771 fi 8772 done 8773 done 8774 IFS=$as_save_IFS 8775 8776 fi 8777 fi 8778 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8779 if test -n "$ac_ct_LIPO"; then 8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8781 printf "%s\n" "$ac_ct_LIPO" >&6; } 8782 else 8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8784 printf "%s\n" "no" >&6; } 8785 fi 8786 8787 if test "x$ac_ct_LIPO" = x; then 8788 LIPO=":" 8789 else 8790 case $cross_compiling:$ac_tool_warned in 8791 yes:) 8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8793 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8794 ac_tool_warned=yes ;; 8795 esac 8796 LIPO=$ac_ct_LIPO 8797 fi 8798 else 8799 LIPO="$ac_cv_prog_LIPO" 8800 fi 8801 8802 if test -n "$ac_tool_prefix"; then 8803 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8804 set dummy ${ac_tool_prefix}otool; ac_word=$2 8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8806 printf %s "checking for $ac_word... " >&6; } 8807 if test ${ac_cv_prog_OTOOL+y} 8808 then : 8809 printf %s "(cached) " >&6 8810 else $as_nop 8811 if test -n "$OTOOL"; then 8812 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8813 else 8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8815 for as_dir in $PATH 8816 do 8817 IFS=$as_save_IFS 8818 case $as_dir in #((( 8819 '') as_dir=./ ;; 8820 */) ;; 8821 *) as_dir=$as_dir/ ;; 8822 esac 8823 for ac_exec_ext in '' $ac_executable_extensions; do 8824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8825 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8827 break 2 8828 fi 8829 done 8830 done 8831 IFS=$as_save_IFS 8832 8833 fi 8834 fi 8835 OTOOL=$ac_cv_prog_OTOOL 8836 if test -n "$OTOOL"; then 8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8838 printf "%s\n" "$OTOOL" >&6; } 8839 else 8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8841 printf "%s\n" "no" >&6; } 8842 fi 8843 8844 8845 fi 8846 if test -z "$ac_cv_prog_OTOOL"; then 8847 ac_ct_OTOOL=$OTOOL 8848 # Extract the first word of "otool", so it can be a program name with args. 8849 set dummy otool; ac_word=$2 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8851 printf %s "checking for $ac_word... " >&6; } 8852 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8853 then : 8854 printf %s "(cached) " >&6 8855 else $as_nop 8856 if test -n "$ac_ct_OTOOL"; then 8857 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8858 else 8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8860 for as_dir in $PATH 8861 do 8862 IFS=$as_save_IFS 8863 case $as_dir in #((( 8864 '') as_dir=./ ;; 8865 */) ;; 8866 *) as_dir=$as_dir/ ;; 8867 esac 8868 for ac_exec_ext in '' $ac_executable_extensions; do 8869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8870 ac_cv_prog_ac_ct_OTOOL="otool" 8871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8872 break 2 8873 fi 8874 done 8875 done 8876 IFS=$as_save_IFS 8877 8878 fi 8879 fi 8880 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8881 if test -n "$ac_ct_OTOOL"; then 8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8883 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8884 else 8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8886 printf "%s\n" "no" >&6; } 8887 fi 8888 8889 if test "x$ac_ct_OTOOL" = x; then 8890 OTOOL=":" 8891 else 8892 case $cross_compiling:$ac_tool_warned in 8893 yes:) 8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8896 ac_tool_warned=yes ;; 8897 esac 8898 OTOOL=$ac_ct_OTOOL 8899 fi 8900 else 8901 OTOOL="$ac_cv_prog_OTOOL" 8902 fi 8903 8904 if test -n "$ac_tool_prefix"; then 8905 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8906 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8908 printf %s "checking for $ac_word... " >&6; } 8909 if test ${ac_cv_prog_OTOOL64+y} 8910 then : 8911 printf %s "(cached) " >&6 8912 else $as_nop 8913 if test -n "$OTOOL64"; then 8914 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8915 else 8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8917 for as_dir in $PATH 8918 do 8919 IFS=$as_save_IFS 8920 case $as_dir in #((( 8921 '') as_dir=./ ;; 8922 */) ;; 8923 *) as_dir=$as_dir/ ;; 8924 esac 8925 for ac_exec_ext in '' $ac_executable_extensions; do 8926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8927 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8929 break 2 8930 fi 8931 done 8932 done 8933 IFS=$as_save_IFS 8934 8935 fi 8936 fi 8937 OTOOL64=$ac_cv_prog_OTOOL64 8938 if test -n "$OTOOL64"; then 8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8940 printf "%s\n" "$OTOOL64" >&6; } 8941 else 8942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8943 printf "%s\n" "no" >&6; } 8944 fi 8945 8946 8947 fi 8948 if test -z "$ac_cv_prog_OTOOL64"; then 8949 ac_ct_OTOOL64=$OTOOL64 8950 # Extract the first word of "otool64", so it can be a program name with args. 8951 set dummy otool64; ac_word=$2 8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8953 printf %s "checking for $ac_word... " >&6; } 8954 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8955 then : 8956 printf %s "(cached) " >&6 8957 else $as_nop 8958 if test -n "$ac_ct_OTOOL64"; then 8959 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8960 else 8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8962 for as_dir in $PATH 8963 do 8964 IFS=$as_save_IFS 8965 case $as_dir in #((( 8966 '') as_dir=./ ;; 8967 */) ;; 8968 *) as_dir=$as_dir/ ;; 8969 esac 8970 for ac_exec_ext in '' $ac_executable_extensions; do 8971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8972 ac_cv_prog_ac_ct_OTOOL64="otool64" 8973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8974 break 2 8975 fi 8976 done 8977 done 8978 IFS=$as_save_IFS 8979 8980 fi 8981 fi 8982 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8983 if test -n "$ac_ct_OTOOL64"; then 8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8985 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8986 else 8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8988 printf "%s\n" "no" >&6; } 8989 fi 8990 8991 if test "x$ac_ct_OTOOL64" = x; then 8992 OTOOL64=":" 8993 else 8994 case $cross_compiling:$ac_tool_warned in 8995 yes:) 8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8997 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8998 ac_tool_warned=yes ;; 8999 esac 9000 OTOOL64=$ac_ct_OTOOL64 9001 fi 9002 else 9003 OTOOL64="$ac_cv_prog_OTOOL64" 9004 fi 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9033 printf %s "checking for -single_module linker flag... " >&6; } 9034 if test ${lt_cv_apple_cc_single_mod+y} 9035 then : 9036 printf %s "(cached) " >&6 9037 else $as_nop 9038 lt_cv_apple_cc_single_mod=no 9039 if test -z "$LT_MULTI_MODULE"; then 9040 # By default we will add the -single_module flag. You can override 9041 # by either setting the environment variable LT_MULTI_MODULE 9042 # non-empty at configure time, or by adding -multi_module to the 9043 # link flags. 9044 rm -rf libconftest.dylib* 9045 echo "int foo(void){return 1;}" > conftest.c 9046 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9047 -dynamiclib -Wl,-single_module conftest.c" >&5 9048 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9049 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9050 _lt_result=$? 9051 # If there is a non-empty error log, and "single_module" 9052 # appears in it, assume the flag caused a linker warning 9053 if test -s conftest.err && $GREP single_module conftest.err; then 9054 cat conftest.err >&5 9055 # Otherwise, if the output was created with a 0 exit code from 9056 # the compiler, it worked. 9057 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9058 lt_cv_apple_cc_single_mod=yes 9059 else 9060 cat conftest.err >&5 9061 fi 9062 rm -rf libconftest.dylib* 9063 rm -f conftest.* 9064 fi 9065 fi 9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9067 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9068 9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9070 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9071 if test ${lt_cv_ld_exported_symbols_list+y} 9072 then : 9073 printf %s "(cached) " >&6 9074 else $as_nop 9075 lt_cv_ld_exported_symbols_list=no 9076 save_LDFLAGS=$LDFLAGS 9077 echo "_main" > conftest.sym 9078 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9080 /* end confdefs.h. */ 9081 9082 int 9083 main (void) 9084 { 9085 9086 ; 9087 return 0; 9088 } 9089 _ACEOF 9090 if ac_fn_c_try_link "$LINENO" 9091 then : 9092 lt_cv_ld_exported_symbols_list=yes 9093 else $as_nop 9094 lt_cv_ld_exported_symbols_list=no 9095 fi 9096 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9097 conftest$ac_exeext conftest.$ac_ext 9098 LDFLAGS=$save_LDFLAGS 9099 9100 fi 9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9102 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9103 9104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9105 printf %s "checking for -force_load linker flag... " >&6; } 9106 if test ${lt_cv_ld_force_load+y} 9107 then : 9108 printf %s "(cached) " >&6 9109 else $as_nop 9110 lt_cv_ld_force_load=no 9111 cat > conftest.c << _LT_EOF 9112 int forced_loaded() { return 2;} 9113 _LT_EOF 9114 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9115 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9116 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9117 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9118 echo "$RANLIB libconftest.a" >&5 9119 $RANLIB libconftest.a 2>&5 9120 cat > conftest.c << _LT_EOF 9121 int main() { return 0;} 9122 _LT_EOF 9123 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9124 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9125 _lt_result=$? 9126 if test -s conftest.err && $GREP force_load conftest.err; then 9127 cat conftest.err >&5 9128 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9129 lt_cv_ld_force_load=yes 9130 else 9131 cat conftest.err >&5 9132 fi 9133 rm -f conftest.err libconftest.a conftest conftest.c 9134 rm -rf conftest.dSYM 9135 9136 fi 9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9138 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9139 case $host_os in 9140 rhapsody* | darwin1.[012]) 9141 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9142 darwin1.*) 9143 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9144 darwin*) 9145 case $MACOSX_DEPLOYMENT_TARGET,$host in 9146 10.[012],*|,*powerpc*-darwin[5-8]*) 9147 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9148 *) 9149 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9150 esac 9151 ;; 9152 esac 9153 if test yes = "$lt_cv_apple_cc_single_mod"; then 9154 _lt_dar_single_mod='$single_module' 9155 fi 9156 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9157 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9158 else 9159 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9160 fi 9161 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9162 _lt_dsymutil='~$DSYMUTIL $lib || :' 9163 else 9164 _lt_dsymutil= 9165 fi 9166 ;; 9167 esac 9168 9169 # func_munge_path_list VARIABLE PATH 9170 # ----------------------------------- 9171 # VARIABLE is name of variable containing _space_ separated list of 9172 # directories to be munged by the contents of PATH, which is string 9173 # having a format: 9174 # "DIR[:DIR]:" 9175 # string "DIR[ DIR]" will be prepended to VARIABLE 9176 # ":DIR[:DIR]" 9177 # string "DIR[ DIR]" will be appended to VARIABLE 9178 # "DIRP[:DIRP]::[DIRA:]DIRA" 9179 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9180 # "DIRA[ DIRA]" will be appended to VARIABLE 9181 # "DIR[:DIR]" 9182 # VARIABLE will be replaced by "DIR[ DIR]" 9183 func_munge_path_list () 9184 { 9185 case x$2 in 9186 x) 9187 ;; 9188 *:) 9189 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9190 ;; 9191 x:*) 9192 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9193 ;; 9194 *::*) 9195 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9196 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9197 ;; 9198 *) 9199 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9200 ;; 9201 esac 9202 } 9203 9204 ac_header= ac_cache= 9205 for ac_item in $ac_header_c_list 9206 do 9207 if test $ac_cache; then 9208 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 9209 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 9210 printf "%s\n" "#define $ac_item 1" >> confdefs.h 9211 fi 9212 ac_header= ac_cache= 9213 elif test $ac_header; then 9214 ac_cache=$ac_item 9215 else 9216 ac_header=$ac_item 9217 fi 9218 done 9219 9220 9221 9222 9223 9224 9225 9226 9227 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 9228 then : 9229 9230 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 9231 9232 fi 9233 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9234 " 9235 if test "x$ac_cv_header_dlfcn_h" = xyes 9236 then : 9237 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9238 9239 fi 9240 9241 9242 9243 9244 9245 # Set options 9246 9247 9248 9249 enable_dlopen=no 9250 9251 9252 enable_win32_dll=no 9253 9254 9255 9256 9257 9258 # Check whether --with-pic was given. 9259 if test ${with_pic+y} 9260 then : 9261 withval=$with_pic; lt_p=${PACKAGE-default} 9262 case $withval in 9263 yes|no) pic_mode=$withval ;; 9264 *) 9265 pic_mode=default 9266 # Look at the argument we got. We use all the common list separators. 9267 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9268 for lt_pkg in $withval; do 9269 IFS=$lt_save_ifs 9270 if test "X$lt_pkg" = "X$lt_p"; then 9271 pic_mode=yes 9272 fi 9273 done 9274 IFS=$lt_save_ifs 9275 ;; 9276 esac 9277 else $as_nop 9278 pic_mode=default 9279 fi 9280 9281 9282 9283 9284 9285 9286 9287 9288 # Check whether --enable-fast-install was given. 9289 if test ${enable_fast_install+y} 9290 then : 9291 enableval=$enable_fast_install; p=${PACKAGE-default} 9292 case $enableval in 9293 yes) enable_fast_install=yes ;; 9294 no) enable_fast_install=no ;; 9295 *) 9296 enable_fast_install=no 9297 # Look at the argument we got. We use all the common list separators. 9298 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9299 for pkg in $enableval; do 9300 IFS=$lt_save_ifs 9301 if test "X$pkg" = "X$p"; then 9302 enable_fast_install=yes 9303 fi 9304 done 9305 IFS=$lt_save_ifs 9306 ;; 9307 esac 9308 else $as_nop 9309 enable_fast_install=yes 9310 fi 9311 9312 9313 9314 9315 9316 9317 9318 9319 shared_archive_member_spec= 9320 case $host,$enable_shared in 9321 power*-*-aix[5-9]*,yes) 9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9323 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9324 9325 # Check whether --with-aix-soname was given. 9326 if test ${with_aix_soname+y} 9327 then : 9328 withval=$with_aix_soname; case $withval in 9329 aix|svr4|both) 9330 ;; 9331 *) 9332 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9333 ;; 9334 esac 9335 lt_cv_with_aix_soname=$with_aix_soname 9336 else $as_nop 9337 if test ${lt_cv_with_aix_soname+y} 9338 then : 9339 printf %s "(cached) " >&6 9340 else $as_nop 9341 lt_cv_with_aix_soname=aix 9342 fi 9343 9344 with_aix_soname=$lt_cv_with_aix_soname 9345 fi 9346 9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9348 printf "%s\n" "$with_aix_soname" >&6; } 9349 if test aix != "$with_aix_soname"; then 9350 # For the AIX way of multilib, we name the shared archive member 9351 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9352 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9353 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9354 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9355 if test 64 = "${OBJECT_MODE-32}"; then 9356 shared_archive_member_spec=shr_64 9357 else 9358 shared_archive_member_spec=shr 9359 fi 9360 fi 9361 ;; 9362 *) 9363 with_aix_soname=aix 9364 ;; 9365 esac 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 # This can be used to rebuild libtool when needed 9377 LIBTOOL_DEPS=$ltmain 9378 9379 # Always use our own libtool. 9380 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 test -z "$LN_S" && LN_S="ln -s" 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 if test -n "${ZSH_VERSION+set}"; then 9427 setopt NO_GLOB_SUBST 9428 fi 9429 9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9431 printf %s "checking for objdir... " >&6; } 9432 if test ${lt_cv_objdir+y} 9433 then : 9434 printf %s "(cached) " >&6 9435 else $as_nop 9436 rm -f .libs 2>/dev/null 9437 mkdir .libs 2>/dev/null 9438 if test -d .libs; then 9439 lt_cv_objdir=.libs 9440 else 9441 # MS-DOS does not allow filenames that begin with a dot. 9442 lt_cv_objdir=_libs 9443 fi 9444 rmdir .libs 2>/dev/null 9445 fi 9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9447 printf "%s\n" "$lt_cv_objdir" >&6; } 9448 objdir=$lt_cv_objdir 9449 9450 9451 9452 9453 9454 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9455 9456 9457 9458 9459 case $host_os in 9460 aix3*) 9461 # AIX sometimes has problems with the GCC collect2 program. For some 9462 # reason, if we set the COLLECT_NAMES environment variable, the problems 9463 # vanish in a puff of smoke. 9464 if test set != "${COLLECT_NAMES+set}"; then 9465 COLLECT_NAMES= 9466 export COLLECT_NAMES 9467 fi 9468 ;; 9469 esac 9470 9471 # Global variables: 9472 ofile=libtool 9473 can_build_shared=yes 9474 9475 # All known linkers require a '.a' archive for static linking (except MSVC and 9476 # ICC, which need '.lib'). 9477 libext=a 9478 9479 with_gnu_ld=$lt_cv_prog_gnu_ld 9480 9481 old_CC=$CC 9482 old_CFLAGS=$CFLAGS 9483 9484 # Set sane defaults for various variables 9485 test -z "$CC" && CC=cc 9486 test -z "$LTCC" && LTCC=$CC 9487 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9488 test -z "$LD" && LD=ld 9489 test -z "$ac_objext" && ac_objext=o 9490 9491 func_cc_basename $compiler 9492 cc_basename=$func_cc_basename_result 9493 9494 9495 # Only perform the check for file, if the check method requires it 9496 test -z "$MAGIC_CMD" && MAGIC_CMD=file 9497 case $deplibs_check_method in 9498 file_magic*) 9499 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9501 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9502 if test ${lt_cv_path_MAGIC_CMD+y} 9503 then : 9504 printf %s "(cached) " >&6 9505 else $as_nop 9506 case $MAGIC_CMD in 9507 [\\/*] | ?:[\\/]*) 9508 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9509 ;; 9510 *) 9511 lt_save_MAGIC_CMD=$MAGIC_CMD 9512 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9514 for ac_dir in $ac_dummy; do 9515 IFS=$lt_save_ifs 9516 test -z "$ac_dir" && ac_dir=. 9517 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9518 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9519 if test -n "$file_magic_test_file"; then 9520 case $deplibs_check_method in 9521 "file_magic "*) 9522 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9523 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9525 $EGREP "$file_magic_regex" > /dev/null; then 9526 : 9527 else 9528 cat <<_LT_EOF 1>&2 9529 9530 *** Warning: the command libtool uses to detect shared libraries, 9531 *** $file_magic_cmd, produces output that libtool cannot recognize. 9532 *** The result is that libtool may fail to recognize shared libraries 9533 *** as such. This will affect the creation of libtool libraries that 9534 *** depend on shared libraries, but programs linked with such libtool 9535 *** libraries will work regardless of this problem. Nevertheless, you 9536 *** may want to report the problem to your system manager and/or to 9537 *** bug-libtool@gnu.org 9538 9539 _LT_EOF 9540 fi ;; 9541 esac 9542 fi 9543 break 9544 fi 9545 done 9546 IFS=$lt_save_ifs 9547 MAGIC_CMD=$lt_save_MAGIC_CMD 9548 ;; 9549 esac 9550 fi 9551 9552 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9553 if test -n "$MAGIC_CMD"; then 9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9555 printf "%s\n" "$MAGIC_CMD" >&6; } 9556 else 9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9558 printf "%s\n" "no" >&6; } 9559 fi 9560 9561 9562 9563 9564 9565 if test -z "$lt_cv_path_MAGIC_CMD"; then 9566 if test -n "$ac_tool_prefix"; then 9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9568 printf %s "checking for file... " >&6; } 9569 if test ${lt_cv_path_MAGIC_CMD+y} 9570 then : 9571 printf %s "(cached) " >&6 9572 else $as_nop 9573 case $MAGIC_CMD in 9574 [\\/*] | ?:[\\/]*) 9575 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9576 ;; 9577 *) 9578 lt_save_MAGIC_CMD=$MAGIC_CMD 9579 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9580 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9581 for ac_dir in $ac_dummy; do 9582 IFS=$lt_save_ifs 9583 test -z "$ac_dir" && ac_dir=. 9584 if test -f "$ac_dir/file"; then 9585 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9586 if test -n "$file_magic_test_file"; then 9587 case $deplibs_check_method in 9588 "file_magic "*) 9589 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9590 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9591 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9592 $EGREP "$file_magic_regex" > /dev/null; then 9593 : 9594 else 9595 cat <<_LT_EOF 1>&2 9596 9597 *** Warning: the command libtool uses to detect shared libraries, 9598 *** $file_magic_cmd, produces output that libtool cannot recognize. 9599 *** The result is that libtool may fail to recognize shared libraries 9600 *** as such. This will affect the creation of libtool libraries that 9601 *** depend on shared libraries, but programs linked with such libtool 9602 *** libraries will work regardless of this problem. Nevertheless, you 9603 *** may want to report the problem to your system manager and/or to 9604 *** bug-libtool@gnu.org 9605 9606 _LT_EOF 9607 fi ;; 9608 esac 9609 fi 9610 break 9611 fi 9612 done 9613 IFS=$lt_save_ifs 9614 MAGIC_CMD=$lt_save_MAGIC_CMD 9615 ;; 9616 esac 9617 fi 9618 9619 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9620 if test -n "$MAGIC_CMD"; then 9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9622 printf "%s\n" "$MAGIC_CMD" >&6; } 9623 else 9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9625 printf "%s\n" "no" >&6; } 9626 fi 9627 9628 9629 else 9630 MAGIC_CMD=: 9631 fi 9632 fi 9633 9634 fi 9635 ;; 9636 esac 9637 9638 # Use C for the default configuration in the libtool script 9639 9640 lt_save_CC=$CC 9641 ac_ext=c 9642 ac_cpp='$CPP $CPPFLAGS' 9643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9645 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9646 9647 9648 # Source file extension for C test sources. 9649 ac_ext=c 9650 9651 # Object file extension for compiled C test sources. 9652 objext=o 9653 objext=$objext 9654 9655 # Code to be used in simple compile tests 9656 lt_simple_compile_test_code="int some_variable = 0;" 9657 9658 # Code to be used in simple link tests 9659 lt_simple_link_test_code='int main(){return(0);}' 9660 9661 9662 9663 9664 9665 9666 9667 # If no C compiler was specified, use CC. 9668 LTCC=${LTCC-"$CC"} 9669 9670 # If no C compiler flags were specified, use CFLAGS. 9671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9672 9673 # Allow CC to be a program name with arguments. 9674 compiler=$CC 9675 9676 # Save the default compiler, since it gets overwritten when the other 9677 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9678 compiler_DEFAULT=$CC 9679 9680 # save warnings/boilerplate of simple test code 9681 ac_outfile=conftest.$ac_objext 9682 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9683 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9684 _lt_compiler_boilerplate=`cat conftest.err` 9685 $RM conftest* 9686 9687 ac_outfile=conftest.$ac_objext 9688 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9689 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9690 _lt_linker_boilerplate=`cat conftest.err` 9691 $RM -r conftest* 9692 9693 9694 ## CAVEAT EMPTOR: 9695 ## There is no encapsulation within the following macros, do not change 9696 ## the running order or otherwise move them around unless you know exactly 9697 ## what you are doing... 9698 if test -n "$compiler"; then 9699 9700 lt_prog_compiler_no_builtin_flag= 9701 9702 if test yes = "$GCC"; then 9703 case $cc_basename in 9704 nvcc*) 9705 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9706 *) 9707 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9708 esac 9709 9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9711 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9712 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9713 then : 9714 printf %s "(cached) " >&6 9715 else $as_nop 9716 lt_cv_prog_compiler_rtti_exceptions=no 9717 ac_outfile=conftest.$ac_objext 9718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9719 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9720 # Insert the option either (1) after the last *FLAGS variable, or 9721 # (2) before a word containing "conftest.", or (3) at the end. 9722 # Note that $ac_compile itself does not contain backslashes and begins 9723 # with a dollar sign (not a hyphen), so the echo should work correctly. 9724 # The option is referenced via a variable to avoid confusing sed. 9725 lt_compile=`echo "$ac_compile" | $SED \ 9726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9728 -e 's:$: $lt_compiler_flag:'` 9729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9730 (eval "$lt_compile" 2>conftest.err) 9731 ac_status=$? 9732 cat conftest.err >&5 9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9734 if (exit $ac_status) && test -s "$ac_outfile"; then 9735 # The compiler can only warn and ignore the option if not recognized 9736 # So say no if there are warnings other than the usual output. 9737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9740 lt_cv_prog_compiler_rtti_exceptions=yes 9741 fi 9742 fi 9743 $RM conftest* 9744 9745 fi 9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9747 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9748 9749 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9750 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9751 else 9752 : 9753 fi 9754 9755 fi 9756 9757 9758 9759 9760 9761 9762 lt_prog_compiler_wl= 9763 lt_prog_compiler_pic= 9764 lt_prog_compiler_static= 9765 9766 9767 if test yes = "$GCC"; then 9768 lt_prog_compiler_wl='-Wl,' 9769 lt_prog_compiler_static='-static' 9770 9771 case $host_os in 9772 aix*) 9773 # All AIX code is PIC. 9774 if test ia64 = "$host_cpu"; then 9775 # AIX 5 now supports IA64 processor 9776 lt_prog_compiler_static='-Bstatic' 9777 fi 9778 lt_prog_compiler_pic='-fPIC' 9779 ;; 9780 9781 amigaos*) 9782 case $host_cpu in 9783 powerpc) 9784 # see comment about AmigaOS4 .so support 9785 lt_prog_compiler_pic='-fPIC' 9786 ;; 9787 m68k) 9788 # FIXME: we need at least 68020 code to build shared libraries, but 9789 # adding the '-m68020' flag to GCC prevents building anything better, 9790 # like '-m68040'. 9791 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9792 ;; 9793 esac 9794 ;; 9795 9796 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9797 # PIC is the default for these OSes. 9798 ;; 9799 9800 mingw* | cygwin* | pw32* | os2* | cegcc*) 9801 # This hack is so that the source file can tell whether it is being 9802 # built for inclusion in a dll (and should export symbols for example). 9803 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9804 # (--disable-auto-import) libraries 9805 lt_prog_compiler_pic='-DDLL_EXPORT' 9806 case $host_os in 9807 os2*) 9808 lt_prog_compiler_static='$wl-static' 9809 ;; 9810 esac 9811 ;; 9812 9813 darwin* | rhapsody*) 9814 # PIC is the default on this platform 9815 # Common symbols not allowed in MH_DYLIB files 9816 lt_prog_compiler_pic='-fno-common' 9817 ;; 9818 9819 haiku*) 9820 # PIC is the default for Haiku. 9821 # The "-static" flag exists, but is broken. 9822 lt_prog_compiler_static= 9823 ;; 9824 9825 hpux*) 9826 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9827 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9828 # sets the default TLS model and affects inlining. 9829 case $host_cpu in 9830 hppa*64*) 9831 # +Z the default 9832 ;; 9833 *) 9834 lt_prog_compiler_pic='-fPIC' 9835 ;; 9836 esac 9837 ;; 9838 9839 interix[3-9]*) 9840 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9841 # Instead, we relocate shared libraries at runtime. 9842 ;; 9843 9844 msdosdjgpp*) 9845 # Just because we use GCC doesn't mean we suddenly get shared libraries 9846 # on systems that don't support them. 9847 lt_prog_compiler_can_build_shared=no 9848 enable_shared=no 9849 ;; 9850 9851 *nto* | *qnx*) 9852 # QNX uses GNU C++, but need to define -shared option too, otherwise 9853 # it will coredump. 9854 lt_prog_compiler_pic='-fPIC -shared' 9855 ;; 9856 9857 sysv4*MP*) 9858 if test -d /usr/nec; then 9859 lt_prog_compiler_pic=-Kconform_pic 9860 fi 9861 ;; 9862 9863 *) 9864 lt_prog_compiler_pic='-fPIC' 9865 ;; 9866 esac 9867 9868 case $cc_basename in 9869 nvcc*) # Cuda Compiler Driver 2.2 9870 lt_prog_compiler_wl='-Xlinker ' 9871 if test -n "$lt_prog_compiler_pic"; then 9872 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9873 fi 9874 ;; 9875 esac 9876 else 9877 # PORTME Check for flag to pass linker flags through the system compiler. 9878 case $host_os in 9879 aix*) 9880 lt_prog_compiler_wl='-Wl,' 9881 if test ia64 = "$host_cpu"; then 9882 # AIX 5 now supports IA64 processor 9883 lt_prog_compiler_static='-Bstatic' 9884 else 9885 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9886 fi 9887 ;; 9888 9889 darwin* | rhapsody*) 9890 # PIC is the default on this platform 9891 # Common symbols not allowed in MH_DYLIB files 9892 lt_prog_compiler_pic='-fno-common' 9893 case $cc_basename in 9894 nagfor*) 9895 # NAG Fortran compiler 9896 lt_prog_compiler_wl='-Wl,-Wl,,' 9897 lt_prog_compiler_pic='-PIC' 9898 lt_prog_compiler_static='-Bstatic' 9899 ;; 9900 esac 9901 ;; 9902 9903 mingw* | cygwin* | pw32* | os2* | cegcc*) 9904 # This hack is so that the source file can tell whether it is being 9905 # built for inclusion in a dll (and should export symbols for example). 9906 lt_prog_compiler_pic='-DDLL_EXPORT' 9907 case $host_os in 9908 os2*) 9909 lt_prog_compiler_static='$wl-static' 9910 ;; 9911 esac 9912 ;; 9913 9914 hpux9* | hpux10* | hpux11*) 9915 lt_prog_compiler_wl='-Wl,' 9916 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9917 # not for PA HP-UX. 9918 case $host_cpu in 9919 hppa*64*|ia64*) 9920 # +Z the default 9921 ;; 9922 *) 9923 lt_prog_compiler_pic='+Z' 9924 ;; 9925 esac 9926 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9927 lt_prog_compiler_static='$wl-a ${wl}archive' 9928 ;; 9929 9930 irix5* | irix6* | nonstopux*) 9931 lt_prog_compiler_wl='-Wl,' 9932 # PIC (with -KPIC) is the default. 9933 lt_prog_compiler_static='-non_shared' 9934 ;; 9935 9936 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9937 case $cc_basename in 9938 # old Intel for x86_64, which still supported -KPIC. 9939 ecc*) 9940 lt_prog_compiler_wl='-Wl,' 9941 lt_prog_compiler_pic='-KPIC' 9942 lt_prog_compiler_static='-static' 9943 ;; 9944 # flang / f18. f95 an alias for gfortran or flang on Debian 9945 flang* | f18* | f95*) 9946 lt_prog_compiler_wl='-Wl,' 9947 lt_prog_compiler_pic='-fPIC' 9948 lt_prog_compiler_static='-static' 9949 ;; 9950 # icc used to be incompatible with GCC. 9951 # ICC 10 doesn't accept -KPIC any more. 9952 icc* | ifort*) 9953 lt_prog_compiler_wl='-Wl,' 9954 lt_prog_compiler_pic='-fPIC' 9955 lt_prog_compiler_static='-static' 9956 ;; 9957 # Lahey Fortran 8.1. 9958 lf95*) 9959 lt_prog_compiler_wl='-Wl,' 9960 lt_prog_compiler_pic='--shared' 9961 lt_prog_compiler_static='--static' 9962 ;; 9963 nagfor*) 9964 # NAG Fortran compiler 9965 lt_prog_compiler_wl='-Wl,-Wl,,' 9966 lt_prog_compiler_pic='-PIC' 9967 lt_prog_compiler_static='-Bstatic' 9968 ;; 9969 tcc*) 9970 # Fabrice Bellard et al's Tiny C Compiler 9971 lt_prog_compiler_wl='-Wl,' 9972 lt_prog_compiler_pic='-fPIC' 9973 lt_prog_compiler_static='-static' 9974 ;; 9975 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9976 # Portland Group compilers (*not* the Pentium gcc compiler, 9977 # which looks to be a dead project) 9978 lt_prog_compiler_wl='-Wl,' 9979 lt_prog_compiler_pic='-fpic' 9980 lt_prog_compiler_static='-Bstatic' 9981 ;; 9982 ccc*) 9983 lt_prog_compiler_wl='-Wl,' 9984 # All Alpha code is PIC. 9985 lt_prog_compiler_static='-non_shared' 9986 ;; 9987 xl* | bgxl* | bgf* | mpixl*) 9988 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9989 lt_prog_compiler_wl='-Wl,' 9990 lt_prog_compiler_pic='-qpic' 9991 lt_prog_compiler_static='-qstaticlink' 9992 ;; 9993 *) 9994 case `$CC -V 2>&1 | $SED 5q` in 9995 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9996 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9997 lt_prog_compiler_pic='-KPIC' 9998 lt_prog_compiler_static='-Bstatic' 9999 lt_prog_compiler_wl='' 10000 ;; 10001 *Sun\ F* | *Sun*Fortran*) 10002 lt_prog_compiler_pic='-KPIC' 10003 lt_prog_compiler_static='-Bstatic' 10004 lt_prog_compiler_wl='-Qoption ld ' 10005 ;; 10006 *Sun\ C*) 10007 # Sun C 5.9 10008 lt_prog_compiler_pic='-KPIC' 10009 lt_prog_compiler_static='-Bstatic' 10010 lt_prog_compiler_wl='-Wl,' 10011 ;; 10012 *Intel*\ [CF]*Compiler*) 10013 lt_prog_compiler_wl='-Wl,' 10014 lt_prog_compiler_pic='-fPIC' 10015 lt_prog_compiler_static='-static' 10016 ;; 10017 *Portland\ Group*) 10018 lt_prog_compiler_wl='-Wl,' 10019 lt_prog_compiler_pic='-fpic' 10020 lt_prog_compiler_static='-Bstatic' 10021 ;; 10022 esac 10023 ;; 10024 esac 10025 ;; 10026 10027 newsos6) 10028 lt_prog_compiler_pic='-KPIC' 10029 lt_prog_compiler_static='-Bstatic' 10030 ;; 10031 10032 *nto* | *qnx*) 10033 # QNX uses GNU C++, but need to define -shared option too, otherwise 10034 # it will coredump. 10035 lt_prog_compiler_pic='-fPIC -shared' 10036 ;; 10037 10038 osf3* | osf4* | osf5*) 10039 lt_prog_compiler_wl='-Wl,' 10040 # All OSF/1 code is PIC. 10041 lt_prog_compiler_static='-non_shared' 10042 ;; 10043 10044 rdos*) 10045 lt_prog_compiler_static='-non_shared' 10046 ;; 10047 10048 solaris*) 10049 lt_prog_compiler_pic='-KPIC' 10050 lt_prog_compiler_static='-Bstatic' 10051 case $cc_basename in 10052 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10053 lt_prog_compiler_wl='-Qoption ld ';; 10054 *) 10055 lt_prog_compiler_wl='-Wl,';; 10056 esac 10057 ;; 10058 10059 sunos4*) 10060 lt_prog_compiler_wl='-Qoption ld ' 10061 lt_prog_compiler_pic='-PIC' 10062 lt_prog_compiler_static='-Bstatic' 10063 ;; 10064 10065 sysv4 | sysv4.2uw2* | sysv4.3*) 10066 lt_prog_compiler_wl='-Wl,' 10067 lt_prog_compiler_pic='-KPIC' 10068 lt_prog_compiler_static='-Bstatic' 10069 ;; 10070 10071 sysv4*MP*) 10072 if test -d /usr/nec; then 10073 lt_prog_compiler_pic='-Kconform_pic' 10074 lt_prog_compiler_static='-Bstatic' 10075 fi 10076 ;; 10077 10078 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10079 lt_prog_compiler_wl='-Wl,' 10080 lt_prog_compiler_pic='-KPIC' 10081 lt_prog_compiler_static='-Bstatic' 10082 ;; 10083 10084 unicos*) 10085 lt_prog_compiler_wl='-Wl,' 10086 lt_prog_compiler_can_build_shared=no 10087 ;; 10088 10089 uts4*) 10090 lt_prog_compiler_pic='-pic' 10091 lt_prog_compiler_static='-Bstatic' 10092 ;; 10093 10094 *) 10095 lt_prog_compiler_can_build_shared=no 10096 ;; 10097 esac 10098 fi 10099 10100 case $host_os in 10101 # For platforms that do not support PIC, -DPIC is meaningless: 10102 *djgpp*) 10103 lt_prog_compiler_pic= 10104 ;; 10105 *) 10106 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10107 ;; 10108 esac 10109 10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10111 printf %s "checking for $compiler option to produce PIC... " >&6; } 10112 if test ${lt_cv_prog_compiler_pic+y} 10113 then : 10114 printf %s "(cached) " >&6 10115 else $as_nop 10116 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10117 fi 10118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10119 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10120 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10121 10122 # 10123 # Check to make sure the PIC flag actually works. 10124 # 10125 if test -n "$lt_prog_compiler_pic"; then 10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10127 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10128 if test ${lt_cv_prog_compiler_pic_works+y} 10129 then : 10130 printf %s "(cached) " >&6 10131 else $as_nop 10132 lt_cv_prog_compiler_pic_works=no 10133 ac_outfile=conftest.$ac_objext 10134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10135 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10136 # Insert the option either (1) after the last *FLAGS variable, or 10137 # (2) before a word containing "conftest.", or (3) at the end. 10138 # Note that $ac_compile itself does not contain backslashes and begins 10139 # with a dollar sign (not a hyphen), so the echo should work correctly. 10140 # The option is referenced via a variable to avoid confusing sed. 10141 lt_compile=`echo "$ac_compile" | $SED \ 10142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10144 -e 's:$: $lt_compiler_flag:'` 10145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10146 (eval "$lt_compile" 2>conftest.err) 10147 ac_status=$? 10148 cat conftest.err >&5 10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10150 if (exit $ac_status) && test -s "$ac_outfile"; then 10151 # The compiler can only warn and ignore the option if not recognized 10152 # So say no if there are warnings other than the usual output. 10153 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10156 lt_cv_prog_compiler_pic_works=yes 10157 fi 10158 fi 10159 $RM conftest* 10160 10161 fi 10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10163 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10164 10165 if test yes = "$lt_cv_prog_compiler_pic_works"; then 10166 case $lt_prog_compiler_pic in 10167 "" | " "*) ;; 10168 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10169 esac 10170 else 10171 lt_prog_compiler_pic= 10172 lt_prog_compiler_can_build_shared=no 10173 fi 10174 10175 fi 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 # 10188 # Check to make sure the static flag actually works. 10189 # 10190 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10192 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10193 if test ${lt_cv_prog_compiler_static_works+y} 10194 then : 10195 printf %s "(cached) " >&6 10196 else $as_nop 10197 lt_cv_prog_compiler_static_works=no 10198 save_LDFLAGS=$LDFLAGS 10199 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10200 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10202 # The linker can only warn and ignore the option if not recognized 10203 # So say no if there are warnings 10204 if test -s conftest.err; then 10205 # Append any errors to the config.log. 10206 cat conftest.err 1>&5 10207 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10209 if diff conftest.exp conftest.er2 >/dev/null; then 10210 lt_cv_prog_compiler_static_works=yes 10211 fi 10212 else 10213 lt_cv_prog_compiler_static_works=yes 10214 fi 10215 fi 10216 $RM -r conftest* 10217 LDFLAGS=$save_LDFLAGS 10218 10219 fi 10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10221 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10222 10223 if test yes = "$lt_cv_prog_compiler_static_works"; then 10224 : 10225 else 10226 lt_prog_compiler_static= 10227 fi 10228 10229 10230 10231 10232 10233 10234 10235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10236 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10237 if test ${lt_cv_prog_compiler_c_o+y} 10238 then : 10239 printf %s "(cached) " >&6 10240 else $as_nop 10241 lt_cv_prog_compiler_c_o=no 10242 $RM -r conftest 2>/dev/null 10243 mkdir conftest 10244 cd conftest 10245 mkdir out 10246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10247 10248 lt_compiler_flag="-o out/conftest2.$ac_objext" 10249 # Insert the option either (1) after the last *FLAGS variable, or 10250 # (2) before a word containing "conftest.", or (3) at the end. 10251 # Note that $ac_compile itself does not contain backslashes and begins 10252 # with a dollar sign (not a hyphen), so the echo should work correctly. 10253 lt_compile=`echo "$ac_compile" | $SED \ 10254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10256 -e 's:$: $lt_compiler_flag:'` 10257 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10258 (eval "$lt_compile" 2>out/conftest.err) 10259 ac_status=$? 10260 cat out/conftest.err >&5 10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10262 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10263 then 10264 # The compiler can only warn and ignore the option if not recognized 10265 # So say no if there are warnings 10266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10267 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10268 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10269 lt_cv_prog_compiler_c_o=yes 10270 fi 10271 fi 10272 chmod u+w . 2>&5 10273 $RM conftest* 10274 # SGI C++ compiler will create directory out/ii_files/ for 10275 # template instantiation 10276 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10277 $RM out/* && rmdir out 10278 cd .. 10279 $RM -r conftest 10280 $RM conftest* 10281 10282 fi 10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10284 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10285 10286 10287 10288 10289 10290 10291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10292 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10293 if test ${lt_cv_prog_compiler_c_o+y} 10294 then : 10295 printf %s "(cached) " >&6 10296 else $as_nop 10297 lt_cv_prog_compiler_c_o=no 10298 $RM -r conftest 2>/dev/null 10299 mkdir conftest 10300 cd conftest 10301 mkdir out 10302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10303 10304 lt_compiler_flag="-o out/conftest2.$ac_objext" 10305 # Insert the option either (1) after the last *FLAGS variable, or 10306 # (2) before a word containing "conftest.", or (3) at the end. 10307 # Note that $ac_compile itself does not contain backslashes and begins 10308 # with a dollar sign (not a hyphen), so the echo should work correctly. 10309 lt_compile=`echo "$ac_compile" | $SED \ 10310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10312 -e 's:$: $lt_compiler_flag:'` 10313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10314 (eval "$lt_compile" 2>out/conftest.err) 10315 ac_status=$? 10316 cat out/conftest.err >&5 10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10318 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10319 then 10320 # The compiler can only warn and ignore the option if not recognized 10321 # So say no if there are warnings 10322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10325 lt_cv_prog_compiler_c_o=yes 10326 fi 10327 fi 10328 chmod u+w . 2>&5 10329 $RM conftest* 10330 # SGI C++ compiler will create directory out/ii_files/ for 10331 # template instantiation 10332 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10333 $RM out/* && rmdir out 10334 cd .. 10335 $RM -r conftest 10336 $RM conftest* 10337 10338 fi 10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10340 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10341 10342 10343 10344 10345 hard_links=nottested 10346 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10347 # do not overwrite the value of need_locks provided by the user 10348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10349 printf %s "checking if we can lock with hard links... " >&6; } 10350 hard_links=yes 10351 $RM conftest* 10352 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10353 touch conftest.a 10354 ln conftest.a conftest.b 2>&5 || hard_links=no 10355 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10357 printf "%s\n" "$hard_links" >&6; } 10358 if test no = "$hard_links"; then 10359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10360 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10361 need_locks=warn 10362 fi 10363 else 10364 need_locks=no 10365 fi 10366 10367 10368 10369 10370 10371 10372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10373 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10374 10375 runpath_var= 10376 allow_undefined_flag= 10377 always_export_symbols=no 10378 archive_cmds= 10379 archive_expsym_cmds= 10380 compiler_needs_object=no 10381 enable_shared_with_static_runtimes=no 10382 export_dynamic_flag_spec= 10383 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10384 hardcode_automatic=no 10385 hardcode_direct=no 10386 hardcode_direct_absolute=no 10387 hardcode_libdir_flag_spec= 10388 hardcode_libdir_separator= 10389 hardcode_minus_L=no 10390 hardcode_shlibpath_var=unsupported 10391 inherit_rpath=no 10392 link_all_deplibs=unknown 10393 module_cmds= 10394 module_expsym_cmds= 10395 old_archive_from_new_cmds= 10396 old_archive_from_expsyms_cmds= 10397 thread_safe_flag_spec= 10398 whole_archive_flag_spec= 10399 # include_expsyms should be a list of space-separated symbols to be *always* 10400 # included in the symbol list 10401 include_expsyms= 10402 # exclude_expsyms can be an extended regexp of symbols to exclude 10403 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10404 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10405 # as well as any symbol that contains 'd'. 10406 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10407 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10408 # platforms (ab)use it in PIC code, but their linkers get confused if 10409 # the symbol is explicitly referenced. Since portable code cannot 10410 # rely on this symbol name, it's probably fine to never include it in 10411 # preloaded symbol tables. 10412 # Exclude shared library initialization/finalization symbols. 10413 extract_expsyms_cmds= 10414 10415 case $host_os in 10416 cygwin* | mingw* | pw32* | cegcc*) 10417 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10418 # When not using gcc, we currently assume that we are using 10419 # Microsoft Visual C++ or Intel C++ Compiler. 10420 if test yes != "$GCC"; then 10421 with_gnu_ld=no 10422 fi 10423 ;; 10424 interix*) 10425 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10426 with_gnu_ld=yes 10427 ;; 10428 openbsd* | bitrig*) 10429 with_gnu_ld=no 10430 ;; 10431 linux* | k*bsd*-gnu | gnu*) 10432 link_all_deplibs=no 10433 ;; 10434 esac 10435 10436 ld_shlibs=yes 10437 10438 # On some targets, GNU ld is compatible enough with the native linker 10439 # that we're better off using the native interface for both. 10440 lt_use_gnu_ld_interface=no 10441 if test yes = "$with_gnu_ld"; then 10442 case $host_os in 10443 aix*) 10444 # The AIX port of GNU ld has always aspired to compatibility 10445 # with the native linker. However, as the warning in the GNU ld 10446 # block says, versions before 2.19.5* couldn't really create working 10447 # shared libraries, regardless of the interface used. 10448 case `$LD -v 2>&1` in 10449 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10450 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10451 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10452 *) 10453 lt_use_gnu_ld_interface=yes 10454 ;; 10455 esac 10456 ;; 10457 *) 10458 lt_use_gnu_ld_interface=yes 10459 ;; 10460 esac 10461 fi 10462 10463 if test yes = "$lt_use_gnu_ld_interface"; then 10464 # If archive_cmds runs LD, not CC, wlarc should be empty 10465 wlarc='$wl' 10466 10467 # Set some defaults for GNU ld with shared library support. These 10468 # are reset later if shared libraries are not supported. Putting them 10469 # here allows them to be overridden if necessary. 10470 runpath_var=LD_RUN_PATH 10471 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10472 export_dynamic_flag_spec='$wl--export-dynamic' 10473 # ancient GNU ld didn't support --whole-archive et. al. 10474 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10475 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10476 else 10477 whole_archive_flag_spec= 10478 fi 10479 supports_anon_versioning=no 10480 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10481 *GNU\ gold*) supports_anon_versioning=yes ;; 10482 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10483 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10484 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10485 *\ 2.11.*) ;; # other 2.11 versions 10486 *) supports_anon_versioning=yes ;; 10487 esac 10488 10489 # See if GNU ld supports shared libraries. 10490 case $host_os in 10491 aix[3-9]*) 10492 # On AIX/PPC, the GNU linker is very broken 10493 if test ia64 != "$host_cpu"; then 10494 ld_shlibs=no 10495 cat <<_LT_EOF 1>&2 10496 10497 *** Warning: the GNU linker, at least up to release 2.19, is reported 10498 *** to be unable to reliably create shared libraries on AIX. 10499 *** Therefore, libtool is disabling shared libraries support. If you 10500 *** really care for shared libraries, you may want to install binutils 10501 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10502 *** You will then need to restart the configuration process. 10503 10504 _LT_EOF 10505 fi 10506 ;; 10507 10508 amigaos*) 10509 case $host_cpu in 10510 powerpc) 10511 # see comment about AmigaOS4 .so support 10512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10513 archive_expsym_cmds='' 10514 ;; 10515 m68k) 10516 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)' 10517 hardcode_libdir_flag_spec='-L$libdir' 10518 hardcode_minus_L=yes 10519 ;; 10520 esac 10521 ;; 10522 10523 beos*) 10524 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10525 allow_undefined_flag=unsupported 10526 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10527 # support --undefined. This deserves some investigation. FIXME 10528 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10529 else 10530 ld_shlibs=no 10531 fi 10532 ;; 10533 10534 cygwin* | mingw* | pw32* | cegcc*) 10535 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10536 # as there is no search path for DLLs. 10537 hardcode_libdir_flag_spec='-L$libdir' 10538 export_dynamic_flag_spec='$wl--export-all-symbols' 10539 allow_undefined_flag=unsupported 10540 always_export_symbols=no 10541 enable_shared_with_static_runtimes=yes 10542 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' 10543 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10544 10545 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10547 # If the export-symbols file already is a .def file, use it as 10548 # is; otherwise, prepend EXPORTS... 10549 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10550 cp $export_symbols $output_objdir/$soname.def; 10551 else 10552 echo EXPORTS > $output_objdir/$soname.def; 10553 cat $export_symbols >> $output_objdir/$soname.def; 10554 fi~ 10555 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10556 else 10557 ld_shlibs=no 10558 fi 10559 ;; 10560 10561 haiku*) 10562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10563 link_all_deplibs=yes 10564 ;; 10565 10566 os2*) 10567 hardcode_libdir_flag_spec='-L$libdir' 10568 hardcode_minus_L=yes 10569 allow_undefined_flag=unsupported 10570 shrext_cmds=.dll 10571 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10572 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10573 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10574 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10575 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10576 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10577 emximp -o $lib $output_objdir/$libname.def' 10578 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10579 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10580 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10581 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10582 prefix_cmds="$SED"~ 10583 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10584 prefix_cmds="$prefix_cmds -e 1d"; 10585 fi~ 10586 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10587 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10588 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10589 emximp -o $lib $output_objdir/$libname.def' 10590 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10591 enable_shared_with_static_runtimes=yes 10592 file_list_spec='@' 10593 ;; 10594 10595 interix[3-9]*) 10596 hardcode_direct=no 10597 hardcode_shlibpath_var=no 10598 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10599 export_dynamic_flag_spec='$wl-E' 10600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10601 # Instead, shared libraries are loaded at an image base (0x10000000 by 10602 # default) and relocated if they conflict, which is a slow very memory 10603 # consuming and fragmenting process. To avoid this, we pick a random, 10604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10605 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10607 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' 10608 ;; 10609 10610 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10611 tmp_diet=no 10612 if test linux-dietlibc = "$host_os"; then 10613 case $cc_basename in 10614 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10615 esac 10616 fi 10617 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10618 && test no = "$tmp_diet" 10619 then 10620 tmp_addflag=' $pic_flag' 10621 tmp_sharedflag='-shared' 10622 case $cc_basename,$host_cpu in 10623 pgcc*) # Portland Group C compiler 10624 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' 10625 tmp_addflag=' $pic_flag' 10626 ;; 10627 pgf77* | pgf90* | pgf95* | pgfortran*) 10628 # Portland Group f77 and f90 compilers 10629 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' 10630 tmp_addflag=' $pic_flag -Mnomain' ;; 10631 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10632 tmp_addflag=' -i_dynamic' ;; 10633 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10634 tmp_addflag=' -i_dynamic -nofor_main' ;; 10635 ifc* | ifort*) # Intel Fortran compiler 10636 tmp_addflag=' -nofor_main' ;; 10637 lf95*) # Lahey Fortran 8.1 10638 whole_archive_flag_spec= 10639 tmp_sharedflag='--shared' ;; 10640 nagfor*) # NAGFOR 5.3 10641 tmp_sharedflag='-Wl,-shared' ;; 10642 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10643 tmp_sharedflag='-qmkshrobj' 10644 tmp_addflag= ;; 10645 nvcc*) # Cuda Compiler Driver 2.2 10646 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' 10647 compiler_needs_object=yes 10648 ;; 10649 esac 10650 case `$CC -V 2>&1 | $SED 5q` in 10651 *Sun\ C*) # Sun C 5.9 10652 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' 10653 compiler_needs_object=yes 10654 tmp_sharedflag='-G' ;; 10655 *Sun\ F*) # Sun Fortran 8.3 10656 tmp_sharedflag='-G' ;; 10657 esac 10658 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10659 10660 if test yes = "$supports_anon_versioning"; then 10661 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10662 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10663 echo "local: *; };" >> $output_objdir/$libname.ver~ 10664 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10665 fi 10666 10667 case $cc_basename in 10668 tcc*) 10669 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10670 export_dynamic_flag_spec='-rdynamic' 10671 ;; 10672 xlf* | bgf* | bgxlf* | mpixlf*) 10673 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10674 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10675 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10676 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10677 if test yes = "$supports_anon_versioning"; then 10678 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10679 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10680 echo "local: *; };" >> $output_objdir/$libname.ver~ 10681 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10682 fi 10683 ;; 10684 esac 10685 else 10686 ld_shlibs=no 10687 fi 10688 ;; 10689 10690 netbsd* | netbsdelf*-gnu) 10691 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10692 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10693 wlarc= 10694 else 10695 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10696 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10697 fi 10698 ;; 10699 10700 solaris*) 10701 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10702 ld_shlibs=no 10703 cat <<_LT_EOF 1>&2 10704 10705 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10706 *** create shared libraries on Solaris systems. Therefore, libtool 10707 *** is disabling shared libraries support. We urge you to upgrade GNU 10708 *** binutils to release 2.9.1 or newer. Another option is to modify 10709 *** your PATH or compiler configuration so that the native linker is 10710 *** used, and then restart. 10711 10712 _LT_EOF 10713 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10714 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10715 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10716 else 10717 ld_shlibs=no 10718 fi 10719 ;; 10720 10721 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10722 case `$LD -v 2>&1` in 10723 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10724 ld_shlibs=no 10725 cat <<_LT_EOF 1>&2 10726 10727 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10728 *** reliably create shared libraries on SCO systems. Therefore, libtool 10729 *** is disabling shared libraries support. We urge you to upgrade GNU 10730 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10731 *** your PATH or compiler configuration so that the native linker is 10732 *** used, and then restart. 10733 10734 _LT_EOF 10735 ;; 10736 *) 10737 # For security reasons, it is highly recommended that you always 10738 # use absolute paths for naming shared libraries, and exclude the 10739 # DT_RUNPATH tag from executables and libraries. But doing so 10740 # requires that you compile everything twice, which is a pain. 10741 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10742 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10744 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10745 else 10746 ld_shlibs=no 10747 fi 10748 ;; 10749 esac 10750 ;; 10751 10752 sunos4*) 10753 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10754 wlarc= 10755 hardcode_direct=yes 10756 hardcode_shlibpath_var=no 10757 ;; 10758 10759 *) 10760 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10761 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10762 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10763 else 10764 ld_shlibs=no 10765 fi 10766 ;; 10767 esac 10768 10769 if test no = "$ld_shlibs"; then 10770 runpath_var= 10771 hardcode_libdir_flag_spec= 10772 export_dynamic_flag_spec= 10773 whole_archive_flag_spec= 10774 fi 10775 else 10776 # PORTME fill in a description of your system's linker (not GNU ld) 10777 case $host_os in 10778 aix3*) 10779 allow_undefined_flag=unsupported 10780 always_export_symbols=yes 10781 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' 10782 # Note: this linker hardcodes the directories in LIBPATH if there 10783 # are no directories specified by -L. 10784 hardcode_minus_L=yes 10785 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10786 # Neither direct hardcoding nor static linking is supported with a 10787 # broken collect2. 10788 hardcode_direct=unsupported 10789 fi 10790 ;; 10791 10792 aix[4-9]*) 10793 if test ia64 = "$host_cpu"; then 10794 # On IA64, the linker does run time linking by default, so we don't 10795 # have to do anything special. 10796 aix_use_runtimelinking=no 10797 exp_sym_flag='-Bexport' 10798 no_entry_flag= 10799 else 10800 # If we're using GNU nm, then we don't want the "-C" option. 10801 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10802 # Without the "-l" option, or with the "-B" option, AIX nm treats 10803 # weak defined symbols like other global defined symbols, whereas 10804 # GNU nm marks them as "W". 10805 # While the 'weak' keyword is ignored in the Export File, we need 10806 # it in the Import File for the 'aix-soname' feature, so we have 10807 # to replace the "-B" option with "-P" for AIX nm. 10808 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10809 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' 10810 else 10811 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 == "L") || (\$ 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' 10812 fi 10813 aix_use_runtimelinking=no 10814 10815 # Test if we are trying to use run time linking or normal 10816 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10817 # have runtime linking enabled, and use it for executables. 10818 # For shared libraries, we enable/disable runtime linking 10819 # depending on the kind of the shared library created - 10820 # when "with_aix_soname,aix_use_runtimelinking" is: 10821 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10822 # "aix,yes" lib.so shared, rtl:yes, for executables 10823 # lib.a static archive 10824 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10825 # lib.a(lib.so.V) shared, rtl:no, for executables 10826 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10827 # lib.a(lib.so.V) shared, rtl:no 10828 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10829 # lib.a static archive 10830 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10831 for ld_flag in $LDFLAGS; do 10832 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10833 aix_use_runtimelinking=yes 10834 break 10835 fi 10836 done 10837 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10838 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10839 # so we don't have lib.a shared libs to link our executables. 10840 # We have to force runtime linking in this case. 10841 aix_use_runtimelinking=yes 10842 LDFLAGS="$LDFLAGS -Wl,-brtl" 10843 fi 10844 ;; 10845 esac 10846 10847 exp_sym_flag='-bexport' 10848 no_entry_flag='-bnoentry' 10849 fi 10850 10851 # When large executables or shared objects are built, AIX ld can 10852 # have problems creating the table of contents. If linking a library 10853 # or program results in "error TOC overflow" add -mminimal-toc to 10854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10856 10857 archive_cmds='' 10858 hardcode_direct=yes 10859 hardcode_direct_absolute=yes 10860 hardcode_libdir_separator=':' 10861 link_all_deplibs=yes 10862 file_list_spec='$wl-f,' 10863 case $with_aix_soname,$aix_use_runtimelinking in 10864 aix,*) ;; # traditional, no import file 10865 svr4,* | *,yes) # use import file 10866 # The Import File defines what to hardcode. 10867 hardcode_direct=no 10868 hardcode_direct_absolute=no 10869 ;; 10870 esac 10871 10872 if test yes = "$GCC"; then 10873 case $host_os in aix4.[012]|aix4.[012].*) 10874 # We only want to do this on AIX 4.2 and lower, the check 10875 # below for broken collect2 doesn't work under 4.3+ 10876 collect2name=`$CC -print-prog-name=collect2` 10877 if test -f "$collect2name" && 10878 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10879 then 10880 # We have reworked collect2 10881 : 10882 else 10883 # We have old collect2 10884 hardcode_direct=unsupported 10885 # It fails to find uninstalled libraries when the uninstalled 10886 # path is not listed in the libpath. Setting hardcode_minus_L 10887 # to unsupported forces relinking 10888 hardcode_minus_L=yes 10889 hardcode_libdir_flag_spec='-L$libdir' 10890 hardcode_libdir_separator= 10891 fi 10892 ;; 10893 esac 10894 shared_flag='-shared' 10895 if test yes = "$aix_use_runtimelinking"; then 10896 shared_flag="$shared_flag "'$wl-G' 10897 fi 10898 # Need to ensure runtime linking is disabled for the traditional 10899 # shared library, or the linker may eventually find shared libraries 10900 # /with/ Import File - we do not want to mix them. 10901 shared_flag_aix='-shared' 10902 shared_flag_svr4='-shared $wl-G' 10903 else 10904 # not using gcc 10905 if test ia64 = "$host_cpu"; then 10906 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10907 # chokes on -Wl,-G. The following line is correct: 10908 shared_flag='-G' 10909 else 10910 if test yes = "$aix_use_runtimelinking"; then 10911 shared_flag='$wl-G' 10912 else 10913 shared_flag='$wl-bM:SRE' 10914 fi 10915 shared_flag_aix='$wl-bM:SRE' 10916 shared_flag_svr4='$wl-G' 10917 fi 10918 fi 10919 10920 export_dynamic_flag_spec='$wl-bexpall' 10921 # It seems that -bexpall does not export symbols beginning with 10922 # underscore (_), so it is better to generate a list of symbols to export. 10923 always_export_symbols=yes 10924 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10925 # Warning - without using the other runtime loading flags (-brtl), 10926 # -berok will link without error, but may produce a broken library. 10927 allow_undefined_flag='-berok' 10928 # Determine the default libpath from the value encoded in an 10929 # empty executable. 10930 if test set = "${lt_cv_aix_libpath+set}"; then 10931 aix_libpath=$lt_cv_aix_libpath 10932 else 10933 if test ${lt_cv_aix_libpath_+y} 10934 then : 10935 printf %s "(cached) " >&6 10936 else $as_nop 10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10938 /* end confdefs.h. */ 10939 10940 int 10941 main (void) 10942 { 10943 10944 ; 10945 return 0; 10946 } 10947 _ACEOF 10948 if ac_fn_c_try_link "$LINENO" 10949 then : 10950 10951 lt_aix_libpath_sed=' 10952 /Import File Strings/,/^$/ { 10953 /^0/ { 10954 s/^0 *\([^ ]*\) *$/\1/ 10955 p 10956 } 10957 }' 10958 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10959 # Check for a 64-bit object if we didn't find anything. 10960 if test -z "$lt_cv_aix_libpath_"; then 10961 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10962 fi 10963 fi 10964 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10965 conftest$ac_exeext conftest.$ac_ext 10966 if test -z "$lt_cv_aix_libpath_"; then 10967 lt_cv_aix_libpath_=/usr/lib:/lib 10968 fi 10969 10970 fi 10971 10972 aix_libpath=$lt_cv_aix_libpath_ 10973 fi 10974 10975 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10976 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 10977 else 10978 if test ia64 = "$host_cpu"; then 10979 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10980 allow_undefined_flag="-z nodefs" 10981 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" 10982 else 10983 # Determine the default libpath from the value encoded in an 10984 # empty executable. 10985 if test set = "${lt_cv_aix_libpath+set}"; then 10986 aix_libpath=$lt_cv_aix_libpath 10987 else 10988 if test ${lt_cv_aix_libpath_+y} 10989 then : 10990 printf %s "(cached) " >&6 10991 else $as_nop 10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10993 /* end confdefs.h. */ 10994 10995 int 10996 main (void) 10997 { 10998 10999 ; 11000 return 0; 11001 } 11002 _ACEOF 11003 if ac_fn_c_try_link "$LINENO" 11004 then : 11005 11006 lt_aix_libpath_sed=' 11007 /Import File Strings/,/^$/ { 11008 /^0/ { 11009 s/^0 *\([^ ]*\) *$/\1/ 11010 p 11011 } 11012 }' 11013 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11014 # Check for a 64-bit object if we didn't find anything. 11015 if test -z "$lt_cv_aix_libpath_"; then 11016 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11017 fi 11018 fi 11019 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11020 conftest$ac_exeext conftest.$ac_ext 11021 if test -z "$lt_cv_aix_libpath_"; then 11022 lt_cv_aix_libpath_=/usr/lib:/lib 11023 fi 11024 11025 fi 11026 11027 aix_libpath=$lt_cv_aix_libpath_ 11028 fi 11029 11030 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11031 # Warning - without using the other run time loading flags, 11032 # -berok will link without error, but may produce a broken library. 11033 no_undefined_flag=' $wl-bernotok' 11034 allow_undefined_flag=' $wl-berok' 11035 if test yes = "$with_gnu_ld"; then 11036 # We only use this code for GNU lds that support --whole-archive. 11037 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11038 else 11039 # Exported symbols can be pulled into shared objects from archives 11040 whole_archive_flag_spec='$convenience' 11041 fi 11042 archive_cmds_need_lc=yes 11043 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11044 # -brtl affects multiple linker settings, -berok does not and is overridden later 11045 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11046 if test svr4 != "$with_aix_soname"; then 11047 # This is similar to how AIX traditionally builds its shared libraries. 11048 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' 11049 fi 11050 if test aix != "$with_aix_soname"; then 11051 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' 11052 else 11053 # used by -dlpreopen to get the symbols 11054 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11055 fi 11056 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11057 fi 11058 fi 11059 ;; 11060 11061 amigaos*) 11062 case $host_cpu in 11063 powerpc) 11064 # see comment about AmigaOS4 .so support 11065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11066 archive_expsym_cmds='' 11067 ;; 11068 m68k) 11069 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)' 11070 hardcode_libdir_flag_spec='-L$libdir' 11071 hardcode_minus_L=yes 11072 ;; 11073 esac 11074 ;; 11075 11076 bsdi[45]*) 11077 export_dynamic_flag_spec=-rdynamic 11078 ;; 11079 11080 cygwin* | mingw* | pw32* | cegcc*) 11081 # When not using gcc, we currently assume that we are using 11082 # Microsoft Visual C++ or Intel C++ Compiler. 11083 # hardcode_libdir_flag_spec is actually meaningless, as there is 11084 # no search path for DLLs. 11085 case $cc_basename in 11086 cl* | icl*) 11087 # Native MSVC or ICC 11088 hardcode_libdir_flag_spec=' ' 11089 allow_undefined_flag=unsupported 11090 always_export_symbols=yes 11091 file_list_spec='@' 11092 # Tell ltmain to make .lib files, not .a files. 11093 libext=lib 11094 # Tell ltmain to make .dll files, not .so files. 11095 shrext_cmds=.dll 11096 # FIXME: Setting linknames here is a bad hack. 11097 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11098 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11099 cp "$export_symbols" "$output_objdir/$soname.def"; 11100 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11101 else 11102 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11103 fi~ 11104 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11105 linknames=' 11106 # The linker will not automatically build a static lib if we build a DLL. 11107 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11108 enable_shared_with_static_runtimes=yes 11109 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11110 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11111 # Don't use ranlib 11112 old_postinstall_cmds='chmod 644 $oldlib' 11113 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11114 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11115 case $lt_outputfile in 11116 *.exe|*.EXE) ;; 11117 *) 11118 lt_outputfile=$lt_outputfile.exe 11119 lt_tool_outputfile=$lt_tool_outputfile.exe 11120 ;; 11121 esac~ 11122 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11123 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11124 $RM "$lt_outputfile.manifest"; 11125 fi' 11126 ;; 11127 *) 11128 # Assume MSVC and ICC wrapper 11129 hardcode_libdir_flag_spec=' ' 11130 allow_undefined_flag=unsupported 11131 # Tell ltmain to make .lib files, not .a files. 11132 libext=lib 11133 # Tell ltmain to make .dll files, not .so files. 11134 shrext_cmds=.dll 11135 # FIXME: Setting linknames here is a bad hack. 11136 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11137 # The linker will automatically build a .lib file if we build a DLL. 11138 old_archive_from_new_cmds='true' 11139 # FIXME: Should let the user specify the lib program. 11140 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11141 enable_shared_with_static_runtimes=yes 11142 ;; 11143 esac 11144 ;; 11145 11146 darwin* | rhapsody*) 11147 11148 11149 archive_cmds_need_lc=no 11150 hardcode_direct=no 11151 hardcode_automatic=yes 11152 hardcode_shlibpath_var=unsupported 11153 if test yes = "$lt_cv_ld_force_load"; then 11154 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\"`' 11155 11156 else 11157 whole_archive_flag_spec='' 11158 fi 11159 link_all_deplibs=yes 11160 allow_undefined_flag=$_lt_dar_allow_undefined 11161 case $cc_basename in 11162 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11163 *) _lt_dar_can_shared=$GCC ;; 11164 esac 11165 if test yes = "$_lt_dar_can_shared"; then 11166 output_verbose_link_cmd=func_echo_all 11167 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11168 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11169 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" 11170 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" 11171 11172 else 11173 ld_shlibs=no 11174 fi 11175 11176 ;; 11177 11178 dgux*) 11179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11180 hardcode_libdir_flag_spec='-L$libdir' 11181 hardcode_shlibpath_var=no 11182 ;; 11183 11184 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11185 # support. Future versions do this automatically, but an explicit c++rt0.o 11186 # does not break anything, and helps significantly (at the cost of a little 11187 # extra space). 11188 freebsd2.2*) 11189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11190 hardcode_libdir_flag_spec='-R$libdir' 11191 hardcode_direct=yes 11192 hardcode_shlibpath_var=no 11193 ;; 11194 11195 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11196 freebsd2.*) 11197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11198 hardcode_direct=yes 11199 hardcode_minus_L=yes 11200 hardcode_shlibpath_var=no 11201 ;; 11202 11203 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11204 freebsd* | dragonfly* | midnightbsd*) 11205 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11206 hardcode_libdir_flag_spec='-R$libdir' 11207 hardcode_direct=yes 11208 hardcode_shlibpath_var=no 11209 ;; 11210 11211 hpux9*) 11212 if test yes = "$GCC"; then 11213 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' 11214 else 11215 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' 11216 fi 11217 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11218 hardcode_libdir_separator=: 11219 hardcode_direct=yes 11220 11221 # hardcode_minus_L: Not really in the search PATH, 11222 # but as the default location of the library. 11223 hardcode_minus_L=yes 11224 export_dynamic_flag_spec='$wl-E' 11225 ;; 11226 11227 hpux10*) 11228 if test yes,no = "$GCC,$with_gnu_ld"; then 11229 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11230 else 11231 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11232 fi 11233 if test no = "$with_gnu_ld"; then 11234 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11235 hardcode_libdir_separator=: 11236 hardcode_direct=yes 11237 hardcode_direct_absolute=yes 11238 export_dynamic_flag_spec='$wl-E' 11239 # hardcode_minus_L: Not really in the search PATH, 11240 # but as the default location of the library. 11241 hardcode_minus_L=yes 11242 fi 11243 ;; 11244 11245 hpux11*) 11246 if test yes,no = "$GCC,$with_gnu_ld"; then 11247 case $host_cpu in 11248 hppa*64*) 11249 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11250 ;; 11251 ia64*) 11252 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11253 ;; 11254 *) 11255 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11256 ;; 11257 esac 11258 else 11259 case $host_cpu in 11260 hppa*64*) 11261 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11262 ;; 11263 ia64*) 11264 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11265 ;; 11266 *) 11267 11268 # Older versions of the 11.00 compiler do not understand -b yet 11269 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11271 printf %s "checking if $CC understands -b... " >&6; } 11272 if test ${lt_cv_prog_compiler__b+y} 11273 then : 11274 printf %s "(cached) " >&6 11275 else $as_nop 11276 lt_cv_prog_compiler__b=no 11277 save_LDFLAGS=$LDFLAGS 11278 LDFLAGS="$LDFLAGS -b" 11279 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11281 # The linker can only warn and ignore the option if not recognized 11282 # So say no if there are warnings 11283 if test -s conftest.err; then 11284 # Append any errors to the config.log. 11285 cat conftest.err 1>&5 11286 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11288 if diff conftest.exp conftest.er2 >/dev/null; then 11289 lt_cv_prog_compiler__b=yes 11290 fi 11291 else 11292 lt_cv_prog_compiler__b=yes 11293 fi 11294 fi 11295 $RM -r conftest* 11296 LDFLAGS=$save_LDFLAGS 11297 11298 fi 11299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11300 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11301 11302 if test yes = "$lt_cv_prog_compiler__b"; then 11303 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11304 else 11305 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11306 fi 11307 11308 ;; 11309 esac 11310 fi 11311 if test no = "$with_gnu_ld"; then 11312 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11313 hardcode_libdir_separator=: 11314 11315 case $host_cpu in 11316 hppa*64*|ia64*) 11317 hardcode_direct=no 11318 hardcode_shlibpath_var=no 11319 ;; 11320 *) 11321 hardcode_direct=yes 11322 hardcode_direct_absolute=yes 11323 export_dynamic_flag_spec='$wl-E' 11324 11325 # hardcode_minus_L: Not really in the search PATH, 11326 # but as the default location of the library. 11327 hardcode_minus_L=yes 11328 ;; 11329 esac 11330 fi 11331 ;; 11332 11333 irix5* | irix6* | nonstopux*) 11334 if test yes = "$GCC"; then 11335 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' 11336 # Try to use the -exported_symbol ld option, if it does not 11337 # work, assume that -exports_file does not work either and 11338 # implicitly export all symbols. 11339 # This should be the same for all languages, so no per-tag cache variable. 11340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11341 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11342 if test ${lt_cv_irix_exported_symbol+y} 11343 then : 11344 printf %s "(cached) " >&6 11345 else $as_nop 11346 save_LDFLAGS=$LDFLAGS 11347 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11349 /* end confdefs.h. */ 11350 int foo (void) { return 0; } 11351 _ACEOF 11352 if ac_fn_c_try_link "$LINENO" 11353 then : 11354 lt_cv_irix_exported_symbol=yes 11355 else $as_nop 11356 lt_cv_irix_exported_symbol=no 11357 fi 11358 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11359 conftest$ac_exeext conftest.$ac_ext 11360 LDFLAGS=$save_LDFLAGS 11361 fi 11362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11363 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11364 if test yes = "$lt_cv_irix_exported_symbol"; then 11365 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' 11366 fi 11367 link_all_deplibs=no 11368 else 11369 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' 11370 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' 11371 fi 11372 archive_cmds_need_lc='no' 11373 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11374 hardcode_libdir_separator=: 11375 inherit_rpath=yes 11376 link_all_deplibs=yes 11377 ;; 11378 11379 linux*) 11380 case $cc_basename in 11381 tcc*) 11382 # Fabrice Bellard et al's Tiny C Compiler 11383 ld_shlibs=yes 11384 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11385 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11386 ;; 11387 esac 11388 ;; 11389 11390 netbsd* | netbsdelf*-gnu) 11391 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11393 else 11394 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11395 fi 11396 hardcode_libdir_flag_spec='-R$libdir' 11397 hardcode_direct=yes 11398 hardcode_shlibpath_var=no 11399 ;; 11400 11401 newsos6) 11402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11403 hardcode_direct=yes 11404 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11405 hardcode_libdir_separator=: 11406 hardcode_shlibpath_var=no 11407 ;; 11408 11409 *nto* | *qnx*) 11410 ;; 11411 11412 openbsd* | bitrig*) 11413 if test -f /usr/libexec/ld.so; then 11414 hardcode_direct=yes 11415 hardcode_shlibpath_var=no 11416 hardcode_direct_absolute=yes 11417 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11418 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11419 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11420 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11421 export_dynamic_flag_spec='$wl-E' 11422 else 11423 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11424 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11425 fi 11426 else 11427 ld_shlibs=no 11428 fi 11429 ;; 11430 11431 os2*) 11432 hardcode_libdir_flag_spec='-L$libdir' 11433 hardcode_minus_L=yes 11434 allow_undefined_flag=unsupported 11435 shrext_cmds=.dll 11436 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11437 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11438 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11439 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11440 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11441 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11442 emximp -o $lib $output_objdir/$libname.def' 11443 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11444 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11445 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11446 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11447 prefix_cmds="$SED"~ 11448 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11449 prefix_cmds="$prefix_cmds -e 1d"; 11450 fi~ 11451 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11452 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11453 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11454 emximp -o $lib $output_objdir/$libname.def' 11455 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11456 enable_shared_with_static_runtimes=yes 11457 file_list_spec='@' 11458 ;; 11459 11460 osf3*) 11461 if test yes = "$GCC"; then 11462 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11463 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' 11464 else 11465 allow_undefined_flag=' -expect_unresolved \*' 11466 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' 11467 fi 11468 archive_cmds_need_lc='no' 11469 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11470 hardcode_libdir_separator=: 11471 ;; 11472 11473 osf4* | osf5*) # as osf3* with the addition of -msym flag 11474 if test yes = "$GCC"; then 11475 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11476 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' 11477 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11478 else 11479 allow_undefined_flag=' -expect_unresolved \*' 11480 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' 11481 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~ 11482 $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' 11483 11484 # Both c and cxx compiler support -rpath directly 11485 hardcode_libdir_flag_spec='-rpath $libdir' 11486 fi 11487 archive_cmds_need_lc='no' 11488 hardcode_libdir_separator=: 11489 ;; 11490 11491 solaris*) 11492 no_undefined_flag=' -z defs' 11493 if test yes = "$GCC"; then 11494 wlarc='$wl' 11495 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11496 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11497 $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' 11498 else 11499 case `$CC -V 2>&1` in 11500 *"Compilers 5.0"*) 11501 wlarc='' 11502 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11503 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11504 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11505 ;; 11506 *) 11507 wlarc='$wl' 11508 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11509 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11510 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11511 ;; 11512 esac 11513 fi 11514 hardcode_libdir_flag_spec='-R$libdir' 11515 hardcode_shlibpath_var=no 11516 case $host_os in 11517 solaris2.[0-5] | solaris2.[0-5].*) ;; 11518 *) 11519 # The compiler driver will combine and reorder linker options, 11520 # but understands '-z linker_flag'. GCC discards it without '$wl', 11521 # but is careful enough not to reorder. 11522 # Supported since Solaris 2.6 (maybe 2.5.1?) 11523 if test yes = "$GCC"; then 11524 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11525 else 11526 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11527 fi 11528 ;; 11529 esac 11530 link_all_deplibs=yes 11531 ;; 11532 11533 sunos4*) 11534 if test sequent = "$host_vendor"; then 11535 # Use $CC to link under sequent, because it throws in some extra .o 11536 # files that make .init and .fini sections work. 11537 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11538 else 11539 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11540 fi 11541 hardcode_libdir_flag_spec='-L$libdir' 11542 hardcode_direct=yes 11543 hardcode_minus_L=yes 11544 hardcode_shlibpath_var=no 11545 ;; 11546 11547 sysv4) 11548 case $host_vendor in 11549 sni) 11550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11551 hardcode_direct=yes # is this really true??? 11552 ;; 11553 siemens) 11554 ## LD is ld it makes a PLAMLIB 11555 ## CC just makes a GrossModule. 11556 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11557 reload_cmds='$CC -r -o $output$reload_objs' 11558 hardcode_direct=no 11559 ;; 11560 motorola) 11561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11562 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11563 ;; 11564 esac 11565 runpath_var='LD_RUN_PATH' 11566 hardcode_shlibpath_var=no 11567 ;; 11568 11569 sysv4.3*) 11570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11571 hardcode_shlibpath_var=no 11572 export_dynamic_flag_spec='-Bexport' 11573 ;; 11574 11575 sysv4*MP*) 11576 if test -d /usr/nec; then 11577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11578 hardcode_shlibpath_var=no 11579 runpath_var=LD_RUN_PATH 11580 hardcode_runpath_var=yes 11581 ld_shlibs=yes 11582 fi 11583 ;; 11584 11585 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11586 no_undefined_flag='$wl-z,text' 11587 archive_cmds_need_lc=no 11588 hardcode_shlibpath_var=no 11589 runpath_var='LD_RUN_PATH' 11590 11591 if test yes = "$GCC"; then 11592 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11593 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11594 else 11595 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11596 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11597 fi 11598 ;; 11599 11600 sysv5* | sco3.2v5* | sco5v6*) 11601 # Note: We CANNOT use -z defs as we might desire, because we do not 11602 # link with -lc, and that would cause any symbols used from libc to 11603 # always be unresolved, which means just about no library would 11604 # ever link correctly. If we're not using GNU ld we use -z text 11605 # though, which does catch some bad symbols but isn't as heavy-handed 11606 # as -z defs. 11607 no_undefined_flag='$wl-z,text' 11608 allow_undefined_flag='$wl-z,nodefs' 11609 archive_cmds_need_lc=no 11610 hardcode_shlibpath_var=no 11611 hardcode_libdir_flag_spec='$wl-R,$libdir' 11612 hardcode_libdir_separator=':' 11613 link_all_deplibs=yes 11614 export_dynamic_flag_spec='$wl-Bexport' 11615 runpath_var='LD_RUN_PATH' 11616 11617 if test yes = "$GCC"; then 11618 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11619 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11620 else 11621 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11622 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11623 fi 11624 ;; 11625 11626 uts4*) 11627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11628 hardcode_libdir_flag_spec='-L$libdir' 11629 hardcode_shlibpath_var=no 11630 ;; 11631 11632 *) 11633 ld_shlibs=no 11634 ;; 11635 esac 11636 11637 if test sni = "$host_vendor"; then 11638 case $host in 11639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11640 export_dynamic_flag_spec='$wl-Blargedynsym' 11641 ;; 11642 esac 11643 fi 11644 fi 11645 11646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11647 printf "%s\n" "$ld_shlibs" >&6; } 11648 test no = "$ld_shlibs" && can_build_shared=no 11649 11650 with_gnu_ld=$with_gnu_ld 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 # 11667 # Do we need to explicitly link libc? 11668 # 11669 case "x$archive_cmds_need_lc" in 11670 x|xyes) 11671 # Assume -lc should be added 11672 archive_cmds_need_lc=yes 11673 11674 if test yes,yes = "$GCC,$enable_shared"; then 11675 case $archive_cmds in 11676 *'~'*) 11677 # FIXME: we may have to deal with multi-command sequences. 11678 ;; 11679 '$CC '*) 11680 # Test whether the compiler implicitly links with -lc since on some 11681 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11682 # to ld, don't add -lc before -lgcc. 11683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11684 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11685 if test ${lt_cv_archive_cmds_need_lc+y} 11686 then : 11687 printf %s "(cached) " >&6 11688 else $as_nop 11689 $RM conftest* 11690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11691 11692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11693 (eval $ac_compile) 2>&5 11694 ac_status=$? 11695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11696 test $ac_status = 0; } 2>conftest.err; then 11697 soname=conftest 11698 lib=conftest 11699 libobjs=conftest.$ac_objext 11700 deplibs= 11701 wl=$lt_prog_compiler_wl 11702 pic_flag=$lt_prog_compiler_pic 11703 compiler_flags=-v 11704 linker_flags=-v 11705 verstring= 11706 output_objdir=. 11707 libname=conftest 11708 lt_save_allow_undefined_flag=$allow_undefined_flag 11709 allow_undefined_flag= 11710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11711 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11712 ac_status=$? 11713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11714 test $ac_status = 0; } 11715 then 11716 lt_cv_archive_cmds_need_lc=no 11717 else 11718 lt_cv_archive_cmds_need_lc=yes 11719 fi 11720 allow_undefined_flag=$lt_save_allow_undefined_flag 11721 else 11722 cat conftest.err 1>&5 11723 fi 11724 $RM conftest* 11725 11726 fi 11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11728 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11729 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11730 ;; 11731 esac 11732 fi 11733 ;; 11734 esac 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11888 printf %s "checking dynamic linker characteristics... " >&6; } 11889 11890 if test yes = "$GCC"; then 11891 case $host_os in 11892 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11893 *) lt_awk_arg='/^libraries:/' ;; 11894 esac 11895 case $host_os in 11896 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11897 *) lt_sed_strip_eq='s|=/|/|g' ;; 11898 esac 11899 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11900 case $lt_search_path_spec in 11901 *\;*) 11902 # if the path contains ";" then we assume it to be the separator 11903 # otherwise default to the standard path separator (i.e. ":") - it is 11904 # assumed that no part of a normal pathname contains ";" but that should 11905 # okay in the real world where ";" in dirpaths is itself problematic. 11906 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11907 ;; 11908 *) 11909 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11910 ;; 11911 esac 11912 # Ok, now we have the path, separated by spaces, we can step through it 11913 # and add multilib dir if necessary... 11914 lt_tmp_lt_search_path_spec= 11915 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11916 # ...but if some path component already ends with the multilib dir we assume 11917 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11918 case "$lt_multi_os_dir; $lt_search_path_spec " in 11919 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11920 lt_multi_os_dir= 11921 ;; 11922 esac 11923 for lt_sys_path in $lt_search_path_spec; do 11924 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11926 elif test -n "$lt_multi_os_dir"; then 11927 test -d "$lt_sys_path" && \ 11928 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11929 fi 11930 done 11931 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11932 BEGIN {RS = " "; FS = "/|\n";} { 11933 lt_foo = ""; 11934 lt_count = 0; 11935 for (lt_i = NF; lt_i > 0; lt_i--) { 11936 if ($lt_i != "" && $lt_i != ".") { 11937 if ($lt_i == "..") { 11938 lt_count++; 11939 } else { 11940 if (lt_count == 0) { 11941 lt_foo = "/" $lt_i lt_foo; 11942 } else { 11943 lt_count--; 11944 } 11945 } 11946 } 11947 } 11948 if (lt_foo != "") { lt_freq[lt_foo]++; } 11949 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11950 }'` 11951 # AWK program above erroneously prepends '/' to C:/dos/paths 11952 # for these hosts. 11953 case $host_os in 11954 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11955 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11956 esac 11957 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11958 else 11959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11960 fi 11961 library_names_spec= 11962 libname_spec='lib$name' 11963 soname_spec= 11964 shrext_cmds=.so 11965 postinstall_cmds= 11966 postuninstall_cmds= 11967 finish_cmds= 11968 finish_eval= 11969 shlibpath_var= 11970 shlibpath_overrides_runpath=unknown 11971 version_type=none 11972 dynamic_linker="$host_os ld.so" 11973 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11974 need_lib_prefix=unknown 11975 hardcode_into_libs=no 11976 11977 # when you set need_version to no, make sure it does not cause -set_version 11978 # flags to be left without arguments 11979 need_version=unknown 11980 11981 11982 11983 case $host_os in 11984 aix3*) 11985 version_type=linux # correct to gnu/linux during the next big refactor 11986 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11987 shlibpath_var=LIBPATH 11988 11989 # AIX 3 has no versioning support, so we append a major version to the name. 11990 soname_spec='$libname$release$shared_ext$major' 11991 ;; 11992 11993 aix[4-9]*) 11994 version_type=linux # correct to gnu/linux during the next big refactor 11995 need_lib_prefix=no 11996 need_version=no 11997 hardcode_into_libs=yes 11998 if test ia64 = "$host_cpu"; then 11999 # AIX 5 supports IA64 12000 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12001 shlibpath_var=LD_LIBRARY_PATH 12002 else 12003 # With GCC up to 2.95.x, collect2 would create an import file 12004 # for dependence libraries. The import file would start with 12005 # the line '#! .'. This would cause the generated library to 12006 # depend on '.', always an invalid library. This was fixed in 12007 # development snapshots of GCC prior to 3.0. 12008 case $host_os in 12009 aix4 | aix4.[01] | aix4.[01].*) 12010 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12011 echo ' yes ' 12012 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12013 : 12014 else 12015 can_build_shared=no 12016 fi 12017 ;; 12018 esac 12019 # Using Import Files as archive members, it is possible to support 12020 # filename-based versioning of shared library archives on AIX. While 12021 # this would work for both with and without runtime linking, it will 12022 # prevent static linking of such archives. So we do filename-based 12023 # shared library versioning with .so extension only, which is used 12024 # when both runtime linking and shared linking is enabled. 12025 # Unfortunately, runtime linking may impact performance, so we do 12026 # not want this to be the default eventually. Also, we use the 12027 # versioned .so libs for executables only if there is the -brtl 12028 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12029 # To allow for filename-based versioning support, we need to create 12030 # libNAME.so.V as an archive file, containing: 12031 # *) an Import File, referring to the versioned filename of the 12032 # archive as well as the shared archive member, telling the 12033 # bitwidth (32 or 64) of that shared object, and providing the 12034 # list of exported symbols of that shared object, eventually 12035 # decorated with the 'weak' keyword 12036 # *) the shared object with the F_LOADONLY flag set, to really avoid 12037 # it being seen by the linker. 12038 # At run time we better use the real file rather than another symlink, 12039 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12040 12041 case $with_aix_soname,$aix_use_runtimelinking in 12042 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12043 # soname into executable. Probably we can add versioning support to 12044 # collect2, so additional links can be useful in future. 12045 aix,yes) # traditional libtool 12046 dynamic_linker='AIX unversionable lib.so' 12047 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12048 # instead of lib<name>.a to let people know that these are not 12049 # typical AIX shared libraries. 12050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12051 ;; 12052 aix,no) # traditional AIX only 12053 dynamic_linker='AIX lib.a(lib.so.V)' 12054 # We preserve .a as extension for shared libraries through AIX4.2 12055 # and later when we are not doing run time linking. 12056 library_names_spec='$libname$release.a $libname.a' 12057 soname_spec='$libname$release$shared_ext$major' 12058 ;; 12059 svr4,*) # full svr4 only 12060 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12061 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12062 # We do not specify a path in Import Files, so LIBPATH fires. 12063 shlibpath_overrides_runpath=yes 12064 ;; 12065 *,yes) # both, prefer svr4 12066 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12067 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12068 # unpreferred sharedlib libNAME.a needs extra handling 12069 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"' 12070 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"' 12071 # We do not specify a path in Import Files, so LIBPATH fires. 12072 shlibpath_overrides_runpath=yes 12073 ;; 12074 *,no) # both, prefer aix 12075 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12076 library_names_spec='$libname$release.a $libname.a' 12077 soname_spec='$libname$release$shared_ext$major' 12078 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12079 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)' 12080 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"' 12081 ;; 12082 esac 12083 shlibpath_var=LIBPATH 12084 fi 12085 ;; 12086 12087 amigaos*) 12088 case $host_cpu in 12089 powerpc) 12090 # Since July 2007 AmigaOS4 officially supports .so libraries. 12091 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12093 ;; 12094 m68k) 12095 library_names_spec='$libname.ixlibrary $libname.a' 12096 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12097 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' 12098 ;; 12099 esac 12100 ;; 12101 12102 beos*) 12103 library_names_spec='$libname$shared_ext' 12104 dynamic_linker="$host_os ld.so" 12105 shlibpath_var=LIBRARY_PATH 12106 ;; 12107 12108 bsdi[45]*) 12109 version_type=linux # correct to gnu/linux during the next big refactor 12110 need_version=no 12111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12112 soname_spec='$libname$release$shared_ext$major' 12113 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12114 shlibpath_var=LD_LIBRARY_PATH 12115 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12116 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12117 # the default ld.so.conf also contains /usr/contrib/lib and 12118 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12119 # libtool to hard-code these into programs 12120 ;; 12121 12122 cygwin* | mingw* | pw32* | cegcc*) 12123 version_type=windows 12124 shrext_cmds=.dll 12125 need_version=no 12126 need_lib_prefix=no 12127 12128 case $GCC,$cc_basename in 12129 yes,*) 12130 # gcc 12131 library_names_spec='$libname.dll.a' 12132 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12133 postinstall_cmds='base_file=`basename \$file`~ 12134 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12135 dldir=$destdir/`dirname \$dlpath`~ 12136 test -d \$dldir || mkdir -p \$dldir~ 12137 $install_prog $dir/$dlname \$dldir/$dlname~ 12138 chmod a+x \$dldir/$dlname~ 12139 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12140 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12141 fi' 12142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12143 dlpath=$dir/\$dldll~ 12144 $RM \$dlpath' 12145 shlibpath_overrides_runpath=yes 12146 12147 case $host_os in 12148 cygwin*) 12149 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12150 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12151 12152 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12153 ;; 12154 mingw* | cegcc*) 12155 # MinGW DLLs use traditional 'lib' prefix 12156 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12157 ;; 12158 pw32*) 12159 # pw32 DLLs use 'pw' prefix rather than 'lib' 12160 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12161 ;; 12162 esac 12163 dynamic_linker='Win32 ld.exe' 12164 ;; 12165 12166 *,cl* | *,icl*) 12167 # Native MSVC or ICC 12168 libname_spec='$name' 12169 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12170 library_names_spec='$libname.dll.lib' 12171 12172 case $build_os in 12173 mingw*) 12174 sys_lib_search_path_spec= 12175 lt_save_ifs=$IFS 12176 IFS=';' 12177 for lt_path in $LIB 12178 do 12179 IFS=$lt_save_ifs 12180 # Let DOS variable expansion print the short 8.3 style file name. 12181 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12182 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12183 done 12184 IFS=$lt_save_ifs 12185 # Convert to MSYS style. 12186 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12187 ;; 12188 cygwin*) 12189 # Convert to unix form, then to dos form, then back to unix form 12190 # but this time dos style (no spaces!) so that the unix form looks 12191 # like /cygdrive/c/PROGRA~1:/cygdr... 12192 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12193 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12194 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12195 ;; 12196 *) 12197 sys_lib_search_path_spec=$LIB 12198 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12199 # It is most probably a Windows format PATH. 12200 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12201 else 12202 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12203 fi 12204 # FIXME: find the short name or the path components, as spaces are 12205 # common. (e.g. "Program Files" -> "PROGRA~1") 12206 ;; 12207 esac 12208 12209 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12210 postinstall_cmds='base_file=`basename \$file`~ 12211 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12212 dldir=$destdir/`dirname \$dlpath`~ 12213 test -d \$dldir || mkdir -p \$dldir~ 12214 $install_prog $dir/$dlname \$dldir/$dlname' 12215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12216 dlpath=$dir/\$dldll~ 12217 $RM \$dlpath' 12218 shlibpath_overrides_runpath=yes 12219 dynamic_linker='Win32 link.exe' 12220 ;; 12221 12222 *) 12223 # Assume MSVC and ICC wrapper 12224 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12225 dynamic_linker='Win32 ld.exe' 12226 ;; 12227 esac 12228 # FIXME: first we should search . and the directory the executable is in 12229 shlibpath_var=PATH 12230 ;; 12231 12232 darwin* | rhapsody*) 12233 dynamic_linker="$host_os dyld" 12234 version_type=darwin 12235 need_lib_prefix=no 12236 need_version=no 12237 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12238 soname_spec='$libname$release$major$shared_ext' 12239 shlibpath_overrides_runpath=yes 12240 shlibpath_var=DYLD_LIBRARY_PATH 12241 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12242 12243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12244 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12245 ;; 12246 12247 dgux*) 12248 version_type=linux # correct to gnu/linux during the next big refactor 12249 need_lib_prefix=no 12250 need_version=no 12251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12252 soname_spec='$libname$release$shared_ext$major' 12253 shlibpath_var=LD_LIBRARY_PATH 12254 ;; 12255 12256 freebsd* | dragonfly* | midnightbsd*) 12257 # DragonFly does not have aout. When/if they implement a new 12258 # versioning mechanism, adjust this. 12259 if test -x /usr/bin/objformat; then 12260 objformat=`/usr/bin/objformat` 12261 else 12262 case $host_os in 12263 freebsd[23].*) objformat=aout ;; 12264 *) objformat=elf ;; 12265 esac 12266 fi 12267 version_type=freebsd-$objformat 12268 case $version_type in 12269 freebsd-elf*) 12270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12271 soname_spec='$libname$release$shared_ext$major' 12272 need_version=no 12273 need_lib_prefix=no 12274 ;; 12275 freebsd-*) 12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12277 need_version=yes 12278 ;; 12279 esac 12280 shlibpath_var=LD_LIBRARY_PATH 12281 case $host_os in 12282 freebsd2.*) 12283 shlibpath_overrides_runpath=yes 12284 ;; 12285 freebsd3.[01]* | freebsdelf3.[01]*) 12286 shlibpath_overrides_runpath=yes 12287 hardcode_into_libs=yes 12288 ;; 12289 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12290 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12291 shlibpath_overrides_runpath=no 12292 hardcode_into_libs=yes 12293 ;; 12294 *) # from 4.6 on, and DragonFly 12295 shlibpath_overrides_runpath=yes 12296 hardcode_into_libs=yes 12297 ;; 12298 esac 12299 ;; 12300 12301 haiku*) 12302 version_type=linux # correct to gnu/linux during the next big refactor 12303 need_lib_prefix=no 12304 need_version=no 12305 dynamic_linker="$host_os runtime_loader" 12306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12307 soname_spec='$libname$release$shared_ext$major' 12308 shlibpath_var=LIBRARY_PATH 12309 shlibpath_overrides_runpath=no 12310 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12311 hardcode_into_libs=yes 12312 ;; 12313 12314 hpux9* | hpux10* | hpux11*) 12315 # Give a soname corresponding to the major version so that dld.sl refuses to 12316 # link against other versions. 12317 version_type=sunos 12318 need_lib_prefix=no 12319 need_version=no 12320 case $host_cpu in 12321 ia64*) 12322 shrext_cmds='.so' 12323 hardcode_into_libs=yes 12324 dynamic_linker="$host_os dld.so" 12325 shlibpath_var=LD_LIBRARY_PATH 12326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12328 soname_spec='$libname$release$shared_ext$major' 12329 if test 32 = "$HPUX_IA64_MODE"; then 12330 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12331 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12332 else 12333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12334 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12335 fi 12336 ;; 12337 hppa*64*) 12338 shrext_cmds='.sl' 12339 hardcode_into_libs=yes 12340 dynamic_linker="$host_os dld.sl" 12341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12344 soname_spec='$libname$release$shared_ext$major' 12345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12347 ;; 12348 *) 12349 shrext_cmds='.sl' 12350 dynamic_linker="$host_os dld.sl" 12351 shlibpath_var=SHLIB_PATH 12352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12354 soname_spec='$libname$release$shared_ext$major' 12355 ;; 12356 esac 12357 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12358 postinstall_cmds='chmod 555 $lib' 12359 # or fails outright, so override atomically: 12360 install_override_mode=555 12361 ;; 12362 12363 interix[3-9]*) 12364 version_type=linux # correct to gnu/linux during the next big refactor 12365 need_lib_prefix=no 12366 need_version=no 12367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12368 soname_spec='$libname$release$shared_ext$major' 12369 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12370 shlibpath_var=LD_LIBRARY_PATH 12371 shlibpath_overrides_runpath=no 12372 hardcode_into_libs=yes 12373 ;; 12374 12375 irix5* | irix6* | nonstopux*) 12376 case $host_os in 12377 nonstopux*) version_type=nonstopux ;; 12378 *) 12379 if test yes = "$lt_cv_prog_gnu_ld"; then 12380 version_type=linux # correct to gnu/linux during the next big refactor 12381 else 12382 version_type=irix 12383 fi ;; 12384 esac 12385 need_lib_prefix=no 12386 need_version=no 12387 soname_spec='$libname$release$shared_ext$major' 12388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12389 case $host_os in 12390 irix5* | nonstopux*) 12391 libsuff= shlibsuff= 12392 ;; 12393 *) 12394 case $LD in # libtool.m4 will add one of these switches to LD 12395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12396 libsuff= shlibsuff= libmagic=32-bit;; 12397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12398 libsuff=32 shlibsuff=N32 libmagic=N32;; 12399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12400 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12401 *) libsuff= shlibsuff= libmagic=never-match;; 12402 esac 12403 ;; 12404 esac 12405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12406 shlibpath_overrides_runpath=no 12407 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12408 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12409 hardcode_into_libs=yes 12410 ;; 12411 12412 # No shared lib support for Linux oldld, aout, or coff. 12413 linux*oldld* | linux*aout* | linux*coff*) 12414 dynamic_linker=no 12415 ;; 12416 12417 linux*android*) 12418 version_type=none # Android doesn't support versioned libraries. 12419 need_lib_prefix=no 12420 need_version=no 12421 library_names_spec='$libname$release$shared_ext' 12422 soname_spec='$libname$release$shared_ext' 12423 finish_cmds= 12424 shlibpath_var=LD_LIBRARY_PATH 12425 shlibpath_overrides_runpath=yes 12426 12427 # This implies no fast_install, which is unacceptable. 12428 # Some rework will be needed to allow for fast_install 12429 # before this can be enabled. 12430 hardcode_into_libs=yes 12431 12432 dynamic_linker='Android linker' 12433 # Don't embed -rpath directories since the linker doesn't support them. 12434 hardcode_libdir_flag_spec='-L$libdir' 12435 ;; 12436 12437 # This must be glibc/ELF. 12438 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12439 version_type=linux # correct to gnu/linux during the next big refactor 12440 need_lib_prefix=no 12441 need_version=no 12442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12443 soname_spec='$libname$release$shared_ext$major' 12444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12445 shlibpath_var=LD_LIBRARY_PATH 12446 shlibpath_overrides_runpath=no 12447 12448 # Some binutils ld are patched to set DT_RUNPATH 12449 if test ${lt_cv_shlibpath_overrides_runpath+y} 12450 then : 12451 printf %s "(cached) " >&6 12452 else $as_nop 12453 lt_cv_shlibpath_overrides_runpath=no 12454 save_LDFLAGS=$LDFLAGS 12455 save_libdir=$libdir 12456 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12457 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12459 /* end confdefs.h. */ 12460 12461 int 12462 main (void) 12463 { 12464 12465 ; 12466 return 0; 12467 } 12468 _ACEOF 12469 if ac_fn_c_try_link "$LINENO" 12470 then : 12471 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12472 then : 12473 lt_cv_shlibpath_overrides_runpath=yes 12474 fi 12475 fi 12476 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12477 conftest$ac_exeext conftest.$ac_ext 12478 LDFLAGS=$save_LDFLAGS 12479 libdir=$save_libdir 12480 12481 fi 12482 12483 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12484 12485 # This implies no fast_install, which is unacceptable. 12486 # Some rework will be needed to allow for fast_install 12487 # before this can be enabled. 12488 hardcode_into_libs=yes 12489 12490 # Ideally, we could use ldconfig to report *all* directores which are 12491 # searched for libraries, however this is still not possible. Aside from not 12492 # being certain /sbin/ldconfig is available, command 12493 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12494 # even though it is searched at run-time. Try to do the best guess by 12495 # appending ld.so.conf contents (and includes) to the search path. 12496 if test -f /etc/ld.so.conf; then 12497 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' ' '` 12498 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12499 fi 12500 12501 # We used to test for /lib/ld.so.1 and disable shared libraries on 12502 # powerpc, because MkLinux only supported shared libraries with the 12503 # GNU dynamic linker. Since this was broken with cross compilers, 12504 # most powerpc-linux boxes support dynamic linking these days and 12505 # people can always --disable-shared, the test was removed, and we 12506 # assume the GNU/Linux dynamic linker is in use. 12507 dynamic_linker='GNU/Linux ld.so' 12508 ;; 12509 12510 netbsdelf*-gnu) 12511 version_type=linux 12512 need_lib_prefix=no 12513 need_version=no 12514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12515 soname_spec='${libname}${release}${shared_ext}$major' 12516 shlibpath_var=LD_LIBRARY_PATH 12517 shlibpath_overrides_runpath=no 12518 hardcode_into_libs=yes 12519 dynamic_linker='NetBSD ld.elf_so' 12520 ;; 12521 12522 netbsd*) 12523 version_type=sunos 12524 need_lib_prefix=no 12525 need_version=no 12526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12527 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12529 dynamic_linker='NetBSD (a.out) ld.so' 12530 else 12531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12532 soname_spec='$libname$release$shared_ext$major' 12533 dynamic_linker='NetBSD ld.elf_so' 12534 fi 12535 shlibpath_var=LD_LIBRARY_PATH 12536 shlibpath_overrides_runpath=yes 12537 hardcode_into_libs=yes 12538 ;; 12539 12540 newsos6) 12541 version_type=linux # correct to gnu/linux during the next big refactor 12542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12543 shlibpath_var=LD_LIBRARY_PATH 12544 shlibpath_overrides_runpath=yes 12545 ;; 12546 12547 *nto* | *qnx*) 12548 version_type=qnx 12549 need_lib_prefix=no 12550 need_version=no 12551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12552 soname_spec='$libname$release$shared_ext$major' 12553 shlibpath_var=LD_LIBRARY_PATH 12554 shlibpath_overrides_runpath=no 12555 hardcode_into_libs=yes 12556 dynamic_linker='ldqnx.so' 12557 ;; 12558 12559 openbsd* | bitrig*) 12560 version_type=sunos 12561 sys_lib_dlsearch_path_spec=/usr/lib 12562 need_lib_prefix=no 12563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12564 need_version=no 12565 else 12566 need_version=yes 12567 fi 12568 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12570 shlibpath_var=LD_LIBRARY_PATH 12571 shlibpath_overrides_runpath=yes 12572 ;; 12573 12574 os2*) 12575 libname_spec='$name' 12576 version_type=windows 12577 shrext_cmds=.dll 12578 need_version=no 12579 need_lib_prefix=no 12580 # OS/2 can only load a DLL with a base name of 8 characters or less. 12581 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12582 v=$($ECHO $release$versuffix | tr -d .-); 12583 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12584 $ECHO $n$v`$shared_ext' 12585 library_names_spec='${libname}_dll.$libext' 12586 dynamic_linker='OS/2 ld.exe' 12587 shlibpath_var=BEGINLIBPATH 12588 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12590 postinstall_cmds='base_file=`basename \$file`~ 12591 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12592 dldir=$destdir/`dirname \$dlpath`~ 12593 test -d \$dldir || mkdir -p \$dldir~ 12594 $install_prog $dir/$dlname \$dldir/$dlname~ 12595 chmod a+x \$dldir/$dlname~ 12596 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12597 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12598 fi' 12599 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12600 dlpath=$dir/\$dldll~ 12601 $RM \$dlpath' 12602 ;; 12603 12604 osf3* | osf4* | osf5*) 12605 version_type=osf 12606 need_lib_prefix=no 12607 need_version=no 12608 soname_spec='$libname$release$shared_ext$major' 12609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12610 shlibpath_var=LD_LIBRARY_PATH 12611 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12613 ;; 12614 12615 rdos*) 12616 dynamic_linker=no 12617 ;; 12618 12619 solaris*) 12620 version_type=linux # correct to gnu/linux during the next big refactor 12621 need_lib_prefix=no 12622 need_version=no 12623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12624 soname_spec='$libname$release$shared_ext$major' 12625 shlibpath_var=LD_LIBRARY_PATH 12626 shlibpath_overrides_runpath=yes 12627 hardcode_into_libs=yes 12628 # ldd complains unless libraries are executable 12629 postinstall_cmds='chmod +x $lib' 12630 ;; 12631 12632 sunos4*) 12633 version_type=sunos 12634 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12636 shlibpath_var=LD_LIBRARY_PATH 12637 shlibpath_overrides_runpath=yes 12638 if test yes = "$with_gnu_ld"; then 12639 need_lib_prefix=no 12640 fi 12641 need_version=yes 12642 ;; 12643 12644 sysv4 | sysv4.3*) 12645 version_type=linux # correct to gnu/linux during the next big refactor 12646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12647 soname_spec='$libname$release$shared_ext$major' 12648 shlibpath_var=LD_LIBRARY_PATH 12649 case $host_vendor in 12650 sni) 12651 shlibpath_overrides_runpath=no 12652 need_lib_prefix=no 12653 runpath_var=LD_RUN_PATH 12654 ;; 12655 siemens) 12656 need_lib_prefix=no 12657 ;; 12658 motorola) 12659 need_lib_prefix=no 12660 need_version=no 12661 shlibpath_overrides_runpath=no 12662 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12663 ;; 12664 esac 12665 ;; 12666 12667 sysv4*MP*) 12668 if test -d /usr/nec; then 12669 version_type=linux # correct to gnu/linux during the next big refactor 12670 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12671 soname_spec='$libname$shared_ext.$major' 12672 shlibpath_var=LD_LIBRARY_PATH 12673 fi 12674 ;; 12675 12676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12677 version_type=sco 12678 need_lib_prefix=no 12679 need_version=no 12680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12681 soname_spec='$libname$release$shared_ext$major' 12682 shlibpath_var=LD_LIBRARY_PATH 12683 shlibpath_overrides_runpath=yes 12684 hardcode_into_libs=yes 12685 if test yes = "$with_gnu_ld"; then 12686 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12687 else 12688 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12689 case $host_os in 12690 sco3.2v5*) 12691 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12692 ;; 12693 esac 12694 fi 12695 sys_lib_dlsearch_path_spec='/usr/lib' 12696 ;; 12697 12698 tpf*) 12699 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12700 version_type=linux # correct to gnu/linux during the next big refactor 12701 need_lib_prefix=no 12702 need_version=no 12703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12704 shlibpath_var=LD_LIBRARY_PATH 12705 shlibpath_overrides_runpath=no 12706 hardcode_into_libs=yes 12707 ;; 12708 12709 uts4*) 12710 version_type=linux # correct to gnu/linux during the next big refactor 12711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12712 soname_spec='$libname$release$shared_ext$major' 12713 shlibpath_var=LD_LIBRARY_PATH 12714 ;; 12715 12716 *) 12717 dynamic_linker=no 12718 ;; 12719 esac 12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12721 printf "%s\n" "$dynamic_linker" >&6; } 12722 test no = "$dynamic_linker" && can_build_shared=no 12723 12724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12725 if test yes = "$GCC"; then 12726 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12727 fi 12728 12729 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12730 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12731 fi 12732 12733 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12734 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12735 fi 12736 12737 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12738 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12739 12740 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12741 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12742 12743 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12744 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12843 printf %s "checking how to hardcode library paths into programs... " >&6; } 12844 hardcode_action= 12845 if test -n "$hardcode_libdir_flag_spec" || 12846 test -n "$runpath_var" || 12847 test yes = "$hardcode_automatic"; then 12848 12849 # We can hardcode non-existent directories. 12850 if test no != "$hardcode_direct" && 12851 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12852 # have to relink, otherwise we might link with an installed library 12853 # when we should be linking with a yet-to-be-installed one 12854 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12855 test no != "$hardcode_minus_L"; then 12856 # Linking always hardcodes the temporary library directory. 12857 hardcode_action=relink 12858 else 12859 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12860 hardcode_action=immediate 12861 fi 12862 else 12863 # We cannot hardcode anything, or else we can only hardcode existing 12864 # directories. 12865 hardcode_action=unsupported 12866 fi 12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12868 printf "%s\n" "$hardcode_action" >&6; } 12869 12870 if test relink = "$hardcode_action" || 12871 test yes = "$inherit_rpath"; then 12872 # Fast installation is not supported 12873 enable_fast_install=no 12874 elif test yes = "$shlibpath_overrides_runpath" || 12875 test no = "$enable_shared"; then 12876 # Fast installation is not necessary 12877 enable_fast_install=needless 12878 fi 12879 12880 12881 12882 12883 12884 12885 if test yes != "$enable_dlopen"; then 12886 enable_dlopen=unknown 12887 enable_dlopen_self=unknown 12888 enable_dlopen_self_static=unknown 12889 else 12890 lt_cv_dlopen=no 12891 lt_cv_dlopen_libs= 12892 12893 case $host_os in 12894 beos*) 12895 lt_cv_dlopen=load_add_on 12896 lt_cv_dlopen_libs= 12897 lt_cv_dlopen_self=yes 12898 ;; 12899 12900 mingw* | pw32* | cegcc*) 12901 lt_cv_dlopen=LoadLibrary 12902 lt_cv_dlopen_libs= 12903 ;; 12904 12905 cygwin*) 12906 lt_cv_dlopen=dlopen 12907 lt_cv_dlopen_libs= 12908 ;; 12909 12910 darwin*) 12911 # if libdl is installed we need to link against it 12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12913 printf %s "checking for dlopen in -ldl... " >&6; } 12914 if test ${ac_cv_lib_dl_dlopen+y} 12915 then : 12916 printf %s "(cached) " >&6 12917 else $as_nop 12918 ac_check_lib_save_LIBS=$LIBS 12919 LIBS="-ldl $LIBS" 12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12921 /* end confdefs.h. */ 12922 12923 /* Override any GCC internal prototype to avoid an error. 12924 Use char because int might match the return type of a GCC 12925 builtin and then its argument prototype would still apply. */ 12926 char dlopen (); 12927 int 12928 main (void) 12929 { 12930 return dlopen (); 12931 ; 12932 return 0; 12933 } 12934 _ACEOF 12935 if ac_fn_c_try_link "$LINENO" 12936 then : 12937 ac_cv_lib_dl_dlopen=yes 12938 else $as_nop 12939 ac_cv_lib_dl_dlopen=no 12940 fi 12941 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12942 conftest$ac_exeext conftest.$ac_ext 12943 LIBS=$ac_check_lib_save_LIBS 12944 fi 12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12946 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12947 if test "x$ac_cv_lib_dl_dlopen" = xyes 12948 then : 12949 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12950 else $as_nop 12951 12952 lt_cv_dlopen=dyld 12953 lt_cv_dlopen_libs= 12954 lt_cv_dlopen_self=yes 12955 12956 fi 12957 12958 ;; 12959 12960 tpf*) 12961 # Don't try to run any link tests for TPF. We know it's impossible 12962 # because TPF is a cross-compiler, and we know how we open DSOs. 12963 lt_cv_dlopen=dlopen 12964 lt_cv_dlopen_libs= 12965 lt_cv_dlopen_self=no 12966 ;; 12967 12968 *) 12969 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12970 if test "x$ac_cv_func_shl_load" = xyes 12971 then : 12972 lt_cv_dlopen=shl_load 12973 else $as_nop 12974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12975 printf %s "checking for shl_load in -ldld... " >&6; } 12976 if test ${ac_cv_lib_dld_shl_load+y} 12977 then : 12978 printf %s "(cached) " >&6 12979 else $as_nop 12980 ac_check_lib_save_LIBS=$LIBS 12981 LIBS="-ldld $LIBS" 12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983 /* end confdefs.h. */ 12984 12985 /* Override any GCC internal prototype to avoid an error. 12986 Use char because int might match the return type of a GCC 12987 builtin and then its argument prototype would still apply. */ 12988 char shl_load (); 12989 int 12990 main (void) 12991 { 12992 return shl_load (); 12993 ; 12994 return 0; 12995 } 12996 _ACEOF 12997 if ac_fn_c_try_link "$LINENO" 12998 then : 12999 ac_cv_lib_dld_shl_load=yes 13000 else $as_nop 13001 ac_cv_lib_dld_shl_load=no 13002 fi 13003 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13004 conftest$ac_exeext conftest.$ac_ext 13005 LIBS=$ac_check_lib_save_LIBS 13006 fi 13007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13008 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13009 if test "x$ac_cv_lib_dld_shl_load" = xyes 13010 then : 13011 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13012 else $as_nop 13013 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13014 if test "x$ac_cv_func_dlopen" = xyes 13015 then : 13016 lt_cv_dlopen=dlopen 13017 else $as_nop 13018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13019 printf %s "checking for dlopen in -ldl... " >&6; } 13020 if test ${ac_cv_lib_dl_dlopen+y} 13021 then : 13022 printf %s "(cached) " >&6 13023 else $as_nop 13024 ac_check_lib_save_LIBS=$LIBS 13025 LIBS="-ldl $LIBS" 13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13027 /* end confdefs.h. */ 13028 13029 /* Override any GCC internal prototype to avoid an error. 13030 Use char because int might match the return type of a GCC 13031 builtin and then its argument prototype would still apply. */ 13032 char dlopen (); 13033 int 13034 main (void) 13035 { 13036 return dlopen (); 13037 ; 13038 return 0; 13039 } 13040 _ACEOF 13041 if ac_fn_c_try_link "$LINENO" 13042 then : 13043 ac_cv_lib_dl_dlopen=yes 13044 else $as_nop 13045 ac_cv_lib_dl_dlopen=no 13046 fi 13047 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13048 conftest$ac_exeext conftest.$ac_ext 13049 LIBS=$ac_check_lib_save_LIBS 13050 fi 13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13052 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13053 if test "x$ac_cv_lib_dl_dlopen" = xyes 13054 then : 13055 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13056 else $as_nop 13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13058 printf %s "checking for dlopen in -lsvld... " >&6; } 13059 if test ${ac_cv_lib_svld_dlopen+y} 13060 then : 13061 printf %s "(cached) " >&6 13062 else $as_nop 13063 ac_check_lib_save_LIBS=$LIBS 13064 LIBS="-lsvld $LIBS" 13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13066 /* end confdefs.h. */ 13067 13068 /* Override any GCC internal prototype to avoid an error. 13069 Use char because int might match the return type of a GCC 13070 builtin and then its argument prototype would still apply. */ 13071 char dlopen (); 13072 int 13073 main (void) 13074 { 13075 return dlopen (); 13076 ; 13077 return 0; 13078 } 13079 _ACEOF 13080 if ac_fn_c_try_link "$LINENO" 13081 then : 13082 ac_cv_lib_svld_dlopen=yes 13083 else $as_nop 13084 ac_cv_lib_svld_dlopen=no 13085 fi 13086 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13087 conftest$ac_exeext conftest.$ac_ext 13088 LIBS=$ac_check_lib_save_LIBS 13089 fi 13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13091 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13092 if test "x$ac_cv_lib_svld_dlopen" = xyes 13093 then : 13094 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13095 else $as_nop 13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13097 printf %s "checking for dld_link in -ldld... " >&6; } 13098 if test ${ac_cv_lib_dld_dld_link+y} 13099 then : 13100 printf %s "(cached) " >&6 13101 else $as_nop 13102 ac_check_lib_save_LIBS=$LIBS 13103 LIBS="-ldld $LIBS" 13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13105 /* end confdefs.h. */ 13106 13107 /* Override any GCC internal prototype to avoid an error. 13108 Use char because int might match the return type of a GCC 13109 builtin and then its argument prototype would still apply. */ 13110 char dld_link (); 13111 int 13112 main (void) 13113 { 13114 return dld_link (); 13115 ; 13116 return 0; 13117 } 13118 _ACEOF 13119 if ac_fn_c_try_link "$LINENO" 13120 then : 13121 ac_cv_lib_dld_dld_link=yes 13122 else $as_nop 13123 ac_cv_lib_dld_dld_link=no 13124 fi 13125 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13126 conftest$ac_exeext conftest.$ac_ext 13127 LIBS=$ac_check_lib_save_LIBS 13128 fi 13129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13130 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13131 if test "x$ac_cv_lib_dld_dld_link" = xyes 13132 then : 13133 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13134 fi 13135 13136 13137 fi 13138 13139 13140 fi 13141 13142 13143 fi 13144 13145 13146 fi 13147 13148 13149 fi 13150 13151 ;; 13152 esac 13153 13154 if test no = "$lt_cv_dlopen"; then 13155 enable_dlopen=no 13156 else 13157 enable_dlopen=yes 13158 fi 13159 13160 case $lt_cv_dlopen in 13161 dlopen) 13162 save_CPPFLAGS=$CPPFLAGS 13163 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13164 13165 save_LDFLAGS=$LDFLAGS 13166 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13167 13168 save_LIBS=$LIBS 13169 LIBS="$lt_cv_dlopen_libs $LIBS" 13170 13171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13172 printf %s "checking whether a program can dlopen itself... " >&6; } 13173 if test ${lt_cv_dlopen_self+y} 13174 then : 13175 printf %s "(cached) " >&6 13176 else $as_nop 13177 if test yes = "$cross_compiling"; then : 13178 lt_cv_dlopen_self=cross 13179 else 13180 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13181 lt_status=$lt_dlunknown 13182 cat > conftest.$ac_ext <<_LT_EOF 13183 #line $LINENO "configure" 13184 #include "confdefs.h" 13185 13186 #if HAVE_DLFCN_H 13187 #include <dlfcn.h> 13188 #endif 13189 13190 #include <stdio.h> 13191 13192 #ifdef RTLD_GLOBAL 13193 # define LT_DLGLOBAL RTLD_GLOBAL 13194 #else 13195 # ifdef DL_GLOBAL 13196 # define LT_DLGLOBAL DL_GLOBAL 13197 # else 13198 # define LT_DLGLOBAL 0 13199 # endif 13200 #endif 13201 13202 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13203 find out it does not work in some platform. */ 13204 #ifndef LT_DLLAZY_OR_NOW 13205 # ifdef RTLD_LAZY 13206 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13207 # else 13208 # ifdef DL_LAZY 13209 # define LT_DLLAZY_OR_NOW DL_LAZY 13210 # else 13211 # ifdef RTLD_NOW 13212 # define LT_DLLAZY_OR_NOW RTLD_NOW 13213 # else 13214 # ifdef DL_NOW 13215 # define LT_DLLAZY_OR_NOW DL_NOW 13216 # else 13217 # define LT_DLLAZY_OR_NOW 0 13218 # endif 13219 # endif 13220 # endif 13221 # endif 13222 #endif 13223 13224 /* When -fvisibility=hidden is used, assume the code has been annotated 13225 correspondingly for the symbols needed. */ 13226 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13227 int fnord () __attribute__((visibility("default"))); 13228 #endif 13229 13230 int fnord () { return 42; } 13231 int main () 13232 { 13233 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13234 int status = $lt_dlunknown; 13235 13236 if (self) 13237 { 13238 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13239 else 13240 { 13241 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13242 else puts (dlerror ()); 13243 } 13244 /* dlclose (self); */ 13245 } 13246 else 13247 puts (dlerror ()); 13248 13249 return status; 13250 } 13251 _LT_EOF 13252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13253 (eval $ac_link) 2>&5 13254 ac_status=$? 13255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13256 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13257 (./conftest; exit; ) >&5 2>/dev/null 13258 lt_status=$? 13259 case x$lt_status in 13260 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13261 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13262 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13263 esac 13264 else : 13265 # compilation failed 13266 lt_cv_dlopen_self=no 13267 fi 13268 fi 13269 rm -fr conftest* 13270 13271 13272 fi 13273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13274 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13275 13276 if test yes = "$lt_cv_dlopen_self"; then 13277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13279 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13280 if test ${lt_cv_dlopen_self_static+y} 13281 then : 13282 printf %s "(cached) " >&6 13283 else $as_nop 13284 if test yes = "$cross_compiling"; then : 13285 lt_cv_dlopen_self_static=cross 13286 else 13287 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13288 lt_status=$lt_dlunknown 13289 cat > conftest.$ac_ext <<_LT_EOF 13290 #line $LINENO "configure" 13291 #include "confdefs.h" 13292 13293 #if HAVE_DLFCN_H 13294 #include <dlfcn.h> 13295 #endif 13296 13297 #include <stdio.h> 13298 13299 #ifdef RTLD_GLOBAL 13300 # define LT_DLGLOBAL RTLD_GLOBAL 13301 #else 13302 # ifdef DL_GLOBAL 13303 # define LT_DLGLOBAL DL_GLOBAL 13304 # else 13305 # define LT_DLGLOBAL 0 13306 # endif 13307 #endif 13308 13309 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13310 find out it does not work in some platform. */ 13311 #ifndef LT_DLLAZY_OR_NOW 13312 # ifdef RTLD_LAZY 13313 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13314 # else 13315 # ifdef DL_LAZY 13316 # define LT_DLLAZY_OR_NOW DL_LAZY 13317 # else 13318 # ifdef RTLD_NOW 13319 # define LT_DLLAZY_OR_NOW RTLD_NOW 13320 # else 13321 # ifdef DL_NOW 13322 # define LT_DLLAZY_OR_NOW DL_NOW 13323 # else 13324 # define LT_DLLAZY_OR_NOW 0 13325 # endif 13326 # endif 13327 # endif 13328 # endif 13329 #endif 13330 13331 /* When -fvisibility=hidden is used, assume the code has been annotated 13332 correspondingly for the symbols needed. */ 13333 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13334 int fnord () __attribute__((visibility("default"))); 13335 #endif 13336 13337 int fnord () { return 42; } 13338 int main () 13339 { 13340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13341 int status = $lt_dlunknown; 13342 13343 if (self) 13344 { 13345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13346 else 13347 { 13348 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13349 else puts (dlerror ()); 13350 } 13351 /* dlclose (self); */ 13352 } 13353 else 13354 puts (dlerror ()); 13355 13356 return status; 13357 } 13358 _LT_EOF 13359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13360 (eval $ac_link) 2>&5 13361 ac_status=$? 13362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13363 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13364 (./conftest; exit; ) >&5 2>/dev/null 13365 lt_status=$? 13366 case x$lt_status in 13367 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13368 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13369 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13370 esac 13371 else : 13372 # compilation failed 13373 lt_cv_dlopen_self_static=no 13374 fi 13375 fi 13376 rm -fr conftest* 13377 13378 13379 fi 13380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13381 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13382 fi 13383 13384 CPPFLAGS=$save_CPPFLAGS 13385 LDFLAGS=$save_LDFLAGS 13386 LIBS=$save_LIBS 13387 ;; 13388 esac 13389 13390 case $lt_cv_dlopen_self in 13391 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13392 *) enable_dlopen_self=unknown ;; 13393 esac 13394 13395 case $lt_cv_dlopen_self_static in 13396 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13397 *) enable_dlopen_self_static=unknown ;; 13398 esac 13399 fi 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 striplib= 13418 old_striplib= 13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13420 printf %s "checking whether stripping libraries is possible... " >&6; } 13421 if test -z "$STRIP"; then 13422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13423 printf "%s\n" "no" >&6; } 13424 else 13425 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13426 old_striplib="$STRIP --strip-debug" 13427 striplib="$STRIP --strip-unneeded" 13428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13429 printf "%s\n" "yes" >&6; } 13430 else 13431 case $host_os in 13432 darwin*) 13433 # FIXME - insert some real tests, host_os isn't really good enough 13434 striplib="$STRIP -x" 13435 old_striplib="$STRIP -S" 13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13437 printf "%s\n" "yes" >&6; } 13438 ;; 13439 freebsd*) 13440 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13441 old_striplib="$STRIP --strip-debug" 13442 striplib="$STRIP --strip-unneeded" 13443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13444 printf "%s\n" "yes" >&6; } 13445 else 13446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13447 printf "%s\n" "no" >&6; } 13448 fi 13449 ;; 13450 *) 13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13452 printf "%s\n" "no" >&6; } 13453 ;; 13454 esac 13455 fi 13456 fi 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 # Report what library types will actually be built 13470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13471 printf %s "checking if libtool supports shared libraries... " >&6; } 13472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13473 printf "%s\n" "$can_build_shared" >&6; } 13474 13475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13476 printf %s "checking whether to build shared libraries... " >&6; } 13477 test no = "$can_build_shared" && enable_shared=no 13478 13479 # On AIX, shared libraries and static libraries use the same namespace, and 13480 # are all built from PIC. 13481 case $host_os in 13482 aix3*) 13483 test yes = "$enable_shared" && enable_static=no 13484 if test -n "$RANLIB"; then 13485 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13486 postinstall_cmds='$RANLIB $lib' 13487 fi 13488 ;; 13489 13490 aix[4-9]*) 13491 if test ia64 != "$host_cpu"; then 13492 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13493 yes,aix,yes) ;; # shared object as lib.so file only 13494 yes,svr4,*) ;; # shared object as lib.so archive member only 13495 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13496 esac 13497 fi 13498 ;; 13499 esac 13500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13501 printf "%s\n" "$enable_shared" >&6; } 13502 13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13504 printf %s "checking whether to build static libraries... " >&6; } 13505 # Make sure either enable_shared or enable_static is yes. 13506 test yes = "$enable_shared" || enable_static=yes 13507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13508 printf "%s\n" "$enable_static" >&6; } 13509 13510 13511 13512 13513 fi 13514 ac_ext=c 13515 ac_cpp='$CPP $CPPFLAGS' 13516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13518 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13519 13520 CC=$lt_save_CC 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 ac_config_commands="$ac_config_commands libtool" 13537 13538 13539 13540 13541 # Only expand once: 13542 13543 13544 # Check whether --enable-silent-rules was given. 13545 if test ${enable_silent_rules+y} 13546 then : 13547 enableval=$enable_silent_rules; 13548 fi 13549 13550 case $enable_silent_rules in # ((( 13551 yes) AM_DEFAULT_VERBOSITY=0;; 13552 no) AM_DEFAULT_VERBOSITY=1;; 13553 *) AM_DEFAULT_VERBOSITY=0;; 13554 esac 13555 am_make=${MAKE-make} 13556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 13557 printf %s "checking whether $am_make supports nested variables... " >&6; } 13558 if test ${am_cv_make_support_nested_variables+y} 13559 then : 13560 printf %s "(cached) " >&6 13561 else $as_nop 13562 if printf "%s\n" 'TRUE=$(BAR$(V)) 13563 BAR0=false 13564 BAR1=true 13565 V=1 13566 am__doit: 13567 @$(TRUE) 13568 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 13569 am_cv_make_support_nested_variables=yes 13570 else 13571 am_cv_make_support_nested_variables=no 13572 fi 13573 fi 13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 13575 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 13576 if test $am_cv_make_support_nested_variables = yes; then 13577 AM_V='$(V)' 13578 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 13579 else 13580 AM_V=$AM_DEFAULT_VERBOSITY 13581 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 13582 fi 13583 AM_BACKSLASH='\' 13584 13585 13586 ac_ext=c 13587 ac_cpp='$CPP $CPPFLAGS' 13588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13590 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 13592 printf %s "checking how to run the C preprocessor... " >&6; } 13593 # On Suns, sometimes $CPP names a directory. 13594 if test -n "$CPP" && test -d "$CPP"; then 13595 CPP= 13596 fi 13597 if test -z "$CPP"; then 13598 if test ${ac_cv_prog_CPP+y} 13599 then : 13600 printf %s "(cached) " >&6 13601 else $as_nop 13602 # Double quotes because $CC needs to be expanded 13603 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 13604 do 13605 ac_preproc_ok=false 13606 for ac_c_preproc_warn_flag in '' yes 13607 do 13608 # Use a header file that comes with gcc, so configuring glibc 13609 # with a fresh cross-compiler works. 13610 # On the NeXT, cc -E runs the code through the compiler's parser, 13611 # not just through cpp. "Syntax error" is here to catch this case. 13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13613 /* end confdefs.h. */ 13614 #include <limits.h> 13615 Syntax error 13616 _ACEOF 13617 if ac_fn_c_try_cpp "$LINENO" 13618 then : 13619 13620 else $as_nop 13621 # Broken: fails on valid input. 13622 continue 13623 fi 13624 rm -f conftest.err conftest.i conftest.$ac_ext 13625 13626 # OK, works on sane cases. Now check whether nonexistent headers 13627 # can be detected and how. 13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13629 /* end confdefs.h. */ 13630 #include <ac_nonexistent.h> 13631 _ACEOF 13632 if ac_fn_c_try_cpp "$LINENO" 13633 then : 13634 # Broken: success on invalid input. 13635 continue 13636 else $as_nop 13637 # Passes both tests. 13638 ac_preproc_ok=: 13639 break 13640 fi 13641 rm -f conftest.err conftest.i conftest.$ac_ext 13642 13643 done 13644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13645 rm -f conftest.i conftest.err conftest.$ac_ext 13646 if $ac_preproc_ok 13647 then : 13648 break 13649 fi 13650 13651 done 13652 ac_cv_prog_CPP=$CPP 13653 13654 fi 13655 CPP=$ac_cv_prog_CPP 13656 else 13657 ac_cv_prog_CPP=$CPP 13658 fi 13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 13660 printf "%s\n" "$CPP" >&6; } 13661 ac_preproc_ok=false 13662 for ac_c_preproc_warn_flag in '' yes 13663 do 13664 # Use a header file that comes with gcc, so configuring glibc 13665 # with a fresh cross-compiler works. 13666 # On the NeXT, cc -E runs the code through the compiler's parser, 13667 # not just through cpp. "Syntax error" is here to catch this case. 13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13669 /* end confdefs.h. */ 13670 #include <limits.h> 13671 Syntax error 13672 _ACEOF 13673 if ac_fn_c_try_cpp "$LINENO" 13674 then : 13675 13676 else $as_nop 13677 # Broken: fails on valid input. 13678 continue 13679 fi 13680 rm -f conftest.err conftest.i conftest.$ac_ext 13681 13682 # OK, works on sane cases. Now check whether nonexistent headers 13683 # can be detected and how. 13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13685 /* end confdefs.h. */ 13686 #include <ac_nonexistent.h> 13687 _ACEOF 13688 if ac_fn_c_try_cpp "$LINENO" 13689 then : 13690 # Broken: success on invalid input. 13691 continue 13692 else $as_nop 13693 # Passes both tests. 13694 ac_preproc_ok=: 13695 break 13696 fi 13697 rm -f conftest.err conftest.i conftest.$ac_ext 13698 13699 done 13700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13701 rm -f conftest.i conftest.err conftest.$ac_ext 13702 if $ac_preproc_ok 13703 then : 13704 13705 else $as_nop 13706 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13707 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13708 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 13709 See \`config.log' for more details" "$LINENO" 5; } 13710 fi 13711 13712 ac_ext=c 13713 ac_cpp='$CPP $CPPFLAGS' 13714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13716 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13717 13718 13719 13720 13721 13722 13723 ac_ext=c 13724 ac_cpp='$CPP $CPPFLAGS' 13725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13727 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13728 13729 ax_pthread_ok=no 13730 13731 # We used to check for pthread.h first, but this fails if pthread.h 13732 # requires special compiler flags (e.g. on Tru64 or Sequent). 13733 # It gets checked for in the link test anyway. 13734 13735 # First of all, check if the user has set any of the PTHREAD_LIBS, 13736 # etcetera environment variables, and if threads linking works using 13737 # them: 13738 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 13739 ax_pthread_save_CC="$CC" 13740 ax_pthread_save_CFLAGS="$CFLAGS" 13741 ax_pthread_save_LIBS="$LIBS" 13742 if test "x$PTHREAD_CC" != "x" 13743 then : 13744 CC="$PTHREAD_CC" 13745 fi 13746 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13747 LIBS="$PTHREAD_LIBS $LIBS" 13748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 13749 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13751 /* end confdefs.h. */ 13752 13753 /* Override any GCC internal prototype to avoid an error. 13754 Use char because int might match the return type of a GCC 13755 builtin and then its argument prototype would still apply. */ 13756 char pthread_join (); 13757 int 13758 main (void) 13759 { 13760 return pthread_join (); 13761 ; 13762 return 0; 13763 } 13764 _ACEOF 13765 if ac_fn_c_try_link "$LINENO" 13766 then : 13767 ax_pthread_ok=yes 13768 fi 13769 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13770 conftest$ac_exeext conftest.$ac_ext 13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 13772 printf "%s\n" "$ax_pthread_ok" >&6; } 13773 if test "x$ax_pthread_ok" = "xno"; then 13774 PTHREAD_LIBS="" 13775 PTHREAD_CFLAGS="" 13776 fi 13777 CC="$ax_pthread_save_CC" 13778 CFLAGS="$ax_pthread_save_CFLAGS" 13779 LIBS="$ax_pthread_save_LIBS" 13780 fi 13781 13782 # We must check for the threads library under a number of different 13783 # names; the ordering is very important because some systems 13784 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 13785 # libraries is broken (non-POSIX). 13786 13787 # Create a list of thread flags to try. Items starting with a "-" are 13788 # C compiler flags, and other items are library names, except for "none" 13789 # which indicates that we try without any flags at all, and "pthread-config" 13790 # which is a program returning the flags for the Pth emulation library. 13791 13792 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 13793 13794 # The ordering *is* (sometimes) important. Some notes on the 13795 # individual items follow: 13796 13797 # pthreads: AIX (must check this before -lpthread) 13798 # none: in case threads are in libc; should be tried before -Kthread and 13799 # other compiler flags to prevent continual compiler warnings 13800 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 13801 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 13802 # (Note: HP C rejects this with "bad form for `-t' option") 13803 # -pthreads: Solaris/gcc (Note: HP C also rejects) 13804 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 13805 # doesn't hurt to check since this sometimes defines pthreads and 13806 # -D_REENTRANT too), HP C (must be checked before -lpthread, which 13807 # is present but should not be used directly; and before -mthreads, 13808 # because the compiler interprets this as "-mt" + "-hreads") 13809 # -mthreads: Mingw32/gcc, Lynx/gcc 13810 # pthread: Linux, etcetera 13811 # --thread-safe: KAI C++ 13812 # pthread-config: use pthread-config program (for GNU Pth library) 13813 13814 case $host_os in 13815 13816 freebsd*) 13817 13818 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 13819 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 13820 13821 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 13822 ;; 13823 13824 hpux*) 13825 13826 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 13827 # multi-threading and also sets -lpthread." 13828 13829 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 13830 ;; 13831 13832 openedition*) 13833 13834 # IBM z/OS requires a feature-test macro to be defined in order to 13835 # enable POSIX threads at all, so give the user a hint if this is 13836 # not set. (We don't define these ourselves, as they can affect 13837 # other portions of the system API in unpredictable ways.) 13838 13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13840 /* end confdefs.h. */ 13841 13842 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 13843 AX_PTHREAD_ZOS_MISSING 13844 # endif 13845 13846 _ACEOF 13847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13848 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 13849 then : 13850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 13851 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 13852 fi 13853 rm -rf conftest* 13854 13855 ;; 13856 13857 solaris*) 13858 13859 # On Solaris (at least, for some versions), libc contains stubbed 13860 # (non-functional) versions of the pthreads routines, so link-based 13861 # tests will erroneously succeed. (N.B.: The stubs are missing 13862 # pthread_cleanup_push, or rather a function called by this macro, 13863 # so we could check for that, but who knows whether they'll stub 13864 # that too in a future libc.) So we'll check first for the 13865 # standard Solaris way of linking pthreads (-mt -lpthread). 13866 13867 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 13868 ;; 13869 esac 13870 13871 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 13872 13873 if test "x$GCC" = "xyes" 13874 then : 13875 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 13876 fi 13877 13878 # The presence of a feature test macro requesting re-entrant function 13879 # definitions is, on some systems, a strong hint that pthreads support is 13880 # correctly enabled 13881 13882 case $host_os in 13883 darwin* | hpux* | linux* | osf* | solaris*) 13884 ax_pthread_check_macro="_REENTRANT" 13885 ;; 13886 13887 aix*) 13888 ax_pthread_check_macro="_THREAD_SAFE" 13889 ;; 13890 13891 *) 13892 ax_pthread_check_macro="--" 13893 ;; 13894 esac 13895 if test "x$ax_pthread_check_macro" = "x--" 13896 then : 13897 ax_pthread_check_cond=0 13898 else $as_nop 13899 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 13900 fi 13901 13902 # Are we compiling with Clang? 13903 13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 13905 printf %s "checking whether $CC is Clang... " >&6; } 13906 if test ${ax_cv_PTHREAD_CLANG+y} 13907 then : 13908 printf %s "(cached) " >&6 13909 else $as_nop 13910 ax_cv_PTHREAD_CLANG=no 13911 # Note that Autoconf sets GCC=yes for Clang as well as GCC 13912 if test "x$GCC" = "xyes"; then 13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13914 /* end confdefs.h. */ 13915 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 13916 # if defined(__clang__) && defined(__llvm__) 13917 AX_PTHREAD_CC_IS_CLANG 13918 # endif 13919 13920 _ACEOF 13921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13922 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 13923 then : 13924 ax_cv_PTHREAD_CLANG=yes 13925 fi 13926 rm -rf conftest* 13927 13928 fi 13929 13930 fi 13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 13932 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } 13933 ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 13934 13935 ax_pthread_clang_warning=no 13936 13937 # Clang needs special handling, because older versions handle the -pthread 13938 # option in a rather... idiosyncratic way 13939 13940 if test "x$ax_pthread_clang" = "xyes"; then 13941 13942 # Clang takes -pthread; it has never supported any other flag 13943 13944 # (Note 1: This will need to be revisited if a system that Clang 13945 # supports has POSIX threads in a separate library. This tends not 13946 # to be the way of modern systems, but it's conceivable.) 13947 13948 # (Note 2: On some systems, notably Darwin, -pthread is not needed 13949 # to get POSIX threads support; the API is always present and 13950 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 13951 # -pthread does define _REENTRANT, and while the Darwin headers 13952 # ignore this macro, third-party headers might not.) 13953 13954 PTHREAD_CFLAGS="-pthread" 13955 PTHREAD_LIBS= 13956 13957 ax_pthread_ok=yes 13958 13959 # However, older versions of Clang make a point of warning the user 13960 # that, in an invocation where only linking and no compilation is 13961 # taking place, the -pthread option has no effect ("argument unused 13962 # during compilation"). They expect -pthread to be passed in only 13963 # when source code is being compiled. 13964 # 13965 # Problem is, this is at odds with the way Automake and most other 13966 # C build frameworks function, which is that the same flags used in 13967 # compilation (CFLAGS) are also used in linking. Many systems 13968 # supported by AX_PTHREAD require exactly this for POSIX threads 13969 # support, and in fact it is often not straightforward to specify a 13970 # flag that is used only in the compilation phase and not in 13971 # linking. Such a scenario is extremely rare in practice. 13972 # 13973 # Even though use of the -pthread flag in linking would only print 13974 # a warning, this can be a nuisance for well-run software projects 13975 # that build with -Werror. So if the active version of Clang has 13976 # this misfeature, we search for an option to squash it. 13977 13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 13979 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 13980 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} 13981 then : 13982 printf %s "(cached) " >&6 13983 else $as_nop 13984 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 13985 # Create an alternate version of $ac_link that compiles and 13986 # links in two steps (.c -> .o, .o -> exe) instead of one 13987 # (.c -> exe), because the warning occurs only in the second 13988 # step 13989 ax_pthread_save_ac_link="$ac_link" 13990 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 13991 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 13992 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 13993 ax_pthread_save_CFLAGS="$CFLAGS" 13994 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 13995 if test "x$ax_pthread_try" = "xunknown" 13996 then : 13997 break 13998 fi 13999 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 14000 ac_link="$ax_pthread_save_ac_link" 14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14002 /* end confdefs.h. */ 14003 int main(void){return 0;} 14004 _ACEOF 14005 if ac_fn_c_try_link "$LINENO" 14006 then : 14007 ac_link="$ax_pthread_2step_ac_link" 14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14009 /* end confdefs.h. */ 14010 int main(void){return 0;} 14011 _ACEOF 14012 if ac_fn_c_try_link "$LINENO" 14013 then : 14014 break 14015 fi 14016 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14017 conftest$ac_exeext conftest.$ac_ext 14018 14019 fi 14020 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14021 conftest$ac_exeext conftest.$ac_ext 14022 done 14023 ac_link="$ax_pthread_save_ac_link" 14024 CFLAGS="$ax_pthread_save_CFLAGS" 14025 if test "x$ax_pthread_try" = "x" 14026 then : 14027 ax_pthread_try=no 14028 fi 14029 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 14030 14031 fi 14032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 14033 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 14034 14035 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 14036 no | unknown) ;; 14037 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 14038 esac 14039 14040 fi # $ax_pthread_clang = yes 14041 14042 if test "x$ax_pthread_ok" = "xno"; then 14043 for ax_pthread_try_flag in $ax_pthread_flags; do 14044 14045 case $ax_pthread_try_flag in 14046 none) 14047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 14048 printf %s "checking whether pthreads work without any flags... " >&6; } 14049 ;; 14050 14051 -mt,pthread) 14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 14053 printf %s "checking whether pthreads work with -mt -lpthread... " >&6; } 14054 PTHREAD_CFLAGS="-mt" 14055 PTHREAD_LIBS="-lpthread" 14056 ;; 14057 14058 -*) 14059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 14060 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 14061 PTHREAD_CFLAGS="$ax_pthread_try_flag" 14062 ;; 14063 14064 pthread-config) 14065 # Extract the first word of "pthread-config", so it can be a program name with args. 14066 set dummy pthread-config; ac_word=$2 14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14068 printf %s "checking for $ac_word... " >&6; } 14069 if test ${ac_cv_prog_ax_pthread_config+y} 14070 then : 14071 printf %s "(cached) " >&6 14072 else $as_nop 14073 if test -n "$ax_pthread_config"; then 14074 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 14075 else 14076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14077 for as_dir in $PATH 14078 do 14079 IFS=$as_save_IFS 14080 case $as_dir in #((( 14081 '') as_dir=./ ;; 14082 */) ;; 14083 *) as_dir=$as_dir/ ;; 14084 esac 14085 for ac_exec_ext in '' $ac_executable_extensions; do 14086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14087 ac_cv_prog_ax_pthread_config="yes" 14088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14089 break 2 14090 fi 14091 done 14092 done 14093 IFS=$as_save_IFS 14094 14095 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 14096 fi 14097 fi 14098 ax_pthread_config=$ac_cv_prog_ax_pthread_config 14099 if test -n "$ax_pthread_config"; then 14100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 14101 printf "%s\n" "$ax_pthread_config" >&6; } 14102 else 14103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14104 printf "%s\n" "no" >&6; } 14105 fi 14106 14107 14108 if test "x$ax_pthread_config" = "xno" 14109 then : 14110 continue 14111 fi 14112 PTHREAD_CFLAGS="`pthread-config --cflags`" 14113 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 14114 ;; 14115 14116 *) 14117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 14118 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 14119 PTHREAD_LIBS="-l$ax_pthread_try_flag" 14120 ;; 14121 esac 14122 14123 ax_pthread_save_CFLAGS="$CFLAGS" 14124 ax_pthread_save_LIBS="$LIBS" 14125 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14126 LIBS="$PTHREAD_LIBS $LIBS" 14127 14128 # Check for various functions. We must include pthread.h, 14129 # since some functions may be macros. (On the Sequent, we 14130 # need a special flag -Kthread to make this header compile.) 14131 # We check for pthread_join because it is in -lpthread on IRIX 14132 # while pthread_create is in libc. We check for pthread_attr_init 14133 # due to DEC craziness with -lpthreads. We check for 14134 # pthread_cleanup_push because it is one of the few pthread 14135 # functions on Solaris that doesn't have a non-functional libc stub. 14136 # We try pthread_create on general principles. 14137 14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14139 /* end confdefs.h. */ 14140 #include <pthread.h> 14141 # if $ax_pthread_check_cond 14142 # error "$ax_pthread_check_macro must be defined" 14143 # endif 14144 static void routine(void *a) { a = 0; } 14145 static void *start_routine(void *a) { return a; } 14146 int 14147 main (void) 14148 { 14149 pthread_t th; pthread_attr_t attr; 14150 pthread_create(&th, 0, start_routine, 0); 14151 pthread_join(th, 0); 14152 pthread_attr_init(&attr); 14153 pthread_cleanup_push(routine, 0); 14154 pthread_cleanup_pop(0) /* ; */ 14155 ; 14156 return 0; 14157 } 14158 _ACEOF 14159 if ac_fn_c_try_link "$LINENO" 14160 then : 14161 ax_pthread_ok=yes 14162 fi 14163 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14164 conftest$ac_exeext conftest.$ac_ext 14165 14166 CFLAGS="$ax_pthread_save_CFLAGS" 14167 LIBS="$ax_pthread_save_LIBS" 14168 14169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 14170 printf "%s\n" "$ax_pthread_ok" >&6; } 14171 if test "x$ax_pthread_ok" = "xyes" 14172 then : 14173 break 14174 fi 14175 14176 PTHREAD_LIBS="" 14177 PTHREAD_CFLAGS="" 14178 done 14179 fi 14180 14181 # Various other checks: 14182 if test "x$ax_pthread_ok" = "xyes"; then 14183 ax_pthread_save_CFLAGS="$CFLAGS" 14184 ax_pthread_save_LIBS="$LIBS" 14185 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14186 LIBS="$PTHREAD_LIBS $LIBS" 14187 14188 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 14190 printf %s "checking for joinable pthread attribute... " >&6; } 14191 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} 14192 then : 14193 printf %s "(cached) " >&6 14194 else $as_nop 14195 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 14196 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14198 /* end confdefs.h. */ 14199 #include <pthread.h> 14200 int 14201 main (void) 14202 { 14203 int attr = $ax_pthread_attr; return attr /* ; */ 14204 ; 14205 return 0; 14206 } 14207 _ACEOF 14208 if ac_fn_c_try_link "$LINENO" 14209 then : 14210 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 14211 fi 14212 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14213 conftest$ac_exeext conftest.$ac_ext 14214 done 14215 14216 fi 14217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 14218 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 14219 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 14220 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 14221 test "x$ax_pthread_joinable_attr_defined" != "xyes" 14222 then : 14223 14224 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h 14225 14226 ax_pthread_joinable_attr_defined=yes 14227 14228 fi 14229 14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 14231 printf %s "checking whether more special flags are required for pthreads... " >&6; } 14232 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} 14233 then : 14234 printf %s "(cached) " >&6 14235 else $as_nop 14236 ax_cv_PTHREAD_SPECIAL_FLAGS=no 14237 case $host_os in 14238 solaris*) 14239 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 14240 ;; 14241 esac 14242 14243 fi 14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 14245 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 14246 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 14247 test "x$ax_pthread_special_flags_added" != "xyes" 14248 then : 14249 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 14250 ax_pthread_special_flags_added=yes 14251 fi 14252 14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 14254 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 14255 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 14256 then : 14257 printf %s "(cached) " >&6 14258 else $as_nop 14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14260 /* end confdefs.h. */ 14261 #include <pthread.h> 14262 int 14263 main (void) 14264 { 14265 int i = PTHREAD_PRIO_INHERIT; 14266 ; 14267 return 0; 14268 } 14269 _ACEOF 14270 if ac_fn_c_try_link "$LINENO" 14271 then : 14272 ax_cv_PTHREAD_PRIO_INHERIT=yes 14273 else $as_nop 14274 ax_cv_PTHREAD_PRIO_INHERIT=no 14275 fi 14276 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14277 conftest$ac_exeext conftest.$ac_ext 14278 14279 fi 14280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 14281 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 14282 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 14283 test "x$ax_pthread_prio_inherit_defined" != "xyes" 14284 then : 14285 14286 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 14287 14288 ax_pthread_prio_inherit_defined=yes 14289 14290 fi 14291 14292 CFLAGS="$ax_pthread_save_CFLAGS" 14293 LIBS="$ax_pthread_save_LIBS" 14294 14295 # More AIX lossage: compile with *_r variant 14296 if test "x$GCC" != "xyes"; then 14297 case $host_os in 14298 aix*) 14299 case "x/$CC" in 14300 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) #handle absolute path differently from PATH based program lookup 14301 case "x$CC" in 14302 x/*) if as_fn_executable_p ${CC}_r 14303 then : 14304 PTHREAD_CC="${CC}_r" 14305 fi ;; 14306 *) for ac_prog in ${CC}_r 14307 do 14308 # Extract the first word of "$ac_prog", so it can be a program name with args. 14309 set dummy $ac_prog; ac_word=$2 14310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14311 printf %s "checking for $ac_word... " >&6; } 14312 if test ${ac_cv_prog_PTHREAD_CC+y} 14313 then : 14314 printf %s "(cached) " >&6 14315 else $as_nop 14316 if test -n "$PTHREAD_CC"; then 14317 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 14318 else 14319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14320 for as_dir in $PATH 14321 do 14322 IFS=$as_save_IFS 14323 case $as_dir in #((( 14324 '') as_dir=./ ;; 14325 */) ;; 14326 *) as_dir=$as_dir/ ;; 14327 esac 14328 for ac_exec_ext in '' $ac_executable_extensions; do 14329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14330 ac_cv_prog_PTHREAD_CC="$ac_prog" 14331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14332 break 2 14333 fi 14334 done 14335 done 14336 IFS=$as_save_IFS 14337 14338 fi 14339 fi 14340 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 14341 if test -n "$PTHREAD_CC"; then 14342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 14343 printf "%s\n" "$PTHREAD_CC" >&6; } 14344 else 14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14346 printf "%s\n" "no" >&6; } 14347 fi 14348 14349 14350 test -n "$PTHREAD_CC" && break 14351 done 14352 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 14353 ;; 14354 esac ;; 14355 esac 14356 ;; 14357 esac 14358 fi 14359 fi 14360 14361 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 14362 14363 14364 14365 14366 14367 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 14368 if test "x$ax_pthread_ok" = "xyes"; then 14369 14370 LIBS="$LIBS $PTHREAD_LIBS" 14371 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14372 14373 : 14374 else 14375 ax_pthread_ok=no 14376 14377 fi 14378 ac_ext=c 14379 ac_cpp='$CPP $CPPFLAGS' 14380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14382 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14383 14384 14385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 14386 printf %s "checking for library containing dlopen... " >&6; } 14387 if test ${ac_cv_search_dlopen+y} 14388 then : 14389 printf %s "(cached) " >&6 14390 else $as_nop 14391 ac_func_search_save_LIBS=$LIBS 14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14393 /* end confdefs.h. */ 14394 14395 /* Override any GCC internal prototype to avoid an error. 14396 Use char because int might match the return type of a GCC 14397 builtin and then its argument prototype would still apply. */ 14398 char dlopen (); 14399 int 14400 main (void) 14401 { 14402 return dlopen (); 14403 ; 14404 return 0; 14405 } 14406 _ACEOF 14407 for ac_lib in '' dl 14408 do 14409 if test -z "$ac_lib"; then 14410 ac_res="none required" 14411 else 14412 ac_res=-l$ac_lib 14413 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14414 fi 14415 if ac_fn_c_try_link "$LINENO" 14416 then : 14417 ac_cv_search_dlopen=$ac_res 14418 fi 14419 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14420 conftest$ac_exeext 14421 if test ${ac_cv_search_dlopen+y} 14422 then : 14423 break 14424 fi 14425 done 14426 if test ${ac_cv_search_dlopen+y} 14427 then : 14428 14429 else $as_nop 14430 ac_cv_search_dlopen=no 14431 fi 14432 rm conftest.$ac_ext 14433 LIBS=$ac_func_search_save_LIBS 14434 fi 14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 14436 printf "%s\n" "$ac_cv_search_dlopen" >&6; } 14437 ac_res=$ac_cv_search_dlopen 14438 if test "$ac_res" != no 14439 then : 14440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14441 14442 fi 14443 14444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_lookup" >&5 14445 printf %s "checking for library containing kstat_lookup... " >&6; } 14446 if test ${ac_cv_search_kstat_lookup+y} 14447 then : 14448 printf %s "(cached) " >&6 14449 else $as_nop 14450 ac_func_search_save_LIBS=$LIBS 14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14452 /* end confdefs.h. */ 14453 14454 /* Override any GCC internal prototype to avoid an error. 14455 Use char because int might match the return type of a GCC 14456 builtin and then its argument prototype would still apply. */ 14457 char kstat_lookup (); 14458 int 14459 main (void) 14460 { 14461 return kstat_lookup (); 14462 ; 14463 return 0; 14464 } 14465 _ACEOF 14466 for ac_lib in '' kstat 14467 do 14468 if test -z "$ac_lib"; then 14469 ac_res="none required" 14470 else 14471 ac_res=-l$ac_lib 14472 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14473 fi 14474 if ac_fn_c_try_link "$LINENO" 14475 then : 14476 ac_cv_search_kstat_lookup=$ac_res 14477 fi 14478 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14479 conftest$ac_exeext 14480 if test ${ac_cv_search_kstat_lookup+y} 14481 then : 14482 break 14483 fi 14484 done 14485 if test ${ac_cv_search_kstat_lookup+y} 14486 then : 14487 14488 else $as_nop 14489 ac_cv_search_kstat_lookup=no 14490 fi 14491 rm conftest.$ac_ext 14492 LIBS=$ac_func_search_save_LIBS 14493 fi 14494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_lookup" >&5 14495 printf "%s\n" "$ac_cv_search_kstat_lookup" >&6; } 14496 ac_res=$ac_cv_search_kstat_lookup 14497 if test "$ac_res" != no 14498 then : 14499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14500 14501 fi 14502 14503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 14504 printf %s "checking for library containing gethostbyname... " >&6; } 14505 if test ${ac_cv_search_gethostbyname+y} 14506 then : 14507 printf %s "(cached) " >&6 14508 else $as_nop 14509 ac_func_search_save_LIBS=$LIBS 14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14511 /* end confdefs.h. */ 14512 14513 /* Override any GCC internal prototype to avoid an error. 14514 Use char because int might match the return type of a GCC 14515 builtin and then its argument prototype would still apply. */ 14516 char gethostbyname (); 14517 int 14518 main (void) 14519 { 14520 return gethostbyname (); 14521 ; 14522 return 0; 14523 } 14524 _ACEOF 14525 for ac_lib in '' nsl 14526 do 14527 if test -z "$ac_lib"; then 14528 ac_res="none required" 14529 else 14530 ac_res=-l$ac_lib 14531 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14532 fi 14533 if ac_fn_c_try_link "$LINENO" 14534 then : 14535 ac_cv_search_gethostbyname=$ac_res 14536 fi 14537 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14538 conftest$ac_exeext 14539 if test ${ac_cv_search_gethostbyname+y} 14540 then : 14541 break 14542 fi 14543 done 14544 if test ${ac_cv_search_gethostbyname+y} 14545 then : 14546 14547 else $as_nop 14548 ac_cv_search_gethostbyname=no 14549 fi 14550 rm conftest.$ac_ext 14551 LIBS=$ac_func_search_save_LIBS 14552 fi 14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 14554 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 14555 ac_res=$ac_cv_search_gethostbyname 14556 if test "$ac_res" != no 14557 then : 14558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14559 14560 fi 14561 14562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing perfstat_cpu" >&5 14563 printf %s "checking for library containing perfstat_cpu... " >&6; } 14564 if test ${ac_cv_search_perfstat_cpu+y} 14565 then : 14566 printf %s "(cached) " >&6 14567 else $as_nop 14568 ac_func_search_save_LIBS=$LIBS 14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14570 /* end confdefs.h. */ 14571 14572 /* Override any GCC internal prototype to avoid an error. 14573 Use char because int might match the return type of a GCC 14574 builtin and then its argument prototype would still apply. */ 14575 char perfstat_cpu (); 14576 int 14577 main (void) 14578 { 14579 return perfstat_cpu (); 14580 ; 14581 return 0; 14582 } 14583 _ACEOF 14584 for ac_lib in '' perfstat 14585 do 14586 if test -z "$ac_lib"; then 14587 ac_res="none required" 14588 else 14589 ac_res=-l$ac_lib 14590 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14591 fi 14592 if ac_fn_c_try_link "$LINENO" 14593 then : 14594 ac_cv_search_perfstat_cpu=$ac_res 14595 fi 14596 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14597 conftest$ac_exeext 14598 if test ${ac_cv_search_perfstat_cpu+y} 14599 then : 14600 break 14601 fi 14602 done 14603 if test ${ac_cv_search_perfstat_cpu+y} 14604 then : 14605 14606 else $as_nop 14607 ac_cv_search_perfstat_cpu=no 14608 fi 14609 rm conftest.$ac_ext 14610 LIBS=$ac_func_search_save_LIBS 14611 fi 14612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_perfstat_cpu" >&5 14613 printf "%s\n" "$ac_cv_search_perfstat_cpu" >&6; } 14614 ac_res=$ac_cv_search_perfstat_cpu 14615 if test "$ac_res" != no 14616 then : 14617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14618 14619 fi 14620 14621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 14622 printf %s "checking for library containing clock_gettime... " >&6; } 14623 if test ${ac_cv_search_clock_gettime+y} 14624 then : 14625 printf %s "(cached) " >&6 14626 else $as_nop 14627 ac_func_search_save_LIBS=$LIBS 14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14629 /* end confdefs.h. */ 14630 14631 /* Override any GCC internal prototype to avoid an error. 14632 Use char because int might match the return type of a GCC 14633 builtin and then its argument prototype would still apply. */ 14634 char clock_gettime (); 14635 int 14636 main (void) 14637 { 14638 return clock_gettime (); 14639 ; 14640 return 0; 14641 } 14642 _ACEOF 14643 for ac_lib in '' rt 14644 do 14645 if test -z "$ac_lib"; then 14646 ac_res="none required" 14647 else 14648 ac_res=-l$ac_lib 14649 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14650 fi 14651 if ac_fn_c_try_link "$LINENO" 14652 then : 14653 ac_cv_search_clock_gettime=$ac_res 14654 fi 14655 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14656 conftest$ac_exeext 14657 if test ${ac_cv_search_clock_gettime+y} 14658 then : 14659 break 14660 fi 14661 done 14662 if test ${ac_cv_search_clock_gettime+y} 14663 then : 14664 14665 else $as_nop 14666 ac_cv_search_clock_gettime=no 14667 fi 14668 rm conftest.$ac_ext 14669 LIBS=$ac_func_search_save_LIBS 14670 fi 14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 14672 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 14673 ac_res=$ac_cv_search_clock_gettime 14674 if test "$ac_res" != no 14675 then : 14676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14677 14678 fi 14679 14680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5 14681 printf %s "checking for library containing sendfile... " >&6; } 14682 if test ${ac_cv_search_sendfile+y} 14683 then : 14684 printf %s "(cached) " >&6 14685 else $as_nop 14686 ac_func_search_save_LIBS=$LIBS 14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14688 /* end confdefs.h. */ 14689 14690 /* Override any GCC internal prototype to avoid an error. 14691 Use char because int might match the return type of a GCC 14692 builtin and then its argument prototype would still apply. */ 14693 char sendfile (); 14694 int 14695 main (void) 14696 { 14697 return sendfile (); 14698 ; 14699 return 0; 14700 } 14701 _ACEOF 14702 for ac_lib in '' sendfile 14703 do 14704 if test -z "$ac_lib"; then 14705 ac_res="none required" 14706 else 14707 ac_res=-l$ac_lib 14708 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14709 fi 14710 if ac_fn_c_try_link "$LINENO" 14711 then : 14712 ac_cv_search_sendfile=$ac_res 14713 fi 14714 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14715 conftest$ac_exeext 14716 if test ${ac_cv_search_sendfile+y} 14717 then : 14718 break 14719 fi 14720 done 14721 if test ${ac_cv_search_sendfile+y} 14722 then : 14723 14724 else $as_nop 14725 ac_cv_search_sendfile=no 14726 fi 14727 rm conftest.$ac_ext 14728 LIBS=$ac_func_search_save_LIBS 14729 fi 14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5 14731 printf "%s\n" "$ac_cv_search_sendfile" >&6; } 14732 ac_res=$ac_cv_search_sendfile 14733 if test "$ac_res" != no 14734 then : 14735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14736 14737 fi 14738 14739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 14740 printf %s "checking for library containing socket... " >&6; } 14741 if test ${ac_cv_search_socket+y} 14742 then : 14743 printf %s "(cached) " >&6 14744 else $as_nop 14745 ac_func_search_save_LIBS=$LIBS 14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14747 /* end confdefs.h. */ 14748 14749 /* Override any GCC internal prototype to avoid an error. 14750 Use char because int might match the return type of a GCC 14751 builtin and then its argument prototype would still apply. */ 14752 char socket (); 14753 int 14754 main (void) 14755 { 14756 return socket (); 14757 ; 14758 return 0; 14759 } 14760 _ACEOF 14761 for ac_lib in '' socket 14762 do 14763 if test -z "$ac_lib"; then 14764 ac_res="none required" 14765 else 14766 ac_res=-l$ac_lib 14767 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14768 fi 14769 if ac_fn_c_try_link "$LINENO" 14770 then : 14771 ac_cv_search_socket=$ac_res 14772 fi 14773 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14774 conftest$ac_exeext 14775 if test ${ac_cv_search_socket+y} 14776 then : 14777 break 14778 fi 14779 done 14780 if test ${ac_cv_search_socket+y} 14781 then : 14782 14783 else $as_nop 14784 ac_cv_search_socket=no 14785 fi 14786 rm conftest.$ac_ext 14787 LIBS=$ac_func_search_save_LIBS 14788 fi 14789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 14790 printf "%s\n" "$ac_cv_search_socket" >&6; } 14791 ac_res=$ac_cv_search_socket 14792 if test "$ac_res" != no 14793 then : 14794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14795 14796 fi 14797 14798 # Check whether --enable-largefile was given. 14799 if test ${enable_largefile+y} 14800 then : 14801 enableval=$enable_largefile; 14802 fi 14803 14804 if test "$enable_largefile" != no; then 14805 14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14807 printf %s "checking for special C compiler options needed for large files... " >&6; } 14808 if test ${ac_cv_sys_largefile_CC+y} 14809 then : 14810 printf %s "(cached) " >&6 14811 else $as_nop 14812 ac_cv_sys_largefile_CC=no 14813 if test "$GCC" != yes; then 14814 ac_save_CC=$CC 14815 while :; do 14816 # IRIX 6.2 and later do not support large files by default, 14817 # so use the C compiler's -n32 option if that helps. 14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14819 /* end confdefs.h. */ 14820 #include <sys/types.h> 14821 /* Check that off_t can represent 2**63 - 1 correctly. 14822 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14823 since some C++ compilers masquerading as C compilers 14824 incorrectly reject 9223372036854775807. */ 14825 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14827 && LARGE_OFF_T % 2147483647 == 1) 14828 ? 1 : -1]; 14829 int 14830 main (void) 14831 { 14832 14833 ; 14834 return 0; 14835 } 14836 _ACEOF 14837 if ac_fn_c_try_compile "$LINENO" 14838 then : 14839 break 14840 fi 14841 rm -f core conftest.err conftest.$ac_objext conftest.beam 14842 CC="$CC -n32" 14843 if ac_fn_c_try_compile "$LINENO" 14844 then : 14845 ac_cv_sys_largefile_CC=' -n32'; break 14846 fi 14847 rm -f core conftest.err conftest.$ac_objext conftest.beam 14848 break 14849 done 14850 CC=$ac_save_CC 14851 rm -f conftest.$ac_ext 14852 fi 14853 fi 14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14855 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 14856 if test "$ac_cv_sys_largefile_CC" != no; then 14857 CC=$CC$ac_cv_sys_largefile_CC 14858 fi 14859 14860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14861 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14862 if test ${ac_cv_sys_file_offset_bits+y} 14863 then : 14864 printf %s "(cached) " >&6 14865 else $as_nop 14866 while :; do 14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14868 /* end confdefs.h. */ 14869 #include <sys/types.h> 14870 /* Check that off_t can represent 2**63 - 1 correctly. 14871 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14872 since some C++ compilers masquerading as C compilers 14873 incorrectly reject 9223372036854775807. */ 14874 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14875 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14876 && LARGE_OFF_T % 2147483647 == 1) 14877 ? 1 : -1]; 14878 int 14879 main (void) 14880 { 14881 14882 ; 14883 return 0; 14884 } 14885 _ACEOF 14886 if ac_fn_c_try_compile "$LINENO" 14887 then : 14888 ac_cv_sys_file_offset_bits=no; break 14889 fi 14890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14892 /* end confdefs.h. */ 14893 #define _FILE_OFFSET_BITS 64 14894 #include <sys/types.h> 14895 /* Check that off_t can represent 2**63 - 1 correctly. 14896 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14897 since some C++ compilers masquerading as C compilers 14898 incorrectly reject 9223372036854775807. */ 14899 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14901 && LARGE_OFF_T % 2147483647 == 1) 14902 ? 1 : -1]; 14903 int 14904 main (void) 14905 { 14906 14907 ; 14908 return 0; 14909 } 14910 _ACEOF 14911 if ac_fn_c_try_compile "$LINENO" 14912 then : 14913 ac_cv_sys_file_offset_bits=64; break 14914 fi 14915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14916 ac_cv_sys_file_offset_bits=unknown 14917 break 14918 done 14919 fi 14920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14921 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 14922 case $ac_cv_sys_file_offset_bits in #( 14923 no | unknown) ;; 14924 *) 14925 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 14926 ;; 14927 esac 14928 rm -rf conftest* 14929 if test $ac_cv_sys_file_offset_bits = unknown; then 14930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14931 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 14932 if test ${ac_cv_sys_large_files+y} 14933 then : 14934 printf %s "(cached) " >&6 14935 else $as_nop 14936 while :; do 14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14938 /* end confdefs.h. */ 14939 #include <sys/types.h> 14940 /* Check that off_t can represent 2**63 - 1 correctly. 14941 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14942 since some C++ compilers masquerading as C compilers 14943 incorrectly reject 9223372036854775807. */ 14944 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14946 && LARGE_OFF_T % 2147483647 == 1) 14947 ? 1 : -1]; 14948 int 14949 main (void) 14950 { 14951 14952 ; 14953 return 0; 14954 } 14955 _ACEOF 14956 if ac_fn_c_try_compile "$LINENO" 14957 then : 14958 ac_cv_sys_large_files=no; break 14959 fi 14960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14962 /* end confdefs.h. */ 14963 #define _LARGE_FILES 1 14964 #include <sys/types.h> 14965 /* Check that off_t can represent 2**63 - 1 correctly. 14966 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14967 since some C++ compilers masquerading as C compilers 14968 incorrectly reject 9223372036854775807. */ 14969 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14970 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14971 && LARGE_OFF_T % 2147483647 == 1) 14972 ? 1 : -1]; 14973 int 14974 main (void) 14975 { 14976 14977 ; 14978 return 0; 14979 } 14980 _ACEOF 14981 if ac_fn_c_try_compile "$LINENO" 14982 then : 14983 ac_cv_sys_large_files=1; break 14984 fi 14985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14986 ac_cv_sys_large_files=unknown 14987 break 14988 done 14989 fi 14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14991 printf "%s\n" "$ac_cv_sys_large_files" >&6; } 14992 case $ac_cv_sys_large_files in #( 14993 no | unknown) ;; 14994 *) 14995 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 14996 ;; 14997 esac 14998 rm -rf conftest* 14999 fi 15000 fi 15001 15002 if case $host_os in 15003 aix*) true ;; 15004 *) false ;; 15005 esac; then 15006 AIX_TRUE= 15007 AIX_FALSE='#' 15008 else 15009 AIX_TRUE='#' 15010 AIX_FALSE= 15011 fi 15012 15013 if case $host_os in 15014 linux-android*) true ;; 15015 *) false ;; 15016 esac; then 15017 ANDROID_TRUE= 15018 ANDROID_FALSE='#' 15019 else 15020 ANDROID_TRUE='#' 15021 ANDROID_FALSE= 15022 fi 15023 15024 if case $host_os in 15025 cygwin*) true ;; 15026 *) false ;; 15027 esac; then 15028 CYGWIN_TRUE= 15029 CYGWIN_FALSE='#' 15030 else 15031 CYGWIN_TRUE='#' 15032 CYGWIN_FALSE= 15033 fi 15034 15035 if case $host_os in 15036 darwin*) true ;; 15037 *) false ;; 15038 esac; then 15039 DARWIN_TRUE= 15040 DARWIN_FALSE='#' 15041 else 15042 DARWIN_TRUE='#' 15043 DARWIN_FALSE= 15044 fi 15045 15046 if case $host_os in 15047 dragonfly*) true ;; 15048 *) false ;; 15049 esac; then 15050 DRAGONFLY_TRUE= 15051 DRAGONFLY_FALSE='#' 15052 else 15053 DRAGONFLY_TRUE='#' 15054 DRAGONFLY_FALSE= 15055 fi 15056 15057 if case $host_os in 15058 freebsd*) true ;; 15059 *) false ;; 15060 esac; then 15061 FREEBSD_TRUE= 15062 FREEBSD_FALSE='#' 15063 else 15064 FREEBSD_TRUE='#' 15065 FREEBSD_FALSE= 15066 fi 15067 15068 if case $host_os in 15069 haiku) true ;; 15070 *) false ;; 15071 esac; then 15072 HAIKU_TRUE= 15073 HAIKU_FALSE='#' 15074 else 15075 HAIKU_TRUE='#' 15076 HAIKU_FALSE= 15077 fi 15078 15079 if case $host_os in 15080 gnu*) true ;; 15081 *) false ;; 15082 esac; then 15083 HURD_TRUE= 15084 HURD_FALSE='#' 15085 else 15086 HURD_TRUE='#' 15087 HURD_FALSE= 15088 fi 15089 15090 if case $host_os in 15091 linux*) true ;; 15092 *) false ;; 15093 esac; then 15094 LINUX_TRUE= 15095 LINUX_FALSE='#' 15096 else 15097 LINUX_TRUE='#' 15098 LINUX_FALSE= 15099 fi 15100 15101 if case $host_os in 15102 msys*) true ;; 15103 *) false ;; 15104 esac; then 15105 MSYS_TRUE= 15106 MSYS_FALSE='#' 15107 else 15108 MSYS_TRUE='#' 15109 MSYS_FALSE= 15110 fi 15111 15112 if case $host_os in 15113 netbsd*) true ;; 15114 *) false ;; 15115 esac; then 15116 NETBSD_TRUE= 15117 NETBSD_FALSE='#' 15118 else 15119 NETBSD_TRUE='#' 15120 NETBSD_FALSE= 15121 fi 15122 15123 if case $host_os in 15124 openbsd*) true ;; 15125 *) false ;; 15126 esac; then 15127 OPENBSD_TRUE= 15128 OPENBSD_FALSE='#' 15129 else 15130 OPENBSD_TRUE='#' 15131 OPENBSD_FALSE= 15132 fi 15133 15134 if case $host_os in 15135 openedition*) true ;; 15136 *) false ;; 15137 esac; then 15138 OS390_TRUE= 15139 OS390_FALSE='#' 15140 else 15141 OS390_TRUE='#' 15142 OS390_FALSE= 15143 fi 15144 15145 if case $host_os in 15146 os400) true ;; 15147 *) false ;; 15148 esac; then 15149 OS400_TRUE= 15150 OS400_FALSE='#' 15151 else 15152 OS400_TRUE='#' 15153 OS400_FALSE= 15154 fi 15155 15156 if case $host_os in 15157 solaris*) true ;; 15158 *) false ;; 15159 esac; then 15160 SUNOS_TRUE= 15161 SUNOS_FALSE='#' 15162 else 15163 SUNOS_TRUE='#' 15164 SUNOS_FALSE= 15165 fi 15166 15167 if case $host_os in 15168 mingw*) true ;; 15169 *) false ;; 15170 esac; then 15171 WINNT_TRUE= 15172 WINNT_FALSE='#' 15173 else 15174 WINNT_TRUE='#' 15175 WINNT_FALSE= 15176 fi 15177 15178 case $host_os in 15179 mingw*) 15180 LIBS="$LIBS -lws2_32 -lpsapi -liphlpapi -luserenv -luser32 -ldbghelp -lole32 -lshell32" 15181 ;; 15182 esac 15183 case $host_os in 15184 solaris2.10) 15185 CFLAGS="$CFLAGS -DSUNOS_NO_IFADDRS" 15186 ;; 15187 esac 15188 case $host_os in 15189 netbsd*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 15190 printf %s "checking for kvm_open in -lkvm... " >&6; } 15191 if test ${ac_cv_lib_kvm_kvm_open+y} 15192 then : 15193 printf %s "(cached) " >&6 15194 else $as_nop 15195 ac_check_lib_save_LIBS=$LIBS 15196 LIBS="-lkvm $LIBS" 15197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15198 /* end confdefs.h. */ 15199 15200 /* Override any GCC internal prototype to avoid an error. 15201 Use char because int might match the return type of a GCC 15202 builtin and then its argument prototype would still apply. */ 15203 char kvm_open (); 15204 int 15205 main (void) 15206 { 15207 return kvm_open (); 15208 ; 15209 return 0; 15210 } 15211 _ACEOF 15212 if ac_fn_c_try_link "$LINENO" 15213 then : 15214 ac_cv_lib_kvm_kvm_open=yes 15215 else $as_nop 15216 ac_cv_lib_kvm_kvm_open=no 15217 fi 15218 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15219 conftest$ac_exeext conftest.$ac_ext 15220 LIBS=$ac_check_lib_save_LIBS 15221 fi 15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 15223 printf "%s\n" "$ac_cv_lib_kvm_kvm_open" >&6; } 15224 if test "x$ac_cv_lib_kvm_kvm_open" = xyes 15225 then : 15226 printf "%s\n" "#define HAVE_LIBKVM 1" >>confdefs.h 15227 15228 LIBS="-lkvm $LIBS" 15229 15230 fi 15231 ;; 15232 esac 15233 case $host_os in 15234 haiku) 15235 LIBS="$LIBS -lnetwork" 15236 ;; 15237 esac 15238 ac_fn_c_check_header_compile "$LINENO" "sys/ahafs_evProds.h" "ac_cv_header_sys_ahafs_evProds_h" "$ac_includes_default" 15239 if test "x$ac_cv_header_sys_ahafs_evProds_h" = xyes 15240 then : 15241 printf "%s\n" "#define HAVE_SYS_AHAFS_EVPRODS_H 1" >>confdefs.h 15242 15243 fi 15244 15245 ac_config_files="$ac_config_files Makefile libuv.pc" 15246 15247 ac_config_links="$ac_config_links test/fixtures/empty_file:test/fixtures/empty_file" 15248 15249 ac_config_links="$ac_config_links test/fixtures/load_error.node:test/fixtures/load_error.node" 15250 15251 ac_config_links="$ac_config_links test/fixtures/lorem_ipsum.txt:test/fixtures/lorem_ipsum.txt" 15252 15253 ac_config_links="$ac_config_links test/fixtures/one_file/one_file:test/fixtures/one_file/one_file" 15254 15255 cat >confcache <<\_ACEOF 15256 # This file is a shell script that caches the results of configure 15257 # tests run on this system so they can be shared between configure 15258 # scripts and configure runs, see configure's option --config-cache. 15259 # It is not useful on other systems. If it contains results you don't 15260 # want to keep, you may remove or edit it. 15261 # 15262 # config.status only pays attention to the cache file if you give it 15263 # the --recheck option to rerun configure. 15264 # 15265 # `ac_cv_env_foo' variables (set or unset) will be overridden when 15266 # loading this file, other *unset* `ac_cv_foo' will be assigned the 15267 # following values. 15268 15269 _ACEOF 15270 15271 # The following way of writing the cache mishandles newlines in values, 15272 # but we know of no workaround that is simple, portable, and efficient. 15273 # So, we kill variables containing newlines. 15274 # Ultrix sh set writes to stderr and can't be redirected directly, 15275 # and sets the high bit in the cache file unless we assign to the vars. 15276 ( 15277 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15278 eval ac_val=\$$ac_var 15279 case $ac_val in #( 15280 *${as_nl}*) 15281 case $ac_var in #( 15282 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15283 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15284 esac 15285 case $ac_var in #( 15286 _ | IFS | as_nl) ;; #( 15287 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15288 *) { eval $ac_var=; unset $ac_var;} ;; 15289 esac ;; 15290 esac 15291 done 15292 15293 (set) 2>&1 | 15294 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15295 *${as_nl}ac_space=\ *) 15296 # `set' does not quote correctly, so add quotes: double-quote 15297 # substitution turns \\\\ into \\, and sed turns \\ into \. 15298 sed -n \ 15299 "s/'/'\\\\''/g; 15300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15301 ;; #( 15302 *) 15303 # `set' quotes correctly as required by POSIX, so do not add quotes. 15304 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15305 ;; 15306 esac | 15307 sort 15308 ) | 15309 sed ' 15310 /^ac_cv_env_/b end 15311 t clear 15312 :clear 15313 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 15314 t end 15315 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15316 :end' >>confcache 15317 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15318 if test -w "$cache_file"; then 15319 if test "x$cache_file" != "x/dev/null"; then 15320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15321 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 15322 if test ! -f "$cache_file" || test -h "$cache_file"; then 15323 cat confcache >"$cache_file" 15324 else 15325 case $cache_file in #( 15326 */* | ?:*) 15327 mv -f confcache "$cache_file"$$ && 15328 mv -f "$cache_file"$$ "$cache_file" ;; #( 15329 *) 15330 mv -f confcache "$cache_file" ;; 15331 esac 15332 fi 15333 fi 15334 else 15335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15336 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 15337 fi 15338 fi 15339 rm -f confcache 15340 15341 test "x$prefix" = xNONE && prefix=$ac_default_prefix 15342 # Let make expand exec_prefix. 15343 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15344 15345 # Transform confdefs.h into DEFS. 15346 # Protect against shell expansion while executing Makefile rules. 15347 # Protect against Makefile macro expansion. 15348 # 15349 # If the first sed substitution is executed (which looks for macros that 15350 # take arguments), then branch to the quote section. Otherwise, 15351 # look for a macro that doesn't take arguments. 15352 ac_script=' 15353 :mline 15354 /\\$/{ 15355 N 15356 s,\\\n,, 15357 b mline 15358 } 15359 t clear 15360 :clear 15361 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 15362 t quote 15363 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 15364 t quote 15365 b any 15366 :quote 15367 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 15368 s/\[/\\&/g 15369 s/\]/\\&/g 15370 s/\$/$$/g 15371 H 15372 :any 15373 ${ 15374 g 15375 s/^\n// 15376 s/\n/ /g 15377 p 15378 } 15379 ' 15380 DEFS=`sed -n "$ac_script" confdefs.h` 15381 15382 15383 ac_libobjs= 15384 ac_ltlibobjs= 15385 U= 15386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15387 # 1. Remove the extension, and $U if already installed. 15388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15389 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 15390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15391 # will be set to the directory where LIBOBJS objects are built. 15392 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15393 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15394 done 15395 LIBOBJS=$ac_libobjs 15396 15397 LTLIBOBJS=$ac_ltlibobjs 15398 15399 15400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15401 printf %s "checking that generated files are newer than configure... " >&6; } 15402 if test -n "$am_sleep_pid"; then 15403 # Hide warnings about reused PIDs. 15404 wait $am_sleep_pid 2>/dev/null 15405 fi 15406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 15407 printf "%s\n" "done" >&6; } 15408 if test -n "$EXEEXT"; then 15409 am__EXEEXT_TRUE= 15410 am__EXEEXT_FALSE='#' 15411 else 15412 am__EXEEXT_TRUE='#' 15413 am__EXEEXT_FALSE= 15414 fi 15415 15416 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15417 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15418 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15419 fi 15420 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15421 as_fn_error $? "conditional \"AMDEP\" was never defined. 15422 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15423 fi 15424 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15425 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15426 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15427 fi 15428 if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then 15429 as_fn_error $? "conditional \"AIX\" was never defined. 15430 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15431 fi 15432 if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then 15433 as_fn_error $? "conditional \"ANDROID\" was never defined. 15434 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15435 fi 15436 if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 15437 as_fn_error $? "conditional \"CYGWIN\" was never defined. 15438 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15439 fi 15440 if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then 15441 as_fn_error $? "conditional \"DARWIN\" was never defined. 15442 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15443 fi 15444 if test -z "${DRAGONFLY_TRUE}" && test -z "${DRAGONFLY_FALSE}"; then 15445 as_fn_error $? "conditional \"DRAGONFLY\" was never defined. 15446 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15447 fi 15448 if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then 15449 as_fn_error $? "conditional \"FREEBSD\" was never defined. 15450 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15451 fi 15452 if test -z "${HAIKU_TRUE}" && test -z "${HAIKU_FALSE}"; then 15453 as_fn_error $? "conditional \"HAIKU\" was never defined. 15454 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15455 fi 15456 if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then 15457 as_fn_error $? "conditional \"HURD\" was never defined. 15458 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15459 fi 15460 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 15461 as_fn_error $? "conditional \"LINUX\" was never defined. 15462 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15463 fi 15464 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then 15465 as_fn_error $? "conditional \"MSYS\" was never defined. 15466 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15467 fi 15468 if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then 15469 as_fn_error $? "conditional \"NETBSD\" was never defined. 15470 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15471 fi 15472 if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then 15473 as_fn_error $? "conditional \"OPENBSD\" was never defined. 15474 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15475 fi 15476 if test -z "${OS390_TRUE}" && test -z "${OS390_FALSE}"; then 15477 as_fn_error $? "conditional \"OS390\" was never defined. 15478 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15479 fi 15480 if test -z "${OS400_TRUE}" && test -z "${OS400_FALSE}"; then 15481 as_fn_error $? "conditional \"OS400\" was never defined. 15482 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15483 fi 15484 if test -z "${SUNOS_TRUE}" && test -z "${SUNOS_FALSE}"; then 15485 as_fn_error $? "conditional \"SUNOS\" was never defined. 15486 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15487 fi 15488 if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then 15489 as_fn_error $? "conditional \"WINNT\" was never defined. 15490 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15491 fi 15492 15493 : "${CONFIG_STATUS=./config.status}" 15494 ac_write_fail=0 15495 ac_clean_files_save=$ac_clean_files 15496 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15498 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 15499 as_write_fail=0 15500 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15501 #! $SHELL 15502 # Generated by $as_me. 15503 # Run this file to recreate the current configuration. 15504 # Compiler output produced by configure, useful for debugging 15505 # configure, is in config.log if it exists. 15506 15507 debug=false 15508 ac_cs_recheck=false 15509 ac_cs_silent=false 15510 15511 SHELL=\${CONFIG_SHELL-$SHELL} 15512 export SHELL 15513 _ASEOF 15514 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15515 ## -------------------- ## 15516 ## M4sh Initialization. ## 15517 ## -------------------- ## 15518 15519 # Be more Bourne compatible 15520 DUALCASE=1; export DUALCASE # for MKS sh 15521 as_nop=: 15522 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 15523 then : 15524 emulate sh 15525 NULLCMD=: 15526 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15527 # is contrary to our usage. Disable this feature. 15528 alias -g '${1+"$@"}'='"$@"' 15529 setopt NO_GLOB_SUBST 15530 else $as_nop 15531 case `(set -o) 2>/dev/null` in 15532 *posix*) set -o posix ;; 15533 esac 15534 fi 15535 15536 15537 15538 # Reset variables that may have inherited troublesome values from 15539 # the environment. 15540 15541 # IFS needs to be set, to space, tab, and newline, in precisely that order. 15542 # (If _AS_PATH_WALK were called with IFS unset, it would have the 15543 # side effect of setting IFS to empty, thus disabling word splitting.) 15544 # Quoting is to prevent editors from complaining about space-tab. 15545 as_nl=' 15546 ' 15547 export as_nl 15548 IFS=" "" $as_nl" 15549 15550 PS1='$ ' 15551 PS2='> ' 15552 PS4='+ ' 15553 15554 # Ensure predictable behavior from utilities with locale-dependent output. 15555 LC_ALL=C 15556 export LC_ALL 15557 LANGUAGE=C 15558 export LANGUAGE 15559 15560 # We cannot yet rely on "unset" to work, but we need these variables 15561 # to be unset--not just set to an empty or harmless value--now, to 15562 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 15563 # also avoids known problems related to "unset" and subshell syntax 15564 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 15565 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 15566 do eval test \${$as_var+y} \ 15567 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15568 done 15569 15570 # Ensure that fds 0, 1, and 2 are open. 15571 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 15572 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 15573 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 15574 15575 # The user is always right. 15576 if ${PATH_SEPARATOR+false} :; then 15577 PATH_SEPARATOR=: 15578 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15579 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15580 PATH_SEPARATOR=';' 15581 } 15582 fi 15583 15584 15585 # Find who we are. Look in the path if we contain no directory separator. 15586 as_myself= 15587 case $0 in #(( 15588 *[\\/]* ) as_myself=$0 ;; 15589 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15590 for as_dir in $PATH 15591 do 15592 IFS=$as_save_IFS 15593 case $as_dir in #((( 15594 '') as_dir=./ ;; 15595 */) ;; 15596 *) as_dir=$as_dir/ ;; 15597 esac 15598 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 15599 done 15600 IFS=$as_save_IFS 15601 15602 ;; 15603 esac 15604 # We did not find ourselves, most probably we were run as `sh COMMAND' 15605 # in which case we are not to be found in the path. 15606 if test "x$as_myself" = x; then 15607 as_myself=$0 15608 fi 15609 if test ! -f "$as_myself"; then 15610 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15611 exit 1 15612 fi 15613 15614 15615 15616 # as_fn_error STATUS ERROR [LINENO LOG_FD] 15617 # ---------------------------------------- 15618 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15619 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15620 # script with STATUS, using 1 if that was 0. 15621 as_fn_error () 15622 { 15623 as_status=$1; test $as_status -eq 0 && as_status=1 15624 if test "$4"; then 15625 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15627 fi 15628 printf "%s\n" "$as_me: error: $2" >&2 15629 as_fn_exit $as_status 15630 } # as_fn_error 15631 15632 15633 15634 # as_fn_set_status STATUS 15635 # ----------------------- 15636 # Set $? to STATUS, without forking. 15637 as_fn_set_status () 15638 { 15639 return $1 15640 } # as_fn_set_status 15641 15642 # as_fn_exit STATUS 15643 # ----------------- 15644 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15645 as_fn_exit () 15646 { 15647 set +e 15648 as_fn_set_status $1 15649 exit $1 15650 } # as_fn_exit 15651 15652 # as_fn_unset VAR 15653 # --------------- 15654 # Portably unset VAR. 15655 as_fn_unset () 15656 { 15657 { eval $1=; unset $1;} 15658 } 15659 as_unset=as_fn_unset 15660 15661 # as_fn_append VAR VALUE 15662 # ---------------------- 15663 # Append the text in VALUE to the end of the definition contained in VAR. Take 15664 # advantage of any shell optimizations that allow amortized linear growth over 15665 # repeated appends, instead of the typical quadratic growth present in naive 15666 # implementations. 15667 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 15668 then : 15669 eval 'as_fn_append () 15670 { 15671 eval $1+=\$2 15672 }' 15673 else $as_nop 15674 as_fn_append () 15675 { 15676 eval $1=\$$1\$2 15677 } 15678 fi # as_fn_append 15679 15680 # as_fn_arith ARG... 15681 # ------------------ 15682 # Perform arithmetic evaluation on the ARGs, and store the result in the 15683 # global $as_val. Take advantage of shells that can avoid forks. The arguments 15684 # must be portable across $(()) and expr. 15685 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 15686 then : 15687 eval 'as_fn_arith () 15688 { 15689 as_val=$(( $* )) 15690 }' 15691 else $as_nop 15692 as_fn_arith () 15693 { 15694 as_val=`expr "$@" || test $? -eq 1` 15695 } 15696 fi # as_fn_arith 15697 15698 15699 if expr a : '\(a\)' >/dev/null 2>&1 && 15700 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15701 as_expr=expr 15702 else 15703 as_expr=false 15704 fi 15705 15706 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15707 as_basename=basename 15708 else 15709 as_basename=false 15710 fi 15711 15712 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15713 as_dirname=dirname 15714 else 15715 as_dirname=false 15716 fi 15717 15718 as_me=`$as_basename -- "$0" || 15719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15720 X"$0" : 'X\(//\)$' \| \ 15721 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15722 printf "%s\n" X/"$0" | 15723 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15724 s//\1/ 15725 q 15726 } 15727 /^X\/\(\/\/\)$/{ 15728 s//\1/ 15729 q 15730 } 15731 /^X\/\(\/\).*/{ 15732 s//\1/ 15733 q 15734 } 15735 s/.*/./; q'` 15736 15737 # Avoid depending upon Character Ranges. 15738 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15739 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15740 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15741 as_cr_digits='0123456789' 15742 as_cr_alnum=$as_cr_Letters$as_cr_digits 15743 15744 15745 # Determine whether it's possible to make 'echo' print without a newline. 15746 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 15747 # for compatibility with existing Makefiles. 15748 ECHO_C= ECHO_N= ECHO_T= 15749 case `echo -n x` in #((((( 15750 -n*) 15751 case `echo 'xy\c'` in 15752 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15753 xy) ECHO_C='\c';; 15754 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15755 ECHO_T=' ';; 15756 esac;; 15757 *) 15758 ECHO_N='-n';; 15759 esac 15760 15761 # For backward compatibility with old third-party macros, we provide 15762 # the shell variables $as_echo and $as_echo_n. New code should use 15763 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 15764 as_echo='printf %s\n' 15765 as_echo_n='printf %s' 15766 15767 rm -f conf$$ conf$$.exe conf$$.file 15768 if test -d conf$$.dir; then 15769 rm -f conf$$.dir/conf$$.file 15770 else 15771 rm -f conf$$.dir 15772 mkdir conf$$.dir 2>/dev/null 15773 fi 15774 if (echo >conf$$.file) 2>/dev/null; then 15775 if ln -s conf$$.file conf$$ 2>/dev/null; then 15776 as_ln_s='ln -s' 15777 # ... but there are two gotchas: 15778 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15779 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15780 # In both cases, we have to default to `cp -pR'. 15781 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15782 as_ln_s='cp -pR' 15783 elif ln conf$$.file conf$$ 2>/dev/null; then 15784 as_ln_s=ln 15785 else 15786 as_ln_s='cp -pR' 15787 fi 15788 else 15789 as_ln_s='cp -pR' 15790 fi 15791 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15792 rmdir conf$$.dir 2>/dev/null 15793 15794 15795 # as_fn_mkdir_p 15796 # ------------- 15797 # Create "$as_dir" as a directory, including parents if necessary. 15798 as_fn_mkdir_p () 15799 { 15800 15801 case $as_dir in #( 15802 -*) as_dir=./$as_dir;; 15803 esac 15804 test -d "$as_dir" || eval $as_mkdir_p || { 15805 as_dirs= 15806 while :; do 15807 case $as_dir in #( 15808 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15809 *) as_qdir=$as_dir;; 15810 esac 15811 as_dirs="'$as_qdir' $as_dirs" 15812 as_dir=`$as_dirname -- "$as_dir" || 15813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15814 X"$as_dir" : 'X\(//\)[^/]' \| \ 15815 X"$as_dir" : 'X\(//\)$' \| \ 15816 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15817 printf "%s\n" X"$as_dir" | 15818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15819 s//\1/ 15820 q 15821 } 15822 /^X\(\/\/\)[^/].*/{ 15823 s//\1/ 15824 q 15825 } 15826 /^X\(\/\/\)$/{ 15827 s//\1/ 15828 q 15829 } 15830 /^X\(\/\).*/{ 15831 s//\1/ 15832 q 15833 } 15834 s/.*/./; q'` 15835 test -d "$as_dir" && break 15836 done 15837 test -z "$as_dirs" || eval "mkdir $as_dirs" 15838 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15839 15840 15841 } # as_fn_mkdir_p 15842 if mkdir -p . 2>/dev/null; then 15843 as_mkdir_p='mkdir -p "$as_dir"' 15844 else 15845 test -d ./-p && rmdir ./-p 15846 as_mkdir_p=false 15847 fi 15848 15849 15850 # as_fn_executable_p FILE 15851 # ----------------------- 15852 # Test if FILE is an executable regular file. 15853 as_fn_executable_p () 15854 { 15855 test -f "$1" && test -x "$1" 15856 } # as_fn_executable_p 15857 as_test_x='test -x' 15858 as_executable_p=as_fn_executable_p 15859 15860 # Sed expression to map a string onto a valid CPP name. 15861 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15862 15863 # Sed expression to map a string onto a valid variable name. 15864 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15865 15866 15867 exec 6>&1 15868 ## ----------------------------------- ## 15869 ## Main body of $CONFIG_STATUS script. ## 15870 ## ----------------------------------- ## 15871 _ASEOF 15872 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15873 15874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15875 # Save the log message, to keep $0 and so on meaningful, and to 15876 # report actual input values of CONFIG_FILES etc. instead of their 15877 # values after options handling. 15878 ac_log=" 15879 This file was extended by libuv $as_me 1.51.0, which was 15880 generated by GNU Autoconf 2.71. Invocation command line was 15881 15882 CONFIG_FILES = $CONFIG_FILES 15883 CONFIG_HEADERS = $CONFIG_HEADERS 15884 CONFIG_LINKS = $CONFIG_LINKS 15885 CONFIG_COMMANDS = $CONFIG_COMMANDS 15886 $ $0 $@ 15887 15888 on `(hostname || uname -n) 2>/dev/null | sed 1q` 15889 " 15890 15891 _ACEOF 15892 15893 case $ac_config_files in *" 15894 "*) set x $ac_config_files; shift; ac_config_files=$*;; 15895 esac 15896 15897 15898 15899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15900 # Files that config.status was made for. 15901 config_files="$ac_config_files" 15902 config_links="$ac_config_links" 15903 config_commands="$ac_config_commands" 15904 15905 _ACEOF 15906 15907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15908 ac_cs_usage="\ 15909 \`$as_me' instantiates files and other configuration actions 15910 from templates according to the current configuration. Unless the files 15911 and actions are specified as TAGs, all are instantiated by default. 15912 15913 Usage: $0 [OPTION]... [TAG]... 15914 15915 -h, --help print this help, then exit 15916 -V, --version print version number and configuration settings, then exit 15917 --config print configuration, then exit 15918 -q, --quiet, --silent 15919 do not print progress messages 15920 -d, --debug don't remove temporary files 15921 --recheck update $as_me by reconfiguring in the same conditions 15922 --file=FILE[:TEMPLATE] 15923 instantiate the configuration file FILE 15924 15925 Configuration files: 15926 $config_files 15927 15928 Configuration links: 15929 $config_links 15930 15931 Configuration commands: 15932 $config_commands 15933 15934 Report bugs to <https://github.com/libuv/libuv/issues>." 15935 15936 _ACEOF 15937 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 15938 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 15939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15940 ac_cs_config='$ac_cs_config_escaped' 15941 ac_cs_version="\\ 15942 libuv config.status 1.51.0 15943 configured by $0, generated by GNU Autoconf 2.71, 15944 with options \\"\$ac_cs_config\\" 15945 15946 Copyright (C) 2021 Free Software Foundation, Inc. 15947 This config.status script is free software; the Free Software Foundation 15948 gives unlimited permission to copy, distribute and modify it." 15949 15950 ac_pwd='$ac_pwd' 15951 srcdir='$srcdir' 15952 INSTALL='$INSTALL' 15953 MKDIR_P='$MKDIR_P' 15954 AWK='$AWK' 15955 test -n "\$AWK" || AWK=awk 15956 _ACEOF 15957 15958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15959 # The default lists apply if the user does not specify any file. 15960 ac_need_defaults=: 15961 while test $# != 0 15962 do 15963 case $1 in 15964 --*=?*) 15965 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15966 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15967 ac_shift=: 15968 ;; 15969 --*=) 15970 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15971 ac_optarg= 15972 ac_shift=: 15973 ;; 15974 *) 15975 ac_option=$1 15976 ac_optarg=$2 15977 ac_shift=shift 15978 ;; 15979 esac 15980 15981 case $ac_option in 15982 # Handling of the options. 15983 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15984 ac_cs_recheck=: ;; 15985 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15986 printf "%s\n" "$ac_cs_version"; exit ;; 15987 --config | --confi | --conf | --con | --co | --c ) 15988 printf "%s\n" "$ac_cs_config"; exit ;; 15989 --debug | --debu | --deb | --de | --d | -d ) 15990 debug=: ;; 15991 --file | --fil | --fi | --f ) 15992 $ac_shift 15993 case $ac_optarg in 15994 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15995 '') as_fn_error $? "missing file argument" ;; 15996 esac 15997 as_fn_append CONFIG_FILES " '$ac_optarg'" 15998 ac_need_defaults=false;; 15999 --he | --h | --help | --hel | -h ) 16000 printf "%s\n" "$ac_cs_usage"; exit ;; 16001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16002 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16003 ac_cs_silent=: ;; 16004 16005 # This is an error. 16006 -*) as_fn_error $? "unrecognized option: \`$1' 16007 Try \`$0 --help' for more information." ;; 16008 16009 *) as_fn_append ac_config_targets " $1" 16010 ac_need_defaults=false ;; 16011 16012 esac 16013 shift 16014 done 16015 16016 ac_configure_extra_args= 16017 16018 if $ac_cs_silent; then 16019 exec 6>/dev/null 16020 ac_configure_extra_args="$ac_configure_extra_args --silent" 16021 fi 16022 16023 _ACEOF 16024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16025 if \$ac_cs_recheck; then 16026 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16027 shift 16028 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 16029 CONFIG_SHELL='$SHELL' 16030 export CONFIG_SHELL 16031 exec "\$@" 16032 fi 16033 16034 _ACEOF 16035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16036 exec 5>>config.log 16037 { 16038 echo 16039 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16040 ## Running $as_me. ## 16041 _ASBOX 16042 printf "%s\n" "$ac_log" 16043 } >&5 16044 16045 _ACEOF 16046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16047 # 16048 # INIT-COMMANDS 16049 # 16050 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 16051 16052 16053 # The HP-UX ksh and POSIX shell print the target directory to stdout 16054 # if CDPATH is set. 16055 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16056 16057 sed_quote_subst='$sed_quote_subst' 16058 double_quote_subst='$double_quote_subst' 16059 delay_variable_subst='$delay_variable_subst' 16060 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16061 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16062 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16063 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16064 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16065 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16066 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 16067 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16068 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16069 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16070 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16071 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16072 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16073 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16074 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16075 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16076 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16077 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16078 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16079 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16080 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16081 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16082 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16083 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16084 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16085 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16086 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16087 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16088 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16089 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16090 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16091 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16092 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16093 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16094 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 16095 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16096 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16097 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16098 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16099 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16100 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16101 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16102 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16103 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 16104 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16105 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16106 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16107 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16108 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16109 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16110 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16111 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16112 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16113 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16114 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16115 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16116 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16117 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16118 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 16119 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16120 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"`' 16121 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 16122 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16123 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16124 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 16125 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16126 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16127 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16128 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16129 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16130 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16131 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16132 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16133 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16134 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16135 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16136 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16137 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16138 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16139 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16140 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16141 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16142 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16143 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16144 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16145 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16146 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16147 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16148 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16149 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16150 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16151 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16152 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16153 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16154 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16155 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16156 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16157 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16158 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16159 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16160 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16161 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16162 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16163 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16164 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16165 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16166 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16167 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16168 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16169 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16170 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16171 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16172 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16173 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16174 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16175 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16176 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16177 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16178 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16179 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16180 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16181 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16182 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16183 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16184 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16185 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16186 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16187 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16188 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16189 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 16190 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 16191 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16192 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16193 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16194 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16195 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16196 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16197 16198 LTCC='$LTCC' 16199 LTCFLAGS='$LTCFLAGS' 16200 compiler='$compiler_DEFAULT' 16201 16202 # A function that is used when there is no print builtin or printf. 16203 func_fallback_echo () 16204 { 16205 eval 'cat <<_LTECHO_EOF 16206 \$1 16207 _LTECHO_EOF' 16208 } 16209 16210 # Quote evaled strings. 16211 for var in SHELL \ 16212 ECHO \ 16213 PATH_SEPARATOR \ 16214 SED \ 16215 GREP \ 16216 EGREP \ 16217 FGREP \ 16218 LD \ 16219 NM \ 16220 LN_S \ 16221 lt_SP2NL \ 16222 lt_NL2SP \ 16223 reload_flag \ 16224 FILECMD \ 16225 OBJDUMP \ 16226 deplibs_check_method \ 16227 file_magic_cmd \ 16228 file_magic_glob \ 16229 want_nocaseglob \ 16230 DLLTOOL \ 16231 sharedlib_from_linklib_cmd \ 16232 AR \ 16233 archiver_list_spec \ 16234 STRIP \ 16235 RANLIB \ 16236 CC \ 16237 CFLAGS \ 16238 compiler \ 16239 lt_cv_sys_global_symbol_pipe \ 16240 lt_cv_sys_global_symbol_to_cdecl \ 16241 lt_cv_sys_global_symbol_to_import \ 16242 lt_cv_sys_global_symbol_to_c_name_address \ 16243 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16244 lt_cv_nm_interface \ 16245 nm_file_list_spec \ 16246 lt_cv_truncate_bin \ 16247 lt_prog_compiler_no_builtin_flag \ 16248 lt_prog_compiler_pic \ 16249 lt_prog_compiler_wl \ 16250 lt_prog_compiler_static \ 16251 lt_cv_prog_compiler_c_o \ 16252 need_locks \ 16253 MANIFEST_TOOL \ 16254 DSYMUTIL \ 16255 NMEDIT \ 16256 LIPO \ 16257 OTOOL \ 16258 OTOOL64 \ 16259 shrext_cmds \ 16260 export_dynamic_flag_spec \ 16261 whole_archive_flag_spec \ 16262 compiler_needs_object \ 16263 with_gnu_ld \ 16264 allow_undefined_flag \ 16265 no_undefined_flag \ 16266 hardcode_libdir_flag_spec \ 16267 hardcode_libdir_separator \ 16268 exclude_expsyms \ 16269 include_expsyms \ 16270 file_list_spec \ 16271 variables_saved_for_relink \ 16272 libname_spec \ 16273 library_names_spec \ 16274 soname_spec \ 16275 install_override_mode \ 16276 finish_eval \ 16277 old_striplib \ 16278 striplib; do 16279 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16280 *[\\\\\\\`\\"\\\$]*) 16281 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16282 ;; 16283 *) 16284 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16285 ;; 16286 esac 16287 done 16288 16289 # Double-quote double-evaled strings. 16290 for var in reload_cmds \ 16291 old_postinstall_cmds \ 16292 old_postuninstall_cmds \ 16293 old_archive_cmds \ 16294 extract_expsyms_cmds \ 16295 old_archive_from_new_cmds \ 16296 old_archive_from_expsyms_cmds \ 16297 archive_cmds \ 16298 archive_expsym_cmds \ 16299 module_cmds \ 16300 module_expsym_cmds \ 16301 export_symbols_cmds \ 16302 prelink_cmds \ 16303 postlink_cmds \ 16304 postinstall_cmds \ 16305 postuninstall_cmds \ 16306 finish_cmds \ 16307 sys_lib_search_path_spec \ 16308 configure_time_dlsearch_path \ 16309 configure_time_lt_sys_library_path; do 16310 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16311 *[\\\\\\\`\\"\\\$]*) 16312 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16313 ;; 16314 *) 16315 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16316 ;; 16317 esac 16318 done 16319 16320 ac_aux_dir='$ac_aux_dir' 16321 16322 # See if we are running on zsh, and set the options that allow our 16323 # commands through without removal of \ escapes INIT. 16324 if test -n "\${ZSH_VERSION+set}"; then 16325 setopt NO_GLOB_SUBST 16326 fi 16327 16328 16329 PACKAGE='$PACKAGE' 16330 VERSION='$VERSION' 16331 RM='$RM' 16332 ofile='$ofile' 16333 16334 16335 16336 16337 _ACEOF 16338 16339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16340 16341 # Handling of arguments. 16342 for ac_config_target in $ac_config_targets 16343 do 16344 case $ac_config_target in 16345 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16346 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16347 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16348 "libuv.pc") CONFIG_FILES="$CONFIG_FILES libuv.pc" ;; 16349 "test/fixtures/empty_file") CONFIG_LINKS="$CONFIG_LINKS test/fixtures/empty_file:test/fixtures/empty_file" ;; 16350 "test/fixtures/load_error.node") CONFIG_LINKS="$CONFIG_LINKS test/fixtures/load_error.node:test/fixtures/load_error.node" ;; 16351 "test/fixtures/lorem_ipsum.txt") CONFIG_LINKS="$CONFIG_LINKS test/fixtures/lorem_ipsum.txt:test/fixtures/lorem_ipsum.txt" ;; 16352 "test/fixtures/one_file/one_file") CONFIG_LINKS="$CONFIG_LINKS test/fixtures/one_file/one_file:test/fixtures/one_file/one_file" ;; 16353 16354 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16355 esac 16356 done 16357 16358 16359 # If the user did not use the arguments to specify the items to instantiate, 16360 # then the envvar interface is used. Set only those that are not. 16361 # We use the long form for the default assignment because of an extremely 16362 # bizarre bug on SunOS 4.1.3. 16363 if $ac_need_defaults; then 16364 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 16365 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links 16366 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 16367 fi 16368 16369 # Have a temporary directory for convenience. Make it in the build tree 16370 # simply because there is no reason against having it here, and in addition, 16371 # creating and moving files from /tmp can sometimes cause problems. 16372 # Hook for its removal unless debugging. 16373 # Note that there is a small window in which the directory will not be cleaned: 16374 # after its creation but before its name has been assigned to `$tmp'. 16375 $debug || 16376 { 16377 tmp= ac_tmp= 16378 trap 'exit_status=$? 16379 : "${ac_tmp:=$tmp}" 16380 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16381 ' 0 16382 trap 'as_fn_exit 1' 1 2 13 15 16383 } 16384 # Create a (secure) tmp directory for tmp files. 16385 16386 { 16387 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16388 test -d "$tmp" 16389 } || 16390 { 16391 tmp=./conf$$-$RANDOM 16392 (umask 077 && mkdir "$tmp") 16393 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16394 ac_tmp=$tmp 16395 16396 # Set up the scripts for CONFIG_FILES section. 16397 # No need to generate them if there are no CONFIG_FILES. 16398 # This happens for instance with `./config.status config.h'. 16399 if test -n "$CONFIG_FILES"; then 16400 16401 16402 ac_cr=`echo X | tr X '\015'` 16403 # On cygwin, bash can eat \r inside `` if the user requested igncr. 16404 # But we know of no other shell where ac_cr would be empty at this 16405 # point, so we can use a bashism as a fallback. 16406 if test "x$ac_cr" = x; then 16407 eval ac_cr=\$\'\\r\' 16408 fi 16409 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16410 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16411 ac_cs_awk_cr='\\r' 16412 else 16413 ac_cs_awk_cr=$ac_cr 16414 fi 16415 16416 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16417 _ACEOF 16418 16419 16420 { 16421 echo "cat >conf$$subs.awk <<_ACEOF" && 16422 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16423 echo "_ACEOF" 16424 } >conf$$subs.sh || 16425 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16426 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16427 ac_delim='%!_!# ' 16428 for ac_last_try in false false false false false :; do 16429 . ./conf$$subs.sh || 16430 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16431 16432 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16433 if test $ac_delim_n = $ac_delim_num; then 16434 break 16435 elif $ac_last_try; then 16436 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16437 else 16438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16439 fi 16440 done 16441 rm -f conf$$subs.sh 16442 16443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16444 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16445 _ACEOF 16446 sed -n ' 16447 h 16448 s/^/S["/; s/!.*/"]=/ 16449 p 16450 g 16451 s/^[^!]*!// 16452 :repl 16453 t repl 16454 s/'"$ac_delim"'$// 16455 t delim 16456 :nl 16457 h 16458 s/\(.\{148\}\)..*/\1/ 16459 t more1 16460 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16461 p 16462 n 16463 b repl 16464 :more1 16465 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16466 p 16467 g 16468 s/.\{148\}// 16469 t nl 16470 :delim 16471 h 16472 s/\(.\{148\}\)..*/\1/ 16473 t more2 16474 s/["\\]/\\&/g; s/^/"/; s/$/"/ 16475 p 16476 b 16477 :more2 16478 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16479 p 16480 g 16481 s/.\{148\}// 16482 t delim 16483 ' <conf$$subs.awk | sed ' 16484 /^[^""]/{ 16485 N 16486 s/\n// 16487 } 16488 ' >>$CONFIG_STATUS || ac_write_fail=1 16489 rm -f conf$$subs.awk 16490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16491 _ACAWK 16492 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16493 for (key in S) S_is_set[key] = 1 16494 FS = "" 16495 16496 } 16497 { 16498 line = $ 0 16499 nfields = split(line, field, "@") 16500 substed = 0 16501 len = length(field[1]) 16502 for (i = 2; i < nfields; i++) { 16503 key = field[i] 16504 keylen = length(key) 16505 if (S_is_set[key]) { 16506 value = S[key] 16507 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16508 len += length(value) + length(field[++i]) 16509 substed = 1 16510 } else 16511 len += 1 + keylen 16512 } 16513 16514 print line 16515 } 16516 16517 _ACAWK 16518 _ACEOF 16519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16520 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16521 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16522 else 16523 cat 16524 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16525 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16526 _ACEOF 16527 16528 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16529 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16530 # trailing colons and then remove the whole line if VPATH becomes empty 16531 # (actually we leave an empty line to preserve line numbers). 16532 if test "x$srcdir" = x.; then 16533 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16534 h 16535 s/// 16536 s/^/:/ 16537 s/[ ]*$/:/ 16538 s/:\$(srcdir):/:/g 16539 s/:\${srcdir}:/:/g 16540 s/:@srcdir@:/:/g 16541 s/^:*// 16542 s/:*$// 16543 x 16544 s/\(=[ ]*\).*/\1/ 16545 G 16546 s/\n// 16547 s/^[^=]*=[ ]*$// 16548 }' 16549 fi 16550 16551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16552 fi # test -n "$CONFIG_FILES" 16553 16554 16555 eval set X " :F $CONFIG_FILES :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 16556 shift 16557 for ac_tag 16558 do 16559 case $ac_tag in 16560 :[FHLC]) ac_mode=$ac_tag; continue;; 16561 esac 16562 case $ac_mode$ac_tag in 16563 :[FHL]*:*);; 16564 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16565 :[FH]-) ac_tag=-:-;; 16566 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16567 esac 16568 ac_save_IFS=$IFS 16569 IFS=: 16570 set x $ac_tag 16571 IFS=$ac_save_IFS 16572 shift 16573 ac_file=$1 16574 shift 16575 16576 case $ac_mode in 16577 :L) ac_source=$1;; 16578 :[FH]) 16579 ac_file_inputs= 16580 for ac_f 16581 do 16582 case $ac_f in 16583 -) ac_f="$ac_tmp/stdin";; 16584 *) # Look for the file first in the build tree, then in the source tree 16585 # (if the path is not absolute). The absolute path cannot be DOS-style, 16586 # because $ac_f cannot contain `:'. 16587 test -f "$ac_f" || 16588 case $ac_f in 16589 [\\/$]*) false;; 16590 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16591 esac || 16592 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16593 esac 16594 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16595 as_fn_append ac_file_inputs " '$ac_f'" 16596 done 16597 16598 # Let's still pretend it is `configure' which instantiates (i.e., don't 16599 # use $as_me), people would be surprised to read: 16600 # /* config.h. Generated by config.status. */ 16601 configure_input='Generated from '` 16602 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16603 `' by configure.' 16604 if test x"$ac_file" != x-; then 16605 configure_input="$ac_file. $configure_input" 16606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16607 printf "%s\n" "$as_me: creating $ac_file" >&6;} 16608 fi 16609 # Neutralize special characters interpreted by sed in replacement strings. 16610 case $configure_input in #( 16611 *\&* | *\|* | *\\* ) 16612 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 16613 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16614 *) ac_sed_conf_input=$configure_input;; 16615 esac 16616 16617 case $ac_tag in 16618 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16620 esac 16621 ;; 16622 esac 16623 16624 ac_dir=`$as_dirname -- "$ac_file" || 16625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16626 X"$ac_file" : 'X\(//\)[^/]' \| \ 16627 X"$ac_file" : 'X\(//\)$' \| \ 16628 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16629 printf "%s\n" X"$ac_file" | 16630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16631 s//\1/ 16632 q 16633 } 16634 /^X\(\/\/\)[^/].*/{ 16635 s//\1/ 16636 q 16637 } 16638 /^X\(\/\/\)$/{ 16639 s//\1/ 16640 q 16641 } 16642 /^X\(\/\).*/{ 16643 s//\1/ 16644 q 16645 } 16646 s/.*/./; q'` 16647 as_dir="$ac_dir"; as_fn_mkdir_p 16648 ac_builddir=. 16649 16650 case "$ac_dir" in 16651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16652 *) 16653 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 16654 # A ".." for each directory in $ac_dir_suffix. 16655 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16656 case $ac_top_builddir_sub in 16657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16659 esac ;; 16660 esac 16661 ac_abs_top_builddir=$ac_pwd 16662 ac_abs_builddir=$ac_pwd$ac_dir_suffix 16663 # for backward compatibility: 16664 ac_top_builddir=$ac_top_build_prefix 16665 16666 case $srcdir in 16667 .) # We are building in place. 16668 ac_srcdir=. 16669 ac_top_srcdir=$ac_top_builddir_sub 16670 ac_abs_top_srcdir=$ac_pwd ;; 16671 [\\/]* | ?:[\\/]* ) # Absolute name. 16672 ac_srcdir=$srcdir$ac_dir_suffix; 16673 ac_top_srcdir=$srcdir 16674 ac_abs_top_srcdir=$srcdir ;; 16675 *) # Relative name. 16676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16677 ac_top_srcdir=$ac_top_build_prefix$srcdir 16678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16679 esac 16680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16681 16682 16683 case $ac_mode in 16684 :F) 16685 # 16686 # CONFIG_FILE 16687 # 16688 16689 case $INSTALL in 16690 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16691 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16692 esac 16693 ac_MKDIR_P=$MKDIR_P 16694 case $MKDIR_P in 16695 [\\/$]* | ?:[\\/]* ) ;; 16696 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16697 esac 16698 _ACEOF 16699 16700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16701 # If the template does not know about datarootdir, expand it. 16702 # FIXME: This hack should be removed a few years after 2.60. 16703 ac_datarootdir_hack=; ac_datarootdir_seen= 16704 ac_sed_dataroot=' 16705 /datarootdir/ { 16706 p 16707 q 16708 } 16709 /@datadir@/p 16710 /@docdir@/p 16711 /@infodir@/p 16712 /@localedir@/p 16713 /@mandir@/p' 16714 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16715 *datarootdir*) ac_datarootdir_seen=yes;; 16716 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16718 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16719 _ACEOF 16720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16721 ac_datarootdir_hack=' 16722 s&@datadir@&$datadir&g 16723 s&@docdir@&$docdir&g 16724 s&@infodir@&$infodir&g 16725 s&@localedir@&$localedir&g 16726 s&@mandir@&$mandir&g 16727 s&\\\${datarootdir}&$datarootdir&g' ;; 16728 esac 16729 _ACEOF 16730 16731 # Neutralize VPATH when `$srcdir' = `.'. 16732 # Shell code in configure.ac might set extrasub. 16733 # FIXME: do we really want to maintain this feature? 16734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16735 ac_sed_extra="$ac_vpsub 16736 $extrasub 16737 _ACEOF 16738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16739 :t 16740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16741 s|@configure_input@|$ac_sed_conf_input|;t t 16742 s&@top_builddir@&$ac_top_builddir_sub&;t t 16743 s&@top_build_prefix@&$ac_top_build_prefix&;t t 16744 s&@srcdir@&$ac_srcdir&;t t 16745 s&@abs_srcdir@&$ac_abs_srcdir&;t t 16746 s&@top_srcdir@&$ac_top_srcdir&;t t 16747 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16748 s&@builddir@&$ac_builddir&;t t 16749 s&@abs_builddir@&$ac_abs_builddir&;t t 16750 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16751 s&@INSTALL@&$ac_INSTALL&;t t 16752 s&@MKDIR_P@&$ac_MKDIR_P&;t t 16753 $ac_datarootdir_hack 16754 " 16755 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16756 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16757 16758 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16759 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16760 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16761 "$ac_tmp/out"`; test -z "$ac_out"; } && 16762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16763 which seems to be undefined. Please make sure it is defined" >&5 16764 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16765 which seems to be undefined. Please make sure it is defined" >&2;} 16766 16767 rm -f "$ac_tmp/stdin" 16768 case $ac_file in 16769 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16770 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16771 esac \ 16772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16773 ;; 16774 16775 :L) 16776 # 16777 # CONFIG_LINK 16778 # 16779 16780 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 16781 : 16782 else 16783 # Prefer the file from the source tree if names are identical. 16784 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 16785 ac_source=$srcdir/$ac_source 16786 fi 16787 16788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 16789 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;} 16790 16791 if test ! -r "$ac_source"; then 16792 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 16793 fi 16794 rm -f "$ac_file" 16795 16796 # Try a relative symlink, then a hard link, then a copy. 16797 case $ac_source in 16798 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 16799 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 16800 esac 16801 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 16802 ln "$ac_source" "$ac_file" 2>/dev/null || 16803 cp -p "$ac_source" "$ac_file" || 16804 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 16805 fi 16806 ;; 16807 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16808 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 16809 ;; 16810 esac 16811 16812 16813 case $ac_file$ac_mode in 16814 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16815 # Older Autoconf quotes --file arguments for eval, but not when files 16816 # are listed without --file. Let's play safe and only enable the eval 16817 # if we detect the quoting. 16818 # TODO: see whether this extra hack can be removed once we start 16819 # requiring Autoconf 2.70 or later. 16820 case $CONFIG_FILES in 16821 *\'*) eval set x "$CONFIG_FILES" ;; 16822 *) set x $CONFIG_FILES ;; 16823 esac 16824 shift 16825 # Used to flag and report bootstrapping failures. 16826 am_rc=0 16827 for am_mf 16828 do 16829 # Strip MF so we end up with the name of the file. 16830 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 16831 # Check whether this is an Automake generated Makefile which includes 16832 # dependency-tracking related rules and includes. 16833 # Grep'ing the whole file directly is not great: AIX grep has a line 16834 # limit of 2048, but all sed's we know have understand at least 4000. 16835 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 16836 || continue 16837 am_dirpart=`$as_dirname -- "$am_mf" || 16838 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16839 X"$am_mf" : 'X\(//\)[^/]' \| \ 16840 X"$am_mf" : 'X\(//\)$' \| \ 16841 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 16842 printf "%s\n" X"$am_mf" | 16843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16844 s//\1/ 16845 q 16846 } 16847 /^X\(\/\/\)[^/].*/{ 16848 s//\1/ 16849 q 16850 } 16851 /^X\(\/\/\)$/{ 16852 s//\1/ 16853 q 16854 } 16855 /^X\(\/\).*/{ 16856 s//\1/ 16857 q 16858 } 16859 s/.*/./; q'` 16860 am_filepart=`$as_basename -- "$am_mf" || 16861 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 16862 X"$am_mf" : 'X\(//\)$' \| \ 16863 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 16864 printf "%s\n" X/"$am_mf" | 16865 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16866 s//\1/ 16867 q 16868 } 16869 /^X\/\(\/\/\)$/{ 16870 s//\1/ 16871 q 16872 } 16873 /^X\/\(\/\).*/{ 16874 s//\1/ 16875 q 16876 } 16877 s/.*/./; q'` 16878 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 16879 && sed -e '/# am--include-marker/d' "$am_filepart" \ 16880 | $MAKE -f - am--depfiles" >&5 16881 (cd "$am_dirpart" \ 16882 && sed -e '/# am--include-marker/d' "$am_filepart" \ 16883 | $MAKE -f - am--depfiles) >&5 2>&5 16884 ac_status=$? 16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16886 (exit $ac_status); } || am_rc=$? 16887 done 16888 if test $am_rc -ne 0; then 16889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16890 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16891 as_fn_error $? "Something went wrong bootstrapping makefile fragments 16892 for automatic dependency tracking. If GNU make was not used, consider 16893 re-running the configure script with MAKE=\"gmake\" (or whatever is 16894 necessary). You can also try re-running configure with the 16895 '--disable-dependency-tracking' option to at least be able to build 16896 the package (albeit without support for automatic dependency tracking). 16897 See \`config.log' for more details" "$LINENO" 5; } 16898 fi 16899 { am_dirpart=; unset am_dirpart;} 16900 { am_filepart=; unset am_filepart;} 16901 { am_mf=; unset am_mf;} 16902 { am_rc=; unset am_rc;} 16903 rm -f conftest-deps.mk 16904 } 16905 ;; 16906 "libtool":C) 16907 16908 # See if we are running on zsh, and set the options that allow our 16909 # commands through without removal of \ escapes. 16910 if test -n "${ZSH_VERSION+set}"; then 16911 setopt NO_GLOB_SUBST 16912 fi 16913 16914 cfgfile=${ofile}T 16915 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16916 $RM "$cfgfile" 16917 16918 cat <<_LT_EOF >> "$cfgfile" 16919 #! $SHELL 16920 # Generated automatically by $as_me ($PACKAGE) $VERSION 16921 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 16922 16923 # Provide generalized library-building support services. 16924 # Written by Gordon Matzigkeit, 1996 16925 16926 # Copyright (C) 2014 Free Software Foundation, Inc. 16927 # This is free software; see the source for copying conditions. There is NO 16928 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16929 16930 # GNU Libtool is free software; you can redistribute it and/or modify 16931 # it under the terms of the GNU General Public License as published by 16932 # the Free Software Foundation; either version 2 of of the License, or 16933 # (at your option) any later version. 16934 # 16935 # As a special exception to the GNU General Public License, if you 16936 # distribute this file as part of a program or library that is built 16937 # using GNU Libtool, you may include this file under the same 16938 # distribution terms that you use for the rest of that program. 16939 # 16940 # GNU Libtool is distributed in the hope that it will be useful, but 16941 # WITHOUT ANY WARRANTY; without even the implied warranty of 16942 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16943 # GNU General Public License for more details. 16944 # 16945 # You should have received a copy of the GNU General Public License 16946 # along with this program. If not, see <http://www.gnu.org/licenses/>. 16947 16948 16949 # The names of the tagged configurations supported by this script. 16950 available_tags='' 16951 16952 # Configured defaults for sys_lib_dlsearch_path munging. 16953 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 16954 16955 # ### BEGIN LIBTOOL CONFIG 16956 16957 # Whether or not to build shared libraries. 16958 build_libtool_libs=$enable_shared 16959 16960 # Whether or not to build static libraries. 16961 build_old_libs=$enable_static 16962 16963 # Which release of libtool.m4 was used? 16964 macro_version=$macro_version 16965 macro_revision=$macro_revision 16966 16967 # What type of objects to build. 16968 pic_mode=$pic_mode 16969 16970 # Whether or not to optimize for fast installation. 16971 fast_install=$enable_fast_install 16972 16973 # Shared archive member basename,for filename based shared library versioning on AIX. 16974 shared_archive_member_spec=$shared_archive_member_spec 16975 16976 # Shell to use when invoking shell scripts. 16977 SHELL=$lt_SHELL 16978 16979 # An echo program that protects backslashes. 16980 ECHO=$lt_ECHO 16981 16982 # The PATH separator for the build system. 16983 PATH_SEPARATOR=$lt_PATH_SEPARATOR 16984 16985 # The host system. 16986 host_alias=$host_alias 16987 host=$host 16988 host_os=$host_os 16989 16990 # The build system. 16991 build_alias=$build_alias 16992 build=$build 16993 build_os=$build_os 16994 16995 # A sed program that does not truncate output. 16996 SED=$lt_SED 16997 16998 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 16999 Xsed="\$SED -e 1s/^X//" 17000 17001 # A grep program that handles long lines. 17002 GREP=$lt_GREP 17003 17004 # An ERE matcher. 17005 EGREP=$lt_EGREP 17006 17007 # A literal string matcher. 17008 FGREP=$lt_FGREP 17009 17010 # A BSD- or MS-compatible name lister. 17011 NM=$lt_NM 17012 17013 # Whether we need soft or hard links. 17014 LN_S=$lt_LN_S 17015 17016 # What is the maximum length of a command? 17017 max_cmd_len=$max_cmd_len 17018 17019 # Object file suffix (normally "o"). 17020 objext=$ac_objext 17021 17022 # Executable file suffix (normally ""). 17023 exeext=$exeext 17024 17025 # whether the shell understands "unset". 17026 lt_unset=$lt_unset 17027 17028 # turn spaces into newlines. 17029 SP2NL=$lt_lt_SP2NL 17030 17031 # turn newlines into spaces. 17032 NL2SP=$lt_lt_NL2SP 17033 17034 # convert \$build file names to \$host format. 17035 to_host_file_cmd=$lt_cv_to_host_file_cmd 17036 17037 # convert \$build files to toolchain format. 17038 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17039 17040 # A file(cmd) program that detects file types. 17041 FILECMD=$lt_FILECMD 17042 17043 # An object symbol dumper. 17044 OBJDUMP=$lt_OBJDUMP 17045 17046 # Method to check whether dependent libraries are shared objects. 17047 deplibs_check_method=$lt_deplibs_check_method 17048 17049 # Command to use when deplibs_check_method = "file_magic". 17050 file_magic_cmd=$lt_file_magic_cmd 17051 17052 # How to find potential files when deplibs_check_method = "file_magic". 17053 file_magic_glob=$lt_file_magic_glob 17054 17055 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17056 want_nocaseglob=$lt_want_nocaseglob 17057 17058 # DLL creation program. 17059 DLLTOOL=$lt_DLLTOOL 17060 17061 # Command to associate shared and link libraries. 17062 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17063 17064 # The archiver. 17065 AR=$lt_AR 17066 17067 # Flags to create an archive (by configure). 17068 lt_ar_flags=$lt_ar_flags 17069 17070 # Flags to create an archive. 17071 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 17072 17073 # How to feed a file listing to the archiver. 17074 archiver_list_spec=$lt_archiver_list_spec 17075 17076 # A symbol stripping program. 17077 STRIP=$lt_STRIP 17078 17079 # Commands used to install an old-style archive. 17080 RANLIB=$lt_RANLIB 17081 old_postinstall_cmds=$lt_old_postinstall_cmds 17082 old_postuninstall_cmds=$lt_old_postuninstall_cmds 17083 17084 # Whether to use a lock for old archive extraction. 17085 lock_old_archive_extraction=$lock_old_archive_extraction 17086 17087 # A C compiler. 17088 LTCC=$lt_CC 17089 17090 # LTCC compiler flags. 17091 LTCFLAGS=$lt_CFLAGS 17092 17093 # Take the output of nm and produce a listing of raw symbols and C names. 17094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17095 17096 # Transform the output of nm in a proper C declaration. 17097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17098 17099 # Transform the output of nm into a list of symbols to manually relocate. 17100 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 17101 17102 # Transform the output of nm in a C name address pair. 17103 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17104 17105 # Transform the output of nm in a C name address pair when lib prefix is needed. 17106 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17107 17108 # The name lister interface. 17109 nm_interface=$lt_lt_cv_nm_interface 17110 17111 # Specify filename containing input files for \$NM. 17112 nm_file_list_spec=$lt_nm_file_list_spec 17113 17114 # The root where to search for dependent libraries,and where our libraries should be installed. 17115 lt_sysroot=$lt_sysroot 17116 17117 # Command to truncate a binary pipe. 17118 lt_truncate_bin=$lt_lt_cv_truncate_bin 17119 17120 # The name of the directory that contains temporary libtool files. 17121 objdir=$objdir 17122 17123 # Used to examine libraries when file_magic_cmd begins with "file". 17124 MAGIC_CMD=$MAGIC_CMD 17125 17126 # Must we lock files when doing compilation? 17127 need_locks=$lt_need_locks 17128 17129 # Manifest tool. 17130 MANIFEST_TOOL=$lt_MANIFEST_TOOL 17131 17132 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17133 DSYMUTIL=$lt_DSYMUTIL 17134 17135 # Tool to change global to local symbols on Mac OS X. 17136 NMEDIT=$lt_NMEDIT 17137 17138 # Tool to manipulate fat objects and archives on Mac OS X. 17139 LIPO=$lt_LIPO 17140 17141 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 17142 OTOOL=$lt_OTOOL 17143 17144 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17145 OTOOL64=$lt_OTOOL64 17146 17147 # Old archive suffix (normally "a"). 17148 libext=$libext 17149 17150 # Shared library suffix (normally ".so"). 17151 shrext_cmds=$lt_shrext_cmds 17152 17153 # The commands to extract the exported symbol list from a shared archive. 17154 extract_expsyms_cmds=$lt_extract_expsyms_cmds 17155 17156 # Variables whose values should be saved in libtool wrapper scripts and 17157 # restored at link time. 17158 variables_saved_for_relink=$lt_variables_saved_for_relink 17159 17160 # Do we need the "lib" prefix for modules? 17161 need_lib_prefix=$need_lib_prefix 17162 17163 # Do we need a version for libraries? 17164 need_version=$need_version 17165 17166 # Library versioning type. 17167 version_type=$version_type 17168 17169 # Shared library runtime path variable. 17170 runpath_var=$runpath_var 17171 17172 # Shared library path variable. 17173 shlibpath_var=$shlibpath_var 17174 17175 # Is shlibpath searched before the hard-coded library search path? 17176 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17177 17178 # Format of library name prefix. 17179 libname_spec=$lt_libname_spec 17180 17181 # List of archive names. First name is the real one, the rest are links. 17182 # The last name is the one that the linker finds with -lNAME 17183 library_names_spec=$lt_library_names_spec 17184 17185 # The coded name of the library, if different from the real name. 17186 soname_spec=$lt_soname_spec 17187 17188 # Permission mode override for installation of shared libraries. 17189 install_override_mode=$lt_install_override_mode 17190 17191 # Command to use after installation of a shared archive. 17192 postinstall_cmds=$lt_postinstall_cmds 17193 17194 # Command to use after uninstallation of a shared archive. 17195 postuninstall_cmds=$lt_postuninstall_cmds 17196 17197 # Commands used to finish a libtool library installation in a directory. 17198 finish_cmds=$lt_finish_cmds 17199 17200 # As "finish_cmds", except a single script fragment to be evaled but 17201 # not shown. 17202 finish_eval=$lt_finish_eval 17203 17204 # Whether we should hardcode library paths into libraries. 17205 hardcode_into_libs=$hardcode_into_libs 17206 17207 # Compile-time system search path for libraries. 17208 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17209 17210 # Detected run-time system search path for libraries. 17211 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 17212 17213 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 17214 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 17215 17216 # Whether dlopen is supported. 17217 dlopen_support=$enable_dlopen 17218 17219 # Whether dlopen of programs is supported. 17220 dlopen_self=$enable_dlopen_self 17221 17222 # Whether dlopen of statically linked programs is supported. 17223 dlopen_self_static=$enable_dlopen_self_static 17224 17225 # Commands to strip libraries. 17226 old_striplib=$lt_old_striplib 17227 striplib=$lt_striplib 17228 17229 17230 # The linker used to build libraries. 17231 LD=$lt_LD 17232 17233 # How to create reloadable object files. 17234 reload_flag=$lt_reload_flag 17235 reload_cmds=$lt_reload_cmds 17236 17237 # Commands used to build an old-style archive. 17238 old_archive_cmds=$lt_old_archive_cmds 17239 17240 # A language specific compiler. 17241 CC=$lt_compiler 17242 17243 # Is the compiler the GNU compiler? 17244 with_gcc=$GCC 17245 17246 # Compiler flag to turn off builtin functions. 17247 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17248 17249 # Additional compiler flags for building library objects. 17250 pic_flag=$lt_lt_prog_compiler_pic 17251 17252 # How to pass a linker flag through the compiler. 17253 wl=$lt_lt_prog_compiler_wl 17254 17255 # Compiler flag to prevent dynamic linking. 17256 link_static_flag=$lt_lt_prog_compiler_static 17257 17258 # Does compiler simultaneously support -c and -o options? 17259 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17260 17261 # Whether or not to add -lc for building shared libraries. 17262 build_libtool_need_lc=$archive_cmds_need_lc 17263 17264 # Whether or not to disallow shared libs when runtime libs are static. 17265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17266 17267 # Compiler flag to allow reflexive dlopens. 17268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17269 17270 # Compiler flag to generate shared objects directly from archives. 17271 whole_archive_flag_spec=$lt_whole_archive_flag_spec 17272 17273 # Whether the compiler copes with passing no objects directly. 17274 compiler_needs_object=$lt_compiler_needs_object 17275 17276 # Create an old-style archive from a shared archive. 17277 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17278 17279 # Create a temporary old-style archive to link instead of a shared archive. 17280 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17281 17282 # Commands used to build a shared archive. 17283 archive_cmds=$lt_archive_cmds 17284 archive_expsym_cmds=$lt_archive_expsym_cmds 17285 17286 # Commands used to build a loadable module if different from building 17287 # a shared archive. 17288 module_cmds=$lt_module_cmds 17289 module_expsym_cmds=$lt_module_expsym_cmds 17290 17291 # Whether we are building with GNU ld or not. 17292 with_gnu_ld=$lt_with_gnu_ld 17293 17294 # Flag that allows shared libraries with undefined symbols to be built. 17295 allow_undefined_flag=$lt_allow_undefined_flag 17296 17297 # Flag that enforces no undefined symbols. 17298 no_undefined_flag=$lt_no_undefined_flag 17299 17300 # Flag to hardcode \$libdir into a binary during linking. 17301 # This must work even if \$libdir does not exist 17302 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17303 17304 # Whether we need a single "-rpath" flag with a separated argument. 17305 hardcode_libdir_separator=$lt_hardcode_libdir_separator 17306 17307 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17308 # DIR into the resulting binary. 17309 hardcode_direct=$hardcode_direct 17310 17311 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17312 # DIR into the resulting binary and the resulting library dependency is 17313 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 17314 # library is relocated. 17315 hardcode_direct_absolute=$hardcode_direct_absolute 17316 17317 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17318 # into the resulting binary. 17319 hardcode_minus_L=$hardcode_minus_L 17320 17321 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17322 # into the resulting binary. 17323 hardcode_shlibpath_var=$hardcode_shlibpath_var 17324 17325 # Set to "yes" if building a shared library automatically hardcodes DIR 17326 # into the library and all subsequent libraries and executables linked 17327 # against it. 17328 hardcode_automatic=$hardcode_automatic 17329 17330 # Set to yes if linker adds runtime paths of dependent libraries 17331 # to runtime path list. 17332 inherit_rpath=$inherit_rpath 17333 17334 # Whether libtool must link a program against all its dependency libraries. 17335 link_all_deplibs=$link_all_deplibs 17336 17337 # Set to "yes" if exported symbols are required. 17338 always_export_symbols=$always_export_symbols 17339 17340 # The commands to list exported symbols. 17341 export_symbols_cmds=$lt_export_symbols_cmds 17342 17343 # Symbols that should not be listed in the preloaded symbols. 17344 exclude_expsyms=$lt_exclude_expsyms 17345 17346 # Symbols that must always be exported. 17347 include_expsyms=$lt_include_expsyms 17348 17349 # Commands necessary for linking programs (against libraries) with templates. 17350 prelink_cmds=$lt_prelink_cmds 17351 17352 # Commands necessary for finishing linking programs. 17353 postlink_cmds=$lt_postlink_cmds 17354 17355 # Specify filename containing input files. 17356 file_list_spec=$lt_file_list_spec 17357 17358 # How to hardcode a shared library path into an executable. 17359 hardcode_action=$hardcode_action 17360 17361 # ### END LIBTOOL CONFIG 17362 17363 _LT_EOF 17364 17365 cat <<'_LT_EOF' >> "$cfgfile" 17366 17367 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 17368 17369 # func_munge_path_list VARIABLE PATH 17370 # ----------------------------------- 17371 # VARIABLE is name of variable containing _space_ separated list of 17372 # directories to be munged by the contents of PATH, which is string 17373 # having a format: 17374 # "DIR[:DIR]:" 17375 # string "DIR[ DIR]" will be prepended to VARIABLE 17376 # ":DIR[:DIR]" 17377 # string "DIR[ DIR]" will be appended to VARIABLE 17378 # "DIRP[:DIRP]::[DIRA:]DIRA" 17379 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17380 # "DIRA[ DIRA]" will be appended to VARIABLE 17381 # "DIR[:DIR]" 17382 # VARIABLE will be replaced by "DIR[ DIR]" 17383 func_munge_path_list () 17384 { 17385 case x$2 in 17386 x) 17387 ;; 17388 *:) 17389 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17390 ;; 17391 x:*) 17392 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17393 ;; 17394 *::*) 17395 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17396 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17397 ;; 17398 *) 17399 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17400 ;; 17401 esac 17402 } 17403 17404 17405 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17406 func_cc_basename () 17407 { 17408 for cc_temp in $*""; do 17409 case $cc_temp in 17410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17412 \-*) ;; 17413 *) break;; 17414 esac 17415 done 17416 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17417 } 17418 17419 17420 # ### END FUNCTIONS SHARED WITH CONFIGURE 17421 17422 _LT_EOF 17423 17424 case $host_os in 17425 aix3*) 17426 cat <<\_LT_EOF >> "$cfgfile" 17427 # AIX sometimes has problems with the GCC collect2 program. For some 17428 # reason, if we set the COLLECT_NAMES environment variable, the problems 17429 # vanish in a puff of smoke. 17430 if test set != "${COLLECT_NAMES+set}"; then 17431 COLLECT_NAMES= 17432 export COLLECT_NAMES 17433 fi 17434 _LT_EOF 17435 ;; 17436 esac 17437 17438 17439 17440 ltmain=$ac_aux_dir/ltmain.sh 17441 17442 17443 # We use sed instead of cat because bash on DJGPP gets confused if 17444 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17445 # text mode, it properly converts lines to CR/LF. This bash problem 17446 # is reportedly fixed, but why not run on old versions too? 17447 $SED '$q' "$ltmain" >> "$cfgfile" \ 17448 || (rm -f "$cfgfile"; exit 1) 17449 17450 mv -f "$cfgfile" "$ofile" || 17451 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17452 chmod +x "$ofile" 17453 17454 ;; 17455 17456 esac 17457 done # for ac_tag 17458 17459 17460 as_fn_exit 0 17461 _ACEOF 17462 ac_clean_files=$ac_clean_files_save 17463 17464 test $ac_write_fail = 0 || 17465 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17466 17467 17468 # configure is writing to config.log, and then calls config.status. 17469 # config.status does its own redirection, appending to config.log. 17470 # Unfortunately, on DOS this fails, as config.log is still kept open 17471 # by configure, so config.status won't be able to write to it; its 17472 # output is simply discarded. So we exec the FD to /dev/null, 17473 # effectively closing config.log, so it can be properly (re)opened and 17474 # appended to by config.status. When coming back to configure, we 17475 # need to make the FD available again. 17476 if test "$no_create" != yes; then 17477 ac_cs_success=: 17478 ac_config_status_args= 17479 test "$silent" = yes && 17480 ac_config_status_args="$ac_config_status_args --quiet" 17481 exec 5>/dev/null 17482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17483 exec 5>>config.log 17484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17485 # would make configure fail if this is the last instruction. 17486 $ac_cs_success || as_fn_exit 1 17487 fi 17488 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17490 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17491 fi 17492 17493 17494