1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.69 for libuv 1.42.0. 4@%:@ 5@%:@ Report bugs to <https://github.com/libuv/libuv/issues>. 6@%:@ 7@%:@ 8@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9@%:@ 10@%:@ 11@%:@ This configure script is free software; the Free Software Foundation 12@%:@ gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in @%:@( 28 *posix*) : 29 set -o posix ;; @%:@( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in @%:@( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in @%:@(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 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. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in @%:@ (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in 172 *posix*) set -o posix ;; 173esac 174fi 175" 176 as_required="as_fn_return () { (exit \$1); } 177as_fn_success () { as_fn_return 0; } 178as_fn_failure () { as_fn_return 1; } 179as_fn_ret_success () { return 0; } 180as_fn_ret_failure () { return 1; } 181 182exitcode=0 183as_fn_success || { exitcode=1; echo as_fn_success failed.; } 184as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 185as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 186as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 187if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 188 189else 190 exitcode=1; echo positional parameters were not saved. 191fi 192test x\$exitcode = x0 || exit 1 193test -x / || exit 1" 194 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 195 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 196 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 197 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 198 199 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 200 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 201 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 PATH=/empty FPATH=/empty; export PATH FPATH 204 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 205 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 206test \$(( 1 + 1 )) = 2 || exit 1" 207 if (eval "$as_required") 2>/dev/null; then : 208 as_have_required=yes 209else 210 as_have_required=no 211fi 212 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 213 214else 215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 216as_found=false 217for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 218do 219 IFS=$as_save_IFS 220 test -z "$as_dir" && as_dir=. 221 as_found=: 222 case $as_dir in @%:@( 223 /*) 224 for as_base in sh bash ksh sh5; do 225 # Try only shells that exist, to save several forks. 226 as_shell=$as_dir/$as_base 227 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 228 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 229 CONFIG_SHELL=$as_shell as_have_required=yes 230 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 231 break 2 232fi 233fi 234 done;; 235 esac 236 as_found=false 237done 238$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 239 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 240 CONFIG_SHELL=$SHELL as_have_required=yes 241fi; } 242IFS=$as_save_IFS 243 244 245 if test "x$CONFIG_SHELL" != x; 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. 251BASH_ENV=/dev/null 252ENV=/dev/null 253(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 254case $- in @%:@ (((( 255 *v*x* | *x*v* ) as_opts=-vx ;; 256 *v* ) as_opts=-v ;; 257 *x* ) as_opts=-x ;; 258 * ) as_opts= ;; 259esac 260exec $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$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 264exit 255 265fi 266 267 if test x$as_have_required = xno; then : 268 $as_echo "$0: This script requires a shell more modern than all" 269 $as_echo "$0: the shells that I found on your system." 270 if test x${ZSH_VERSION+set} = xset ; then 271 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 272 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 273 else 274 $as_echo "$0: Please tell bug-autoconf@gnu.org and 275$0: https://github.com/libuv/libuv/issues about your 276$0: system, including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293@%:@ as_fn_unset VAR 294@%:@ --------------- 295@%:@ Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302@%:@ as_fn_set_status STATUS 303@%:@ ----------------------- 304@%:@ Set @S|@? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} @%:@ as_fn_set_status 309 310@%:@ as_fn_exit STATUS 311@%:@ ----------------- 312@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} @%:@ as_fn_exit 319 320@%:@ as_fn_mkdir_p 321@%:@ ------------- 322@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} @%:@ as_fn_mkdir_p 367 368@%:@ as_fn_executable_p FILE 369@%:@ ----------------------- 370@%:@ Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} @%:@ as_fn_executable_p 375@%:@ as_fn_append VAR VALUE 376@%:@ ---------------------- 377@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 378@%:@ advantage of any shell optimizations that allow amortized linear growth over 379@%:@ repeated appends, instead of the typical quadratic growth present in naive 380@%:@ implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393@%:@ as_fn_arith ARG... 394@%:@ ------------------ 395@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 396@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 397@%:@ must be portable across @S|@(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 412@%:@ ---------------------------------------- 413@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415@%:@ script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} @%:@ as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in @%:@((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIB@&t@OBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='libuv' 589PACKAGE_TARNAME='libuv' 590PACKAGE_VERSION='1.42.0' 591PACKAGE_STRING='libuv 1.42.0' 592PACKAGE_BUGREPORT='https://github.com/libuv/libuv/issues' 593PACKAGE_URL='' 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631ac_subst_vars='am__EXEEXT_FALSE 632am__EXEEXT_TRUE 633LTLIBOBJS 634LIB@&t@OBJS 635WINNT_FALSE 636WINNT_TRUE 637SUNOS_FALSE 638SUNOS_TRUE 639OS400_FALSE 640OS400_TRUE 641OS390_FALSE 642OS390_TRUE 643OPENBSD_FALSE 644OPENBSD_TRUE 645NETBSD_FALSE 646NETBSD_TRUE 647MSYS_FALSE 648MSYS_TRUE 649LINUX_FALSE 650LINUX_TRUE 651HURD_FALSE 652HURD_TRUE 653HAIKU_FALSE 654HAIKU_TRUE 655FREEBSD_FALSE 656FREEBSD_TRUE 657DRAGONFLY_FALSE 658DRAGONFLY_TRUE 659DARWIN_FALSE 660DARWIN_TRUE 661CYGWIN_FALSE 662CYGWIN_TRUE 663ANDROID_FALSE 664ANDROID_TRUE 665AIX_FALSE 666AIX_TRUE 667PTHREAD_CFLAGS 668PTHREAD_LIBS 669PTHREAD_CC 670ax_pthread_config 671CPP 672LT_SYS_LIBRARY_PATH 673OTOOL64 674OTOOL 675LIPO 676NMEDIT 677DSYMUTIL 678MANIFEST_TOOL 679RANLIB 680DLLTOOL 681OBJDUMP 682LN_S 683NM 684ac_ct_DUMPBIN 685DUMPBIN 686LD 687FGREP 688EGREP 689GREP 690SED 691LIBTOOL 692ac_ct_AR 693AR 694am__fastdepCC_FALSE 695am__fastdepCC_TRUE 696CCDEPMODE 697am__nodep 698AMDEPBACKSLASH 699AMDEP_FALSE 700AMDEP_TRUE 701am__include 702DEPDIR 703OBJEXT 704EXEEXT 705ac_ct_CC 706CPPFLAGS 707LDFLAGS 708CFLAGS 709CC 710host_os 711host_vendor 712host_cpu 713host 714build_os 715build_vendor 716build_cpu 717build 718AM_BACKSLASH 719AM_DEFAULT_VERBOSITY 720AM_DEFAULT_V 721AM_V 722am__untar 723am__tar 724AMTAR 725am__leading_dot 726SET_MAKE 727AWK 728mkdir_p 729MKDIR_P 730INSTALL_STRIP_PROGRAM 731STRIP 732install_sh 733MAKEINFO 734AUTOHEADER 735AUTOMAKE 736AUTOCONF 737ACLOCAL 738VERSION 739PACKAGE 740CYGPATH_W 741am__isrc 742INSTALL_DATA 743INSTALL_SCRIPT 744INSTALL_PROGRAM 745target_alias 746host_alias 747build_alias 748LIBS 749ECHO_T 750ECHO_N 751ECHO_C 752DEFS 753mandir 754localedir 755libdir 756psdir 757pdfdir 758dvidir 759htmldir 760infodir 761docdir 762oldincludedir 763includedir 764runstatedir 765localstatedir 766sharedstatedir 767sysconfdir 768datadir 769datarootdir 770libexecdir 771sbindir 772bindir 773program_transform_name 774prefix 775exec_prefix 776PACKAGE_URL 777PACKAGE_BUGREPORT 778PACKAGE_STRING 779PACKAGE_VERSION 780PACKAGE_TARNAME 781PACKAGE_NAME 782PATH_SEPARATOR 783SHELL 784am__quote' 785ac_subst_files='' 786ac_user_opts=' 787enable_option_checking 788enable_silent_rules 789enable_shared 790enable_static 791enable_dependency_tracking 792with_pic 793enable_fast_install 794with_aix_soname 795with_gnu_ld 796with_sysroot 797enable_libtool_lock 798enable_largefile 799' 800 ac_precious_vars='build_alias 801host_alias 802target_alias 803CC 804CFLAGS 805LDFLAGS 806LIBS 807CPPFLAGS 808LT_SYS_LIBRARY_PATH 809CPP' 810 811 812# Initialize some variables set by options. 813ac_init_help= 814ac_init_version=false 815ac_unrecognized_opts= 816ac_unrecognized_sep= 817# The variables have the same names as the options, with 818# dashes changed to underlines. 819cache_file=/dev/null 820exec_prefix=NONE 821no_create= 822no_recursion= 823prefix=NONE 824program_prefix=NONE 825program_suffix=NONE 826program_transform_name=s,x,x, 827silent= 828site= 829srcdir= 830verbose= 831x_includes=NONE 832x_libraries=NONE 833 834# Installation directory options. 835# These are left unexpanded so users can "make install exec_prefix=/foo" 836# and all the variables that are supposed to be based on exec_prefix 837# by default will actually change. 838# Use braces instead of parens because sh, perl, etc. also accept them. 839# (The list follows the same order as the GNU Coding Standards.) 840bindir='${exec_prefix}/bin' 841sbindir='${exec_prefix}/sbin' 842libexecdir='${exec_prefix}/libexec' 843datarootdir='${prefix}/share' 844datadir='${datarootdir}' 845sysconfdir='${prefix}/etc' 846sharedstatedir='${prefix}/com' 847localstatedir='${prefix}/var' 848runstatedir='${localstatedir}/run' 849includedir='${prefix}/include' 850oldincludedir='/usr/include' 851docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 852infodir='${datarootdir}/info' 853htmldir='${docdir}' 854dvidir='${docdir}' 855pdfdir='${docdir}' 856psdir='${docdir}' 857libdir='${exec_prefix}/lib' 858localedir='${datarootdir}/locale' 859mandir='${datarootdir}/man' 860 861ac_prev= 862ac_dashdash= 863for ac_option 864do 865 # If the previous option needs an argument, assign it. 866 if test -n "$ac_prev"; then 867 eval $ac_prev=\$ac_option 868 ac_prev= 869 continue 870 fi 871 872 case $ac_option in 873 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 874 *=) ac_optarg= ;; 875 *) ac_optarg=yes ;; 876 esac 877 878 # Accept the important Cygnus configure options, so we can diagnose typos. 879 880 case $ac_dashdash$ac_option in 881 --) 882 ac_dashdash=yes ;; 883 884 -bindir | --bindir | --bindi | --bind | --bin | --bi) 885 ac_prev=bindir ;; 886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 887 bindir=$ac_optarg ;; 888 889 -build | --build | --buil | --bui | --bu) 890 ac_prev=build_alias ;; 891 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 892 build_alias=$ac_optarg ;; 893 894 -cache-file | --cache-file | --cache-fil | --cache-fi \ 895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 896 ac_prev=cache_file ;; 897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 899 cache_file=$ac_optarg ;; 900 901 --config-cache | -C) 902 cache_file=config.cache ;; 903 904 -datadir | --datadir | --datadi | --datad) 905 ac_prev=datadir ;; 906 -datadir=* | --datadir=* | --datadi=* | --datad=*) 907 datadir=$ac_optarg ;; 908 909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 910 | --dataroo | --dataro | --datar) 911 ac_prev=datarootdir ;; 912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 914 datarootdir=$ac_optarg ;; 915 916 -disable-* | --disable-*) 917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 918 # Reject names that are not valid shell variable names. 919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 920 as_fn_error $? "invalid feature name: $ac_useropt" 921 ac_useropt_orig=$ac_useropt 922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 923 case $ac_user_opts in 924 *" 925"enable_$ac_useropt" 926"*) ;; 927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 928 ac_unrecognized_sep=', ';; 929 esac 930 eval enable_$ac_useropt=no ;; 931 932 -docdir | --docdir | --docdi | --doc | --do) 933 ac_prev=docdir ;; 934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 935 docdir=$ac_optarg ;; 936 937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 938 ac_prev=dvidir ;; 939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 940 dvidir=$ac_optarg ;; 941 942 -enable-* | --enable-*) 943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 944 # Reject names that are not valid shell variable names. 945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 946 as_fn_error $? "invalid feature name: $ac_useropt" 947 ac_useropt_orig=$ac_useropt 948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 949 case $ac_user_opts in 950 *" 951"enable_$ac_useropt" 952"*) ;; 953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 954 ac_unrecognized_sep=', ';; 955 esac 956 eval enable_$ac_useropt=\$ac_optarg ;; 957 958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 960 | --exec | --exe | --ex) 961 ac_prev=exec_prefix ;; 962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 964 | --exec=* | --exe=* | --ex=*) 965 exec_prefix=$ac_optarg ;; 966 967 -gas | --gas | --ga | --g) 968 # Obsolete; use --with-gas. 969 with_gas=yes ;; 970 971 -help | --help | --hel | --he | -h) 972 ac_init_help=long ;; 973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 974 ac_init_help=recursive ;; 975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 976 ac_init_help=short ;; 977 978 -host | --host | --hos | --ho) 979 ac_prev=host_alias ;; 980 -host=* | --host=* | --hos=* | --ho=*) 981 host_alias=$ac_optarg ;; 982 983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 984 ac_prev=htmldir ;; 985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 986 | --ht=*) 987 htmldir=$ac_optarg ;; 988 989 -includedir | --includedir | --includedi | --included | --include \ 990 | --includ | --inclu | --incl | --inc) 991 ac_prev=includedir ;; 992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 993 | --includ=* | --inclu=* | --incl=* | --inc=*) 994 includedir=$ac_optarg ;; 995 996 -infodir | --infodir | --infodi | --infod | --info | --inf) 997 ac_prev=infodir ;; 998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 999 infodir=$ac_optarg ;; 1000 1001 -libdir | --libdir | --libdi | --libd) 1002 ac_prev=libdir ;; 1003 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1004 libdir=$ac_optarg ;; 1005 1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1007 | --libexe | --libex | --libe) 1008 ac_prev=libexecdir ;; 1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1010 | --libexe=* | --libex=* | --libe=*) 1011 libexecdir=$ac_optarg ;; 1012 1013 -localedir | --localedir | --localedi | --localed | --locale) 1014 ac_prev=localedir ;; 1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1016 localedir=$ac_optarg ;; 1017 1018 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1019 | --localstate | --localstat | --localsta | --localst | --locals) 1020 ac_prev=localstatedir ;; 1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1023 localstatedir=$ac_optarg ;; 1024 1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1026 ac_prev=mandir ;; 1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1028 mandir=$ac_optarg ;; 1029 1030 -nfp | --nfp | --nf) 1031 # Obsolete; use --without-fp. 1032 with_fp=no ;; 1033 1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1035 | --no-cr | --no-c | -n) 1036 no_create=yes ;; 1037 1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1040 no_recursion=yes ;; 1041 1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1044 | --oldin | --oldi | --old | --ol | --o) 1045 ac_prev=oldincludedir ;; 1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1049 oldincludedir=$ac_optarg ;; 1050 1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1052 ac_prev=prefix ;; 1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1054 prefix=$ac_optarg ;; 1055 1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1057 | --program-pre | --program-pr | --program-p) 1058 ac_prev=program_prefix ;; 1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1061 program_prefix=$ac_optarg ;; 1062 1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1064 | --program-suf | --program-su | --program-s) 1065 ac_prev=program_suffix ;; 1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1068 program_suffix=$ac_optarg ;; 1069 1070 -program-transform-name | --program-transform-name \ 1071 | --program-transform-nam | --program-transform-na \ 1072 | --program-transform-n | --program-transform- \ 1073 | --program-transform | --program-transfor \ 1074 | --program-transfo | --program-transf \ 1075 | --program-trans | --program-tran \ 1076 | --progr-tra | --program-tr | --program-t) 1077 ac_prev=program_transform_name ;; 1078 -program-transform-name=* | --program-transform-name=* \ 1079 | --program-transform-nam=* | --program-transform-na=* \ 1080 | --program-transform-n=* | --program-transform-=* \ 1081 | --program-transform=* | --program-transfor=* \ 1082 | --program-transfo=* | --program-transf=* \ 1083 | --program-trans=* | --program-tran=* \ 1084 | --progr-tra=* | --program-tr=* | --program-t=*) 1085 program_transform_name=$ac_optarg ;; 1086 1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1088 ac_prev=pdfdir ;; 1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1090 pdfdir=$ac_optarg ;; 1091 1092 -psdir | --psdir | --psdi | --psd | --ps) 1093 ac_prev=psdir ;; 1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1095 psdir=$ac_optarg ;; 1096 1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1098 | -silent | --silent | --silen | --sile | --sil) 1099 silent=yes ;; 1100 1101 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1102 | --runstate | --runstat | --runsta | --runst | --runs \ 1103 | --run | --ru | --r) 1104 ac_prev=runstatedir ;; 1105 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1106 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1107 | --run=* | --ru=* | --r=*) 1108 runstatedir=$ac_optarg ;; 1109 1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1111 ac_prev=sbindir ;; 1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1113 | --sbi=* | --sb=*) 1114 sbindir=$ac_optarg ;; 1115 1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1118 | --sharedst | --shareds | --shared | --share | --shar \ 1119 | --sha | --sh) 1120 ac_prev=sharedstatedir ;; 1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1124 | --sha=* | --sh=*) 1125 sharedstatedir=$ac_optarg ;; 1126 1127 -site | --site | --sit) 1128 ac_prev=site ;; 1129 -site=* | --site=* | --sit=*) 1130 site=$ac_optarg ;; 1131 1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1133 ac_prev=srcdir ;; 1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1135 srcdir=$ac_optarg ;; 1136 1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1138 | --syscon | --sysco | --sysc | --sys | --sy) 1139 ac_prev=sysconfdir ;; 1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1142 sysconfdir=$ac_optarg ;; 1143 1144 -target | --target | --targe | --targ | --tar | --ta | --t) 1145 ac_prev=target_alias ;; 1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1147 target_alias=$ac_optarg ;; 1148 1149 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1150 verbose=yes ;; 1151 1152 -version | --version | --versio | --versi | --vers | -V) 1153 ac_init_version=: ;; 1154 1155 -with-* | --with-*) 1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1157 # Reject names that are not valid shell variable names. 1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1159 as_fn_error $? "invalid package name: $ac_useropt" 1160 ac_useropt_orig=$ac_useropt 1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1162 case $ac_user_opts in 1163 *" 1164"with_$ac_useropt" 1165"*) ;; 1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1167 ac_unrecognized_sep=', ';; 1168 esac 1169 eval with_$ac_useropt=\$ac_optarg ;; 1170 1171 -without-* | --without-*) 1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1173 # Reject names that are not valid shell variable names. 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1175 as_fn_error $? "invalid package name: $ac_useropt" 1176 ac_useropt_orig=$ac_useropt 1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1178 case $ac_user_opts in 1179 *" 1180"with_$ac_useropt" 1181"*) ;; 1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1183 ac_unrecognized_sep=', ';; 1184 esac 1185 eval with_$ac_useropt=no ;; 1186 1187 --x) 1188 # Obsolete; use --with-x. 1189 with_x=yes ;; 1190 1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1192 | --x-incl | --x-inc | --x-in | --x-i) 1193 ac_prev=x_includes ;; 1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1196 x_includes=$ac_optarg ;; 1197 1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1200 ac_prev=x_libraries ;; 1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1203 x_libraries=$ac_optarg ;; 1204 1205 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1206Try \`$0 --help' for more information" 1207 ;; 1208 1209 *=*) 1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1211 # Reject names that are not valid shell variable names. 1212 case $ac_envvar in #( 1213 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1215 esac 1216 eval $ac_envvar=\$ac_optarg 1217 export $ac_envvar ;; 1218 1219 *) 1220 # FIXME: should be removed in autoconf 3.0. 1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1225 ;; 1226 1227 esac 1228done 1229 1230if test -n "$ac_prev"; then 1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1232 as_fn_error $? "missing argument to $ac_option" 1233fi 1234 1235if test -n "$ac_unrecognized_opts"; then 1236 case $enable_option_checking in 1237 no) ;; 1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1240 esac 1241fi 1242 1243# Check all directory arguments for consistency. 1244for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1245 datadir sysconfdir sharedstatedir localstatedir includedir \ 1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1247 libdir localedir mandir runstatedir 1248do 1249 eval ac_val=\$$ac_var 1250 # Remove trailing slashes. 1251 case $ac_val in 1252 */ ) 1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1254 eval $ac_var=\$ac_val;; 1255 esac 1256 # Be sure to have absolute directory names. 1257 case $ac_val in 1258 [\\/$]* | ?:[\\/]* ) continue;; 1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1260 esac 1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1262done 1263 1264# There might be people who depend on the old broken behavior: `$host' 1265# used to hold the argument of --host etc. 1266# FIXME: To remove some day. 1267build=$build_alias 1268host=$host_alias 1269target=$target_alias 1270 1271# FIXME: To remove some day. 1272if test "x$host_alias" != x; then 1273 if test "x$build_alias" = x; then 1274 cross_compiling=maybe 1275 elif test "x$build_alias" != "x$host_alias"; then 1276 cross_compiling=yes 1277 fi 1278fi 1279 1280ac_tool_prefix= 1281test -n "$host_alias" && ac_tool_prefix=$host_alias- 1282 1283test "$silent" = yes && exec 6>/dev/null 1284 1285 1286ac_pwd=`pwd` && test -n "$ac_pwd" && 1287ac_ls_di=`ls -di .` && 1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1289 as_fn_error $? "working directory cannot be determined" 1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1291 as_fn_error $? "pwd does not report name of working directory" 1292 1293 1294# Find the source files, if location was not specified. 1295if test -z "$srcdir"; then 1296 ac_srcdir_defaulted=yes 1297 # Try the directory containing this script, then the parent directory. 1298 ac_confdir=`$as_dirname -- "$as_myself" || 1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1300 X"$as_myself" : 'X\(//\)[^/]' \| \ 1301 X"$as_myself" : 'X\(//\)$' \| \ 1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1303$as_echo X"$as_myself" | 1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\/\)[^/].*/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\/\)$/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\).*/{ 1317 s//\1/ 1318 q 1319 } 1320 s/.*/./; q'` 1321 srcdir=$ac_confdir 1322 if test ! -r "$srcdir/$ac_unique_file"; then 1323 srcdir=.. 1324 fi 1325else 1326 ac_srcdir_defaulted=no 1327fi 1328if test ! -r "$srcdir/$ac_unique_file"; then 1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1331fi 1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1333ac_abs_confdir=`( 1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1335 pwd)` 1336# When building in place, set srcdir=. 1337if test "$ac_abs_confdir" = "$ac_pwd"; then 1338 srcdir=. 1339fi 1340# Remove unnecessary trailing slashes from srcdir. 1341# Double slashes in file names in object file debugging info 1342# mess up M-x gdb in Emacs. 1343case $srcdir in 1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1345esac 1346for ac_var in $ac_precious_vars; do 1347 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_env_${ac_var}_value=\$${ac_var} 1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1350 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1351done 1352 1353# 1354# Report the --help message. 1355# 1356if test "$ac_init_help" = "long"; then 1357 # Omit some internal or obsolete options to make the list less imposing. 1358 # This message is too long to be a string in the A/UX 3.1 sh. 1359 cat <<_ACEOF 1360\`configure' configures libuv 1.42.0 to adapt to many kinds of systems. 1361 1362Usage: $0 [OPTION]... [VAR=VALUE]... 1363 1364To assign environment variables (e.g., CC, CFLAGS...), specify them as 1365VAR=VALUE. See below for descriptions of some of the useful variables. 1366 1367Defaults for the options are specified in brackets. 1368 1369Configuration: 1370 -h, --help display this help and exit 1371 --help=short display options specific to this package 1372 --help=recursive display the short help of all the included packages 1373 -V, --version display version information and exit 1374 -q, --quiet, --silent do not print \`checking ...' messages 1375 --cache-file=FILE cache test results in FILE [disabled] 1376 -C, --config-cache alias for \`--cache-file=config.cache' 1377 -n, --no-create do not create output files 1378 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1379 1380Installation directories: 1381 --prefix=PREFIX install architecture-independent files in PREFIX 1382 @<:@@S|@ac_default_prefix@:>@ 1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1384 @<:@PREFIX@:>@ 1385 1386By default, \`make install' will install all the files in 1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1388an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1389for instance \`--prefix=\$HOME'. 1390 1391For better control, use the options below. 1392 1393Fine tuning of the installation directories: 1394 --bindir=DIR user executables [EPREFIX/bin] 1395 --sbindir=DIR system admin executables [EPREFIX/sbin] 1396 --libexecdir=DIR program executables [EPREFIX/libexec] 1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1400 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1401 --libdir=DIR object code libraries [EPREFIX/lib] 1402 --includedir=DIR C header files [PREFIX/include] 1403 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1406 --infodir=DIR info documentation [DATAROOTDIR/info] 1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1408 --mandir=DIR man documentation [DATAROOTDIR/man] 1409 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libuv@:>@ 1410 --htmldir=DIR html documentation [DOCDIR] 1411 --dvidir=DIR dvi documentation [DOCDIR] 1412 --pdfdir=DIR pdf documentation [DOCDIR] 1413 --psdir=DIR ps documentation [DOCDIR] 1414_ACEOF 1415 1416 cat <<\_ACEOF 1417 1418Program names: 1419 --program-prefix=PREFIX prepend PREFIX to installed program names 1420 --program-suffix=SUFFIX append SUFFIX to installed program names 1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1422 1423System types: 1424 --build=BUILD configure for building on BUILD [guessed] 1425 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1426_ACEOF 1427fi 1428 1429if test -n "$ac_init_help"; then 1430 case $ac_init_help in 1431 short | recursive ) echo "Configuration of libuv 1.42.0:";; 1432 esac 1433 cat <<\_ACEOF 1434 1435Optional Features: 1436 --disable-option-checking ignore unrecognized --enable/--with options 1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1439 --enable-silent-rules less verbose build output (undo: "make V=1") 1440 --disable-silent-rules verbose build output (undo: "make V=0") 1441 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1442 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1443 --enable-dependency-tracking 1444 do not reject slow dependency extractors 1445 --disable-dependency-tracking 1446 speeds up one-time build 1447 --enable-fast-install@<:@=PKGS@:>@ 1448 optimize for fast installation @<:@default=yes@:>@ 1449 --disable-libtool-lock avoid locking (might break parallel builds) 1450 --disable-largefile omit support for large files 1451 1452Optional Packages: 1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1455 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use 1456 both@:>@ 1457 --with-aix-soname=aix|svr4|both 1458 shared library versioning (aka "SONAME") variant to 1459 provide on AIX, @<:@default=aix@:>@. 1460 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1461 --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the 1462 compiler's sysroot if not specified). 1463 1464Some influential environment variables: 1465 CC C compiler command 1466 CFLAGS C compiler flags 1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1468 nonstandard directory <lib dir> 1469 LIBS libraries to pass to the linker, e.g. -l<library> 1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1471 you have headers in a nonstandard directory <include dir> 1472 LT_SYS_LIBRARY_PATH 1473 User-defined run-time library search path. 1474 CPP C preprocessor 1475 1476Use these variables to override the choices made by `configure' or to help 1477it to find libraries and programs with nonstandard names/locations. 1478 1479Report bugs to <https://github.com/libuv/libuv/issues>. 1480_ACEOF 1481ac_status=$? 1482fi 1483 1484if test "$ac_init_help" = "recursive"; then 1485 # If there are subdirs, report their specific --help. 1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1487 test -d "$ac_dir" || 1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1489 continue 1490 ac_builddir=. 1491 1492case "$ac_dir" in 1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1494*) 1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1496 # A ".." for each directory in $ac_dir_suffix. 1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1498 case $ac_top_builddir_sub in 1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1501 esac ;; 1502esac 1503ac_abs_top_builddir=$ac_pwd 1504ac_abs_builddir=$ac_pwd$ac_dir_suffix 1505# for backward compatibility: 1506ac_top_builddir=$ac_top_build_prefix 1507 1508case $srcdir in 1509 .) # We are building in place. 1510 ac_srcdir=. 1511 ac_top_srcdir=$ac_top_builddir_sub 1512 ac_abs_top_srcdir=$ac_pwd ;; 1513 [\\/]* | ?:[\\/]* ) # Absolute name. 1514 ac_srcdir=$srcdir$ac_dir_suffix; 1515 ac_top_srcdir=$srcdir 1516 ac_abs_top_srcdir=$srcdir ;; 1517 *) # Relative name. 1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1519 ac_top_srcdir=$ac_top_build_prefix$srcdir 1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1521esac 1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1523 1524 cd "$ac_dir" || { ac_status=$?; continue; } 1525 # Check for guested configure. 1526 if test -f "$ac_srcdir/configure.gnu"; then 1527 echo && 1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1529 elif test -f "$ac_srcdir/configure"; then 1530 echo && 1531 $SHELL "$ac_srcdir/configure" --help=recursive 1532 else 1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1534 fi || ac_status=$? 1535 cd "$ac_pwd" || { ac_status=$?; break; } 1536 done 1537fi 1538 1539test -n "$ac_init_help" && exit $ac_status 1540if $ac_init_version; then 1541 cat <<\_ACEOF 1542libuv configure 1.42.0 1543generated by GNU Autoconf 2.69 1544 1545Copyright (C) 2012 Free Software Foundation, Inc. 1546This configure script is free software; the Free Software Foundation 1547gives unlimited permission to copy, distribute and modify it. 1548_ACEOF 1549 exit 1550fi 1551 1552## ------------------------ ## 1553## Autoconf initialization. ## 1554## ------------------------ ## 1555 1556@%:@ ac_fn_c_try_compile LINENO 1557@%:@ -------------------------- 1558@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1559ac_fn_c_try_compile () 1560{ 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 rm -f conftest.$ac_objext 1563 if { { ac_try="$ac_compile" 1564case "(($ac_try" in 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1566 *) ac_try_echo=$ac_try;; 1567esac 1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1569$as_echo "$ac_try_echo"; } >&5 1570 (eval "$ac_compile") 2>conftest.err 1571 ac_status=$? 1572 if test -s conftest.err; then 1573 grep -v '^ *+' conftest.err >conftest.er1 1574 cat conftest.er1 >&5 1575 mv -f conftest.er1 conftest.err 1576 fi 1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1578 test $ac_status = 0; } && { 1579 test -z "$ac_c_werror_flag" || 1580 test ! -s conftest.err 1581 } && test -s conftest.$ac_objext; then : 1582 ac_retval=0 1583else 1584 $as_echo "$as_me: failed program was:" >&5 1585sed 's/^/| /' conftest.$ac_ext >&5 1586 1587 ac_retval=1 1588fi 1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1590 as_fn_set_status $ac_retval 1591 1592} @%:@ ac_fn_c_try_compile 1593 1594@%:@ ac_fn_c_try_link LINENO 1595@%:@ ----------------------- 1596@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1597ac_fn_c_try_link () 1598{ 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 rm -f conftest.$ac_objext conftest$ac_exeext 1601 if { { ac_try="$ac_link" 1602case "(($ac_try" in 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1604 *) ac_try_echo=$ac_try;; 1605esac 1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1607$as_echo "$ac_try_echo"; } >&5 1608 (eval "$ac_link") 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 $as_echo "$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_exeext && { 1620 test "$cross_compiling" = yes || 1621 test -x conftest$ac_exeext 1622 }; then : 1623 ac_retval=0 1624else 1625 $as_echo "$as_me: failed program was:" >&5 1626sed 's/^/| /' conftest.$ac_ext >&5 1627 1628 ac_retval=1 1629fi 1630 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1631 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1632 # interfere with the next link command; also delete a directory that is 1633 # left behind by Apple's compiler. We do this before executing the actions. 1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1636 as_fn_set_status $ac_retval 1637 1638} @%:@ ac_fn_c_try_link 1639 1640@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1641@%:@ ------------------------------------------------------- 1642@%:@ Tests whether HEADER exists and can be compiled using the include files in 1643@%:@ INCLUDES, setting the cache variable VAR accordingly. 1644ac_fn_c_check_header_compile () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1648$as_echo_n "checking for $2... " >&6; } 1649if eval \${$3+:} false; then : 1650 $as_echo_n "(cached) " >&6 1651else 1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1653/* end confdefs.h. */ 1654$4 1655@%:@include <$2> 1656_ACEOF 1657if ac_fn_c_try_compile "$LINENO"; then : 1658 eval "$3=yes" 1659else 1660 eval "$3=no" 1661fi 1662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1663fi 1664eval ac_res=\$$3 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1666$as_echo "$ac_res" >&6; } 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 1669} @%:@ ac_fn_c_check_header_compile 1670 1671@%:@ ac_fn_c_try_cpp LINENO 1672@%:@ ---------------------- 1673@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1674ac_fn_c_try_cpp () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 if { { ac_try="$ac_cpp conftest.$ac_ext" 1678case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683$as_echo "$ac_try_echo"; } >&5 1684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1685 ac_status=$? 1686 if test -s conftest.err; then 1687 grep -v '^ *+' conftest.err >conftest.er1 1688 cat conftest.er1 >&5 1689 mv -f conftest.er1 conftest.err 1690 fi 1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; } > conftest.i && { 1693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1694 test ! -s conftest.err 1695 }; then : 1696 ac_retval=0 1697else 1698 $as_echo "$as_me: failed program was:" >&5 1699sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=1 1702fi 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 as_fn_set_status $ac_retval 1705 1706} @%:@ ac_fn_c_try_cpp 1707 1708@%:@ ac_fn_c_try_run LINENO 1709@%:@ ---------------------- 1710@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes 1711@%:@ that executables *can* be run. 1712ac_fn_c_try_run () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 if { { ac_try="$ac_link" 1716case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721$as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_link") 2>&5 1723 ac_status=$? 1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1726 { { case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_try") 2>&5 1733 ac_status=$? 1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1735 test $ac_status = 0; }; }; then : 1736 ac_retval=0 1737else 1738 $as_echo "$as_me: program exited with status $ac_status" >&5 1739 $as_echo "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=$ac_status 1743fi 1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1746 as_fn_set_status $ac_retval 1747 1748} @%:@ ac_fn_c_try_run 1749 1750@%:@ ac_fn_c_check_func LINENO FUNC VAR 1751@%:@ ---------------------------------- 1752@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 1753ac_fn_c_check_func () 1754{ 1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1757$as_echo_n "checking for $2... " >&6; } 1758if eval \${$3+:} false; then : 1759 $as_echo_n "(cached) " >&6 1760else 1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1762/* end confdefs.h. */ 1763/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1764 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1765#define $2 innocuous_$2 1766 1767/* System header to define __stub macros and hopefully few prototypes, 1768 which can conflict with char $2 (); below. 1769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1770 <limits.h> exists even on freestanding compilers. */ 1771 1772#ifdef __STDC__ 1773# include <limits.h> 1774#else 1775# include <assert.h> 1776#endif 1777 1778#undef $2 1779 1780/* Override any GCC internal prototype to avoid an error. 1781 Use char because int might match the return type of a GCC 1782 builtin and then its argument prototype would still apply. */ 1783#ifdef __cplusplus 1784extern "C" 1785#endif 1786char $2 (); 1787/* The GNU C library defines this for functions which it implements 1788 to always fail with ENOSYS. Some functions are actually named 1789 something starting with __ and the normal name is an alias. */ 1790#if defined __stub_$2 || defined __stub___$2 1791choke me 1792#endif 1793 1794int 1795main () 1796{ 1797return $2 (); 1798 ; 1799 return 0; 1800} 1801_ACEOF 1802if ac_fn_c_try_link "$LINENO"; then : 1803 eval "$3=yes" 1804else 1805 eval "$3=no" 1806fi 1807rm -f core conftest.err conftest.$ac_objext \ 1808 conftest$ac_exeext conftest.$ac_ext 1809fi 1810eval ac_res=\$$3 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1812$as_echo "$ac_res" >&6; } 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 1815} @%:@ ac_fn_c_check_func 1816 1817@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1818@%:@ ------------------------------------------------------- 1819@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using 1820@%:@ the include files in INCLUDES and setting the cache variable VAR 1821@%:@ accordingly. 1822ac_fn_c_check_header_mongrel () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 if eval \${$3+:} false; then : 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1827$as_echo_n "checking for $2... " >&6; } 1828if eval \${$3+:} false; then : 1829 $as_echo_n "(cached) " >&6 1830fi 1831eval ac_res=\$$3 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1833$as_echo "$ac_res" >&6; } 1834else 1835 # Is the header compilable? 1836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1837$as_echo_n "checking $2 usability... " >&6; } 1838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1839/* end confdefs.h. */ 1840$4 1841@%:@include <$2> 1842_ACEOF 1843if ac_fn_c_try_compile "$LINENO"; then : 1844 ac_header_compiler=yes 1845else 1846 ac_header_compiler=no 1847fi 1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1850$as_echo "$ac_header_compiler" >&6; } 1851 1852# Is the header present? 1853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1854$as_echo_n "checking $2 presence... " >&6; } 1855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1856/* end confdefs.h. */ 1857@%:@include <$2> 1858_ACEOF 1859if ac_fn_c_try_cpp "$LINENO"; then : 1860 ac_header_preproc=yes 1861else 1862 ac_header_preproc=no 1863fi 1864rm -f conftest.err conftest.i conftest.$ac_ext 1865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1866$as_echo "$ac_header_preproc" >&6; } 1867 1868# So? What about this header? 1869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1870 yes:no: ) 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1872$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1874$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1875 ;; 1876 no:yes:* ) 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1878$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1880$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1882$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1884$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1886$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1887( $as_echo "## ---------------------------------------------------- ## 1888## Report this to https://github.com/libuv/libuv/issues ## 1889## ---------------------------------------------------- ##" 1890 ) | sed "s/^/$as_me: WARNING: /" >&2 1891 ;; 1892esac 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1894$as_echo_n "checking for $2... " >&6; } 1895if eval \${$3+:} false; then : 1896 $as_echo_n "(cached) " >&6 1897else 1898 eval "$3=\$ac_header_compiler" 1899fi 1900eval ac_res=\$$3 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1902$as_echo "$ac_res" >&6; } 1903fi 1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1905 1906} @%:@ ac_fn_c_check_header_mongrel 1907cat >config.log <<_ACEOF 1908This file contains any messages produced by compilers while 1909running configure, to aid debugging if configure makes a mistake. 1910 1911It was created by libuv $as_me 1.42.0, which was 1912generated by GNU Autoconf 2.69. Invocation command line was 1913 1914 $ $0 $@ 1915 1916_ACEOF 1917exec 5>>config.log 1918{ 1919cat <<_ASUNAME 1920## --------- ## 1921## Platform. ## 1922## --------- ## 1923 1924hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1925uname -m = `(uname -m) 2>/dev/null || echo unknown` 1926uname -r = `(uname -r) 2>/dev/null || echo unknown` 1927uname -s = `(uname -s) 2>/dev/null || echo unknown` 1928uname -v = `(uname -v) 2>/dev/null || echo unknown` 1929 1930/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1931/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1932 1933/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1934/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1935/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1936/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1937/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1938/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1939/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1940 1941_ASUNAME 1942 1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1944for as_dir in $PATH 1945do 1946 IFS=$as_save_IFS 1947 test -z "$as_dir" && as_dir=. 1948 $as_echo "PATH: $as_dir" 1949 done 1950IFS=$as_save_IFS 1951 1952} >&5 1953 1954cat >&5 <<_ACEOF 1955 1956 1957## ----------- ## 1958## Core tests. ## 1959## ----------- ## 1960 1961_ACEOF 1962 1963 1964# Keep a trace of the command line. 1965# Strip out --no-create and --no-recursion so they do not pile up. 1966# Strip out --silent because we don't want to record it for future runs. 1967# Also quote any args containing shell meta-characters. 1968# Make two passes to allow for proper duplicate-argument suppression. 1969ac_configure_args= 1970ac_configure_args0= 1971ac_configure_args1= 1972ac_must_keep_next=false 1973for ac_pass in 1 2 1974do 1975 for ac_arg 1976 do 1977 case $ac_arg in 1978 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1980 | -silent | --silent | --silen | --sile | --sil) 1981 continue ;; 1982 *\'*) 1983 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1984 esac 1985 case $ac_pass in 1986 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1987 2) 1988 as_fn_append ac_configure_args1 " '$ac_arg'" 1989 if test $ac_must_keep_next = true; then 1990 ac_must_keep_next=false # Got value, back to normal. 1991 else 1992 case $ac_arg in 1993 *=* | --config-cache | -C | -disable-* | --disable-* \ 1994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1996 | -with-* | --with-* | -without-* | --without-* | --x) 1997 case "$ac_configure_args0 " in 1998 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1999 esac 2000 ;; 2001 -* ) ac_must_keep_next=true ;; 2002 esac 2003 fi 2004 as_fn_append ac_configure_args " '$ac_arg'" 2005 ;; 2006 esac 2007 done 2008done 2009{ ac_configure_args0=; unset ac_configure_args0;} 2010{ ac_configure_args1=; unset ac_configure_args1;} 2011 2012# When interrupted or exit'd, cleanup temporary files, and complete 2013# config.log. We remove comments because anyway the quotes in there 2014# would cause problems or look ugly. 2015# WARNING: Use '\'' to represent an apostrophe within the trap. 2016# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2017trap 'exit_status=$? 2018 # Save into config.log some information that might help in debugging. 2019 { 2020 echo 2021 2022 $as_echo "## ---------------- ## 2023## Cache variables. ## 2024## ---------------- ##" 2025 echo 2026 # The following way of writing the cache mishandles newlines in values, 2027( 2028 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2029 eval ac_val=\$$ac_var 2030 case $ac_val in #( 2031 *${as_nl}*) 2032 case $ac_var in #( 2033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2034$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2035 esac 2036 case $ac_var in #( 2037 _ | IFS | as_nl) ;; #( 2038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2039 *) { eval $ac_var=; unset $ac_var;} ;; 2040 esac ;; 2041 esac 2042 done 2043 (set) 2>&1 | 2044 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2045 *${as_nl}ac_space=\ *) 2046 sed -n \ 2047 "s/'\''/'\''\\\\'\'''\''/g; 2048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2049 ;; #( 2050 *) 2051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2052 ;; 2053 esac | 2054 sort 2055) 2056 echo 2057 2058 $as_echo "## ----------------- ## 2059## Output variables. ## 2060## ----------------- ##" 2061 echo 2062 for ac_var in $ac_subst_vars 2063 do 2064 eval ac_val=\$$ac_var 2065 case $ac_val in 2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2067 esac 2068 $as_echo "$ac_var='\''$ac_val'\''" 2069 done | sort 2070 echo 2071 2072 if test -n "$ac_subst_files"; then 2073 $as_echo "## ------------------- ## 2074## File substitutions. ## 2075## ------------------- ##" 2076 echo 2077 for ac_var in $ac_subst_files 2078 do 2079 eval ac_val=\$$ac_var 2080 case $ac_val in 2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2082 esac 2083 $as_echo "$ac_var='\''$ac_val'\''" 2084 done | sort 2085 echo 2086 fi 2087 2088 if test -s confdefs.h; then 2089 $as_echo "## ----------- ## 2090## confdefs.h. ## 2091## ----------- ##" 2092 echo 2093 cat confdefs.h 2094 echo 2095 fi 2096 test "$ac_signal" != 0 && 2097 $as_echo "$as_me: caught signal $ac_signal" 2098 $as_echo "$as_me: exit $exit_status" 2099 } >&5 2100 rm -f core *.core core.conftest.* && 2101 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2102 exit $exit_status 2103' 0 2104for ac_signal in 1 2 13 15; do 2105 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2106done 2107ac_signal=0 2108 2109# confdefs.h avoids OS command line length limits that DEFS can exceed. 2110rm -f -r conftest* confdefs.h 2111 2112$as_echo "/* confdefs.h */" > confdefs.h 2113 2114# Predefined preprocessor variables. 2115 2116cat >>confdefs.h <<_ACEOF 2117@%:@define PACKAGE_NAME "$PACKAGE_NAME" 2118_ACEOF 2119 2120cat >>confdefs.h <<_ACEOF 2121@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2122_ACEOF 2123 2124cat >>confdefs.h <<_ACEOF 2125@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 2126_ACEOF 2127 2128cat >>confdefs.h <<_ACEOF 2129@%:@define PACKAGE_STRING "$PACKAGE_STRING" 2130_ACEOF 2131 2132cat >>confdefs.h <<_ACEOF 2133@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2134_ACEOF 2135 2136cat >>confdefs.h <<_ACEOF 2137@%:@define PACKAGE_URL "$PACKAGE_URL" 2138_ACEOF 2139 2140 2141# Let the site file select an alternate cache file if it wants to. 2142# Prefer an explicitly selected file to automatically selected ones. 2143ac_site_file1=NONE 2144ac_site_file2=NONE 2145if test -n "$CONFIG_SITE"; then 2146 # We do not want a PATH search for config.site. 2147 case $CONFIG_SITE in @%:@(( 2148 -*) ac_site_file1=./$CONFIG_SITE;; 2149 */*) ac_site_file1=$CONFIG_SITE;; 2150 *) ac_site_file1=./$CONFIG_SITE;; 2151 esac 2152elif test "x$prefix" != xNONE; then 2153 ac_site_file1=$prefix/share/config.site 2154 ac_site_file2=$prefix/etc/config.site 2155else 2156 ac_site_file1=$ac_default_prefix/share/config.site 2157 ac_site_file2=$ac_default_prefix/etc/config.site 2158fi 2159for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2160do 2161 test "x$ac_site_file" = xNONE && continue 2162 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2164$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2165 sed 's/^/| /' "$ac_site_file" >&5 2166 . "$ac_site_file" \ 2167 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2169as_fn_error $? "failed to load site script $ac_site_file 2170See \`config.log' for more details" "$LINENO" 5; } 2171 fi 2172done 2173 2174if test -r "$cache_file"; then 2175 # Some versions of bash will fail to source /dev/null (special files 2176 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2177 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2179$as_echo "$as_me: loading cache $cache_file" >&6;} 2180 case $cache_file in 2181 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2182 *) . "./$cache_file";; 2183 esac 2184 fi 2185else 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2187$as_echo "$as_me: creating cache $cache_file" >&6;} 2188 >$cache_file 2189fi 2190 2191# Check that the precious variables saved in the cache have kept the same 2192# value. 2193ac_cache_corrupted=false 2194for ac_var in $ac_precious_vars; do 2195 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2196 eval ac_new_set=\$ac_env_${ac_var}_set 2197 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2198 eval ac_new_val=\$ac_env_${ac_var}_value 2199 case $ac_old_set,$ac_new_set in 2200 set,) 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2202$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2203 ac_cache_corrupted=: ;; 2204 ,set) 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2206$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2207 ac_cache_corrupted=: ;; 2208 ,);; 2209 *) 2210 if test "x$ac_old_val" != "x$ac_new_val"; then 2211 # differences in whitespace do not lead to failure. 2212 ac_old_val_w=`echo x $ac_old_val` 2213 ac_new_val_w=`echo x $ac_new_val` 2214 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2216$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2217 ac_cache_corrupted=: 2218 else 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2220$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2221 eval $ac_var=\$ac_old_val 2222 fi 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2224$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2226$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2227 fi;; 2228 esac 2229 # Pass precious variables to config.status. 2230 if test "$ac_new_set" = set; then 2231 case $ac_new_val in 2232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2233 *) ac_arg=$ac_var=$ac_new_val ;; 2234 esac 2235 case " $ac_configure_args " in 2236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2237 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2238 esac 2239 fi 2240done 2241if $ac_cache_corrupted; then 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2245$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2246 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2247fi 2248## -------------------- ## 2249## Main body of script. ## 2250## -------------------- ## 2251 2252ac_ext=c 2253ac_cpp='$CPP $CPPFLAGS' 2254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2256ac_compiler_gnu=$ac_cv_c_compiler_gnu 2257 2258 2259 2260 2261 2262# AS_CASE(WORD, [PATTERN1], [IF-MATCHED1]...[DEFAULT]) 2263# ---------------------------------------------------- 2264# Expand into 2265# | case WORD in 2266# | PATTERN1) IF-MATCHED1 ;; 2267# | ... 2268# | *) DEFAULT ;; 2269# | esac 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324am__api_version='1.16' 2325 2326ac_aux_dir= 2327for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2328 if test -f "$ac_dir/install-sh"; then 2329 ac_aux_dir=$ac_dir 2330 ac_install_sh="$ac_aux_dir/install-sh -c" 2331 break 2332 elif test -f "$ac_dir/install.sh"; then 2333 ac_aux_dir=$ac_dir 2334 ac_install_sh="$ac_aux_dir/install.sh -c" 2335 break 2336 elif test -f "$ac_dir/shtool"; then 2337 ac_aux_dir=$ac_dir 2338 ac_install_sh="$ac_aux_dir/shtool install -c" 2339 break 2340 fi 2341done 2342if test -z "$ac_aux_dir"; then 2343 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2344fi 2345 2346# These three variables are undocumented and unsupported, 2347# and are intended to be withdrawn in a future Autoconf release. 2348# They can cause serious problems if a builder's source tree is in a directory 2349# whose full name contains unusual characters. 2350ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2351ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2352ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2353 2354 2355# Find a good install program. We prefer a C program (faster), 2356# so one script is as good as another. But avoid the broken or 2357# incompatible versions: 2358# SysV /etc/install, /usr/sbin/install 2359# SunOS /usr/etc/install 2360# IRIX /sbin/install 2361# AIX /bin/install 2362# AmigaOS /C/install, which installs bootblocks on floppy discs 2363# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2364# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2365# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2366# OS/2's system install, which has a completely different semantic 2367# ./install, which can be erroneously created by make from ./install.sh. 2368# Reject install programs that cannot install multiple files. 2369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2370$as_echo_n "checking for a BSD-compatible install... " >&6; } 2371if test -z "$INSTALL"; then 2372if ${ac_cv_path_install+:} false; then : 2373 $as_echo_n "(cached) " >&6 2374else 2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2376for as_dir in $PATH 2377do 2378 IFS=$as_save_IFS 2379 test -z "$as_dir" && as_dir=. 2380 # Account for people who put trailing slashes in PATH elements. 2381case $as_dir/ in @%:@(( 2382 ./ | .// | /[cC]/* | \ 2383 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2384 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2385 /usr/ucb/* ) ;; 2386 *) 2387 # OSF1 and SCO ODT 3.0 have their own names for install. 2388 # Don't use installbsd from OSF since it installs stuff as root 2389 # by default. 2390 for ac_prog in ginstall scoinst install; do 2391 for ac_exec_ext in '' $ac_executable_extensions; do 2392 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2393 if test $ac_prog = install && 2394 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2395 # AIX install. It has an incompatible calling convention. 2396 : 2397 elif test $ac_prog = install && 2398 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2399 # program-specific install script used by HP pwplus--don't use. 2400 : 2401 else 2402 rm -rf conftest.one conftest.two conftest.dir 2403 echo one > conftest.one 2404 echo two > conftest.two 2405 mkdir conftest.dir 2406 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2407 test -s conftest.one && test -s conftest.two && 2408 test -s conftest.dir/conftest.one && 2409 test -s conftest.dir/conftest.two 2410 then 2411 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2412 break 3 2413 fi 2414 fi 2415 fi 2416 done 2417 done 2418 ;; 2419esac 2420 2421 done 2422IFS=$as_save_IFS 2423 2424rm -rf conftest.one conftest.two conftest.dir 2425 2426fi 2427 if test "${ac_cv_path_install+set}" = set; then 2428 INSTALL=$ac_cv_path_install 2429 else 2430 # As a last resort, use the slow shell script. Don't cache a 2431 # value for INSTALL within a source directory, because that will 2432 # break other packages using the cache if that directory is 2433 # removed, or if the value is a relative name. 2434 INSTALL=$ac_install_sh 2435 fi 2436fi 2437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2438$as_echo "$INSTALL" >&6; } 2439 2440# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2441# It thinks the first close brace ends the variable substitution. 2442test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2443 2444test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2445 2446test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2447 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2449$as_echo_n "checking whether build environment is sane... " >&6; } 2450# Reject unsafe characters in $srcdir or the absolute working directory 2451# name. Accept space and tab only in the latter. 2452am_lf=' 2453' 2454case `pwd` in 2455 *[\\\"\#\$\&\'\`$am_lf]*) 2456 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2457esac 2458case $srcdir in 2459 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2460 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2461esac 2462 2463# Do 'set' in a subshell so we don't clobber the current shell's 2464# arguments. Must try -L first in case configure is actually a 2465# symlink; some systems play weird games with the mod time of symlinks 2466# (eg FreeBSD returns the mod time of the symlink's containing 2467# directory). 2468if ( 2469 am_has_slept=no 2470 for am_try in 1 2; do 2471 echo "timestamp, slept: $am_has_slept" > conftest.file 2472 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2473 if test "$*" = "X"; then 2474 # -L didn't work. 2475 set X `ls -t "$srcdir/configure" conftest.file` 2476 fi 2477 if test "$*" != "X $srcdir/configure conftest.file" \ 2478 && test "$*" != "X conftest.file $srcdir/configure"; then 2479 2480 # If neither matched, then we have a broken ls. This can happen 2481 # if, for instance, CONFIG_SHELL is bash and it inherits a 2482 # broken ls alias from the environment. This has actually 2483 # happened. Such a system could not be considered "sane". 2484 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2485 alias in your environment" "$LINENO" 5 2486 fi 2487 if test "$2" = conftest.file || test $am_try -eq 2; then 2488 break 2489 fi 2490 # Just in case. 2491 sleep 1 2492 am_has_slept=yes 2493 done 2494 test "$2" = conftest.file 2495 ) 2496then 2497 # Ok. 2498 : 2499else 2500 as_fn_error $? "newly created file is older than distributed files! 2501Check your system clock" "$LINENO" 5 2502fi 2503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2504$as_echo "yes" >&6; } 2505# If we didn't sleep, we still need to ensure time stamps of config.status and 2506# generated files are strictly newer. 2507am_sleep_pid= 2508if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2509 ( sleep 1 ) & 2510 am_sleep_pid=$! 2511fi 2512 2513rm -f conftest.file 2514 2515test "$program_prefix" != NONE && 2516 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2517# Use a double $ so make ignores it. 2518test "$program_suffix" != NONE && 2519 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2520# Double any \ or $. 2521# By default was `s,x,x', remove it if useless. 2522ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2523program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2524 2525# Expand $ac_aux_dir to an absolute path. 2526am_aux_dir=`cd "$ac_aux_dir" && pwd` 2527 2528if test x"${MISSING+set}" != xset; then 2529 case $am_aux_dir in 2530 *\ * | *\ *) 2531 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2532 *) 2533 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2534 esac 2535fi 2536# Use eval to expand $SHELL 2537if eval "$MISSING --is-lightweight"; then 2538 am_missing_run="$MISSING " 2539else 2540 am_missing_run= 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2542$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2543fi 2544 2545if test x"${install_sh+set}" != xset; then 2546 case $am_aux_dir in 2547 *\ * | *\ *) 2548 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2549 *) 2550 install_sh="\${SHELL} $am_aux_dir/install-sh" 2551 esac 2552fi 2553 2554# Installed binaries are usually stripped using 'strip' when the user 2555# run "make install-strip". However 'strip' might not be the right 2556# tool to use in cross-compilation environments, therefore Automake 2557# will honor the 'STRIP' environment variable to overrule this program. 2558if test "$cross_compiling" != no; then 2559 if test -n "$ac_tool_prefix"; then 2560 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2561set dummy ${ac_tool_prefix}strip; ac_word=$2 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2563$as_echo_n "checking for $ac_word... " >&6; } 2564if ${ac_cv_prog_STRIP+:} false; then : 2565 $as_echo_n "(cached) " >&6 2566else 2567 if test -n "$STRIP"; then 2568 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2569else 2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2571for as_dir in $PATH 2572do 2573 IFS=$as_save_IFS 2574 test -z "$as_dir" && as_dir=. 2575 for ac_exec_ext in '' $ac_executable_extensions; do 2576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2577 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2579 break 2 2580 fi 2581done 2582 done 2583IFS=$as_save_IFS 2584 2585fi 2586fi 2587STRIP=$ac_cv_prog_STRIP 2588if test -n "$STRIP"; then 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2590$as_echo "$STRIP" >&6; } 2591else 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2593$as_echo "no" >&6; } 2594fi 2595 2596 2597fi 2598if test -z "$ac_cv_prog_STRIP"; then 2599 ac_ct_STRIP=$STRIP 2600 # Extract the first word of "strip", so it can be a program name with args. 2601set dummy strip; ac_word=$2 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2603$as_echo_n "checking for $ac_word... " >&6; } 2604if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2605 $as_echo_n "(cached) " >&6 2606else 2607 if test -n "$ac_ct_STRIP"; then 2608 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2609else 2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2611for as_dir in $PATH 2612do 2613 IFS=$as_save_IFS 2614 test -z "$as_dir" && as_dir=. 2615 for ac_exec_ext in '' $ac_executable_extensions; do 2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2617 ac_cv_prog_ac_ct_STRIP="strip" 2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2619 break 2 2620 fi 2621done 2622 done 2623IFS=$as_save_IFS 2624 2625fi 2626fi 2627ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2628if test -n "$ac_ct_STRIP"; then 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2630$as_echo "$ac_ct_STRIP" >&6; } 2631else 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2633$as_echo "no" >&6; } 2634fi 2635 2636 if test "x$ac_ct_STRIP" = x; then 2637 STRIP=":" 2638 else 2639 case $cross_compiling:$ac_tool_warned in 2640yes:) 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2643ac_tool_warned=yes ;; 2644esac 2645 STRIP=$ac_ct_STRIP 2646 fi 2647else 2648 STRIP="$ac_cv_prog_STRIP" 2649fi 2650 2651fi 2652INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2653 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2655$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2656if test -z "$MKDIR_P"; then 2657 if ${ac_cv_path_mkdir+:} false; then : 2658 $as_echo_n "(cached) " >&6 2659else 2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2661for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2662do 2663 IFS=$as_save_IFS 2664 test -z "$as_dir" && as_dir=. 2665 for ac_prog in mkdir gmkdir; do 2666 for ac_exec_ext in '' $ac_executable_extensions; do 2667 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2668 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2669 'mkdir (GNU coreutils) '* | \ 2670 'mkdir (coreutils) '* | \ 2671 'mkdir (fileutils) '4.1*) 2672 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2673 break 3;; 2674 esac 2675 done 2676 done 2677 done 2678IFS=$as_save_IFS 2679 2680fi 2681 2682 test -d ./--version && rmdir ./--version 2683 if test "${ac_cv_path_mkdir+set}" = set; then 2684 MKDIR_P="$ac_cv_path_mkdir -p" 2685 else 2686 # As a last resort, use the slow shell script. Don't cache a 2687 # value for MKDIR_P within a source directory, because that will 2688 # break other packages using the cache if that directory is 2689 # removed, or if the value is a relative name. 2690 MKDIR_P="$ac_install_sh -d" 2691 fi 2692fi 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2694$as_echo "$MKDIR_P" >&6; } 2695 2696for ac_prog in gawk mawk nawk awk 2697do 2698 # Extract the first word of "$ac_prog", so it can be a program name with args. 2699set dummy $ac_prog; ac_word=$2 2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2701$as_echo_n "checking for $ac_word... " >&6; } 2702if ${ac_cv_prog_AWK+:} false; then : 2703 $as_echo_n "(cached) " >&6 2704else 2705 if test -n "$AWK"; then 2706 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2707else 2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2709for as_dir in $PATH 2710do 2711 IFS=$as_save_IFS 2712 test -z "$as_dir" && as_dir=. 2713 for ac_exec_ext in '' $ac_executable_extensions; do 2714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2715 ac_cv_prog_AWK="$ac_prog" 2716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2717 break 2 2718 fi 2719done 2720 done 2721IFS=$as_save_IFS 2722 2723fi 2724fi 2725AWK=$ac_cv_prog_AWK 2726if test -n "$AWK"; then 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2728$as_echo "$AWK" >&6; } 2729else 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2731$as_echo "no" >&6; } 2732fi 2733 2734 2735 test -n "$AWK" && break 2736done 2737 2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2739$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2740set x ${MAKE-make} 2741ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2742if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2743 $as_echo_n "(cached) " >&6 2744else 2745 cat >conftest.make <<\_ACEOF 2746SHELL = /bin/sh 2747all: 2748 @echo '@@@%%%=$(MAKE)=@@@%%%' 2749_ACEOF 2750# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2751case `${MAKE-make} -f conftest.make 2>/dev/null` in 2752 *@@@%%%=?*=@@@%%%*) 2753 eval ac_cv_prog_make_${ac_make}_set=yes;; 2754 *) 2755 eval ac_cv_prog_make_${ac_make}_set=no;; 2756esac 2757rm -f conftest.make 2758fi 2759if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2761$as_echo "yes" >&6; } 2762 SET_MAKE= 2763else 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2765$as_echo "no" >&6; } 2766 SET_MAKE="MAKE=${MAKE-make}" 2767fi 2768 2769rm -rf .tst 2>/dev/null 2770mkdir .tst 2>/dev/null 2771if test -d .tst; then 2772 am__leading_dot=. 2773else 2774 am__leading_dot=_ 2775fi 2776rmdir .tst 2>/dev/null 2777 2778@%:@ Check whether --enable-silent-rules was given. 2779if test "${enable_silent_rules+set}" = set; then : 2780 enableval=$enable_silent_rules; 2781fi 2782 2783case $enable_silent_rules in @%:@ ((( 2784 yes) AM_DEFAULT_VERBOSITY=0;; 2785 no) AM_DEFAULT_VERBOSITY=1;; 2786 *) AM_DEFAULT_VERBOSITY=1;; 2787esac 2788am_make=${MAKE-make} 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2790$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2791if ${am_cv_make_support_nested_variables+:} false; then : 2792 $as_echo_n "(cached) " >&6 2793else 2794 if $as_echo 'TRUE=$(BAR$(V)) 2795BAR0=false 2796BAR1=true 2797V=1 2798am__doit: 2799 @$(TRUE) 2800.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2801 am_cv_make_support_nested_variables=yes 2802else 2803 am_cv_make_support_nested_variables=no 2804fi 2805fi 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2807$as_echo "$am_cv_make_support_nested_variables" >&6; } 2808if test $am_cv_make_support_nested_variables = yes; then 2809 AM_V='$(V)' 2810 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2811else 2812 AM_V=$AM_DEFAULT_VERBOSITY 2813 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2814fi 2815AM_BACKSLASH='\' 2816 2817if test "`cd $srcdir && pwd`" != "`pwd`"; then 2818 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2819 # is not polluted with repeated "-I." 2820 am__isrc=' -I$(srcdir)' 2821 # test to see if srcdir already configured 2822 if test -f $srcdir/config.status; then 2823 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2824 fi 2825fi 2826 2827# test whether we have cygpath 2828if test -z "$CYGPATH_W"; then 2829 if (cygpath --version) >/dev/null 2>/dev/null; then 2830 CYGPATH_W='cygpath -w' 2831 else 2832 CYGPATH_W=echo 2833 fi 2834fi 2835 2836 2837# Define the identity of the package. 2838 PACKAGE='libuv' 2839 VERSION='1.42.0' 2840 2841 2842cat >>confdefs.h <<_ACEOF 2843@%:@define PACKAGE "$PACKAGE" 2844_ACEOF 2845 2846 2847cat >>confdefs.h <<_ACEOF 2848@%:@define VERSION "$VERSION" 2849_ACEOF 2850 2851# Some tools Automake needs. 2852 2853ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2854 2855 2856AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2857 2858 2859AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2860 2861 2862AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2863 2864 2865MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2866 2867# For better backward compatibility. To be removed once Automake 1.9.x 2868# dies out for good. For more background, see: 2869# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2870# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2871mkdir_p='$(MKDIR_P)' 2872 2873# We need awk for the "check" target (and possibly the TAP driver). The 2874# system "awk" is bad on some platforms. 2875# Always define AMTAR for backward compatibility. Yes, it's still used 2876# in the wild :-( We should find a proper way to deprecate it ... 2877AMTAR='$${TAR-tar}' 2878 2879 2880# We'll loop over all known methods to create a tar archive until one works. 2881_am_tools='gnutar pax cpio none' 2882 2883am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2884 2885 2886 2887 2888 2889 2890# POSIX will say in a future version that running "rm -f" with no argument 2891# is OK; and we want to be able to make that assumption in our Makefile 2892# recipes. So use an aggressive probe to check that the usage we want is 2893# actually supported "in the wild" to an acceptable degree. 2894# See automake bug#10828. 2895# To make any issue more visible, cause the running configure to be aborted 2896# by default if the 'rm' program in use doesn't match our expectations; the 2897# user can still override this though. 2898if rm -f && rm -fr && rm -rf; then : OK; else 2899 cat >&2 <<'END' 2900Oops! 2901 2902Your 'rm' program seems unable to run without file operands specified 2903on the command line, even when the '-f' option is present. This is contrary 2904to the behaviour of most rm programs out there, and not conforming with 2905the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2906 2907Please tell bug-automake@gnu.org about your system, including the value 2908of your $PATH and any error possibly output before this message. This 2909can help us improve future automake versions. 2910 2911END 2912 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2913 echo 'Configuration will proceed anyway, since you have set the' >&2 2914 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2915 echo >&2 2916 else 2917 cat >&2 <<'END' 2918Aborting the configuration process, to ensure you take notice of the issue. 2919 2920You can download and install GNU coreutils to get an 'rm' implementation 2921that behaves properly: <https://www.gnu.org/software/coreutils/>. 2922 2923If you want to complete the configuration process using your problematic 2924'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2925to "yes", and re-run configure. 2926 2927END 2928 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2929 fi 2930fi 2931 2932# Make sure we can run config.sub. 2933$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2934 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2935 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2937$as_echo_n "checking build system type... " >&6; } 2938if ${ac_cv_build+:} false; then : 2939 $as_echo_n "(cached) " >&6 2940else 2941 ac_build_alias=$build_alias 2942test "x$ac_build_alias" = x && 2943 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2944test "x$ac_build_alias" = x && 2945 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2946ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2947 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2948 2949fi 2950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2951$as_echo "$ac_cv_build" >&6; } 2952case $ac_cv_build in 2953*-*-*) ;; 2954*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2955esac 2956build=$ac_cv_build 2957ac_save_IFS=$IFS; IFS='-' 2958set x $ac_cv_build 2959shift 2960build_cpu=$1 2961build_vendor=$2 2962shift; shift 2963# Remember, the first character of IFS is used to create $*, 2964# except with old shells: 2965build_os=$* 2966IFS=$ac_save_IFS 2967case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2968 2969 2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2971$as_echo_n "checking host system type... " >&6; } 2972if ${ac_cv_host+:} false; then : 2973 $as_echo_n "(cached) " >&6 2974else 2975 if test "x$host_alias" = x; then 2976 ac_cv_host=$ac_cv_build 2977else 2978 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2979 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2980fi 2981 2982fi 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2984$as_echo "$ac_cv_host" >&6; } 2985case $ac_cv_host in 2986*-*-*) ;; 2987*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2988esac 2989host=$ac_cv_host 2990ac_save_IFS=$IFS; IFS='-' 2991set x $ac_cv_host 2992shift 2993host_cpu=$1 2994host_vendor=$2 2995shift; shift 2996# Remember, the first character of IFS is used to create $*, 2997# except with old shells: 2998host_os=$* 2999IFS=$ac_save_IFS 3000case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3001 3002 3003@%:@ Check whether --enable-shared was given. 3004if test "${enable_shared+set}" = set; then : 3005 enableval=$enable_shared; p=${PACKAGE-default} 3006 case $enableval in 3007 yes) enable_shared=yes ;; 3008 no) enable_shared=no ;; 3009 *) 3010 enable_shared=no 3011 # Look at the argument we got. We use all the common list separators. 3012 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 3013 for pkg in $enableval; do 3014 IFS=$lt_save_ifs 3015 if test "X$pkg" = "X$p"; then 3016 enable_shared=yes 3017 fi 3018 done 3019 IFS=$lt_save_ifs 3020 ;; 3021 esac 3022else 3023 enable_shared=yes 3024fi 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034@%:@ Check whether --enable-static was given. 3035if test "${enable_static+set}" = set; then : 3036 enableval=$enable_static; p=${PACKAGE-default} 3037 case $enableval in 3038 yes) enable_static=yes ;; 3039 no) enable_static=no ;; 3040 *) 3041 enable_static=no 3042 # Look at the argument we got. We use all the common list separators. 3043 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 3044 for pkg in $enableval; do 3045 IFS=$lt_save_ifs 3046 if test "X$pkg" = "X$p"; then 3047 enable_static=yes 3048 fi 3049 done 3050 IFS=$lt_save_ifs 3051 ;; 3052 esac 3053else 3054 enable_static=yes 3055fi 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065ac_ext=c 3066ac_cpp='$CPP $CPPFLAGS' 3067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3069ac_compiler_gnu=$ac_cv_c_compiler_gnu 3070if test -n "$ac_tool_prefix"; then 3071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3072set dummy ${ac_tool_prefix}gcc; ac_word=$2 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3074$as_echo_n "checking for $ac_word... " >&6; } 3075if ${ac_cv_prog_CC+:} false; then : 3076 $as_echo_n "(cached) " >&6 3077else 3078 if test -n "$CC"; then 3079 ac_cv_prog_CC="$CC" # Let the user override the test. 3080else 3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3082for as_dir in $PATH 3083do 3084 IFS=$as_save_IFS 3085 test -z "$as_dir" && as_dir=. 3086 for ac_exec_ext in '' $ac_executable_extensions; do 3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3088 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3090 break 2 3091 fi 3092done 3093 done 3094IFS=$as_save_IFS 3095 3096fi 3097fi 3098CC=$ac_cv_prog_CC 3099if test -n "$CC"; then 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3101$as_echo "$CC" >&6; } 3102else 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3104$as_echo "no" >&6; } 3105fi 3106 3107 3108fi 3109if test -z "$ac_cv_prog_CC"; then 3110 ac_ct_CC=$CC 3111 # Extract the first word of "gcc", so it can be a program name with args. 3112set dummy gcc; ac_word=$2 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3114$as_echo_n "checking for $ac_word... " >&6; } 3115if ${ac_cv_prog_ac_ct_CC+:} false; then : 3116 $as_echo_n "(cached) " >&6 3117else 3118 if test -n "$ac_ct_CC"; then 3119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3120else 3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3122for as_dir in $PATH 3123do 3124 IFS=$as_save_IFS 3125 test -z "$as_dir" && as_dir=. 3126 for ac_exec_ext in '' $ac_executable_extensions; do 3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3128 ac_cv_prog_ac_ct_CC="gcc" 3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3130 break 2 3131 fi 3132done 3133 done 3134IFS=$as_save_IFS 3135 3136fi 3137fi 3138ac_ct_CC=$ac_cv_prog_ac_ct_CC 3139if test -n "$ac_ct_CC"; then 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3141$as_echo "$ac_ct_CC" >&6; } 3142else 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3144$as_echo "no" >&6; } 3145fi 3146 3147 if test "x$ac_ct_CC" = x; then 3148 CC="" 3149 else 3150 case $cross_compiling:$ac_tool_warned in 3151yes:) 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3154ac_tool_warned=yes ;; 3155esac 3156 CC=$ac_ct_CC 3157 fi 3158else 3159 CC="$ac_cv_prog_CC" 3160fi 3161 3162if test -z "$CC"; then 3163 if test -n "$ac_tool_prefix"; then 3164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3165set dummy ${ac_tool_prefix}cc; ac_word=$2 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3167$as_echo_n "checking for $ac_word... " >&6; } 3168if ${ac_cv_prog_CC+:} false; then : 3169 $as_echo_n "(cached) " >&6 3170else 3171 if test -n "$CC"; then 3172 ac_cv_prog_CC="$CC" # Let the user override the test. 3173else 3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3175for as_dir in $PATH 3176do 3177 IFS=$as_save_IFS 3178 test -z "$as_dir" && as_dir=. 3179 for ac_exec_ext in '' $ac_executable_extensions; do 3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3181 ac_cv_prog_CC="${ac_tool_prefix}cc" 3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3183 break 2 3184 fi 3185done 3186 done 3187IFS=$as_save_IFS 3188 3189fi 3190fi 3191CC=$ac_cv_prog_CC 3192if test -n "$CC"; then 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3194$as_echo "$CC" >&6; } 3195else 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3197$as_echo "no" >&6; } 3198fi 3199 3200 3201 fi 3202fi 3203if test -z "$CC"; then 3204 # Extract the first word of "cc", so it can be a program name with args. 3205set dummy cc; ac_word=$2 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3207$as_echo_n "checking for $ac_word... " >&6; } 3208if ${ac_cv_prog_CC+:} false; then : 3209 $as_echo_n "(cached) " >&6 3210else 3211 if test -n "$CC"; then 3212 ac_cv_prog_CC="$CC" # Let the user override the test. 3213else 3214 ac_prog_rejected=no 3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3216for as_dir in $PATH 3217do 3218 IFS=$as_save_IFS 3219 test -z "$as_dir" && as_dir=. 3220 for ac_exec_ext in '' $ac_executable_extensions; do 3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3223 ac_prog_rejected=yes 3224 continue 3225 fi 3226 ac_cv_prog_CC="cc" 3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3228 break 2 3229 fi 3230done 3231 done 3232IFS=$as_save_IFS 3233 3234if test $ac_prog_rejected = yes; then 3235 # We found a bogon in the path, so make sure we never use it. 3236 set dummy $ac_cv_prog_CC 3237 shift 3238 if test $@%:@ != 0; then 3239 # We chose a different compiler from the bogus one. 3240 # However, it has the same basename, so the bogon will be chosen 3241 # first if we set CC to just the basename; use the full file name. 3242 shift 3243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3244 fi 3245fi 3246fi 3247fi 3248CC=$ac_cv_prog_CC 3249if test -n "$CC"; then 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3251$as_echo "$CC" >&6; } 3252else 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3254$as_echo "no" >&6; } 3255fi 3256 3257 3258fi 3259if test -z "$CC"; then 3260 if test -n "$ac_tool_prefix"; then 3261 for ac_prog in cl.exe 3262 do 3263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3264set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3266$as_echo_n "checking for $ac_word... " >&6; } 3267if ${ac_cv_prog_CC+:} false; then : 3268 $as_echo_n "(cached) " >&6 3269else 3270 if test -n "$CC"; then 3271 ac_cv_prog_CC="$CC" # Let the user override the test. 3272else 3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3274for as_dir in $PATH 3275do 3276 IFS=$as_save_IFS 3277 test -z "$as_dir" && as_dir=. 3278 for ac_exec_ext in '' $ac_executable_extensions; do 3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3282 break 2 3283 fi 3284done 3285 done 3286IFS=$as_save_IFS 3287 3288fi 3289fi 3290CC=$ac_cv_prog_CC 3291if test -n "$CC"; then 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3293$as_echo "$CC" >&6; } 3294else 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3296$as_echo "no" >&6; } 3297fi 3298 3299 3300 test -n "$CC" && break 3301 done 3302fi 3303if test -z "$CC"; then 3304 ac_ct_CC=$CC 3305 for ac_prog in cl.exe 3306do 3307 # Extract the first word of "$ac_prog", so it can be a program name with args. 3308set dummy $ac_prog; ac_word=$2 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3310$as_echo_n "checking for $ac_word... " >&6; } 3311if ${ac_cv_prog_ac_ct_CC+:} false; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 if test -n "$ac_ct_CC"; then 3315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3316else 3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3318for as_dir in $PATH 3319do 3320 IFS=$as_save_IFS 3321 test -z "$as_dir" && as_dir=. 3322 for ac_exec_ext in '' $ac_executable_extensions; do 3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3324 ac_cv_prog_ac_ct_CC="$ac_prog" 3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3326 break 2 3327 fi 3328done 3329 done 3330IFS=$as_save_IFS 3331 3332fi 3333fi 3334ac_ct_CC=$ac_cv_prog_ac_ct_CC 3335if test -n "$ac_ct_CC"; then 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3337$as_echo "$ac_ct_CC" >&6; } 3338else 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3340$as_echo "no" >&6; } 3341fi 3342 3343 3344 test -n "$ac_ct_CC" && break 3345done 3346 3347 if test "x$ac_ct_CC" = x; then 3348 CC="" 3349 else 3350 case $cross_compiling:$ac_tool_warned in 3351yes:) 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3354ac_tool_warned=yes ;; 3355esac 3356 CC=$ac_ct_CC 3357 fi 3358fi 3359 3360fi 3361 3362 3363test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3365as_fn_error $? "no acceptable C compiler found in \$PATH 3366See \`config.log' for more details" "$LINENO" 5; } 3367 3368# Provide some information about the compiler. 3369$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3370set X $ac_compile 3371ac_compiler=$2 3372for ac_option in --version -v -V -qversion; do 3373 { { ac_try="$ac_compiler $ac_option >&5" 3374case "(($ac_try" in 3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3376 *) ac_try_echo=$ac_try;; 3377esac 3378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3379$as_echo "$ac_try_echo"; } >&5 3380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3381 ac_status=$? 3382 if test -s conftest.err; then 3383 sed '10a\ 3384... rest of stderr output deleted ... 3385 10q' conftest.err >conftest.er1 3386 cat conftest.er1 >&5 3387 fi 3388 rm -f conftest.er1 conftest.err 3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3390 test $ac_status = 0; } 3391done 3392 3393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3394/* end confdefs.h. */ 3395 3396int 3397main () 3398{ 3399 3400 ; 3401 return 0; 3402} 3403_ACEOF 3404ac_clean_files_save=$ac_clean_files 3405ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3406# Try to create an executable without -o first, disregard a.out. 3407# It will help us diagnose broken compilers, and finding out an intuition 3408# of exeext. 3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3410$as_echo_n "checking whether the C compiler works... " >&6; } 3411ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3412 3413# The possible output files: 3414ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3415 3416ac_rmfiles= 3417for ac_file in $ac_files 3418do 3419 case $ac_file in 3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3422 esac 3423done 3424rm -f $ac_rmfiles 3425 3426if { { ac_try="$ac_link_default" 3427case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3432$as_echo "$ac_try_echo"; } >&5 3433 (eval "$ac_link_default") 2>&5 3434 ac_status=$? 3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3436 test $ac_status = 0; }; then : 3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3438# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3439# in a Makefile. We should not override ac_cv_exeext if it was cached, 3440# so that the user can short-circuit this test for compilers unknown to 3441# Autoconf. 3442for ac_file in $ac_files '' 3443do 3444 test -f "$ac_file" || continue 3445 case $ac_file in 3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3447 ;; 3448 [ab].out ) 3449 # We found the default executable, but exeext='' is most 3450 # certainly right. 3451 break;; 3452 *.* ) 3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3454 then :; else 3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3456 fi 3457 # We set ac_cv_exeext here because the later test for it is not 3458 # safe: cross compilers may not add the suffix if given an `-o' 3459 # argument, so we may need to know it at that point already. 3460 # Even if this section looks crufty: it has the advantage of 3461 # actually working. 3462 break;; 3463 * ) 3464 break;; 3465 esac 3466done 3467test "$ac_cv_exeext" = no && ac_cv_exeext= 3468 3469else 3470 ac_file='' 3471fi 3472if test -z "$ac_file"; then : 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3474$as_echo "no" >&6; } 3475$as_echo "$as_me: failed program was:" >&5 3476sed 's/^/| /' conftest.$ac_ext >&5 3477 3478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3480as_fn_error 77 "C compiler cannot create executables 3481See \`config.log' for more details" "$LINENO" 5; } 3482else 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3484$as_echo "yes" >&6; } 3485fi 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3487$as_echo_n "checking for C compiler default output file name... " >&6; } 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3489$as_echo "$ac_file" >&6; } 3490ac_exeext=$ac_cv_exeext 3491 3492rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3493ac_clean_files=$ac_clean_files_save 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3495$as_echo_n "checking for suffix of executables... " >&6; } 3496if { { ac_try="$ac_link" 3497case "(($ac_try" in 3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3499 *) ac_try_echo=$ac_try;; 3500esac 3501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3502$as_echo "$ac_try_echo"; } >&5 3503 (eval "$ac_link") 2>&5 3504 ac_status=$? 3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3506 test $ac_status = 0; }; then : 3507 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3508# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3509# work properly (i.e., refer to `conftest.exe'), while it won't with 3510# `rm'. 3511for ac_file in conftest.exe conftest conftest.*; do 3512 test -f "$ac_file" || continue 3513 case $ac_file in 3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3516 break;; 3517 * ) break;; 3518 esac 3519done 3520else 3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3523as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3524See \`config.log' for more details" "$LINENO" 5; } 3525fi 3526rm -f conftest conftest$ac_cv_exeext 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3528$as_echo "$ac_cv_exeext" >&6; } 3529 3530rm -f conftest.$ac_ext 3531EXEEXT=$ac_cv_exeext 3532ac_exeext=$EXEEXT 3533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3534/* end confdefs.h. */ 3535@%:@include <stdio.h> 3536int 3537main () 3538{ 3539FILE *f = fopen ("conftest.out", "w"); 3540 return ferror (f) || fclose (f) != 0; 3541 3542 ; 3543 return 0; 3544} 3545_ACEOF 3546ac_clean_files="$ac_clean_files conftest.out" 3547# Check that the compiler produces executables we can run. If not, either 3548# the compiler is broken, or we cross compile. 3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3550$as_echo_n "checking whether we are cross compiling... " >&6; } 3551if test "$cross_compiling" != yes; then 3552 { { ac_try="$ac_link" 3553case "(($ac_try" in 3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3555 *) ac_try_echo=$ac_try;; 3556esac 3557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3558$as_echo "$ac_try_echo"; } >&5 3559 (eval "$ac_link") 2>&5 3560 ac_status=$? 3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3562 test $ac_status = 0; } 3563 if { ac_try='./conftest$ac_cv_exeext' 3564 { { case "(($ac_try" in 3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3566 *) ac_try_echo=$ac_try;; 3567esac 3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3569$as_echo "$ac_try_echo"; } >&5 3570 (eval "$ac_try") 2>&5 3571 ac_status=$? 3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3573 test $ac_status = 0; }; }; then 3574 cross_compiling=no 3575 else 3576 if test "$cross_compiling" = maybe; then 3577 cross_compiling=yes 3578 else 3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3581as_fn_error $? "cannot run C compiled programs. 3582If you meant to cross compile, use \`--host'. 3583See \`config.log' for more details" "$LINENO" 5; } 3584 fi 3585 fi 3586fi 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3588$as_echo "$cross_compiling" >&6; } 3589 3590rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3591ac_clean_files=$ac_clean_files_save 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3593$as_echo_n "checking for suffix of object files... " >&6; } 3594if ${ac_cv_objext+:} false; then : 3595 $as_echo_n "(cached) " >&6 3596else 3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3598/* end confdefs.h. */ 3599 3600int 3601main () 3602{ 3603 3604 ; 3605 return 0; 3606} 3607_ACEOF 3608rm -f conftest.o conftest.obj 3609if { { ac_try="$ac_compile" 3610case "(($ac_try" in 3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3612 *) ac_try_echo=$ac_try;; 3613esac 3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3615$as_echo "$ac_try_echo"; } >&5 3616 (eval "$ac_compile") 2>&5 3617 ac_status=$? 3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3619 test $ac_status = 0; }; then : 3620 for ac_file in conftest.o conftest.obj conftest.*; do 3621 test -f "$ac_file" || continue; 3622 case $ac_file in 3623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3625 break;; 3626 esac 3627done 3628else 3629 $as_echo "$as_me: failed program was:" >&5 3630sed 's/^/| /' conftest.$ac_ext >&5 3631 3632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3634as_fn_error $? "cannot compute suffix of object files: cannot compile 3635See \`config.log' for more details" "$LINENO" 5; } 3636fi 3637rm -f conftest.$ac_cv_objext conftest.$ac_ext 3638fi 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3640$as_echo "$ac_cv_objext" >&6; } 3641OBJEXT=$ac_cv_objext 3642ac_objext=$OBJEXT 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3644$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3645if ${ac_cv_c_compiler_gnu+:} false; then : 3646 $as_echo_n "(cached) " >&6 3647else 3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3649/* end confdefs.h. */ 3650 3651int 3652main () 3653{ 3654#ifndef __GNUC__ 3655 choke me 3656#endif 3657 3658 ; 3659 return 0; 3660} 3661_ACEOF 3662if ac_fn_c_try_compile "$LINENO"; then : 3663 ac_compiler_gnu=yes 3664else 3665 ac_compiler_gnu=no 3666fi 3667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3668ac_cv_c_compiler_gnu=$ac_compiler_gnu 3669 3670fi 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3672$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3673if test $ac_compiler_gnu = yes; then 3674 GCC=yes 3675else 3676 GCC= 3677fi 3678ac_test_CFLAGS=${CFLAGS+set} 3679ac_save_CFLAGS=$CFLAGS 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3681$as_echo_n "checking whether $CC accepts -g... " >&6; } 3682if ${ac_cv_prog_cc_g+:} false; then : 3683 $as_echo_n "(cached) " >&6 3684else 3685 ac_save_c_werror_flag=$ac_c_werror_flag 3686 ac_c_werror_flag=yes 3687 ac_cv_prog_cc_g=no 3688 CFLAGS="-g" 3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3690/* end confdefs.h. */ 3691 3692int 3693main () 3694{ 3695 3696 ; 3697 return 0; 3698} 3699_ACEOF 3700if ac_fn_c_try_compile "$LINENO"; then : 3701 ac_cv_prog_cc_g=yes 3702else 3703 CFLAGS="" 3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3705/* end confdefs.h. */ 3706 3707int 3708main () 3709{ 3710 3711 ; 3712 return 0; 3713} 3714_ACEOF 3715if ac_fn_c_try_compile "$LINENO"; then : 3716 3717else 3718 ac_c_werror_flag=$ac_save_c_werror_flag 3719 CFLAGS="-g" 3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3721/* end confdefs.h. */ 3722 3723int 3724main () 3725{ 3726 3727 ; 3728 return 0; 3729} 3730_ACEOF 3731if ac_fn_c_try_compile "$LINENO"; then : 3732 ac_cv_prog_cc_g=yes 3733fi 3734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3735fi 3736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3737fi 3738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3739 ac_c_werror_flag=$ac_save_c_werror_flag 3740fi 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3742$as_echo "$ac_cv_prog_cc_g" >&6; } 3743if test "$ac_test_CFLAGS" = set; then 3744 CFLAGS=$ac_save_CFLAGS 3745elif test $ac_cv_prog_cc_g = yes; then 3746 if test "$GCC" = yes; then 3747 CFLAGS="-g -O2" 3748 else 3749 CFLAGS="-g" 3750 fi 3751else 3752 if test "$GCC" = yes; then 3753 CFLAGS="-O2" 3754 else 3755 CFLAGS= 3756 fi 3757fi 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3759$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3760if ${ac_cv_prog_cc_c89+:} false; then : 3761 $as_echo_n "(cached) " >&6 3762else 3763 ac_cv_prog_cc_c89=no 3764ac_save_CC=$CC 3765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766/* end confdefs.h. */ 3767#include <stdarg.h> 3768#include <stdio.h> 3769struct stat; 3770/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3771struct buf { int x; }; 3772FILE * (*rcsopen) (struct buf *, struct stat *, int); 3773static char *e (p, i) 3774 char **p; 3775 int i; 3776{ 3777 return p[i]; 3778} 3779static char *f (char * (*g) (char **, int), char **p, ...) 3780{ 3781 char *s; 3782 va_list v; 3783 va_start (v,p); 3784 s = g (p, va_arg (v,int)); 3785 va_end (v); 3786 return s; 3787} 3788 3789/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3790 function prototypes and stuff, but not '\xHH' hex character constants. 3791 These don't provoke an error unfortunately, instead are silently treated 3792 as 'x'. The following induces an error, until -std is added to get 3793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3794 array size at least. It's necessary to write '\x00'==0 to get something 3795 that's true only with -std. */ 3796int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3797 3798/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3799 inside strings and character constants. */ 3800#define FOO(x) 'x' 3801int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3802 3803int test (int i, double x); 3804struct s1 {int (*f) (int a);}; 3805struct s2 {int (*f) (double a);}; 3806int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3807int argc; 3808char **argv; 3809int 3810main () 3811{ 3812return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3813 ; 3814 return 0; 3815} 3816_ACEOF 3817for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3819do 3820 CC="$ac_save_CC $ac_arg" 3821 if ac_fn_c_try_compile "$LINENO"; then : 3822 ac_cv_prog_cc_c89=$ac_arg 3823fi 3824rm -f core conftest.err conftest.$ac_objext 3825 test "x$ac_cv_prog_cc_c89" != "xno" && break 3826done 3827rm -f conftest.$ac_ext 3828CC=$ac_save_CC 3829 3830fi 3831# AC_CACHE_VAL 3832case "x$ac_cv_prog_cc_c89" in 3833 x) 3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3835$as_echo "none needed" >&6; } ;; 3836 xno) 3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3838$as_echo "unsupported" >&6; } ;; 3839 *) 3840 CC="$CC $ac_cv_prog_cc_c89" 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3842$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3843esac 3844if test "x$ac_cv_prog_cc_c89" != xno; then : 3845 3846fi 3847 3848ac_ext=c 3849ac_cpp='$CPP $CPPFLAGS' 3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3852ac_compiler_gnu=$ac_cv_c_compiler_gnu 3853 3854ac_ext=c 3855ac_cpp='$CPP $CPPFLAGS' 3856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3858ac_compiler_gnu=$ac_cv_c_compiler_gnu 3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3860$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3861if ${am_cv_prog_cc_c_o+:} false; then : 3862 $as_echo_n "(cached) " >&6 3863else 3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3865/* end confdefs.h. */ 3866 3867int 3868main () 3869{ 3870 3871 ; 3872 return 0; 3873} 3874_ACEOF 3875 # Make sure it works both with $CC and with simple cc. 3876 # Following AC_PROG_CC_C_O, we do the test twice because some 3877 # compilers refuse to overwrite an existing .o file with -o, 3878 # though they will create one. 3879 am_cv_prog_cc_c_o=yes 3880 for am_i in 1 2; do 3881 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3882 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3883 ac_status=$? 3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3885 (exit $ac_status); } \ 3886 && test -f conftest2.$ac_objext; then 3887 : OK 3888 else 3889 am_cv_prog_cc_c_o=no 3890 break 3891 fi 3892 done 3893 rm -f core conftest* 3894 unset am_i 3895fi 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3897$as_echo "$am_cv_prog_cc_c_o" >&6; } 3898if test "$am_cv_prog_cc_c_o" != yes; then 3899 # Losing compiler, so override with the script. 3900 # FIXME: It is wrong to rewrite CC. 3901 # But if we don't then we get into trouble of one sort or another. 3902 # A longer-term fix would be to have automake use am__CC in this case, 3903 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3904 CC="$am_aux_dir/compile $CC" 3905fi 3906ac_ext=c 3907ac_cpp='$CPP $CPPFLAGS' 3908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3910ac_compiler_gnu=$ac_cv_c_compiler_gnu 3911 3912DEPDIR="${am__leading_dot}deps" 3913 3914ac_config_commands="$ac_config_commands depfiles" 3915 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3917$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3918cat > confinc.mk << 'END' 3919am__doit: 3920 @echo this is the am__doit target >confinc.out 3921.PHONY: am__doit 3922END 3923am__include="#" 3924am__quote= 3925# BSD make does it like this. 3926echo '.include "confinc.mk" # ignored' > confmf.BSD 3927# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3928echo 'include confinc.mk # ignored' > confmf.GNU 3929_am_result=no 3930for s in GNU BSD; do 3931 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3932 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3933 ac_status=$? 3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3935 (exit $ac_status); } 3936 case $?:`cat confinc.out 2>/dev/null` in 3937 '0:this is the am__doit target') case $s in 3938 BSD) am__include='.include' am__quote='"' ;; 3939 *) am__include='include' am__quote='' ;; 3940esac ;; 3941esac 3942 if test "$am__include" != "#"; then 3943 _am_result="yes ($s style)" 3944 break 3945 fi 3946done 3947rm -f confinc.* confmf.* 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3949$as_echo "${_am_result}" >&6; } 3950 3951@%:@ Check whether --enable-dependency-tracking was given. 3952if test "${enable_dependency_tracking+set}" = set; then : 3953 enableval=$enable_dependency_tracking; 3954fi 3955 3956if test "x$enable_dependency_tracking" != xno; then 3957 am_depcomp="$ac_aux_dir/depcomp" 3958 AMDEPBACKSLASH='\' 3959 am__nodep='_no' 3960fi 3961 if test "x$enable_dependency_tracking" != xno; then 3962 AMDEP_TRUE= 3963 AMDEP_FALSE='#' 3964else 3965 AMDEP_TRUE='#' 3966 AMDEP_FALSE= 3967fi 3968 3969 3970 3971depcc="$CC" am_compiler_list= 3972 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3974$as_echo_n "checking dependency style of $depcc... " >&6; } 3975if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3976 $as_echo_n "(cached) " >&6 3977else 3978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3979 # We make a subdir and do the tests there. Otherwise we can end up 3980 # making bogus files that we don't know about and never remove. For 3981 # instance it was reported that on HP-UX the gcc test will end up 3982 # making a dummy file named 'D' -- because '-MD' means "put the output 3983 # in D". 3984 rm -rf conftest.dir 3985 mkdir conftest.dir 3986 # Copy depcomp to subdir because otherwise we won't find it if we're 3987 # using a relative directory. 3988 cp "$am_depcomp" conftest.dir 3989 cd conftest.dir 3990 # We will build objects and dependencies in a subdirectory because 3991 # it helps to detect inapplicable dependency modes. For instance 3992 # both Tru64's cc and ICC support -MD to output dependencies as a 3993 # side effect of compilation, but ICC will put the dependencies in 3994 # the current directory while Tru64 will put them in the object 3995 # directory. 3996 mkdir sub 3997 3998 am_cv_CC_dependencies_compiler_type=none 3999 if test "$am_compiler_list" = ""; then 4000 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4001 fi 4002 am__universal=false 4003 case " $depcc " in #( 4004 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4005 esac 4006 4007 for depmode in $am_compiler_list; do 4008 # Setup a source with many dependencies, because some compilers 4009 # like to wrap large dependency lists on column 80 (with \), and 4010 # we should not choose a depcomp mode which is confused by this. 4011 # 4012 # We need to recreate these files for each test, as the compiler may 4013 # overwrite some of them when testing with obscure command lines. 4014 # This happens at least with the AIX C compiler. 4015 : > sub/conftest.c 4016 for i in 1 2 3 4 5 6; do 4017 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4018 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4019 # Solaris 10 /bin/sh. 4020 echo '/* dummy */' > sub/conftst$i.h 4021 done 4022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4023 4024 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4025 # mode. It turns out that the SunPro C++ compiler does not properly 4026 # handle '-M -o', and we need to detect this. Also, some Intel 4027 # versions had trouble with output in subdirs. 4028 am__obj=sub/conftest.${OBJEXT-o} 4029 am__minus_obj="-o $am__obj" 4030 case $depmode in 4031 gcc) 4032 # This depmode causes a compiler race in universal mode. 4033 test "$am__universal" = false || continue 4034 ;; 4035 nosideeffect) 4036 # After this tag, mechanisms are not by side-effect, so they'll 4037 # only be used when explicitly requested. 4038 if test "x$enable_dependency_tracking" = xyes; then 4039 continue 4040 else 4041 break 4042 fi 4043 ;; 4044 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4045 # This compiler won't grok '-c -o', but also, the minuso test has 4046 # not run yet. These depmodes are late enough in the game, and 4047 # so weak that their functioning should not be impacted. 4048 am__obj=conftest.${OBJEXT-o} 4049 am__minus_obj= 4050 ;; 4051 none) break ;; 4052 esac 4053 if depmode=$depmode \ 4054 source=sub/conftest.c object=$am__obj \ 4055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4056 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4057 >/dev/null 2>conftest.err && 4058 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4060 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4062 # icc doesn't choke on unknown options, it will just issue warnings 4063 # or remarks (even with -Werror). So we grep stderr for any message 4064 # that says an option was ignored or not supported. 4065 # When given -MP, icc 7.0 and 7.1 complain thusly: 4066 # icc: Command line warning: ignoring option '-M'; no argument required 4067 # The diagnosis changed in icc 8.0: 4068 # icc: Command line remark: option '-MP' not supported 4069 if (grep 'ignoring option' conftest.err || 4070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4071 am_cv_CC_dependencies_compiler_type=$depmode 4072 break 4073 fi 4074 fi 4075 done 4076 4077 cd .. 4078 rm -rf conftest.dir 4079else 4080 am_cv_CC_dependencies_compiler_type=none 4081fi 4082 4083fi 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4085$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4086CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4087 4088 if 4089 test "x$enable_dependency_tracking" != xno \ 4090 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4091 am__fastdepCC_TRUE= 4092 am__fastdepCC_FALSE='#' 4093else 4094 am__fastdepCC_TRUE='#' 4095 am__fastdepCC_FALSE= 4096fi 4097 4098 4099 4100 4101 4102 4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC way to treat warnings as errors" >&5 4104$as_echo_n "checking for $CC way to treat warnings as errors... " >&6; } 4105if ${cc_cv_werror+:} false; then : 4106 $as_echo_n "(cached) " >&6 4107else 4108 4109 if ${cc_cv_cflags__Werror+:} false; then : 4110 $as_echo_n "(cached) " >&6 4111else 4112 ac_save_CFLAGS="$CFLAGS" 4113 CFLAGS="$CFLAGS -Werror" 4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115/* end confdefs.h. */ 4116int a; 4117_ACEOF 4118if ac_fn_c_try_compile "$LINENO"; then : 4119 eval "cc_cv_cflags__Werror='yes'" 4120else 4121 eval "cc_cv_cflags__Werror='no'" 4122fi 4123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4124 CFLAGS="$ac_save_CFLAGS" 4125 4126fi 4127 4128 4129 if eval test x$cc_cv_cflags__Werror = xyes; then : 4130 cc_cv_werror=-Werror 4131else 4132 4133 if ${cc_cv_cflags__errwarn__all+:} false; then : 4134 $as_echo_n "(cached) " >&6 4135else 4136 ac_save_CFLAGS="$CFLAGS" 4137 CFLAGS="$CFLAGS -errwarn=%all" 4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4139/* end confdefs.h. */ 4140int a; 4141_ACEOF 4142if ac_fn_c_try_compile "$LINENO"; then : 4143 eval "cc_cv_cflags__errwarn__all='yes'" 4144else 4145 eval "cc_cv_cflags__errwarn__all='no'" 4146fi 4147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4148 CFLAGS="$ac_save_CFLAGS" 4149 4150fi 4151 4152 4153 if eval test x$cc_cv_cflags__errwarn__all = xyes; then : 4154 cc_cv_werror=-errwarn=%all 4155fi 4156 4157fi 4158 4159 4160fi 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_werror" >&5 4162$as_echo "$cc_cv_werror" >&6; } 4163 4164 4165 4166 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__(( visibility(\"default\") ))" >&5 4168$as_echo_n "checking if $CC supports __attribute__(( visibility(\"default\") ))... " >&6; } 4169if ${cc_cv_attribute_visibility_default+:} false; then : 4170 $as_echo_n "(cached) " >&6 4171else 4172 ac_save_CFLAGS="$CFLAGS" 4173 CFLAGS="$CFLAGS $cc_cv_werror" 4174 ac_ext=c 4175ac_cpp='$CPP $CPPFLAGS' 4176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4178ac_compiler_gnu=$ac_cv_c_compiler_gnu 4179 4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181/* end confdefs.h. */ 4182void __attribute__((visibility("default"))) default_function() { } 4183_ACEOF 4184if ac_fn_c_try_compile "$LINENO"; then : 4185 eval "cc_cv_attribute_visibility_default='yes'" 4186else 4187 eval "cc_cv_attribute_visibility_default='no'" 4188fi 4189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4190 ac_ext=c 4191ac_cpp='$CPP $CPPFLAGS' 4192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4194ac_compiler_gnu=$ac_cv_c_compiler_gnu 4195 4196 CFLAGS="$ac_save_CFLAGS" 4197 4198fi 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_attribute_visibility_default" >&5 4200$as_echo "$cc_cv_attribute_visibility_default" >&6; } 4201 4202 if eval test x$cc_cv_attribute_visibility_default = xyes; then : 4203 4204$as_echo "@%:@define SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT 1" >>confdefs.h 4205 4206 4207 4208 4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fvisibility=hidden" >&5 4210$as_echo_n "checking if $CC supports -fvisibility=hidden... " >&6; } 4211if ${cc_cv_flag_visibility+:} false; then : 4212 $as_echo_n "(cached) " >&6 4213else 4214 cc_flag_visibility_save_CFLAGS="$CFLAGS" 4215 CFLAGS="$CFLAGS $cc_cv_werror" 4216 4217 if ${cc_cv_cflags__fvisibility_hidden+:} false; then : 4218 $as_echo_n "(cached) " >&6 4219else 4220 ac_save_CFLAGS="$CFLAGS" 4221 CFLAGS="$CFLAGS -fvisibility=hidden" 4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4223/* end confdefs.h. */ 4224int a; 4225_ACEOF 4226if ac_fn_c_try_compile "$LINENO"; then : 4227 eval "cc_cv_cflags__fvisibility_hidden='yes'" 4228else 4229 eval "cc_cv_cflags__fvisibility_hidden='no'" 4230fi 4231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4232 CFLAGS="$ac_save_CFLAGS" 4233 4234fi 4235 4236 4237 if eval test x$cc_cv_cflags__fvisibility_hidden = xyes; then : 4238 cc_cv_flag_visibility='yes' 4239else 4240 cc_cv_flag_visibility='no' 4241fi 4242 4243 CFLAGS="$cc_flag_visibility_save_CFLAGS" 4244fi 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_flag_visibility" >&5 4246$as_echo "$cc_cv_flag_visibility" >&6; } 4247 4248 if test "x$cc_cv_flag_visibility" = "xyes"; then : 4249 4250$as_echo "@%:@define SUPPORT_FLAG_VISIBILITY 1" >>confdefs.h 4251 4252 CFLAGS="${CFLAGS} -fvisibility=hidden" 4253fi 4254 4255 4256fi 4257 4258 4259 4260 for flag in -fno-strict-aliasing; do 4261 4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 4263$as_echo_n "checking if $CC supports $flag flag... " >&6; } 4264if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4265 $as_echo_n "(cached) " >&6 4266else 4267 4268 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4269 $as_echo_n "(cached) " >&6 4270else 4271 ac_save_CFLAGS="$CFLAGS" 4272 CFLAGS="$CFLAGS $flag" 4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4274/* end confdefs.h. */ 4275int a; 4276_ACEOF 4277if ac_fn_c_try_compile "$LINENO"; then : 4278 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 4279else 4280 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 4281fi 4282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4283 CFLAGS="$ac_save_CFLAGS" 4284 4285fi 4286 4287 4288 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4289 4290fi 4291 4292fi 4293eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4295$as_echo "$ac_res" >&6; } 4296 4297 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4298 CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 4299fi 4300 4301 done 4302 4303 4304 for flag in -g; do 4305 4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 4307$as_echo_n "checking if $CC supports $flag flag... " >&6; } 4308if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4309 $as_echo_n "(cached) " >&6 4310else 4311 4312 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4313 $as_echo_n "(cached) " >&6 4314else 4315 ac_save_CFLAGS="$CFLAGS" 4316 CFLAGS="$CFLAGS $flag" 4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4318/* end confdefs.h. */ 4319int a; 4320_ACEOF 4321if ac_fn_c_try_compile "$LINENO"; then : 4322 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 4323else 4324 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 4325fi 4326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4327 CFLAGS="$ac_save_CFLAGS" 4328 4329fi 4330 4331 4332 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4333 4334fi 4335 4336fi 4337eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4339$as_echo "$ac_res" >&6; } 4340 4341 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4342 CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 4343fi 4344 4345 done 4346 4347 4348 for flag in -std=gnu89; do 4349 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 4351$as_echo_n "checking if $CC supports $flag flag... " >&6; } 4352if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4353 $as_echo_n "(cached) " >&6 4354else 4355 4356 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4357 $as_echo_n "(cached) " >&6 4358else 4359 ac_save_CFLAGS="$CFLAGS" 4360 CFLAGS="$CFLAGS $flag" 4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4362/* end confdefs.h. */ 4363int a; 4364_ACEOF 4365if ac_fn_c_try_compile "$LINENO"; then : 4366 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 4367else 4368 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 4369fi 4370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4371 CFLAGS="$ac_save_CFLAGS" 4372 4373fi 4374 4375 4376 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4377 4378fi 4379 4380fi 4381eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4383$as_echo "$ac_res" >&6; } 4384 4385 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4386 CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 4387fi 4388 4389 done 4390 4391 4392 for flag in -Wall; do 4393 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 4395$as_echo_n "checking if $CC supports $flag flag... " >&6; } 4396if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4397 $as_echo_n "(cached) " >&6 4398else 4399 4400 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4401 $as_echo_n "(cached) " >&6 4402else 4403 ac_save_CFLAGS="$CFLAGS" 4404 CFLAGS="$CFLAGS $flag" 4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4406/* end confdefs.h. */ 4407int a; 4408_ACEOF 4409if ac_fn_c_try_compile "$LINENO"; then : 4410 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 4411else 4412 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 4413fi 4414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4415 CFLAGS="$ac_save_CFLAGS" 4416 4417fi 4418 4419 4420 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4421 4422fi 4423 4424fi 4425eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4427$as_echo "$ac_res" >&6; } 4428 4429 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4430 CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 4431fi 4432 4433 done 4434 4435 4436 for flag in -Wextra; do 4437 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 4439$as_echo_n "checking if $CC supports $flag flag... " >&6; } 4440if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4441 $as_echo_n "(cached) " >&6 4442else 4443 4444 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4445 $as_echo_n "(cached) " >&6 4446else 4447 ac_save_CFLAGS="$CFLAGS" 4448 CFLAGS="$CFLAGS $flag" 4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4450/* end confdefs.h. */ 4451int a; 4452_ACEOF 4453if ac_fn_c_try_compile "$LINENO"; then : 4454 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 4455else 4456 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 4457fi 4458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4459 CFLAGS="$ac_save_CFLAGS" 4460 4461fi 4462 4463 4464 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4465 4466fi 4467 4468fi 4469eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4471$as_echo "$ac_res" >&6; } 4472 4473 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4474 CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 4475fi 4476 4477 done 4478 4479 4480 for flag in -Wno-long-long; do 4481 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 4483$as_echo_n "checking if $CC supports $flag flag... " >&6; } 4484if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4485 $as_echo_n "(cached) " >&6 4486else 4487 4488 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4489 $as_echo_n "(cached) " >&6 4490else 4491 ac_save_CFLAGS="$CFLAGS" 4492 CFLAGS="$CFLAGS $flag" 4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4494/* end confdefs.h. */ 4495int a; 4496_ACEOF 4497if ac_fn_c_try_compile "$LINENO"; then : 4498 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 4499else 4500 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 4501fi 4502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4503 CFLAGS="$ac_save_CFLAGS" 4504 4505fi 4506 4507 4508 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4509 4510fi 4511 4512fi 4513eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4515$as_echo "$ac_res" >&6; } 4516 4517 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4518 CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 4519fi 4520 4521 done 4522 4523 4524 for flag in -Wno-unused-parameter; do 4525 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 4527$as_echo_n "checking if $CC supports $flag flag... " >&6; } 4528if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4529 $as_echo_n "(cached) " >&6 4530else 4531 4532 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4533 $as_echo_n "(cached) " >&6 4534else 4535 ac_save_CFLAGS="$CFLAGS" 4536 CFLAGS="$CFLAGS $flag" 4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4538/* end confdefs.h. */ 4539int a; 4540_ACEOF 4541if ac_fn_c_try_compile "$LINENO"; then : 4542 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 4543else 4544 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 4545fi 4546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4547 CFLAGS="$ac_save_CFLAGS" 4548 4549fi 4550 4551 4552 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4553 4554fi 4555 4556fi 4557eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4559$as_echo "$ac_res" >&6; } 4560 4561 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4562 CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 4563fi 4564 4565 done 4566 4567 4568 for flag in -Wstrict-prototypes; do 4569 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 4571$as_echo_n "checking if $CC supports $flag flag... " >&6; } 4572if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4573 $as_echo_n "(cached) " >&6 4574else 4575 4576 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4577 $as_echo_n "(cached) " >&6 4578else 4579 ac_save_CFLAGS="$CFLAGS" 4580 CFLAGS="$CFLAGS $flag" 4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4582/* end confdefs.h. */ 4583int a; 4584_ACEOF 4585if ac_fn_c_try_compile "$LINENO"; then : 4586 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 4587else 4588 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 4589fi 4590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4591 CFLAGS="$ac_save_CFLAGS" 4592 4593fi 4594 4595 4596 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4597 4598fi 4599 4600fi 4601eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4603$as_echo "$ac_res" >&6; } 4604 4605 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 4606 CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; 4607fi 4608 4609 done 4610 4611# AM_PROG_AR is not available in automake v0.11 but it's essential in v0.12. 4612if test -n "$ac_tool_prefix"; then 4613 for ac_prog in ar lib "link -lib" 4614 do 4615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4616set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4618$as_echo_n "checking for $ac_word... " >&6; } 4619if ${ac_cv_prog_AR+:} false; then : 4620 $as_echo_n "(cached) " >&6 4621else 4622 if test -n "$AR"; then 4623 ac_cv_prog_AR="$AR" # Let the user override the test. 4624else 4625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4626for as_dir in $PATH 4627do 4628 IFS=$as_save_IFS 4629 test -z "$as_dir" && as_dir=. 4630 for ac_exec_ext in '' $ac_executable_extensions; do 4631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4632 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4634 break 2 4635 fi 4636done 4637 done 4638IFS=$as_save_IFS 4639 4640fi 4641fi 4642AR=$ac_cv_prog_AR 4643if test -n "$AR"; then 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4645$as_echo "$AR" >&6; } 4646else 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4648$as_echo "no" >&6; } 4649fi 4650 4651 4652 test -n "$AR" && break 4653 done 4654fi 4655if test -z "$AR"; then 4656 ac_ct_AR=$AR 4657 for ac_prog in ar lib "link -lib" 4658do 4659 # Extract the first word of "$ac_prog", so it can be a program name with args. 4660set dummy $ac_prog; ac_word=$2 4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4662$as_echo_n "checking for $ac_word... " >&6; } 4663if ${ac_cv_prog_ac_ct_AR+:} false; then : 4664 $as_echo_n "(cached) " >&6 4665else 4666 if test -n "$ac_ct_AR"; then 4667 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4668else 4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4670for as_dir in $PATH 4671do 4672 IFS=$as_save_IFS 4673 test -z "$as_dir" && as_dir=. 4674 for ac_exec_ext in '' $ac_executable_extensions; do 4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4676 ac_cv_prog_ac_ct_AR="$ac_prog" 4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4678 break 2 4679 fi 4680done 4681 done 4682IFS=$as_save_IFS 4683 4684fi 4685fi 4686ac_ct_AR=$ac_cv_prog_ac_ct_AR 4687if test -n "$ac_ct_AR"; then 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4689$as_echo "$ac_ct_AR" >&6; } 4690else 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4692$as_echo "no" >&6; } 4693fi 4694 4695 4696 test -n "$ac_ct_AR" && break 4697done 4698 4699 if test "x$ac_ct_AR" = x; then 4700 AR="false" 4701 else 4702 case $cross_compiling:$ac_tool_warned in 4703yes:) 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4706ac_tool_warned=yes ;; 4707esac 4708 AR=$ac_ct_AR 4709 fi 4710fi 4711 4712: ${AR=ar} 4713 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4715$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4716if ${am_cv_ar_interface+:} false; then : 4717 $as_echo_n "(cached) " >&6 4718else 4719 ac_ext=c 4720ac_cpp='$CPP $CPPFLAGS' 4721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4723ac_compiler_gnu=$ac_cv_c_compiler_gnu 4724 4725 am_cv_ar_interface=ar 4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4727/* end confdefs.h. */ 4728int some_variable = 0; 4729_ACEOF 4730if ac_fn_c_try_compile "$LINENO"; then : 4731 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4733 (eval $am_ar_try) 2>&5 4734 ac_status=$? 4735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4736 test $ac_status = 0; } 4737 if test "$ac_status" -eq 0; then 4738 am_cv_ar_interface=ar 4739 else 4740 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4742 (eval $am_ar_try) 2>&5 4743 ac_status=$? 4744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4745 test $ac_status = 0; } 4746 if test "$ac_status" -eq 0; then 4747 am_cv_ar_interface=lib 4748 else 4749 am_cv_ar_interface=unknown 4750 fi 4751 fi 4752 rm -f conftest.lib libconftest.a 4753 4754fi 4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4756 ac_ext=c 4757ac_cpp='$CPP $CPPFLAGS' 4758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4760ac_compiler_gnu=$ac_cv_c_compiler_gnu 4761 4762fi 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4764$as_echo "$am_cv_ar_interface" >&6; } 4765 4766case $am_cv_ar_interface in 4767ar) 4768 ;; 4769lib) 4770 # Microsoft lib, so override with the ar-lib wrapper script. 4771 # FIXME: It is wrong to rewrite AR. 4772 # But if we don't then we get into trouble of one sort or another. 4773 # A longer-term fix would be to have automake use am__AR in this case, 4774 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4775 # similar. 4776 AR="$am_aux_dir/ar-lib $AR" 4777 ;; 4778unknown) 4779 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4780 ;; 4781esac 4782 4783# autoconf complains if AC_PROG_LIBTOOL precedes AM_PROG_AR. 4784case `pwd` in 4785 *\ * | *\ *) 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4787$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4788esac 4789 4790 4791 4792macro_version='2.4.6' 4793macro_revision='2.4.6' 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807ltmain=$ac_aux_dir/ltmain.sh 4808 4809# Backslashify metacharacters that are still active within 4810# double-quoted strings. 4811sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4812 4813# Same as above, but do not quote variable references. 4814double_quote_subst='s/\(["`\\]\)/\\\1/g' 4815 4816# Sed substitution to delay expansion of an escaped shell variable in a 4817# double_quote_subst'ed string. 4818delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4819 4820# Sed substitution to delay expansion of an escaped single quote. 4821delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4822 4823# Sed substitution to avoid accidental globbing in evaled expressions 4824no_glob_subst='s/\*/\\\*/g' 4825 4826ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4827ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4828ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4829 4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4831$as_echo_n "checking how to print strings... " >&6; } 4832# Test print first, because it will be a builtin if present. 4833if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4834 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4835 ECHO='print -r --' 4836elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4837 ECHO='printf %s\n' 4838else 4839 # Use this function as a fallback that always works. 4840 func_fallback_echo () 4841 { 4842 eval 'cat <<_LTECHO_EOF 4843$1 4844_LTECHO_EOF' 4845 } 4846 ECHO='func_fallback_echo' 4847fi 4848 4849# func_echo_all arg... 4850# Invoke $ECHO with all args, space-separated. 4851func_echo_all () 4852{ 4853 $ECHO "" 4854} 4855 4856case $ECHO in 4857 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4858$as_echo "printf" >&6; } ;; 4859 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4860$as_echo "print -r" >&6; } ;; 4861 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4862$as_echo "cat" >&6; } ;; 4863esac 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4879$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4880if ${ac_cv_path_SED+:} false; then : 4881 $as_echo_n "(cached) " >&6 4882else 4883 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4884 for ac_i in 1 2 3 4 5 6 7; do 4885 ac_script="$ac_script$as_nl$ac_script" 4886 done 4887 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4888 { ac_script=; unset ac_script;} 4889 if test -z "$SED"; then 4890 ac_path_SED_found=false 4891 # Loop through the user's path and test for each of PROGNAME-LIST 4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4893for as_dir in $PATH 4894do 4895 IFS=$as_save_IFS 4896 test -z "$as_dir" && as_dir=. 4897 for ac_prog in sed gsed; do 4898 for ac_exec_ext in '' $ac_executable_extensions; do 4899 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4900 as_fn_executable_p "$ac_path_SED" || continue 4901# Check for GNU ac_path_SED and select it if it is found. 4902 # Check for GNU $ac_path_SED 4903case `"$ac_path_SED" --version 2>&1` in 4904*GNU*) 4905 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4906*) 4907 ac_count=0 4908 $as_echo_n 0123456789 >"conftest.in" 4909 while : 4910 do 4911 cat "conftest.in" "conftest.in" >"conftest.tmp" 4912 mv "conftest.tmp" "conftest.in" 4913 cp "conftest.in" "conftest.nl" 4914 $as_echo '' >> "conftest.nl" 4915 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4917 as_fn_arith $ac_count + 1 && ac_count=$as_val 4918 if test $ac_count -gt ${ac_path_SED_max-0}; then 4919 # Best one so far, save it but keep looking for a better one 4920 ac_cv_path_SED="$ac_path_SED" 4921 ac_path_SED_max=$ac_count 4922 fi 4923 # 10*(2^10) chars as input seems more than enough 4924 test $ac_count -gt 10 && break 4925 done 4926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4927esac 4928 4929 $ac_path_SED_found && break 3 4930 done 4931 done 4932 done 4933IFS=$as_save_IFS 4934 if test -z "$ac_cv_path_SED"; then 4935 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4936 fi 4937else 4938 ac_cv_path_SED=$SED 4939fi 4940 4941fi 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4943$as_echo "$ac_cv_path_SED" >&6; } 4944 SED="$ac_cv_path_SED" 4945 rm -f conftest.sed 4946 4947test -z "$SED" && SED=sed 4948Xsed="$SED -e 1s/^X//" 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4961$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4962if ${ac_cv_path_GREP+:} false; then : 4963 $as_echo_n "(cached) " >&6 4964else 4965 if test -z "$GREP"; then 4966 ac_path_GREP_found=false 4967 # Loop through the user's path and test for each of PROGNAME-LIST 4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4969for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4970do 4971 IFS=$as_save_IFS 4972 test -z "$as_dir" && as_dir=. 4973 for ac_prog in grep ggrep; do 4974 for ac_exec_ext in '' $ac_executable_extensions; do 4975 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4976 as_fn_executable_p "$ac_path_GREP" || continue 4977# Check for GNU ac_path_GREP and select it if it is found. 4978 # Check for GNU $ac_path_GREP 4979case `"$ac_path_GREP" --version 2>&1` in 4980*GNU*) 4981 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4982*) 4983 ac_count=0 4984 $as_echo_n 0123456789 >"conftest.in" 4985 while : 4986 do 4987 cat "conftest.in" "conftest.in" >"conftest.tmp" 4988 mv "conftest.tmp" "conftest.in" 4989 cp "conftest.in" "conftest.nl" 4990 $as_echo 'GREP' >> "conftest.nl" 4991 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4993 as_fn_arith $ac_count + 1 && ac_count=$as_val 4994 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4995 # Best one so far, save it but keep looking for a better one 4996 ac_cv_path_GREP="$ac_path_GREP" 4997 ac_path_GREP_max=$ac_count 4998 fi 4999 # 10*(2^10) chars as input seems more than enough 5000 test $ac_count -gt 10 && break 5001 done 5002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5003esac 5004 5005 $ac_path_GREP_found && break 3 5006 done 5007 done 5008 done 5009IFS=$as_save_IFS 5010 if test -z "$ac_cv_path_GREP"; then 5011 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5012 fi 5013else 5014 ac_cv_path_GREP=$GREP 5015fi 5016 5017fi 5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5019$as_echo "$ac_cv_path_GREP" >&6; } 5020 GREP="$ac_cv_path_GREP" 5021 5022 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5024$as_echo_n "checking for egrep... " >&6; } 5025if ${ac_cv_path_EGREP+:} false; then : 5026 $as_echo_n "(cached) " >&6 5027else 5028 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5029 then ac_cv_path_EGREP="$GREP -E" 5030 else 5031 if test -z "$EGREP"; then 5032 ac_path_EGREP_found=false 5033 # Loop through the user's path and test for each of PROGNAME-LIST 5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5035for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5036do 5037 IFS=$as_save_IFS 5038 test -z "$as_dir" && as_dir=. 5039 for ac_prog in egrep; do 5040 for ac_exec_ext in '' $ac_executable_extensions; do 5041 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5042 as_fn_executable_p "$ac_path_EGREP" || continue 5043# Check for GNU ac_path_EGREP and select it if it is found. 5044 # Check for GNU $ac_path_EGREP 5045case `"$ac_path_EGREP" --version 2>&1` in 5046*GNU*) 5047 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5048*) 5049 ac_count=0 5050 $as_echo_n 0123456789 >"conftest.in" 5051 while : 5052 do 5053 cat "conftest.in" "conftest.in" >"conftest.tmp" 5054 mv "conftest.tmp" "conftest.in" 5055 cp "conftest.in" "conftest.nl" 5056 $as_echo 'EGREP' >> "conftest.nl" 5057 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val 5060 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5061 # Best one so far, save it but keep looking for a better one 5062 ac_cv_path_EGREP="$ac_path_EGREP" 5063 ac_path_EGREP_max=$ac_count 5064 fi 5065 # 10*(2^10) chars as input seems more than enough 5066 test $ac_count -gt 10 && break 5067 done 5068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5069esac 5070 5071 $ac_path_EGREP_found && break 3 5072 done 5073 done 5074 done 5075IFS=$as_save_IFS 5076 if test -z "$ac_cv_path_EGREP"; then 5077 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5078 fi 5079else 5080 ac_cv_path_EGREP=$EGREP 5081fi 5082 5083 fi 5084fi 5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5086$as_echo "$ac_cv_path_EGREP" >&6; } 5087 EGREP="$ac_cv_path_EGREP" 5088 5089 5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5091$as_echo_n "checking for fgrep... " >&6; } 5092if ${ac_cv_path_FGREP+:} false; then : 5093 $as_echo_n "(cached) " >&6 5094else 5095 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5096 then ac_cv_path_FGREP="$GREP -F" 5097 else 5098 if test -z "$FGREP"; then 5099 ac_path_FGREP_found=false 5100 # Loop through the user's path and test for each of PROGNAME-LIST 5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5102for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5103do 5104 IFS=$as_save_IFS 5105 test -z "$as_dir" && as_dir=. 5106 for ac_prog in fgrep; do 5107 for ac_exec_ext in '' $ac_executable_extensions; do 5108 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5109 as_fn_executable_p "$ac_path_FGREP" || continue 5110# Check for GNU ac_path_FGREP and select it if it is found. 5111 # Check for GNU $ac_path_FGREP 5112case `"$ac_path_FGREP" --version 2>&1` in 5113*GNU*) 5114 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5115*) 5116 ac_count=0 5117 $as_echo_n 0123456789 >"conftest.in" 5118 while : 5119 do 5120 cat "conftest.in" "conftest.in" >"conftest.tmp" 5121 mv "conftest.tmp" "conftest.in" 5122 cp "conftest.in" "conftest.nl" 5123 $as_echo 'FGREP' >> "conftest.nl" 5124 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5126 as_fn_arith $ac_count + 1 && ac_count=$as_val 5127 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5128 # Best one so far, save it but keep looking for a better one 5129 ac_cv_path_FGREP="$ac_path_FGREP" 5130 ac_path_FGREP_max=$ac_count 5131 fi 5132 # 10*(2^10) chars as input seems more than enough 5133 test $ac_count -gt 10 && break 5134 done 5135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5136esac 5137 5138 $ac_path_FGREP_found && break 3 5139 done 5140 done 5141 done 5142IFS=$as_save_IFS 5143 if test -z "$ac_cv_path_FGREP"; then 5144 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5145 fi 5146else 5147 ac_cv_path_FGREP=$FGREP 5148fi 5149 5150 fi 5151fi 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5153$as_echo "$ac_cv_path_FGREP" >&6; } 5154 FGREP="$ac_cv_path_FGREP" 5155 5156 5157test -z "$GREP" && GREP=grep 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177@%:@ Check whether --with-gnu-ld was given. 5178if test "${with_gnu_ld+set}" = set; then : 5179 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5180else 5181 with_gnu_ld=no 5182fi 5183 5184ac_prog=ld 5185if test yes = "$GCC"; then 5186 # Check if gcc -print-prog-name=ld gives a path. 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5188$as_echo_n "checking for ld used by $CC... " >&6; } 5189 case $host in 5190 *-*-mingw*) 5191 # gcc leaves a trailing carriage return, which upsets mingw 5192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5193 *) 5194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5195 esac 5196 case $ac_prog in 5197 # Accept absolute paths. 5198 [\\/]* | ?:[\\/]*) 5199 re_direlt='/[^/][^/]*/\.\./' 5200 # Canonicalize the pathname of ld 5201 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5202 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5203 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5204 done 5205 test -z "$LD" && LD=$ac_prog 5206 ;; 5207 "") 5208 # If it fails, then pretend we aren't using GCC. 5209 ac_prog=ld 5210 ;; 5211 *) 5212 # If it is relative, then search for the first ld in PATH. 5213 with_gnu_ld=unknown 5214 ;; 5215 esac 5216elif test yes = "$with_gnu_ld"; then 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5218$as_echo_n "checking for GNU ld... " >&6; } 5219else 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5221$as_echo_n "checking for non-GNU ld... " >&6; } 5222fi 5223if ${lt_cv_path_LD+:} false; then : 5224 $as_echo_n "(cached) " >&6 5225else 5226 if test -z "$LD"; then 5227 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5228 for ac_dir in $PATH; do 5229 IFS=$lt_save_ifs 5230 test -z "$ac_dir" && ac_dir=. 5231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5232 lt_cv_path_LD=$ac_dir/$ac_prog 5233 # Check to see if the program is GNU ld. I'd rather use --version, 5234 # but apparently some variants of GNU ld only accept -v. 5235 # Break only if it was the GNU/non-GNU ld that we prefer. 5236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5237 *GNU* | *'with BFD'*) 5238 test no != "$with_gnu_ld" && break 5239 ;; 5240 *) 5241 test yes != "$with_gnu_ld" && break 5242 ;; 5243 esac 5244 fi 5245 done 5246 IFS=$lt_save_ifs 5247else 5248 lt_cv_path_LD=$LD # Let the user override the test with a path. 5249fi 5250fi 5251 5252LD=$lt_cv_path_LD 5253if test -n "$LD"; then 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5255$as_echo "$LD" >&6; } 5256else 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5258$as_echo "no" >&6; } 5259fi 5260test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5262$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5263if ${lt_cv_prog_gnu_ld+:} false; then : 5264 $as_echo_n "(cached) " >&6 5265else 5266 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5267case `$LD -v 2>&1 </dev/null` in 5268*GNU* | *'with BFD'*) 5269 lt_cv_prog_gnu_ld=yes 5270 ;; 5271*) 5272 lt_cv_prog_gnu_ld=no 5273 ;; 5274esac 5275fi 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5277$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5278with_gnu_ld=$lt_cv_prog_gnu_ld 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5289$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5290if ${lt_cv_path_NM+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292else 5293 if test -n "$NM"; then 5294 # Let the user override the test. 5295 lt_cv_path_NM=$NM 5296else 5297 lt_nm_to_check=${ac_tool_prefix}nm 5298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5299 lt_nm_to_check="$lt_nm_to_check nm" 5300 fi 5301 for lt_tmp_nm in $lt_nm_to_check; do 5302 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5304 IFS=$lt_save_ifs 5305 test -z "$ac_dir" && ac_dir=. 5306 tmp_nm=$ac_dir/$lt_tmp_nm 5307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5308 # Check to see if the nm accepts a BSD-compat flag. 5309 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5310 # nm: unknown option "B" ignored 5311 # Tru64's nm complains that /dev/null is an invalid object file 5312 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5313 case $build_os in 5314 mingw*) lt_bad_file=conftest.nm/nofile ;; 5315 *) lt_bad_file=/dev/null ;; 5316 esac 5317 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5318 *$lt_bad_file* | *'Invalid file or object type'*) 5319 lt_cv_path_NM="$tmp_nm -B" 5320 break 2 5321 ;; 5322 *) 5323 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5324 */dev/null*) 5325 lt_cv_path_NM="$tmp_nm -p" 5326 break 2 5327 ;; 5328 *) 5329 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5330 continue # so that we can try to find one that supports BSD flags 5331 ;; 5332 esac 5333 ;; 5334 esac 5335 fi 5336 done 5337 IFS=$lt_save_ifs 5338 done 5339 : ${lt_cv_path_NM=no} 5340fi 5341fi 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5343$as_echo "$lt_cv_path_NM" >&6; } 5344if test no != "$lt_cv_path_NM"; then 5345 NM=$lt_cv_path_NM 5346else 5347 # Didn't find any BSD compatible name lister, look for dumpbin. 5348 if test -n "$DUMPBIN"; then : 5349 # Let the user override the test. 5350 else 5351 if test -n "$ac_tool_prefix"; then 5352 for ac_prog in dumpbin "link -dump" 5353 do 5354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5355set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5357$as_echo_n "checking for $ac_word... " >&6; } 5358if ${ac_cv_prog_DUMPBIN+:} false; then : 5359 $as_echo_n "(cached) " >&6 5360else 5361 if test -n "$DUMPBIN"; then 5362 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5363else 5364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5365for as_dir in $PATH 5366do 5367 IFS=$as_save_IFS 5368 test -z "$as_dir" && as_dir=. 5369 for ac_exec_ext in '' $ac_executable_extensions; do 5370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5371 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5373 break 2 5374 fi 5375done 5376 done 5377IFS=$as_save_IFS 5378 5379fi 5380fi 5381DUMPBIN=$ac_cv_prog_DUMPBIN 5382if test -n "$DUMPBIN"; then 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5384$as_echo "$DUMPBIN" >&6; } 5385else 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5387$as_echo "no" >&6; } 5388fi 5389 5390 5391 test -n "$DUMPBIN" && break 5392 done 5393fi 5394if test -z "$DUMPBIN"; then 5395 ac_ct_DUMPBIN=$DUMPBIN 5396 for ac_prog in dumpbin "link -dump" 5397do 5398 # Extract the first word of "$ac_prog", so it can be a program name with args. 5399set dummy $ac_prog; ac_word=$2 5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5401$as_echo_n "checking for $ac_word... " >&6; } 5402if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5403 $as_echo_n "(cached) " >&6 5404else 5405 if test -n "$ac_ct_DUMPBIN"; then 5406 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5407else 5408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5409for as_dir in $PATH 5410do 5411 IFS=$as_save_IFS 5412 test -z "$as_dir" && as_dir=. 5413 for ac_exec_ext in '' $ac_executable_extensions; do 5414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5415 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5417 break 2 5418 fi 5419done 5420 done 5421IFS=$as_save_IFS 5422 5423fi 5424fi 5425ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5426if test -n "$ac_ct_DUMPBIN"; then 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5428$as_echo "$ac_ct_DUMPBIN" >&6; } 5429else 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5431$as_echo "no" >&6; } 5432fi 5433 5434 5435 test -n "$ac_ct_DUMPBIN" && break 5436done 5437 5438 if test "x$ac_ct_DUMPBIN" = x; then 5439 DUMPBIN=":" 5440 else 5441 case $cross_compiling:$ac_tool_warned in 5442yes:) 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5445ac_tool_warned=yes ;; 5446esac 5447 DUMPBIN=$ac_ct_DUMPBIN 5448 fi 5449fi 5450 5451 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5452 *COFF*) 5453 DUMPBIN="$DUMPBIN -symbols -headers" 5454 ;; 5455 *) 5456 DUMPBIN=: 5457 ;; 5458 esac 5459 fi 5460 5461 if test : != "$DUMPBIN"; then 5462 NM=$DUMPBIN 5463 fi 5464fi 5465test -z "$NM" && NM=nm 5466 5467 5468 5469 5470 5471 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5473$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5474if ${lt_cv_nm_interface+:} false; then : 5475 $as_echo_n "(cached) " >&6 5476else 5477 lt_cv_nm_interface="BSD nm" 5478 echo "int some_variable = 0;" > conftest.$ac_ext 5479 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5480 (eval "$ac_compile" 2>conftest.err) 5481 cat conftest.err >&5 5482 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5483 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5484 cat conftest.err >&5 5485 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5486 cat conftest.out >&5 5487 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5488 lt_cv_nm_interface="MS dumpbin" 5489 fi 5490 rm -f conftest* 5491fi 5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5493$as_echo "$lt_cv_nm_interface" >&6; } 5494 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5496$as_echo_n "checking whether ln -s works... " >&6; } 5497LN_S=$as_ln_s 5498if test "$LN_S" = "ln -s"; then 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5500$as_echo "yes" >&6; } 5501else 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5503$as_echo "no, using $LN_S" >&6; } 5504fi 5505 5506# find the maximum length of command line arguments 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5508$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5509if ${lt_cv_sys_max_cmd_len+:} false; then : 5510 $as_echo_n "(cached) " >&6 5511else 5512 i=0 5513 teststring=ABCD 5514 5515 case $build_os in 5516 msdosdjgpp*) 5517 # On DJGPP, this test can blow up pretty badly due to problems in libc 5518 # (any single argument exceeding 2000 bytes causes a buffer overrun 5519 # during glob expansion). Even if it were fixed, the result of this 5520 # check would be larger than it should be. 5521 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5522 ;; 5523 5524 gnu*) 5525 # Under GNU Hurd, this test is not required because there is 5526 # no limit to the length of command line arguments. 5527 # Libtool will interpret -1 as no limit whatsoever 5528 lt_cv_sys_max_cmd_len=-1; 5529 ;; 5530 5531 cygwin* | mingw* | cegcc*) 5532 # On Win9x/ME, this test blows up -- it succeeds, but takes 5533 # about 5 minutes as the teststring grows exponentially. 5534 # Worse, since 9x/ME are not pre-emptively multitasking, 5535 # you end up with a "frozen" computer, even though with patience 5536 # the test eventually succeeds (with a max line length of 256k). 5537 # Instead, let's just punt: use the minimum linelength reported by 5538 # all of the supported platforms: 8192 (on NT/2K/XP). 5539 lt_cv_sys_max_cmd_len=8192; 5540 ;; 5541 5542 mint*) 5543 # On MiNT this can take a long time and run out of memory. 5544 lt_cv_sys_max_cmd_len=8192; 5545 ;; 5546 5547 amigaos*) 5548 # On AmigaOS with pdksh, this test takes hours, literally. 5549 # So we just punt and use a minimum line length of 8192. 5550 lt_cv_sys_max_cmd_len=8192; 5551 ;; 5552 5553 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5554 # This has been around since 386BSD, at least. Likely further. 5555 if test -x /sbin/sysctl; then 5556 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5557 elif test -x /usr/sbin/sysctl; then 5558 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5559 else 5560 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5561 fi 5562 # And add a safety zone 5563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5565 ;; 5566 5567 interix*) 5568 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5569 lt_cv_sys_max_cmd_len=196608 5570 ;; 5571 5572 os2*) 5573 # The test takes a long time on OS/2. 5574 lt_cv_sys_max_cmd_len=8192 5575 ;; 5576 5577 osf*) 5578 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5579 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5580 # nice to cause kernel panics so lets avoid the loop below. 5581 # First set a reasonable default. 5582 lt_cv_sys_max_cmd_len=16384 5583 # 5584 if test -x /sbin/sysconfig; then 5585 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5586 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5587 esac 5588 fi 5589 ;; 5590 sco3.2v5*) 5591 lt_cv_sys_max_cmd_len=102400 5592 ;; 5593 sysv5* | sco5v6* | sysv4.2uw2*) 5594 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5595 if test -n "$kargmax"; then 5596 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5597 else 5598 lt_cv_sys_max_cmd_len=32768 5599 fi 5600 ;; 5601 *) 5602 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5603 if test -n "$lt_cv_sys_max_cmd_len" && \ 5604 test undefined != "$lt_cv_sys_max_cmd_len"; then 5605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5607 else 5608 # Make teststring a little bigger before we do anything with it. 5609 # a 1K string should be a reasonable start. 5610 for i in 1 2 3 4 5 6 7 8; do 5611 teststring=$teststring$teststring 5612 done 5613 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5614 # If test is not a shell built-in, we'll probably end up computing a 5615 # maximum length that is only half of the actual maximum length, but 5616 # we can't tell. 5617 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5618 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5619 test 17 != "$i" # 1/2 MB should be enough 5620 do 5621 i=`expr $i + 1` 5622 teststring=$teststring$teststring 5623 done 5624 # Only check the string length outside the loop. 5625 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5626 teststring= 5627 # Add a significant safety factor because C++ compilers can tack on 5628 # massive amounts of additional arguments before passing them to the 5629 # linker. It appears as though 1/2 is a usable value. 5630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5631 fi 5632 ;; 5633 esac 5634 5635fi 5636 5637if test -n "$lt_cv_sys_max_cmd_len"; then 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5639$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5640else 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5642$as_echo "none" >&6; } 5643fi 5644max_cmd_len=$lt_cv_sys_max_cmd_len 5645 5646 5647 5648 5649 5650 5651: ${CP="cp -f"} 5652: ${MV="mv -f"} 5653: ${RM="rm -f"} 5654 5655if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5656 lt_unset=unset 5657else 5658 lt_unset=false 5659fi 5660 5661 5662 5663 5664 5665# test EBCDIC or ASCII 5666case `echo X|tr X '\101'` in 5667 A) # ASCII based system 5668 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5669 lt_SP2NL='tr \040 \012' 5670 lt_NL2SP='tr \015\012 \040\040' 5671 ;; 5672 *) # EBCDIC based system 5673 lt_SP2NL='tr \100 \n' 5674 lt_NL2SP='tr \r\n \100\100' 5675 ;; 5676esac 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5687$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5688if ${lt_cv_to_host_file_cmd+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 case $host in 5692 *-*-mingw* ) 5693 case $build in 5694 *-*-mingw* ) # actually msys 5695 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5696 ;; 5697 *-*-cygwin* ) 5698 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5699 ;; 5700 * ) # otherwise, assume *nix 5701 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5702 ;; 5703 esac 5704 ;; 5705 *-*-cygwin* ) 5706 case $build in 5707 *-*-mingw* ) # actually msys 5708 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5709 ;; 5710 *-*-cygwin* ) 5711 lt_cv_to_host_file_cmd=func_convert_file_noop 5712 ;; 5713 * ) # otherwise, assume *nix 5714 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5715 ;; 5716 esac 5717 ;; 5718 * ) # unhandled hosts (and "normal" native builds) 5719 lt_cv_to_host_file_cmd=func_convert_file_noop 5720 ;; 5721esac 5722 5723fi 5724 5725to_host_file_cmd=$lt_cv_to_host_file_cmd 5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5727$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5728 5729 5730 5731 5732 5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5734$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5735if ${lt_cv_to_tool_file_cmd+:} false; then : 5736 $as_echo_n "(cached) " >&6 5737else 5738 #assume ordinary cross tools, or native build. 5739lt_cv_to_tool_file_cmd=func_convert_file_noop 5740case $host in 5741 *-*-mingw* ) 5742 case $build in 5743 *-*-mingw* ) # actually msys 5744 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5745 ;; 5746 esac 5747 ;; 5748esac 5749 5750fi 5751 5752to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5754$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5755 5756 5757 5758 5759 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5761$as_echo_n "checking for $LD option to reload object files... " >&6; } 5762if ${lt_cv_ld_reload_flag+:} false; then : 5763 $as_echo_n "(cached) " >&6 5764else 5765 lt_cv_ld_reload_flag='-r' 5766fi 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5768$as_echo "$lt_cv_ld_reload_flag" >&6; } 5769reload_flag=$lt_cv_ld_reload_flag 5770case $reload_flag in 5771"" | " "*) ;; 5772*) reload_flag=" $reload_flag" ;; 5773esac 5774reload_cmds='$LD$reload_flag -o $output$reload_objs' 5775case $host_os in 5776 cygwin* | mingw* | pw32* | cegcc*) 5777 if test yes != "$GCC"; then 5778 reload_cmds=false 5779 fi 5780 ;; 5781 darwin*) 5782 if test yes = "$GCC"; then 5783 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5784 else 5785 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5786 fi 5787 ;; 5788esac 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798if test -n "$ac_tool_prefix"; then 5799 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5800set dummy ${ac_tool_prefix}objdump; ac_word=$2 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5802$as_echo_n "checking for $ac_word... " >&6; } 5803if ${ac_cv_prog_OBJDUMP+:} false; then : 5804 $as_echo_n "(cached) " >&6 5805else 5806 if test -n "$OBJDUMP"; then 5807 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5808else 5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5810for as_dir in $PATH 5811do 5812 IFS=$as_save_IFS 5813 test -z "$as_dir" && as_dir=. 5814 for ac_exec_ext in '' $ac_executable_extensions; do 5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5816 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5818 break 2 5819 fi 5820done 5821 done 5822IFS=$as_save_IFS 5823 5824fi 5825fi 5826OBJDUMP=$ac_cv_prog_OBJDUMP 5827if test -n "$OBJDUMP"; then 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5829$as_echo "$OBJDUMP" >&6; } 5830else 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5832$as_echo "no" >&6; } 5833fi 5834 5835 5836fi 5837if test -z "$ac_cv_prog_OBJDUMP"; then 5838 ac_ct_OBJDUMP=$OBJDUMP 5839 # Extract the first word of "objdump", so it can be a program name with args. 5840set dummy objdump; ac_word=$2 5841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5842$as_echo_n "checking for $ac_word... " >&6; } 5843if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5844 $as_echo_n "(cached) " >&6 5845else 5846 if test -n "$ac_ct_OBJDUMP"; then 5847 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5848else 5849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5850for as_dir in $PATH 5851do 5852 IFS=$as_save_IFS 5853 test -z "$as_dir" && as_dir=. 5854 for ac_exec_ext in '' $ac_executable_extensions; do 5855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5856 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5858 break 2 5859 fi 5860done 5861 done 5862IFS=$as_save_IFS 5863 5864fi 5865fi 5866ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5867if test -n "$ac_ct_OBJDUMP"; then 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5869$as_echo "$ac_ct_OBJDUMP" >&6; } 5870else 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5872$as_echo "no" >&6; } 5873fi 5874 5875 if test "x$ac_ct_OBJDUMP" = x; then 5876 OBJDUMP="false" 5877 else 5878 case $cross_compiling:$ac_tool_warned in 5879yes:) 5880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5882ac_tool_warned=yes ;; 5883esac 5884 OBJDUMP=$ac_ct_OBJDUMP 5885 fi 5886else 5887 OBJDUMP="$ac_cv_prog_OBJDUMP" 5888fi 5889 5890test -z "$OBJDUMP" && OBJDUMP=objdump 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5901$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5902if ${lt_cv_deplibs_check_method+:} false; then : 5903 $as_echo_n "(cached) " >&6 5904else 5905 lt_cv_file_magic_cmd='$MAGIC_CMD' 5906lt_cv_file_magic_test_file= 5907lt_cv_deplibs_check_method='unknown' 5908# Need to set the preceding variable on all platforms that support 5909# interlibrary dependencies. 5910# 'none' -- dependencies not supported. 5911# 'unknown' -- same as none, but documents that we really don't know. 5912# 'pass_all' -- all dependencies passed with no checks. 5913# 'test_compile' -- check by making test program. 5914# 'file_magic [[regex]]' -- check by looking for files in library path 5915# that responds to the $file_magic_cmd with a given extended regex. 5916# If you have 'file' or equivalent on your system and you're not sure 5917# whether 'pass_all' will *always* work, you probably want this one. 5918 5919case $host_os in 5920aix[4-9]*) 5921 lt_cv_deplibs_check_method=pass_all 5922 ;; 5923 5924beos*) 5925 lt_cv_deplibs_check_method=pass_all 5926 ;; 5927 5928bsdi[45]*) 5929 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5930 lt_cv_file_magic_cmd='/usr/bin/file -L' 5931 lt_cv_file_magic_test_file=/shlib/libc.so 5932 ;; 5933 5934cygwin*) 5935 # func_win32_libid is a shell function defined in ltmain.sh 5936 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5937 lt_cv_file_magic_cmd='func_win32_libid' 5938 ;; 5939 5940mingw* | pw32*) 5941 # Base MSYS/MinGW do not provide the 'file' command needed by 5942 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5943 # unless we find 'file', for example because we are cross-compiling. 5944 if ( file / ) >/dev/null 2>&1; then 5945 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5946 lt_cv_file_magic_cmd='func_win32_libid' 5947 else 5948 # Keep this pattern in sync with the one in func_win32_libid. 5949 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5950 lt_cv_file_magic_cmd='$OBJDUMP -f' 5951 fi 5952 ;; 5953 5954cegcc*) 5955 # use the weaker test based on 'objdump'. See mingw*. 5956 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5957 lt_cv_file_magic_cmd='$OBJDUMP -f' 5958 ;; 5959 5960darwin* | rhapsody*) 5961 lt_cv_deplibs_check_method=pass_all 5962 ;; 5963 5964freebsd* | dragonfly*) 5965 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5966 case $host_cpu in 5967 i*86 ) 5968 # Not sure whether the presence of OpenBSD here was a mistake. 5969 # Let's accept both of them until this is cleared up. 5970 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5971 lt_cv_file_magic_cmd=/usr/bin/file 5972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5973 ;; 5974 esac 5975 else 5976 lt_cv_deplibs_check_method=pass_all 5977 fi 5978 ;; 5979 5980haiku*) 5981 lt_cv_deplibs_check_method=pass_all 5982 ;; 5983 5984hpux10.20* | hpux11*) 5985 lt_cv_file_magic_cmd=/usr/bin/file 5986 case $host_cpu in 5987 ia64*) 5988 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5989 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5990 ;; 5991 hppa*64*) 5992 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]' 5993 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5994 ;; 5995 *) 5996 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5997 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5998 ;; 5999 esac 6000 ;; 6001 6002interix[3-9]*) 6003 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6005 ;; 6006 6007irix5* | irix6* | nonstopux*) 6008 case $LD in 6009 *-32|*"-32 ") libmagic=32-bit;; 6010 *-n32|*"-n32 ") libmagic=N32;; 6011 *-64|*"-64 ") libmagic=64-bit;; 6012 *) libmagic=never-match;; 6013 esac 6014 lt_cv_deplibs_check_method=pass_all 6015 ;; 6016 6017# This must be glibc/ELF. 6018linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6019 lt_cv_deplibs_check_method=pass_all 6020 ;; 6021 6022netbsd* | netbsdelf*-gnu) 6023 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6025 else 6026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6027 fi 6028 ;; 6029 6030newos6*) 6031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6032 lt_cv_file_magic_cmd=/usr/bin/file 6033 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6034 ;; 6035 6036*nto* | *qnx*) 6037 lt_cv_deplibs_check_method=pass_all 6038 ;; 6039 6040openbsd* | bitrig*) 6041 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6043 else 6044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6045 fi 6046 ;; 6047 6048osf3* | osf4* | osf5*) 6049 lt_cv_deplibs_check_method=pass_all 6050 ;; 6051 6052rdos*) 6053 lt_cv_deplibs_check_method=pass_all 6054 ;; 6055 6056solaris*) 6057 lt_cv_deplibs_check_method=pass_all 6058 ;; 6059 6060sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6061 lt_cv_deplibs_check_method=pass_all 6062 ;; 6063 6064sysv4 | sysv4.3*) 6065 case $host_vendor in 6066 motorola) 6067 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]' 6068 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6069 ;; 6070 ncr) 6071 lt_cv_deplibs_check_method=pass_all 6072 ;; 6073 sequent) 6074 lt_cv_file_magic_cmd='/bin/file' 6075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6076 ;; 6077 sni) 6078 lt_cv_file_magic_cmd='/bin/file' 6079 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6080 lt_cv_file_magic_test_file=/lib/libc.so 6081 ;; 6082 siemens) 6083 lt_cv_deplibs_check_method=pass_all 6084 ;; 6085 pc) 6086 lt_cv_deplibs_check_method=pass_all 6087 ;; 6088 esac 6089 ;; 6090 6091tpf*) 6092 lt_cv_deplibs_check_method=pass_all 6093 ;; 6094os2*) 6095 lt_cv_deplibs_check_method=pass_all 6096 ;; 6097esac 6098 6099fi 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6101$as_echo "$lt_cv_deplibs_check_method" >&6; } 6102 6103file_magic_glob= 6104want_nocaseglob=no 6105if test "$build" = "$host"; then 6106 case $host_os in 6107 mingw* | pw32*) 6108 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6109 want_nocaseglob=yes 6110 else 6111 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6112 fi 6113 ;; 6114 esac 6115fi 6116 6117file_magic_cmd=$lt_cv_file_magic_cmd 6118deplibs_check_method=$lt_cv_deplibs_check_method 6119test -z "$deplibs_check_method" && deplibs_check_method=unknown 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142if test -n "$ac_tool_prefix"; then 6143 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6144set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6146$as_echo_n "checking for $ac_word... " >&6; } 6147if ${ac_cv_prog_DLLTOOL+:} false; then : 6148 $as_echo_n "(cached) " >&6 6149else 6150 if test -n "$DLLTOOL"; then 6151 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6152else 6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6154for as_dir in $PATH 6155do 6156 IFS=$as_save_IFS 6157 test -z "$as_dir" && as_dir=. 6158 for ac_exec_ext in '' $ac_executable_extensions; do 6159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6160 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6162 break 2 6163 fi 6164done 6165 done 6166IFS=$as_save_IFS 6167 6168fi 6169fi 6170DLLTOOL=$ac_cv_prog_DLLTOOL 6171if test -n "$DLLTOOL"; then 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6173$as_echo "$DLLTOOL" >&6; } 6174else 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6176$as_echo "no" >&6; } 6177fi 6178 6179 6180fi 6181if test -z "$ac_cv_prog_DLLTOOL"; then 6182 ac_ct_DLLTOOL=$DLLTOOL 6183 # Extract the first word of "dlltool", so it can be a program name with args. 6184set dummy dlltool; ac_word=$2 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6186$as_echo_n "checking for $ac_word... " >&6; } 6187if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6188 $as_echo_n "(cached) " >&6 6189else 6190 if test -n "$ac_ct_DLLTOOL"; then 6191 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6192else 6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6194for as_dir in $PATH 6195do 6196 IFS=$as_save_IFS 6197 test -z "$as_dir" && as_dir=. 6198 for ac_exec_ext in '' $ac_executable_extensions; do 6199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6200 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6202 break 2 6203 fi 6204done 6205 done 6206IFS=$as_save_IFS 6207 6208fi 6209fi 6210ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6211if test -n "$ac_ct_DLLTOOL"; then 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6213$as_echo "$ac_ct_DLLTOOL" >&6; } 6214else 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6216$as_echo "no" >&6; } 6217fi 6218 6219 if test "x$ac_ct_DLLTOOL" = x; then 6220 DLLTOOL="false" 6221 else 6222 case $cross_compiling:$ac_tool_warned in 6223yes:) 6224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6226ac_tool_warned=yes ;; 6227esac 6228 DLLTOOL=$ac_ct_DLLTOOL 6229 fi 6230else 6231 DLLTOOL="$ac_cv_prog_DLLTOOL" 6232fi 6233 6234test -z "$DLLTOOL" && DLLTOOL=dlltool 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6246$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6247if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6248 $as_echo_n "(cached) " >&6 6249else 6250 lt_cv_sharedlib_from_linklib_cmd='unknown' 6251 6252case $host_os in 6253cygwin* | mingw* | pw32* | cegcc*) 6254 # two different shell functions defined in ltmain.sh; 6255 # decide which one to use based on capabilities of $DLLTOOL 6256 case `$DLLTOOL --help 2>&1` in 6257 *--identify-strict*) 6258 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6259 ;; 6260 *) 6261 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6262 ;; 6263 esac 6264 ;; 6265*) 6266 # fallback: assume linklib IS sharedlib 6267 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6268 ;; 6269esac 6270 6271fi 6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6273$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6274sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6275test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6276 6277 6278 6279 6280 6281 6282 6283if test -n "$ac_tool_prefix"; then 6284 for ac_prog in ar 6285 do 6286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6287set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6289$as_echo_n "checking for $ac_word... " >&6; } 6290if ${ac_cv_prog_AR+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292else 6293 if test -n "$AR"; then 6294 ac_cv_prog_AR="$AR" # Let the user override the test. 6295else 6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6297for as_dir in $PATH 6298do 6299 IFS=$as_save_IFS 6300 test -z "$as_dir" && as_dir=. 6301 for ac_exec_ext in '' $ac_executable_extensions; do 6302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6303 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6305 break 2 6306 fi 6307done 6308 done 6309IFS=$as_save_IFS 6310 6311fi 6312fi 6313AR=$ac_cv_prog_AR 6314if test -n "$AR"; then 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6316$as_echo "$AR" >&6; } 6317else 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6319$as_echo "no" >&6; } 6320fi 6321 6322 6323 test -n "$AR" && break 6324 done 6325fi 6326if test -z "$AR"; then 6327 ac_ct_AR=$AR 6328 for ac_prog in ar 6329do 6330 # Extract the first word of "$ac_prog", so it can be a program name with args. 6331set dummy $ac_prog; ac_word=$2 6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6333$as_echo_n "checking for $ac_word... " >&6; } 6334if ${ac_cv_prog_ac_ct_AR+:} false; then : 6335 $as_echo_n "(cached) " >&6 6336else 6337 if test -n "$ac_ct_AR"; then 6338 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6339else 6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6341for as_dir in $PATH 6342do 6343 IFS=$as_save_IFS 6344 test -z "$as_dir" && as_dir=. 6345 for ac_exec_ext in '' $ac_executable_extensions; do 6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6347 ac_cv_prog_ac_ct_AR="$ac_prog" 6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6349 break 2 6350 fi 6351done 6352 done 6353IFS=$as_save_IFS 6354 6355fi 6356fi 6357ac_ct_AR=$ac_cv_prog_ac_ct_AR 6358if test -n "$ac_ct_AR"; then 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6360$as_echo "$ac_ct_AR" >&6; } 6361else 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6363$as_echo "no" >&6; } 6364fi 6365 6366 6367 test -n "$ac_ct_AR" && break 6368done 6369 6370 if test "x$ac_ct_AR" = x; then 6371 AR="false" 6372 else 6373 case $cross_compiling:$ac_tool_warned in 6374yes:) 6375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6377ac_tool_warned=yes ;; 6378esac 6379 AR=$ac_ct_AR 6380 fi 6381fi 6382 6383: ${AR=ar} 6384: ${AR_FLAGS=cr} 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6397$as_echo_n "checking for archiver @FILE support... " >&6; } 6398if ${lt_cv_ar_at_file+:} false; then : 6399 $as_echo_n "(cached) " >&6 6400else 6401 lt_cv_ar_at_file=no 6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6403/* end confdefs.h. */ 6404 6405int 6406main () 6407{ 6408 6409 ; 6410 return 0; 6411} 6412_ACEOF 6413if ac_fn_c_try_compile "$LINENO"; then : 6414 echo conftest.$ac_objext > conftest.lst 6415 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6417 (eval $lt_ar_try) 2>&5 6418 ac_status=$? 6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6420 test $ac_status = 0; } 6421 if test 0 -eq "$ac_status"; then 6422 # Ensure the archiver fails upon bogus file names. 6423 rm -f conftest.$ac_objext libconftest.a 6424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6425 (eval $lt_ar_try) 2>&5 6426 ac_status=$? 6427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6428 test $ac_status = 0; } 6429 if test 0 -ne "$ac_status"; then 6430 lt_cv_ar_at_file=@ 6431 fi 6432 fi 6433 rm -f conftest.* libconftest.a 6434 6435fi 6436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6437 6438fi 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6440$as_echo "$lt_cv_ar_at_file" >&6; } 6441 6442if test no = "$lt_cv_ar_at_file"; then 6443 archiver_list_spec= 6444else 6445 archiver_list_spec=$lt_cv_ar_at_file 6446fi 6447 6448 6449 6450 6451 6452 6453 6454if test -n "$ac_tool_prefix"; then 6455 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6456set dummy ${ac_tool_prefix}strip; ac_word=$2 6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6458$as_echo_n "checking for $ac_word... " >&6; } 6459if ${ac_cv_prog_STRIP+:} false; then : 6460 $as_echo_n "(cached) " >&6 6461else 6462 if test -n "$STRIP"; then 6463 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6464else 6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6466for as_dir in $PATH 6467do 6468 IFS=$as_save_IFS 6469 test -z "$as_dir" && as_dir=. 6470 for ac_exec_ext in '' $ac_executable_extensions; do 6471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6472 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6474 break 2 6475 fi 6476done 6477 done 6478IFS=$as_save_IFS 6479 6480fi 6481fi 6482STRIP=$ac_cv_prog_STRIP 6483if test -n "$STRIP"; then 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6485$as_echo "$STRIP" >&6; } 6486else 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6488$as_echo "no" >&6; } 6489fi 6490 6491 6492fi 6493if test -z "$ac_cv_prog_STRIP"; then 6494 ac_ct_STRIP=$STRIP 6495 # Extract the first word of "strip", so it can be a program name with args. 6496set dummy strip; ac_word=$2 6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6498$as_echo_n "checking for $ac_word... " >&6; } 6499if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6500 $as_echo_n "(cached) " >&6 6501else 6502 if test -n "$ac_ct_STRIP"; then 6503 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6504else 6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6506for as_dir in $PATH 6507do 6508 IFS=$as_save_IFS 6509 test -z "$as_dir" && as_dir=. 6510 for ac_exec_ext in '' $ac_executable_extensions; do 6511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6512 ac_cv_prog_ac_ct_STRIP="strip" 6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6514 break 2 6515 fi 6516done 6517 done 6518IFS=$as_save_IFS 6519 6520fi 6521fi 6522ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6523if test -n "$ac_ct_STRIP"; then 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6525$as_echo "$ac_ct_STRIP" >&6; } 6526else 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6528$as_echo "no" >&6; } 6529fi 6530 6531 if test "x$ac_ct_STRIP" = x; then 6532 STRIP=":" 6533 else 6534 case $cross_compiling:$ac_tool_warned in 6535yes:) 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6538ac_tool_warned=yes ;; 6539esac 6540 STRIP=$ac_ct_STRIP 6541 fi 6542else 6543 STRIP="$ac_cv_prog_STRIP" 6544fi 6545 6546test -z "$STRIP" && STRIP=: 6547 6548 6549 6550 6551 6552 6553if test -n "$ac_tool_prefix"; then 6554 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6555set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6557$as_echo_n "checking for $ac_word... " >&6; } 6558if ${ac_cv_prog_RANLIB+:} false; then : 6559 $as_echo_n "(cached) " >&6 6560else 6561 if test -n "$RANLIB"; then 6562 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6563else 6564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6565for as_dir in $PATH 6566do 6567 IFS=$as_save_IFS 6568 test -z "$as_dir" && as_dir=. 6569 for ac_exec_ext in '' $ac_executable_extensions; do 6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6571 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6573 break 2 6574 fi 6575done 6576 done 6577IFS=$as_save_IFS 6578 6579fi 6580fi 6581RANLIB=$ac_cv_prog_RANLIB 6582if test -n "$RANLIB"; then 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6584$as_echo "$RANLIB" >&6; } 6585else 6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6587$as_echo "no" >&6; } 6588fi 6589 6590 6591fi 6592if test -z "$ac_cv_prog_RANLIB"; then 6593 ac_ct_RANLIB=$RANLIB 6594 # Extract the first word of "ranlib", so it can be a program name with args. 6595set dummy ranlib; ac_word=$2 6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6597$as_echo_n "checking for $ac_word... " >&6; } 6598if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6599 $as_echo_n "(cached) " >&6 6600else 6601 if test -n "$ac_ct_RANLIB"; then 6602 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6603else 6604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6605for as_dir in $PATH 6606do 6607 IFS=$as_save_IFS 6608 test -z "$as_dir" && as_dir=. 6609 for ac_exec_ext in '' $ac_executable_extensions; do 6610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6611 ac_cv_prog_ac_ct_RANLIB="ranlib" 6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6613 break 2 6614 fi 6615done 6616 done 6617IFS=$as_save_IFS 6618 6619fi 6620fi 6621ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6622if test -n "$ac_ct_RANLIB"; then 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6624$as_echo "$ac_ct_RANLIB" >&6; } 6625else 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6627$as_echo "no" >&6; } 6628fi 6629 6630 if test "x$ac_ct_RANLIB" = x; then 6631 RANLIB=":" 6632 else 6633 case $cross_compiling:$ac_tool_warned in 6634yes:) 6635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6637ac_tool_warned=yes ;; 6638esac 6639 RANLIB=$ac_ct_RANLIB 6640 fi 6641else 6642 RANLIB="$ac_cv_prog_RANLIB" 6643fi 6644 6645test -z "$RANLIB" && RANLIB=: 6646 6647 6648 6649 6650 6651 6652# Determine commands to create old-style static archives. 6653old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6654old_postinstall_cmds='chmod 644 $oldlib' 6655old_postuninstall_cmds= 6656 6657if test -n "$RANLIB"; then 6658 case $host_os in 6659 bitrig* | openbsd*) 6660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6661 ;; 6662 *) 6663 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6664 ;; 6665 esac 6666 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6667fi 6668 6669case $host_os in 6670 darwin*) 6671 lock_old_archive_extraction=yes ;; 6672 *) 6673 lock_old_archive_extraction=no ;; 6674esac 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714# If no C compiler was specified, use CC. 6715LTCC=${LTCC-"$CC"} 6716 6717# If no C compiler flags were specified, use CFLAGS. 6718LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6719 6720# Allow CC to be a program name with arguments. 6721compiler=$CC 6722 6723 6724# Check for command to grab the raw symbol name followed by C symbol from nm. 6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6726$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6727if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6728 $as_echo_n "(cached) " >&6 6729else 6730 6731# These are sane defaults that work on at least a few old systems. 6732# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6733 6734# Character class describing NM global symbol codes. 6735symcode='[BCDEGRST]' 6736 6737# Regexp to match symbols that can be accessed directly from C. 6738sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6739 6740# Define system-specific variables. 6741case $host_os in 6742aix*) 6743 symcode='[BCDT]' 6744 ;; 6745cygwin* | mingw* | pw32* | cegcc*) 6746 symcode='[ABCDGISTW]' 6747 ;; 6748hpux*) 6749 if test ia64 = "$host_cpu"; then 6750 symcode='[ABCDEGRST]' 6751 fi 6752 ;; 6753irix* | nonstopux*) 6754 symcode='[BCDEGRST]' 6755 ;; 6756osf*) 6757 symcode='[BCDEGQRST]' 6758 ;; 6759solaris*) 6760 symcode='[BDRT]' 6761 ;; 6762sco3.2v5*) 6763 symcode='[DT]' 6764 ;; 6765sysv4.2uw2*) 6766 symcode='[DT]' 6767 ;; 6768sysv5* | sco5v6* | unixware* | OpenUNIX*) 6769 symcode='[ABDT]' 6770 ;; 6771sysv4) 6772 symcode='[DFNSTU]' 6773 ;; 6774esac 6775 6776# If we're using GNU nm, then use its standard symbol codes. 6777case `$NM -V 2>&1` in 6778*GNU* | *'with BFD'*) 6779 symcode='[ABCDGIRSTW]' ;; 6780esac 6781 6782if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6783 # Gets list of data symbols to import. 6784 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6785 # Adjust the below global symbol transforms to fixup imported variables. 6786 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6787 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6788 lt_c_name_lib_hook="\ 6789 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6790 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6791else 6792 # Disable hooks by default. 6793 lt_cv_sys_global_symbol_to_import= 6794 lt_cdecl_hook= 6795 lt_c_name_hook= 6796 lt_c_name_lib_hook= 6797fi 6798 6799# Transform an extracted symbol line into a proper C declaration. 6800# Some systems (esp. on ia64) link data and code symbols differently, 6801# so use this general approach. 6802lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6803$lt_cdecl_hook\ 6804" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6805" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6806 6807# Transform an extracted symbol line into symbol name and symbol address 6808lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6809$lt_c_name_hook\ 6810" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6811" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6812 6813# Transform an extracted symbol line into symbol name with lib prefix and 6814# symbol address. 6815lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6816$lt_c_name_lib_hook\ 6817" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6818" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6819" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6820 6821# Handle CRLF in mingw tool chain 6822opt_cr= 6823case $build_os in 6824mingw*) 6825 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6826 ;; 6827esac 6828 6829# Try without a prefix underscore, then with it. 6830for ac_symprfx in "" "_"; do 6831 6832 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6833 symxfrm="\\1 $ac_symprfx\\2 \\2" 6834 6835 # Write the raw and C identifiers. 6836 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6837 # Fake it for dumpbin and say T for any non-static function, 6838 # D for any global variable and I for any imported variable. 6839 # Also find C++ and __fastcall symbols from MSVC++, 6840 # which start with @ or ?. 6841 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6842" {last_section=section; section=\$ 3};"\ 6843" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6844" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6845" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6846" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6847" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6848" \$ 0!~/External *\|/{next};"\ 6849" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6850" {if(hide[section]) next};"\ 6851" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6852" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6853" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6854" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6855" ' prfx=^$ac_symprfx" 6856 else 6857 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6858 fi 6859 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6860 6861 # Check to see that the pipe works correctly. 6862 pipe_works=no 6863 6864 rm -f conftest* 6865 cat > conftest.$ac_ext <<_LT_EOF 6866#ifdef __cplusplus 6867extern "C" { 6868#endif 6869char nm_test_var; 6870void nm_test_func(void); 6871void nm_test_func(void){} 6872#ifdef __cplusplus 6873} 6874#endif 6875int main(){nm_test_var='a';nm_test_func();return(0);} 6876_LT_EOF 6877 6878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6879 (eval $ac_compile) 2>&5 6880 ac_status=$? 6881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6882 test $ac_status = 0; }; then 6883 # Now try to grab the symbols. 6884 nlist=conftest.nm 6885 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6886 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6887 # Try sorting and uniquifying the output. 6888 if sort "$nlist" | uniq > "$nlist"T; then 6889 mv -f "$nlist"T "$nlist" 6890 else 6891 rm -f "$nlist"T 6892 fi 6893 6894 # Make sure that we snagged all the symbols we need. 6895 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6896 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6897 cat <<_LT_EOF > conftest.$ac_ext 6898/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6899#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6900/* DATA imports from DLLs on WIN32 can't be const, because runtime 6901 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6902# define LT@&t@_DLSYM_CONST 6903#elif defined __osf__ 6904/* This system does not cope well with relocations in const data. */ 6905# define LT@&t@_DLSYM_CONST 6906#else 6907# define LT@&t@_DLSYM_CONST const 6908#endif 6909 6910#ifdef __cplusplus 6911extern "C" { 6912#endif 6913 6914_LT_EOF 6915 # Now generate the symbol file. 6916 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6917 6918 cat <<_LT_EOF >> conftest.$ac_ext 6919 6920/* The mapping between symbol names and symbols. */ 6921LT@&t@_DLSYM_CONST struct { 6922 const char *name; 6923 void *address; 6924} 6925lt__PROGRAM__LTX_preloaded_symbols[] = 6926{ 6927 { "@PROGRAM@", (void *) 0 }, 6928_LT_EOF 6929 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6930 cat <<\_LT_EOF >> conftest.$ac_ext 6931 {0, (void *) 0} 6932}; 6933 6934/* This works around a problem in FreeBSD linker */ 6935#ifdef FREEBSD_WORKAROUND 6936static const void *lt_preloaded_setup() { 6937 return lt__PROGRAM__LTX_preloaded_symbols; 6938} 6939#endif 6940 6941#ifdef __cplusplus 6942} 6943#endif 6944_LT_EOF 6945 # Now try linking the two files. 6946 mv conftest.$ac_objext conftstm.$ac_objext 6947 lt_globsym_save_LIBS=$LIBS 6948 lt_globsym_save_CFLAGS=$CFLAGS 6949 LIBS=conftstm.$ac_objext 6950 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6952 (eval $ac_link) 2>&5 6953 ac_status=$? 6954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6955 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6956 pipe_works=yes 6957 fi 6958 LIBS=$lt_globsym_save_LIBS 6959 CFLAGS=$lt_globsym_save_CFLAGS 6960 else 6961 echo "cannot find nm_test_func in $nlist" >&5 6962 fi 6963 else 6964 echo "cannot find nm_test_var in $nlist" >&5 6965 fi 6966 else 6967 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6968 fi 6969 else 6970 echo "$progname: failed program was:" >&5 6971 cat conftest.$ac_ext >&5 6972 fi 6973 rm -rf conftest* conftst* 6974 6975 # Do not use the global_symbol_pipe unless it works. 6976 if test yes = "$pipe_works"; then 6977 break 6978 else 6979 lt_cv_sys_global_symbol_pipe= 6980 fi 6981done 6982 6983fi 6984 6985if test -z "$lt_cv_sys_global_symbol_pipe"; then 6986 lt_cv_sys_global_symbol_to_cdecl= 6987fi 6988if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6990$as_echo "failed" >&6; } 6991else 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6993$as_echo "ok" >&6; } 6994fi 6995 6996# Response file support. 6997if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6998 nm_file_list_spec='@' 6999elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7000 nm_file_list_spec='@' 7001fi 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7040$as_echo_n "checking for sysroot... " >&6; } 7041 7042@%:@ Check whether --with-sysroot was given. 7043if test "${with_sysroot+set}" = set; then : 7044 withval=$with_sysroot; 7045else 7046 with_sysroot=no 7047fi 7048 7049 7050lt_sysroot= 7051case $with_sysroot in #( 7052 yes) 7053 if test yes = "$GCC"; then 7054 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7055 fi 7056 ;; #( 7057 /*) 7058 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7059 ;; #( 7060 no|'') 7061 ;; #( 7062 *) 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7064$as_echo "$with_sysroot" >&6; } 7065 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7066 ;; 7067esac 7068 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7070$as_echo "${lt_sysroot:-no}" >&6; } 7071 7072 7073 7074 7075 7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7077$as_echo_n "checking for a working dd... " >&6; } 7078if ${ac_cv_path_lt_DD+:} false; then : 7079 $as_echo_n "(cached) " >&6 7080else 7081 printf 0123456789abcdef0123456789abcdef >conftest.i 7082cat conftest.i conftest.i >conftest2.i 7083: ${lt_DD:=$DD} 7084if test -z "$lt_DD"; then 7085 ac_path_lt_DD_found=false 7086 # Loop through the user's path and test for each of PROGNAME-LIST 7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7088for as_dir in $PATH 7089do 7090 IFS=$as_save_IFS 7091 test -z "$as_dir" && as_dir=. 7092 for ac_prog in dd; do 7093 for ac_exec_ext in '' $ac_executable_extensions; do 7094 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7095 as_fn_executable_p "$ac_path_lt_DD" || continue 7096if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7097 cmp -s conftest.i conftest.out \ 7098 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7099fi 7100 $ac_path_lt_DD_found && break 3 7101 done 7102 done 7103 done 7104IFS=$as_save_IFS 7105 if test -z "$ac_cv_path_lt_DD"; then 7106 : 7107 fi 7108else 7109 ac_cv_path_lt_DD=$lt_DD 7110fi 7111 7112rm -f conftest.i conftest2.i conftest.out 7113fi 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7115$as_echo "$ac_cv_path_lt_DD" >&6; } 7116 7117 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7119$as_echo_n "checking how to truncate binary pipes... " >&6; } 7120if ${lt_cv_truncate_bin+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 printf 0123456789abcdef0123456789abcdef >conftest.i 7124cat conftest.i conftest.i >conftest2.i 7125lt_cv_truncate_bin= 7126if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7127 cmp -s conftest.i conftest.out \ 7128 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7129fi 7130rm -f conftest.i conftest2.i conftest.out 7131test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7132fi 7133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7134$as_echo "$lt_cv_truncate_bin" >&6; } 7135 7136 7137 7138 7139 7140 7141 7142# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7143func_cc_basename () 7144{ 7145 for cc_temp in @S|@*""; do 7146 case $cc_temp in 7147 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7148 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7149 \-*) ;; 7150 *) break;; 7151 esac 7152 done 7153 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7154} 7155 7156@%:@ Check whether --enable-libtool-lock was given. 7157if test "${enable_libtool_lock+set}" = set; then : 7158 enableval=$enable_libtool_lock; 7159fi 7160 7161test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7162 7163# Some flags need to be propagated to the compiler or linker for good 7164# libtool support. 7165case $host in 7166ia64-*-hpux*) 7167 # Find out what ABI is being produced by ac_compile, and set mode 7168 # options accordingly. 7169 echo 'int i;' > conftest.$ac_ext 7170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7171 (eval $ac_compile) 2>&5 7172 ac_status=$? 7173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7174 test $ac_status = 0; }; then 7175 case `/usr/bin/file conftest.$ac_objext` in 7176 *ELF-32*) 7177 HPUX_IA64_MODE=32 7178 ;; 7179 *ELF-64*) 7180 HPUX_IA64_MODE=64 7181 ;; 7182 esac 7183 fi 7184 rm -rf conftest* 7185 ;; 7186*-*-irix6*) 7187 # Find out what ABI is being produced by ac_compile, and set linker 7188 # options accordingly. 7189 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7191 (eval $ac_compile) 2>&5 7192 ac_status=$? 7193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7194 test $ac_status = 0; }; then 7195 if test yes = "$lt_cv_prog_gnu_ld"; then 7196 case `/usr/bin/file conftest.$ac_objext` in 7197 *32-bit*) 7198 LD="${LD-ld} -melf32bsmip" 7199 ;; 7200 *N32*) 7201 LD="${LD-ld} -melf32bmipn32" 7202 ;; 7203 *64-bit*) 7204 LD="${LD-ld} -melf64bmip" 7205 ;; 7206 esac 7207 else 7208 case `/usr/bin/file conftest.$ac_objext` in 7209 *32-bit*) 7210 LD="${LD-ld} -32" 7211 ;; 7212 *N32*) 7213 LD="${LD-ld} -n32" 7214 ;; 7215 *64-bit*) 7216 LD="${LD-ld} -64" 7217 ;; 7218 esac 7219 fi 7220 fi 7221 rm -rf conftest* 7222 ;; 7223 7224mips64*-*linux*) 7225 # Find out what ABI is being produced by ac_compile, and set linker 7226 # options accordingly. 7227 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7229 (eval $ac_compile) 2>&5 7230 ac_status=$? 7231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7232 test $ac_status = 0; }; then 7233 emul=elf 7234 case `/usr/bin/file conftest.$ac_objext` in 7235 *32-bit*) 7236 emul="${emul}32" 7237 ;; 7238 *64-bit*) 7239 emul="${emul}64" 7240 ;; 7241 esac 7242 case `/usr/bin/file conftest.$ac_objext` in 7243 *MSB*) 7244 emul="${emul}btsmip" 7245 ;; 7246 *LSB*) 7247 emul="${emul}ltsmip" 7248 ;; 7249 esac 7250 case `/usr/bin/file conftest.$ac_objext` in 7251 *N32*) 7252 emul="${emul}n32" 7253 ;; 7254 esac 7255 LD="${LD-ld} -m $emul" 7256 fi 7257 rm -rf conftest* 7258 ;; 7259 7260x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7261s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7262 # Find out what ABI is being produced by ac_compile, and set linker 7263 # options accordingly. Note that the listed cases only cover the 7264 # situations where additional linker options are needed (such as when 7265 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7266 # vice versa); the common cases where no linker options are needed do 7267 # not appear in the list. 7268 echo 'int i;' > conftest.$ac_ext 7269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7270 (eval $ac_compile) 2>&5 7271 ac_status=$? 7272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7273 test $ac_status = 0; }; then 7274 case `/usr/bin/file conftest.o` in 7275 *32-bit*) 7276 case $host in 7277 x86_64-*kfreebsd*-gnu) 7278 LD="${LD-ld} -m elf_i386_fbsd" 7279 ;; 7280 x86_64-*linux*) 7281 case `/usr/bin/file conftest.o` in 7282 *x86-64*) 7283 LD="${LD-ld} -m elf32_x86_64" 7284 ;; 7285 *) 7286 LD="${LD-ld} -m elf_i386" 7287 ;; 7288 esac 7289 ;; 7290 powerpc64le-*linux*) 7291 LD="${LD-ld} -m elf32lppclinux" 7292 ;; 7293 powerpc64-*linux*) 7294 LD="${LD-ld} -m elf32ppclinux" 7295 ;; 7296 s390x-*linux*) 7297 LD="${LD-ld} -m elf_s390" 7298 ;; 7299 sparc64-*linux*) 7300 LD="${LD-ld} -m elf32_sparc" 7301 ;; 7302 esac 7303 ;; 7304 *64-bit*) 7305 case $host in 7306 x86_64-*kfreebsd*-gnu) 7307 LD="${LD-ld} -m elf_x86_64_fbsd" 7308 ;; 7309 x86_64-*linux*) 7310 LD="${LD-ld} -m elf_x86_64" 7311 ;; 7312 powerpcle-*linux*) 7313 LD="${LD-ld} -m elf64lppc" 7314 ;; 7315 powerpc-*linux*) 7316 LD="${LD-ld} -m elf64ppc" 7317 ;; 7318 s390*-*linux*|s390*-*tpf*) 7319 LD="${LD-ld} -m elf64_s390" 7320 ;; 7321 sparc*-*linux*) 7322 LD="${LD-ld} -m elf64_sparc" 7323 ;; 7324 esac 7325 ;; 7326 esac 7327 fi 7328 rm -rf conftest* 7329 ;; 7330 7331*-*-sco3.2v5*) 7332 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7333 SAVE_CFLAGS=$CFLAGS 7334 CFLAGS="$CFLAGS -belf" 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7336$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7337if ${lt_cv_cc_needs_belf+:} false; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 ac_ext=c 7341ac_cpp='$CPP $CPPFLAGS' 7342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7344ac_compiler_gnu=$ac_cv_c_compiler_gnu 7345 7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7347/* end confdefs.h. */ 7348 7349int 7350main () 7351{ 7352 7353 ; 7354 return 0; 7355} 7356_ACEOF 7357if ac_fn_c_try_link "$LINENO"; then : 7358 lt_cv_cc_needs_belf=yes 7359else 7360 lt_cv_cc_needs_belf=no 7361fi 7362rm -f core conftest.err conftest.$ac_objext \ 7363 conftest$ac_exeext conftest.$ac_ext 7364 ac_ext=c 7365ac_cpp='$CPP $CPPFLAGS' 7366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7368ac_compiler_gnu=$ac_cv_c_compiler_gnu 7369 7370fi 7371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7372$as_echo "$lt_cv_cc_needs_belf" >&6; } 7373 if test yes != "$lt_cv_cc_needs_belf"; then 7374 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7375 CFLAGS=$SAVE_CFLAGS 7376 fi 7377 ;; 7378*-*solaris*) 7379 # Find out what ABI is being produced by ac_compile, and set linker 7380 # options accordingly. 7381 echo 'int i;' > conftest.$ac_ext 7382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7383 (eval $ac_compile) 2>&5 7384 ac_status=$? 7385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7386 test $ac_status = 0; }; then 7387 case `/usr/bin/file conftest.o` in 7388 *64-bit*) 7389 case $lt_cv_prog_gnu_ld in 7390 yes*) 7391 case $host in 7392 i?86-*-solaris*|x86_64-*-solaris*) 7393 LD="${LD-ld} -m elf_x86_64" 7394 ;; 7395 sparc*-*-solaris*) 7396 LD="${LD-ld} -m elf64_sparc" 7397 ;; 7398 esac 7399 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7400 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7401 LD=${LD-ld}_sol2 7402 fi 7403 ;; 7404 *) 7405 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7406 LD="${LD-ld} -64" 7407 fi 7408 ;; 7409 esac 7410 ;; 7411 esac 7412 fi 7413 rm -rf conftest* 7414 ;; 7415esac 7416 7417need_locks=$enable_libtool_lock 7418 7419if test -n "$ac_tool_prefix"; then 7420 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7421set dummy ${ac_tool_prefix}mt; ac_word=$2 7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7423$as_echo_n "checking for $ac_word... " >&6; } 7424if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7425 $as_echo_n "(cached) " >&6 7426else 7427 if test -n "$MANIFEST_TOOL"; then 7428 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7429else 7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7431for as_dir in $PATH 7432do 7433 IFS=$as_save_IFS 7434 test -z "$as_dir" && as_dir=. 7435 for ac_exec_ext in '' $ac_executable_extensions; do 7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7437 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7439 break 2 7440 fi 7441done 7442 done 7443IFS=$as_save_IFS 7444 7445fi 7446fi 7447MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7448if test -n "$MANIFEST_TOOL"; then 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7450$as_echo "$MANIFEST_TOOL" >&6; } 7451else 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7453$as_echo "no" >&6; } 7454fi 7455 7456 7457fi 7458if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7459 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7460 # Extract the first word of "mt", so it can be a program name with args. 7461set dummy mt; ac_word=$2 7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7463$as_echo_n "checking for $ac_word... " >&6; } 7464if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7465 $as_echo_n "(cached) " >&6 7466else 7467 if test -n "$ac_ct_MANIFEST_TOOL"; then 7468 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7469else 7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7471for as_dir in $PATH 7472do 7473 IFS=$as_save_IFS 7474 test -z "$as_dir" && as_dir=. 7475 for ac_exec_ext in '' $ac_executable_extensions; do 7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7477 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7479 break 2 7480 fi 7481done 7482 done 7483IFS=$as_save_IFS 7484 7485fi 7486fi 7487ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7488if test -n "$ac_ct_MANIFEST_TOOL"; then 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7490$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7491else 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7493$as_echo "no" >&6; } 7494fi 7495 7496 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7497 MANIFEST_TOOL=":" 7498 else 7499 case $cross_compiling:$ac_tool_warned in 7500yes:) 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7503ac_tool_warned=yes ;; 7504esac 7505 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7506 fi 7507else 7508 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7509fi 7510 7511test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7513$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7514if ${lt_cv_path_mainfest_tool+:} false; then : 7515 $as_echo_n "(cached) " >&6 7516else 7517 lt_cv_path_mainfest_tool=no 7518 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7519 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7520 cat conftest.err >&5 7521 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7522 lt_cv_path_mainfest_tool=yes 7523 fi 7524 rm -f conftest* 7525fi 7526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7527$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7528if test yes != "$lt_cv_path_mainfest_tool"; then 7529 MANIFEST_TOOL=: 7530fi 7531 7532 7533 7534 7535 7536 7537 case $host_os in 7538 rhapsody* | darwin*) 7539 if test -n "$ac_tool_prefix"; then 7540 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7541set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7543$as_echo_n "checking for $ac_word... " >&6; } 7544if ${ac_cv_prog_DSYMUTIL+:} false; then : 7545 $as_echo_n "(cached) " >&6 7546else 7547 if test -n "$DSYMUTIL"; then 7548 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7549else 7550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7551for as_dir in $PATH 7552do 7553 IFS=$as_save_IFS 7554 test -z "$as_dir" && as_dir=. 7555 for ac_exec_ext in '' $ac_executable_extensions; do 7556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7557 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7559 break 2 7560 fi 7561done 7562 done 7563IFS=$as_save_IFS 7564 7565fi 7566fi 7567DSYMUTIL=$ac_cv_prog_DSYMUTIL 7568if test -n "$DSYMUTIL"; then 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7570$as_echo "$DSYMUTIL" >&6; } 7571else 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7573$as_echo "no" >&6; } 7574fi 7575 7576 7577fi 7578if test -z "$ac_cv_prog_DSYMUTIL"; then 7579 ac_ct_DSYMUTIL=$DSYMUTIL 7580 # Extract the first word of "dsymutil", so it can be a program name with args. 7581set dummy dsymutil; ac_word=$2 7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7583$as_echo_n "checking for $ac_word... " >&6; } 7584if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7585 $as_echo_n "(cached) " >&6 7586else 7587 if test -n "$ac_ct_DSYMUTIL"; then 7588 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7589else 7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7591for as_dir in $PATH 7592do 7593 IFS=$as_save_IFS 7594 test -z "$as_dir" && as_dir=. 7595 for ac_exec_ext in '' $ac_executable_extensions; do 7596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7597 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7599 break 2 7600 fi 7601done 7602 done 7603IFS=$as_save_IFS 7604 7605fi 7606fi 7607ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7608if test -n "$ac_ct_DSYMUTIL"; then 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7610$as_echo "$ac_ct_DSYMUTIL" >&6; } 7611else 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7613$as_echo "no" >&6; } 7614fi 7615 7616 if test "x$ac_ct_DSYMUTIL" = x; then 7617 DSYMUTIL=":" 7618 else 7619 case $cross_compiling:$ac_tool_warned in 7620yes:) 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7623ac_tool_warned=yes ;; 7624esac 7625 DSYMUTIL=$ac_ct_DSYMUTIL 7626 fi 7627else 7628 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7629fi 7630 7631 if test -n "$ac_tool_prefix"; then 7632 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7633set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7635$as_echo_n "checking for $ac_word... " >&6; } 7636if ${ac_cv_prog_NMEDIT+:} false; then : 7637 $as_echo_n "(cached) " >&6 7638else 7639 if test -n "$NMEDIT"; then 7640 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7641else 7642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7643for as_dir in $PATH 7644do 7645 IFS=$as_save_IFS 7646 test -z "$as_dir" && as_dir=. 7647 for ac_exec_ext in '' $ac_executable_extensions; do 7648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7649 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7651 break 2 7652 fi 7653done 7654 done 7655IFS=$as_save_IFS 7656 7657fi 7658fi 7659NMEDIT=$ac_cv_prog_NMEDIT 7660if test -n "$NMEDIT"; then 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7662$as_echo "$NMEDIT" >&6; } 7663else 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7665$as_echo "no" >&6; } 7666fi 7667 7668 7669fi 7670if test -z "$ac_cv_prog_NMEDIT"; then 7671 ac_ct_NMEDIT=$NMEDIT 7672 # Extract the first word of "nmedit", so it can be a program name with args. 7673set dummy nmedit; ac_word=$2 7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7675$as_echo_n "checking for $ac_word... " >&6; } 7676if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7677 $as_echo_n "(cached) " >&6 7678else 7679 if test -n "$ac_ct_NMEDIT"; then 7680 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7681else 7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7683for as_dir in $PATH 7684do 7685 IFS=$as_save_IFS 7686 test -z "$as_dir" && as_dir=. 7687 for ac_exec_ext in '' $ac_executable_extensions; do 7688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7689 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7691 break 2 7692 fi 7693done 7694 done 7695IFS=$as_save_IFS 7696 7697fi 7698fi 7699ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7700if test -n "$ac_ct_NMEDIT"; then 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7702$as_echo "$ac_ct_NMEDIT" >&6; } 7703else 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7705$as_echo "no" >&6; } 7706fi 7707 7708 if test "x$ac_ct_NMEDIT" = x; then 7709 NMEDIT=":" 7710 else 7711 case $cross_compiling:$ac_tool_warned in 7712yes:) 7713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7715ac_tool_warned=yes ;; 7716esac 7717 NMEDIT=$ac_ct_NMEDIT 7718 fi 7719else 7720 NMEDIT="$ac_cv_prog_NMEDIT" 7721fi 7722 7723 if test -n "$ac_tool_prefix"; then 7724 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7725set dummy ${ac_tool_prefix}lipo; ac_word=$2 7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7727$as_echo_n "checking for $ac_word... " >&6; } 7728if ${ac_cv_prog_LIPO+:} false; then : 7729 $as_echo_n "(cached) " >&6 7730else 7731 if test -n "$LIPO"; then 7732 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7733else 7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7735for as_dir in $PATH 7736do 7737 IFS=$as_save_IFS 7738 test -z "$as_dir" && as_dir=. 7739 for ac_exec_ext in '' $ac_executable_extensions; do 7740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7741 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7743 break 2 7744 fi 7745done 7746 done 7747IFS=$as_save_IFS 7748 7749fi 7750fi 7751LIPO=$ac_cv_prog_LIPO 7752if test -n "$LIPO"; then 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7754$as_echo "$LIPO" >&6; } 7755else 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7757$as_echo "no" >&6; } 7758fi 7759 7760 7761fi 7762if test -z "$ac_cv_prog_LIPO"; then 7763 ac_ct_LIPO=$LIPO 7764 # Extract the first word of "lipo", so it can be a program name with args. 7765set dummy lipo; ac_word=$2 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7767$as_echo_n "checking for $ac_word... " >&6; } 7768if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7769 $as_echo_n "(cached) " >&6 7770else 7771 if test -n "$ac_ct_LIPO"; then 7772 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7773else 7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7775for as_dir in $PATH 7776do 7777 IFS=$as_save_IFS 7778 test -z "$as_dir" && as_dir=. 7779 for ac_exec_ext in '' $ac_executable_extensions; do 7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7781 ac_cv_prog_ac_ct_LIPO="lipo" 7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7783 break 2 7784 fi 7785done 7786 done 7787IFS=$as_save_IFS 7788 7789fi 7790fi 7791ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7792if test -n "$ac_ct_LIPO"; then 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7794$as_echo "$ac_ct_LIPO" >&6; } 7795else 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7797$as_echo "no" >&6; } 7798fi 7799 7800 if test "x$ac_ct_LIPO" = x; then 7801 LIPO=":" 7802 else 7803 case $cross_compiling:$ac_tool_warned in 7804yes:) 7805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7807ac_tool_warned=yes ;; 7808esac 7809 LIPO=$ac_ct_LIPO 7810 fi 7811else 7812 LIPO="$ac_cv_prog_LIPO" 7813fi 7814 7815 if test -n "$ac_tool_prefix"; then 7816 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7817set dummy ${ac_tool_prefix}otool; ac_word=$2 7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7819$as_echo_n "checking for $ac_word... " >&6; } 7820if ${ac_cv_prog_OTOOL+:} false; then : 7821 $as_echo_n "(cached) " >&6 7822else 7823 if test -n "$OTOOL"; then 7824 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7825else 7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7827for as_dir in $PATH 7828do 7829 IFS=$as_save_IFS 7830 test -z "$as_dir" && as_dir=. 7831 for ac_exec_ext in '' $ac_executable_extensions; do 7832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7833 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7835 break 2 7836 fi 7837done 7838 done 7839IFS=$as_save_IFS 7840 7841fi 7842fi 7843OTOOL=$ac_cv_prog_OTOOL 7844if test -n "$OTOOL"; then 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7846$as_echo "$OTOOL" >&6; } 7847else 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7849$as_echo "no" >&6; } 7850fi 7851 7852 7853fi 7854if test -z "$ac_cv_prog_OTOOL"; then 7855 ac_ct_OTOOL=$OTOOL 7856 # Extract the first word of "otool", so it can be a program name with args. 7857set dummy otool; ac_word=$2 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7859$as_echo_n "checking for $ac_word... " >&6; } 7860if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7861 $as_echo_n "(cached) " >&6 7862else 7863 if test -n "$ac_ct_OTOOL"; then 7864 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7865else 7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7867for as_dir in $PATH 7868do 7869 IFS=$as_save_IFS 7870 test -z "$as_dir" && as_dir=. 7871 for ac_exec_ext in '' $ac_executable_extensions; do 7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7873 ac_cv_prog_ac_ct_OTOOL="otool" 7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7875 break 2 7876 fi 7877done 7878 done 7879IFS=$as_save_IFS 7880 7881fi 7882fi 7883ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7884if test -n "$ac_ct_OTOOL"; then 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7886$as_echo "$ac_ct_OTOOL" >&6; } 7887else 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7889$as_echo "no" >&6; } 7890fi 7891 7892 if test "x$ac_ct_OTOOL" = x; then 7893 OTOOL=":" 7894 else 7895 case $cross_compiling:$ac_tool_warned in 7896yes:) 7897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7899ac_tool_warned=yes ;; 7900esac 7901 OTOOL=$ac_ct_OTOOL 7902 fi 7903else 7904 OTOOL="$ac_cv_prog_OTOOL" 7905fi 7906 7907 if test -n "$ac_tool_prefix"; then 7908 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7909set dummy ${ac_tool_prefix}otool64; ac_word=$2 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7911$as_echo_n "checking for $ac_word... " >&6; } 7912if ${ac_cv_prog_OTOOL64+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914else 7915 if test -n "$OTOOL64"; then 7916 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7917else 7918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7919for as_dir in $PATH 7920do 7921 IFS=$as_save_IFS 7922 test -z "$as_dir" && as_dir=. 7923 for ac_exec_ext in '' $ac_executable_extensions; do 7924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7925 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7927 break 2 7928 fi 7929done 7930 done 7931IFS=$as_save_IFS 7932 7933fi 7934fi 7935OTOOL64=$ac_cv_prog_OTOOL64 7936if test -n "$OTOOL64"; then 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7938$as_echo "$OTOOL64" >&6; } 7939else 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7941$as_echo "no" >&6; } 7942fi 7943 7944 7945fi 7946if test -z "$ac_cv_prog_OTOOL64"; then 7947 ac_ct_OTOOL64=$OTOOL64 7948 # Extract the first word of "otool64", so it can be a program name with args. 7949set dummy otool64; ac_word=$2 7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7951$as_echo_n "checking for $ac_word... " >&6; } 7952if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7953 $as_echo_n "(cached) " >&6 7954else 7955 if test -n "$ac_ct_OTOOL64"; then 7956 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7957else 7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7959for as_dir in $PATH 7960do 7961 IFS=$as_save_IFS 7962 test -z "$as_dir" && as_dir=. 7963 for ac_exec_ext in '' $ac_executable_extensions; do 7964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7965 ac_cv_prog_ac_ct_OTOOL64="otool64" 7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7967 break 2 7968 fi 7969done 7970 done 7971IFS=$as_save_IFS 7972 7973fi 7974fi 7975ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7976if test -n "$ac_ct_OTOOL64"; then 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7978$as_echo "$ac_ct_OTOOL64" >&6; } 7979else 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7981$as_echo "no" >&6; } 7982fi 7983 7984 if test "x$ac_ct_OTOOL64" = x; then 7985 OTOOL64=":" 7986 else 7987 case $cross_compiling:$ac_tool_warned in 7988yes:) 7989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7991ac_tool_warned=yes ;; 7992esac 7993 OTOOL64=$ac_ct_OTOOL64 7994 fi 7995else 7996 OTOOL64="$ac_cv_prog_OTOOL64" 7997fi 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8026$as_echo_n "checking for -single_module linker flag... " >&6; } 8027if ${lt_cv_apple_cc_single_mod+:} false; then : 8028 $as_echo_n "(cached) " >&6 8029else 8030 lt_cv_apple_cc_single_mod=no 8031 if test -z "$LT_MULTI_MODULE"; then 8032 # By default we will add the -single_module flag. You can override 8033 # by either setting the environment variable LT_MULTI_MODULE 8034 # non-empty at configure time, or by adding -multi_module to the 8035 # link flags. 8036 rm -rf libconftest.dylib* 8037 echo "int foo(void){return 1;}" > conftest.c 8038 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8039-dynamiclib -Wl,-single_module conftest.c" >&5 8040 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8041 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8042 _lt_result=$? 8043 # If there is a non-empty error log, and "single_module" 8044 # appears in it, assume the flag caused a linker warning 8045 if test -s conftest.err && $GREP single_module conftest.err; then 8046 cat conftest.err >&5 8047 # Otherwise, if the output was created with a 0 exit code from 8048 # the compiler, it worked. 8049 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8050 lt_cv_apple_cc_single_mod=yes 8051 else 8052 cat conftest.err >&5 8053 fi 8054 rm -rf libconftest.dylib* 8055 rm -f conftest.* 8056 fi 8057fi 8058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8059$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8060 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8062$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8063if ${lt_cv_ld_exported_symbols_list+:} false; then : 8064 $as_echo_n "(cached) " >&6 8065else 8066 lt_cv_ld_exported_symbols_list=no 8067 save_LDFLAGS=$LDFLAGS 8068 echo "_main" > conftest.sym 8069 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8071/* end confdefs.h. */ 8072 8073int 8074main () 8075{ 8076 8077 ; 8078 return 0; 8079} 8080_ACEOF 8081if ac_fn_c_try_link "$LINENO"; then : 8082 lt_cv_ld_exported_symbols_list=yes 8083else 8084 lt_cv_ld_exported_symbols_list=no 8085fi 8086rm -f core conftest.err conftest.$ac_objext \ 8087 conftest$ac_exeext conftest.$ac_ext 8088 LDFLAGS=$save_LDFLAGS 8089 8090fi 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8092$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8093 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8095$as_echo_n "checking for -force_load linker flag... " >&6; } 8096if ${lt_cv_ld_force_load+:} false; then : 8097 $as_echo_n "(cached) " >&6 8098else 8099 lt_cv_ld_force_load=no 8100 cat > conftest.c << _LT_EOF 8101int forced_loaded() { return 2;} 8102_LT_EOF 8103 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8104 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8105 echo "$AR cr libconftest.a conftest.o" >&5 8106 $AR cr libconftest.a conftest.o 2>&5 8107 echo "$RANLIB libconftest.a" >&5 8108 $RANLIB libconftest.a 2>&5 8109 cat > conftest.c << _LT_EOF 8110int main() { return 0;} 8111_LT_EOF 8112 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8113 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8114 _lt_result=$? 8115 if test -s conftest.err && $GREP force_load conftest.err; then 8116 cat conftest.err >&5 8117 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8118 lt_cv_ld_force_load=yes 8119 else 8120 cat conftest.err >&5 8121 fi 8122 rm -f conftest.err libconftest.a conftest conftest.c 8123 rm -rf conftest.dSYM 8124 8125fi 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8127$as_echo "$lt_cv_ld_force_load" >&6; } 8128 case $host_os in 8129 rhapsody* | darwin1.[012]) 8130 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8131 darwin1.*) 8132 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8133 darwin*) # darwin 5.x on 8134 # if running on 10.5 or later, the deployment target defaults 8135 # to the OS version, if on x86, and 10.4, the deployment 8136 # target defaults to 10.4. Don't you love it? 8137 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8138 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8139 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8140 10.[012][,.]*) 8141 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8142 10.*) 8143 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8144 esac 8145 ;; 8146 esac 8147 if test yes = "$lt_cv_apple_cc_single_mod"; then 8148 _lt_dar_single_mod='$single_module' 8149 fi 8150 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8151 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8152 else 8153 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8154 fi 8155 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8156 _lt_dsymutil='~$DSYMUTIL $lib || :' 8157 else 8158 _lt_dsymutil= 8159 fi 8160 ;; 8161 esac 8162 8163# func_munge_path_list VARIABLE PATH 8164# ----------------------------------- 8165# VARIABLE is name of variable containing _space_ separated list of 8166# directories to be munged by the contents of PATH, which is string 8167# having a format: 8168# "DIR[:DIR]:" 8169# string "DIR[ DIR]" will be prepended to VARIABLE 8170# ":DIR[:DIR]" 8171# string "DIR[ DIR]" will be appended to VARIABLE 8172# "DIRP[:DIRP]::[DIRA:]DIRA" 8173# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8174# "DIRA[ DIRA]" will be appended to VARIABLE 8175# "DIR[:DIR]" 8176# VARIABLE will be replaced by "DIR[ DIR]" 8177func_munge_path_list () 8178{ 8179 case x@S|@2 in 8180 x) 8181 ;; 8182 *:) 8183 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 8184 ;; 8185 x:*) 8186 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 8187 ;; 8188 *::*) 8189 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8190 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 8191 ;; 8192 *) 8193 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 8194 ;; 8195 esac 8196} 8197 8198ac_ext=c 8199ac_cpp='$CPP $CPPFLAGS' 8200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8202ac_compiler_gnu=$ac_cv_c_compiler_gnu 8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8204$as_echo_n "checking how to run the C preprocessor... " >&6; } 8205# On Suns, sometimes $CPP names a directory. 8206if test -n "$CPP" && test -d "$CPP"; then 8207 CPP= 8208fi 8209if test -z "$CPP"; then 8210 if ${ac_cv_prog_CPP+:} false; then : 8211 $as_echo_n "(cached) " >&6 8212else 8213 # Double quotes because CPP needs to be expanded 8214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8215 do 8216 ac_preproc_ok=false 8217for ac_c_preproc_warn_flag in '' yes 8218do 8219 # Use a header file that comes with gcc, so configuring glibc 8220 # with a fresh cross-compiler works. 8221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8222 # <limits.h> exists even on freestanding compilers. 8223 # On the NeXT, cc -E runs the code through the compiler's parser, 8224 # not just through cpp. "Syntax error" is here to catch this case. 8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8226/* end confdefs.h. */ 8227@%:@ifdef __STDC__ 8228@%:@ include <limits.h> 8229@%:@else 8230@%:@ include <assert.h> 8231@%:@endif 8232 Syntax error 8233_ACEOF 8234if ac_fn_c_try_cpp "$LINENO"; then : 8235 8236else 8237 # Broken: fails on valid input. 8238continue 8239fi 8240rm -f conftest.err conftest.i conftest.$ac_ext 8241 8242 # OK, works on sane cases. Now check whether nonexistent headers 8243 # can be detected and how. 8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246@%:@include <ac_nonexistent.h> 8247_ACEOF 8248if ac_fn_c_try_cpp "$LINENO"; then : 8249 # Broken: success on invalid input. 8250continue 8251else 8252 # Passes both tests. 8253ac_preproc_ok=: 8254break 8255fi 8256rm -f conftest.err conftest.i conftest.$ac_ext 8257 8258done 8259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8260rm -f conftest.i conftest.err conftest.$ac_ext 8261if $ac_preproc_ok; then : 8262 break 8263fi 8264 8265 done 8266 ac_cv_prog_CPP=$CPP 8267 8268fi 8269 CPP=$ac_cv_prog_CPP 8270else 8271 ac_cv_prog_CPP=$CPP 8272fi 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8274$as_echo "$CPP" >&6; } 8275ac_preproc_ok=false 8276for ac_c_preproc_warn_flag in '' yes 8277do 8278 # Use a header file that comes with gcc, so configuring glibc 8279 # with a fresh cross-compiler works. 8280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8281 # <limits.h> exists even on freestanding compilers. 8282 # On the NeXT, cc -E runs the code through the compiler's parser, 8283 # not just through cpp. "Syntax error" is here to catch this case. 8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285/* end confdefs.h. */ 8286@%:@ifdef __STDC__ 8287@%:@ include <limits.h> 8288@%:@else 8289@%:@ include <assert.h> 8290@%:@endif 8291 Syntax error 8292_ACEOF 8293if ac_fn_c_try_cpp "$LINENO"; then : 8294 8295else 8296 # Broken: fails on valid input. 8297continue 8298fi 8299rm -f conftest.err conftest.i conftest.$ac_ext 8300 8301 # OK, works on sane cases. Now check whether nonexistent headers 8302 # can be detected and how. 8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8304/* end confdefs.h. */ 8305@%:@include <ac_nonexistent.h> 8306_ACEOF 8307if ac_fn_c_try_cpp "$LINENO"; then : 8308 # Broken: success on invalid input. 8309continue 8310else 8311 # Passes both tests. 8312ac_preproc_ok=: 8313break 8314fi 8315rm -f conftest.err conftest.i conftest.$ac_ext 8316 8317done 8318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8319rm -f conftest.i conftest.err conftest.$ac_ext 8320if $ac_preproc_ok; then : 8321 8322else 8323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8325as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8326See \`config.log' for more details" "$LINENO" 5; } 8327fi 8328 8329ac_ext=c 8330ac_cpp='$CPP $CPPFLAGS' 8331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8333ac_compiler_gnu=$ac_cv_c_compiler_gnu 8334 8335 8336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8337$as_echo_n "checking for ANSI C header files... " >&6; } 8338if ${ac_cv_header_stdc+:} false; then : 8339 $as_echo_n "(cached) " >&6 8340else 8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8342/* end confdefs.h. */ 8343#include <stdlib.h> 8344#include <stdarg.h> 8345#include <string.h> 8346#include <float.h> 8347 8348int 8349main () 8350{ 8351 8352 ; 8353 return 0; 8354} 8355_ACEOF 8356if ac_fn_c_try_compile "$LINENO"; then : 8357 ac_cv_header_stdc=yes 8358else 8359 ac_cv_header_stdc=no 8360fi 8361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8362 8363if test $ac_cv_header_stdc = yes; then 8364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8366/* end confdefs.h. */ 8367#include <string.h> 8368 8369_ACEOF 8370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8371 $EGREP "memchr" >/dev/null 2>&1; then : 8372 8373else 8374 ac_cv_header_stdc=no 8375fi 8376rm -f conftest* 8377 8378fi 8379 8380if test $ac_cv_header_stdc = yes; then 8381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383/* end confdefs.h. */ 8384#include <stdlib.h> 8385 8386_ACEOF 8387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8388 $EGREP "free" >/dev/null 2>&1; then : 8389 8390else 8391 ac_cv_header_stdc=no 8392fi 8393rm -f conftest* 8394 8395fi 8396 8397if test $ac_cv_header_stdc = yes; then 8398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8399 if test "$cross_compiling" = yes; then : 8400 : 8401else 8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8403/* end confdefs.h. */ 8404#include <ctype.h> 8405#include <stdlib.h> 8406#if ((' ' & 0x0FF) == 0x020) 8407# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8408# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8409#else 8410# define ISLOWER(c) \ 8411 (('a' <= (c) && (c) <= 'i') \ 8412 || ('j' <= (c) && (c) <= 'r') \ 8413 || ('s' <= (c) && (c) <= 'z')) 8414# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8415#endif 8416 8417#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8418int 8419main () 8420{ 8421 int i; 8422 for (i = 0; i < 256; i++) 8423 if (XOR (islower (i), ISLOWER (i)) 8424 || toupper (i) != TOUPPER (i)) 8425 return 2; 8426 return 0; 8427} 8428_ACEOF 8429if ac_fn_c_try_run "$LINENO"; then : 8430 8431else 8432 ac_cv_header_stdc=no 8433fi 8434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8435 conftest.$ac_objext conftest.beam conftest.$ac_ext 8436fi 8437 8438fi 8439fi 8440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8441$as_echo "$ac_cv_header_stdc" >&6; } 8442if test $ac_cv_header_stdc = yes; then 8443 8444$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h 8445 8446fi 8447 8448# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8449for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8450 inttypes.h stdint.h unistd.h 8451do : 8452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8453ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8454" 8455if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8456 cat >>confdefs.h <<_ACEOF 8457@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8458_ACEOF 8459 8460fi 8461 8462done 8463 8464 8465for ac_header in dlfcn.h 8466do : 8467 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8468" 8469if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8470 cat >>confdefs.h <<_ACEOF 8471@%:@define HAVE_DLFCN_H 1 8472_ACEOF 8473 8474fi 8475 8476done 8477 8478 8479 8480 8481 8482# Set options 8483 8484 8485 8486 enable_dlopen=no 8487 8488 8489 enable_win32_dll=no 8490 8491 8492 8493 8494 8495@%:@ Check whether --with-pic was given. 8496if test "${with_pic+set}" = set; then : 8497 withval=$with_pic; lt_p=${PACKAGE-default} 8498 case $withval in 8499 yes|no) pic_mode=$withval ;; 8500 *) 8501 pic_mode=default 8502 # Look at the argument we got. We use all the common list separators. 8503 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8504 for lt_pkg in $withval; do 8505 IFS=$lt_save_ifs 8506 if test "X$lt_pkg" = "X$lt_p"; then 8507 pic_mode=yes 8508 fi 8509 done 8510 IFS=$lt_save_ifs 8511 ;; 8512 esac 8513else 8514 pic_mode=default 8515fi 8516 8517 8518 8519 8520 8521 8522 8523 8524 @%:@ Check whether --enable-fast-install was given. 8525if test "${enable_fast_install+set}" = set; then : 8526 enableval=$enable_fast_install; p=${PACKAGE-default} 8527 case $enableval in 8528 yes) enable_fast_install=yes ;; 8529 no) enable_fast_install=no ;; 8530 *) 8531 enable_fast_install=no 8532 # Look at the argument we got. We use all the common list separators. 8533 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8534 for pkg in $enableval; do 8535 IFS=$lt_save_ifs 8536 if test "X$pkg" = "X$p"; then 8537 enable_fast_install=yes 8538 fi 8539 done 8540 IFS=$lt_save_ifs 8541 ;; 8542 esac 8543else 8544 enable_fast_install=yes 8545fi 8546 8547 8548 8549 8550 8551 8552 8553 8554 shared_archive_member_spec= 8555case $host,$enable_shared in 8556power*-*-aix[5-9]*,yes) 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8558$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8559 8560@%:@ Check whether --with-aix-soname was given. 8561if test "${with_aix_soname+set}" = set; then : 8562 withval=$with_aix_soname; case $withval in 8563 aix|svr4|both) 8564 ;; 8565 *) 8566 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8567 ;; 8568 esac 8569 lt_cv_with_aix_soname=$with_aix_soname 8570else 8571 if ${lt_cv_with_aix_soname+:} false; then : 8572 $as_echo_n "(cached) " >&6 8573else 8574 lt_cv_with_aix_soname=aix 8575fi 8576 8577 with_aix_soname=$lt_cv_with_aix_soname 8578fi 8579 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8581$as_echo "$with_aix_soname" >&6; } 8582 if test aix != "$with_aix_soname"; then 8583 # For the AIX way of multilib, we name the shared archive member 8584 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8585 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8586 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8587 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8588 if test 64 = "${OBJECT_MODE-32}"; then 8589 shared_archive_member_spec=shr_64 8590 else 8591 shared_archive_member_spec=shr 8592 fi 8593 fi 8594 ;; 8595*) 8596 with_aix_soname=aix 8597 ;; 8598esac 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609# This can be used to rebuild libtool when needed 8610LIBTOOL_DEPS=$ltmain 8611 8612# Always use our own libtool. 8613LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644test -z "$LN_S" && LN_S="ln -s" 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659if test -n "${ZSH_VERSION+set}"; then 8660 setopt NO_GLOB_SUBST 8661fi 8662 8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8664$as_echo_n "checking for objdir... " >&6; } 8665if ${lt_cv_objdir+:} false; then : 8666 $as_echo_n "(cached) " >&6 8667else 8668 rm -f .libs 2>/dev/null 8669mkdir .libs 2>/dev/null 8670if test -d .libs; then 8671 lt_cv_objdir=.libs 8672else 8673 # MS-DOS does not allow filenames that begin with a dot. 8674 lt_cv_objdir=_libs 8675fi 8676rmdir .libs 2>/dev/null 8677fi 8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8679$as_echo "$lt_cv_objdir" >&6; } 8680objdir=$lt_cv_objdir 8681 8682 8683 8684 8685 8686cat >>confdefs.h <<_ACEOF 8687@%:@define LT_OBJDIR "$lt_cv_objdir/" 8688_ACEOF 8689 8690 8691 8692 8693case $host_os in 8694aix3*) 8695 # AIX sometimes has problems with the GCC collect2 program. For some 8696 # reason, if we set the COLLECT_NAMES environment variable, the problems 8697 # vanish in a puff of smoke. 8698 if test set != "${COLLECT_NAMES+set}"; then 8699 COLLECT_NAMES= 8700 export COLLECT_NAMES 8701 fi 8702 ;; 8703esac 8704 8705# Global variables: 8706ofile=libtool 8707can_build_shared=yes 8708 8709# All known linkers require a '.a' archive for static linking (except MSVC, 8710# which needs '.lib'). 8711libext=a 8712 8713with_gnu_ld=$lt_cv_prog_gnu_ld 8714 8715old_CC=$CC 8716old_CFLAGS=$CFLAGS 8717 8718# Set sane defaults for various variables 8719test -z "$CC" && CC=cc 8720test -z "$LTCC" && LTCC=$CC 8721test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8722test -z "$LD" && LD=ld 8723test -z "$ac_objext" && ac_objext=o 8724 8725func_cc_basename $compiler 8726cc_basename=$func_cc_basename_result 8727 8728 8729# Only perform the check for file, if the check method requires it 8730test -z "$MAGIC_CMD" && MAGIC_CMD=file 8731case $deplibs_check_method in 8732file_magic*) 8733 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8735$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8736if ${lt_cv_path_MAGIC_CMD+:} false; then : 8737 $as_echo_n "(cached) " >&6 8738else 8739 case $MAGIC_CMD in 8740[\\/*] | ?:[\\/]*) 8741 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8742 ;; 8743*) 8744 lt_save_MAGIC_CMD=$MAGIC_CMD 8745 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8746 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8747 for ac_dir in $ac_dummy; do 8748 IFS=$lt_save_ifs 8749 test -z "$ac_dir" && ac_dir=. 8750 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8751 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8752 if test -n "$file_magic_test_file"; then 8753 case $deplibs_check_method in 8754 "file_magic "*) 8755 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8756 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8757 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8758 $EGREP "$file_magic_regex" > /dev/null; then 8759 : 8760 else 8761 cat <<_LT_EOF 1>&2 8762 8763*** Warning: the command libtool uses to detect shared libraries, 8764*** $file_magic_cmd, produces output that libtool cannot recognize. 8765*** The result is that libtool may fail to recognize shared libraries 8766*** as such. This will affect the creation of libtool libraries that 8767*** depend on shared libraries, but programs linked with such libtool 8768*** libraries will work regardless of this problem. Nevertheless, you 8769*** may want to report the problem to your system manager and/or to 8770*** bug-libtool@gnu.org 8771 8772_LT_EOF 8773 fi ;; 8774 esac 8775 fi 8776 break 8777 fi 8778 done 8779 IFS=$lt_save_ifs 8780 MAGIC_CMD=$lt_save_MAGIC_CMD 8781 ;; 8782esac 8783fi 8784 8785MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8786if test -n "$MAGIC_CMD"; then 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8788$as_echo "$MAGIC_CMD" >&6; } 8789else 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8791$as_echo "no" >&6; } 8792fi 8793 8794 8795 8796 8797 8798if test -z "$lt_cv_path_MAGIC_CMD"; then 8799 if test -n "$ac_tool_prefix"; then 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8801$as_echo_n "checking for file... " >&6; } 8802if ${lt_cv_path_MAGIC_CMD+:} false; then : 8803 $as_echo_n "(cached) " >&6 8804else 8805 case $MAGIC_CMD in 8806[\\/*] | ?:[\\/]*) 8807 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8808 ;; 8809*) 8810 lt_save_MAGIC_CMD=$MAGIC_CMD 8811 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8812 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8813 for ac_dir in $ac_dummy; do 8814 IFS=$lt_save_ifs 8815 test -z "$ac_dir" && ac_dir=. 8816 if test -f "$ac_dir/file"; then 8817 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8818 if test -n "$file_magic_test_file"; then 8819 case $deplibs_check_method in 8820 "file_magic "*) 8821 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8822 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8823 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8824 $EGREP "$file_magic_regex" > /dev/null; then 8825 : 8826 else 8827 cat <<_LT_EOF 1>&2 8828 8829*** Warning: the command libtool uses to detect shared libraries, 8830*** $file_magic_cmd, produces output that libtool cannot recognize. 8831*** The result is that libtool may fail to recognize shared libraries 8832*** as such. This will affect the creation of libtool libraries that 8833*** depend on shared libraries, but programs linked with such libtool 8834*** libraries will work regardless of this problem. Nevertheless, you 8835*** may want to report the problem to your system manager and/or to 8836*** bug-libtool@gnu.org 8837 8838_LT_EOF 8839 fi ;; 8840 esac 8841 fi 8842 break 8843 fi 8844 done 8845 IFS=$lt_save_ifs 8846 MAGIC_CMD=$lt_save_MAGIC_CMD 8847 ;; 8848esac 8849fi 8850 8851MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8852if test -n "$MAGIC_CMD"; then 8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8854$as_echo "$MAGIC_CMD" >&6; } 8855else 8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8857$as_echo "no" >&6; } 8858fi 8859 8860 8861 else 8862 MAGIC_CMD=: 8863 fi 8864fi 8865 8866 fi 8867 ;; 8868esac 8869 8870# Use C for the default configuration in the libtool script 8871 8872lt_save_CC=$CC 8873ac_ext=c 8874ac_cpp='$CPP $CPPFLAGS' 8875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8877ac_compiler_gnu=$ac_cv_c_compiler_gnu 8878 8879 8880# Source file extension for C test sources. 8881ac_ext=c 8882 8883# Object file extension for compiled C test sources. 8884objext=o 8885objext=$objext 8886 8887# Code to be used in simple compile tests 8888lt_simple_compile_test_code="int some_variable = 0;" 8889 8890# Code to be used in simple link tests 8891lt_simple_link_test_code='int main(){return(0);}' 8892 8893 8894 8895 8896 8897 8898 8899# If no C compiler was specified, use CC. 8900LTCC=${LTCC-"$CC"} 8901 8902# If no C compiler flags were specified, use CFLAGS. 8903LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8904 8905# Allow CC to be a program name with arguments. 8906compiler=$CC 8907 8908# Save the default compiler, since it gets overwritten when the other 8909# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8910compiler_DEFAULT=$CC 8911 8912# save warnings/boilerplate of simple test code 8913ac_outfile=conftest.$ac_objext 8914echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8915eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8916_lt_compiler_boilerplate=`cat conftest.err` 8917$RM conftest* 8918 8919ac_outfile=conftest.$ac_objext 8920echo "$lt_simple_link_test_code" >conftest.$ac_ext 8921eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8922_lt_linker_boilerplate=`cat conftest.err` 8923$RM -r conftest* 8924 8925 8926## CAVEAT EMPTOR: 8927## There is no encapsulation within the following macros, do not change 8928## the running order or otherwise move them around unless you know exactly 8929## what you are doing... 8930if test -n "$compiler"; then 8931 8932lt_prog_compiler_no_builtin_flag= 8933 8934if test yes = "$GCC"; then 8935 case $cc_basename in 8936 nvcc*) 8937 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8938 *) 8939 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8940 esac 8941 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8943$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8944if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8945 $as_echo_n "(cached) " >&6 8946else 8947 lt_cv_prog_compiler_rtti_exceptions=no 8948 ac_outfile=conftest.$ac_objext 8949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8950 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8951 # Insert the option either (1) after the last *FLAGS variable, or 8952 # (2) before a word containing "conftest.", or (3) at the end. 8953 # Note that $ac_compile itself does not contain backslashes and begins 8954 # with a dollar sign (not a hyphen), so the echo should work correctly. 8955 # The option is referenced via a variable to avoid confusing sed. 8956 lt_compile=`echo "$ac_compile" | $SED \ 8957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8959 -e 's:$: $lt_compiler_flag:'` 8960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8961 (eval "$lt_compile" 2>conftest.err) 8962 ac_status=$? 8963 cat conftest.err >&5 8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8965 if (exit $ac_status) && test -s "$ac_outfile"; then 8966 # The compiler can only warn and ignore the option if not recognized 8967 # So say no if there are warnings other than the usual output. 8968 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8970 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8971 lt_cv_prog_compiler_rtti_exceptions=yes 8972 fi 8973 fi 8974 $RM conftest* 8975 8976fi 8977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8978$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8979 8980if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8981 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8982else 8983 : 8984fi 8985 8986fi 8987 8988 8989 8990 8991 8992 8993 lt_prog_compiler_wl= 8994lt_prog_compiler_pic= 8995lt_prog_compiler_static= 8996 8997 8998 if test yes = "$GCC"; then 8999 lt_prog_compiler_wl='-Wl,' 9000 lt_prog_compiler_static='-static' 9001 9002 case $host_os in 9003 aix*) 9004 # All AIX code is PIC. 9005 if test ia64 = "$host_cpu"; then 9006 # AIX 5 now supports IA64 processor 9007 lt_prog_compiler_static='-Bstatic' 9008 fi 9009 lt_prog_compiler_pic='-fPIC' 9010 ;; 9011 9012 amigaos*) 9013 case $host_cpu in 9014 powerpc) 9015 # see comment about AmigaOS4 .so support 9016 lt_prog_compiler_pic='-fPIC' 9017 ;; 9018 m68k) 9019 # FIXME: we need at least 68020 code to build shared libraries, but 9020 # adding the '-m68020' flag to GCC prevents building anything better, 9021 # like '-m68040'. 9022 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9023 ;; 9024 esac 9025 ;; 9026 9027 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9028 # PIC is the default for these OSes. 9029 ;; 9030 9031 mingw* | cygwin* | pw32* | os2* | cegcc*) 9032 # This hack is so that the source file can tell whether it is being 9033 # built for inclusion in a dll (and should export symbols for example). 9034 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9035 # (--disable-auto-import) libraries 9036 lt_prog_compiler_pic='-DDLL_EXPORT' 9037 case $host_os in 9038 os2*) 9039 lt_prog_compiler_static='$wl-static' 9040 ;; 9041 esac 9042 ;; 9043 9044 darwin* | rhapsody*) 9045 # PIC is the default on this platform 9046 # Common symbols not allowed in MH_DYLIB files 9047 lt_prog_compiler_pic='-fno-common' 9048 ;; 9049 9050 haiku*) 9051 # PIC is the default for Haiku. 9052 # The "-static" flag exists, but is broken. 9053 lt_prog_compiler_static= 9054 ;; 9055 9056 hpux*) 9057 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9058 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9059 # sets the default TLS model and affects inlining. 9060 case $host_cpu in 9061 hppa*64*) 9062 # +Z the default 9063 ;; 9064 *) 9065 lt_prog_compiler_pic='-fPIC' 9066 ;; 9067 esac 9068 ;; 9069 9070 interix[3-9]*) 9071 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9072 # Instead, we relocate shared libraries at runtime. 9073 ;; 9074 9075 msdosdjgpp*) 9076 # Just because we use GCC doesn't mean we suddenly get shared libraries 9077 # on systems that don't support them. 9078 lt_prog_compiler_can_build_shared=no 9079 enable_shared=no 9080 ;; 9081 9082 *nto* | *qnx*) 9083 # QNX uses GNU C++, but need to define -shared option too, otherwise 9084 # it will coredump. 9085 lt_prog_compiler_pic='-fPIC -shared' 9086 ;; 9087 9088 sysv4*MP*) 9089 if test -d /usr/nec; then 9090 lt_prog_compiler_pic=-Kconform_pic 9091 fi 9092 ;; 9093 9094 *) 9095 lt_prog_compiler_pic='-fPIC' 9096 ;; 9097 esac 9098 9099 case $cc_basename in 9100 nvcc*) # Cuda Compiler Driver 2.2 9101 lt_prog_compiler_wl='-Xlinker ' 9102 if test -n "$lt_prog_compiler_pic"; then 9103 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9104 fi 9105 ;; 9106 esac 9107 else 9108 # PORTME Check for flag to pass linker flags through the system compiler. 9109 case $host_os in 9110 aix*) 9111 lt_prog_compiler_wl='-Wl,' 9112 if test ia64 = "$host_cpu"; then 9113 # AIX 5 now supports IA64 processor 9114 lt_prog_compiler_static='-Bstatic' 9115 else 9116 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9117 fi 9118 ;; 9119 9120 darwin* | rhapsody*) 9121 # PIC is the default on this platform 9122 # Common symbols not allowed in MH_DYLIB files 9123 lt_prog_compiler_pic='-fno-common' 9124 case $cc_basename in 9125 nagfor*) 9126 # NAG Fortran compiler 9127 lt_prog_compiler_wl='-Wl,-Wl,,' 9128 lt_prog_compiler_pic='-PIC' 9129 lt_prog_compiler_static='-Bstatic' 9130 ;; 9131 esac 9132 ;; 9133 9134 mingw* | cygwin* | pw32* | os2* | cegcc*) 9135 # This hack is so that the source file can tell whether it is being 9136 # built for inclusion in a dll (and should export symbols for example). 9137 lt_prog_compiler_pic='-DDLL_EXPORT' 9138 case $host_os in 9139 os2*) 9140 lt_prog_compiler_static='$wl-static' 9141 ;; 9142 esac 9143 ;; 9144 9145 hpux9* | hpux10* | hpux11*) 9146 lt_prog_compiler_wl='-Wl,' 9147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9148 # not for PA HP-UX. 9149 case $host_cpu in 9150 hppa*64*|ia64*) 9151 # +Z the default 9152 ;; 9153 *) 9154 lt_prog_compiler_pic='+Z' 9155 ;; 9156 esac 9157 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9158 lt_prog_compiler_static='$wl-a ${wl}archive' 9159 ;; 9160 9161 irix5* | irix6* | nonstopux*) 9162 lt_prog_compiler_wl='-Wl,' 9163 # PIC (with -KPIC) is the default. 9164 lt_prog_compiler_static='-non_shared' 9165 ;; 9166 9167 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9168 case $cc_basename in 9169 # old Intel for x86_64, which still supported -KPIC. 9170 ecc*) 9171 lt_prog_compiler_wl='-Wl,' 9172 lt_prog_compiler_pic='-KPIC' 9173 lt_prog_compiler_static='-static' 9174 ;; 9175 # flang / f18. f95 an alias for gfortran or flang on Debian 9176 flang* | f18* | f95*) 9177 lt_prog_compiler_wl='-Wl,' 9178 lt_prog_compiler_pic='-fPIC' 9179 lt_prog_compiler_static='-static' 9180 ;; 9181 # icc used to be incompatible with GCC. 9182 # ICC 10 doesn't accept -KPIC any more. 9183 icc* | ifort*) 9184 lt_prog_compiler_wl='-Wl,' 9185 lt_prog_compiler_pic='-fPIC' 9186 lt_prog_compiler_static='-static' 9187 ;; 9188 # Lahey Fortran 8.1. 9189 lf95*) 9190 lt_prog_compiler_wl='-Wl,' 9191 lt_prog_compiler_pic='--shared' 9192 lt_prog_compiler_static='--static' 9193 ;; 9194 nagfor*) 9195 # NAG Fortran compiler 9196 lt_prog_compiler_wl='-Wl,-Wl,,' 9197 lt_prog_compiler_pic='-PIC' 9198 lt_prog_compiler_static='-Bstatic' 9199 ;; 9200 tcc*) 9201 # Fabrice Bellard et al's Tiny C Compiler 9202 lt_prog_compiler_wl='-Wl,' 9203 lt_prog_compiler_pic='-fPIC' 9204 lt_prog_compiler_static='-static' 9205 ;; 9206 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9207 # Portland Group compilers (*not* the Pentium gcc compiler, 9208 # which looks to be a dead project) 9209 lt_prog_compiler_wl='-Wl,' 9210 lt_prog_compiler_pic='-fpic' 9211 lt_prog_compiler_static='-Bstatic' 9212 ;; 9213 ccc*) 9214 lt_prog_compiler_wl='-Wl,' 9215 # All Alpha code is PIC. 9216 lt_prog_compiler_static='-non_shared' 9217 ;; 9218 xl* | bgxl* | bgf* | mpixl*) 9219 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9220 lt_prog_compiler_wl='-Wl,' 9221 lt_prog_compiler_pic='-qpic' 9222 lt_prog_compiler_static='-qstaticlink' 9223 ;; 9224 *) 9225 case `$CC -V 2>&1 | sed 5q` in 9226 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9227 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9228 lt_prog_compiler_pic='-KPIC' 9229 lt_prog_compiler_static='-Bstatic' 9230 lt_prog_compiler_wl='' 9231 ;; 9232 *Sun\ F* | *Sun*Fortran*) 9233 lt_prog_compiler_pic='-KPIC' 9234 lt_prog_compiler_static='-Bstatic' 9235 lt_prog_compiler_wl='-Qoption ld ' 9236 ;; 9237 *Sun\ C*) 9238 # Sun C 5.9 9239 lt_prog_compiler_pic='-KPIC' 9240 lt_prog_compiler_static='-Bstatic' 9241 lt_prog_compiler_wl='-Wl,' 9242 ;; 9243 *Intel*\ [CF]*Compiler*) 9244 lt_prog_compiler_wl='-Wl,' 9245 lt_prog_compiler_pic='-fPIC' 9246 lt_prog_compiler_static='-static' 9247 ;; 9248 *Portland\ Group*) 9249 lt_prog_compiler_wl='-Wl,' 9250 lt_prog_compiler_pic='-fpic' 9251 lt_prog_compiler_static='-Bstatic' 9252 ;; 9253 esac 9254 ;; 9255 esac 9256 ;; 9257 9258 newsos6) 9259 lt_prog_compiler_pic='-KPIC' 9260 lt_prog_compiler_static='-Bstatic' 9261 ;; 9262 9263 *nto* | *qnx*) 9264 # QNX uses GNU C++, but need to define -shared option too, otherwise 9265 # it will coredump. 9266 lt_prog_compiler_pic='-fPIC -shared' 9267 ;; 9268 9269 osf3* | osf4* | osf5*) 9270 lt_prog_compiler_wl='-Wl,' 9271 # All OSF/1 code is PIC. 9272 lt_prog_compiler_static='-non_shared' 9273 ;; 9274 9275 rdos*) 9276 lt_prog_compiler_static='-non_shared' 9277 ;; 9278 9279 solaris*) 9280 lt_prog_compiler_pic='-KPIC' 9281 lt_prog_compiler_static='-Bstatic' 9282 case $cc_basename in 9283 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9284 lt_prog_compiler_wl='-Qoption ld ';; 9285 *) 9286 lt_prog_compiler_wl='-Wl,';; 9287 esac 9288 ;; 9289 9290 sunos4*) 9291 lt_prog_compiler_wl='-Qoption ld ' 9292 lt_prog_compiler_pic='-PIC' 9293 lt_prog_compiler_static='-Bstatic' 9294 ;; 9295 9296 sysv4 | sysv4.2uw2* | sysv4.3*) 9297 lt_prog_compiler_wl='-Wl,' 9298 lt_prog_compiler_pic='-KPIC' 9299 lt_prog_compiler_static='-Bstatic' 9300 ;; 9301 9302 sysv4*MP*) 9303 if test -d /usr/nec; then 9304 lt_prog_compiler_pic='-Kconform_pic' 9305 lt_prog_compiler_static='-Bstatic' 9306 fi 9307 ;; 9308 9309 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9310 lt_prog_compiler_wl='-Wl,' 9311 lt_prog_compiler_pic='-KPIC' 9312 lt_prog_compiler_static='-Bstatic' 9313 ;; 9314 9315 unicos*) 9316 lt_prog_compiler_wl='-Wl,' 9317 lt_prog_compiler_can_build_shared=no 9318 ;; 9319 9320 uts4*) 9321 lt_prog_compiler_pic='-pic' 9322 lt_prog_compiler_static='-Bstatic' 9323 ;; 9324 9325 *) 9326 lt_prog_compiler_can_build_shared=no 9327 ;; 9328 esac 9329 fi 9330 9331case $host_os in 9332 # For platforms that do not support PIC, -DPIC is meaningless: 9333 *djgpp*) 9334 lt_prog_compiler_pic= 9335 ;; 9336 *) 9337 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" 9338 ;; 9339esac 9340 9341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9342$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9343if ${lt_cv_prog_compiler_pic+:} false; then : 9344 $as_echo_n "(cached) " >&6 9345else 9346 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9347fi 9348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9349$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9350lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9351 9352# 9353# Check to make sure the PIC flag actually works. 9354# 9355if test -n "$lt_prog_compiler_pic"; then 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9357$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9358if ${lt_cv_prog_compiler_pic_works+:} false; then : 9359 $as_echo_n "(cached) " >&6 9360else 9361 lt_cv_prog_compiler_pic_works=no 9362 ac_outfile=conftest.$ac_objext 9363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9364 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 9365 # Insert the option either (1) after the last *FLAGS variable, or 9366 # (2) before a word containing "conftest.", or (3) at the end. 9367 # Note that $ac_compile itself does not contain backslashes and begins 9368 # with a dollar sign (not a hyphen), so the echo should work correctly. 9369 # The option is referenced via a variable to avoid confusing sed. 9370 lt_compile=`echo "$ac_compile" | $SED \ 9371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9373 -e 's:$: $lt_compiler_flag:'` 9374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9375 (eval "$lt_compile" 2>conftest.err) 9376 ac_status=$? 9377 cat conftest.err >&5 9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9379 if (exit $ac_status) && test -s "$ac_outfile"; then 9380 # The compiler can only warn and ignore the option if not recognized 9381 # So say no if there are warnings other than the usual output. 9382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9385 lt_cv_prog_compiler_pic_works=yes 9386 fi 9387 fi 9388 $RM conftest* 9389 9390fi 9391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9392$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9393 9394if test yes = "$lt_cv_prog_compiler_pic_works"; then 9395 case $lt_prog_compiler_pic in 9396 "" | " "*) ;; 9397 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9398 esac 9399else 9400 lt_prog_compiler_pic= 9401 lt_prog_compiler_can_build_shared=no 9402fi 9403 9404fi 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416# 9417# Check to make sure the static flag actually works. 9418# 9419wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9421$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9422if ${lt_cv_prog_compiler_static_works+:} false; then : 9423 $as_echo_n "(cached) " >&6 9424else 9425 lt_cv_prog_compiler_static_works=no 9426 save_LDFLAGS=$LDFLAGS 9427 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9428 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9429 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9430 # The linker can only warn and ignore the option if not recognized 9431 # So say no if there are warnings 9432 if test -s conftest.err; then 9433 # Append any errors to the config.log. 9434 cat conftest.err 1>&5 9435 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9437 if diff conftest.exp conftest.er2 >/dev/null; then 9438 lt_cv_prog_compiler_static_works=yes 9439 fi 9440 else 9441 lt_cv_prog_compiler_static_works=yes 9442 fi 9443 fi 9444 $RM -r conftest* 9445 LDFLAGS=$save_LDFLAGS 9446 9447fi 9448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9449$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9450 9451if test yes = "$lt_cv_prog_compiler_static_works"; then 9452 : 9453else 9454 lt_prog_compiler_static= 9455fi 9456 9457 9458 9459 9460 9461 9462 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9464$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9465if ${lt_cv_prog_compiler_c_o+:} false; then : 9466 $as_echo_n "(cached) " >&6 9467else 9468 lt_cv_prog_compiler_c_o=no 9469 $RM -r conftest 2>/dev/null 9470 mkdir conftest 9471 cd conftest 9472 mkdir out 9473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9474 9475 lt_compiler_flag="-o out/conftest2.$ac_objext" 9476 # Insert the option either (1) after the last *FLAGS variable, or 9477 # (2) before a word containing "conftest.", or (3) at the end. 9478 # Note that $ac_compile itself does not contain backslashes and begins 9479 # with a dollar sign (not a hyphen), so the echo should work correctly. 9480 lt_compile=`echo "$ac_compile" | $SED \ 9481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9483 -e 's:$: $lt_compiler_flag:'` 9484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9485 (eval "$lt_compile" 2>out/conftest.err) 9486 ac_status=$? 9487 cat out/conftest.err >&5 9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9489 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9490 then 9491 # The compiler can only warn and ignore the option if not recognized 9492 # So say no if there are warnings 9493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9494 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9495 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9496 lt_cv_prog_compiler_c_o=yes 9497 fi 9498 fi 9499 chmod u+w . 2>&5 9500 $RM conftest* 9501 # SGI C++ compiler will create directory out/ii_files/ for 9502 # template instantiation 9503 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9504 $RM out/* && rmdir out 9505 cd .. 9506 $RM -r conftest 9507 $RM conftest* 9508 9509fi 9510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9511$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9512 9513 9514 9515 9516 9517 9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9519$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9520if ${lt_cv_prog_compiler_c_o+:} false; then : 9521 $as_echo_n "(cached) " >&6 9522else 9523 lt_cv_prog_compiler_c_o=no 9524 $RM -r conftest 2>/dev/null 9525 mkdir conftest 9526 cd conftest 9527 mkdir out 9528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9529 9530 lt_compiler_flag="-o out/conftest2.$ac_objext" 9531 # Insert the option either (1) after the last *FLAGS variable, or 9532 # (2) before a word containing "conftest.", or (3) at the end. 9533 # Note that $ac_compile itself does not contain backslashes and begins 9534 # with a dollar sign (not a hyphen), so the echo should work correctly. 9535 lt_compile=`echo "$ac_compile" | $SED \ 9536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9538 -e 's:$: $lt_compiler_flag:'` 9539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9540 (eval "$lt_compile" 2>out/conftest.err) 9541 ac_status=$? 9542 cat out/conftest.err >&5 9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9544 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9545 then 9546 # The compiler can only warn and ignore the option if not recognized 9547 # So say no if there are warnings 9548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9551 lt_cv_prog_compiler_c_o=yes 9552 fi 9553 fi 9554 chmod u+w . 2>&5 9555 $RM conftest* 9556 # SGI C++ compiler will create directory out/ii_files/ for 9557 # template instantiation 9558 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9559 $RM out/* && rmdir out 9560 cd .. 9561 $RM -r conftest 9562 $RM conftest* 9563 9564fi 9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9566$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9567 9568 9569 9570 9571hard_links=nottested 9572if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9573 # do not overwrite the value of need_locks provided by the user 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9575$as_echo_n "checking if we can lock with hard links... " >&6; } 9576 hard_links=yes 9577 $RM conftest* 9578 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9579 touch conftest.a 9580 ln conftest.a conftest.b 2>&5 || hard_links=no 9581 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9583$as_echo "$hard_links" >&6; } 9584 if test no = "$hard_links"; then 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9586$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9587 need_locks=warn 9588 fi 9589else 9590 need_locks=no 9591fi 9592 9593 9594 9595 9596 9597 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9599$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9600 9601 runpath_var= 9602 allow_undefined_flag= 9603 always_export_symbols=no 9604 archive_cmds= 9605 archive_expsym_cmds= 9606 compiler_needs_object=no 9607 enable_shared_with_static_runtimes=no 9608 export_dynamic_flag_spec= 9609 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9610 hardcode_automatic=no 9611 hardcode_direct=no 9612 hardcode_direct_absolute=no 9613 hardcode_libdir_flag_spec= 9614 hardcode_libdir_separator= 9615 hardcode_minus_L=no 9616 hardcode_shlibpath_var=unsupported 9617 inherit_rpath=no 9618 link_all_deplibs=unknown 9619 module_cmds= 9620 module_expsym_cmds= 9621 old_archive_from_new_cmds= 9622 old_archive_from_expsyms_cmds= 9623 thread_safe_flag_spec= 9624 whole_archive_flag_spec= 9625 # include_expsyms should be a list of space-separated symbols to be *always* 9626 # included in the symbol list 9627 include_expsyms= 9628 # exclude_expsyms can be an extended regexp of symbols to exclude 9629 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9630 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9631 # as well as any symbol that contains 'd'. 9632 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9633 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9634 # platforms (ab)use it in PIC code, but their linkers get confused if 9635 # the symbol is explicitly referenced. Since portable code cannot 9636 # rely on this symbol name, it's probably fine to never include it in 9637 # preloaded symbol tables. 9638 # Exclude shared library initialization/finalization symbols. 9639 extract_expsyms_cmds= 9640 9641 case $host_os in 9642 cygwin* | mingw* | pw32* | cegcc*) 9643 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9644 # When not using gcc, we currently assume that we are using 9645 # Microsoft Visual C++. 9646 if test yes != "$GCC"; then 9647 with_gnu_ld=no 9648 fi 9649 ;; 9650 interix*) 9651 # we just hope/assume this is gcc and not c89 (= MSVC++) 9652 with_gnu_ld=yes 9653 ;; 9654 openbsd* | bitrig*) 9655 with_gnu_ld=no 9656 ;; 9657 linux* | k*bsd*-gnu | gnu*) 9658 link_all_deplibs=no 9659 ;; 9660 esac 9661 9662 ld_shlibs=yes 9663 9664 # On some targets, GNU ld is compatible enough with the native linker 9665 # that we're better off using the native interface for both. 9666 lt_use_gnu_ld_interface=no 9667 if test yes = "$with_gnu_ld"; then 9668 case $host_os in 9669 aix*) 9670 # The AIX port of GNU ld has always aspired to compatibility 9671 # with the native linker. However, as the warning in the GNU ld 9672 # block says, versions before 2.19.5* couldn't really create working 9673 # shared libraries, regardless of the interface used. 9674 case `$LD -v 2>&1` in 9675 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9676 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9677 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9678 *) 9679 lt_use_gnu_ld_interface=yes 9680 ;; 9681 esac 9682 ;; 9683 *) 9684 lt_use_gnu_ld_interface=yes 9685 ;; 9686 esac 9687 fi 9688 9689 if test yes = "$lt_use_gnu_ld_interface"; then 9690 # If archive_cmds runs LD, not CC, wlarc should be empty 9691 wlarc='$wl' 9692 9693 # Set some defaults for GNU ld with shared library support. These 9694 # are reset later if shared libraries are not supported. Putting them 9695 # here allows them to be overridden if necessary. 9696 runpath_var=LD_RUN_PATH 9697 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9698 export_dynamic_flag_spec='$wl--export-dynamic' 9699 # ancient GNU ld didn't support --whole-archive et. al. 9700 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9701 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9702 else 9703 whole_archive_flag_spec= 9704 fi 9705 supports_anon_versioning=no 9706 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9707 *GNU\ gold*) supports_anon_versioning=yes ;; 9708 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9709 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9710 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9711 *\ 2.11.*) ;; # other 2.11 versions 9712 *) supports_anon_versioning=yes ;; 9713 esac 9714 9715 # See if GNU ld supports shared libraries. 9716 case $host_os in 9717 aix[3-9]*) 9718 # On AIX/PPC, the GNU linker is very broken 9719 if test ia64 != "$host_cpu"; then 9720 ld_shlibs=no 9721 cat <<_LT_EOF 1>&2 9722 9723*** Warning: the GNU linker, at least up to release 2.19, is reported 9724*** to be unable to reliably create shared libraries on AIX. 9725*** Therefore, libtool is disabling shared libraries support. If you 9726*** really care for shared libraries, you may want to install binutils 9727*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9728*** You will then need to restart the configuration process. 9729 9730_LT_EOF 9731 fi 9732 ;; 9733 9734 amigaos*) 9735 case $host_cpu in 9736 powerpc) 9737 # see comment about AmigaOS4 .so support 9738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9739 archive_expsym_cmds='' 9740 ;; 9741 m68k) 9742 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)' 9743 hardcode_libdir_flag_spec='-L$libdir' 9744 hardcode_minus_L=yes 9745 ;; 9746 esac 9747 ;; 9748 9749 beos*) 9750 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9751 allow_undefined_flag=unsupported 9752 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9753 # support --undefined. This deserves some investigation. FIXME 9754 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9755 else 9756 ld_shlibs=no 9757 fi 9758 ;; 9759 9760 cygwin* | mingw* | pw32* | cegcc*) 9761 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9762 # as there is no search path for DLLs. 9763 hardcode_libdir_flag_spec='-L$libdir' 9764 export_dynamic_flag_spec='$wl--export-all-symbols' 9765 allow_undefined_flag=unsupported 9766 always_export_symbols=no 9767 enable_shared_with_static_runtimes=yes 9768 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' 9769 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9770 9771 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9773 # If the export-symbols file already is a .def file, use it as 9774 # is; otherwise, prepend EXPORTS... 9775 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9776 cp $export_symbols $output_objdir/$soname.def; 9777 else 9778 echo EXPORTS > $output_objdir/$soname.def; 9779 cat $export_symbols >> $output_objdir/$soname.def; 9780 fi~ 9781 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9782 else 9783 ld_shlibs=no 9784 fi 9785 ;; 9786 9787 haiku*) 9788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9789 link_all_deplibs=yes 9790 ;; 9791 9792 os2*) 9793 hardcode_libdir_flag_spec='-L$libdir' 9794 hardcode_minus_L=yes 9795 allow_undefined_flag=unsupported 9796 shrext_cmds=.dll 9797 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9798 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9799 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9800 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9801 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9802 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9803 emximp -o $lib $output_objdir/$libname.def' 9804 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9805 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9806 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9807 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9808 prefix_cmds="$SED"~ 9809 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9810 prefix_cmds="$prefix_cmds -e 1d"; 9811 fi~ 9812 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9813 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9814 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9815 emximp -o $lib $output_objdir/$libname.def' 9816 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9817 enable_shared_with_static_runtimes=yes 9818 ;; 9819 9820 interix[3-9]*) 9821 hardcode_direct=no 9822 hardcode_shlibpath_var=no 9823 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9824 export_dynamic_flag_spec='$wl-E' 9825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9826 # Instead, shared libraries are loaded at an image base (0x10000000 by 9827 # default) and relocated if they conflict, which is a slow very memory 9828 # consuming and fragmenting process. To avoid this, we pick a random, 9829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9830 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9832 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' 9833 ;; 9834 9835 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9836 tmp_diet=no 9837 if test linux-dietlibc = "$host_os"; then 9838 case $cc_basename in 9839 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9840 esac 9841 fi 9842 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9843 && test no = "$tmp_diet" 9844 then 9845 tmp_addflag=' $pic_flag' 9846 tmp_sharedflag='-shared' 9847 case $cc_basename,$host_cpu in 9848 pgcc*) # Portland Group C compiler 9849 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' 9850 tmp_addflag=' $pic_flag' 9851 ;; 9852 pgf77* | pgf90* | pgf95* | pgfortran*) 9853 # Portland Group f77 and f90 compilers 9854 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' 9855 tmp_addflag=' $pic_flag -Mnomain' ;; 9856 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9857 tmp_addflag=' -i_dynamic' ;; 9858 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9859 tmp_addflag=' -i_dynamic -nofor_main' ;; 9860 ifc* | ifort*) # Intel Fortran compiler 9861 tmp_addflag=' -nofor_main' ;; 9862 lf95*) # Lahey Fortran 8.1 9863 whole_archive_flag_spec= 9864 tmp_sharedflag='--shared' ;; 9865 nagfor*) # NAGFOR 5.3 9866 tmp_sharedflag='-Wl,-shared' ;; 9867 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9868 tmp_sharedflag='-qmkshrobj' 9869 tmp_addflag= ;; 9870 nvcc*) # Cuda Compiler Driver 2.2 9871 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' 9872 compiler_needs_object=yes 9873 ;; 9874 esac 9875 case `$CC -V 2>&1 | sed 5q` in 9876 *Sun\ C*) # Sun C 5.9 9877 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' 9878 compiler_needs_object=yes 9879 tmp_sharedflag='-G' ;; 9880 *Sun\ F*) # Sun Fortran 8.3 9881 tmp_sharedflag='-G' ;; 9882 esac 9883 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9884 9885 if test yes = "$supports_anon_versioning"; then 9886 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9887 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9888 echo "local: *; };" >> $output_objdir/$libname.ver~ 9889 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9890 fi 9891 9892 case $cc_basename in 9893 tcc*) 9894 export_dynamic_flag_spec='-rdynamic' 9895 ;; 9896 xlf* | bgf* | bgxlf* | mpixlf*) 9897 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9898 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9899 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9900 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9901 if test yes = "$supports_anon_versioning"; then 9902 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9904 echo "local: *; };" >> $output_objdir/$libname.ver~ 9905 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9906 fi 9907 ;; 9908 esac 9909 else 9910 ld_shlibs=no 9911 fi 9912 ;; 9913 9914 netbsd* | netbsdelf*-gnu) 9915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9916 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9917 wlarc= 9918 else 9919 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9920 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9921 fi 9922 ;; 9923 9924 solaris*) 9925 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9926 ld_shlibs=no 9927 cat <<_LT_EOF 1>&2 9928 9929*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9930*** create shared libraries on Solaris systems. Therefore, libtool 9931*** is disabling shared libraries support. We urge you to upgrade GNU 9932*** binutils to release 2.9.1 or newer. Another option is to modify 9933*** your PATH or compiler configuration so that the native linker is 9934*** used, and then restart. 9935 9936_LT_EOF 9937 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9938 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9939 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9940 else 9941 ld_shlibs=no 9942 fi 9943 ;; 9944 9945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9946 case `$LD -v 2>&1` in 9947 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9948 ld_shlibs=no 9949 cat <<_LT_EOF 1>&2 9950 9951*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9952*** reliably create shared libraries on SCO systems. Therefore, libtool 9953*** is disabling shared libraries support. We urge you to upgrade GNU 9954*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9955*** your PATH or compiler configuration so that the native linker is 9956*** used, and then restart. 9957 9958_LT_EOF 9959 ;; 9960 *) 9961 # For security reasons, it is highly recommended that you always 9962 # use absolute paths for naming shared libraries, and exclude the 9963 # DT_RUNPATH tag from executables and libraries. But doing so 9964 # requires that you compile everything twice, which is a pain. 9965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9966 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9969 else 9970 ld_shlibs=no 9971 fi 9972 ;; 9973 esac 9974 ;; 9975 9976 sunos4*) 9977 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9978 wlarc= 9979 hardcode_direct=yes 9980 hardcode_shlibpath_var=no 9981 ;; 9982 9983 *) 9984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9985 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9986 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9987 else 9988 ld_shlibs=no 9989 fi 9990 ;; 9991 esac 9992 9993 if test no = "$ld_shlibs"; then 9994 runpath_var= 9995 hardcode_libdir_flag_spec= 9996 export_dynamic_flag_spec= 9997 whole_archive_flag_spec= 9998 fi 9999 else 10000 # PORTME fill in a description of your system's linker (not GNU ld) 10001 case $host_os in 10002 aix3*) 10003 allow_undefined_flag=unsupported 10004 always_export_symbols=yes 10005 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' 10006 # Note: this linker hardcodes the directories in LIBPATH if there 10007 # are no directories specified by -L. 10008 hardcode_minus_L=yes 10009 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10010 # Neither direct hardcoding nor static linking is supported with a 10011 # broken collect2. 10012 hardcode_direct=unsupported 10013 fi 10014 ;; 10015 10016 aix[4-9]*) 10017 if test ia64 = "$host_cpu"; then 10018 # On IA64, the linker does run time linking by default, so we don't 10019 # have to do anything special. 10020 aix_use_runtimelinking=no 10021 exp_sym_flag='-Bexport' 10022 no_entry_flag= 10023 else 10024 # If we're using GNU nm, then we don't want the "-C" option. 10025 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10026 # Without the "-l" option, or with the "-B" option, AIX nm treats 10027 # weak defined symbols like other global defined symbols, whereas 10028 # GNU nm marks them as "W". 10029 # While the 'weak' keyword is ignored in the Export File, we need 10030 # it in the Import File for the 'aix-soname' feature, so we have 10031 # to replace the "-B" option with "-P" for AIX nm. 10032 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10033 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' 10034 else 10035 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10036 fi 10037 aix_use_runtimelinking=no 10038 10039 # Test if we are trying to use run time linking or normal 10040 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10041 # have runtime linking enabled, and use it for executables. 10042 # For shared libraries, we enable/disable runtime linking 10043 # depending on the kind of the shared library created - 10044 # when "with_aix_soname,aix_use_runtimelinking" is: 10045 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10046 # "aix,yes" lib.so shared, rtl:yes, for executables 10047 # lib.a static archive 10048 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10049 # lib.a(lib.so.V) shared, rtl:no, for executables 10050 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10051 # lib.a(lib.so.V) shared, rtl:no 10052 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10053 # lib.a static archive 10054 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10055 for ld_flag in $LDFLAGS; do 10056 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10057 aix_use_runtimelinking=yes 10058 break 10059 fi 10060 done 10061 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10062 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10063 # so we don't have lib.a shared libs to link our executables. 10064 # We have to force runtime linking in this case. 10065 aix_use_runtimelinking=yes 10066 LDFLAGS="$LDFLAGS -Wl,-brtl" 10067 fi 10068 ;; 10069 esac 10070 10071 exp_sym_flag='-bexport' 10072 no_entry_flag='-bnoentry' 10073 fi 10074 10075 # When large executables or shared objects are built, AIX ld can 10076 # have problems creating the table of contents. If linking a library 10077 # or program results in "error TOC overflow" add -mminimal-toc to 10078 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10079 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10080 10081 archive_cmds='' 10082 hardcode_direct=yes 10083 hardcode_direct_absolute=yes 10084 hardcode_libdir_separator=':' 10085 link_all_deplibs=yes 10086 file_list_spec='$wl-f,' 10087 case $with_aix_soname,$aix_use_runtimelinking in 10088 aix,*) ;; # traditional, no import file 10089 svr4,* | *,yes) # use import file 10090 # The Import File defines what to hardcode. 10091 hardcode_direct=no 10092 hardcode_direct_absolute=no 10093 ;; 10094 esac 10095 10096 if test yes = "$GCC"; then 10097 case $host_os in aix4.[012]|aix4.[012].*) 10098 # We only want to do this on AIX 4.2 and lower, the check 10099 # below for broken collect2 doesn't work under 4.3+ 10100 collect2name=`$CC -print-prog-name=collect2` 10101 if test -f "$collect2name" && 10102 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10103 then 10104 # We have reworked collect2 10105 : 10106 else 10107 # We have old collect2 10108 hardcode_direct=unsupported 10109 # It fails to find uninstalled libraries when the uninstalled 10110 # path is not listed in the libpath. Setting hardcode_minus_L 10111 # to unsupported forces relinking 10112 hardcode_minus_L=yes 10113 hardcode_libdir_flag_spec='-L$libdir' 10114 hardcode_libdir_separator= 10115 fi 10116 ;; 10117 esac 10118 shared_flag='-shared' 10119 if test yes = "$aix_use_runtimelinking"; then 10120 shared_flag="$shared_flag "'$wl-G' 10121 fi 10122 # Need to ensure runtime linking is disabled for the traditional 10123 # shared library, or the linker may eventually find shared libraries 10124 # /with/ Import File - we do not want to mix them. 10125 shared_flag_aix='-shared' 10126 shared_flag_svr4='-shared $wl-G' 10127 else 10128 # not using gcc 10129 if test ia64 = "$host_cpu"; then 10130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10131 # chokes on -Wl,-G. The following line is correct: 10132 shared_flag='-G' 10133 else 10134 if test yes = "$aix_use_runtimelinking"; then 10135 shared_flag='$wl-G' 10136 else 10137 shared_flag='$wl-bM:SRE' 10138 fi 10139 shared_flag_aix='$wl-bM:SRE' 10140 shared_flag_svr4='$wl-G' 10141 fi 10142 fi 10143 10144 export_dynamic_flag_spec='$wl-bexpall' 10145 # It seems that -bexpall does not export symbols beginning with 10146 # underscore (_), so it is better to generate a list of symbols to export. 10147 always_export_symbols=yes 10148 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10149 # Warning - without using the other runtime loading flags (-brtl), 10150 # -berok will link without error, but may produce a broken library. 10151 allow_undefined_flag='-berok' 10152 # Determine the default libpath from the value encoded in an 10153 # empty executable. 10154 if test set = "${lt_cv_aix_libpath+set}"; then 10155 aix_libpath=$lt_cv_aix_libpath 10156else 10157 if ${lt_cv_aix_libpath_+:} false; then : 10158 $as_echo_n "(cached) " >&6 10159else 10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10161/* end confdefs.h. */ 10162 10163int 10164main () 10165{ 10166 10167 ; 10168 return 0; 10169} 10170_ACEOF 10171if ac_fn_c_try_link "$LINENO"; then : 10172 10173 lt_aix_libpath_sed=' 10174 /Import File Strings/,/^$/ { 10175 /^0/ { 10176 s/^0 *\([^ ]*\) *$/\1/ 10177 p 10178 } 10179 }' 10180 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10181 # Check for a 64-bit object if we didn't find anything. 10182 if test -z "$lt_cv_aix_libpath_"; then 10183 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10184 fi 10185fi 10186rm -f core conftest.err conftest.$ac_objext \ 10187 conftest$ac_exeext conftest.$ac_ext 10188 if test -z "$lt_cv_aix_libpath_"; then 10189 lt_cv_aix_libpath_=/usr/lib:/lib 10190 fi 10191 10192fi 10193 10194 aix_libpath=$lt_cv_aix_libpath_ 10195fi 10196 10197 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10198 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 10199 else 10200 if test ia64 = "$host_cpu"; then 10201 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10202 allow_undefined_flag="-z nodefs" 10203 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" 10204 else 10205 # Determine the default libpath from the value encoded in an 10206 # empty executable. 10207 if test set = "${lt_cv_aix_libpath+set}"; then 10208 aix_libpath=$lt_cv_aix_libpath 10209else 10210 if ${lt_cv_aix_libpath_+:} false; then : 10211 $as_echo_n "(cached) " >&6 10212else 10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10214/* end confdefs.h. */ 10215 10216int 10217main () 10218{ 10219 10220 ; 10221 return 0; 10222} 10223_ACEOF 10224if ac_fn_c_try_link "$LINENO"; then : 10225 10226 lt_aix_libpath_sed=' 10227 /Import File Strings/,/^$/ { 10228 /^0/ { 10229 s/^0 *\([^ ]*\) *$/\1/ 10230 p 10231 } 10232 }' 10233 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10234 # Check for a 64-bit object if we didn't find anything. 10235 if test -z "$lt_cv_aix_libpath_"; then 10236 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10237 fi 10238fi 10239rm -f core conftest.err conftest.$ac_objext \ 10240 conftest$ac_exeext conftest.$ac_ext 10241 if test -z "$lt_cv_aix_libpath_"; then 10242 lt_cv_aix_libpath_=/usr/lib:/lib 10243 fi 10244 10245fi 10246 10247 aix_libpath=$lt_cv_aix_libpath_ 10248fi 10249 10250 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10251 # Warning - without using the other run time loading flags, 10252 # -berok will link without error, but may produce a broken library. 10253 no_undefined_flag=' $wl-bernotok' 10254 allow_undefined_flag=' $wl-berok' 10255 if test yes = "$with_gnu_ld"; then 10256 # We only use this code for GNU lds that support --whole-archive. 10257 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10258 else 10259 # Exported symbols can be pulled into shared objects from archives 10260 whole_archive_flag_spec='$convenience' 10261 fi 10262 archive_cmds_need_lc=yes 10263 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10264 # -brtl affects multiple linker settings, -berok does not and is overridden later 10265 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10266 if test svr4 != "$with_aix_soname"; then 10267 # This is similar to how AIX traditionally builds its shared libraries. 10268 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' 10269 fi 10270 if test aix != "$with_aix_soname"; then 10271 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' 10272 else 10273 # used by -dlpreopen to get the symbols 10274 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10275 fi 10276 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10277 fi 10278 fi 10279 ;; 10280 10281 amigaos*) 10282 case $host_cpu in 10283 powerpc) 10284 # see comment about AmigaOS4 .so support 10285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10286 archive_expsym_cmds='' 10287 ;; 10288 m68k) 10289 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)' 10290 hardcode_libdir_flag_spec='-L$libdir' 10291 hardcode_minus_L=yes 10292 ;; 10293 esac 10294 ;; 10295 10296 bsdi[45]*) 10297 export_dynamic_flag_spec=-rdynamic 10298 ;; 10299 10300 cygwin* | mingw* | pw32* | cegcc*) 10301 # When not using gcc, we currently assume that we are using 10302 # Microsoft Visual C++. 10303 # hardcode_libdir_flag_spec is actually meaningless, as there is 10304 # no search path for DLLs. 10305 case $cc_basename in 10306 cl*) 10307 # Native MSVC 10308 hardcode_libdir_flag_spec=' ' 10309 allow_undefined_flag=unsupported 10310 always_export_symbols=yes 10311 file_list_spec='@' 10312 # Tell ltmain to make .lib files, not .a files. 10313 libext=lib 10314 # Tell ltmain to make .dll files, not .so files. 10315 shrext_cmds=.dll 10316 # FIXME: Setting linknames here is a bad hack. 10317 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10318 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10319 cp "$export_symbols" "$output_objdir/$soname.def"; 10320 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10321 else 10322 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10323 fi~ 10324 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10325 linknames=' 10326 # The linker will not automatically build a static lib if we build a DLL. 10327 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10328 enable_shared_with_static_runtimes=yes 10329 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10330 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10331 # Don't use ranlib 10332 old_postinstall_cmds='chmod 644 $oldlib' 10333 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10334 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10335 case $lt_outputfile in 10336 *.exe|*.EXE) ;; 10337 *) 10338 lt_outputfile=$lt_outputfile.exe 10339 lt_tool_outputfile=$lt_tool_outputfile.exe 10340 ;; 10341 esac~ 10342 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10343 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10344 $RM "$lt_outputfile.manifest"; 10345 fi' 10346 ;; 10347 *) 10348 # Assume MSVC wrapper 10349 hardcode_libdir_flag_spec=' ' 10350 allow_undefined_flag=unsupported 10351 # Tell ltmain to make .lib files, not .a files. 10352 libext=lib 10353 # Tell ltmain to make .dll files, not .so files. 10354 shrext_cmds=.dll 10355 # FIXME: Setting linknames here is a bad hack. 10356 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10357 # The linker will automatically build a .lib file if we build a DLL. 10358 old_archive_from_new_cmds='true' 10359 # FIXME: Should let the user specify the lib program. 10360 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10361 enable_shared_with_static_runtimes=yes 10362 ;; 10363 esac 10364 ;; 10365 10366 darwin* | rhapsody*) 10367 10368 10369 archive_cmds_need_lc=no 10370 hardcode_direct=no 10371 hardcode_automatic=yes 10372 hardcode_shlibpath_var=unsupported 10373 if test yes = "$lt_cv_ld_force_load"; then 10374 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\"`' 10375 10376 else 10377 whole_archive_flag_spec='' 10378 fi 10379 link_all_deplibs=yes 10380 allow_undefined_flag=$_lt_dar_allow_undefined 10381 case $cc_basename in 10382 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10383 *) _lt_dar_can_shared=$GCC ;; 10384 esac 10385 if test yes = "$_lt_dar_can_shared"; then 10386 output_verbose_link_cmd=func_echo_all 10387 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10388 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10389 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" 10390 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" 10391 10392 else 10393 ld_shlibs=no 10394 fi 10395 10396 ;; 10397 10398 dgux*) 10399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10400 hardcode_libdir_flag_spec='-L$libdir' 10401 hardcode_shlibpath_var=no 10402 ;; 10403 10404 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10405 # support. Future versions do this automatically, but an explicit c++rt0.o 10406 # does not break anything, and helps significantly (at the cost of a little 10407 # extra space). 10408 freebsd2.2*) 10409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10410 hardcode_libdir_flag_spec='-R$libdir' 10411 hardcode_direct=yes 10412 hardcode_shlibpath_var=no 10413 ;; 10414 10415 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10416 freebsd2.*) 10417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10418 hardcode_direct=yes 10419 hardcode_minus_L=yes 10420 hardcode_shlibpath_var=no 10421 ;; 10422 10423 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10424 freebsd* | dragonfly*) 10425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10426 hardcode_libdir_flag_spec='-R$libdir' 10427 hardcode_direct=yes 10428 hardcode_shlibpath_var=no 10429 ;; 10430 10431 hpux9*) 10432 if test yes = "$GCC"; then 10433 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' 10434 else 10435 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' 10436 fi 10437 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10438 hardcode_libdir_separator=: 10439 hardcode_direct=yes 10440 10441 # hardcode_minus_L: Not really in the search PATH, 10442 # but as the default location of the library. 10443 hardcode_minus_L=yes 10444 export_dynamic_flag_spec='$wl-E' 10445 ;; 10446 10447 hpux10*) 10448 if test yes,no = "$GCC,$with_gnu_ld"; then 10449 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10450 else 10451 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10452 fi 10453 if test no = "$with_gnu_ld"; then 10454 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10455 hardcode_libdir_separator=: 10456 hardcode_direct=yes 10457 hardcode_direct_absolute=yes 10458 export_dynamic_flag_spec='$wl-E' 10459 # hardcode_minus_L: Not really in the search PATH, 10460 # but as the default location of the library. 10461 hardcode_minus_L=yes 10462 fi 10463 ;; 10464 10465 hpux11*) 10466 if test yes,no = "$GCC,$with_gnu_ld"; then 10467 case $host_cpu in 10468 hppa*64*) 10469 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10470 ;; 10471 ia64*) 10472 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10473 ;; 10474 *) 10475 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10476 ;; 10477 esac 10478 else 10479 case $host_cpu in 10480 hppa*64*) 10481 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10482 ;; 10483 ia64*) 10484 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10485 ;; 10486 *) 10487 10488 # Older versions of the 11.00 compiler do not understand -b yet 10489 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10491$as_echo_n "checking if $CC understands -b... " >&6; } 10492if ${lt_cv_prog_compiler__b+:} false; then : 10493 $as_echo_n "(cached) " >&6 10494else 10495 lt_cv_prog_compiler__b=no 10496 save_LDFLAGS=$LDFLAGS 10497 LDFLAGS="$LDFLAGS -b" 10498 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10500 # The linker can only warn and ignore the option if not recognized 10501 # So say no if there are warnings 10502 if test -s conftest.err; then 10503 # Append any errors to the config.log. 10504 cat conftest.err 1>&5 10505 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10507 if diff conftest.exp conftest.er2 >/dev/null; then 10508 lt_cv_prog_compiler__b=yes 10509 fi 10510 else 10511 lt_cv_prog_compiler__b=yes 10512 fi 10513 fi 10514 $RM -r conftest* 10515 LDFLAGS=$save_LDFLAGS 10516 10517fi 10518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10519$as_echo "$lt_cv_prog_compiler__b" >&6; } 10520 10521if test yes = "$lt_cv_prog_compiler__b"; then 10522 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10523else 10524 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10525fi 10526 10527 ;; 10528 esac 10529 fi 10530 if test no = "$with_gnu_ld"; then 10531 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10532 hardcode_libdir_separator=: 10533 10534 case $host_cpu in 10535 hppa*64*|ia64*) 10536 hardcode_direct=no 10537 hardcode_shlibpath_var=no 10538 ;; 10539 *) 10540 hardcode_direct=yes 10541 hardcode_direct_absolute=yes 10542 export_dynamic_flag_spec='$wl-E' 10543 10544 # hardcode_minus_L: Not really in the search PATH, 10545 # but as the default location of the library. 10546 hardcode_minus_L=yes 10547 ;; 10548 esac 10549 fi 10550 ;; 10551 10552 irix5* | irix6* | nonstopux*) 10553 if test yes = "$GCC"; then 10554 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' 10555 # Try to use the -exported_symbol ld option, if it does not 10556 # work, assume that -exports_file does not work either and 10557 # implicitly export all symbols. 10558 # This should be the same for all languages, so no per-tag cache variable. 10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10560$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10561if ${lt_cv_irix_exported_symbol+:} false; then : 10562 $as_echo_n "(cached) " >&6 10563else 10564 save_LDFLAGS=$LDFLAGS 10565 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10567/* end confdefs.h. */ 10568int foo (void) { return 0; } 10569_ACEOF 10570if ac_fn_c_try_link "$LINENO"; then : 10571 lt_cv_irix_exported_symbol=yes 10572else 10573 lt_cv_irix_exported_symbol=no 10574fi 10575rm -f core conftest.err conftest.$ac_objext \ 10576 conftest$ac_exeext conftest.$ac_ext 10577 LDFLAGS=$save_LDFLAGS 10578fi 10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10580$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10581 if test yes = "$lt_cv_irix_exported_symbol"; then 10582 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' 10583 fi 10584 link_all_deplibs=no 10585 else 10586 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' 10587 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' 10588 fi 10589 archive_cmds_need_lc='no' 10590 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10591 hardcode_libdir_separator=: 10592 inherit_rpath=yes 10593 link_all_deplibs=yes 10594 ;; 10595 10596 linux*) 10597 case $cc_basename in 10598 tcc*) 10599 # Fabrice Bellard et al's Tiny C Compiler 10600 ld_shlibs=yes 10601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10602 ;; 10603 esac 10604 ;; 10605 10606 netbsd* | netbsdelf*-gnu) 10607 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10609 else 10610 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10611 fi 10612 hardcode_libdir_flag_spec='-R$libdir' 10613 hardcode_direct=yes 10614 hardcode_shlibpath_var=no 10615 ;; 10616 10617 newsos6) 10618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10619 hardcode_direct=yes 10620 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10621 hardcode_libdir_separator=: 10622 hardcode_shlibpath_var=no 10623 ;; 10624 10625 *nto* | *qnx*) 10626 ;; 10627 10628 openbsd* | bitrig*) 10629 if test -f /usr/libexec/ld.so; then 10630 hardcode_direct=yes 10631 hardcode_shlibpath_var=no 10632 hardcode_direct_absolute=yes 10633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10635 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10636 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10637 export_dynamic_flag_spec='$wl-E' 10638 else 10639 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10640 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10641 fi 10642 else 10643 ld_shlibs=no 10644 fi 10645 ;; 10646 10647 os2*) 10648 hardcode_libdir_flag_spec='-L$libdir' 10649 hardcode_minus_L=yes 10650 allow_undefined_flag=unsupported 10651 shrext_cmds=.dll 10652 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10653 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10654 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10655 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10656 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10657 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10658 emximp -o $lib $output_objdir/$libname.def' 10659 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10660 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10661 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10662 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10663 prefix_cmds="$SED"~ 10664 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10665 prefix_cmds="$prefix_cmds -e 1d"; 10666 fi~ 10667 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10668 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10669 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10670 emximp -o $lib $output_objdir/$libname.def' 10671 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10672 enable_shared_with_static_runtimes=yes 10673 ;; 10674 10675 osf3*) 10676 if test yes = "$GCC"; then 10677 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10678 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' 10679 else 10680 allow_undefined_flag=' -expect_unresolved \*' 10681 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' 10682 fi 10683 archive_cmds_need_lc='no' 10684 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10685 hardcode_libdir_separator=: 10686 ;; 10687 10688 osf4* | osf5*) # as osf3* with the addition of -msym flag 10689 if test yes = "$GCC"; then 10690 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10691 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' 10692 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10693 else 10694 allow_undefined_flag=' -expect_unresolved \*' 10695 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' 10696 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~ 10697 $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' 10698 10699 # Both c and cxx compiler support -rpath directly 10700 hardcode_libdir_flag_spec='-rpath $libdir' 10701 fi 10702 archive_cmds_need_lc='no' 10703 hardcode_libdir_separator=: 10704 ;; 10705 10706 solaris*) 10707 no_undefined_flag=' -z defs' 10708 if test yes = "$GCC"; then 10709 wlarc='$wl' 10710 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10711 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10712 $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' 10713 else 10714 case `$CC -V 2>&1` in 10715 *"Compilers 5.0"*) 10716 wlarc='' 10717 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10718 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10719 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10720 ;; 10721 *) 10722 wlarc='$wl' 10723 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10724 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10725 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10726 ;; 10727 esac 10728 fi 10729 hardcode_libdir_flag_spec='-R$libdir' 10730 hardcode_shlibpath_var=no 10731 case $host_os in 10732 solaris2.[0-5] | solaris2.[0-5].*) ;; 10733 *) 10734 # The compiler driver will combine and reorder linker options, 10735 # but understands '-z linker_flag'. GCC discards it without '$wl', 10736 # but is careful enough not to reorder. 10737 # Supported since Solaris 2.6 (maybe 2.5.1?) 10738 if test yes = "$GCC"; then 10739 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10740 else 10741 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10742 fi 10743 ;; 10744 esac 10745 link_all_deplibs=yes 10746 ;; 10747 10748 sunos4*) 10749 if test sequent = "$host_vendor"; then 10750 # Use $CC to link under sequent, because it throws in some extra .o 10751 # files that make .init and .fini sections work. 10752 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10753 else 10754 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10755 fi 10756 hardcode_libdir_flag_spec='-L$libdir' 10757 hardcode_direct=yes 10758 hardcode_minus_L=yes 10759 hardcode_shlibpath_var=no 10760 ;; 10761 10762 sysv4) 10763 case $host_vendor in 10764 sni) 10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10766 hardcode_direct=yes # is this really true??? 10767 ;; 10768 siemens) 10769 ## LD is ld it makes a PLAMLIB 10770 ## CC just makes a GrossModule. 10771 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10772 reload_cmds='$CC -r -o $output$reload_objs' 10773 hardcode_direct=no 10774 ;; 10775 motorola) 10776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10777 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10778 ;; 10779 esac 10780 runpath_var='LD_RUN_PATH' 10781 hardcode_shlibpath_var=no 10782 ;; 10783 10784 sysv4.3*) 10785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10786 hardcode_shlibpath_var=no 10787 export_dynamic_flag_spec='-Bexport' 10788 ;; 10789 10790 sysv4*MP*) 10791 if test -d /usr/nec; then 10792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10793 hardcode_shlibpath_var=no 10794 runpath_var=LD_RUN_PATH 10795 hardcode_runpath_var=yes 10796 ld_shlibs=yes 10797 fi 10798 ;; 10799 10800 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10801 no_undefined_flag='$wl-z,text' 10802 archive_cmds_need_lc=no 10803 hardcode_shlibpath_var=no 10804 runpath_var='LD_RUN_PATH' 10805 10806 if test yes = "$GCC"; then 10807 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10808 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10809 else 10810 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10811 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10812 fi 10813 ;; 10814 10815 sysv5* | sco3.2v5* | sco5v6*) 10816 # Note: We CANNOT use -z defs as we might desire, because we do not 10817 # link with -lc, and that would cause any symbols used from libc to 10818 # always be unresolved, which means just about no library would 10819 # ever link correctly. If we're not using GNU ld we use -z text 10820 # though, which does catch some bad symbols but isn't as heavy-handed 10821 # as -z defs. 10822 no_undefined_flag='$wl-z,text' 10823 allow_undefined_flag='$wl-z,nodefs' 10824 archive_cmds_need_lc=no 10825 hardcode_shlibpath_var=no 10826 hardcode_libdir_flag_spec='$wl-R,$libdir' 10827 hardcode_libdir_separator=':' 10828 link_all_deplibs=yes 10829 export_dynamic_flag_spec='$wl-Bexport' 10830 runpath_var='LD_RUN_PATH' 10831 10832 if test yes = "$GCC"; then 10833 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10834 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10835 else 10836 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10837 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10838 fi 10839 ;; 10840 10841 uts4*) 10842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10843 hardcode_libdir_flag_spec='-L$libdir' 10844 hardcode_shlibpath_var=no 10845 ;; 10846 10847 *) 10848 ld_shlibs=no 10849 ;; 10850 esac 10851 10852 if test sni = "$host_vendor"; then 10853 case $host in 10854 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10855 export_dynamic_flag_spec='$wl-Blargedynsym' 10856 ;; 10857 esac 10858 fi 10859 fi 10860 10861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10862$as_echo "$ld_shlibs" >&6; } 10863test no = "$ld_shlibs" && can_build_shared=no 10864 10865with_gnu_ld=$with_gnu_ld 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881# 10882# Do we need to explicitly link libc? 10883# 10884case "x$archive_cmds_need_lc" in 10885x|xyes) 10886 # Assume -lc should be added 10887 archive_cmds_need_lc=yes 10888 10889 if test yes,yes = "$GCC,$enable_shared"; then 10890 case $archive_cmds in 10891 *'~'*) 10892 # FIXME: we may have to deal with multi-command sequences. 10893 ;; 10894 '$CC '*) 10895 # Test whether the compiler implicitly links with -lc since on some 10896 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10897 # to ld, don't add -lc before -lgcc. 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10899$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10900if ${lt_cv_archive_cmds_need_lc+:} false; then : 10901 $as_echo_n "(cached) " >&6 10902else 10903 $RM conftest* 10904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10905 10906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10907 (eval $ac_compile) 2>&5 10908 ac_status=$? 10909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10910 test $ac_status = 0; } 2>conftest.err; then 10911 soname=conftest 10912 lib=conftest 10913 libobjs=conftest.$ac_objext 10914 deplibs= 10915 wl=$lt_prog_compiler_wl 10916 pic_flag=$lt_prog_compiler_pic 10917 compiler_flags=-v 10918 linker_flags=-v 10919 verstring= 10920 output_objdir=. 10921 libname=conftest 10922 lt_save_allow_undefined_flag=$allow_undefined_flag 10923 allow_undefined_flag= 10924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10925 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10926 ac_status=$? 10927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10928 test $ac_status = 0; } 10929 then 10930 lt_cv_archive_cmds_need_lc=no 10931 else 10932 lt_cv_archive_cmds_need_lc=yes 10933 fi 10934 allow_undefined_flag=$lt_save_allow_undefined_flag 10935 else 10936 cat conftest.err 1>&5 10937 fi 10938 $RM conftest* 10939 10940fi 10941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10942$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10943 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10944 ;; 10945 esac 10946 fi 10947 ;; 10948esac 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11102$as_echo_n "checking dynamic linker characteristics... " >&6; } 11103 11104if test yes = "$GCC"; then 11105 case $host_os in 11106 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11107 *) lt_awk_arg='/^libraries:/' ;; 11108 esac 11109 case $host_os in 11110 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11111 *) lt_sed_strip_eq='s|=/|/|g' ;; 11112 esac 11113 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11114 case $lt_search_path_spec in 11115 *\;*) 11116 # if the path contains ";" then we assume it to be the separator 11117 # otherwise default to the standard path separator (i.e. ":") - it is 11118 # assumed that no part of a normal pathname contains ";" but that should 11119 # okay in the real world where ";" in dirpaths is itself problematic. 11120 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11121 ;; 11122 *) 11123 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11124 ;; 11125 esac 11126 # Ok, now we have the path, separated by spaces, we can step through it 11127 # and add multilib dir if necessary... 11128 lt_tmp_lt_search_path_spec= 11129 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11130 # ...but if some path component already ends with the multilib dir we assume 11131 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11132 case "$lt_multi_os_dir; $lt_search_path_spec " in 11133 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11134 lt_multi_os_dir= 11135 ;; 11136 esac 11137 for lt_sys_path in $lt_search_path_spec; do 11138 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11139 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11140 elif test -n "$lt_multi_os_dir"; then 11141 test -d "$lt_sys_path" && \ 11142 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11143 fi 11144 done 11145 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11146BEGIN {RS = " "; FS = "/|\n";} { 11147 lt_foo = ""; 11148 lt_count = 0; 11149 for (lt_i = NF; lt_i > 0; lt_i--) { 11150 if ($lt_i != "" && $lt_i != ".") { 11151 if ($lt_i == "..") { 11152 lt_count++; 11153 } else { 11154 if (lt_count == 0) { 11155 lt_foo = "/" $lt_i lt_foo; 11156 } else { 11157 lt_count--; 11158 } 11159 } 11160 } 11161 } 11162 if (lt_foo != "") { lt_freq[lt_foo]++; } 11163 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11164}'` 11165 # AWK program above erroneously prepends '/' to C:/dos/paths 11166 # for these hosts. 11167 case $host_os in 11168 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11169 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11170 esac 11171 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11172else 11173 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11174fi 11175library_names_spec= 11176libname_spec='lib$name' 11177soname_spec= 11178shrext_cmds=.so 11179postinstall_cmds= 11180postuninstall_cmds= 11181finish_cmds= 11182finish_eval= 11183shlibpath_var= 11184shlibpath_overrides_runpath=unknown 11185version_type=none 11186dynamic_linker="$host_os ld.so" 11187sys_lib_dlsearch_path_spec="/lib /usr/lib" 11188need_lib_prefix=unknown 11189hardcode_into_libs=no 11190 11191# when you set need_version to no, make sure it does not cause -set_version 11192# flags to be left without arguments 11193need_version=unknown 11194 11195 11196 11197case $host_os in 11198aix3*) 11199 version_type=linux # correct to gnu/linux during the next big refactor 11200 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11201 shlibpath_var=LIBPATH 11202 11203 # AIX 3 has no versioning support, so we append a major version to the name. 11204 soname_spec='$libname$release$shared_ext$major' 11205 ;; 11206 11207aix[4-9]*) 11208 version_type=linux # correct to gnu/linux during the next big refactor 11209 need_lib_prefix=no 11210 need_version=no 11211 hardcode_into_libs=yes 11212 if test ia64 = "$host_cpu"; then 11213 # AIX 5 supports IA64 11214 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11215 shlibpath_var=LD_LIBRARY_PATH 11216 else 11217 # With GCC up to 2.95.x, collect2 would create an import file 11218 # for dependence libraries. The import file would start with 11219 # the line '#! .'. This would cause the generated library to 11220 # depend on '.', always an invalid library. This was fixed in 11221 # development snapshots of GCC prior to 3.0. 11222 case $host_os in 11223 aix4 | aix4.[01] | aix4.[01].*) 11224 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11225 echo ' yes ' 11226 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11227 : 11228 else 11229 can_build_shared=no 11230 fi 11231 ;; 11232 esac 11233 # Using Import Files as archive members, it is possible to support 11234 # filename-based versioning of shared library archives on AIX. While 11235 # this would work for both with and without runtime linking, it will 11236 # prevent static linking of such archives. So we do filename-based 11237 # shared library versioning with .so extension only, which is used 11238 # when both runtime linking and shared linking is enabled. 11239 # Unfortunately, runtime linking may impact performance, so we do 11240 # not want this to be the default eventually. Also, we use the 11241 # versioned .so libs for executables only if there is the -brtl 11242 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11243 # To allow for filename-based versioning support, we need to create 11244 # libNAME.so.V as an archive file, containing: 11245 # *) an Import File, referring to the versioned filename of the 11246 # archive as well as the shared archive member, telling the 11247 # bitwidth (32 or 64) of that shared object, and providing the 11248 # list of exported symbols of that shared object, eventually 11249 # decorated with the 'weak' keyword 11250 # *) the shared object with the F_LOADONLY flag set, to really avoid 11251 # it being seen by the linker. 11252 # At run time we better use the real file rather than another symlink, 11253 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11254 11255 case $with_aix_soname,$aix_use_runtimelinking in 11256 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11257 # soname into executable. Probably we can add versioning support to 11258 # collect2, so additional links can be useful in future. 11259 aix,yes) # traditional libtool 11260 dynamic_linker='AIX unversionable lib.so' 11261 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11262 # instead of lib<name>.a to let people know that these are not 11263 # typical AIX shared libraries. 11264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11265 ;; 11266 aix,no) # traditional AIX only 11267 dynamic_linker='AIX lib.a(lib.so.V)' 11268 # We preserve .a as extension for shared libraries through AIX4.2 11269 # and later when we are not doing run time linking. 11270 library_names_spec='$libname$release.a $libname.a' 11271 soname_spec='$libname$release$shared_ext$major' 11272 ;; 11273 svr4,*) # full svr4 only 11274 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11275 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11276 # We do not specify a path in Import Files, so LIBPATH fires. 11277 shlibpath_overrides_runpath=yes 11278 ;; 11279 *,yes) # both, prefer svr4 11280 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11281 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11282 # unpreferred sharedlib libNAME.a needs extra handling 11283 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"' 11284 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"' 11285 # We do not specify a path in Import Files, so LIBPATH fires. 11286 shlibpath_overrides_runpath=yes 11287 ;; 11288 *,no) # both, prefer aix 11289 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11290 library_names_spec='$libname$release.a $libname.a' 11291 soname_spec='$libname$release$shared_ext$major' 11292 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11293 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)' 11294 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"' 11295 ;; 11296 esac 11297 shlibpath_var=LIBPATH 11298 fi 11299 ;; 11300 11301amigaos*) 11302 case $host_cpu in 11303 powerpc) 11304 # Since July 2007 AmigaOS4 officially supports .so libraries. 11305 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11307 ;; 11308 m68k) 11309 library_names_spec='$libname.ixlibrary $libname.a' 11310 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11311 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' 11312 ;; 11313 esac 11314 ;; 11315 11316beos*) 11317 library_names_spec='$libname$shared_ext' 11318 dynamic_linker="$host_os ld.so" 11319 shlibpath_var=LIBRARY_PATH 11320 ;; 11321 11322bsdi[45]*) 11323 version_type=linux # correct to gnu/linux during the next big refactor 11324 need_version=no 11325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11326 soname_spec='$libname$release$shared_ext$major' 11327 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11328 shlibpath_var=LD_LIBRARY_PATH 11329 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11330 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11331 # the default ld.so.conf also contains /usr/contrib/lib and 11332 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11333 # libtool to hard-code these into programs 11334 ;; 11335 11336cygwin* | mingw* | pw32* | cegcc*) 11337 version_type=windows 11338 shrext_cmds=.dll 11339 need_version=no 11340 need_lib_prefix=no 11341 11342 case $GCC,$cc_basename in 11343 yes,*) 11344 # gcc 11345 library_names_spec='$libname.dll.a' 11346 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11347 postinstall_cmds='base_file=`basename \$file`~ 11348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11349 dldir=$destdir/`dirname \$dlpath`~ 11350 test -d \$dldir || mkdir -p \$dldir~ 11351 $install_prog $dir/$dlname \$dldir/$dlname~ 11352 chmod a+x \$dldir/$dlname~ 11353 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11354 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11355 fi' 11356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11357 dlpath=$dir/\$dldll~ 11358 $RM \$dlpath' 11359 shlibpath_overrides_runpath=yes 11360 11361 case $host_os in 11362 cygwin*) 11363 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11364 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11365 11366 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11367 ;; 11368 mingw* | cegcc*) 11369 # MinGW DLLs use traditional 'lib' prefix 11370 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11371 ;; 11372 pw32*) 11373 # pw32 DLLs use 'pw' prefix rather than 'lib' 11374 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11375 ;; 11376 esac 11377 dynamic_linker='Win32 ld.exe' 11378 ;; 11379 11380 *,cl*) 11381 # Native MSVC 11382 libname_spec='$name' 11383 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11384 library_names_spec='$libname.dll.lib' 11385 11386 case $build_os in 11387 mingw*) 11388 sys_lib_search_path_spec= 11389 lt_save_ifs=$IFS 11390 IFS=';' 11391 for lt_path in $LIB 11392 do 11393 IFS=$lt_save_ifs 11394 # Let DOS variable expansion print the short 8.3 style file name. 11395 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11396 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11397 done 11398 IFS=$lt_save_ifs 11399 # Convert to MSYS style. 11400 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11401 ;; 11402 cygwin*) 11403 # Convert to unix form, then to dos form, then back to unix form 11404 # but this time dos style (no spaces!) so that the unix form looks 11405 # like /cygdrive/c/PROGRA~1:/cygdr... 11406 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11407 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11408 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11409 ;; 11410 *) 11411 sys_lib_search_path_spec=$LIB 11412 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11413 # It is most probably a Windows format PATH. 11414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11415 else 11416 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11417 fi 11418 # FIXME: find the short name or the path components, as spaces are 11419 # common. (e.g. "Program Files" -> "PROGRA~1") 11420 ;; 11421 esac 11422 11423 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11424 postinstall_cmds='base_file=`basename \$file`~ 11425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11426 dldir=$destdir/`dirname \$dlpath`~ 11427 test -d \$dldir || mkdir -p \$dldir~ 11428 $install_prog $dir/$dlname \$dldir/$dlname' 11429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11430 dlpath=$dir/\$dldll~ 11431 $RM \$dlpath' 11432 shlibpath_overrides_runpath=yes 11433 dynamic_linker='Win32 link.exe' 11434 ;; 11435 11436 *) 11437 # Assume MSVC wrapper 11438 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11439 dynamic_linker='Win32 ld.exe' 11440 ;; 11441 esac 11442 # FIXME: first we should search . and the directory the executable is in 11443 shlibpath_var=PATH 11444 ;; 11445 11446darwin* | rhapsody*) 11447 dynamic_linker="$host_os dyld" 11448 version_type=darwin 11449 need_lib_prefix=no 11450 need_version=no 11451 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11452 soname_spec='$libname$release$major$shared_ext' 11453 shlibpath_overrides_runpath=yes 11454 shlibpath_var=DYLD_LIBRARY_PATH 11455 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11456 11457 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11459 ;; 11460 11461dgux*) 11462 version_type=linux # correct to gnu/linux during the next big refactor 11463 need_lib_prefix=no 11464 need_version=no 11465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11466 soname_spec='$libname$release$shared_ext$major' 11467 shlibpath_var=LD_LIBRARY_PATH 11468 ;; 11469 11470freebsd* | dragonfly*) 11471 # DragonFly does not have aout. When/if they implement a new 11472 # versioning mechanism, adjust this. 11473 if test -x /usr/bin/objformat; then 11474 objformat=`/usr/bin/objformat` 11475 else 11476 case $host_os in 11477 freebsd[23].*) objformat=aout ;; 11478 *) objformat=elf ;; 11479 esac 11480 fi 11481 version_type=freebsd-$objformat 11482 case $version_type in 11483 freebsd-elf*) 11484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11485 soname_spec='$libname$release$shared_ext$major' 11486 need_version=no 11487 need_lib_prefix=no 11488 ;; 11489 freebsd-*) 11490 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11491 need_version=yes 11492 ;; 11493 esac 11494 shlibpath_var=LD_LIBRARY_PATH 11495 case $host_os in 11496 freebsd2.*) 11497 shlibpath_overrides_runpath=yes 11498 ;; 11499 freebsd3.[01]* | freebsdelf3.[01]*) 11500 shlibpath_overrides_runpath=yes 11501 hardcode_into_libs=yes 11502 ;; 11503 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11504 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11505 shlibpath_overrides_runpath=no 11506 hardcode_into_libs=yes 11507 ;; 11508 *) # from 4.6 on, and DragonFly 11509 shlibpath_overrides_runpath=yes 11510 hardcode_into_libs=yes 11511 ;; 11512 esac 11513 ;; 11514 11515haiku*) 11516 version_type=linux # correct to gnu/linux during the next big refactor 11517 need_lib_prefix=no 11518 need_version=no 11519 dynamic_linker="$host_os runtime_loader" 11520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11521 soname_spec='$libname$release$shared_ext$major' 11522 shlibpath_var=LIBRARY_PATH 11523 shlibpath_overrides_runpath=no 11524 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11525 hardcode_into_libs=yes 11526 ;; 11527 11528hpux9* | hpux10* | hpux11*) 11529 # Give a soname corresponding to the major version so that dld.sl refuses to 11530 # link against other versions. 11531 version_type=sunos 11532 need_lib_prefix=no 11533 need_version=no 11534 case $host_cpu in 11535 ia64*) 11536 shrext_cmds='.so' 11537 hardcode_into_libs=yes 11538 dynamic_linker="$host_os dld.so" 11539 shlibpath_var=LD_LIBRARY_PATH 11540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11542 soname_spec='$libname$release$shared_ext$major' 11543 if test 32 = "$HPUX_IA64_MODE"; then 11544 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11545 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11546 else 11547 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11548 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11549 fi 11550 ;; 11551 hppa*64*) 11552 shrext_cmds='.sl' 11553 hardcode_into_libs=yes 11554 dynamic_linker="$host_os dld.sl" 11555 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11558 soname_spec='$libname$release$shared_ext$major' 11559 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11561 ;; 11562 *) 11563 shrext_cmds='.sl' 11564 dynamic_linker="$host_os dld.sl" 11565 shlibpath_var=SHLIB_PATH 11566 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11568 soname_spec='$libname$release$shared_ext$major' 11569 ;; 11570 esac 11571 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11572 postinstall_cmds='chmod 555 $lib' 11573 # or fails outright, so override atomically: 11574 install_override_mode=555 11575 ;; 11576 11577interix[3-9]*) 11578 version_type=linux # correct to gnu/linux during the next big refactor 11579 need_lib_prefix=no 11580 need_version=no 11581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11582 soname_spec='$libname$release$shared_ext$major' 11583 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11584 shlibpath_var=LD_LIBRARY_PATH 11585 shlibpath_overrides_runpath=no 11586 hardcode_into_libs=yes 11587 ;; 11588 11589irix5* | irix6* | nonstopux*) 11590 case $host_os in 11591 nonstopux*) version_type=nonstopux ;; 11592 *) 11593 if test yes = "$lt_cv_prog_gnu_ld"; then 11594 version_type=linux # correct to gnu/linux during the next big refactor 11595 else 11596 version_type=irix 11597 fi ;; 11598 esac 11599 need_lib_prefix=no 11600 need_version=no 11601 soname_spec='$libname$release$shared_ext$major' 11602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11603 case $host_os in 11604 irix5* | nonstopux*) 11605 libsuff= shlibsuff= 11606 ;; 11607 *) 11608 case $LD in # libtool.m4 will add one of these switches to LD 11609 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11610 libsuff= shlibsuff= libmagic=32-bit;; 11611 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11612 libsuff=32 shlibsuff=N32 libmagic=N32;; 11613 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11614 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11615 *) libsuff= shlibsuff= libmagic=never-match;; 11616 esac 11617 ;; 11618 esac 11619 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11620 shlibpath_overrides_runpath=no 11621 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11622 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11623 hardcode_into_libs=yes 11624 ;; 11625 11626# No shared lib support for Linux oldld, aout, or coff. 11627linux*oldld* | linux*aout* | linux*coff*) 11628 dynamic_linker=no 11629 ;; 11630 11631linux*android*) 11632 version_type=none # Android doesn't support versioned libraries. 11633 need_lib_prefix=no 11634 need_version=no 11635 library_names_spec='$libname$release$shared_ext' 11636 soname_spec='$libname$release$shared_ext' 11637 finish_cmds= 11638 shlibpath_var=LD_LIBRARY_PATH 11639 shlibpath_overrides_runpath=yes 11640 11641 # This implies no fast_install, which is unacceptable. 11642 # Some rework will be needed to allow for fast_install 11643 # before this can be enabled. 11644 hardcode_into_libs=yes 11645 11646 dynamic_linker='Android linker' 11647 # Don't embed -rpath directories since the linker doesn't support them. 11648 hardcode_libdir_flag_spec='-L$libdir' 11649 ;; 11650 11651# This must be glibc/ELF. 11652linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11653 version_type=linux # correct to gnu/linux during the next big refactor 11654 need_lib_prefix=no 11655 need_version=no 11656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11657 soname_spec='$libname$release$shared_ext$major' 11658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11659 shlibpath_var=LD_LIBRARY_PATH 11660 shlibpath_overrides_runpath=no 11661 11662 # Some binutils ld are patched to set DT_RUNPATH 11663 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11664 $as_echo_n "(cached) " >&6 11665else 11666 lt_cv_shlibpath_overrides_runpath=no 11667 save_LDFLAGS=$LDFLAGS 11668 save_libdir=$libdir 11669 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11670 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11672/* end confdefs.h. */ 11673 11674int 11675main () 11676{ 11677 11678 ; 11679 return 0; 11680} 11681_ACEOF 11682if ac_fn_c_try_link "$LINENO"; then : 11683 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11684 lt_cv_shlibpath_overrides_runpath=yes 11685fi 11686fi 11687rm -f core conftest.err conftest.$ac_objext \ 11688 conftest$ac_exeext conftest.$ac_ext 11689 LDFLAGS=$save_LDFLAGS 11690 libdir=$save_libdir 11691 11692fi 11693 11694 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11695 11696 # This implies no fast_install, which is unacceptable. 11697 # Some rework will be needed to allow for fast_install 11698 # before this can be enabled. 11699 hardcode_into_libs=yes 11700 11701 # Ideally, we could use ldconfig to report *all* directores which are 11702 # searched for libraries, however this is still not possible. Aside from not 11703 # being certain /sbin/ldconfig is available, command 11704 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11705 # even though it is searched at run-time. Try to do the best guess by 11706 # appending ld.so.conf contents (and includes) to the search path. 11707 if test -f /etc/ld.so.conf; then 11708 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' ' '` 11709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11710 fi 11711 11712 # We used to test for /lib/ld.so.1 and disable shared libraries on 11713 # powerpc, because MkLinux only supported shared libraries with the 11714 # GNU dynamic linker. Since this was broken with cross compilers, 11715 # most powerpc-linux boxes support dynamic linking these days and 11716 # people can always --disable-shared, the test was removed, and we 11717 # assume the GNU/Linux dynamic linker is in use. 11718 dynamic_linker='GNU/Linux ld.so' 11719 ;; 11720 11721netbsdelf*-gnu) 11722 version_type=linux 11723 need_lib_prefix=no 11724 need_version=no 11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11726 soname_spec='${libname}${release}${shared_ext}$major' 11727 shlibpath_var=LD_LIBRARY_PATH 11728 shlibpath_overrides_runpath=no 11729 hardcode_into_libs=yes 11730 dynamic_linker='NetBSD ld.elf_so' 11731 ;; 11732 11733netbsd*) 11734 version_type=sunos 11735 need_lib_prefix=no 11736 need_version=no 11737 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11738 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11740 dynamic_linker='NetBSD (a.out) ld.so' 11741 else 11742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11743 soname_spec='$libname$release$shared_ext$major' 11744 dynamic_linker='NetBSD ld.elf_so' 11745 fi 11746 shlibpath_var=LD_LIBRARY_PATH 11747 shlibpath_overrides_runpath=yes 11748 hardcode_into_libs=yes 11749 ;; 11750 11751newsos6) 11752 version_type=linux # correct to gnu/linux during the next big refactor 11753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11754 shlibpath_var=LD_LIBRARY_PATH 11755 shlibpath_overrides_runpath=yes 11756 ;; 11757 11758*nto* | *qnx*) 11759 version_type=qnx 11760 need_lib_prefix=no 11761 need_version=no 11762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11763 soname_spec='$libname$release$shared_ext$major' 11764 shlibpath_var=LD_LIBRARY_PATH 11765 shlibpath_overrides_runpath=no 11766 hardcode_into_libs=yes 11767 dynamic_linker='ldqnx.so' 11768 ;; 11769 11770openbsd* | bitrig*) 11771 version_type=sunos 11772 sys_lib_dlsearch_path_spec=/usr/lib 11773 need_lib_prefix=no 11774 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11775 need_version=no 11776 else 11777 need_version=yes 11778 fi 11779 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11781 shlibpath_var=LD_LIBRARY_PATH 11782 shlibpath_overrides_runpath=yes 11783 ;; 11784 11785os2*) 11786 libname_spec='$name' 11787 version_type=windows 11788 shrext_cmds=.dll 11789 need_version=no 11790 need_lib_prefix=no 11791 # OS/2 can only load a DLL with a base name of 8 characters or less. 11792 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11793 v=$($ECHO $release$versuffix | tr -d .-); 11794 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11795 $ECHO $n$v`$shared_ext' 11796 library_names_spec='${libname}_dll.$libext' 11797 dynamic_linker='OS/2 ld.exe' 11798 shlibpath_var=BEGINLIBPATH 11799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11801 postinstall_cmds='base_file=`basename \$file`~ 11802 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11803 dldir=$destdir/`dirname \$dlpath`~ 11804 test -d \$dldir || mkdir -p \$dldir~ 11805 $install_prog $dir/$dlname \$dldir/$dlname~ 11806 chmod a+x \$dldir/$dlname~ 11807 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11808 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11809 fi' 11810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11811 dlpath=$dir/\$dldll~ 11812 $RM \$dlpath' 11813 ;; 11814 11815osf3* | osf4* | osf5*) 11816 version_type=osf 11817 need_lib_prefix=no 11818 need_version=no 11819 soname_spec='$libname$release$shared_ext$major' 11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11821 shlibpath_var=LD_LIBRARY_PATH 11822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11824 ;; 11825 11826rdos*) 11827 dynamic_linker=no 11828 ;; 11829 11830solaris*) 11831 version_type=linux # correct to gnu/linux during the next big refactor 11832 need_lib_prefix=no 11833 need_version=no 11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11835 soname_spec='$libname$release$shared_ext$major' 11836 shlibpath_var=LD_LIBRARY_PATH 11837 shlibpath_overrides_runpath=yes 11838 hardcode_into_libs=yes 11839 # ldd complains unless libraries are executable 11840 postinstall_cmds='chmod +x $lib' 11841 ;; 11842 11843sunos4*) 11844 version_type=sunos 11845 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11846 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11847 shlibpath_var=LD_LIBRARY_PATH 11848 shlibpath_overrides_runpath=yes 11849 if test yes = "$with_gnu_ld"; then 11850 need_lib_prefix=no 11851 fi 11852 need_version=yes 11853 ;; 11854 11855sysv4 | sysv4.3*) 11856 version_type=linux # correct to gnu/linux during the next big refactor 11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11858 soname_spec='$libname$release$shared_ext$major' 11859 shlibpath_var=LD_LIBRARY_PATH 11860 case $host_vendor in 11861 sni) 11862 shlibpath_overrides_runpath=no 11863 need_lib_prefix=no 11864 runpath_var=LD_RUN_PATH 11865 ;; 11866 siemens) 11867 need_lib_prefix=no 11868 ;; 11869 motorola) 11870 need_lib_prefix=no 11871 need_version=no 11872 shlibpath_overrides_runpath=no 11873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11874 ;; 11875 esac 11876 ;; 11877 11878sysv4*MP*) 11879 if test -d /usr/nec; then 11880 version_type=linux # correct to gnu/linux during the next big refactor 11881 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11882 soname_spec='$libname$shared_ext.$major' 11883 shlibpath_var=LD_LIBRARY_PATH 11884 fi 11885 ;; 11886 11887sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11888 version_type=sco 11889 need_lib_prefix=no 11890 need_version=no 11891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11892 soname_spec='$libname$release$shared_ext$major' 11893 shlibpath_var=LD_LIBRARY_PATH 11894 shlibpath_overrides_runpath=yes 11895 hardcode_into_libs=yes 11896 if test yes = "$with_gnu_ld"; then 11897 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11898 else 11899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11900 case $host_os in 11901 sco3.2v5*) 11902 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11903 ;; 11904 esac 11905 fi 11906 sys_lib_dlsearch_path_spec='/usr/lib' 11907 ;; 11908 11909tpf*) 11910 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11911 version_type=linux # correct to gnu/linux during the next big refactor 11912 need_lib_prefix=no 11913 need_version=no 11914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11915 shlibpath_var=LD_LIBRARY_PATH 11916 shlibpath_overrides_runpath=no 11917 hardcode_into_libs=yes 11918 ;; 11919 11920uts4*) 11921 version_type=linux # correct to gnu/linux during the next big refactor 11922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11923 soname_spec='$libname$release$shared_ext$major' 11924 shlibpath_var=LD_LIBRARY_PATH 11925 ;; 11926 11927*) 11928 dynamic_linker=no 11929 ;; 11930esac 11931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11932$as_echo "$dynamic_linker" >&6; } 11933test no = "$dynamic_linker" && can_build_shared=no 11934 11935variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11936if test yes = "$GCC"; then 11937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11938fi 11939 11940if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11941 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11942fi 11943 11944if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11945 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11946fi 11947 11948# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11949configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11950 11951# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11952func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11953 11954# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11955configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12054$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12055hardcode_action= 12056if test -n "$hardcode_libdir_flag_spec" || 12057 test -n "$runpath_var" || 12058 test yes = "$hardcode_automatic"; then 12059 12060 # We can hardcode non-existent directories. 12061 if test no != "$hardcode_direct" && 12062 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12063 # have to relink, otherwise we might link with an installed library 12064 # when we should be linking with a yet-to-be-installed one 12065 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12066 test no != "$hardcode_minus_L"; then 12067 # Linking always hardcodes the temporary library directory. 12068 hardcode_action=relink 12069 else 12070 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12071 hardcode_action=immediate 12072 fi 12073else 12074 # We cannot hardcode anything, or else we can only hardcode existing 12075 # directories. 12076 hardcode_action=unsupported 12077fi 12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12079$as_echo "$hardcode_action" >&6; } 12080 12081if test relink = "$hardcode_action" || 12082 test yes = "$inherit_rpath"; then 12083 # Fast installation is not supported 12084 enable_fast_install=no 12085elif test yes = "$shlibpath_overrides_runpath" || 12086 test no = "$enable_shared"; then 12087 # Fast installation is not necessary 12088 enable_fast_install=needless 12089fi 12090 12091 12092 12093 12094 12095 12096 if test yes != "$enable_dlopen"; then 12097 enable_dlopen=unknown 12098 enable_dlopen_self=unknown 12099 enable_dlopen_self_static=unknown 12100else 12101 lt_cv_dlopen=no 12102 lt_cv_dlopen_libs= 12103 12104 case $host_os in 12105 beos*) 12106 lt_cv_dlopen=load_add_on 12107 lt_cv_dlopen_libs= 12108 lt_cv_dlopen_self=yes 12109 ;; 12110 12111 mingw* | pw32* | cegcc*) 12112 lt_cv_dlopen=LoadLibrary 12113 lt_cv_dlopen_libs= 12114 ;; 12115 12116 cygwin*) 12117 lt_cv_dlopen=dlopen 12118 lt_cv_dlopen_libs= 12119 ;; 12120 12121 darwin*) 12122 # if libdl is installed we need to link against it 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12124$as_echo_n "checking for dlopen in -ldl... " >&6; } 12125if ${ac_cv_lib_dl_dlopen+:} false; then : 12126 $as_echo_n "(cached) " >&6 12127else 12128 ac_check_lib_save_LIBS=$LIBS 12129LIBS="-ldl $LIBS" 12130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12131/* end confdefs.h. */ 12132 12133/* Override any GCC internal prototype to avoid an error. 12134 Use char because int might match the return type of a GCC 12135 builtin and then its argument prototype would still apply. */ 12136#ifdef __cplusplus 12137extern "C" 12138#endif 12139char dlopen (); 12140int 12141main () 12142{ 12143return dlopen (); 12144 ; 12145 return 0; 12146} 12147_ACEOF 12148if ac_fn_c_try_link "$LINENO"; then : 12149 ac_cv_lib_dl_dlopen=yes 12150else 12151 ac_cv_lib_dl_dlopen=no 12152fi 12153rm -f core conftest.err conftest.$ac_objext \ 12154 conftest$ac_exeext conftest.$ac_ext 12155LIBS=$ac_check_lib_save_LIBS 12156fi 12157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12158$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12159if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12160 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12161else 12162 12163 lt_cv_dlopen=dyld 12164 lt_cv_dlopen_libs= 12165 lt_cv_dlopen_self=yes 12166 12167fi 12168 12169 ;; 12170 12171 tpf*) 12172 # Don't try to run any link tests for TPF. We know it's impossible 12173 # because TPF is a cross-compiler, and we know how we open DSOs. 12174 lt_cv_dlopen=dlopen 12175 lt_cv_dlopen_libs= 12176 lt_cv_dlopen_self=no 12177 ;; 12178 12179 *) 12180 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12181if test "x$ac_cv_func_shl_load" = xyes; then : 12182 lt_cv_dlopen=shl_load 12183else 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12185$as_echo_n "checking for shl_load in -ldld... " >&6; } 12186if ${ac_cv_lib_dld_shl_load+:} false; then : 12187 $as_echo_n "(cached) " >&6 12188else 12189 ac_check_lib_save_LIBS=$LIBS 12190LIBS="-ldld $LIBS" 12191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12192/* end confdefs.h. */ 12193 12194/* Override any GCC internal prototype to avoid an error. 12195 Use char because int might match the return type of a GCC 12196 builtin and then its argument prototype would still apply. */ 12197#ifdef __cplusplus 12198extern "C" 12199#endif 12200char shl_load (); 12201int 12202main () 12203{ 12204return shl_load (); 12205 ; 12206 return 0; 12207} 12208_ACEOF 12209if ac_fn_c_try_link "$LINENO"; then : 12210 ac_cv_lib_dld_shl_load=yes 12211else 12212 ac_cv_lib_dld_shl_load=no 12213fi 12214rm -f core conftest.err conftest.$ac_objext \ 12215 conftest$ac_exeext conftest.$ac_ext 12216LIBS=$ac_check_lib_save_LIBS 12217fi 12218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12219$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12220if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12221 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12222else 12223 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12224if test "x$ac_cv_func_dlopen" = xyes; then : 12225 lt_cv_dlopen=dlopen 12226else 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12228$as_echo_n "checking for dlopen in -ldl... " >&6; } 12229if ${ac_cv_lib_dl_dlopen+:} false; then : 12230 $as_echo_n "(cached) " >&6 12231else 12232 ac_check_lib_save_LIBS=$LIBS 12233LIBS="-ldl $LIBS" 12234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12235/* end confdefs.h. */ 12236 12237/* Override any GCC internal prototype to avoid an error. 12238 Use char because int might match the return type of a GCC 12239 builtin and then its argument prototype would still apply. */ 12240#ifdef __cplusplus 12241extern "C" 12242#endif 12243char dlopen (); 12244int 12245main () 12246{ 12247return dlopen (); 12248 ; 12249 return 0; 12250} 12251_ACEOF 12252if ac_fn_c_try_link "$LINENO"; then : 12253 ac_cv_lib_dl_dlopen=yes 12254else 12255 ac_cv_lib_dl_dlopen=no 12256fi 12257rm -f core conftest.err conftest.$ac_objext \ 12258 conftest$ac_exeext conftest.$ac_ext 12259LIBS=$ac_check_lib_save_LIBS 12260fi 12261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12262$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12263if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12264 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12265else 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12267$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12268if ${ac_cv_lib_svld_dlopen+:} false; then : 12269 $as_echo_n "(cached) " >&6 12270else 12271 ac_check_lib_save_LIBS=$LIBS 12272LIBS="-lsvld $LIBS" 12273cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12274/* end confdefs.h. */ 12275 12276/* Override any GCC internal prototype to avoid an error. 12277 Use char because int might match the return type of a GCC 12278 builtin and then its argument prototype would still apply. */ 12279#ifdef __cplusplus 12280extern "C" 12281#endif 12282char dlopen (); 12283int 12284main () 12285{ 12286return dlopen (); 12287 ; 12288 return 0; 12289} 12290_ACEOF 12291if ac_fn_c_try_link "$LINENO"; then : 12292 ac_cv_lib_svld_dlopen=yes 12293else 12294 ac_cv_lib_svld_dlopen=no 12295fi 12296rm -f core conftest.err conftest.$ac_objext \ 12297 conftest$ac_exeext conftest.$ac_ext 12298LIBS=$ac_check_lib_save_LIBS 12299fi 12300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12301$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12302if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12303 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12304else 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12306$as_echo_n "checking for dld_link in -ldld... " >&6; } 12307if ${ac_cv_lib_dld_dld_link+:} false; then : 12308 $as_echo_n "(cached) " >&6 12309else 12310 ac_check_lib_save_LIBS=$LIBS 12311LIBS="-ldld $LIBS" 12312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12313/* end confdefs.h. */ 12314 12315/* Override any GCC internal prototype to avoid an error. 12316 Use char because int might match the return type of a GCC 12317 builtin and then its argument prototype would still apply. */ 12318#ifdef __cplusplus 12319extern "C" 12320#endif 12321char dld_link (); 12322int 12323main () 12324{ 12325return dld_link (); 12326 ; 12327 return 0; 12328} 12329_ACEOF 12330if ac_fn_c_try_link "$LINENO"; then : 12331 ac_cv_lib_dld_dld_link=yes 12332else 12333 ac_cv_lib_dld_dld_link=no 12334fi 12335rm -f core conftest.err conftest.$ac_objext \ 12336 conftest$ac_exeext conftest.$ac_ext 12337LIBS=$ac_check_lib_save_LIBS 12338fi 12339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12340$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12341if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12342 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12343fi 12344 12345 12346fi 12347 12348 12349fi 12350 12351 12352fi 12353 12354 12355fi 12356 12357 12358fi 12359 12360 ;; 12361 esac 12362 12363 if test no = "$lt_cv_dlopen"; then 12364 enable_dlopen=no 12365 else 12366 enable_dlopen=yes 12367 fi 12368 12369 case $lt_cv_dlopen in 12370 dlopen) 12371 save_CPPFLAGS=$CPPFLAGS 12372 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12373 12374 save_LDFLAGS=$LDFLAGS 12375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12376 12377 save_LIBS=$LIBS 12378 LIBS="$lt_cv_dlopen_libs $LIBS" 12379 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12381$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12382if ${lt_cv_dlopen_self+:} false; then : 12383 $as_echo_n "(cached) " >&6 12384else 12385 if test yes = "$cross_compiling"; then : 12386 lt_cv_dlopen_self=cross 12387else 12388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12389 lt_status=$lt_dlunknown 12390 cat > conftest.$ac_ext <<_LT_EOF 12391#line $LINENO "configure" 12392#include "confdefs.h" 12393 12394#if HAVE_DLFCN_H 12395#include <dlfcn.h> 12396#endif 12397 12398#include <stdio.h> 12399 12400#ifdef RTLD_GLOBAL 12401# define LT_DLGLOBAL RTLD_GLOBAL 12402#else 12403# ifdef DL_GLOBAL 12404# define LT_DLGLOBAL DL_GLOBAL 12405# else 12406# define LT_DLGLOBAL 0 12407# endif 12408#endif 12409 12410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12411 find out it does not work in some platform. */ 12412#ifndef LT_DLLAZY_OR_NOW 12413# ifdef RTLD_LAZY 12414# define LT_DLLAZY_OR_NOW RTLD_LAZY 12415# else 12416# ifdef DL_LAZY 12417# define LT_DLLAZY_OR_NOW DL_LAZY 12418# else 12419# ifdef RTLD_NOW 12420# define LT_DLLAZY_OR_NOW RTLD_NOW 12421# else 12422# ifdef DL_NOW 12423# define LT_DLLAZY_OR_NOW DL_NOW 12424# else 12425# define LT_DLLAZY_OR_NOW 0 12426# endif 12427# endif 12428# endif 12429# endif 12430#endif 12431 12432/* When -fvisibility=hidden is used, assume the code has been annotated 12433 correspondingly for the symbols needed. */ 12434#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12435int fnord () __attribute__((visibility("default"))); 12436#endif 12437 12438int fnord () { return 42; } 12439int main () 12440{ 12441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12442 int status = $lt_dlunknown; 12443 12444 if (self) 12445 { 12446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12447 else 12448 { 12449 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12450 else puts (dlerror ()); 12451 } 12452 /* dlclose (self); */ 12453 } 12454 else 12455 puts (dlerror ()); 12456 12457 return status; 12458} 12459_LT_EOF 12460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12461 (eval $ac_link) 2>&5 12462 ac_status=$? 12463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12464 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12465 (./conftest; exit; ) >&5 2>/dev/null 12466 lt_status=$? 12467 case x$lt_status in 12468 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12469 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12470 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12471 esac 12472 else : 12473 # compilation failed 12474 lt_cv_dlopen_self=no 12475 fi 12476fi 12477rm -fr conftest* 12478 12479 12480fi 12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12482$as_echo "$lt_cv_dlopen_self" >&6; } 12483 12484 if test yes = "$lt_cv_dlopen_self"; then 12485 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12487$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12488if ${lt_cv_dlopen_self_static+:} false; then : 12489 $as_echo_n "(cached) " >&6 12490else 12491 if test yes = "$cross_compiling"; then : 12492 lt_cv_dlopen_self_static=cross 12493else 12494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12495 lt_status=$lt_dlunknown 12496 cat > conftest.$ac_ext <<_LT_EOF 12497#line $LINENO "configure" 12498#include "confdefs.h" 12499 12500#if HAVE_DLFCN_H 12501#include <dlfcn.h> 12502#endif 12503 12504#include <stdio.h> 12505 12506#ifdef RTLD_GLOBAL 12507# define LT_DLGLOBAL RTLD_GLOBAL 12508#else 12509# ifdef DL_GLOBAL 12510# define LT_DLGLOBAL DL_GLOBAL 12511# else 12512# define LT_DLGLOBAL 0 12513# endif 12514#endif 12515 12516/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12517 find out it does not work in some platform. */ 12518#ifndef LT_DLLAZY_OR_NOW 12519# ifdef RTLD_LAZY 12520# define LT_DLLAZY_OR_NOW RTLD_LAZY 12521# else 12522# ifdef DL_LAZY 12523# define LT_DLLAZY_OR_NOW DL_LAZY 12524# else 12525# ifdef RTLD_NOW 12526# define LT_DLLAZY_OR_NOW RTLD_NOW 12527# else 12528# ifdef DL_NOW 12529# define LT_DLLAZY_OR_NOW DL_NOW 12530# else 12531# define LT_DLLAZY_OR_NOW 0 12532# endif 12533# endif 12534# endif 12535# endif 12536#endif 12537 12538/* When -fvisibility=hidden is used, assume the code has been annotated 12539 correspondingly for the symbols needed. */ 12540#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12541int fnord () __attribute__((visibility("default"))); 12542#endif 12543 12544int fnord () { return 42; } 12545int main () 12546{ 12547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12548 int status = $lt_dlunknown; 12549 12550 if (self) 12551 { 12552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12553 else 12554 { 12555 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12556 else puts (dlerror ()); 12557 } 12558 /* dlclose (self); */ 12559 } 12560 else 12561 puts (dlerror ()); 12562 12563 return status; 12564} 12565_LT_EOF 12566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12567 (eval $ac_link) 2>&5 12568 ac_status=$? 12569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12570 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12571 (./conftest; exit; ) >&5 2>/dev/null 12572 lt_status=$? 12573 case x$lt_status in 12574 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12575 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12576 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12577 esac 12578 else : 12579 # compilation failed 12580 lt_cv_dlopen_self_static=no 12581 fi 12582fi 12583rm -fr conftest* 12584 12585 12586fi 12587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12588$as_echo "$lt_cv_dlopen_self_static" >&6; } 12589 fi 12590 12591 CPPFLAGS=$save_CPPFLAGS 12592 LDFLAGS=$save_LDFLAGS 12593 LIBS=$save_LIBS 12594 ;; 12595 esac 12596 12597 case $lt_cv_dlopen_self in 12598 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12599 *) enable_dlopen_self=unknown ;; 12600 esac 12601 12602 case $lt_cv_dlopen_self_static in 12603 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12604 *) enable_dlopen_self_static=unknown ;; 12605 esac 12606fi 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624striplib= 12625old_striplib= 12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12627$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12628if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12629 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12630 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12632$as_echo "yes" >&6; } 12633else 12634# FIXME - insert some real tests, host_os isn't really good enough 12635 case $host_os in 12636 darwin*) 12637 if test -n "$STRIP"; then 12638 striplib="$STRIP -x" 12639 old_striplib="$STRIP -S" 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12641$as_echo "yes" >&6; } 12642 else 12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12644$as_echo "no" >&6; } 12645 fi 12646 ;; 12647 *) 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12649$as_echo "no" >&6; } 12650 ;; 12651 esac 12652fi 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 # Report what library types will actually be built 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12667$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12669$as_echo "$can_build_shared" >&6; } 12670 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12672$as_echo_n "checking whether to build shared libraries... " >&6; } 12673 test no = "$can_build_shared" && enable_shared=no 12674 12675 # On AIX, shared libraries and static libraries use the same namespace, and 12676 # are all built from PIC. 12677 case $host_os in 12678 aix3*) 12679 test yes = "$enable_shared" && enable_static=no 12680 if test -n "$RANLIB"; then 12681 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12682 postinstall_cmds='$RANLIB $lib' 12683 fi 12684 ;; 12685 12686 aix[4-9]*) 12687 if test ia64 != "$host_cpu"; then 12688 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12689 yes,aix,yes) ;; # shared object as lib.so file only 12690 yes,svr4,*) ;; # shared object as lib.so archive member only 12691 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12692 esac 12693 fi 12694 ;; 12695 esac 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12697$as_echo "$enable_shared" >&6; } 12698 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12700$as_echo_n "checking whether to build static libraries... " >&6; } 12701 # Make sure either enable_shared or enable_static is yes. 12702 test yes = "$enable_shared" || enable_static=yes 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12704$as_echo "$enable_static" >&6; } 12705 12706 12707 12708 12709fi 12710ac_ext=c 12711ac_cpp='$CPP $CPPFLAGS' 12712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12714ac_compiler_gnu=$ac_cv_c_compiler_gnu 12715 12716CC=$lt_save_CC 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 ac_config_commands="$ac_config_commands libtool" 12733 12734 12735 12736 12737# Only expand once: 12738 12739 12740@%:@ Check whether --enable-silent-rules was given. 12741if test "${enable_silent_rules+set}" = set; then : 12742 enableval=$enable_silent_rules; 12743fi 12744 12745case $enable_silent_rules in @%:@ ((( 12746 yes) AM_DEFAULT_VERBOSITY=0;; 12747 no) AM_DEFAULT_VERBOSITY=1;; 12748 *) AM_DEFAULT_VERBOSITY=0;; 12749esac 12750am_make=${MAKE-make} 12751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 12752$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 12753if ${am_cv_make_support_nested_variables+:} false; then : 12754 $as_echo_n "(cached) " >&6 12755else 12756 if $as_echo 'TRUE=$(BAR$(V)) 12757BAR0=false 12758BAR1=true 12759V=1 12760am__doit: 12761 @$(TRUE) 12762.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 12763 am_cv_make_support_nested_variables=yes 12764else 12765 am_cv_make_support_nested_variables=no 12766fi 12767fi 12768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 12769$as_echo "$am_cv_make_support_nested_variables" >&6; } 12770if test $am_cv_make_support_nested_variables = yes; then 12771 AM_V='$(V)' 12772 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12773else 12774 AM_V=$AM_DEFAULT_VERBOSITY 12775 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12776fi 12777AM_BACKSLASH='\' 12778 12779 12780 12781 12782 12783 12784ac_ext=c 12785ac_cpp='$CPP $CPPFLAGS' 12786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12788ac_compiler_gnu=$ac_cv_c_compiler_gnu 12789 12790ax_pthread_ok=no 12791 12792# We used to check for pthread.h first, but this fails if pthread.h 12793# requires special compiler flags (e.g. on Tru64 or Sequent). 12794# It gets checked for in the link test anyway. 12795 12796# First of all, check if the user has set any of the PTHREAD_LIBS, 12797# etcetera environment variables, and if threads linking works using 12798# them: 12799if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 12800 ax_pthread_save_CC="$CC" 12801 ax_pthread_save_CFLAGS="$CFLAGS" 12802 ax_pthread_save_LIBS="$LIBS" 12803 if test "x$PTHREAD_CC" != "x"; then : 12804 CC="$PTHREAD_CC" 12805fi 12806 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 12807 LIBS="$PTHREAD_LIBS $LIBS" 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 12809$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12811/* end confdefs.h. */ 12812 12813/* Override any GCC internal prototype to avoid an error. 12814 Use char because int might match the return type of a GCC 12815 builtin and then its argument prototype would still apply. */ 12816#ifdef __cplusplus 12817extern "C" 12818#endif 12819char pthread_join (); 12820int 12821main () 12822{ 12823return pthread_join (); 12824 ; 12825 return 0; 12826} 12827_ACEOF 12828if ac_fn_c_try_link "$LINENO"; then : 12829 ax_pthread_ok=yes 12830fi 12831rm -f core conftest.err conftest.$ac_objext \ 12832 conftest$ac_exeext conftest.$ac_ext 12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 12834$as_echo "$ax_pthread_ok" >&6; } 12835 if test "x$ax_pthread_ok" = "xno"; then 12836 PTHREAD_LIBS="" 12837 PTHREAD_CFLAGS="" 12838 fi 12839 CC="$ax_pthread_save_CC" 12840 CFLAGS="$ax_pthread_save_CFLAGS" 12841 LIBS="$ax_pthread_save_LIBS" 12842fi 12843 12844# We must check for the threads library under a number of different 12845# names; the ordering is very important because some systems 12846# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 12847# libraries is broken (non-POSIX). 12848 12849# Create a list of thread flags to try. Items starting with a "-" are 12850# C compiler flags, and other items are library names, except for "none" 12851# which indicates that we try without any flags at all, and "pthread-config" 12852# which is a program returning the flags for the Pth emulation library. 12853 12854ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 12855 12856# The ordering *is* (sometimes) important. Some notes on the 12857# individual items follow: 12858 12859# pthreads: AIX (must check this before -lpthread) 12860# none: in case threads are in libc; should be tried before -Kthread and 12861# other compiler flags to prevent continual compiler warnings 12862# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 12863# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 12864# (Note: HP C rejects this with "bad form for `-t' option") 12865# -pthreads: Solaris/gcc (Note: HP C also rejects) 12866# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 12867# doesn't hurt to check since this sometimes defines pthreads and 12868# -D_REENTRANT too), HP C (must be checked before -lpthread, which 12869# is present but should not be used directly; and before -mthreads, 12870# because the compiler interprets this as "-mt" + "-hreads") 12871# -mthreads: Mingw32/gcc, Lynx/gcc 12872# pthread: Linux, etcetera 12873# --thread-safe: KAI C++ 12874# pthread-config: use pthread-config program (for GNU Pth library) 12875 12876case $host_os in 12877 12878 freebsd*) 12879 12880 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 12881 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 12882 12883 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 12884 ;; 12885 12886 hpux*) 12887 12888 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 12889 # multi-threading and also sets -lpthread." 12890 12891 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 12892 ;; 12893 12894 openedition*) 12895 12896 # IBM z/OS requires a feature-test macro to be defined in order to 12897 # enable POSIX threads at all, so give the user a hint if this is 12898 # not set. (We don't define these ourselves, as they can affect 12899 # other portions of the system API in unpredictable ways.) 12900 12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12902/* end confdefs.h. */ 12903 12904# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 12905 AX_PTHREAD_ZOS_MISSING 12906# endif 12907 12908_ACEOF 12909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12910 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 12911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 12912$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 12913fi 12914rm -f conftest* 12915 12916 ;; 12917 12918 solaris*) 12919 12920 # On Solaris (at least, for some versions), libc contains stubbed 12921 # (non-functional) versions of the pthreads routines, so link-based 12922 # tests will erroneously succeed. (N.B.: The stubs are missing 12923 # pthread_cleanup_push, or rather a function called by this macro, 12924 # so we could check for that, but who knows whether they'll stub 12925 # that too in a future libc.) So we'll check first for the 12926 # standard Solaris way of linking pthreads (-mt -lpthread). 12927 12928 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 12929 ;; 12930esac 12931 12932# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 12933 12934if test "x$GCC" = "xyes"; then : 12935 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 12936fi 12937 12938# The presence of a feature test macro requesting re-entrant function 12939# definitions is, on some systems, a strong hint that pthreads support is 12940# correctly enabled 12941 12942case $host_os in 12943 darwin* | hpux* | linux* | osf* | solaris*) 12944 ax_pthread_check_macro="_REENTRANT" 12945 ;; 12946 12947 aix*) 12948 ax_pthread_check_macro="_THREAD_SAFE" 12949 ;; 12950 12951 *) 12952 ax_pthread_check_macro="--" 12953 ;; 12954esac 12955if test "x$ax_pthread_check_macro" = "x--"; then : 12956 ax_pthread_check_cond=0 12957else 12958 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 12959fi 12960 12961# Are we compiling with Clang? 12962 12963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 12964$as_echo_n "checking whether $CC is Clang... " >&6; } 12965if ${ax_cv_PTHREAD_CLANG+:} false; then : 12966 $as_echo_n "(cached) " >&6 12967else 12968 ax_cv_PTHREAD_CLANG=no 12969 # Note that Autoconf sets GCC=yes for Clang as well as GCC 12970 if test "x$GCC" = "xyes"; then 12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12972/* end confdefs.h. */ 12973/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 12974# if defined(__clang__) && defined(__llvm__) 12975 AX_PTHREAD_CC_IS_CLANG 12976# endif 12977 12978_ACEOF 12979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12980 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 12981 ax_cv_PTHREAD_CLANG=yes 12982fi 12983rm -f conftest* 12984 12985 fi 12986 12987fi 12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 12989$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 12990ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 12991 12992ax_pthread_clang_warning=no 12993 12994# Clang needs special handling, because older versions handle the -pthread 12995# option in a rather... idiosyncratic way 12996 12997if test "x$ax_pthread_clang" = "xyes"; then 12998 12999 # Clang takes -pthread; it has never supported any other flag 13000 13001 # (Note 1: This will need to be revisited if a system that Clang 13002 # supports has POSIX threads in a separate library. This tends not 13003 # to be the way of modern systems, but it's conceivable.) 13004 13005 # (Note 2: On some systems, notably Darwin, -pthread is not needed 13006 # to get POSIX threads support; the API is always present and 13007 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 13008 # -pthread does define _REENTRANT, and while the Darwin headers 13009 # ignore this macro, third-party headers might not.) 13010 13011 PTHREAD_CFLAGS="-pthread" 13012 PTHREAD_LIBS= 13013 13014 ax_pthread_ok=yes 13015 13016 # However, older versions of Clang make a point of warning the user 13017 # that, in an invocation where only linking and no compilation is 13018 # taking place, the -pthread option has no effect ("argument unused 13019 # during compilation"). They expect -pthread to be passed in only 13020 # when source code is being compiled. 13021 # 13022 # Problem is, this is at odds with the way Automake and most other 13023 # C build frameworks function, which is that the same flags used in 13024 # compilation (CFLAGS) are also used in linking. Many systems 13025 # supported by AX_PTHREAD require exactly this for POSIX threads 13026 # support, and in fact it is often not straightforward to specify a 13027 # flag that is used only in the compilation phase and not in 13028 # linking. Such a scenario is extremely rare in practice. 13029 # 13030 # Even though use of the -pthread flag in linking would only print 13031 # a warning, this can be a nuisance for well-run software projects 13032 # that build with -Werror. So if the active version of Clang has 13033 # this misfeature, we search for an option to squash it. 13034 13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 13036$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 13037if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 13038 $as_echo_n "(cached) " >&6 13039else 13040 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 13041 # Create an alternate version of $ac_link that compiles and 13042 # links in two steps (.c -> .o, .o -> exe) instead of one 13043 # (.c -> exe), because the warning occurs only in the second 13044 # step 13045 ax_pthread_save_ac_link="$ac_link" 13046 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 13047 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 13048 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 13049 ax_pthread_save_CFLAGS="$CFLAGS" 13050 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 13051 if test "x$ax_pthread_try" = "xunknown"; then : 13052 break 13053fi 13054 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 13055 ac_link="$ax_pthread_save_ac_link" 13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13057/* end confdefs.h. */ 13058int main(void){return 0;} 13059_ACEOF 13060if ac_fn_c_try_link "$LINENO"; then : 13061 ac_link="$ax_pthread_2step_ac_link" 13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13063/* end confdefs.h. */ 13064int main(void){return 0;} 13065_ACEOF 13066if ac_fn_c_try_link "$LINENO"; then : 13067 break 13068fi 13069rm -f core conftest.err conftest.$ac_objext \ 13070 conftest$ac_exeext conftest.$ac_ext 13071 13072fi 13073rm -f core conftest.err conftest.$ac_objext \ 13074 conftest$ac_exeext conftest.$ac_ext 13075 done 13076 ac_link="$ax_pthread_save_ac_link" 13077 CFLAGS="$ax_pthread_save_CFLAGS" 13078 if test "x$ax_pthread_try" = "x"; then : 13079 ax_pthread_try=no 13080fi 13081 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 13082 13083fi 13084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 13085$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 13086 13087 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 13088 no | unknown) ;; 13089 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 13090 esac 13091 13092fi # $ax_pthread_clang = yes 13093 13094if test "x$ax_pthread_ok" = "xno"; then 13095for ax_pthread_try_flag in $ax_pthread_flags; do 13096 13097 case $ax_pthread_try_flag in 13098 none) 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 13100$as_echo_n "checking whether pthreads work without any flags... " >&6; } 13101 ;; 13102 13103 -mt,pthread) 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 13105$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 13106 PTHREAD_CFLAGS="-mt" 13107 PTHREAD_LIBS="-lpthread" 13108 ;; 13109 13110 -*) 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 13112$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 13113 PTHREAD_CFLAGS="$ax_pthread_try_flag" 13114 ;; 13115 13116 pthread-config) 13117 # Extract the first word of "pthread-config", so it can be a program name with args. 13118set dummy pthread-config; ac_word=$2 13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13120$as_echo_n "checking for $ac_word... " >&6; } 13121if ${ac_cv_prog_ax_pthread_config+:} false; then : 13122 $as_echo_n "(cached) " >&6 13123else 13124 if test -n "$ax_pthread_config"; then 13125 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 13126else 13127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13128for as_dir in $PATH 13129do 13130 IFS=$as_save_IFS 13131 test -z "$as_dir" && as_dir=. 13132 for ac_exec_ext in '' $ac_executable_extensions; do 13133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13134 ac_cv_prog_ax_pthread_config="yes" 13135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13136 break 2 13137 fi 13138done 13139 done 13140IFS=$as_save_IFS 13141 13142 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 13143fi 13144fi 13145ax_pthread_config=$ac_cv_prog_ax_pthread_config 13146if test -n "$ax_pthread_config"; then 13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 13148$as_echo "$ax_pthread_config" >&6; } 13149else 13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13151$as_echo "no" >&6; } 13152fi 13153 13154 13155 if test "x$ax_pthread_config" = "xno"; then : 13156 continue 13157fi 13158 PTHREAD_CFLAGS="`pthread-config --cflags`" 13159 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 13160 ;; 13161 13162 *) 13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 13164$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 13165 PTHREAD_LIBS="-l$ax_pthread_try_flag" 13166 ;; 13167 esac 13168 13169 ax_pthread_save_CFLAGS="$CFLAGS" 13170 ax_pthread_save_LIBS="$LIBS" 13171 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13172 LIBS="$PTHREAD_LIBS $LIBS" 13173 13174 # Check for various functions. We must include pthread.h, 13175 # since some functions may be macros. (On the Sequent, we 13176 # need a special flag -Kthread to make this header compile.) 13177 # We check for pthread_join because it is in -lpthread on IRIX 13178 # while pthread_create is in libc. We check for pthread_attr_init 13179 # due to DEC craziness with -lpthreads. We check for 13180 # pthread_cleanup_push because it is one of the few pthread 13181 # functions on Solaris that doesn't have a non-functional libc stub. 13182 # We try pthread_create on general principles. 13183 13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13185/* end confdefs.h. */ 13186#include <pthread.h> 13187# if $ax_pthread_check_cond 13188# error "$ax_pthread_check_macro must be defined" 13189# endif 13190 static void routine(void *a) { a = 0; } 13191 static void *start_routine(void *a) { return a; } 13192int 13193main () 13194{ 13195pthread_t th; pthread_attr_t attr; 13196 pthread_create(&th, 0, start_routine, 0); 13197 pthread_join(th, 0); 13198 pthread_attr_init(&attr); 13199 pthread_cleanup_push(routine, 0); 13200 pthread_cleanup_pop(0) /* ; */ 13201 ; 13202 return 0; 13203} 13204_ACEOF 13205if ac_fn_c_try_link "$LINENO"; then : 13206 ax_pthread_ok=yes 13207fi 13208rm -f core conftest.err conftest.$ac_objext \ 13209 conftest$ac_exeext conftest.$ac_ext 13210 13211 CFLAGS="$ax_pthread_save_CFLAGS" 13212 LIBS="$ax_pthread_save_LIBS" 13213 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 13215$as_echo "$ax_pthread_ok" >&6; } 13216 if test "x$ax_pthread_ok" = "xyes"; then : 13217 break 13218fi 13219 13220 PTHREAD_LIBS="" 13221 PTHREAD_CFLAGS="" 13222done 13223fi 13224 13225# Various other checks: 13226if test "x$ax_pthread_ok" = "xyes"; then 13227 ax_pthread_save_CFLAGS="$CFLAGS" 13228 ax_pthread_save_LIBS="$LIBS" 13229 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13230 LIBS="$PTHREAD_LIBS $LIBS" 13231 13232 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 13234$as_echo_n "checking for joinable pthread attribute... " >&6; } 13235if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 13236 $as_echo_n "(cached) " >&6 13237else 13238 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 13239 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13241/* end confdefs.h. */ 13242#include <pthread.h> 13243int 13244main () 13245{ 13246int attr = $ax_pthread_attr; return attr /* ; */ 13247 ; 13248 return 0; 13249} 13250_ACEOF 13251if ac_fn_c_try_link "$LINENO"; then : 13252 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 13253fi 13254rm -f core conftest.err conftest.$ac_objext \ 13255 conftest$ac_exeext conftest.$ac_ext 13256 done 13257 13258fi 13259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 13260$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 13261 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 13262 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 13263 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 13264 13265cat >>confdefs.h <<_ACEOF 13266@%:@define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 13267_ACEOF 13268 13269 ax_pthread_joinable_attr_defined=yes 13270 13271fi 13272 13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 13274$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 13275if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 13276 $as_echo_n "(cached) " >&6 13277else 13278 ax_cv_PTHREAD_SPECIAL_FLAGS=no 13279 case $host_os in 13280 solaris*) 13281 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 13282 ;; 13283 esac 13284 13285fi 13286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 13287$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 13288 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 13289 test "x$ax_pthread_special_flags_added" != "xyes"; then : 13290 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 13291 ax_pthread_special_flags_added=yes 13292fi 13293 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 13295$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 13296if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 13297 $as_echo_n "(cached) " >&6 13298else 13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13300/* end confdefs.h. */ 13301#include <pthread.h> 13302int 13303main () 13304{ 13305int i = PTHREAD_PRIO_INHERIT; 13306 ; 13307 return 0; 13308} 13309_ACEOF 13310if ac_fn_c_try_link "$LINENO"; then : 13311 ax_cv_PTHREAD_PRIO_INHERIT=yes 13312else 13313 ax_cv_PTHREAD_PRIO_INHERIT=no 13314fi 13315rm -f core conftest.err conftest.$ac_objext \ 13316 conftest$ac_exeext conftest.$ac_ext 13317 13318fi 13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 13320$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 13321 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 13322 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 13323 13324$as_echo "@%:@define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 13325 13326 ax_pthread_prio_inherit_defined=yes 13327 13328fi 13329 13330 CFLAGS="$ax_pthread_save_CFLAGS" 13331 LIBS="$ax_pthread_save_LIBS" 13332 13333 # More AIX lossage: compile with *_r variant 13334 if test "x$GCC" != "xyes"; then 13335 case $host_os in 13336 aix*) 13337 case "x/$CC" in 13338 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 13339 case "x$CC" in 13340 x/*) if as_fn_executable_p ${CC}_r; then : 13341 PTHREAD_CC="${CC}_r" 13342fi ;; 13343 *) for ac_prog in ${CC}_r 13344do 13345 # Extract the first word of "$ac_prog", so it can be a program name with args. 13346set dummy $ac_prog; ac_word=$2 13347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13348$as_echo_n "checking for $ac_word... " >&6; } 13349if ${ac_cv_prog_PTHREAD_CC+:} false; then : 13350 $as_echo_n "(cached) " >&6 13351else 13352 if test -n "$PTHREAD_CC"; then 13353 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 13354else 13355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13356for as_dir in $PATH 13357do 13358 IFS=$as_save_IFS 13359 test -z "$as_dir" && as_dir=. 13360 for ac_exec_ext in '' $ac_executable_extensions; do 13361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13362 ac_cv_prog_PTHREAD_CC="$ac_prog" 13363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13364 break 2 13365 fi 13366done 13367 done 13368IFS=$as_save_IFS 13369 13370fi 13371fi 13372PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 13373if test -n "$PTHREAD_CC"; then 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 13375$as_echo "$PTHREAD_CC" >&6; } 13376else 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13378$as_echo "no" >&6; } 13379fi 13380 13381 13382 test -n "$PTHREAD_CC" && break 13383done 13384test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 13385 ;; 13386esac ;; 13387esac 13388 ;; 13389 esac 13390 fi 13391fi 13392 13393test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 13394 13395 13396 13397 13398 13399# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 13400if test "x$ax_pthread_ok" = "xyes"; then 13401 13402 LIBS="$LIBS $PTHREAD_LIBS" 13403 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13404 13405 : 13406else 13407 ax_pthread_ok=no 13408 13409fi 13410ac_ext=c 13411ac_cpp='$CPP $CPPFLAGS' 13412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13414ac_compiler_gnu=$ac_cv_c_compiler_gnu 13415 13416 13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 13418$as_echo_n "checking for library containing dlopen... " >&6; } 13419if ${ac_cv_search_dlopen+:} false; then : 13420 $as_echo_n "(cached) " >&6 13421else 13422 ac_func_search_save_LIBS=$LIBS 13423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13424/* end confdefs.h. */ 13425 13426/* Override any GCC internal prototype to avoid an error. 13427 Use char because int might match the return type of a GCC 13428 builtin and then its argument prototype would still apply. */ 13429#ifdef __cplusplus 13430extern "C" 13431#endif 13432char dlopen (); 13433int 13434main () 13435{ 13436return dlopen (); 13437 ; 13438 return 0; 13439} 13440_ACEOF 13441for ac_lib in '' dl; do 13442 if test -z "$ac_lib"; then 13443 ac_res="none required" 13444 else 13445 ac_res=-l$ac_lib 13446 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13447 fi 13448 if ac_fn_c_try_link "$LINENO"; then : 13449 ac_cv_search_dlopen=$ac_res 13450fi 13451rm -f core conftest.err conftest.$ac_objext \ 13452 conftest$ac_exeext 13453 if ${ac_cv_search_dlopen+:} false; then : 13454 break 13455fi 13456done 13457if ${ac_cv_search_dlopen+:} false; then : 13458 13459else 13460 ac_cv_search_dlopen=no 13461fi 13462rm conftest.$ac_ext 13463LIBS=$ac_func_search_save_LIBS 13464fi 13465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 13466$as_echo "$ac_cv_search_dlopen" >&6; } 13467ac_res=$ac_cv_search_dlopen 13468if test "$ac_res" != no; then : 13469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13470 13471fi 13472 13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_lookup" >&5 13474$as_echo_n "checking for library containing kstat_lookup... " >&6; } 13475if ${ac_cv_search_kstat_lookup+:} false; then : 13476 $as_echo_n "(cached) " >&6 13477else 13478 ac_func_search_save_LIBS=$LIBS 13479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13480/* end confdefs.h. */ 13481 13482/* Override any GCC internal prototype to avoid an error. 13483 Use char because int might match the return type of a GCC 13484 builtin and then its argument prototype would still apply. */ 13485#ifdef __cplusplus 13486extern "C" 13487#endif 13488char kstat_lookup (); 13489int 13490main () 13491{ 13492return kstat_lookup (); 13493 ; 13494 return 0; 13495} 13496_ACEOF 13497for ac_lib in '' kstat; do 13498 if test -z "$ac_lib"; then 13499 ac_res="none required" 13500 else 13501 ac_res=-l$ac_lib 13502 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13503 fi 13504 if ac_fn_c_try_link "$LINENO"; then : 13505 ac_cv_search_kstat_lookup=$ac_res 13506fi 13507rm -f core conftest.err conftest.$ac_objext \ 13508 conftest$ac_exeext 13509 if ${ac_cv_search_kstat_lookup+:} false; then : 13510 break 13511fi 13512done 13513if ${ac_cv_search_kstat_lookup+:} false; then : 13514 13515else 13516 ac_cv_search_kstat_lookup=no 13517fi 13518rm conftest.$ac_ext 13519LIBS=$ac_func_search_save_LIBS 13520fi 13521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_lookup" >&5 13522$as_echo "$ac_cv_search_kstat_lookup" >&6; } 13523ac_res=$ac_cv_search_kstat_lookup 13524if test "$ac_res" != no; then : 13525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13526 13527fi 13528 13529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 13530$as_echo_n "checking for library containing gethostbyname... " >&6; } 13531if ${ac_cv_search_gethostbyname+:} false; then : 13532 $as_echo_n "(cached) " >&6 13533else 13534 ac_func_search_save_LIBS=$LIBS 13535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13536/* end confdefs.h. */ 13537 13538/* Override any GCC internal prototype to avoid an error. 13539 Use char because int might match the return type of a GCC 13540 builtin and then its argument prototype would still apply. */ 13541#ifdef __cplusplus 13542extern "C" 13543#endif 13544char gethostbyname (); 13545int 13546main () 13547{ 13548return gethostbyname (); 13549 ; 13550 return 0; 13551} 13552_ACEOF 13553for ac_lib in '' nsl; do 13554 if test -z "$ac_lib"; then 13555 ac_res="none required" 13556 else 13557 ac_res=-l$ac_lib 13558 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13559 fi 13560 if ac_fn_c_try_link "$LINENO"; then : 13561 ac_cv_search_gethostbyname=$ac_res 13562fi 13563rm -f core conftest.err conftest.$ac_objext \ 13564 conftest$ac_exeext 13565 if ${ac_cv_search_gethostbyname+:} false; then : 13566 break 13567fi 13568done 13569if ${ac_cv_search_gethostbyname+:} false; then : 13570 13571else 13572 ac_cv_search_gethostbyname=no 13573fi 13574rm conftest.$ac_ext 13575LIBS=$ac_func_search_save_LIBS 13576fi 13577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 13578$as_echo "$ac_cv_search_gethostbyname" >&6; } 13579ac_res=$ac_cv_search_gethostbyname 13580if test "$ac_res" != no; then : 13581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13582 13583fi 13584 13585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing perfstat_cpu" >&5 13586$as_echo_n "checking for library containing perfstat_cpu... " >&6; } 13587if ${ac_cv_search_perfstat_cpu+:} false; then : 13588 $as_echo_n "(cached) " >&6 13589else 13590 ac_func_search_save_LIBS=$LIBS 13591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13592/* end confdefs.h. */ 13593 13594/* Override any GCC internal prototype to avoid an error. 13595 Use char because int might match the return type of a GCC 13596 builtin and then its argument prototype would still apply. */ 13597#ifdef __cplusplus 13598extern "C" 13599#endif 13600char perfstat_cpu (); 13601int 13602main () 13603{ 13604return perfstat_cpu (); 13605 ; 13606 return 0; 13607} 13608_ACEOF 13609for ac_lib in '' perfstat; do 13610 if test -z "$ac_lib"; then 13611 ac_res="none required" 13612 else 13613 ac_res=-l$ac_lib 13614 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13615 fi 13616 if ac_fn_c_try_link "$LINENO"; then : 13617 ac_cv_search_perfstat_cpu=$ac_res 13618fi 13619rm -f core conftest.err conftest.$ac_objext \ 13620 conftest$ac_exeext 13621 if ${ac_cv_search_perfstat_cpu+:} false; then : 13622 break 13623fi 13624done 13625if ${ac_cv_search_perfstat_cpu+:} false; then : 13626 13627else 13628 ac_cv_search_perfstat_cpu=no 13629fi 13630rm conftest.$ac_ext 13631LIBS=$ac_func_search_save_LIBS 13632fi 13633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_perfstat_cpu" >&5 13634$as_echo "$ac_cv_search_perfstat_cpu" >&6; } 13635ac_res=$ac_cv_search_perfstat_cpu 13636if test "$ac_res" != no; then : 13637 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13638 13639fi 13640 13641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 13642$as_echo_n "checking for library containing clock_gettime... " >&6; } 13643if ${ac_cv_search_clock_gettime+:} false; then : 13644 $as_echo_n "(cached) " >&6 13645else 13646 ac_func_search_save_LIBS=$LIBS 13647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13648/* end confdefs.h. */ 13649 13650/* Override any GCC internal prototype to avoid an error. 13651 Use char because int might match the return type of a GCC 13652 builtin and then its argument prototype would still apply. */ 13653#ifdef __cplusplus 13654extern "C" 13655#endif 13656char clock_gettime (); 13657int 13658main () 13659{ 13660return clock_gettime (); 13661 ; 13662 return 0; 13663} 13664_ACEOF 13665for ac_lib in '' rt; do 13666 if test -z "$ac_lib"; then 13667 ac_res="none required" 13668 else 13669 ac_res=-l$ac_lib 13670 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13671 fi 13672 if ac_fn_c_try_link "$LINENO"; then : 13673 ac_cv_search_clock_gettime=$ac_res 13674fi 13675rm -f core conftest.err conftest.$ac_objext \ 13676 conftest$ac_exeext 13677 if ${ac_cv_search_clock_gettime+:} false; then : 13678 break 13679fi 13680done 13681if ${ac_cv_search_clock_gettime+:} false; then : 13682 13683else 13684 ac_cv_search_clock_gettime=no 13685fi 13686rm conftest.$ac_ext 13687LIBS=$ac_func_search_save_LIBS 13688fi 13689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 13690$as_echo "$ac_cv_search_clock_gettime" >&6; } 13691ac_res=$ac_cv_search_clock_gettime 13692if test "$ac_res" != no; then : 13693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13694 13695fi 13696 13697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5 13698$as_echo_n "checking for library containing sendfile... " >&6; } 13699if ${ac_cv_search_sendfile+:} false; then : 13700 $as_echo_n "(cached) " >&6 13701else 13702 ac_func_search_save_LIBS=$LIBS 13703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13704/* end confdefs.h. */ 13705 13706/* Override any GCC internal prototype to avoid an error. 13707 Use char because int might match the return type of a GCC 13708 builtin and then its argument prototype would still apply. */ 13709#ifdef __cplusplus 13710extern "C" 13711#endif 13712char sendfile (); 13713int 13714main () 13715{ 13716return sendfile (); 13717 ; 13718 return 0; 13719} 13720_ACEOF 13721for ac_lib in '' sendfile; do 13722 if test -z "$ac_lib"; then 13723 ac_res="none required" 13724 else 13725 ac_res=-l$ac_lib 13726 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13727 fi 13728 if ac_fn_c_try_link "$LINENO"; then : 13729 ac_cv_search_sendfile=$ac_res 13730fi 13731rm -f core conftest.err conftest.$ac_objext \ 13732 conftest$ac_exeext 13733 if ${ac_cv_search_sendfile+:} false; then : 13734 break 13735fi 13736done 13737if ${ac_cv_search_sendfile+:} false; then : 13738 13739else 13740 ac_cv_search_sendfile=no 13741fi 13742rm conftest.$ac_ext 13743LIBS=$ac_func_search_save_LIBS 13744fi 13745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5 13746$as_echo "$ac_cv_search_sendfile" >&6; } 13747ac_res=$ac_cv_search_sendfile 13748if test "$ac_res" != no; then : 13749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13750 13751fi 13752 13753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13754$as_echo_n "checking for library containing socket... " >&6; } 13755if ${ac_cv_search_socket+:} false; then : 13756 $as_echo_n "(cached) " >&6 13757else 13758 ac_func_search_save_LIBS=$LIBS 13759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13760/* end confdefs.h. */ 13761 13762/* Override any GCC internal prototype to avoid an error. 13763 Use char because int might match the return type of a GCC 13764 builtin and then its argument prototype would still apply. */ 13765#ifdef __cplusplus 13766extern "C" 13767#endif 13768char socket (); 13769int 13770main () 13771{ 13772return socket (); 13773 ; 13774 return 0; 13775} 13776_ACEOF 13777for ac_lib in '' socket; do 13778 if test -z "$ac_lib"; then 13779 ac_res="none required" 13780 else 13781 ac_res=-l$ac_lib 13782 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13783 fi 13784 if ac_fn_c_try_link "$LINENO"; then : 13785 ac_cv_search_socket=$ac_res 13786fi 13787rm -f core conftest.err conftest.$ac_objext \ 13788 conftest$ac_exeext 13789 if ${ac_cv_search_socket+:} false; then : 13790 break 13791fi 13792done 13793if ${ac_cv_search_socket+:} false; then : 13794 13795else 13796 ac_cv_search_socket=no 13797fi 13798rm conftest.$ac_ext 13799LIBS=$ac_func_search_save_LIBS 13800fi 13801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13802$as_echo "$ac_cv_search_socket" >&6; } 13803ac_res=$ac_cv_search_socket 13804if test "$ac_res" != no; then : 13805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13806 13807fi 13808 13809@%:@ Check whether --enable-largefile was given. 13810if test "${enable_largefile+set}" = set; then : 13811 enableval=$enable_largefile; 13812fi 13813 13814if test "$enable_largefile" != no; then 13815 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13817$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13818if ${ac_cv_sys_largefile_CC+:} false; then : 13819 $as_echo_n "(cached) " >&6 13820else 13821 ac_cv_sys_largefile_CC=no 13822 if test "$GCC" != yes; then 13823 ac_save_CC=$CC 13824 while :; do 13825 # IRIX 6.2 and later do not support large files by default, 13826 # so use the C compiler's -n32 option if that helps. 13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13828/* end confdefs.h. */ 13829@%:@include <sys/types.h> 13830 /* Check that off_t can represent 2**63 - 1 correctly. 13831 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13832 since some C++ compilers masquerading as C compilers 13833 incorrectly reject 9223372036854775807. */ 13834@%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13836 && LARGE_OFF_T % 2147483647 == 1) 13837 ? 1 : -1]; 13838int 13839main () 13840{ 13841 13842 ; 13843 return 0; 13844} 13845_ACEOF 13846 if ac_fn_c_try_compile "$LINENO"; then : 13847 break 13848fi 13849rm -f core conftest.err conftest.$ac_objext 13850 CC="$CC -n32" 13851 if ac_fn_c_try_compile "$LINENO"; then : 13852 ac_cv_sys_largefile_CC=' -n32'; break 13853fi 13854rm -f core conftest.err conftest.$ac_objext 13855 break 13856 done 13857 CC=$ac_save_CC 13858 rm -f conftest.$ac_ext 13859 fi 13860fi 13861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13862$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13863 if test "$ac_cv_sys_largefile_CC" != no; then 13864 CC=$CC$ac_cv_sys_largefile_CC 13865 fi 13866 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13868$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13869if ${ac_cv_sys_file_offset_bits+:} false; then : 13870 $as_echo_n "(cached) " >&6 13871else 13872 while :; do 13873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13874/* end confdefs.h. */ 13875@%:@include <sys/types.h> 13876 /* Check that off_t can represent 2**63 - 1 correctly. 13877 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13878 since some C++ compilers masquerading as C compilers 13879 incorrectly reject 9223372036854775807. */ 13880@%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13882 && LARGE_OFF_T % 2147483647 == 1) 13883 ? 1 : -1]; 13884int 13885main () 13886{ 13887 13888 ; 13889 return 0; 13890} 13891_ACEOF 13892if ac_fn_c_try_compile "$LINENO"; then : 13893 ac_cv_sys_file_offset_bits=no; break 13894fi 13895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13897/* end confdefs.h. */ 13898@%:@define _FILE_OFFSET_BITS 64 13899@%:@include <sys/types.h> 13900 /* Check that off_t can represent 2**63 - 1 correctly. 13901 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13902 since some C++ compilers masquerading as C compilers 13903 incorrectly reject 9223372036854775807. */ 13904@%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13906 && LARGE_OFF_T % 2147483647 == 1) 13907 ? 1 : -1]; 13908int 13909main () 13910{ 13911 13912 ; 13913 return 0; 13914} 13915_ACEOF 13916if ac_fn_c_try_compile "$LINENO"; then : 13917 ac_cv_sys_file_offset_bits=64; break 13918fi 13919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13920 ac_cv_sys_file_offset_bits=unknown 13921 break 13922done 13923fi 13924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13925$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13926case $ac_cv_sys_file_offset_bits in #( 13927 no | unknown) ;; 13928 *) 13929cat >>confdefs.h <<_ACEOF 13930@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13931_ACEOF 13932;; 13933esac 13934rm -rf conftest* 13935 if test $ac_cv_sys_file_offset_bits = unknown; then 13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13937$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13938if ${ac_cv_sys_large_files+:} false; then : 13939 $as_echo_n "(cached) " >&6 13940else 13941 while :; do 13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13943/* end confdefs.h. */ 13944@%:@include <sys/types.h> 13945 /* Check that off_t can represent 2**63 - 1 correctly. 13946 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13947 since some C++ compilers masquerading as C compilers 13948 incorrectly reject 9223372036854775807. */ 13949@%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13951 && LARGE_OFF_T % 2147483647 == 1) 13952 ? 1 : -1]; 13953int 13954main () 13955{ 13956 13957 ; 13958 return 0; 13959} 13960_ACEOF 13961if ac_fn_c_try_compile "$LINENO"; then : 13962 ac_cv_sys_large_files=no; break 13963fi 13964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13966/* end confdefs.h. */ 13967@%:@define _LARGE_FILES 1 13968@%:@include <sys/types.h> 13969 /* Check that off_t can represent 2**63 - 1 correctly. 13970 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13971 since some C++ compilers masquerading as C compilers 13972 incorrectly reject 9223372036854775807. */ 13973@%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13974 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13975 && LARGE_OFF_T % 2147483647 == 1) 13976 ? 1 : -1]; 13977int 13978main () 13979{ 13980 13981 ; 13982 return 0; 13983} 13984_ACEOF 13985if ac_fn_c_try_compile "$LINENO"; then : 13986 ac_cv_sys_large_files=1; break 13987fi 13988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13989 ac_cv_sys_large_files=unknown 13990 break 13991done 13992fi 13993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13994$as_echo "$ac_cv_sys_large_files" >&6; } 13995case $ac_cv_sys_large_files in #( 13996 no | unknown) ;; 13997 *) 13998cat >>confdefs.h <<_ACEOF 13999@%:@define _LARGE_FILES $ac_cv_sys_large_files 14000_ACEOF 14001;; 14002esac 14003rm -rf conftest* 14004 fi 14005 14006 14007fi 14008 14009 if case $host_os in 14010 aix*) true ;; 14011 *) false ;; 14012esac; then 14013 AIX_TRUE= 14014 AIX_FALSE='#' 14015else 14016 AIX_TRUE='#' 14017 AIX_FALSE= 14018fi 14019 14020 if case $host_os in 14021 linux-android*) true ;; 14022 *) false ;; 14023esac; then 14024 ANDROID_TRUE= 14025 ANDROID_FALSE='#' 14026else 14027 ANDROID_TRUE='#' 14028 ANDROID_FALSE= 14029fi 14030 14031 if case $host_os in 14032 cygwin*) true ;; 14033 *) false ;; 14034esac; then 14035 CYGWIN_TRUE= 14036 CYGWIN_FALSE='#' 14037else 14038 CYGWIN_TRUE='#' 14039 CYGWIN_FALSE= 14040fi 14041 14042 if case $host_os in 14043 darwin*) true ;; 14044 *) false ;; 14045esac; then 14046 DARWIN_TRUE= 14047 DARWIN_FALSE='#' 14048else 14049 DARWIN_TRUE='#' 14050 DARWIN_FALSE= 14051fi 14052 14053 if case $host_os in 14054 dragonfly*) true ;; 14055 *) false ;; 14056esac; then 14057 DRAGONFLY_TRUE= 14058 DRAGONFLY_FALSE='#' 14059else 14060 DRAGONFLY_TRUE='#' 14061 DRAGONFLY_FALSE= 14062fi 14063 14064 if case $host_os in 14065 *freebsd*) true ;; 14066 *) false ;; 14067esac; then 14068 FREEBSD_TRUE= 14069 FREEBSD_FALSE='#' 14070else 14071 FREEBSD_TRUE='#' 14072 FREEBSD_FALSE= 14073fi 14074 14075 if case $host_os in 14076 haiku) true ;; 14077 *) false ;; 14078esac; then 14079 HAIKU_TRUE= 14080 HAIKU_FALSE='#' 14081else 14082 HAIKU_TRUE='#' 14083 HAIKU_FALSE= 14084fi 14085 14086 if case $host_os in 14087 gnu*) true ;; 14088 *) false ;; 14089esac; then 14090 HURD_TRUE= 14091 HURD_FALSE='#' 14092else 14093 HURD_TRUE='#' 14094 HURD_FALSE= 14095fi 14096 14097 if case $host_os in 14098 linux*) true ;; 14099 *) false ;; 14100esac; then 14101 LINUX_TRUE= 14102 LINUX_FALSE='#' 14103else 14104 LINUX_TRUE='#' 14105 LINUX_FALSE= 14106fi 14107 14108 if case $host_os in 14109 msys*) true ;; 14110 *) false ;; 14111esac; then 14112 MSYS_TRUE= 14113 MSYS_FALSE='#' 14114else 14115 MSYS_TRUE='#' 14116 MSYS_FALSE= 14117fi 14118 14119 if case $host_os in 14120 netbsd*) true ;; 14121 *) false ;; 14122esac; then 14123 NETBSD_TRUE= 14124 NETBSD_FALSE='#' 14125else 14126 NETBSD_TRUE='#' 14127 NETBSD_FALSE= 14128fi 14129 14130 if case $host_os in 14131 openbsd*) true ;; 14132 *) false ;; 14133esac; then 14134 OPENBSD_TRUE= 14135 OPENBSD_FALSE='#' 14136else 14137 OPENBSD_TRUE='#' 14138 OPENBSD_FALSE= 14139fi 14140 14141 if case $host_os in 14142 openedition*) true ;; 14143 *) false ;; 14144esac; then 14145 OS390_TRUE= 14146 OS390_FALSE='#' 14147else 14148 OS390_TRUE='#' 14149 OS390_FALSE= 14150fi 14151 14152 if case $host_os in 14153 os400) true ;; 14154 *) false ;; 14155esac; then 14156 OS400_TRUE= 14157 OS400_FALSE='#' 14158else 14159 OS400_TRUE='#' 14160 OS400_FALSE= 14161fi 14162 14163 if case $host_os in 14164 solaris*) true ;; 14165 *) false ;; 14166esac; then 14167 SUNOS_TRUE= 14168 SUNOS_FALSE='#' 14169else 14170 SUNOS_TRUE='#' 14171 SUNOS_FALSE= 14172fi 14173 14174 if case $host_os in 14175 mingw*) true ;; 14176 *) false ;; 14177esac; then 14178 WINNT_TRUE= 14179 WINNT_FALSE='#' 14180else 14181 WINNT_TRUE='#' 14182 WINNT_FALSE= 14183fi 14184 14185case $host_os in 14186 mingw*) 14187 LIBS="$LIBS -lws2_32 -lpsapi -liphlpapi -lshell32 -luserenv -luser32" 14188 ;; 14189esac 14190case $host_os in 14191 netbsd*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 14192$as_echo_n "checking for kvm_open in -lkvm... " >&6; } 14193if ${ac_cv_lib_kvm_kvm_open+:} false; then : 14194 $as_echo_n "(cached) " >&6 14195else 14196 ac_check_lib_save_LIBS=$LIBS 14197LIBS="-lkvm $LIBS" 14198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14199/* end confdefs.h. */ 14200 14201/* Override any GCC internal prototype to avoid an error. 14202 Use char because int might match the return type of a GCC 14203 builtin and then its argument prototype would still apply. */ 14204#ifdef __cplusplus 14205extern "C" 14206#endif 14207char kvm_open (); 14208int 14209main () 14210{ 14211return kvm_open (); 14212 ; 14213 return 0; 14214} 14215_ACEOF 14216if ac_fn_c_try_link "$LINENO"; then : 14217 ac_cv_lib_kvm_kvm_open=yes 14218else 14219 ac_cv_lib_kvm_kvm_open=no 14220fi 14221rm -f core conftest.err conftest.$ac_objext \ 14222 conftest$ac_exeext conftest.$ac_ext 14223LIBS=$ac_check_lib_save_LIBS 14224fi 14225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 14226$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 14227if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then : 14228 cat >>confdefs.h <<_ACEOF 14229@%:@define HAVE_LIBKVM 1 14230_ACEOF 14231 14232 LIBS="-lkvm $LIBS" 14233 14234fi 14235 ;; 14236esac 14237case $host_os in 14238 kfreebsd*) 14239 LIBS="$LIBS -lfreebsd-glue" 14240 ;; 14241esac 14242case $host_os in 14243 haiku) 14244 LIBS="$LIBS -lnetwork" 14245 ;; 14246esac 14247for ac_header in sys/ahafs_evProds.h 14248do : 14249 ac_fn_c_check_header_mongrel "$LINENO" "sys/ahafs_evProds.h" "ac_cv_header_sys_ahafs_evProds_h" "$ac_includes_default" 14250if test "x$ac_cv_header_sys_ahafs_evProds_h" = xyes; then : 14251 cat >>confdefs.h <<_ACEOF 14252@%:@define HAVE_SYS_AHAFS_EVPRODS_H 1 14253_ACEOF 14254 14255fi 14256 14257done 14258 14259ac_config_files="$ac_config_files Makefile libuv.pc" 14260 14261ac_config_links="$ac_config_links test/fixtures/empty_file:test/fixtures/empty_file" 14262 14263ac_config_links="$ac_config_links test/fixtures/load_error.node:test/fixtures/load_error.node" 14264 14265ac_config_links="$ac_config_links test/fixtures/lorem_ipsum.txt:test/fixtures/lorem_ipsum.txt" 14266 14267cat >confcache <<\_ACEOF 14268# This file is a shell script that caches the results of configure 14269# tests run on this system so they can be shared between configure 14270# scripts and configure runs, see configure's option --config-cache. 14271# It is not useful on other systems. If it contains results you don't 14272# want to keep, you may remove or edit it. 14273# 14274# config.status only pays attention to the cache file if you give it 14275# the --recheck option to rerun configure. 14276# 14277# `ac_cv_env_foo' variables (set or unset) will be overridden when 14278# loading this file, other *unset* `ac_cv_foo' will be assigned the 14279# following values. 14280 14281_ACEOF 14282 14283# The following way of writing the cache mishandles newlines in values, 14284# but we know of no workaround that is simple, portable, and efficient. 14285# So, we kill variables containing newlines. 14286# Ultrix sh set writes to stderr and can't be redirected directly, 14287# and sets the high bit in the cache file unless we assign to the vars. 14288( 14289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14290 eval ac_val=\$$ac_var 14291 case $ac_val in #( 14292 *${as_nl}*) 14293 case $ac_var in #( 14294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14295$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14296 esac 14297 case $ac_var in #( 14298 _ | IFS | as_nl) ;; #( 14299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14300 *) { eval $ac_var=; unset $ac_var;} ;; 14301 esac ;; 14302 esac 14303 done 14304 14305 (set) 2>&1 | 14306 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14307 *${as_nl}ac_space=\ *) 14308 # `set' does not quote correctly, so add quotes: double-quote 14309 # substitution turns \\\\ into \\, and sed turns \\ into \. 14310 sed -n \ 14311 "s/'/'\\\\''/g; 14312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14313 ;; #( 14314 *) 14315 # `set' quotes correctly as required by POSIX, so do not add quotes. 14316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14317 ;; 14318 esac | 14319 sort 14320) | 14321 sed ' 14322 /^ac_cv_env_/b end 14323 t clear 14324 :clear 14325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14326 t end 14327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14328 :end' >>confcache 14329if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14330 if test -w "$cache_file"; then 14331 if test "x$cache_file" != "x/dev/null"; then 14332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14333$as_echo "$as_me: updating cache $cache_file" >&6;} 14334 if test ! -f "$cache_file" || test -h "$cache_file"; then 14335 cat confcache >"$cache_file" 14336 else 14337 case $cache_file in #( 14338 */* | ?:*) 14339 mv -f confcache "$cache_file"$$ && 14340 mv -f "$cache_file"$$ "$cache_file" ;; #( 14341 *) 14342 mv -f confcache "$cache_file" ;; 14343 esac 14344 fi 14345 fi 14346 else 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14348$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14349 fi 14350fi 14351rm -f confcache 14352 14353test "x$prefix" = xNONE && prefix=$ac_default_prefix 14354# Let make expand exec_prefix. 14355test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14356 14357# Transform confdefs.h into DEFS. 14358# Protect against shell expansion while executing Makefile rules. 14359# Protect against Makefile macro expansion. 14360# 14361# If the first sed substitution is executed (which looks for macros that 14362# take arguments), then branch to the quote section. Otherwise, 14363# look for a macro that doesn't take arguments. 14364ac_script=' 14365:mline 14366/\\$/{ 14367 N 14368 s,\\\n,, 14369 b mline 14370} 14371t clear 14372:clear 14373s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 14374t quote 14375s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 14376t quote 14377b any 14378:quote 14379s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 14380s/\[/\\&/g 14381s/\]/\\&/g 14382s/\$/$$/g 14383H 14384:any 14385${ 14386 g 14387 s/^\n// 14388 s/\n/ /g 14389 p 14390} 14391' 14392DEFS=`sed -n "$ac_script" confdefs.h` 14393 14394 14395ac_libobjs= 14396ac_ltlibobjs= 14397U= 14398for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 14399 # 1. Remove the extension, and $U if already installed. 14400 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14401 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14402 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14403 # will be set to the directory where LIBOBJS objects are built. 14404 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14405 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14406done 14407LIB@&t@OBJS=$ac_libobjs 14408 14409LTLIBOBJS=$ac_ltlibobjs 14410 14411 14412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14413$as_echo_n "checking that generated files are newer than configure... " >&6; } 14414 if test -n "$am_sleep_pid"; then 14415 # Hide warnings about reused PIDs. 14416 wait $am_sleep_pid 2>/dev/null 14417 fi 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14419$as_echo "done" >&6; } 14420 if test -n "$EXEEXT"; then 14421 am__EXEEXT_TRUE= 14422 am__EXEEXT_FALSE='#' 14423else 14424 am__EXEEXT_TRUE='#' 14425 am__EXEEXT_FALSE= 14426fi 14427 14428if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14429 as_fn_error $? "conditional \"AMDEP\" was never defined. 14430Usually this means the macro was only invoked conditionally." "$LINENO" 5 14431fi 14432if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14433 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14434Usually this means the macro was only invoked conditionally." "$LINENO" 5 14435fi 14436if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then 14437 as_fn_error $? "conditional \"AIX\" was never defined. 14438Usually this means the macro was only invoked conditionally." "$LINENO" 5 14439fi 14440if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then 14441 as_fn_error $? "conditional \"ANDROID\" was never defined. 14442Usually this means the macro was only invoked conditionally." "$LINENO" 5 14443fi 14444if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 14445 as_fn_error $? "conditional \"CYGWIN\" was never defined. 14446Usually this means the macro was only invoked conditionally." "$LINENO" 5 14447fi 14448if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then 14449 as_fn_error $? "conditional \"DARWIN\" was never defined. 14450Usually this means the macro was only invoked conditionally." "$LINENO" 5 14451fi 14452if test -z "${DRAGONFLY_TRUE}" && test -z "${DRAGONFLY_FALSE}"; then 14453 as_fn_error $? "conditional \"DRAGONFLY\" was never defined. 14454Usually this means the macro was only invoked conditionally." "$LINENO" 5 14455fi 14456if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then 14457 as_fn_error $? "conditional \"FREEBSD\" was never defined. 14458Usually this means the macro was only invoked conditionally." "$LINENO" 5 14459fi 14460if test -z "${HAIKU_TRUE}" && test -z "${HAIKU_FALSE}"; then 14461 as_fn_error $? "conditional \"HAIKU\" was never defined. 14462Usually this means the macro was only invoked conditionally." "$LINENO" 5 14463fi 14464if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then 14465 as_fn_error $? "conditional \"HURD\" was never defined. 14466Usually this means the macro was only invoked conditionally." "$LINENO" 5 14467fi 14468if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 14469 as_fn_error $? "conditional \"LINUX\" was never defined. 14470Usually this means the macro was only invoked conditionally." "$LINENO" 5 14471fi 14472if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then 14473 as_fn_error $? "conditional \"MSYS\" was never defined. 14474Usually this means the macro was only invoked conditionally." "$LINENO" 5 14475fi 14476if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then 14477 as_fn_error $? "conditional \"NETBSD\" was never defined. 14478Usually this means the macro was only invoked conditionally." "$LINENO" 5 14479fi 14480if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then 14481 as_fn_error $? "conditional \"OPENBSD\" was never defined. 14482Usually this means the macro was only invoked conditionally." "$LINENO" 5 14483fi 14484if test -z "${OS390_TRUE}" && test -z "${OS390_FALSE}"; then 14485 as_fn_error $? "conditional \"OS390\" was never defined. 14486Usually this means the macro was only invoked conditionally." "$LINENO" 5 14487fi 14488if test -z "${OS400_TRUE}" && test -z "${OS400_FALSE}"; then 14489 as_fn_error $? "conditional \"OS400\" was never defined. 14490Usually this means the macro was only invoked conditionally." "$LINENO" 5 14491fi 14492if test -z "${SUNOS_TRUE}" && test -z "${SUNOS_FALSE}"; then 14493 as_fn_error $? "conditional \"SUNOS\" was never defined. 14494Usually this means the macro was only invoked conditionally." "$LINENO" 5 14495fi 14496if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then 14497 as_fn_error $? "conditional \"WINNT\" was never defined. 14498Usually this means the macro was only invoked conditionally." "$LINENO" 5 14499fi 14500 14501: "${CONFIG_STATUS=./config.status}" 14502ac_write_fail=0 14503ac_clean_files_save=$ac_clean_files 14504ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14505{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14506$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14507as_write_fail=0 14508cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14509#! $SHELL 14510# Generated by $as_me. 14511# Run this file to recreate the current configuration. 14512# Compiler output produced by configure, useful for debugging 14513# configure, is in config.log if it exists. 14514 14515debug=false 14516ac_cs_recheck=false 14517ac_cs_silent=false 14518 14519SHELL=\${CONFIG_SHELL-$SHELL} 14520export SHELL 14521_ASEOF 14522cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14523## -------------------- ## 14524## M4sh Initialization. ## 14525## -------------------- ## 14526 14527# Be more Bourne compatible 14528DUALCASE=1; export DUALCASE # for MKS sh 14529if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14530 emulate sh 14531 NULLCMD=: 14532 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14533 # is contrary to our usage. Disable this feature. 14534 alias -g '${1+"$@"}'='"$@"' 14535 setopt NO_GLOB_SUBST 14536else 14537 case `(set -o) 2>/dev/null` in 14538 *posix*) set -o posix ;; 14539esac 14540fi 14541 14542 14543as_nl=' 14544' 14545export as_nl 14546# Printing a long string crashes Solaris 7 /usr/bin/printf. 14547as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14548as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14549as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14550# Prefer a ksh shell builtin over an external printf program on Solaris, 14551# but without wasting forks for bash or zsh. 14552if test -z "$BASH_VERSION$ZSH_VERSION" \ 14553 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14554 as_echo='print -r --' 14555 as_echo_n='print -rn --' 14556elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14557 as_echo='printf %s\n' 14558 as_echo_n='printf %s' 14559else 14560 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14561 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14562 as_echo_n='/usr/ucb/echo -n' 14563 else 14564 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14565 as_echo_n_body='eval 14566 arg=$1; 14567 case $arg in @%:@( 14568 *"$as_nl"*) 14569 expr "X$arg" : "X\\(.*\\)$as_nl"; 14570 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14571 esac; 14572 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14573 ' 14574 export as_echo_n_body 14575 as_echo_n='sh -c $as_echo_n_body as_echo' 14576 fi 14577 export as_echo_body 14578 as_echo='sh -c $as_echo_body as_echo' 14579fi 14580 14581# The user is always right. 14582if test "${PATH_SEPARATOR+set}" != set; then 14583 PATH_SEPARATOR=: 14584 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14585 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14586 PATH_SEPARATOR=';' 14587 } 14588fi 14589 14590 14591# IFS 14592# We need space, tab and new line, in precisely that order. Quoting is 14593# there to prevent editors from complaining about space-tab. 14594# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14595# splitting by setting IFS to empty value.) 14596IFS=" "" $as_nl" 14597 14598# Find who we are. Look in the path if we contain no directory separator. 14599as_myself= 14600case $0 in @%:@(( 14601 *[\\/]* ) as_myself=$0 ;; 14602 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14603for as_dir in $PATH 14604do 14605 IFS=$as_save_IFS 14606 test -z "$as_dir" && as_dir=. 14607 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14608 done 14609IFS=$as_save_IFS 14610 14611 ;; 14612esac 14613# We did not find ourselves, most probably we were run as `sh COMMAND' 14614# in which case we are not to be found in the path. 14615if test "x$as_myself" = x; then 14616 as_myself=$0 14617fi 14618if test ! -f "$as_myself"; then 14619 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14620 exit 1 14621fi 14622 14623# Unset variables that we do not need and which cause bugs (e.g. in 14624# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14625# suppresses any "Segmentation fault" message there. '((' could 14626# trigger a bug in pdksh 5.2.14. 14627for as_var in BASH_ENV ENV MAIL MAILPATH 14628do eval test x\${$as_var+set} = xset \ 14629 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14630done 14631PS1='$ ' 14632PS2='> ' 14633PS4='+ ' 14634 14635# NLS nuisances. 14636LC_ALL=C 14637export LC_ALL 14638LANGUAGE=C 14639export LANGUAGE 14640 14641# CDPATH. 14642(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14643 14644 14645@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 14646@%:@ ---------------------------------------- 14647@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14648@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14649@%:@ script with STATUS, using 1 if that was 0. 14650as_fn_error () 14651{ 14652 as_status=$1; test $as_status -eq 0 && as_status=1 14653 if test "$4"; then 14654 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14655 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14656 fi 14657 $as_echo "$as_me: error: $2" >&2 14658 as_fn_exit $as_status 14659} @%:@ as_fn_error 14660 14661 14662@%:@ as_fn_set_status STATUS 14663@%:@ ----------------------- 14664@%:@ Set @S|@? to STATUS, without forking. 14665as_fn_set_status () 14666{ 14667 return $1 14668} @%:@ as_fn_set_status 14669 14670@%:@ as_fn_exit STATUS 14671@%:@ ----------------- 14672@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14673as_fn_exit () 14674{ 14675 set +e 14676 as_fn_set_status $1 14677 exit $1 14678} @%:@ as_fn_exit 14679 14680@%:@ as_fn_unset VAR 14681@%:@ --------------- 14682@%:@ Portably unset VAR. 14683as_fn_unset () 14684{ 14685 { eval $1=; unset $1;} 14686} 14687as_unset=as_fn_unset 14688@%:@ as_fn_append VAR VALUE 14689@%:@ ---------------------- 14690@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 14691@%:@ advantage of any shell optimizations that allow amortized linear growth over 14692@%:@ repeated appends, instead of the typical quadratic growth present in naive 14693@%:@ implementations. 14694if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14695 eval 'as_fn_append () 14696 { 14697 eval $1+=\$2 14698 }' 14699else 14700 as_fn_append () 14701 { 14702 eval $1=\$$1\$2 14703 } 14704fi # as_fn_append 14705 14706@%:@ as_fn_arith ARG... 14707@%:@ ------------------ 14708@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 14709@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 14710@%:@ must be portable across @S|@(()) and expr. 14711if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14712 eval 'as_fn_arith () 14713 { 14714 as_val=$(( $* )) 14715 }' 14716else 14717 as_fn_arith () 14718 { 14719 as_val=`expr "$@" || test $? -eq 1` 14720 } 14721fi # as_fn_arith 14722 14723 14724if expr a : '\(a\)' >/dev/null 2>&1 && 14725 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14726 as_expr=expr 14727else 14728 as_expr=false 14729fi 14730 14731if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14732 as_basename=basename 14733else 14734 as_basename=false 14735fi 14736 14737if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14738 as_dirname=dirname 14739else 14740 as_dirname=false 14741fi 14742 14743as_me=`$as_basename -- "$0" || 14744$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14745 X"$0" : 'X\(//\)$' \| \ 14746 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14747$as_echo X/"$0" | 14748 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14749 s//\1/ 14750 q 14751 } 14752 /^X\/\(\/\/\)$/{ 14753 s//\1/ 14754 q 14755 } 14756 /^X\/\(\/\).*/{ 14757 s//\1/ 14758 q 14759 } 14760 s/.*/./; q'` 14761 14762# Avoid depending upon Character Ranges. 14763as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14764as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14765as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14766as_cr_digits='0123456789' 14767as_cr_alnum=$as_cr_Letters$as_cr_digits 14768 14769ECHO_C= ECHO_N= ECHO_T= 14770case `echo -n x` in @%:@((((( 14771-n*) 14772 case `echo 'xy\c'` in 14773 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14774 xy) ECHO_C='\c';; 14775 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14776 ECHO_T=' ';; 14777 esac;; 14778*) 14779 ECHO_N='-n';; 14780esac 14781 14782rm -f conf$$ conf$$.exe conf$$.file 14783if test -d conf$$.dir; then 14784 rm -f conf$$.dir/conf$$.file 14785else 14786 rm -f conf$$.dir 14787 mkdir conf$$.dir 2>/dev/null 14788fi 14789if (echo >conf$$.file) 2>/dev/null; then 14790 if ln -s conf$$.file conf$$ 2>/dev/null; then 14791 as_ln_s='ln -s' 14792 # ... but there are two gotchas: 14793 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14794 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14795 # In both cases, we have to default to `cp -pR'. 14796 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14797 as_ln_s='cp -pR' 14798 elif ln conf$$.file conf$$ 2>/dev/null; then 14799 as_ln_s=ln 14800 else 14801 as_ln_s='cp -pR' 14802 fi 14803else 14804 as_ln_s='cp -pR' 14805fi 14806rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14807rmdir conf$$.dir 2>/dev/null 14808 14809 14810@%:@ as_fn_mkdir_p 14811@%:@ ------------- 14812@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 14813as_fn_mkdir_p () 14814{ 14815 14816 case $as_dir in #( 14817 -*) as_dir=./$as_dir;; 14818 esac 14819 test -d "$as_dir" || eval $as_mkdir_p || { 14820 as_dirs= 14821 while :; do 14822 case $as_dir in #( 14823 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14824 *) as_qdir=$as_dir;; 14825 esac 14826 as_dirs="'$as_qdir' $as_dirs" 14827 as_dir=`$as_dirname -- "$as_dir" || 14828$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14829 X"$as_dir" : 'X\(//\)[^/]' \| \ 14830 X"$as_dir" : 'X\(//\)$' \| \ 14831 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14832$as_echo X"$as_dir" | 14833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14834 s//\1/ 14835 q 14836 } 14837 /^X\(\/\/\)[^/].*/{ 14838 s//\1/ 14839 q 14840 } 14841 /^X\(\/\/\)$/{ 14842 s//\1/ 14843 q 14844 } 14845 /^X\(\/\).*/{ 14846 s//\1/ 14847 q 14848 } 14849 s/.*/./; q'` 14850 test -d "$as_dir" && break 14851 done 14852 test -z "$as_dirs" || eval "mkdir $as_dirs" 14853 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14854 14855 14856} @%:@ as_fn_mkdir_p 14857if mkdir -p . 2>/dev/null; then 14858 as_mkdir_p='mkdir -p "$as_dir"' 14859else 14860 test -d ./-p && rmdir ./-p 14861 as_mkdir_p=false 14862fi 14863 14864 14865@%:@ as_fn_executable_p FILE 14866@%:@ ----------------------- 14867@%:@ Test if FILE is an executable regular file. 14868as_fn_executable_p () 14869{ 14870 test -f "$1" && test -x "$1" 14871} @%:@ as_fn_executable_p 14872as_test_x='test -x' 14873as_executable_p=as_fn_executable_p 14874 14875# Sed expression to map a string onto a valid CPP name. 14876as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14877 14878# Sed expression to map a string onto a valid variable name. 14879as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14880 14881 14882exec 6>&1 14883## ----------------------------------- ## 14884## Main body of $CONFIG_STATUS script. ## 14885## ----------------------------------- ## 14886_ASEOF 14887test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14888 14889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14890# Save the log message, to keep $0 and so on meaningful, and to 14891# report actual input values of CONFIG_FILES etc. instead of their 14892# values after options handling. 14893ac_log=" 14894This file was extended by libuv $as_me 1.42.0, which was 14895generated by GNU Autoconf 2.69. Invocation command line was 14896 14897 CONFIG_FILES = $CONFIG_FILES 14898 CONFIG_HEADERS = $CONFIG_HEADERS 14899 CONFIG_LINKS = $CONFIG_LINKS 14900 CONFIG_COMMANDS = $CONFIG_COMMANDS 14901 $ $0 $@ 14902 14903on `(hostname || uname -n) 2>/dev/null | sed 1q` 14904" 14905 14906_ACEOF 14907 14908case $ac_config_files in *" 14909"*) set x $ac_config_files; shift; ac_config_files=$*;; 14910esac 14911 14912 14913 14914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14915# Files that config.status was made for. 14916config_files="$ac_config_files" 14917config_links="$ac_config_links" 14918config_commands="$ac_config_commands" 14919 14920_ACEOF 14921 14922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14923ac_cs_usage="\ 14924\`$as_me' instantiates files and other configuration actions 14925from templates according to the current configuration. Unless the files 14926and actions are specified as TAGs, all are instantiated by default. 14927 14928Usage: $0 [OPTION]... [TAG]... 14929 14930 -h, --help print this help, then exit 14931 -V, --version print version number and configuration settings, then exit 14932 --config print configuration, then exit 14933 -q, --quiet, --silent 14934 do not print progress messages 14935 -d, --debug don't remove temporary files 14936 --recheck update $as_me by reconfiguring in the same conditions 14937 --file=FILE[:TEMPLATE] 14938 instantiate the configuration file FILE 14939 14940Configuration files: 14941$config_files 14942 14943Configuration links: 14944$config_links 14945 14946Configuration commands: 14947$config_commands 14948 14949Report bugs to <https://github.com/libuv/libuv/issues>." 14950 14951_ACEOF 14952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14953ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14954ac_cs_version="\\ 14955libuv config.status 1.42.0 14956configured by $0, generated by GNU Autoconf 2.69, 14957 with options \\"\$ac_cs_config\\" 14958 14959Copyright (C) 2012 Free Software Foundation, Inc. 14960This config.status script is free software; the Free Software Foundation 14961gives unlimited permission to copy, distribute and modify it." 14962 14963ac_pwd='$ac_pwd' 14964srcdir='$srcdir' 14965INSTALL='$INSTALL' 14966MKDIR_P='$MKDIR_P' 14967AWK='$AWK' 14968test -n "\$AWK" || AWK=awk 14969_ACEOF 14970 14971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14972# The default lists apply if the user does not specify any file. 14973ac_need_defaults=: 14974while test $# != 0 14975do 14976 case $1 in 14977 --*=?*) 14978 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14979 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14980 ac_shift=: 14981 ;; 14982 --*=) 14983 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14984 ac_optarg= 14985 ac_shift=: 14986 ;; 14987 *) 14988 ac_option=$1 14989 ac_optarg=$2 14990 ac_shift=shift 14991 ;; 14992 esac 14993 14994 case $ac_option in 14995 # Handling of the options. 14996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14997 ac_cs_recheck=: ;; 14998 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14999 $as_echo "$ac_cs_version"; exit ;; 15000 --config | --confi | --conf | --con | --co | --c ) 15001 $as_echo "$ac_cs_config"; exit ;; 15002 --debug | --debu | --deb | --de | --d | -d ) 15003 debug=: ;; 15004 --file | --fil | --fi | --f ) 15005 $ac_shift 15006 case $ac_optarg in 15007 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15008 '') as_fn_error $? "missing file argument" ;; 15009 esac 15010 as_fn_append CONFIG_FILES " '$ac_optarg'" 15011 ac_need_defaults=false;; 15012 --he | --h | --help | --hel | -h ) 15013 $as_echo "$ac_cs_usage"; exit ;; 15014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15015 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15016 ac_cs_silent=: ;; 15017 15018 # This is an error. 15019 -*) as_fn_error $? "unrecognized option: \`$1' 15020Try \`$0 --help' for more information." ;; 15021 15022 *) as_fn_append ac_config_targets " $1" 15023 ac_need_defaults=false ;; 15024 15025 esac 15026 shift 15027done 15028 15029ac_configure_extra_args= 15030 15031if $ac_cs_silent; then 15032 exec 6>/dev/null 15033 ac_configure_extra_args="$ac_configure_extra_args --silent" 15034fi 15035 15036_ACEOF 15037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15038if \$ac_cs_recheck; then 15039 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15040 shift 15041 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15042 CONFIG_SHELL='$SHELL' 15043 export CONFIG_SHELL 15044 exec "\$@" 15045fi 15046 15047_ACEOF 15048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15049exec 5>>config.log 15050{ 15051 echo 15052 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 15053@%:@@%:@ Running $as_me. @%:@@%:@ 15054_ASBOX 15055 $as_echo "$ac_log" 15056} >&5 15057 15058_ACEOF 15059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15060# 15061# INIT-COMMANDS 15062# 15063AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 15064 15065 15066# The HP-UX ksh and POSIX shell print the target directory to stdout 15067# if CDPATH is set. 15068(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15069 15070sed_quote_subst='$sed_quote_subst' 15071double_quote_subst='$double_quote_subst' 15072delay_variable_subst='$delay_variable_subst' 15073enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15074enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15075macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15076macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15077pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15078enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15079shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 15080SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15081ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15082PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15083host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15084host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15085host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15086build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15087build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15088build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15089SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15090Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15091GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15092EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15093FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15094LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15095NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15096LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15097max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15098ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15099exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15100lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15101lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15102lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15103lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15104lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15105reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15106reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15107OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15108deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15109file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15110file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15111want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15112DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15113sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15114AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15115AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15116archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15117STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15118RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15119old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15120old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15121old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15122lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15123CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15124CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15125compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15126GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15127lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15128lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15129lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 15130lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15131lt_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"`' 15132lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 15133nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15134lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15135lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 15136objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15137MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15138lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15139lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15140lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15141lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15142lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15143need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15144MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15145DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15146NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15147LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15148OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15149OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15150libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15151shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15152extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15153archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15154enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15155export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15156whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15157compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15158old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15159old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15160archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15161archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15162module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15163module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15164with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15165allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15166no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15167hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15168hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15169hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15170hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15171hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15172hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15173hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15174inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15175link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15176always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15177export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15178exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15179include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15180prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15181postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15182file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15183variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15184need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15185need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15186version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15187runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15188shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15189shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15190libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15191library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15192soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15193install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15194postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15195postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15196finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15197finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15198hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15199sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15200configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 15201configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 15202hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15203enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15204enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15205enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15206old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15207striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15208 15209LTCC='$LTCC' 15210LTCFLAGS='$LTCFLAGS' 15211compiler='$compiler_DEFAULT' 15212 15213# A function that is used when there is no print builtin or printf. 15214func_fallback_echo () 15215{ 15216 eval 'cat <<_LTECHO_EOF 15217\$1 15218_LTECHO_EOF' 15219} 15220 15221# Quote evaled strings. 15222for var in SHELL \ 15223ECHO \ 15224PATH_SEPARATOR \ 15225SED \ 15226GREP \ 15227EGREP \ 15228FGREP \ 15229LD \ 15230NM \ 15231LN_S \ 15232lt_SP2NL \ 15233lt_NL2SP \ 15234reload_flag \ 15235OBJDUMP \ 15236deplibs_check_method \ 15237file_magic_cmd \ 15238file_magic_glob \ 15239want_nocaseglob \ 15240DLLTOOL \ 15241sharedlib_from_linklib_cmd \ 15242AR \ 15243AR_FLAGS \ 15244archiver_list_spec \ 15245STRIP \ 15246RANLIB \ 15247CC \ 15248CFLAGS \ 15249compiler \ 15250lt_cv_sys_global_symbol_pipe \ 15251lt_cv_sys_global_symbol_to_cdecl \ 15252lt_cv_sys_global_symbol_to_import \ 15253lt_cv_sys_global_symbol_to_c_name_address \ 15254lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15255lt_cv_nm_interface \ 15256nm_file_list_spec \ 15257lt_cv_truncate_bin \ 15258lt_prog_compiler_no_builtin_flag \ 15259lt_prog_compiler_pic \ 15260lt_prog_compiler_wl \ 15261lt_prog_compiler_static \ 15262lt_cv_prog_compiler_c_o \ 15263need_locks \ 15264MANIFEST_TOOL \ 15265DSYMUTIL \ 15266NMEDIT \ 15267LIPO \ 15268OTOOL \ 15269OTOOL64 \ 15270shrext_cmds \ 15271export_dynamic_flag_spec \ 15272whole_archive_flag_spec \ 15273compiler_needs_object \ 15274with_gnu_ld \ 15275allow_undefined_flag \ 15276no_undefined_flag \ 15277hardcode_libdir_flag_spec \ 15278hardcode_libdir_separator \ 15279exclude_expsyms \ 15280include_expsyms \ 15281file_list_spec \ 15282variables_saved_for_relink \ 15283libname_spec \ 15284library_names_spec \ 15285soname_spec \ 15286install_override_mode \ 15287finish_eval \ 15288old_striplib \ 15289striplib; do 15290 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15291 *[\\\\\\\`\\"\\\$]*) 15292 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15293 ;; 15294 *) 15295 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15296 ;; 15297 esac 15298done 15299 15300# Double-quote double-evaled strings. 15301for var in reload_cmds \ 15302old_postinstall_cmds \ 15303old_postuninstall_cmds \ 15304old_archive_cmds \ 15305extract_expsyms_cmds \ 15306old_archive_from_new_cmds \ 15307old_archive_from_expsyms_cmds \ 15308archive_cmds \ 15309archive_expsym_cmds \ 15310module_cmds \ 15311module_expsym_cmds \ 15312export_symbols_cmds \ 15313prelink_cmds \ 15314postlink_cmds \ 15315postinstall_cmds \ 15316postuninstall_cmds \ 15317finish_cmds \ 15318sys_lib_search_path_spec \ 15319configure_time_dlsearch_path \ 15320configure_time_lt_sys_library_path; do 15321 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15322 *[\\\\\\\`\\"\\\$]*) 15323 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15324 ;; 15325 *) 15326 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15327 ;; 15328 esac 15329done 15330 15331ac_aux_dir='$ac_aux_dir' 15332 15333# See if we are running on zsh, and set the options that allow our 15334# commands through without removal of \ escapes INIT. 15335if test -n "\${ZSH_VERSION+set}"; then 15336 setopt NO_GLOB_SUBST 15337fi 15338 15339 15340 PACKAGE='$PACKAGE' 15341 VERSION='$VERSION' 15342 RM='$RM' 15343 ofile='$ofile' 15344 15345 15346 15347 15348_ACEOF 15349 15350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15351 15352# Handling of arguments. 15353for ac_config_target in $ac_config_targets 15354do 15355 case $ac_config_target in 15356 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15357 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15358 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15359 "libuv.pc") CONFIG_FILES="$CONFIG_FILES libuv.pc" ;; 15360 "test/fixtures/empty_file") CONFIG_LINKS="$CONFIG_LINKS test/fixtures/empty_file:test/fixtures/empty_file" ;; 15361 "test/fixtures/load_error.node") CONFIG_LINKS="$CONFIG_LINKS test/fixtures/load_error.node:test/fixtures/load_error.node" ;; 15362 "test/fixtures/lorem_ipsum.txt") CONFIG_LINKS="$CONFIG_LINKS test/fixtures/lorem_ipsum.txt:test/fixtures/lorem_ipsum.txt" ;; 15363 15364 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15365 esac 15366done 15367 15368 15369# If the user did not use the arguments to specify the items to instantiate, 15370# then the envvar interface is used. Set only those that are not. 15371# We use the long form for the default assignment because of an extremely 15372# bizarre bug on SunOS 4.1.3. 15373if $ac_need_defaults; then 15374 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15375 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 15376 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15377fi 15378 15379# Have a temporary directory for convenience. Make it in the build tree 15380# simply because there is no reason against having it here, and in addition, 15381# creating and moving files from /tmp can sometimes cause problems. 15382# Hook for its removal unless debugging. 15383# Note that there is a small window in which the directory will not be cleaned: 15384# after its creation but before its name has been assigned to `$tmp'. 15385$debug || 15386{ 15387 tmp= ac_tmp= 15388 trap 'exit_status=$? 15389 : "${ac_tmp:=$tmp}" 15390 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15391' 0 15392 trap 'as_fn_exit 1' 1 2 13 15 15393} 15394# Create a (secure) tmp directory for tmp files. 15395 15396{ 15397 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15398 test -d "$tmp" 15399} || 15400{ 15401 tmp=./conf$$-$RANDOM 15402 (umask 077 && mkdir "$tmp") 15403} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15404ac_tmp=$tmp 15405 15406# Set up the scripts for CONFIG_FILES section. 15407# No need to generate them if there are no CONFIG_FILES. 15408# This happens for instance with `./config.status config.h'. 15409if test -n "$CONFIG_FILES"; then 15410 15411 15412ac_cr=`echo X | tr X '\015'` 15413# On cygwin, bash can eat \r inside `` if the user requested igncr. 15414# But we know of no other shell where ac_cr would be empty at this 15415# point, so we can use a bashism as a fallback. 15416if test "x$ac_cr" = x; then 15417 eval ac_cr=\$\'\\r\' 15418fi 15419ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15420if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15421 ac_cs_awk_cr='\\r' 15422else 15423 ac_cs_awk_cr=$ac_cr 15424fi 15425 15426echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15427_ACEOF 15428 15429 15430{ 15431 echo "cat >conf$$subs.awk <<_ACEOF" && 15432 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15433 echo "_ACEOF" 15434} >conf$$subs.sh || 15435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15436ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15437ac_delim='%!_!# ' 15438for ac_last_try in false false false false false :; do 15439 . ./conf$$subs.sh || 15440 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15441 15442 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15443 if test $ac_delim_n = $ac_delim_num; then 15444 break 15445 elif $ac_last_try; then 15446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15447 else 15448 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15449 fi 15450done 15451rm -f conf$$subs.sh 15452 15453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15454cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15455_ACEOF 15456sed -n ' 15457h 15458s/^/S["/; s/!.*/"]=/ 15459p 15460g 15461s/^[^!]*!// 15462:repl 15463t repl 15464s/'"$ac_delim"'$// 15465t delim 15466:nl 15467h 15468s/\(.\{148\}\)..*/\1/ 15469t more1 15470s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15471p 15472n 15473b repl 15474:more1 15475s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15476p 15477g 15478s/.\{148\}// 15479t nl 15480:delim 15481h 15482s/\(.\{148\}\)..*/\1/ 15483t more2 15484s/["\\]/\\&/g; s/^/"/; s/$/"/ 15485p 15486b 15487:more2 15488s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15489p 15490g 15491s/.\{148\}// 15492t delim 15493' <conf$$subs.awk | sed ' 15494/^[^""]/{ 15495 N 15496 s/\n// 15497} 15498' >>$CONFIG_STATUS || ac_write_fail=1 15499rm -f conf$$subs.awk 15500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15501_ACAWK 15502cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15503 for (key in S) S_is_set[key] = 1 15504 FS = "" 15505 15506} 15507{ 15508 line = $ 0 15509 nfields = split(line, field, "@") 15510 substed = 0 15511 len = length(field[1]) 15512 for (i = 2; i < nfields; i++) { 15513 key = field[i] 15514 keylen = length(key) 15515 if (S_is_set[key]) { 15516 value = S[key] 15517 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15518 len += length(value) + length(field[++i]) 15519 substed = 1 15520 } else 15521 len += 1 + keylen 15522 } 15523 15524 print line 15525} 15526 15527_ACAWK 15528_ACEOF 15529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15530if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15531 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15532else 15533 cat 15534fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15535 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15536_ACEOF 15537 15538# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15539# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15540# trailing colons and then remove the whole line if VPATH becomes empty 15541# (actually we leave an empty line to preserve line numbers). 15542if test "x$srcdir" = x.; then 15543 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15544h 15545s/// 15546s/^/:/ 15547s/[ ]*$/:/ 15548s/:\$(srcdir):/:/g 15549s/:\${srcdir}:/:/g 15550s/:@srcdir@:/:/g 15551s/^:*// 15552s/:*$// 15553x 15554s/\(=[ ]*\).*/\1/ 15555G 15556s/\n// 15557s/^[^=]*=[ ]*$// 15558}' 15559fi 15560 15561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15562fi # test -n "$CONFIG_FILES" 15563 15564 15565eval set X " :F $CONFIG_FILES :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 15566shift 15567for ac_tag 15568do 15569 case $ac_tag in 15570 :[FHLC]) ac_mode=$ac_tag; continue;; 15571 esac 15572 case $ac_mode$ac_tag in 15573 :[FHL]*:*);; 15574 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15575 :[FH]-) ac_tag=-:-;; 15576 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15577 esac 15578 ac_save_IFS=$IFS 15579 IFS=: 15580 set x $ac_tag 15581 IFS=$ac_save_IFS 15582 shift 15583 ac_file=$1 15584 shift 15585 15586 case $ac_mode in 15587 :L) ac_source=$1;; 15588 :[FH]) 15589 ac_file_inputs= 15590 for ac_f 15591 do 15592 case $ac_f in 15593 -) ac_f="$ac_tmp/stdin";; 15594 *) # Look for the file first in the build tree, then in the source tree 15595 # (if the path is not absolute). The absolute path cannot be DOS-style, 15596 # because $ac_f cannot contain `:'. 15597 test -f "$ac_f" || 15598 case $ac_f in 15599 [\\/$]*) false;; 15600 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15601 esac || 15602 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15603 esac 15604 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15605 as_fn_append ac_file_inputs " '$ac_f'" 15606 done 15607 15608 # Let's still pretend it is `configure' which instantiates (i.e., don't 15609 # use $as_me), people would be surprised to read: 15610 # /* config.h. Generated by config.status. */ 15611 configure_input='Generated from '` 15612 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15613 `' by configure.' 15614 if test x"$ac_file" != x-; then 15615 configure_input="$ac_file. $configure_input" 15616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15617$as_echo "$as_me: creating $ac_file" >&6;} 15618 fi 15619 # Neutralize special characters interpreted by sed in replacement strings. 15620 case $configure_input in #( 15621 *\&* | *\|* | *\\* ) 15622 ac_sed_conf_input=`$as_echo "$configure_input" | 15623 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15624 *) ac_sed_conf_input=$configure_input;; 15625 esac 15626 15627 case $ac_tag in 15628 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15630 esac 15631 ;; 15632 esac 15633 15634 ac_dir=`$as_dirname -- "$ac_file" || 15635$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15636 X"$ac_file" : 'X\(//\)[^/]' \| \ 15637 X"$ac_file" : 'X\(//\)$' \| \ 15638 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15639$as_echo X"$ac_file" | 15640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15641 s//\1/ 15642 q 15643 } 15644 /^X\(\/\/\)[^/].*/{ 15645 s//\1/ 15646 q 15647 } 15648 /^X\(\/\/\)$/{ 15649 s//\1/ 15650 q 15651 } 15652 /^X\(\/\).*/{ 15653 s//\1/ 15654 q 15655 } 15656 s/.*/./; q'` 15657 as_dir="$ac_dir"; as_fn_mkdir_p 15658 ac_builddir=. 15659 15660case "$ac_dir" in 15661.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15662*) 15663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15664 # A ".." for each directory in $ac_dir_suffix. 15665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15666 case $ac_top_builddir_sub in 15667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15669 esac ;; 15670esac 15671ac_abs_top_builddir=$ac_pwd 15672ac_abs_builddir=$ac_pwd$ac_dir_suffix 15673# for backward compatibility: 15674ac_top_builddir=$ac_top_build_prefix 15675 15676case $srcdir in 15677 .) # We are building in place. 15678 ac_srcdir=. 15679 ac_top_srcdir=$ac_top_builddir_sub 15680 ac_abs_top_srcdir=$ac_pwd ;; 15681 [\\/]* | ?:[\\/]* ) # Absolute name. 15682 ac_srcdir=$srcdir$ac_dir_suffix; 15683 ac_top_srcdir=$srcdir 15684 ac_abs_top_srcdir=$srcdir ;; 15685 *) # Relative name. 15686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15687 ac_top_srcdir=$ac_top_build_prefix$srcdir 15688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15689esac 15690ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15691 15692 15693 case $ac_mode in 15694 :F) 15695 # 15696 # CONFIG_FILE 15697 # 15698 15699 case $INSTALL in 15700 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15701 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15702 esac 15703 ac_MKDIR_P=$MKDIR_P 15704 case $MKDIR_P in 15705 [\\/$]* | ?:[\\/]* ) ;; 15706 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15707 esac 15708_ACEOF 15709 15710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15711# If the template does not know about datarootdir, expand it. 15712# FIXME: This hack should be removed a few years after 2.60. 15713ac_datarootdir_hack=; ac_datarootdir_seen= 15714ac_sed_dataroot=' 15715/datarootdir/ { 15716 p 15717 q 15718} 15719/@datadir@/p 15720/@docdir@/p 15721/@infodir@/p 15722/@localedir@/p 15723/@mandir@/p' 15724case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15725*datarootdir*) ac_datarootdir_seen=yes;; 15726*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15728$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15729_ACEOF 15730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15731 ac_datarootdir_hack=' 15732 s&@datadir@&$datadir&g 15733 s&@docdir@&$docdir&g 15734 s&@infodir@&$infodir&g 15735 s&@localedir@&$localedir&g 15736 s&@mandir@&$mandir&g 15737 s&\\\${datarootdir}&$datarootdir&g' ;; 15738esac 15739_ACEOF 15740 15741# Neutralize VPATH when `$srcdir' = `.'. 15742# Shell code in configure.ac might set extrasub. 15743# FIXME: do we really want to maintain this feature? 15744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15745ac_sed_extra="$ac_vpsub 15746$extrasub 15747_ACEOF 15748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15749:t 15750/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15751s|@configure_input@|$ac_sed_conf_input|;t t 15752s&@top_builddir@&$ac_top_builddir_sub&;t t 15753s&@top_build_prefix@&$ac_top_build_prefix&;t t 15754s&@srcdir@&$ac_srcdir&;t t 15755s&@abs_srcdir@&$ac_abs_srcdir&;t t 15756s&@top_srcdir@&$ac_top_srcdir&;t t 15757s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15758s&@builddir@&$ac_builddir&;t t 15759s&@abs_builddir@&$ac_abs_builddir&;t t 15760s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15761s&@INSTALL@&$ac_INSTALL&;t t 15762s&@MKDIR_P@&$ac_MKDIR_P&;t t 15763$ac_datarootdir_hack 15764" 15765eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15766 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15767 15768test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15769 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15771 "$ac_tmp/out"`; test -z "$ac_out"; } && 15772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15773which seems to be undefined. Please make sure it is defined" >&5 15774$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15775which seems to be undefined. Please make sure it is defined" >&2;} 15776 15777 rm -f "$ac_tmp/stdin" 15778 case $ac_file in 15779 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15780 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15781 esac \ 15782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15783 ;; 15784 15785 :L) 15786 # 15787 # CONFIG_LINK 15788 # 15789 15790 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 15791 : 15792 else 15793 # Prefer the file from the source tree if names are identical. 15794 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 15795 ac_source=$srcdir/$ac_source 15796 fi 15797 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 15799$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 15800 15801 if test ! -r "$ac_source"; then 15802 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 15803 fi 15804 rm -f "$ac_file" 15805 15806 # Try a relative symlink, then a hard link, then a copy. 15807 case $ac_source in 15808 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 15809 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 15810 esac 15811 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 15812 ln "$ac_source" "$ac_file" 2>/dev/null || 15813 cp -p "$ac_source" "$ac_file" || 15814 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 15815 fi 15816 ;; 15817 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15818$as_echo "$as_me: executing $ac_file commands" >&6;} 15819 ;; 15820 esac 15821 15822 15823 case $ac_file$ac_mode in 15824 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15825 # Older Autoconf quotes --file arguments for eval, but not when files 15826 # are listed without --file. Let's play safe and only enable the eval 15827 # if we detect the quoting. 15828 # TODO: see whether this extra hack can be removed once we start 15829 # requiring Autoconf 2.70 or later. 15830 case $CONFIG_FILES in 15831 *\'*) eval set x "$CONFIG_FILES" ;; 15832 *) set x $CONFIG_FILES ;; 15833esac 15834 shift 15835 # Used to flag and report bootstrapping failures. 15836 am_rc=0 15837 for am_mf 15838 do 15839 # Strip MF so we end up with the name of the file. 15840 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15841 # Check whether this is an Automake generated Makefile which includes 15842 # dependency-tracking related rules and includes. 15843 # Grep'ing the whole file directly is not great: AIX grep has a line 15844 # limit of 2048, but all sed's we know have understand at least 4000. 15845 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15846 || continue 15847 am_dirpart=`$as_dirname -- "$am_mf" || 15848$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15849 X"$am_mf" : 'X\(//\)[^/]' \| \ 15850 X"$am_mf" : 'X\(//\)$' \| \ 15851 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15852$as_echo X"$am_mf" | 15853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15854 s//\1/ 15855 q 15856 } 15857 /^X\(\/\/\)[^/].*/{ 15858 s//\1/ 15859 q 15860 } 15861 /^X\(\/\/\)$/{ 15862 s//\1/ 15863 q 15864 } 15865 /^X\(\/\).*/{ 15866 s//\1/ 15867 q 15868 } 15869 s/.*/./; q'` 15870 am_filepart=`$as_basename -- "$am_mf" || 15871$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15872 X"$am_mf" : 'X\(//\)$' \| \ 15873 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15874$as_echo X/"$am_mf" | 15875 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15876 s//\1/ 15877 q 15878 } 15879 /^X\/\(\/\/\)$/{ 15880 s//\1/ 15881 q 15882 } 15883 /^X\/\(\/\).*/{ 15884 s//\1/ 15885 q 15886 } 15887 s/.*/./; q'` 15888 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15889 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15890 | $MAKE -f - am--depfiles" >&5 15891 (cd "$am_dirpart" \ 15892 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15893 | $MAKE -f - am--depfiles) >&5 2>&5 15894 ac_status=$? 15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15896 (exit $ac_status); } || am_rc=$? 15897 done 15898 if test $am_rc -ne 0; then 15899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15901as_fn_error $? "Something went wrong bootstrapping makefile fragments 15902 for automatic dependency tracking. Try re-running configure with the 15903 '--disable-dependency-tracking' option to at least be able to build 15904 the package (albeit without support for automatic dependency tracking). 15905See \`config.log' for more details" "$LINENO" 5; } 15906 fi 15907 { am_dirpart=; unset am_dirpart;} 15908 { am_filepart=; unset am_filepart;} 15909 { am_mf=; unset am_mf;} 15910 { am_rc=; unset am_rc;} 15911 rm -f conftest-deps.mk 15912} 15913 ;; 15914 "libtool":C) 15915 15916 # See if we are running on zsh, and set the options that allow our 15917 # commands through without removal of \ escapes. 15918 if test -n "${ZSH_VERSION+set}"; then 15919 setopt NO_GLOB_SUBST 15920 fi 15921 15922 cfgfile=${ofile}T 15923 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15924 $RM "$cfgfile" 15925 15926 cat <<_LT_EOF >> "$cfgfile" 15927#! $SHELL 15928# Generated automatically by $as_me ($PACKAGE) $VERSION 15929# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15930 15931# Provide generalized library-building support services. 15932# Written by Gordon Matzigkeit, 1996 15933 15934# Copyright (C) 2014 Free Software Foundation, Inc. 15935# This is free software; see the source for copying conditions. There is NO 15936# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15937 15938# GNU Libtool is free software; you can redistribute it and/or modify 15939# it under the terms of the GNU General Public License as published by 15940# the Free Software Foundation; either version 2 of of the License, or 15941# (at your option) any later version. 15942# 15943# As a special exception to the GNU General Public License, if you 15944# distribute this file as part of a program or library that is built 15945# using GNU Libtool, you may include this file under the same 15946# distribution terms that you use for the rest of that program. 15947# 15948# GNU Libtool is distributed in the hope that it will be useful, but 15949# WITHOUT ANY WARRANTY; without even the implied warranty of 15950# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15951# GNU General Public License for more details. 15952# 15953# You should have received a copy of the GNU General Public License 15954# along with this program. If not, see <http://www.gnu.org/licenses/>. 15955 15956 15957# The names of the tagged configurations supported by this script. 15958available_tags='' 15959 15960# Configured defaults for sys_lib_dlsearch_path munging. 15961: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15962 15963# ### BEGIN LIBTOOL CONFIG 15964 15965# Whether or not to build shared libraries. 15966build_libtool_libs=$enable_shared 15967 15968# Whether or not to build static libraries. 15969build_old_libs=$enable_static 15970 15971# Which release of libtool.m4 was used? 15972macro_version=$macro_version 15973macro_revision=$macro_revision 15974 15975# What type of objects to build. 15976pic_mode=$pic_mode 15977 15978# Whether or not to optimize for fast installation. 15979fast_install=$enable_fast_install 15980 15981# Shared archive member basename,for filename based shared library versioning on AIX. 15982shared_archive_member_spec=$shared_archive_member_spec 15983 15984# Shell to use when invoking shell scripts. 15985SHELL=$lt_SHELL 15986 15987# An echo program that protects backslashes. 15988ECHO=$lt_ECHO 15989 15990# The PATH separator for the build system. 15991PATH_SEPARATOR=$lt_PATH_SEPARATOR 15992 15993# The host system. 15994host_alias=$host_alias 15995host=$host 15996host_os=$host_os 15997 15998# The build system. 15999build_alias=$build_alias 16000build=$build 16001build_os=$build_os 16002 16003# A sed program that does not truncate output. 16004SED=$lt_SED 16005 16006# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16007Xsed="\$SED -e 1s/^X//" 16008 16009# A grep program that handles long lines. 16010GREP=$lt_GREP 16011 16012# An ERE matcher. 16013EGREP=$lt_EGREP 16014 16015# A literal string matcher. 16016FGREP=$lt_FGREP 16017 16018# A BSD- or MS-compatible name lister. 16019NM=$lt_NM 16020 16021# Whether we need soft or hard links. 16022LN_S=$lt_LN_S 16023 16024# What is the maximum length of a command? 16025max_cmd_len=$max_cmd_len 16026 16027# Object file suffix (normally "o"). 16028objext=$ac_objext 16029 16030# Executable file suffix (normally ""). 16031exeext=$exeext 16032 16033# whether the shell understands "unset". 16034lt_unset=$lt_unset 16035 16036# turn spaces into newlines. 16037SP2NL=$lt_lt_SP2NL 16038 16039# turn newlines into spaces. 16040NL2SP=$lt_lt_NL2SP 16041 16042# convert \$build file names to \$host format. 16043to_host_file_cmd=$lt_cv_to_host_file_cmd 16044 16045# convert \$build files to toolchain format. 16046to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16047 16048# An object symbol dumper. 16049OBJDUMP=$lt_OBJDUMP 16050 16051# Method to check whether dependent libraries are shared objects. 16052deplibs_check_method=$lt_deplibs_check_method 16053 16054# Command to use when deplibs_check_method = "file_magic". 16055file_magic_cmd=$lt_file_magic_cmd 16056 16057# How to find potential files when deplibs_check_method = "file_magic". 16058file_magic_glob=$lt_file_magic_glob 16059 16060# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16061want_nocaseglob=$lt_want_nocaseglob 16062 16063# DLL creation program. 16064DLLTOOL=$lt_DLLTOOL 16065 16066# Command to associate shared and link libraries. 16067sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16068 16069# The archiver. 16070AR=$lt_AR 16071 16072# Flags to create an archive. 16073AR_FLAGS=$lt_AR_FLAGS 16074 16075# How to feed a file listing to the archiver. 16076archiver_list_spec=$lt_archiver_list_spec 16077 16078# A symbol stripping program. 16079STRIP=$lt_STRIP 16080 16081# Commands used to install an old-style archive. 16082RANLIB=$lt_RANLIB 16083old_postinstall_cmds=$lt_old_postinstall_cmds 16084old_postuninstall_cmds=$lt_old_postuninstall_cmds 16085 16086# Whether to use a lock for old archive extraction. 16087lock_old_archive_extraction=$lock_old_archive_extraction 16088 16089# A C compiler. 16090LTCC=$lt_CC 16091 16092# LTCC compiler flags. 16093LTCFLAGS=$lt_CFLAGS 16094 16095# Take the output of nm and produce a listing of raw symbols and C names. 16096global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16097 16098# Transform the output of nm in a proper C declaration. 16099global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16100 16101# Transform the output of nm into a list of symbols to manually relocate. 16102global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 16103 16104# Transform the output of nm in a C name address pair. 16105global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16106 16107# Transform the output of nm in a C name address pair when lib prefix is needed. 16108global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16109 16110# The name lister interface. 16111nm_interface=$lt_lt_cv_nm_interface 16112 16113# Specify filename containing input files for \$NM. 16114nm_file_list_spec=$lt_nm_file_list_spec 16115 16116# The root where to search for dependent libraries,and where our libraries should be installed. 16117lt_sysroot=$lt_sysroot 16118 16119# Command to truncate a binary pipe. 16120lt_truncate_bin=$lt_lt_cv_truncate_bin 16121 16122# The name of the directory that contains temporary libtool files. 16123objdir=$objdir 16124 16125# Used to examine libraries when file_magic_cmd begins with "file". 16126MAGIC_CMD=$MAGIC_CMD 16127 16128# Must we lock files when doing compilation? 16129need_locks=$lt_need_locks 16130 16131# Manifest tool. 16132MANIFEST_TOOL=$lt_MANIFEST_TOOL 16133 16134# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16135DSYMUTIL=$lt_DSYMUTIL 16136 16137# Tool to change global to local symbols on Mac OS X. 16138NMEDIT=$lt_NMEDIT 16139 16140# Tool to manipulate fat objects and archives on Mac OS X. 16141LIPO=$lt_LIPO 16142 16143# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16144OTOOL=$lt_OTOOL 16145 16146# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16147OTOOL64=$lt_OTOOL64 16148 16149# Old archive suffix (normally "a"). 16150libext=$libext 16151 16152# Shared library suffix (normally ".so"). 16153shrext_cmds=$lt_shrext_cmds 16154 16155# The commands to extract the exported symbol list from a shared archive. 16156extract_expsyms_cmds=$lt_extract_expsyms_cmds 16157 16158# Variables whose values should be saved in libtool wrapper scripts and 16159# restored at link time. 16160variables_saved_for_relink=$lt_variables_saved_for_relink 16161 16162# Do we need the "lib" prefix for modules? 16163need_lib_prefix=$need_lib_prefix 16164 16165# Do we need a version for libraries? 16166need_version=$need_version 16167 16168# Library versioning type. 16169version_type=$version_type 16170 16171# Shared library runtime path variable. 16172runpath_var=$runpath_var 16173 16174# Shared library path variable. 16175shlibpath_var=$shlibpath_var 16176 16177# Is shlibpath searched before the hard-coded library search path? 16178shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16179 16180# Format of library name prefix. 16181libname_spec=$lt_libname_spec 16182 16183# List of archive names. First name is the real one, the rest are links. 16184# The last name is the one that the linker finds with -lNAME 16185library_names_spec=$lt_library_names_spec 16186 16187# The coded name of the library, if different from the real name. 16188soname_spec=$lt_soname_spec 16189 16190# Permission mode override for installation of shared libraries. 16191install_override_mode=$lt_install_override_mode 16192 16193# Command to use after installation of a shared archive. 16194postinstall_cmds=$lt_postinstall_cmds 16195 16196# Command to use after uninstallation of a shared archive. 16197postuninstall_cmds=$lt_postuninstall_cmds 16198 16199# Commands used to finish a libtool library installation in a directory. 16200finish_cmds=$lt_finish_cmds 16201 16202# As "finish_cmds", except a single script fragment to be evaled but 16203# not shown. 16204finish_eval=$lt_finish_eval 16205 16206# Whether we should hardcode library paths into libraries. 16207hardcode_into_libs=$hardcode_into_libs 16208 16209# Compile-time system search path for libraries. 16210sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16211 16212# Detected run-time system search path for libraries. 16213sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 16214 16215# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 16216configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 16217 16218# Whether dlopen is supported. 16219dlopen_support=$enable_dlopen 16220 16221# Whether dlopen of programs is supported. 16222dlopen_self=$enable_dlopen_self 16223 16224# Whether dlopen of statically linked programs is supported. 16225dlopen_self_static=$enable_dlopen_self_static 16226 16227# Commands to strip libraries. 16228old_striplib=$lt_old_striplib 16229striplib=$lt_striplib 16230 16231 16232# The linker used to build libraries. 16233LD=$lt_LD 16234 16235# How to create reloadable object files. 16236reload_flag=$lt_reload_flag 16237reload_cmds=$lt_reload_cmds 16238 16239# Commands used to build an old-style archive. 16240old_archive_cmds=$lt_old_archive_cmds 16241 16242# A language specific compiler. 16243CC=$lt_compiler 16244 16245# Is the compiler the GNU compiler? 16246with_gcc=$GCC 16247 16248# Compiler flag to turn off builtin functions. 16249no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16250 16251# Additional compiler flags for building library objects. 16252pic_flag=$lt_lt_prog_compiler_pic 16253 16254# How to pass a linker flag through the compiler. 16255wl=$lt_lt_prog_compiler_wl 16256 16257# Compiler flag to prevent dynamic linking. 16258link_static_flag=$lt_lt_prog_compiler_static 16259 16260# Does compiler simultaneously support -c and -o options? 16261compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16262 16263# Whether or not to add -lc for building shared libraries. 16264build_libtool_need_lc=$archive_cmds_need_lc 16265 16266# Whether or not to disallow shared libs when runtime libs are static. 16267allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16268 16269# Compiler flag to allow reflexive dlopens. 16270export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16271 16272# Compiler flag to generate shared objects directly from archives. 16273whole_archive_flag_spec=$lt_whole_archive_flag_spec 16274 16275# Whether the compiler copes with passing no objects directly. 16276compiler_needs_object=$lt_compiler_needs_object 16277 16278# Create an old-style archive from a shared archive. 16279old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16280 16281# Create a temporary old-style archive to link instead of a shared archive. 16282old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16283 16284# Commands used to build a shared archive. 16285archive_cmds=$lt_archive_cmds 16286archive_expsym_cmds=$lt_archive_expsym_cmds 16287 16288# Commands used to build a loadable module if different from building 16289# a shared archive. 16290module_cmds=$lt_module_cmds 16291module_expsym_cmds=$lt_module_expsym_cmds 16292 16293# Whether we are building with GNU ld or not. 16294with_gnu_ld=$lt_with_gnu_ld 16295 16296# Flag that allows shared libraries with undefined symbols to be built. 16297allow_undefined_flag=$lt_allow_undefined_flag 16298 16299# Flag that enforces no undefined symbols. 16300no_undefined_flag=$lt_no_undefined_flag 16301 16302# Flag to hardcode \$libdir into a binary during linking. 16303# This must work even if \$libdir does not exist 16304hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16305 16306# Whether we need a single "-rpath" flag with a separated argument. 16307hardcode_libdir_separator=$lt_hardcode_libdir_separator 16308 16309# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16310# DIR into the resulting binary. 16311hardcode_direct=$hardcode_direct 16312 16313# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16314# DIR into the resulting binary and the resulting library dependency is 16315# "absolute",i.e impossible to change by setting \$shlibpath_var if the 16316# library is relocated. 16317hardcode_direct_absolute=$hardcode_direct_absolute 16318 16319# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16320# into the resulting binary. 16321hardcode_minus_L=$hardcode_minus_L 16322 16323# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16324# into the resulting binary. 16325hardcode_shlibpath_var=$hardcode_shlibpath_var 16326 16327# Set to "yes" if building a shared library automatically hardcodes DIR 16328# into the library and all subsequent libraries and executables linked 16329# against it. 16330hardcode_automatic=$hardcode_automatic 16331 16332# Set to yes if linker adds runtime paths of dependent libraries 16333# to runtime path list. 16334inherit_rpath=$inherit_rpath 16335 16336# Whether libtool must link a program against all its dependency libraries. 16337link_all_deplibs=$link_all_deplibs 16338 16339# Set to "yes" if exported symbols are required. 16340always_export_symbols=$always_export_symbols 16341 16342# The commands to list exported symbols. 16343export_symbols_cmds=$lt_export_symbols_cmds 16344 16345# Symbols that should not be listed in the preloaded symbols. 16346exclude_expsyms=$lt_exclude_expsyms 16347 16348# Symbols that must always be exported. 16349include_expsyms=$lt_include_expsyms 16350 16351# Commands necessary for linking programs (against libraries) with templates. 16352prelink_cmds=$lt_prelink_cmds 16353 16354# Commands necessary for finishing linking programs. 16355postlink_cmds=$lt_postlink_cmds 16356 16357# Specify filename containing input files. 16358file_list_spec=$lt_file_list_spec 16359 16360# How to hardcode a shared library path into an executable. 16361hardcode_action=$hardcode_action 16362 16363# ### END LIBTOOL CONFIG 16364 16365_LT_EOF 16366 16367 cat <<'_LT_EOF' >> "$cfgfile" 16368 16369# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 16370 16371# func_munge_path_list VARIABLE PATH 16372# ----------------------------------- 16373# VARIABLE is name of variable containing _space_ separated list of 16374# directories to be munged by the contents of PATH, which is string 16375# having a format: 16376# "DIR[:DIR]:" 16377# string "DIR[ DIR]" will be prepended to VARIABLE 16378# ":DIR[:DIR]" 16379# string "DIR[ DIR]" will be appended to VARIABLE 16380# "DIRP[:DIRP]::[DIRA:]DIRA" 16381# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16382# "DIRA[ DIRA]" will be appended to VARIABLE 16383# "DIR[:DIR]" 16384# VARIABLE will be replaced by "DIR[ DIR]" 16385func_munge_path_list () 16386{ 16387 case x@S|@2 in 16388 x) 16389 ;; 16390 *:) 16391 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 16392 ;; 16393 x:*) 16394 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 16395 ;; 16396 *::*) 16397 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16398 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 16399 ;; 16400 *) 16401 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 16402 ;; 16403 esac 16404} 16405 16406 16407# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16408func_cc_basename () 16409{ 16410 for cc_temp in @S|@*""; do 16411 case $cc_temp in 16412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16414 \-*) ;; 16415 *) break;; 16416 esac 16417 done 16418 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16419} 16420 16421 16422# ### END FUNCTIONS SHARED WITH CONFIGURE 16423 16424_LT_EOF 16425 16426 case $host_os in 16427 aix3*) 16428 cat <<\_LT_EOF >> "$cfgfile" 16429# AIX sometimes has problems with the GCC collect2 program. For some 16430# reason, if we set the COLLECT_NAMES environment variable, the problems 16431# vanish in a puff of smoke. 16432if test set != "${COLLECT_NAMES+set}"; then 16433 COLLECT_NAMES= 16434 export COLLECT_NAMES 16435fi 16436_LT_EOF 16437 ;; 16438 esac 16439 16440 16441ltmain=$ac_aux_dir/ltmain.sh 16442 16443 16444 # We use sed instead of cat because bash on DJGPP gets confused if 16445 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16446 # text mode, it properly converts lines to CR/LF. This bash problem 16447 # is reportedly fixed, but why not run on old versions too? 16448 sed '$q' "$ltmain" >> "$cfgfile" \ 16449 || (rm -f "$cfgfile"; exit 1) 16450 16451 mv -f "$cfgfile" "$ofile" || 16452 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16453 chmod +x "$ofile" 16454 16455 ;; 16456 16457 esac 16458done # for ac_tag 16459 16460 16461as_fn_exit 0 16462_ACEOF 16463ac_clean_files=$ac_clean_files_save 16464 16465test $ac_write_fail = 0 || 16466 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16467 16468 16469# configure is writing to config.log, and then calls config.status. 16470# config.status does its own redirection, appending to config.log. 16471# Unfortunately, on DOS this fails, as config.log is still kept open 16472# by configure, so config.status won't be able to write to it; its 16473# output is simply discarded. So we exec the FD to /dev/null, 16474# effectively closing config.log, so it can be properly (re)opened and 16475# appended to by config.status. When coming back to configure, we 16476# need to make the FD available again. 16477if test "$no_create" != yes; then 16478 ac_cs_success=: 16479 ac_config_status_args= 16480 test "$silent" = yes && 16481 ac_config_status_args="$ac_config_status_args --quiet" 16482 exec 5>/dev/null 16483 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16484 exec 5>>config.log 16485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16486 # would make configure fail if this is the last instruction. 16487 $ac_cs_success || as_fn_exit 1 16488fi 16489if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16491$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16492fi 16493 16494