1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for libctf 1.2.0. 4 # 5 # 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7 # 8 # 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## -------------------- ## 12 ## M4sh Initialization. ## 13 ## -------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30 esac 31 fi 32 33 34 as_nl=' 35 ' 36 export as_nl 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41 # Prefer a ksh shell builtin over an external printf program on Solaris, 42 # but without wasting forks for bash or zsh. 43 if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50 else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70 fi 71 72 # The user is always right. 73 if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79 fi 80 81 82 # IFS 83 # We need space, tab and new line, in precisely that order. Quoting is 84 # there to prevent editors from complaining about space-tab. 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 86 # splitting by setting IFS to empty value.) 87 IFS=" "" $as_nl" 88 89 # Find who we are. Look in the path if we contain no directory separator. 90 as_myself= 91 case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 for as_dir in $PATH 95 do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100 IFS=$as_save_IFS 101 102 ;; 103 esac 104 # We did not find ourselves, most probably we were run as `sh COMMAND' 105 # in which case we are not to be found in the path. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112 fi 113 114 # Unset variables that we do not need and which cause bugs (e.g. in 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116 # suppresses any "Segmentation fault" message there. '((' could 117 # trigger a bug in pdksh 5.2.14. 118 for as_var in BASH_ENV ENV MAIL MAILPATH 119 do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121 done 122 PS1='$ ' 123 PS2='> ' 124 PS4='+ ' 125 126 # NLS nuisances. 127 LC_ALL=C 128 export LC_ALL 129 LANGUAGE=C 130 export LANGUAGE 131 132 # CDPATH. 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135 # Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140 # neutralization value for shells without unset; and this also 141 # works around shells that cannot unset nonexistent variables. 142 # Preserve -v and -x to the replacement shell. 143 BASH_ENV=/dev/null 144 ENV=/dev/null 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146 case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151 esac 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153 # Admittedly, this is quite paranoid, since all the known shells bail 154 # out after a failed `exec'. 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156 as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160 if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168 else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174 esac 175 fi 176 " 177 as_required="as_fn_return () { (exit \$1); } 178 as_fn_success () { as_fn_return 0; } 179 as_fn_failure () { as_fn_return 1; } 180 as_fn_ret_success () { return 0; } 181 as_fn_ret_failure () { return 1; } 182 183 exitcode=0 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190 else 191 exitcode=1; echo positional parameters were not saved. 192 fi 193 test x\$exitcode = x0 || exit 1 194 test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system, 276 $0: 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 281 fi 282 fi 283 fi 284 SHELL=${CONFIG_SHELL-/bin/sh} 285 export SHELL 286 # Unset more variables known to interfere with behavior of common tools. 287 CLICOLOR_FORCE= GREP_OPTIONS= 288 unset CLICOLOR_FORCE GREP_OPTIONS 289 290 ## --------------------- ## 291 ## M4sh Shell Functions. ## 292 ## --------------------- ## 293 # as_fn_unset VAR 294 # --------------- 295 # Portably unset VAR. 296 as_fn_unset () 297 { 298 { eval $1=; unset $1;} 299 } 300 as_unset=as_fn_unset 301 302 # as_fn_set_status STATUS 303 # ----------------------- 304 # Set $? to STATUS, without forking. 305 as_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. 313 as_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 "$as_dir" as a directory, including parents if necessary. 323 as_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. 371 as_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. 381 if (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 }' 386 else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391 fi # 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 $as_val. Take advantage of shells that can avoid forks. The arguments 397 # must be portable across $(()) and expr. 398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403 else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408 fi # as_fn_arith 409 410 411 # as_fn_error STATUS ERROR [LINENO LOG_FD] 412 # ---------------------------------------- 413 # Output "`basename $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. 416 as_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 427 if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430 else 431 as_expr=false 432 fi 433 434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436 else 437 as_basename=false 438 fi 439 440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442 else 443 as_dirname=false 444 fi 445 446 as_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. 466 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469 as_cr_digits='0123456789' 470 as_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 508 ECHO_C= ECHO_N= ECHO_T= 509 case `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';; 519 esac 520 521 rm -f conf$$ conf$$.exe conf$$.file 522 if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524 else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527 fi 528 if (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 542 else 543 as_ln_s='cp -pR' 544 fi 545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546 rmdir conf$$.dir 2>/dev/null 547 548 if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550 else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553 fi 554 555 as_test_x='test -x' 556 as_executable_p=as_fn_executable_p 557 558 # Sed expression to map a string onto a valid CPP name. 559 as_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. 562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564 SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567 test -n "$DJDIR" || exec 7<&0 </dev/null 568 exec 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. 573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575 # 576 # Initializations. 577 # 578 ac_default_prefix=/usr/local 579 ac_clean_files= 580 ac_config_libobj_dir=. 581 LIBOBJS= 582 cross_compiling=no 583 subdirs= 584 MFLAGS= 585 MAKEFLAGS= 586 587 # Identity of this package. 588 PACKAGE_NAME='libctf' 589 PACKAGE_TARNAME='libctf' 590 PACKAGE_VERSION='1.2.0' 591 PACKAGE_STRING='libctf 1.2.0' 592 PACKAGE_BUGREPORT='' 593 PACKAGE_URL='' 594 595 ac_unique_file="ctf-impl.h" 596 # Factoring default headers for most tests. 597 ac_includes_default="\ 598 #include <stdio.h> 599 #ifdef HAVE_SYS_TYPES_H 600 # include <sys/types.h> 601 #endif 602 #ifdef HAVE_SYS_STAT_H 603 # include <sys/stat.h> 604 #endif 605 #ifdef STDC_HEADERS 606 # include <stdlib.h> 607 # include <stddef.h> 608 #else 609 # ifdef HAVE_STDLIB_H 610 # include <stdlib.h> 611 # endif 612 #endif 613 #ifdef HAVE_STRING_H 614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615 # include <memory.h> 616 # endif 617 # include <string.h> 618 #endif 619 #ifdef HAVE_STRINGS_H 620 # include <strings.h> 621 #endif 622 #ifdef HAVE_INTTYPES_H 623 # include <inttypes.h> 624 #endif 625 #ifdef HAVE_STDINT_H 626 # include <stdint.h> 627 #endif 628 #ifdef HAVE_UNISTD_H 629 # include <unistd.h> 630 #endif" 631 632 gt_needs= 633 ac_header_list= 634 ac_func_list= 635 ac_subst_vars='am__EXEEXT_FALSE 636 am__EXEEXT_TRUE 637 LTLIBOBJS 638 LIBOBJS 639 VERSION_FLAGS_NOBFD 640 VERSION_FLAGS 641 HAVE_TCL_TRY 642 EXPECT 643 CTF_LIBADD 644 SHARED_LDFLAGS 645 BUILD_INFO_FALSE 646 BUILD_INFO_TRUE 647 NEED_CTF_QSORT_R_FALSE 648 NEED_CTF_QSORT_R_TRUE 649 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE 650 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE 651 zlibinc 652 zlibdir 653 ac_libctf_warn_cflags 654 bfdincludedir 655 bfdlibdir 656 target_noncanonical 657 host_noncanonical 658 INSTALL_LIBBFD_FALSE 659 INSTALL_LIBBFD_TRUE 660 MAINT 661 MAINTAINER_MODE_FALSE 662 MAINTAINER_MODE_TRUE 663 WERROR 664 WARN_PEDANTIC 665 c_warn 666 warn 667 OTOOL64 668 OTOOL 669 LIPO 670 NMEDIT 671 DSYMUTIL 672 OBJDUMP 673 LN_S 674 NM 675 ac_ct_DUMPBIN 676 DUMPBIN 677 LD 678 FGREP 679 SED 680 LIBTOOL 681 CATOBJEXT 682 GENCAT 683 INSTOBJEXT 684 DATADIRNAME 685 CATALOGS 686 INCINTL 687 LIBINTL_DEP 688 POSUB 689 LTLIBINTL 690 LIBINTL 691 INTLLIBS 692 LTLIBICONV 693 LIBICONV 694 INTL_MACOSX_LIBS 695 MSGMERGE 696 XGETTEXT 697 GMSGFMT 698 MSGFMT 699 USE_NLS 700 MKINSTALLDIRS 701 ac_ct_AR 702 AR 703 RANLIB 704 AM_BACKSLASH 705 AM_DEFAULT_VERBOSITY 706 AM_DEFAULT_V 707 AM_V 708 am__fastdepCC_FALSE 709 am__fastdepCC_TRUE 710 CCDEPMODE 711 am__nodep 712 AMDEPBACKSLASH 713 AMDEP_FALSE 714 AMDEP_TRUE 715 am__quote 716 am__include 717 DEPDIR 718 am__untar 719 am__tar 720 AMTAR 721 am__leading_dot 722 SET_MAKE 723 AWK 724 mkdir_p 725 MKDIR_P 726 INSTALL_STRIP_PROGRAM 727 STRIP 728 install_sh 729 MAKEINFO 730 AUTOHEADER 731 AUTOMAKE 732 AUTOCONF 733 ACLOCAL 734 VERSION 735 PACKAGE 736 CYGPATH_W 737 am__isrc 738 INSTALL_DATA 739 INSTALL_SCRIPT 740 INSTALL_PROGRAM 741 EGREP 742 GREP 743 CPP 744 OBJEXT 745 EXEEXT 746 ac_ct_CC 747 CPPFLAGS 748 LDFLAGS 749 CFLAGS 750 CC 751 target_os 752 target_vendor 753 target_cpu 754 target 755 host_os 756 host_vendor 757 host_cpu 758 host 759 build_os 760 build_vendor 761 build_cpu 762 build 763 target_alias 764 host_alias 765 build_alias 766 LIBS 767 ECHO_T 768 ECHO_N 769 ECHO_C 770 DEFS 771 mandir 772 localedir 773 libdir 774 psdir 775 pdfdir 776 dvidir 777 htmldir 778 infodir 779 docdir 780 oldincludedir 781 includedir 782 localstatedir 783 sharedstatedir 784 sysconfdir 785 datadir 786 datarootdir 787 libexecdir 788 sbindir 789 bindir 790 program_transform_name 791 prefix 792 exec_prefix 793 PACKAGE_URL 794 PACKAGE_BUGREPORT 795 PACKAGE_STRING 796 PACKAGE_VERSION 797 PACKAGE_TARNAME 798 PACKAGE_NAME 799 PATH_SEPARATOR 800 SHELL' 801 ac_subst_files='' 802 ac_user_opts=' 803 enable_option_checking 804 enable_dependency_tracking 805 enable_silent_rules 806 enable_nls 807 with_gnu_ld 808 enable_rpath 809 with_libiconv_prefix 810 with_libiconv_type 811 with_libintl_prefix 812 with_libintl_type 813 enable_shared 814 enable_static 815 with_pic 816 enable_fast_install 817 enable_libtool_lock 818 enable_largefile 819 enable_werror_always 820 enable_maintainer_mode 821 enable_install_libbfd 822 with_system_zlib 823 enable_libctf_hash_debugging 824 ' 825 ac_precious_vars='build_alias 826 host_alias 827 target_alias 828 CC 829 CFLAGS 830 LDFLAGS 831 LIBS 832 CPPFLAGS 833 CPP' 834 835 836 # Initialize some variables set by options. 837 ac_init_help= 838 ac_init_version=false 839 ac_unrecognized_opts= 840 ac_unrecognized_sep= 841 # The variables have the same names as the options, with 842 # dashes changed to underlines. 843 cache_file=/dev/null 844 exec_prefix=NONE 845 no_create= 846 no_recursion= 847 prefix=NONE 848 program_prefix=NONE 849 program_suffix=NONE 850 program_transform_name=s,x,x, 851 silent= 852 site= 853 srcdir= 854 verbose= 855 x_includes=NONE 856 x_libraries=NONE 857 858 # Installation directory options. 859 # These are left unexpanded so users can "make install exec_prefix=/foo" 860 # and all the variables that are supposed to be based on exec_prefix 861 # by default will actually change. 862 # Use braces instead of parens because sh, perl, etc. also accept them. 863 # (The list follows the same order as the GNU Coding Standards.) 864 bindir='${exec_prefix}/bin' 865 sbindir='${exec_prefix}/sbin' 866 libexecdir='${exec_prefix}/libexec' 867 datarootdir='${prefix}/share' 868 datadir='${datarootdir}' 869 sysconfdir='${prefix}/etc' 870 sharedstatedir='${prefix}/com' 871 localstatedir='${prefix}/var' 872 includedir='${prefix}/include' 873 oldincludedir='/usr/include' 874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 875 infodir='${datarootdir}/info' 876 htmldir='${docdir}' 877 dvidir='${docdir}' 878 pdfdir='${docdir}' 879 psdir='${docdir}' 880 libdir='${exec_prefix}/lib' 881 localedir='${datarootdir}/locale' 882 mandir='${datarootdir}/man' 883 884 ac_prev= 885 ac_dashdash= 886 for ac_option 887 do 888 # If the previous option needs an argument, assign it. 889 if test -n "$ac_prev"; then 890 eval $ac_prev=\$ac_option 891 ac_prev= 892 continue 893 fi 894 895 case $ac_option in 896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 897 *=) ac_optarg= ;; 898 *) ac_optarg=yes ;; 899 esac 900 901 # Accept the important Cygnus configure options, so we can diagnose typos. 902 903 case $ac_dashdash$ac_option in 904 --) 905 ac_dashdash=yes ;; 906 907 -bindir | --bindir | --bindi | --bind | --bin | --bi) 908 ac_prev=bindir ;; 909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 910 bindir=$ac_optarg ;; 911 912 -build | --build | --buil | --bui | --bu) 913 ac_prev=build_alias ;; 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 915 build_alias=$ac_optarg ;; 916 917 -cache-file | --cache-file | --cache-fil | --cache-fi \ 918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 919 ac_prev=cache_file ;; 920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 922 cache_file=$ac_optarg ;; 923 924 --config-cache | -C) 925 cache_file=config.cache ;; 926 927 -datadir | --datadir | --datadi | --datad) 928 ac_prev=datadir ;; 929 -datadir=* | --datadir=* | --datadi=* | --datad=*) 930 datadir=$ac_optarg ;; 931 932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 933 | --dataroo | --dataro | --datar) 934 ac_prev=datarootdir ;; 935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 937 datarootdir=$ac_optarg ;; 938 939 -disable-* | --disable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948 "enable_$ac_useropt" 949 "*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=no ;; 954 955 -docdir | --docdir | --docdi | --doc | --do) 956 ac_prev=docdir ;; 957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 958 docdir=$ac_optarg ;; 959 960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 961 ac_prev=dvidir ;; 962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 963 dvidir=$ac_optarg ;; 964 965 -enable-* | --enable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974 "enable_$ac_useropt" 975 "*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=\$ac_optarg ;; 980 981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 983 | --exec | --exe | --ex) 984 ac_prev=exec_prefix ;; 985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 987 | --exec=* | --exe=* | --ex=*) 988 exec_prefix=$ac_optarg ;; 989 990 -gas | --gas | --ga | --g) 991 # Obsolete; use --with-gas. 992 with_gas=yes ;; 993 994 -help | --help | --hel | --he | -h) 995 ac_init_help=long ;; 996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 997 ac_init_help=recursive ;; 998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 999 ac_init_help=short ;; 1000 1001 -host | --host | --hos | --ho) 1002 ac_prev=host_alias ;; 1003 -host=* | --host=* | --hos=* | --ho=*) 1004 host_alias=$ac_optarg ;; 1005 1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1007 ac_prev=htmldir ;; 1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1009 | --ht=*) 1010 htmldir=$ac_optarg ;; 1011 1012 -includedir | --includedir | --includedi | --included | --include \ 1013 | --includ | --inclu | --incl | --inc) 1014 ac_prev=includedir ;; 1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1016 | --includ=* | --inclu=* | --incl=* | --inc=*) 1017 includedir=$ac_optarg ;; 1018 1019 -infodir | --infodir | --infodi | --infod | --info | --inf) 1020 ac_prev=infodir ;; 1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1022 infodir=$ac_optarg ;; 1023 1024 -libdir | --libdir | --libdi | --libd) 1025 ac_prev=libdir ;; 1026 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1027 libdir=$ac_optarg ;; 1028 1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1030 | --libexe | --libex | --libe) 1031 ac_prev=libexecdir ;; 1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1033 | --libexe=* | --libex=* | --libe=*) 1034 libexecdir=$ac_optarg ;; 1035 1036 -localedir | --localedir | --localedi | --localed | --locale) 1037 ac_prev=localedir ;; 1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1039 localedir=$ac_optarg ;; 1040 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1042 | --localstate | --localstat | --localsta | --localst | --locals) 1043 ac_prev=localstatedir ;; 1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1046 localstatedir=$ac_optarg ;; 1047 1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1049 ac_prev=mandir ;; 1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1051 mandir=$ac_optarg ;; 1052 1053 -nfp | --nfp | --nf) 1054 # Obsolete; use --without-fp. 1055 with_fp=no ;; 1056 1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1058 | --no-cr | --no-c | -n) 1059 no_create=yes ;; 1060 1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1063 no_recursion=yes ;; 1064 1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1067 | --oldin | --oldi | --old | --ol | --o) 1068 ac_prev=oldincludedir ;; 1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1072 oldincludedir=$ac_optarg ;; 1073 1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1075 ac_prev=prefix ;; 1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1077 prefix=$ac_optarg ;; 1078 1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1080 | --program-pre | --program-pr | --program-p) 1081 ac_prev=program_prefix ;; 1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1084 program_prefix=$ac_optarg ;; 1085 1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1087 | --program-suf | --program-su | --program-s) 1088 ac_prev=program_suffix ;; 1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1091 program_suffix=$ac_optarg ;; 1092 1093 -program-transform-name | --program-transform-name \ 1094 | --program-transform-nam | --program-transform-na \ 1095 | --program-transform-n | --program-transform- \ 1096 | --program-transform | --program-transfor \ 1097 | --program-transfo | --program-transf \ 1098 | --program-trans | --program-tran \ 1099 | --progr-tra | --program-tr | --program-t) 1100 ac_prev=program_transform_name ;; 1101 -program-transform-name=* | --program-transform-name=* \ 1102 | --program-transform-nam=* | --program-transform-na=* \ 1103 | --program-transform-n=* | --program-transform-=* \ 1104 | --program-transform=* | --program-transfor=* \ 1105 | --program-transfo=* | --program-transf=* \ 1106 | --program-trans=* | --program-tran=* \ 1107 | --progr-tra=* | --program-tr=* | --program-t=*) 1108 program_transform_name=$ac_optarg ;; 1109 1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1111 ac_prev=pdfdir ;; 1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1113 pdfdir=$ac_optarg ;; 1114 1115 -psdir | --psdir | --psdi | --psd | --ps) 1116 ac_prev=psdir ;; 1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1118 psdir=$ac_optarg ;; 1119 1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1121 | -silent | --silent | --silen | --sile | --sil) 1122 silent=yes ;; 1123 1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1125 ac_prev=sbindir ;; 1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1127 | --sbi=* | --sb=*) 1128 sbindir=$ac_optarg ;; 1129 1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1132 | --sharedst | --shareds | --shared | --share | --shar \ 1133 | --sha | --sh) 1134 ac_prev=sharedstatedir ;; 1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1138 | --sha=* | --sh=*) 1139 sharedstatedir=$ac_optarg ;; 1140 1141 -site | --site | --sit) 1142 ac_prev=site ;; 1143 -site=* | --site=* | --sit=*) 1144 site=$ac_optarg ;; 1145 1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1147 ac_prev=srcdir ;; 1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1149 srcdir=$ac_optarg ;; 1150 1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1152 | --syscon | --sysco | --sysc | --sys | --sy) 1153 ac_prev=sysconfdir ;; 1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1156 sysconfdir=$ac_optarg ;; 1157 1158 -target | --target | --targe | --targ | --tar | --ta | --t) 1159 ac_prev=target_alias ;; 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1161 target_alias=$ac_optarg ;; 1162 1163 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1164 verbose=yes ;; 1165 1166 -version | --version | --versio | --versi | --vers | -V) 1167 ac_init_version=: ;; 1168 1169 -with-* | --with-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178 "with_$ac_useropt" 1179 "*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=\$ac_optarg ;; 1184 1185 -without-* | --without-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194 "with_$ac_useropt" 1195 "*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=no ;; 1200 1201 --x) 1202 # Obsolete; use --with-x. 1203 with_x=yes ;; 1204 1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1206 | --x-incl | --x-inc | --x-in | --x-i) 1207 ac_prev=x_includes ;; 1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1210 x_includes=$ac_optarg ;; 1211 1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1214 ac_prev=x_libraries ;; 1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1217 x_libraries=$ac_optarg ;; 1218 1219 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1220 Try \`$0 --help' for more information" 1221 ;; 1222 1223 *=*) 1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1225 # Reject names that are not valid shell variable names. 1226 case $ac_envvar in #( 1227 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1229 esac 1230 eval $ac_envvar=\$ac_optarg 1231 export $ac_envvar ;; 1232 1233 *) 1234 # FIXME: should be removed in autoconf 3.0. 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1239 ;; 1240 1241 esac 1242 done 1243 1244 if test -n "$ac_prev"; then 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1246 as_fn_error $? "missing argument to $ac_option" 1247 fi 1248 1249 if test -n "$ac_unrecognized_opts"; then 1250 case $enable_option_checking in 1251 no) ;; 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1254 esac 1255 fi 1256 1257 # Check all directory arguments for consistency. 1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1259 datadir sysconfdir sharedstatedir localstatedir includedir \ 1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1261 libdir localedir mandir 1262 do 1263 eval ac_val=\$$ac_var 1264 # Remove trailing slashes. 1265 case $ac_val in 1266 */ ) 1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1268 eval $ac_var=\$ac_val;; 1269 esac 1270 # Be sure to have absolute directory names. 1271 case $ac_val in 1272 [\\/$]* | ?:[\\/]* ) continue;; 1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1274 esac 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1276 done 1277 1278 # There might be people who depend on the old broken behavior: `$host' 1279 # used to hold the argument of --host etc. 1280 # FIXME: To remove some day. 1281 build=$build_alias 1282 host=$host_alias 1283 target=$target_alias 1284 1285 # FIXME: To remove some day. 1286 if test "x$host_alias" != x; then 1287 if test "x$build_alias" = x; then 1288 cross_compiling=maybe 1289 elif test "x$build_alias" != "x$host_alias"; then 1290 cross_compiling=yes 1291 fi 1292 fi 1293 1294 ac_tool_prefix= 1295 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1296 1297 test "$silent" = yes && exec 6>/dev/null 1298 1299 1300 ac_pwd=`pwd` && test -n "$ac_pwd" && 1301 ac_ls_di=`ls -di .` && 1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1303 as_fn_error $? "working directory cannot be determined" 1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1305 as_fn_error $? "pwd does not report name of working directory" 1306 1307 1308 # Find the source files, if location was not specified. 1309 if test -z "$srcdir"; then 1310 ac_srcdir_defaulted=yes 1311 # Try the directory containing this script, then the parent directory. 1312 ac_confdir=`$as_dirname -- "$as_myself" || 1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1314 X"$as_myself" : 'X\(//\)[^/]' \| \ 1315 X"$as_myself" : 'X\(//\)$' \| \ 1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1317 $as_echo X"$as_myself" | 1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)[^/].*/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)$/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\).*/{ 1331 s//\1/ 1332 q 1333 } 1334 s/.*/./; q'` 1335 srcdir=$ac_confdir 1336 if test ! -r "$srcdir/$ac_unique_file"; then 1337 srcdir=.. 1338 fi 1339 else 1340 ac_srcdir_defaulted=no 1341 fi 1342 if test ! -r "$srcdir/$ac_unique_file"; then 1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1345 fi 1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1347 ac_abs_confdir=`( 1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1349 pwd)` 1350 # When building in place, set srcdir=. 1351 if test "$ac_abs_confdir" = "$ac_pwd"; then 1352 srcdir=. 1353 fi 1354 # Remove unnecessary trailing slashes from srcdir. 1355 # Double slashes in file names in object file debugging info 1356 # mess up M-x gdb in Emacs. 1357 case $srcdir in 1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1359 esac 1360 for ac_var in $ac_precious_vars; do 1361 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_env_${ac_var}_value=\$${ac_var} 1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1365 done 1366 1367 # 1368 # Report the --help message. 1369 # 1370 if test "$ac_init_help" = "long"; then 1371 # Omit some internal or obsolete options to make the list less imposing. 1372 # This message is too long to be a string in the A/UX 3.1 sh. 1373 cat <<_ACEOF 1374 \`configure' configures libctf 1.2.0 to adapt to many kinds of systems. 1375 1376 Usage: $0 [OPTION]... [VAR=VALUE]... 1377 1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1379 VAR=VALUE. See below for descriptions of some of the useful variables. 1380 1381 Defaults for the options are specified in brackets. 1382 1383 Configuration: 1384 -h, --help display this help and exit 1385 --help=short display options specific to this package 1386 --help=recursive display the short help of all the included packages 1387 -V, --version display version information and exit 1388 -q, --quiet, --silent do not print \`checking ...' messages 1389 --cache-file=FILE cache test results in FILE [disabled] 1390 -C, --config-cache alias for \`--cache-file=config.cache' 1391 -n, --no-create do not create output files 1392 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1393 1394 Installation directories: 1395 --prefix=PREFIX install architecture-independent files in PREFIX 1396 [$ac_default_prefix] 1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1398 [PREFIX] 1399 1400 By default, \`make install' will install all the files in 1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1403 for instance \`--prefix=\$HOME'. 1404 1405 For better control, use the options below. 1406 1407 Fine tuning of the installation directories: 1408 --bindir=DIR user executables [EPREFIX/bin] 1409 --sbindir=DIR system admin executables [EPREFIX/sbin] 1410 --libexecdir=DIR program executables [EPREFIX/libexec] 1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1414 --libdir=DIR object code libraries [EPREFIX/lib] 1415 --includedir=DIR C header files [PREFIX/include] 1416 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1419 --infodir=DIR info documentation [DATAROOTDIR/info] 1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1421 --mandir=DIR man documentation [DATAROOTDIR/man] 1422 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf] 1423 --htmldir=DIR html documentation [DOCDIR] 1424 --dvidir=DIR dvi documentation [DOCDIR] 1425 --pdfdir=DIR pdf documentation [DOCDIR] 1426 --psdir=DIR ps documentation [DOCDIR] 1427 _ACEOF 1428 1429 cat <<\_ACEOF 1430 1431 Program names: 1432 --program-prefix=PREFIX prepend PREFIX to installed program names 1433 --program-suffix=SUFFIX append SUFFIX to installed program names 1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1435 1436 System types: 1437 --build=BUILD configure for building on BUILD [guessed] 1438 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1439 --target=TARGET configure for building compilers for TARGET [HOST] 1440 _ACEOF 1441 fi 1442 1443 if test -n "$ac_init_help"; then 1444 case $ac_init_help in 1445 short | recursive ) echo "Configuration of libctf 1.2.0:";; 1446 esac 1447 cat <<\_ACEOF 1448 1449 Optional Features: 1450 --disable-option-checking ignore unrecognized --enable/--with options 1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1453 --enable-dependency-tracking 1454 do not reject slow dependency extractors 1455 --disable-dependency-tracking 1456 speeds up one-time build 1457 --enable-silent-rules less verbose build output (undo: "make V=1") 1458 --disable-silent-rules verbose build output (undo: "make V=0") 1459 --disable-nls do not use Native Language Support 1460 --disable-rpath do not hardcode runtime library paths 1461 --enable-shared[=PKGS] build shared libraries [default=no] 1462 --enable-static[=PKGS] build static libraries [default=yes] 1463 --enable-fast-install[=PKGS] 1464 optimize for fast installation [default=yes] 1465 --disable-libtool-lock avoid locking (might break parallel builds) 1466 --disable-largefile omit support for large files 1467 --enable-werror-always enable -Werror despite compiler version 1468 --enable-maintainer-mode 1469 enable make rules and dependencies not useful (and 1470 sometimes confusing) to the casual installer 1471 --enable-install-libbfd controls installation of libbfd and related headers 1472 --enable-libctf-hash-debugging 1473 Enable expensive debugging of CTF deduplication type 1474 hashing [default=no] 1475 1476 Optional Packages: 1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1479 --with-gnu-ld assume the C compiler uses GNU ld default=no 1480 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1481 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1482 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1483 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1484 --without-libintl-prefix don't search for libintl in includedir and libdir 1485 --with-libintl-type=TYPE type of library to search for (auto/static/shared) 1486 --with-pic try to use only PIC/non-PIC objects [default=use 1487 both] 1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1489 --with-system-zlib use installed libz 1490 1491 Some influential environment variables: 1492 CC C compiler command 1493 CFLAGS C compiler flags 1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1495 nonstandard directory <lib dir> 1496 LIBS libraries to pass to the linker, e.g. -l<library> 1497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1498 you have headers in a nonstandard directory <include dir> 1499 CPP C preprocessor 1500 1501 Use these variables to override the choices made by `configure' or to help 1502 it to find libraries and programs with nonstandard names/locations. 1503 1504 Report bugs to the package provider. 1505 _ACEOF 1506 ac_status=$? 1507 fi 1508 1509 if test "$ac_init_help" = "recursive"; then 1510 # If there are subdirs, report their specific --help. 1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1512 test -d "$ac_dir" || 1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1514 continue 1515 ac_builddir=. 1516 1517 case "$ac_dir" in 1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519 *) 1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1521 # A ".." for each directory in $ac_dir_suffix. 1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1523 case $ac_top_builddir_sub in 1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526 esac ;; 1527 esac 1528 ac_abs_top_builddir=$ac_pwd 1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1530 # for backward compatibility: 1531 ac_top_builddir=$ac_top_build_prefix 1532 1533 case $srcdir in 1534 .) # We are building in place. 1535 ac_srcdir=. 1536 ac_top_srcdir=$ac_top_builddir_sub 1537 ac_abs_top_srcdir=$ac_pwd ;; 1538 [\\/]* | ?:[\\/]* ) # Absolute name. 1539 ac_srcdir=$srcdir$ac_dir_suffix; 1540 ac_top_srcdir=$srcdir 1541 ac_abs_top_srcdir=$srcdir ;; 1542 *) # Relative name. 1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544 ac_top_srcdir=$ac_top_build_prefix$srcdir 1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546 esac 1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548 1549 cd "$ac_dir" || { ac_status=$?; continue; } 1550 # Check for guested configure. 1551 if test -f "$ac_srcdir/configure.gnu"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1554 elif test -f "$ac_srcdir/configure"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure" --help=recursive 1557 else 1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1559 fi || ac_status=$? 1560 cd "$ac_pwd" || { ac_status=$?; break; } 1561 done 1562 fi 1563 1564 test -n "$ac_init_help" && exit $ac_status 1565 if $ac_init_version; then 1566 cat <<\_ACEOF 1567 libctf configure 1.2.0 1568 generated by GNU Autoconf 2.69 1569 1570 Copyright (C) 2012 Free Software Foundation, Inc. 1571 This configure script is free software; the Free Software Foundation 1572 gives unlimited permission to copy, distribute and modify it. 1573 _ACEOF 1574 exit 1575 fi 1576 1577 ## ------------------------ ## 1578 ## Autoconf initialization. ## 1579 ## ------------------------ ## 1580 1581 # ac_fn_c_try_compile LINENO 1582 # -------------------------- 1583 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1584 ac_fn_c_try_compile () 1585 { 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 rm -f conftest.$ac_objext 1588 if { { ac_try="$ac_compile" 1589 case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592 esac 1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594 $as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_compile") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } && { 1604 test -z "$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 } && test -s conftest.$ac_objext; then : 1607 ac_retval=0 1608 else 1609 $as_echo "$as_me: failed program was:" >&5 1610 sed 's/^/| /' conftest.$ac_ext >&5 1611 1612 ac_retval=1 1613 fi 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 as_fn_set_status $ac_retval 1616 1617 } # ac_fn_c_try_compile 1618 1619 # ac_fn_c_try_cpp LINENO 1620 # ---------------------- 1621 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1622 ac_fn_c_try_cpp () 1623 { 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 if { { ac_try="$ac_cpp conftest.$ac_ext" 1626 case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629 esac 1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631 $as_echo "$ac_try_echo"; } >&5 1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1633 ac_status=$? 1634 if test -s conftest.err; then 1635 grep -v '^ *+' conftest.err >conftest.er1 1636 cat conftest.er1 >&5 1637 mv -f conftest.er1 conftest.err 1638 fi 1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1640 test $ac_status = 0; } > conftest.i && { 1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1642 test ! -s conftest.err 1643 }; then : 1644 ac_retval=0 1645 else 1646 $as_echo "$as_me: failed program was:" >&5 1647 sed 's/^/| /' conftest.$ac_ext >&5 1648 1649 ac_retval=1 1650 fi 1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652 as_fn_set_status $ac_retval 1653 1654 } # ac_fn_c_try_cpp 1655 1656 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1657 # ------------------------------------------------------- 1658 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1659 # the include files in INCLUDES and setting the cache variable VAR 1660 # accordingly. 1661 ac_fn_c_check_header_mongrel () 1662 { 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 if eval \${$3+:} false; then : 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1666 $as_echo_n "checking for $2... " >&6; } 1667 if eval \${$3+:} false; then : 1668 $as_echo_n "(cached) " >&6 1669 fi 1670 eval ac_res=\$$3 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1672 $as_echo "$ac_res" >&6; } 1673 else 1674 # Is the header compilable? 1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1676 $as_echo_n "checking $2 usability... " >&6; } 1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1678 /* end confdefs.h. */ 1679 $4 1680 #include <$2> 1681 _ACEOF 1682 if ac_fn_c_try_compile "$LINENO"; then : 1683 ac_header_compiler=yes 1684 else 1685 ac_header_compiler=no 1686 fi 1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1689 $as_echo "$ac_header_compiler" >&6; } 1690 1691 # Is the header present? 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1693 $as_echo_n "checking $2 presence... " >&6; } 1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1695 /* end confdefs.h. */ 1696 #include <$2> 1697 _ACEOF 1698 if ac_fn_c_try_cpp "$LINENO"; then : 1699 ac_header_preproc=yes 1700 else 1701 ac_header_preproc=no 1702 fi 1703 rm -f conftest.err conftest.i conftest.$ac_ext 1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1705 $as_echo "$ac_header_preproc" >&6; } 1706 1707 # So? What about this header? 1708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1709 yes:no: ) 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1711 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1714 ;; 1715 no:yes:* ) 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1717 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1719 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1721 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1723 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1725 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1726 ;; 1727 esac 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729 $as_echo_n "checking for $2... " >&6; } 1730 if eval \${$3+:} false; then : 1731 $as_echo_n "(cached) " >&6 1732 else 1733 eval "$3=\$ac_header_compiler" 1734 fi 1735 eval ac_res=\$$3 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1737 $as_echo "$ac_res" >&6; } 1738 fi 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 1741 } # ac_fn_c_check_header_mongrel 1742 1743 # ac_fn_c_try_run LINENO 1744 # ---------------------- 1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1746 # that executables *can* be run. 1747 ac_fn_c_try_run () 1748 { 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 if { { ac_try="$ac_link" 1751 case "(($ac_try" in 1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1753 *) ac_try_echo=$ac_try;; 1754 esac 1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1756 $as_echo "$ac_try_echo"; } >&5 1757 (eval "$ac_link") 2>&5 1758 ac_status=$? 1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1761 { { case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764 esac 1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766 $as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_try") 2>&5 1768 ac_status=$? 1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; }; }; then : 1771 ac_retval=0 1772 else 1773 $as_echo "$as_me: program exited with status $ac_status" >&5 1774 $as_echo "$as_me: failed program was:" >&5 1775 sed 's/^/| /' conftest.$ac_ext >&5 1776 1777 ac_retval=$ac_status 1778 fi 1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 as_fn_set_status $ac_retval 1782 1783 } # ac_fn_c_try_run 1784 1785 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1786 # ------------------------------------------------------- 1787 # Tests whether HEADER exists and can be compiled using the include files in 1788 # INCLUDES, setting the cache variable VAR accordingly. 1789 ac_fn_c_check_header_compile () 1790 { 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1793 $as_echo_n "checking for $2... " >&6; } 1794 if eval \${$3+:} false; then : 1795 $as_echo_n "(cached) " >&6 1796 else 1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1798 /* end confdefs.h. */ 1799 $4 1800 #include <$2> 1801 _ACEOF 1802 if ac_fn_c_try_compile "$LINENO"; then : 1803 eval "$3=yes" 1804 else 1805 eval "$3=no" 1806 fi 1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1808 fi 1809 eval ac_res=\$$3 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1811 $as_echo "$ac_res" >&6; } 1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1813 1814 } # ac_fn_c_check_header_compile 1815 1816 # ac_fn_c_try_link LINENO 1817 # ----------------------- 1818 # Try to link conftest.$ac_ext, and return whether this succeeded. 1819 ac_fn_c_try_link () 1820 { 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 rm -f conftest.$ac_objext conftest$ac_exeext 1823 if { { ac_try="$ac_link" 1824 case "(($ac_try" in 1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1826 *) ac_try_echo=$ac_try;; 1827 esac 1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1829 $as_echo "$ac_try_echo"; } >&5 1830 (eval "$ac_link") 2>conftest.err 1831 ac_status=$? 1832 if test -s conftest.err; then 1833 grep -v '^ *+' conftest.err >conftest.er1 1834 cat conftest.er1 >&5 1835 mv -f conftest.er1 conftest.err 1836 fi 1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1838 test $ac_status = 0; } && { 1839 test -z "$ac_c_werror_flag" || 1840 test ! -s conftest.err 1841 } && test -s conftest$ac_exeext && { 1842 test "$cross_compiling" = yes || 1843 test -x conftest$ac_exeext 1844 }; then : 1845 ac_retval=0 1846 else 1847 $as_echo "$as_me: failed program was:" >&5 1848 sed 's/^/| /' conftest.$ac_ext >&5 1849 1850 ac_retval=1 1851 fi 1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1854 # interfere with the next link command; also delete a directory that is 1855 # left behind by Apple's compiler. We do this before executing the actions. 1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 as_fn_set_status $ac_retval 1859 1860 } # ac_fn_c_try_link 1861 1862 # ac_fn_c_check_func LINENO FUNC VAR 1863 # ---------------------------------- 1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1865 ac_fn_c_check_func () 1866 { 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1869 $as_echo_n "checking for $2... " >&6; } 1870 if eval \${$3+:} false; then : 1871 $as_echo_n "(cached) " >&6 1872 else 1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1874 /* end confdefs.h. */ 1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1877 #define $2 innocuous_$2 1878 1879 /* System header to define __stub macros and hopefully few prototypes, 1880 which can conflict with char $2 (); below. 1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1882 <limits.h> exists even on freestanding compilers. */ 1883 1884 #ifdef __STDC__ 1885 # include <limits.h> 1886 #else 1887 # include <assert.h> 1888 #endif 1889 1890 #undef $2 1891 1892 /* Override any GCC internal prototype to avoid an error. 1893 Use char because int might match the return type of a GCC 1894 builtin and then its argument prototype would still apply. */ 1895 #ifdef __cplusplus 1896 extern "C" 1897 #endif 1898 char $2 (); 1899 /* The GNU C library defines this for functions which it implements 1900 to always fail with ENOSYS. Some functions are actually named 1901 something starting with __ and the normal name is an alias. */ 1902 #if defined __stub_$2 || defined __stub___$2 1903 choke me 1904 #endif 1905 1906 int 1907 main () 1908 { 1909 return $2 (); 1910 ; 1911 return 0; 1912 } 1913 _ACEOF 1914 if ac_fn_c_try_link "$LINENO"; then : 1915 eval "$3=yes" 1916 else 1917 eval "$3=no" 1918 fi 1919 rm -f core conftest.err conftest.$ac_objext \ 1920 conftest$ac_exeext conftest.$ac_ext 1921 fi 1922 eval ac_res=\$$3 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1924 $as_echo "$ac_res" >&6; } 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 1927 } # ac_fn_c_check_func 1928 1929 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1930 # --------------------------------------------- 1931 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1932 # accordingly. 1933 ac_fn_c_check_decl () 1934 { 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 as_decl_name=`echo $2|sed 's/ *(.*//'` 1937 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1939 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1940 if eval \${$3+:} false; then : 1941 $as_echo_n "(cached) " >&6 1942 else 1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1944 /* end confdefs.h. */ 1945 $4 1946 int 1947 main () 1948 { 1949 #ifndef $as_decl_name 1950 #ifdef __cplusplus 1951 (void) $as_decl_use; 1952 #else 1953 (void) $as_decl_name; 1954 #endif 1955 #endif 1956 1957 ; 1958 return 0; 1959 } 1960 _ACEOF 1961 if ac_fn_c_try_compile "$LINENO"; then : 1962 eval "$3=yes" 1963 else 1964 eval "$3=no" 1965 fi 1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1967 fi 1968 eval ac_res=\$$3 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1970 $as_echo "$ac_res" >&6; } 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 1973 } # ac_fn_c_check_decl 1974 cat >config.log <<_ACEOF 1975 This file contains any messages produced by compilers while 1976 running configure, to aid debugging if configure makes a mistake. 1977 1978 It was created by libctf $as_me 1.2.0, which was 1979 generated by GNU Autoconf 2.69. Invocation command line was 1980 1981 $ $0 $@ 1982 1983 _ACEOF 1984 exec 5>>config.log 1985 { 1986 cat <<_ASUNAME 1987 ## --------- ## 1988 ## Platform. ## 1989 ## --------- ## 1990 1991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1992 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1993 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1994 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1995 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1996 1997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1999 2000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2003 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2007 2008 _ASUNAME 2009 2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2011 for as_dir in $PATH 2012 do 2013 IFS=$as_save_IFS 2014 test -z "$as_dir" && as_dir=. 2015 $as_echo "PATH: $as_dir" 2016 done 2017 IFS=$as_save_IFS 2018 2019 } >&5 2020 2021 cat >&5 <<_ACEOF 2022 2023 2024 ## ----------- ## 2025 ## Core tests. ## 2026 ## ----------- ## 2027 2028 _ACEOF 2029 2030 2031 # Keep a trace of the command line. 2032 # Strip out --no-create and --no-recursion so they do not pile up. 2033 # Strip out --silent because we don't want to record it for future runs. 2034 # Also quote any args containing shell meta-characters. 2035 # Make two passes to allow for proper duplicate-argument suppression. 2036 ac_configure_args= 2037 ac_configure_args0= 2038 ac_configure_args1= 2039 ac_must_keep_next=false 2040 for ac_pass in 1 2 2041 do 2042 for ac_arg 2043 do 2044 case $ac_arg in 2045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2047 | -silent | --silent | --silen | --sile | --sil) 2048 continue ;; 2049 *\'*) 2050 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2051 esac 2052 case $ac_pass in 2053 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2054 2) 2055 as_fn_append ac_configure_args1 " '$ac_arg'" 2056 if test $ac_must_keep_next = true; then 2057 ac_must_keep_next=false # Got value, back to normal. 2058 else 2059 case $ac_arg in 2060 *=* | --config-cache | -C | -disable-* | --disable-* \ 2061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2063 | -with-* | --with-* | -without-* | --without-* | --x) 2064 case "$ac_configure_args0 " in 2065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2066 esac 2067 ;; 2068 -* ) ac_must_keep_next=true ;; 2069 esac 2070 fi 2071 as_fn_append ac_configure_args " '$ac_arg'" 2072 ;; 2073 esac 2074 done 2075 done 2076 { ac_configure_args0=; unset ac_configure_args0;} 2077 { ac_configure_args1=; unset ac_configure_args1;} 2078 2079 # When interrupted or exit'd, cleanup temporary files, and complete 2080 # config.log. We remove comments because anyway the quotes in there 2081 # would cause problems or look ugly. 2082 # WARNING: Use '\'' to represent an apostrophe within the trap. 2083 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2084 trap 'exit_status=$? 2085 # Save into config.log some information that might help in debugging. 2086 { 2087 echo 2088 2089 $as_echo "## ---------------- ## 2090 ## Cache variables. ## 2091 ## ---------------- ##" 2092 echo 2093 # The following way of writing the cache mishandles newlines in values, 2094 ( 2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2096 eval ac_val=\$$ac_var 2097 case $ac_val in #( 2098 *${as_nl}*) 2099 case $ac_var in #( 2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2102 esac 2103 case $ac_var in #( 2104 _ | IFS | as_nl) ;; #( 2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2106 *) { eval $ac_var=; unset $ac_var;} ;; 2107 esac ;; 2108 esac 2109 done 2110 (set) 2>&1 | 2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2112 *${as_nl}ac_space=\ *) 2113 sed -n \ 2114 "s/'\''/'\''\\\\'\'''\''/g; 2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2116 ;; #( 2117 *) 2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2119 ;; 2120 esac | 2121 sort 2122 ) 2123 echo 2124 2125 $as_echo "## ----------------- ## 2126 ## Output variables. ## 2127 ## ----------------- ##" 2128 echo 2129 for ac_var in $ac_subst_vars 2130 do 2131 eval ac_val=\$$ac_var 2132 case $ac_val in 2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2134 esac 2135 $as_echo "$ac_var='\''$ac_val'\''" 2136 done | sort 2137 echo 2138 2139 if test -n "$ac_subst_files"; then 2140 $as_echo "## ------------------- ## 2141 ## File substitutions. ## 2142 ## ------------------- ##" 2143 echo 2144 for ac_var in $ac_subst_files 2145 do 2146 eval ac_val=\$$ac_var 2147 case $ac_val in 2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2149 esac 2150 $as_echo "$ac_var='\''$ac_val'\''" 2151 done | sort 2152 echo 2153 fi 2154 2155 if test -s confdefs.h; then 2156 $as_echo "## ----------- ## 2157 ## confdefs.h. ## 2158 ## ----------- ##" 2159 echo 2160 cat confdefs.h 2161 echo 2162 fi 2163 test "$ac_signal" != 0 && 2164 $as_echo "$as_me: caught signal $ac_signal" 2165 $as_echo "$as_me: exit $exit_status" 2166 } >&5 2167 rm -f core *.core core.conftest.* && 2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2169 exit $exit_status 2170 ' 0 2171 for ac_signal in 1 2 13 15; do 2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2173 done 2174 ac_signal=0 2175 2176 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2177 rm -f -r conftest* confdefs.h 2178 2179 $as_echo "/* confdefs.h */" > confdefs.h 2180 2181 # Predefined preprocessor variables. 2182 2183 cat >>confdefs.h <<_ACEOF 2184 #define PACKAGE_NAME "$PACKAGE_NAME" 2185 _ACEOF 2186 2187 cat >>confdefs.h <<_ACEOF 2188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2189 _ACEOF 2190 2191 cat >>confdefs.h <<_ACEOF 2192 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2193 _ACEOF 2194 2195 cat >>confdefs.h <<_ACEOF 2196 #define PACKAGE_STRING "$PACKAGE_STRING" 2197 _ACEOF 2198 2199 cat >>confdefs.h <<_ACEOF 2200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2201 _ACEOF 2202 2203 cat >>confdefs.h <<_ACEOF 2204 #define PACKAGE_URL "$PACKAGE_URL" 2205 _ACEOF 2206 2207 2208 # Let the site file select an alternate cache file if it wants to. 2209 # Prefer an explicitly selected file to automatically selected ones. 2210 ac_site_file1=NONE 2211 ac_site_file2=NONE 2212 if test -n "$CONFIG_SITE"; then 2213 # We do not want a PATH search for config.site. 2214 case $CONFIG_SITE in #(( 2215 -*) ac_site_file1=./$CONFIG_SITE;; 2216 */*) ac_site_file1=$CONFIG_SITE;; 2217 *) ac_site_file1=./$CONFIG_SITE;; 2218 esac 2219 elif test "x$prefix" != xNONE; then 2220 ac_site_file1=$prefix/share/config.site 2221 ac_site_file2=$prefix/etc/config.site 2222 else 2223 ac_site_file1=$ac_default_prefix/share/config.site 2224 ac_site_file2=$ac_default_prefix/etc/config.site 2225 fi 2226 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2227 do 2228 test "x$ac_site_file" = xNONE && continue 2229 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2231 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2232 sed 's/^/| /' "$ac_site_file" >&5 2233 . "$ac_site_file" \ 2234 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2236 as_fn_error $? "failed to load site script $ac_site_file 2237 See \`config.log' for more details" "$LINENO" 5; } 2238 fi 2239 done 2240 2241 if test -r "$cache_file"; then 2242 # Some versions of bash will fail to source /dev/null (special files 2243 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2246 $as_echo "$as_me: loading cache $cache_file" >&6;} 2247 case $cache_file in 2248 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2249 *) . "./$cache_file";; 2250 esac 2251 fi 2252 else 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2254 $as_echo "$as_me: creating cache $cache_file" >&6;} 2255 >$cache_file 2256 fi 2257 2258 gt_needs="$gt_needs " 2259 as_fn_append ac_header_list " stdlib.h" 2260 as_fn_append ac_header_list " unistd.h" 2261 as_fn_append ac_header_list " sys/param.h" 2262 as_fn_append ac_func_list " qsort_r" 2263 # Check that the precious variables saved in the cache have kept the same 2264 # value. 2265 ac_cache_corrupted=false 2266 for ac_var in $ac_precious_vars; do 2267 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2268 eval ac_new_set=\$ac_env_${ac_var}_set 2269 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2270 eval ac_new_val=\$ac_env_${ac_var}_value 2271 case $ac_old_set,$ac_new_set in 2272 set,) 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2274 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2275 ac_cache_corrupted=: ;; 2276 ,set) 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2278 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2279 ac_cache_corrupted=: ;; 2280 ,);; 2281 *) 2282 if test "x$ac_old_val" != "x$ac_new_val"; then 2283 # differences in whitespace do not lead to failure. 2284 ac_old_val_w=`echo x $ac_old_val` 2285 ac_new_val_w=`echo x $ac_new_val` 2286 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2288 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2289 ac_cache_corrupted=: 2290 else 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2292 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2293 eval $ac_var=\$ac_old_val 2294 fi 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2296 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2298 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2299 fi;; 2300 esac 2301 # Pass precious variables to config.status. 2302 if test "$ac_new_set" = set; then 2303 case $ac_new_val in 2304 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2305 *) ac_arg=$ac_var=$ac_new_val ;; 2306 esac 2307 case " $ac_configure_args " in 2308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2309 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2310 esac 2311 fi 2312 done 2313 if $ac_cache_corrupted; then 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2317 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2318 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2319 fi 2320 ## -------------------- ## 2321 ## Main body of script. ## 2322 ## -------------------- ## 2323 2324 ac_ext=c 2325 ac_cpp='$CPP $CPPFLAGS' 2326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2328 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2329 2330 2331 2332 2333 2334 2335 ac_aux_dir= 2336 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2337 if test -f "$ac_dir/install-sh"; then 2338 ac_aux_dir=$ac_dir 2339 ac_install_sh="$ac_aux_dir/install-sh -c" 2340 break 2341 elif test -f "$ac_dir/install.sh"; then 2342 ac_aux_dir=$ac_dir 2343 ac_install_sh="$ac_aux_dir/install.sh -c" 2344 break 2345 elif test -f "$ac_dir/shtool"; then 2346 ac_aux_dir=$ac_dir 2347 ac_install_sh="$ac_aux_dir/shtool install -c" 2348 break 2349 fi 2350 done 2351 if test -z "$ac_aux_dir"; then 2352 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2353 fi 2354 2355 # These three variables are undocumented and unsupported, 2356 # and are intended to be withdrawn in a future Autoconf release. 2357 # They can cause serious problems if a builder's source tree is in a directory 2358 # whose full name contains unusual characters. 2359 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2360 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2361 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2362 2363 2364 # Make sure we can run config.sub. 2365 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2366 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2367 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2369 $as_echo_n "checking build system type... " >&6; } 2370 if ${ac_cv_build+:} false; then : 2371 $as_echo_n "(cached) " >&6 2372 else 2373 ac_build_alias=$build_alias 2374 test "x$ac_build_alias" = x && 2375 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2376 test "x$ac_build_alias" = x && 2377 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2378 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2379 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2380 2381 fi 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2383 $as_echo "$ac_cv_build" >&6; } 2384 case $ac_cv_build in 2385 *-*-*) ;; 2386 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2387 esac 2388 build=$ac_cv_build 2389 ac_save_IFS=$IFS; IFS='-' 2390 set x $ac_cv_build 2391 shift 2392 build_cpu=$1 2393 build_vendor=$2 2394 shift; shift 2395 # Remember, the first character of IFS is used to create $*, 2396 # except with old shells: 2397 build_os=$* 2398 IFS=$ac_save_IFS 2399 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2400 2401 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2403 $as_echo_n "checking host system type... " >&6; } 2404 if ${ac_cv_host+:} false; then : 2405 $as_echo_n "(cached) " >&6 2406 else 2407 if test "x$host_alias" = x; then 2408 ac_cv_host=$ac_cv_build 2409 else 2410 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2412 fi 2413 2414 fi 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2416 $as_echo "$ac_cv_host" >&6; } 2417 case $ac_cv_host in 2418 *-*-*) ;; 2419 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2420 esac 2421 host=$ac_cv_host 2422 ac_save_IFS=$IFS; IFS='-' 2423 set x $ac_cv_host 2424 shift 2425 host_cpu=$1 2426 host_vendor=$2 2427 shift; shift 2428 # Remember, the first character of IFS is used to create $*, 2429 # except with old shells: 2430 host_os=$* 2431 IFS=$ac_save_IFS 2432 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2433 2434 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2436 $as_echo_n "checking target system type... " >&6; } 2437 if ${ac_cv_target+:} false; then : 2438 $as_echo_n "(cached) " >&6 2439 else 2440 if test "x$target_alias" = x; then 2441 ac_cv_target=$ac_cv_host 2442 else 2443 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2445 fi 2446 2447 fi 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2449 $as_echo "$ac_cv_target" >&6; } 2450 case $ac_cv_target in 2451 *-*-*) ;; 2452 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2453 esac 2454 target=$ac_cv_target 2455 ac_save_IFS=$IFS; IFS='-' 2456 set x $ac_cv_target 2457 shift 2458 target_cpu=$1 2459 target_vendor=$2 2460 shift; shift 2461 # Remember, the first character of IFS is used to create $*, 2462 # except with old shells: 2463 target_os=$* 2464 IFS=$ac_save_IFS 2465 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2466 2467 2468 # The aliases save the names the user supplied, while $host etc. 2469 # will get canonicalized. 2470 test -n "$target_alias" && 2471 test "$program_prefix$program_suffix$program_transform_name" = \ 2472 NONENONEs,x,x, && 2473 program_prefix=${target_alias}- 2474 # Expand $ac_aux_dir to an absolute path. 2475 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2476 2477 ac_ext=c 2478 ac_cpp='$CPP $CPPFLAGS' 2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2482 if test -n "$ac_tool_prefix"; then 2483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2484 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2486 $as_echo_n "checking for $ac_word... " >&6; } 2487 if ${ac_cv_prog_CC+:} false; then : 2488 $as_echo_n "(cached) " >&6 2489 else 2490 if test -n "$CC"; then 2491 ac_cv_prog_CC="$CC" # Let the user override the test. 2492 else 2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494 for as_dir in $PATH 2495 do 2496 IFS=$as_save_IFS 2497 test -z "$as_dir" && as_dir=. 2498 for ac_exec_ext in '' $ac_executable_extensions; do 2499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2500 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2502 break 2 2503 fi 2504 done 2505 done 2506 IFS=$as_save_IFS 2507 2508 fi 2509 fi 2510 CC=$ac_cv_prog_CC 2511 if test -n "$CC"; then 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2513 $as_echo "$CC" >&6; } 2514 else 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2516 $as_echo "no" >&6; } 2517 fi 2518 2519 2520 fi 2521 if test -z "$ac_cv_prog_CC"; then 2522 ac_ct_CC=$CC 2523 # Extract the first word of "gcc", so it can be a program name with args. 2524 set dummy gcc; ac_word=$2 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2526 $as_echo_n "checking for $ac_word... " >&6; } 2527 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2528 $as_echo_n "(cached) " >&6 2529 else 2530 if test -n "$ac_ct_CC"; then 2531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2532 else 2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2534 for as_dir in $PATH 2535 do 2536 IFS=$as_save_IFS 2537 test -z "$as_dir" && as_dir=. 2538 for ac_exec_ext in '' $ac_executable_extensions; do 2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2540 ac_cv_prog_ac_ct_CC="gcc" 2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2542 break 2 2543 fi 2544 done 2545 done 2546 IFS=$as_save_IFS 2547 2548 fi 2549 fi 2550 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2551 if test -n "$ac_ct_CC"; then 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2553 $as_echo "$ac_ct_CC" >&6; } 2554 else 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2556 $as_echo "no" >&6; } 2557 fi 2558 2559 if test "x$ac_ct_CC" = x; then 2560 CC="" 2561 else 2562 case $cross_compiling:$ac_tool_warned in 2563 yes:) 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2566 ac_tool_warned=yes ;; 2567 esac 2568 CC=$ac_ct_CC 2569 fi 2570 else 2571 CC="$ac_cv_prog_CC" 2572 fi 2573 2574 if test -z "$CC"; then 2575 if test -n "$ac_tool_prefix"; then 2576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2577 set dummy ${ac_tool_prefix}cc; ac_word=$2 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2579 $as_echo_n "checking for $ac_word... " >&6; } 2580 if ${ac_cv_prog_CC+:} false; then : 2581 $as_echo_n "(cached) " >&6 2582 else 2583 if test -n "$CC"; then 2584 ac_cv_prog_CC="$CC" # Let the user override the test. 2585 else 2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2587 for as_dir in $PATH 2588 do 2589 IFS=$as_save_IFS 2590 test -z "$as_dir" && as_dir=. 2591 for ac_exec_ext in '' $ac_executable_extensions; do 2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2593 ac_cv_prog_CC="${ac_tool_prefix}cc" 2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2595 break 2 2596 fi 2597 done 2598 done 2599 IFS=$as_save_IFS 2600 2601 fi 2602 fi 2603 CC=$ac_cv_prog_CC 2604 if test -n "$CC"; then 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2606 $as_echo "$CC" >&6; } 2607 else 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2609 $as_echo "no" >&6; } 2610 fi 2611 2612 2613 fi 2614 fi 2615 if test -z "$CC"; then 2616 # Extract the first word of "cc", so it can be a program name with args. 2617 set dummy cc; ac_word=$2 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2619 $as_echo_n "checking for $ac_word... " >&6; } 2620 if ${ac_cv_prog_CC+:} false; then : 2621 $as_echo_n "(cached) " >&6 2622 else 2623 if test -n "$CC"; then 2624 ac_cv_prog_CC="$CC" # Let the user override the test. 2625 else 2626 ac_prog_rejected=no 2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2628 for as_dir in $PATH 2629 do 2630 IFS=$as_save_IFS 2631 test -z "$as_dir" && as_dir=. 2632 for ac_exec_ext in '' $ac_executable_extensions; do 2633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2635 ac_prog_rejected=yes 2636 continue 2637 fi 2638 ac_cv_prog_CC="cc" 2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2640 break 2 2641 fi 2642 done 2643 done 2644 IFS=$as_save_IFS 2645 2646 if test $ac_prog_rejected = yes; then 2647 # We found a bogon in the path, so make sure we never use it. 2648 set dummy $ac_cv_prog_CC 2649 shift 2650 if test $# != 0; then 2651 # We chose a different compiler from the bogus one. 2652 # However, it has the same basename, so the bogon will be chosen 2653 # first if we set CC to just the basename; use the full file name. 2654 shift 2655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2656 fi 2657 fi 2658 fi 2659 fi 2660 CC=$ac_cv_prog_CC 2661 if test -n "$CC"; then 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2663 $as_echo "$CC" >&6; } 2664 else 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2666 $as_echo "no" >&6; } 2667 fi 2668 2669 2670 fi 2671 if test -z "$CC"; then 2672 if test -n "$ac_tool_prefix"; then 2673 for ac_prog in cl.exe 2674 do 2675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2678 $as_echo_n "checking for $ac_word... " >&6; } 2679 if ${ac_cv_prog_CC+:} false; then : 2680 $as_echo_n "(cached) " >&6 2681 else 2682 if test -n "$CC"; then 2683 ac_cv_prog_CC="$CC" # Let the user override the test. 2684 else 2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686 for as_dir in $PATH 2687 do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2694 break 2 2695 fi 2696 done 2697 done 2698 IFS=$as_save_IFS 2699 2700 fi 2701 fi 2702 CC=$ac_cv_prog_CC 2703 if test -n "$CC"; then 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2705 $as_echo "$CC" >&6; } 2706 else 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2708 $as_echo "no" >&6; } 2709 fi 2710 2711 2712 test -n "$CC" && break 2713 done 2714 fi 2715 if test -z "$CC"; then 2716 ac_ct_CC=$CC 2717 for ac_prog in cl.exe 2718 do 2719 # Extract the first word of "$ac_prog", so it can be a program name with args. 2720 set dummy $ac_prog; ac_word=$2 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2722 $as_echo_n "checking for $ac_word... " >&6; } 2723 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2724 $as_echo_n "(cached) " >&6 2725 else 2726 if test -n "$ac_ct_CC"; then 2727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2728 else 2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2730 for as_dir in $PATH 2731 do 2732 IFS=$as_save_IFS 2733 test -z "$as_dir" && as_dir=. 2734 for ac_exec_ext in '' $ac_executable_extensions; do 2735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2736 ac_cv_prog_ac_ct_CC="$ac_prog" 2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2738 break 2 2739 fi 2740 done 2741 done 2742 IFS=$as_save_IFS 2743 2744 fi 2745 fi 2746 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2747 if test -n "$ac_ct_CC"; then 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2749 $as_echo "$ac_ct_CC" >&6; } 2750 else 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2752 $as_echo "no" >&6; } 2753 fi 2754 2755 2756 test -n "$ac_ct_CC" && break 2757 done 2758 2759 if test "x$ac_ct_CC" = x; then 2760 CC="" 2761 else 2762 case $cross_compiling:$ac_tool_warned in 2763 yes:) 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2766 ac_tool_warned=yes ;; 2767 esac 2768 CC=$ac_ct_CC 2769 fi 2770 fi 2771 2772 fi 2773 2774 2775 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2777 as_fn_error $? "no acceptable C compiler found in \$PATH 2778 See \`config.log' for more details" "$LINENO" 5; } 2779 2780 # Provide some information about the compiler. 2781 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2782 set X $ac_compile 2783 ac_compiler=$2 2784 for ac_option in --version -v -V -qversion; do 2785 { { ac_try="$ac_compiler $ac_option >&5" 2786 case "(($ac_try" in 2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2788 *) ac_try_echo=$ac_try;; 2789 esac 2790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2791 $as_echo "$ac_try_echo"; } >&5 2792 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2793 ac_status=$? 2794 if test -s conftest.err; then 2795 sed '10a\ 2796 ... rest of stderr output deleted ... 2797 10q' conftest.err >conftest.er1 2798 cat conftest.er1 >&5 2799 fi 2800 rm -f conftest.er1 conftest.err 2801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2802 test $ac_status = 0; } 2803 done 2804 2805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2806 /* end confdefs.h. */ 2807 2808 int 2809 main () 2810 { 2811 2812 ; 2813 return 0; 2814 } 2815 _ACEOF 2816 ac_clean_files_save=$ac_clean_files 2817 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2818 # Try to create an executable without -o first, disregard a.out. 2819 # It will help us diagnose broken compilers, and finding out an intuition 2820 # of exeext. 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2822 $as_echo_n "checking whether the C compiler works... " >&6; } 2823 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2824 2825 # The possible output files: 2826 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2827 2828 ac_rmfiles= 2829 for ac_file in $ac_files 2830 do 2831 case $ac_file in 2832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2833 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2834 esac 2835 done 2836 rm -f $ac_rmfiles 2837 2838 if { { ac_try="$ac_link_default" 2839 case "(($ac_try" in 2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2841 *) ac_try_echo=$ac_try;; 2842 esac 2843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2844 $as_echo "$ac_try_echo"; } >&5 2845 (eval "$ac_link_default") 2>&5 2846 ac_status=$? 2847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2848 test $ac_status = 0; }; then : 2849 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2850 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2851 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2852 # so that the user can short-circuit this test for compilers unknown to 2853 # Autoconf. 2854 for ac_file in $ac_files '' 2855 do 2856 test -f "$ac_file" || continue 2857 case $ac_file in 2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2859 ;; 2860 [ab].out ) 2861 # We found the default executable, but exeext='' is most 2862 # certainly right. 2863 break;; 2864 *.* ) 2865 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2866 then :; else 2867 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2868 fi 2869 # We set ac_cv_exeext here because the later test for it is not 2870 # safe: cross compilers may not add the suffix if given an `-o' 2871 # argument, so we may need to know it at that point already. 2872 # Even if this section looks crufty: it has the advantage of 2873 # actually working. 2874 break;; 2875 * ) 2876 break;; 2877 esac 2878 done 2879 test "$ac_cv_exeext" = no && ac_cv_exeext= 2880 2881 else 2882 ac_file='' 2883 fi 2884 if test -z "$ac_file"; then : 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2886 $as_echo "no" >&6; } 2887 $as_echo "$as_me: failed program was:" >&5 2888 sed 's/^/| /' conftest.$ac_ext >&5 2889 2890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2892 as_fn_error 77 "C compiler cannot create executables 2893 See \`config.log' for more details" "$LINENO" 5; } 2894 else 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2896 $as_echo "yes" >&6; } 2897 fi 2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2899 $as_echo_n "checking for C compiler default output file name... " >&6; } 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2901 $as_echo "$ac_file" >&6; } 2902 ac_exeext=$ac_cv_exeext 2903 2904 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2905 ac_clean_files=$ac_clean_files_save 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2907 $as_echo_n "checking for suffix of executables... " >&6; } 2908 if { { ac_try="$ac_link" 2909 case "(($ac_try" in 2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2911 *) ac_try_echo=$ac_try;; 2912 esac 2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2914 $as_echo "$ac_try_echo"; } >&5 2915 (eval "$ac_link") 2>&5 2916 ac_status=$? 2917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2918 test $ac_status = 0; }; then : 2919 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2920 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2921 # work properly (i.e., refer to `conftest.exe'), while it won't with 2922 # `rm'. 2923 for ac_file in conftest.exe conftest conftest.*; do 2924 test -f "$ac_file" || continue 2925 case $ac_file in 2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2927 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2928 break;; 2929 * ) break;; 2930 esac 2931 done 2932 else 2933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2935 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2936 See \`config.log' for more details" "$LINENO" 5; } 2937 fi 2938 rm -f conftest conftest$ac_cv_exeext 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2940 $as_echo "$ac_cv_exeext" >&6; } 2941 2942 rm -f conftest.$ac_ext 2943 EXEEXT=$ac_cv_exeext 2944 ac_exeext=$EXEEXT 2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2946 /* end confdefs.h. */ 2947 #include <stdio.h> 2948 int 2949 main () 2950 { 2951 FILE *f = fopen ("conftest.out", "w"); 2952 return ferror (f) || fclose (f) != 0; 2953 2954 ; 2955 return 0; 2956 } 2957 _ACEOF 2958 ac_clean_files="$ac_clean_files conftest.out" 2959 # Check that the compiler produces executables we can run. If not, either 2960 # the compiler is broken, or we cross compile. 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2962 $as_echo_n "checking whether we are cross compiling... " >&6; } 2963 if test "$cross_compiling" != yes; then 2964 { { ac_try="$ac_link" 2965 case "(($ac_try" in 2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2967 *) ac_try_echo=$ac_try;; 2968 esac 2969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2970 $as_echo "$ac_try_echo"; } >&5 2971 (eval "$ac_link") 2>&5 2972 ac_status=$? 2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2974 test $ac_status = 0; } 2975 if { ac_try='./conftest$ac_cv_exeext' 2976 { { case "(($ac_try" in 2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2978 *) ac_try_echo=$ac_try;; 2979 esac 2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2981 $as_echo "$ac_try_echo"; } >&5 2982 (eval "$ac_try") 2>&5 2983 ac_status=$? 2984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2985 test $ac_status = 0; }; }; then 2986 cross_compiling=no 2987 else 2988 if test "$cross_compiling" = maybe; then 2989 cross_compiling=yes 2990 else 2991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2993 as_fn_error $? "cannot run C compiled programs. 2994 If you meant to cross compile, use \`--host'. 2995 See \`config.log' for more details" "$LINENO" 5; } 2996 fi 2997 fi 2998 fi 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3000 $as_echo "$cross_compiling" >&6; } 3001 3002 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3003 ac_clean_files=$ac_clean_files_save 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3005 $as_echo_n "checking for suffix of object files... " >&6; } 3006 if ${ac_cv_objext+:} false; then : 3007 $as_echo_n "(cached) " >&6 3008 else 3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3010 /* end confdefs.h. */ 3011 3012 int 3013 main () 3014 { 3015 3016 ; 3017 return 0; 3018 } 3019 _ACEOF 3020 rm -f conftest.o conftest.obj 3021 if { { ac_try="$ac_compile" 3022 case "(($ac_try" in 3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3024 *) ac_try_echo=$ac_try;; 3025 esac 3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3027 $as_echo "$ac_try_echo"; } >&5 3028 (eval "$ac_compile") 2>&5 3029 ac_status=$? 3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3031 test $ac_status = 0; }; then : 3032 for ac_file in conftest.o conftest.obj conftest.*; do 3033 test -f "$ac_file" || continue; 3034 case $ac_file in 3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3037 break;; 3038 esac 3039 done 3040 else 3041 $as_echo "$as_me: failed program was:" >&5 3042 sed 's/^/| /' conftest.$ac_ext >&5 3043 3044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3046 as_fn_error $? "cannot compute suffix of object files: cannot compile 3047 See \`config.log' for more details" "$LINENO" 5; } 3048 fi 3049 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3050 fi 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3052 $as_echo "$ac_cv_objext" >&6; } 3053 OBJEXT=$ac_cv_objext 3054 ac_objext=$OBJEXT 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3056 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3057 if ${ac_cv_c_compiler_gnu+:} false; then : 3058 $as_echo_n "(cached) " >&6 3059 else 3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3061 /* end confdefs.h. */ 3062 3063 int 3064 main () 3065 { 3066 #ifndef __GNUC__ 3067 choke me 3068 #endif 3069 3070 ; 3071 return 0; 3072 } 3073 _ACEOF 3074 if ac_fn_c_try_compile "$LINENO"; then : 3075 ac_compiler_gnu=yes 3076 else 3077 ac_compiler_gnu=no 3078 fi 3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3080 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3081 3082 fi 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3084 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3085 if test $ac_compiler_gnu = yes; then 3086 GCC=yes 3087 else 3088 GCC= 3089 fi 3090 ac_test_CFLAGS=${CFLAGS+set} 3091 ac_save_CFLAGS=$CFLAGS 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3093 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3094 if ${ac_cv_prog_cc_g+:} false; then : 3095 $as_echo_n "(cached) " >&6 3096 else 3097 ac_save_c_werror_flag=$ac_c_werror_flag 3098 ac_c_werror_flag=yes 3099 ac_cv_prog_cc_g=no 3100 CFLAGS="-g" 3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3102 /* end confdefs.h. */ 3103 3104 int 3105 main () 3106 { 3107 3108 ; 3109 return 0; 3110 } 3111 _ACEOF 3112 if ac_fn_c_try_compile "$LINENO"; then : 3113 ac_cv_prog_cc_g=yes 3114 else 3115 CFLAGS="" 3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3117 /* end confdefs.h. */ 3118 3119 int 3120 main () 3121 { 3122 3123 ; 3124 return 0; 3125 } 3126 _ACEOF 3127 if ac_fn_c_try_compile "$LINENO"; then : 3128 3129 else 3130 ac_c_werror_flag=$ac_save_c_werror_flag 3131 CFLAGS="-g" 3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3133 /* end confdefs.h. */ 3134 3135 int 3136 main () 3137 { 3138 3139 ; 3140 return 0; 3141 } 3142 _ACEOF 3143 if ac_fn_c_try_compile "$LINENO"; then : 3144 ac_cv_prog_cc_g=yes 3145 fi 3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3147 fi 3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3149 fi 3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3151 ac_c_werror_flag=$ac_save_c_werror_flag 3152 fi 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3154 $as_echo "$ac_cv_prog_cc_g" >&6; } 3155 if test "$ac_test_CFLAGS" = set; then 3156 CFLAGS=$ac_save_CFLAGS 3157 elif test $ac_cv_prog_cc_g = yes; then 3158 if test "$GCC" = yes; then 3159 CFLAGS="-g -O2" 3160 else 3161 CFLAGS="-g" 3162 fi 3163 else 3164 if test "$GCC" = yes; then 3165 CFLAGS="-O2" 3166 else 3167 CFLAGS= 3168 fi 3169 fi 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3171 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3172 if ${ac_cv_prog_cc_c89+:} false; then : 3173 $as_echo_n "(cached) " >&6 3174 else 3175 ac_cv_prog_cc_c89=no 3176 ac_save_CC=$CC 3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3178 /* end confdefs.h. */ 3179 #include <stdarg.h> 3180 #include <stdio.h> 3181 struct stat; 3182 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3183 struct buf { int x; }; 3184 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3185 static char *e (p, i) 3186 char **p; 3187 int i; 3188 { 3189 return p[i]; 3190 } 3191 static char *f (char * (*g) (char **, int), char **p, ...) 3192 { 3193 char *s; 3194 va_list v; 3195 va_start (v,p); 3196 s = g (p, va_arg (v,int)); 3197 va_end (v); 3198 return s; 3199 } 3200 3201 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3202 function prototypes and stuff, but not '\xHH' hex character constants. 3203 These don't provoke an error unfortunately, instead are silently treated 3204 as 'x'. The following induces an error, until -std is added to get 3205 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3206 array size at least. It's necessary to write '\x00'==0 to get something 3207 that's true only with -std. */ 3208 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3209 3210 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3211 inside strings and character constants. */ 3212 #define FOO(x) 'x' 3213 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3214 3215 int test (int i, double x); 3216 struct s1 {int (*f) (int a);}; 3217 struct s2 {int (*f) (double a);}; 3218 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3219 int argc; 3220 char **argv; 3221 int 3222 main () 3223 { 3224 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3225 ; 3226 return 0; 3227 } 3228 _ACEOF 3229 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3230 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3231 do 3232 CC="$ac_save_CC $ac_arg" 3233 if ac_fn_c_try_compile "$LINENO"; then : 3234 ac_cv_prog_cc_c89=$ac_arg 3235 fi 3236 rm -f core conftest.err conftest.$ac_objext 3237 test "x$ac_cv_prog_cc_c89" != "xno" && break 3238 done 3239 rm -f conftest.$ac_ext 3240 CC=$ac_save_CC 3241 3242 fi 3243 # AC_CACHE_VAL 3244 case "x$ac_cv_prog_cc_c89" in 3245 x) 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3247 $as_echo "none needed" >&6; } ;; 3248 xno) 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3250 $as_echo "unsupported" >&6; } ;; 3251 *) 3252 CC="$CC $ac_cv_prog_cc_c89" 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3254 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3255 esac 3256 if test "x$ac_cv_prog_cc_c89" != xno; then : 3257 3258 fi 3259 3260 ac_ext=c 3261 ac_cpp='$CPP $CPPFLAGS' 3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3265 3266 ac_ext=c 3267 ac_cpp='$CPP $CPPFLAGS' 3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3272 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3273 if ${am_cv_prog_cc_c_o+:} false; then : 3274 $as_echo_n "(cached) " >&6 3275 else 3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3277 /* end confdefs.h. */ 3278 3279 int 3280 main () 3281 { 3282 3283 ; 3284 return 0; 3285 } 3286 _ACEOF 3287 # Make sure it works both with $CC and with simple cc. 3288 # Following AC_PROG_CC_C_O, we do the test twice because some 3289 # compilers refuse to overwrite an existing .o file with -o, 3290 # though they will create one. 3291 am_cv_prog_cc_c_o=yes 3292 for am_i in 1 2; do 3293 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3294 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3295 ac_status=$? 3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3297 (exit $ac_status); } \ 3298 && test -f conftest2.$ac_objext; then 3299 : OK 3300 else 3301 am_cv_prog_cc_c_o=no 3302 break 3303 fi 3304 done 3305 rm -f core conftest* 3306 unset am_i 3307 fi 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3309 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3310 if test "$am_cv_prog_cc_c_o" != yes; then 3311 # Losing compiler, so override with the script. 3312 # FIXME: It is wrong to rewrite CC. 3313 # But if we don't then we get into trouble of one sort or another. 3314 # A longer-term fix would be to have automake use am__CC in this case, 3315 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3316 CC="$am_aux_dir/compile $CC" 3317 fi 3318 ac_ext=c 3319 ac_cpp='$CPP $CPPFLAGS' 3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3323 3324 3325 3326 ac_ext=c 3327 ac_cpp='$CPP $CPPFLAGS' 3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3332 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3333 # On Suns, sometimes $CPP names a directory. 3334 if test -n "$CPP" && test -d "$CPP"; then 3335 CPP= 3336 fi 3337 if test -z "$CPP"; then 3338 if ${ac_cv_prog_CPP+:} false; then : 3339 $as_echo_n "(cached) " >&6 3340 else 3341 # Double quotes because CPP needs to be expanded 3342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3343 do 3344 ac_preproc_ok=false 3345 for ac_c_preproc_warn_flag in '' yes 3346 do 3347 # Use a header file that comes with gcc, so configuring glibc 3348 # with a fresh cross-compiler works. 3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3350 # <limits.h> exists even on freestanding compilers. 3351 # On the NeXT, cc -E runs the code through the compiler's parser, 3352 # not just through cpp. "Syntax error" is here to catch this case. 3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3354 /* end confdefs.h. */ 3355 #ifdef __STDC__ 3356 # include <limits.h> 3357 #else 3358 # include <assert.h> 3359 #endif 3360 Syntax error 3361 _ACEOF 3362 if ac_fn_c_try_cpp "$LINENO"; then : 3363 3364 else 3365 # Broken: fails on valid input. 3366 continue 3367 fi 3368 rm -f conftest.err conftest.i conftest.$ac_ext 3369 3370 # OK, works on sane cases. Now check whether nonexistent headers 3371 # can be detected and how. 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3373 /* end confdefs.h. */ 3374 #include <ac_nonexistent.h> 3375 _ACEOF 3376 if ac_fn_c_try_cpp "$LINENO"; then : 3377 # Broken: success on invalid input. 3378 continue 3379 else 3380 # Passes both tests. 3381 ac_preproc_ok=: 3382 break 3383 fi 3384 rm -f conftest.err conftest.i conftest.$ac_ext 3385 3386 done 3387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3388 rm -f conftest.i conftest.err conftest.$ac_ext 3389 if $ac_preproc_ok; then : 3390 break 3391 fi 3392 3393 done 3394 ac_cv_prog_CPP=$CPP 3395 3396 fi 3397 CPP=$ac_cv_prog_CPP 3398 else 3399 ac_cv_prog_CPP=$CPP 3400 fi 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3402 $as_echo "$CPP" >&6; } 3403 ac_preproc_ok=false 3404 for ac_c_preproc_warn_flag in '' yes 3405 do 3406 # Use a header file that comes with gcc, so configuring glibc 3407 # with a fresh cross-compiler works. 3408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3409 # <limits.h> exists even on freestanding compilers. 3410 # On the NeXT, cc -E runs the code through the compiler's parser, 3411 # not just through cpp. "Syntax error" is here to catch this case. 3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3413 /* end confdefs.h. */ 3414 #ifdef __STDC__ 3415 # include <limits.h> 3416 #else 3417 # include <assert.h> 3418 #endif 3419 Syntax error 3420 _ACEOF 3421 if ac_fn_c_try_cpp "$LINENO"; then : 3422 3423 else 3424 # Broken: fails on valid input. 3425 continue 3426 fi 3427 rm -f conftest.err conftest.i conftest.$ac_ext 3428 3429 # OK, works on sane cases. Now check whether nonexistent headers 3430 # can be detected and how. 3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3432 /* end confdefs.h. */ 3433 #include <ac_nonexistent.h> 3434 _ACEOF 3435 if ac_fn_c_try_cpp "$LINENO"; then : 3436 # Broken: success on invalid input. 3437 continue 3438 else 3439 # Passes both tests. 3440 ac_preproc_ok=: 3441 break 3442 fi 3443 rm -f conftest.err conftest.i conftest.$ac_ext 3444 3445 done 3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3447 rm -f conftest.i conftest.err conftest.$ac_ext 3448 if $ac_preproc_ok; then : 3449 3450 else 3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3453 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3454 See \`config.log' for more details" "$LINENO" 5; } 3455 fi 3456 3457 ac_ext=c 3458 ac_cpp='$CPP $CPPFLAGS' 3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3462 3463 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3465 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3466 if ${ac_cv_path_GREP+:} false; then : 3467 $as_echo_n "(cached) " >&6 3468 else 3469 if test -z "$GREP"; then 3470 ac_path_GREP_found=false 3471 # Loop through the user's path and test for each of PROGNAME-LIST 3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3474 do 3475 IFS=$as_save_IFS 3476 test -z "$as_dir" && as_dir=. 3477 for ac_prog in grep ggrep; do 3478 for ac_exec_ext in '' $ac_executable_extensions; do 3479 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3480 as_fn_executable_p "$ac_path_GREP" || continue 3481 # Check for GNU ac_path_GREP and select it if it is found. 3482 # Check for GNU $ac_path_GREP 3483 case `"$ac_path_GREP" --version 2>&1` in 3484 *GNU*) 3485 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3486 *) 3487 ac_count=0 3488 $as_echo_n 0123456789 >"conftest.in" 3489 while : 3490 do 3491 cat "conftest.in" "conftest.in" >"conftest.tmp" 3492 mv "conftest.tmp" "conftest.in" 3493 cp "conftest.in" "conftest.nl" 3494 $as_echo 'GREP' >> "conftest.nl" 3495 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3497 as_fn_arith $ac_count + 1 && ac_count=$as_val 3498 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3499 # Best one so far, save it but keep looking for a better one 3500 ac_cv_path_GREP="$ac_path_GREP" 3501 ac_path_GREP_max=$ac_count 3502 fi 3503 # 10*(2^10) chars as input seems more than enough 3504 test $ac_count -gt 10 && break 3505 done 3506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3507 esac 3508 3509 $ac_path_GREP_found && break 3 3510 done 3511 done 3512 done 3513 IFS=$as_save_IFS 3514 if test -z "$ac_cv_path_GREP"; then 3515 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3516 fi 3517 else 3518 ac_cv_path_GREP=$GREP 3519 fi 3520 3521 fi 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3523 $as_echo "$ac_cv_path_GREP" >&6; } 3524 GREP="$ac_cv_path_GREP" 3525 3526 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3528 $as_echo_n "checking for egrep... " >&6; } 3529 if ${ac_cv_path_EGREP+:} false; then : 3530 $as_echo_n "(cached) " >&6 3531 else 3532 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3533 then ac_cv_path_EGREP="$GREP -E" 3534 else 3535 if test -z "$EGREP"; then 3536 ac_path_EGREP_found=false 3537 # Loop through the user's path and test for each of PROGNAME-LIST 3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3540 do 3541 IFS=$as_save_IFS 3542 test -z "$as_dir" && as_dir=. 3543 for ac_prog in egrep; do 3544 for ac_exec_ext in '' $ac_executable_extensions; do 3545 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3546 as_fn_executable_p "$ac_path_EGREP" || continue 3547 # Check for GNU ac_path_EGREP and select it if it is found. 3548 # Check for GNU $ac_path_EGREP 3549 case `"$ac_path_EGREP" --version 2>&1` in 3550 *GNU*) 3551 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3552 *) 3553 ac_count=0 3554 $as_echo_n 0123456789 >"conftest.in" 3555 while : 3556 do 3557 cat "conftest.in" "conftest.in" >"conftest.tmp" 3558 mv "conftest.tmp" "conftest.in" 3559 cp "conftest.in" "conftest.nl" 3560 $as_echo 'EGREP' >> "conftest.nl" 3561 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3563 as_fn_arith $ac_count + 1 && ac_count=$as_val 3564 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3565 # Best one so far, save it but keep looking for a better one 3566 ac_cv_path_EGREP="$ac_path_EGREP" 3567 ac_path_EGREP_max=$ac_count 3568 fi 3569 # 10*(2^10) chars as input seems more than enough 3570 test $ac_count -gt 10 && break 3571 done 3572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3573 esac 3574 3575 $ac_path_EGREP_found && break 3 3576 done 3577 done 3578 done 3579 IFS=$as_save_IFS 3580 if test -z "$ac_cv_path_EGREP"; then 3581 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3582 fi 3583 else 3584 ac_cv_path_EGREP=$EGREP 3585 fi 3586 3587 fi 3588 fi 3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3590 $as_echo "$ac_cv_path_EGREP" >&6; } 3591 EGREP="$ac_cv_path_EGREP" 3592 3593 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3595 $as_echo_n "checking for ANSI C header files... " >&6; } 3596 if ${ac_cv_header_stdc+:} false; then : 3597 $as_echo_n "(cached) " >&6 3598 else 3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3600 /* end confdefs.h. */ 3601 #include <stdlib.h> 3602 #include <stdarg.h> 3603 #include <string.h> 3604 #include <float.h> 3605 3606 int 3607 main () 3608 { 3609 3610 ; 3611 return 0; 3612 } 3613 _ACEOF 3614 if ac_fn_c_try_compile "$LINENO"; then : 3615 ac_cv_header_stdc=yes 3616 else 3617 ac_cv_header_stdc=no 3618 fi 3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3620 3621 if test $ac_cv_header_stdc = yes; then 3622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3624 /* end confdefs.h. */ 3625 #include <string.h> 3626 3627 _ACEOF 3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3629 $EGREP "memchr" >/dev/null 2>&1; then : 3630 3631 else 3632 ac_cv_header_stdc=no 3633 fi 3634 rm -f conftest* 3635 3636 fi 3637 3638 if test $ac_cv_header_stdc = yes; then 3639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3641 /* end confdefs.h. */ 3642 #include <stdlib.h> 3643 3644 _ACEOF 3645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3646 $EGREP "free" >/dev/null 2>&1; then : 3647 3648 else 3649 ac_cv_header_stdc=no 3650 fi 3651 rm -f conftest* 3652 3653 fi 3654 3655 if test $ac_cv_header_stdc = yes; then 3656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3657 if test "$cross_compiling" = yes; then : 3658 : 3659 else 3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661 /* end confdefs.h. */ 3662 #include <ctype.h> 3663 #include <stdlib.h> 3664 #if ((' ' & 0x0FF) == 0x020) 3665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3667 #else 3668 # define ISLOWER(c) \ 3669 (('a' <= (c) && (c) <= 'i') \ 3670 || ('j' <= (c) && (c) <= 'r') \ 3671 || ('s' <= (c) && (c) <= 'z')) 3672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3673 #endif 3674 3675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3676 int 3677 main () 3678 { 3679 int i; 3680 for (i = 0; i < 256; i++) 3681 if (XOR (islower (i), ISLOWER (i)) 3682 || toupper (i) != TOUPPER (i)) 3683 return 2; 3684 return 0; 3685 } 3686 _ACEOF 3687 if ac_fn_c_try_run "$LINENO"; then : 3688 3689 else 3690 ac_cv_header_stdc=no 3691 fi 3692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3693 conftest.$ac_objext conftest.beam conftest.$ac_ext 3694 fi 3695 3696 fi 3697 fi 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3699 $as_echo "$ac_cv_header_stdc" >&6; } 3700 if test $ac_cv_header_stdc = yes; then 3701 3702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 3703 3704 fi 3705 3706 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3707 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3708 inttypes.h stdint.h unistd.h 3709 do : 3710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3711 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3712 " 3713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3714 cat >>confdefs.h <<_ACEOF 3715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3716 _ACEOF 3717 3718 fi 3719 3720 done 3721 3722 3723 3724 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3725 if test "x$ac_cv_header_minix_config_h" = xyes; then : 3726 MINIX=yes 3727 else 3728 MINIX= 3729 fi 3730 3731 3732 if test "$MINIX" = yes; then 3733 3734 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3735 3736 3737 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3738 3739 3740 $as_echo "#define _MINIX 1" >>confdefs.h 3741 3742 fi 3743 3744 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3746 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3747 if ${ac_cv_safe_to_define___extensions__+:} false; then : 3748 $as_echo_n "(cached) " >&6 3749 else 3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3751 /* end confdefs.h. */ 3752 3753 # define __EXTENSIONS__ 1 3754 $ac_includes_default 3755 int 3756 main () 3757 { 3758 3759 ; 3760 return 0; 3761 } 3762 _ACEOF 3763 if ac_fn_c_try_compile "$LINENO"; then : 3764 ac_cv_safe_to_define___extensions__=yes 3765 else 3766 ac_cv_safe_to_define___extensions__=no 3767 fi 3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3769 fi 3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3771 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3772 test $ac_cv_safe_to_define___extensions__ = yes && 3773 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3774 3775 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3776 3777 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3778 3779 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3780 3781 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3782 3783 3784 am__api_version='1.15' 3785 3786 # Find a good install program. We prefer a C program (faster), 3787 # so one script is as good as another. But avoid the broken or 3788 # incompatible versions: 3789 # SysV /etc/install, /usr/sbin/install 3790 # SunOS /usr/etc/install 3791 # IRIX /sbin/install 3792 # AIX /bin/install 3793 # AmigaOS /C/install, which installs bootblocks on floppy discs 3794 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3795 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3796 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3797 # OS/2's system install, which has a completely different semantic 3798 # ./install, which can be erroneously created by make from ./install.sh. 3799 # Reject install programs that cannot install multiple files. 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3801 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3802 if test -z "$INSTALL"; then 3803 if ${ac_cv_path_install+:} false; then : 3804 $as_echo_n "(cached) " >&6 3805 else 3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3807 for as_dir in $PATH 3808 do 3809 IFS=$as_save_IFS 3810 test -z "$as_dir" && as_dir=. 3811 # Account for people who put trailing slashes in PATH elements. 3812 case $as_dir/ in #(( 3813 ./ | .// | /[cC]/* | \ 3814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3816 /usr/ucb/* ) ;; 3817 *) 3818 # OSF1 and SCO ODT 3.0 have their own names for install. 3819 # Don't use installbsd from OSF since it installs stuff as root 3820 # by default. 3821 for ac_prog in ginstall scoinst install; do 3822 for ac_exec_ext in '' $ac_executable_extensions; do 3823 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3824 if test $ac_prog = install && 3825 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3826 # AIX install. It has an incompatible calling convention. 3827 : 3828 elif test $ac_prog = install && 3829 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3830 # program-specific install script used by HP pwplus--don't use. 3831 : 3832 else 3833 rm -rf conftest.one conftest.two conftest.dir 3834 echo one > conftest.one 3835 echo two > conftest.two 3836 mkdir conftest.dir 3837 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3838 test -s conftest.one && test -s conftest.two && 3839 test -s conftest.dir/conftest.one && 3840 test -s conftest.dir/conftest.two 3841 then 3842 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3843 break 3 3844 fi 3845 fi 3846 fi 3847 done 3848 done 3849 ;; 3850 esac 3851 3852 done 3853 IFS=$as_save_IFS 3854 3855 rm -rf conftest.one conftest.two conftest.dir 3856 3857 fi 3858 if test "${ac_cv_path_install+set}" = set; then 3859 INSTALL=$ac_cv_path_install 3860 else 3861 # As a last resort, use the slow shell script. Don't cache a 3862 # value for INSTALL within a source directory, because that will 3863 # break other packages using the cache if that directory is 3864 # removed, or if the value is a relative name. 3865 INSTALL=$ac_install_sh 3866 fi 3867 fi 3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3869 $as_echo "$INSTALL" >&6; } 3870 3871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3872 # It thinks the first close brace ends the variable substitution. 3873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3874 3875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3876 3877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3878 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3880 $as_echo_n "checking whether build environment is sane... " >&6; } 3881 # Reject unsafe characters in $srcdir or the absolute working directory 3882 # name. Accept space and tab only in the latter. 3883 am_lf=' 3884 ' 3885 case `pwd` in 3886 *[\\\"\#\$\&\'\`$am_lf]*) 3887 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3888 esac 3889 case $srcdir in 3890 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3891 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3892 esac 3893 3894 # Do 'set' in a subshell so we don't clobber the current shell's 3895 # arguments. Must try -L first in case configure is actually a 3896 # symlink; some systems play weird games with the mod time of symlinks 3897 # (eg FreeBSD returns the mod time of the symlink's containing 3898 # directory). 3899 if ( 3900 am_has_slept=no 3901 for am_try in 1 2; do 3902 echo "timestamp, slept: $am_has_slept" > conftest.file 3903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3904 if test "$*" = "X"; then 3905 # -L didn't work. 3906 set X `ls -t "$srcdir/configure" conftest.file` 3907 fi 3908 if test "$*" != "X $srcdir/configure conftest.file" \ 3909 && test "$*" != "X conftest.file $srcdir/configure"; then 3910 3911 # If neither matched, then we have a broken ls. This can happen 3912 # if, for instance, CONFIG_SHELL is bash and it inherits a 3913 # broken ls alias from the environment. This has actually 3914 # happened. Such a system could not be considered "sane". 3915 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3916 alias in your environment" "$LINENO" 5 3917 fi 3918 if test "$2" = conftest.file || test $am_try -eq 2; then 3919 break 3920 fi 3921 # Just in case. 3922 sleep 1 3923 am_has_slept=yes 3924 done 3925 test "$2" = conftest.file 3926 ) 3927 then 3928 # Ok. 3929 : 3930 else 3931 as_fn_error $? "newly created file is older than distributed files! 3932 Check your system clock" "$LINENO" 5 3933 fi 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3935 $as_echo "yes" >&6; } 3936 # If we didn't sleep, we still need to ensure time stamps of config.status and 3937 # generated files are strictly newer. 3938 am_sleep_pid= 3939 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3940 ( sleep 1 ) & 3941 am_sleep_pid=$! 3942 fi 3943 3944 rm -f conftest.file 3945 3946 test "$program_prefix" != NONE && 3947 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3948 # Use a double $ so make ignores it. 3949 test "$program_suffix" != NONE && 3950 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3951 # Double any \ or $. 3952 # By default was `s,x,x', remove it if useless. 3953 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3954 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3955 3956 if test x"${MISSING+set}" != xset; then 3957 case $am_aux_dir in 3958 *\ * | *\ *) 3959 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3960 *) 3961 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3962 esac 3963 fi 3964 # Use eval to expand $SHELL 3965 if eval "$MISSING --is-lightweight"; then 3966 am_missing_run="$MISSING " 3967 else 3968 am_missing_run= 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3970 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3971 fi 3972 3973 if test x"${install_sh+set}" != xset; then 3974 case $am_aux_dir in 3975 *\ * | *\ *) 3976 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3977 *) 3978 install_sh="\${SHELL} $am_aux_dir/install-sh" 3979 esac 3980 fi 3981 3982 # Installed binaries are usually stripped using 'strip' when the user 3983 # run "make install-strip". However 'strip' might not be the right 3984 # tool to use in cross-compilation environments, therefore Automake 3985 # will honor the 'STRIP' environment variable to overrule this program. 3986 if test "$cross_compiling" != no; then 3987 if test -n "$ac_tool_prefix"; then 3988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3989 set dummy ${ac_tool_prefix}strip; ac_word=$2 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3991 $as_echo_n "checking for $ac_word... " >&6; } 3992 if ${ac_cv_prog_STRIP+:} false; then : 3993 $as_echo_n "(cached) " >&6 3994 else 3995 if test -n "$STRIP"; then 3996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3997 else 3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3999 for as_dir in $PATH 4000 do 4001 IFS=$as_save_IFS 4002 test -z "$as_dir" && as_dir=. 4003 for ac_exec_ext in '' $ac_executable_extensions; do 4004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4005 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4007 break 2 4008 fi 4009 done 4010 done 4011 IFS=$as_save_IFS 4012 4013 fi 4014 fi 4015 STRIP=$ac_cv_prog_STRIP 4016 if test -n "$STRIP"; then 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4018 $as_echo "$STRIP" >&6; } 4019 else 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4021 $as_echo "no" >&6; } 4022 fi 4023 4024 4025 fi 4026 if test -z "$ac_cv_prog_STRIP"; then 4027 ac_ct_STRIP=$STRIP 4028 # Extract the first word of "strip", so it can be a program name with args. 4029 set dummy strip; ac_word=$2 4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4031 $as_echo_n "checking for $ac_word... " >&6; } 4032 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4033 $as_echo_n "(cached) " >&6 4034 else 4035 if test -n "$ac_ct_STRIP"; then 4036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4037 else 4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4039 for as_dir in $PATH 4040 do 4041 IFS=$as_save_IFS 4042 test -z "$as_dir" && as_dir=. 4043 for ac_exec_ext in '' $ac_executable_extensions; do 4044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4045 ac_cv_prog_ac_ct_STRIP="strip" 4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4047 break 2 4048 fi 4049 done 4050 done 4051 IFS=$as_save_IFS 4052 4053 fi 4054 fi 4055 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4056 if test -n "$ac_ct_STRIP"; then 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4058 $as_echo "$ac_ct_STRIP" >&6; } 4059 else 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4061 $as_echo "no" >&6; } 4062 fi 4063 4064 if test "x$ac_ct_STRIP" = x; then 4065 STRIP=":" 4066 else 4067 case $cross_compiling:$ac_tool_warned in 4068 yes:) 4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4071 ac_tool_warned=yes ;; 4072 esac 4073 STRIP=$ac_ct_STRIP 4074 fi 4075 else 4076 STRIP="$ac_cv_prog_STRIP" 4077 fi 4078 4079 fi 4080 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4081 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4083 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4084 if test -z "$MKDIR_P"; then 4085 if ${ac_cv_path_mkdir+:} false; then : 4086 $as_echo_n "(cached) " >&6 4087 else 4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4089 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4090 do 4091 IFS=$as_save_IFS 4092 test -z "$as_dir" && as_dir=. 4093 for ac_prog in mkdir gmkdir; do 4094 for ac_exec_ext in '' $ac_executable_extensions; do 4095 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4096 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4097 'mkdir (GNU coreutils) '* | \ 4098 'mkdir (coreutils) '* | \ 4099 'mkdir (fileutils) '4.1*) 4100 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4101 break 3;; 4102 esac 4103 done 4104 done 4105 done 4106 IFS=$as_save_IFS 4107 4108 fi 4109 4110 test -d ./--version && rmdir ./--version 4111 if test "${ac_cv_path_mkdir+set}" = set; then 4112 MKDIR_P="$ac_cv_path_mkdir -p" 4113 else 4114 # As a last resort, use the slow shell script. Don't cache a 4115 # value for MKDIR_P within a source directory, because that will 4116 # break other packages using the cache if that directory is 4117 # removed, or if the value is a relative name. 4118 MKDIR_P="$ac_install_sh -d" 4119 fi 4120 fi 4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4122 $as_echo "$MKDIR_P" >&6; } 4123 4124 for ac_prog in gawk mawk nawk awk 4125 do 4126 # Extract the first word of "$ac_prog", so it can be a program name with args. 4127 set dummy $ac_prog; ac_word=$2 4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4129 $as_echo_n "checking for $ac_word... " >&6; } 4130 if ${ac_cv_prog_AWK+:} false; then : 4131 $as_echo_n "(cached) " >&6 4132 else 4133 if test -n "$AWK"; then 4134 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4135 else 4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4137 for as_dir in $PATH 4138 do 4139 IFS=$as_save_IFS 4140 test -z "$as_dir" && as_dir=. 4141 for ac_exec_ext in '' $ac_executable_extensions; do 4142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4143 ac_cv_prog_AWK="$ac_prog" 4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4145 break 2 4146 fi 4147 done 4148 done 4149 IFS=$as_save_IFS 4150 4151 fi 4152 fi 4153 AWK=$ac_cv_prog_AWK 4154 if test -n "$AWK"; then 4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4156 $as_echo "$AWK" >&6; } 4157 else 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4159 $as_echo "no" >&6; } 4160 fi 4161 4162 4163 test -n "$AWK" && break 4164 done 4165 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4167 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4168 set x ${MAKE-make} 4169 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4170 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4171 $as_echo_n "(cached) " >&6 4172 else 4173 cat >conftest.make <<\_ACEOF 4174 SHELL = /bin/sh 4175 all: 4176 @echo '@@@%%%=$(MAKE)=@@@%%%' 4177 _ACEOF 4178 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4179 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4180 *@@@%%%=?*=@@@%%%*) 4181 eval ac_cv_prog_make_${ac_make}_set=yes;; 4182 *) 4183 eval ac_cv_prog_make_${ac_make}_set=no;; 4184 esac 4185 rm -f conftest.make 4186 fi 4187 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4189 $as_echo "yes" >&6; } 4190 SET_MAKE= 4191 else 4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4193 $as_echo "no" >&6; } 4194 SET_MAKE="MAKE=${MAKE-make}" 4195 fi 4196 4197 rm -rf .tst 2>/dev/null 4198 mkdir .tst 2>/dev/null 4199 if test -d .tst; then 4200 am__leading_dot=. 4201 else 4202 am__leading_dot=_ 4203 fi 4204 rmdir .tst 2>/dev/null 4205 4206 DEPDIR="${am__leading_dot}deps" 4207 4208 ac_config_commands="$ac_config_commands depfiles" 4209 4210 4211 am_make=${MAKE-make} 4212 cat > confinc << 'END' 4213 am__doit: 4214 @echo this is the am__doit target 4215 .PHONY: am__doit 4216 END 4217 # If we don't find an include directive, just comment out the code. 4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4219 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4220 am__include="#" 4221 am__quote= 4222 _am_result=none 4223 # First try GNU make style include. 4224 echo "include confinc" > confmf 4225 # Ignore all kinds of additional output from 'make'. 4226 case `$am_make -s -f confmf 2> /dev/null` in #( 4227 *the\ am__doit\ target*) 4228 am__include=include 4229 am__quote= 4230 _am_result=GNU 4231 ;; 4232 esac 4233 # Now try BSD make style include. 4234 if test "$am__include" = "#"; then 4235 echo '.include "confinc"' > confmf 4236 case `$am_make -s -f confmf 2> /dev/null` in #( 4237 *the\ am__doit\ target*) 4238 am__include=.include 4239 am__quote="\"" 4240 _am_result=BSD 4241 ;; 4242 esac 4243 fi 4244 4245 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4247 $as_echo "$_am_result" >&6; } 4248 rm -f confinc confmf 4249 4250 # Check whether --enable-dependency-tracking was given. 4251 if test "${enable_dependency_tracking+set}" = set; then : 4252 enableval=$enable_dependency_tracking; 4253 fi 4254 4255 if test "x$enable_dependency_tracking" != xno; then 4256 am_depcomp="$ac_aux_dir/depcomp" 4257 AMDEPBACKSLASH='\' 4258 am__nodep='_no' 4259 fi 4260 if test "x$enable_dependency_tracking" != xno; then 4261 AMDEP_TRUE= 4262 AMDEP_FALSE='#' 4263 else 4264 AMDEP_TRUE='#' 4265 AMDEP_FALSE= 4266 fi 4267 4268 4269 # Check whether --enable-silent-rules was given. 4270 if test "${enable_silent_rules+set}" = set; then : 4271 enableval=$enable_silent_rules; 4272 fi 4273 4274 case $enable_silent_rules in # ((( 4275 yes) AM_DEFAULT_VERBOSITY=0;; 4276 no) AM_DEFAULT_VERBOSITY=1;; 4277 *) AM_DEFAULT_VERBOSITY=1;; 4278 esac 4279 am_make=${MAKE-make} 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4281 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4282 if ${am_cv_make_support_nested_variables+:} false; then : 4283 $as_echo_n "(cached) " >&6 4284 else 4285 if $as_echo 'TRUE=$(BAR$(V)) 4286 BAR0=false 4287 BAR1=true 4288 V=1 4289 am__doit: 4290 @$(TRUE) 4291 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4292 am_cv_make_support_nested_variables=yes 4293 else 4294 am_cv_make_support_nested_variables=no 4295 fi 4296 fi 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4298 $as_echo "$am_cv_make_support_nested_variables" >&6; } 4299 if test $am_cv_make_support_nested_variables = yes; then 4300 AM_V='$(V)' 4301 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4302 else 4303 AM_V=$AM_DEFAULT_VERBOSITY 4304 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4305 fi 4306 AM_BACKSLASH='\' 4307 4308 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4309 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4310 # is not polluted with repeated "-I." 4311 am__isrc=' -I$(srcdir)' 4312 # test to see if srcdir already configured 4313 if test -f $srcdir/config.status; then 4314 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4315 fi 4316 fi 4317 4318 # test whether we have cygpath 4319 if test -z "$CYGPATH_W"; then 4320 if (cygpath --version) >/dev/null 2>/dev/null; then 4321 CYGPATH_W='cygpath -w' 4322 else 4323 CYGPATH_W=echo 4324 fi 4325 fi 4326 4327 4328 # Define the identity of the package. 4329 PACKAGE='libctf' 4330 VERSION='1.2.0' 4331 4332 4333 cat >>confdefs.h <<_ACEOF 4334 #define PACKAGE "$PACKAGE" 4335 _ACEOF 4336 4337 4338 cat >>confdefs.h <<_ACEOF 4339 #define VERSION "$VERSION" 4340 _ACEOF 4341 4342 # Some tools Automake needs. 4343 4344 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4345 4346 4347 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4348 4349 4350 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4351 4352 4353 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4354 4355 4356 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4357 4358 # For better backward compatibility. To be removed once Automake 1.9.x 4359 # dies out for good. For more background, see: 4360 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4361 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4362 mkdir_p='$(MKDIR_P)' 4363 4364 # We need awk for the "check" target (and possibly the TAP driver). The 4365 # system "awk" is bad on some platforms. 4366 # Always define AMTAR for backward compatibility. Yes, it's still used 4367 # in the wild :-( We should find a proper way to deprecate it ... 4368 AMTAR='$${TAR-tar}' 4369 4370 4371 # We'll loop over all known methods to create a tar archive until one works. 4372 _am_tools='gnutar pax cpio none' 4373 4374 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4375 4376 4377 4378 4379 4380 depcc="$CC" am_compiler_list= 4381 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4383 $as_echo_n "checking dependency style of $depcc... " >&6; } 4384 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4385 $as_echo_n "(cached) " >&6 4386 else 4387 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4388 # We make a subdir and do the tests there. Otherwise we can end up 4389 # making bogus files that we don't know about and never remove. For 4390 # instance it was reported that on HP-UX the gcc test will end up 4391 # making a dummy file named 'D' -- because '-MD' means "put the output 4392 # in D". 4393 rm -rf conftest.dir 4394 mkdir conftest.dir 4395 # Copy depcomp to subdir because otherwise we won't find it if we're 4396 # using a relative directory. 4397 cp "$am_depcomp" conftest.dir 4398 cd conftest.dir 4399 # We will build objects and dependencies in a subdirectory because 4400 # it helps to detect inapplicable dependency modes. For instance 4401 # both Tru64's cc and ICC support -MD to output dependencies as a 4402 # side effect of compilation, but ICC will put the dependencies in 4403 # the current directory while Tru64 will put them in the object 4404 # directory. 4405 mkdir sub 4406 4407 am_cv_CC_dependencies_compiler_type=none 4408 if test "$am_compiler_list" = ""; then 4409 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4410 fi 4411 am__universal=false 4412 case " $depcc " in #( 4413 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4414 esac 4415 4416 for depmode in $am_compiler_list; do 4417 # Setup a source with many dependencies, because some compilers 4418 # like to wrap large dependency lists on column 80 (with \), and 4419 # we should not choose a depcomp mode which is confused by this. 4420 # 4421 # We need to recreate these files for each test, as the compiler may 4422 # overwrite some of them when testing with obscure command lines. 4423 # This happens at least with the AIX C compiler. 4424 : > sub/conftest.c 4425 for i in 1 2 3 4 5 6; do 4426 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4427 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4428 # Solaris 10 /bin/sh. 4429 echo '/* dummy */' > sub/conftst$i.h 4430 done 4431 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4432 4433 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4434 # mode. It turns out that the SunPro C++ compiler does not properly 4435 # handle '-M -o', and we need to detect this. Also, some Intel 4436 # versions had trouble with output in subdirs. 4437 am__obj=sub/conftest.${OBJEXT-o} 4438 am__minus_obj="-o $am__obj" 4439 case $depmode in 4440 gcc) 4441 # This depmode causes a compiler race in universal mode. 4442 test "$am__universal" = false || continue 4443 ;; 4444 nosideeffect) 4445 # After this tag, mechanisms are not by side-effect, so they'll 4446 # only be used when explicitly requested. 4447 if test "x$enable_dependency_tracking" = xyes; then 4448 continue 4449 else 4450 break 4451 fi 4452 ;; 4453 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4454 # This compiler won't grok '-c -o', but also, the minuso test has 4455 # not run yet. These depmodes are late enough in the game, and 4456 # so weak that their functioning should not be impacted. 4457 am__obj=conftest.${OBJEXT-o} 4458 am__minus_obj= 4459 ;; 4460 none) break ;; 4461 esac 4462 if depmode=$depmode \ 4463 source=sub/conftest.c object=$am__obj \ 4464 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4465 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4466 >/dev/null 2>conftest.err && 4467 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4468 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4469 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4470 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4471 # icc doesn't choke on unknown options, it will just issue warnings 4472 # or remarks (even with -Werror). So we grep stderr for any message 4473 # that says an option was ignored or not supported. 4474 # When given -MP, icc 7.0 and 7.1 complain thusly: 4475 # icc: Command line warning: ignoring option '-M'; no argument required 4476 # The diagnosis changed in icc 8.0: 4477 # icc: Command line remark: option '-MP' not supported 4478 if (grep 'ignoring option' conftest.err || 4479 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4480 am_cv_CC_dependencies_compiler_type=$depmode 4481 break 4482 fi 4483 fi 4484 done 4485 4486 cd .. 4487 rm -rf conftest.dir 4488 else 4489 am_cv_CC_dependencies_compiler_type=none 4490 fi 4491 4492 fi 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4494 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4495 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4496 4497 if 4498 test "x$enable_dependency_tracking" != xno \ 4499 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4500 am__fastdepCC_TRUE= 4501 am__fastdepCC_FALSE='#' 4502 else 4503 am__fastdepCC_TRUE='#' 4504 am__fastdepCC_FALSE= 4505 fi 4506 4507 4508 4509 # POSIX will say in a future version that running "rm -f" with no argument 4510 # is OK; and we want to be able to make that assumption in our Makefile 4511 # recipes. So use an aggressive probe to check that the usage we want is 4512 # actually supported "in the wild" to an acceptable degree. 4513 # See automake bug#10828. 4514 # To make any issue more visible, cause the running configure to be aborted 4515 # by default if the 'rm' program in use doesn't match our expectations; the 4516 # user can still override this though. 4517 if rm -f && rm -fr && rm -rf; then : OK; else 4518 cat >&2 <<'END' 4519 Oops! 4520 4521 Your 'rm' program seems unable to run without file operands specified 4522 on the command line, even when the '-f' option is present. This is contrary 4523 to the behaviour of most rm programs out there, and not conforming with 4524 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4525 4526 Please tell bug-automake@gnu.org about your system, including the value 4527 of your $PATH and any error possibly output before this message. This 4528 can help us improve future automake versions. 4529 4530 END 4531 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4532 echo 'Configuration will proceed anyway, since you have set the' >&2 4533 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4534 echo >&2 4535 else 4536 cat >&2 <<'END' 4537 Aborting the configuration process, to ensure you take notice of the issue. 4538 4539 You can download and install GNU coreutils to get an 'rm' implementation 4540 that behaves properly: <http://www.gnu.org/software/coreutils/>. 4541 4542 If you want to complete the configuration process using your problematic 4543 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4544 to "yes", and re-run configure. 4545 4546 END 4547 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4548 fi 4549 fi 4550 4551 # Check whether --enable-silent-rules was given. 4552 if test "${enable_silent_rules+set}" = set; then : 4553 enableval=$enable_silent_rules; 4554 fi 4555 4556 case $enable_silent_rules in # ((( 4557 yes) AM_DEFAULT_VERBOSITY=0;; 4558 no) AM_DEFAULT_VERBOSITY=1;; 4559 *) AM_DEFAULT_VERBOSITY=0;; 4560 esac 4561 am_make=${MAKE-make} 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4563 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4564 if ${am_cv_make_support_nested_variables+:} false; then : 4565 $as_echo_n "(cached) " >&6 4566 else 4567 if $as_echo 'TRUE=$(BAR$(V)) 4568 BAR0=false 4569 BAR1=true 4570 V=1 4571 am__doit: 4572 @$(TRUE) 4573 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4574 am_cv_make_support_nested_variables=yes 4575 else 4576 am_cv_make_support_nested_variables=no 4577 fi 4578 fi 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4580 $as_echo "$am_cv_make_support_nested_variables" >&6; } 4581 if test $am_cv_make_support_nested_variables = yes; then 4582 AM_V='$(V)' 4583 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4584 else 4585 AM_V=$AM_DEFAULT_VERBOSITY 4586 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4587 fi 4588 AM_BACKSLASH='\' 4589 4590 4591 # Checks for programs. 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4593 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4594 set x ${MAKE-make} 4595 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4596 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4597 $as_echo_n "(cached) " >&6 4598 else 4599 cat >conftest.make <<\_ACEOF 4600 SHELL = /bin/sh 4601 all: 4602 @echo '@@@%%%=$(MAKE)=@@@%%%' 4603 _ACEOF 4604 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4605 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4606 *@@@%%%=?*=@@@%%%*) 4607 eval ac_cv_prog_make_${ac_make}_set=yes;; 4608 *) 4609 eval ac_cv_prog_make_${ac_make}_set=no;; 4610 esac 4611 rm -f conftest.make 4612 fi 4613 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4615 $as_echo "yes" >&6; } 4616 SET_MAKE= 4617 else 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4619 $as_echo "no" >&6; } 4620 SET_MAKE="MAKE=${MAKE-make}" 4621 fi 4622 4623 ac_ext=c 4624 ac_cpp='$CPP $CPPFLAGS' 4625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4627 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4628 if test -n "$ac_tool_prefix"; then 4629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4630 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4632 $as_echo_n "checking for $ac_word... " >&6; } 4633 if ${ac_cv_prog_CC+:} false; then : 4634 $as_echo_n "(cached) " >&6 4635 else 4636 if test -n "$CC"; then 4637 ac_cv_prog_CC="$CC" # Let the user override the test. 4638 else 4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4640 for as_dir in $PATH 4641 do 4642 IFS=$as_save_IFS 4643 test -z "$as_dir" && as_dir=. 4644 for ac_exec_ext in '' $ac_executable_extensions; do 4645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4646 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4648 break 2 4649 fi 4650 done 4651 done 4652 IFS=$as_save_IFS 4653 4654 fi 4655 fi 4656 CC=$ac_cv_prog_CC 4657 if test -n "$CC"; then 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4659 $as_echo "$CC" >&6; } 4660 else 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4662 $as_echo "no" >&6; } 4663 fi 4664 4665 4666 fi 4667 if test -z "$ac_cv_prog_CC"; then 4668 ac_ct_CC=$CC 4669 # Extract the first word of "gcc", so it can be a program name with args. 4670 set dummy gcc; ac_word=$2 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4672 $as_echo_n "checking for $ac_word... " >&6; } 4673 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4674 $as_echo_n "(cached) " >&6 4675 else 4676 if test -n "$ac_ct_CC"; then 4677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4678 else 4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4680 for as_dir in $PATH 4681 do 4682 IFS=$as_save_IFS 4683 test -z "$as_dir" && as_dir=. 4684 for ac_exec_ext in '' $ac_executable_extensions; do 4685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4686 ac_cv_prog_ac_ct_CC="gcc" 4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4688 break 2 4689 fi 4690 done 4691 done 4692 IFS=$as_save_IFS 4693 4694 fi 4695 fi 4696 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4697 if test -n "$ac_ct_CC"; then 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4699 $as_echo "$ac_ct_CC" >&6; } 4700 else 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4702 $as_echo "no" >&6; } 4703 fi 4704 4705 if test "x$ac_ct_CC" = x; then 4706 CC="" 4707 else 4708 case $cross_compiling:$ac_tool_warned in 4709 yes:) 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4712 ac_tool_warned=yes ;; 4713 esac 4714 CC=$ac_ct_CC 4715 fi 4716 else 4717 CC="$ac_cv_prog_CC" 4718 fi 4719 4720 if test -z "$CC"; then 4721 if test -n "$ac_tool_prefix"; then 4722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4723 set dummy ${ac_tool_prefix}cc; ac_word=$2 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4725 $as_echo_n "checking for $ac_word... " >&6; } 4726 if ${ac_cv_prog_CC+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728 else 4729 if test -n "$CC"; then 4730 ac_cv_prog_CC="$CC" # Let the user override the test. 4731 else 4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4733 for as_dir in $PATH 4734 do 4735 IFS=$as_save_IFS 4736 test -z "$as_dir" && as_dir=. 4737 for ac_exec_ext in '' $ac_executable_extensions; do 4738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4739 ac_cv_prog_CC="${ac_tool_prefix}cc" 4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4741 break 2 4742 fi 4743 done 4744 done 4745 IFS=$as_save_IFS 4746 4747 fi 4748 fi 4749 CC=$ac_cv_prog_CC 4750 if test -n "$CC"; then 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4752 $as_echo "$CC" >&6; } 4753 else 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4755 $as_echo "no" >&6; } 4756 fi 4757 4758 4759 fi 4760 fi 4761 if test -z "$CC"; then 4762 # Extract the first word of "cc", so it can be a program name with args. 4763 set dummy cc; ac_word=$2 4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4765 $as_echo_n "checking for $ac_word... " >&6; } 4766 if ${ac_cv_prog_CC+:} false; then : 4767 $as_echo_n "(cached) " >&6 4768 else 4769 if test -n "$CC"; then 4770 ac_cv_prog_CC="$CC" # Let the user override the test. 4771 else 4772 ac_prog_rejected=no 4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4774 for as_dir in $PATH 4775 do 4776 IFS=$as_save_IFS 4777 test -z "$as_dir" && as_dir=. 4778 for ac_exec_ext in '' $ac_executable_extensions; do 4779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4780 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4781 ac_prog_rejected=yes 4782 continue 4783 fi 4784 ac_cv_prog_CC="cc" 4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4786 break 2 4787 fi 4788 done 4789 done 4790 IFS=$as_save_IFS 4791 4792 if test $ac_prog_rejected = yes; then 4793 # We found a bogon in the path, so make sure we never use it. 4794 set dummy $ac_cv_prog_CC 4795 shift 4796 if test $# != 0; then 4797 # We chose a different compiler from the bogus one. 4798 # However, it has the same basename, so the bogon will be chosen 4799 # first if we set CC to just the basename; use the full file name. 4800 shift 4801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4802 fi 4803 fi 4804 fi 4805 fi 4806 CC=$ac_cv_prog_CC 4807 if test -n "$CC"; then 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4809 $as_echo "$CC" >&6; } 4810 else 4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4812 $as_echo "no" >&6; } 4813 fi 4814 4815 4816 fi 4817 if test -z "$CC"; then 4818 if test -n "$ac_tool_prefix"; then 4819 for ac_prog in cl.exe 4820 do 4821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4824 $as_echo_n "checking for $ac_word... " >&6; } 4825 if ${ac_cv_prog_CC+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827 else 4828 if test -n "$CC"; then 4829 ac_cv_prog_CC="$CC" # Let the user override the test. 4830 else 4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4832 for as_dir in $PATH 4833 do 4834 IFS=$as_save_IFS 4835 test -z "$as_dir" && as_dir=. 4836 for ac_exec_ext in '' $ac_executable_extensions; do 4837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4840 break 2 4841 fi 4842 done 4843 done 4844 IFS=$as_save_IFS 4845 4846 fi 4847 fi 4848 CC=$ac_cv_prog_CC 4849 if test -n "$CC"; then 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4851 $as_echo "$CC" >&6; } 4852 else 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4854 $as_echo "no" >&6; } 4855 fi 4856 4857 4858 test -n "$CC" && break 4859 done 4860 fi 4861 if test -z "$CC"; then 4862 ac_ct_CC=$CC 4863 for ac_prog in cl.exe 4864 do 4865 # Extract the first word of "$ac_prog", so it can be a program name with args. 4866 set dummy $ac_prog; ac_word=$2 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4868 $as_echo_n "checking for $ac_word... " >&6; } 4869 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871 else 4872 if test -n "$ac_ct_CC"; then 4873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4874 else 4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4876 for as_dir in $PATH 4877 do 4878 IFS=$as_save_IFS 4879 test -z "$as_dir" && as_dir=. 4880 for ac_exec_ext in '' $ac_executable_extensions; do 4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4882 ac_cv_prog_ac_ct_CC="$ac_prog" 4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4884 break 2 4885 fi 4886 done 4887 done 4888 IFS=$as_save_IFS 4889 4890 fi 4891 fi 4892 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4893 if test -n "$ac_ct_CC"; then 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4895 $as_echo "$ac_ct_CC" >&6; } 4896 else 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4898 $as_echo "no" >&6; } 4899 fi 4900 4901 4902 test -n "$ac_ct_CC" && break 4903 done 4904 4905 if test "x$ac_ct_CC" = x; then 4906 CC="" 4907 else 4908 case $cross_compiling:$ac_tool_warned in 4909 yes:) 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4912 ac_tool_warned=yes ;; 4913 esac 4914 CC=$ac_ct_CC 4915 fi 4916 fi 4917 4918 fi 4919 4920 4921 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4923 as_fn_error $? "no acceptable C compiler found in \$PATH 4924 See \`config.log' for more details" "$LINENO" 5; } 4925 4926 # Provide some information about the compiler. 4927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4928 set X $ac_compile 4929 ac_compiler=$2 4930 for ac_option in --version -v -V -qversion; do 4931 { { ac_try="$ac_compiler $ac_option >&5" 4932 case "(($ac_try" in 4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4934 *) ac_try_echo=$ac_try;; 4935 esac 4936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4937 $as_echo "$ac_try_echo"; } >&5 4938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4939 ac_status=$? 4940 if test -s conftest.err; then 4941 sed '10a\ 4942 ... rest of stderr output deleted ... 4943 10q' conftest.err >conftest.er1 4944 cat conftest.er1 >&5 4945 fi 4946 rm -f conftest.er1 conftest.err 4947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4948 test $ac_status = 0; } 4949 done 4950 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4952 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4953 if ${ac_cv_c_compiler_gnu+:} false; then : 4954 $as_echo_n "(cached) " >&6 4955 else 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957 /* end confdefs.h. */ 4958 4959 int 4960 main () 4961 { 4962 #ifndef __GNUC__ 4963 choke me 4964 #endif 4965 4966 ; 4967 return 0; 4968 } 4969 _ACEOF 4970 if ac_fn_c_try_compile "$LINENO"; then : 4971 ac_compiler_gnu=yes 4972 else 4973 ac_compiler_gnu=no 4974 fi 4975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4976 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4977 4978 fi 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4980 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4981 if test $ac_compiler_gnu = yes; then 4982 GCC=yes 4983 else 4984 GCC= 4985 fi 4986 ac_test_CFLAGS=${CFLAGS+set} 4987 ac_save_CFLAGS=$CFLAGS 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4989 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4990 if ${ac_cv_prog_cc_g+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992 else 4993 ac_save_c_werror_flag=$ac_c_werror_flag 4994 ac_c_werror_flag=yes 4995 ac_cv_prog_cc_g=no 4996 CFLAGS="-g" 4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4998 /* end confdefs.h. */ 4999 5000 int 5001 main () 5002 { 5003 5004 ; 5005 return 0; 5006 } 5007 _ACEOF 5008 if ac_fn_c_try_compile "$LINENO"; then : 5009 ac_cv_prog_cc_g=yes 5010 else 5011 CFLAGS="" 5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5013 /* end confdefs.h. */ 5014 5015 int 5016 main () 5017 { 5018 5019 ; 5020 return 0; 5021 } 5022 _ACEOF 5023 if ac_fn_c_try_compile "$LINENO"; then : 5024 5025 else 5026 ac_c_werror_flag=$ac_save_c_werror_flag 5027 CFLAGS="-g" 5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5029 /* end confdefs.h. */ 5030 5031 int 5032 main () 5033 { 5034 5035 ; 5036 return 0; 5037 } 5038 _ACEOF 5039 if ac_fn_c_try_compile "$LINENO"; then : 5040 ac_cv_prog_cc_g=yes 5041 fi 5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5043 fi 5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5045 fi 5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5047 ac_c_werror_flag=$ac_save_c_werror_flag 5048 fi 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5050 $as_echo "$ac_cv_prog_cc_g" >&6; } 5051 if test "$ac_test_CFLAGS" = set; then 5052 CFLAGS=$ac_save_CFLAGS 5053 elif test $ac_cv_prog_cc_g = yes; then 5054 if test "$GCC" = yes; then 5055 CFLAGS="-g -O2" 5056 else 5057 CFLAGS="-g" 5058 fi 5059 else 5060 if test "$GCC" = yes; then 5061 CFLAGS="-O2" 5062 else 5063 CFLAGS= 5064 fi 5065 fi 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5067 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5068 if ${ac_cv_prog_cc_c89+:} false; then : 5069 $as_echo_n "(cached) " >&6 5070 else 5071 ac_cv_prog_cc_c89=no 5072 ac_save_CC=$CC 5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5074 /* end confdefs.h. */ 5075 #include <stdarg.h> 5076 #include <stdio.h> 5077 struct stat; 5078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5079 struct buf { int x; }; 5080 FILE * (*rcsopen) (struct buf *, struct stat *, int); 5081 static char *e (p, i) 5082 char **p; 5083 int i; 5084 { 5085 return p[i]; 5086 } 5087 static char *f (char * (*g) (char **, int), char **p, ...) 5088 { 5089 char *s; 5090 va_list v; 5091 va_start (v,p); 5092 s = g (p, va_arg (v,int)); 5093 va_end (v); 5094 return s; 5095 } 5096 5097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5098 function prototypes and stuff, but not '\xHH' hex character constants. 5099 These don't provoke an error unfortunately, instead are silently treated 5100 as 'x'. The following induces an error, until -std is added to get 5101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5102 array size at least. It's necessary to write '\x00'==0 to get something 5103 that's true only with -std. */ 5104 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5105 5106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5107 inside strings and character constants. */ 5108 #define FOO(x) 'x' 5109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5110 5111 int test (int i, double x); 5112 struct s1 {int (*f) (int a);}; 5113 struct s2 {int (*f) (double a);}; 5114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5115 int argc; 5116 char **argv; 5117 int 5118 main () 5119 { 5120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5121 ; 5122 return 0; 5123 } 5124 _ACEOF 5125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5127 do 5128 CC="$ac_save_CC $ac_arg" 5129 if ac_fn_c_try_compile "$LINENO"; then : 5130 ac_cv_prog_cc_c89=$ac_arg 5131 fi 5132 rm -f core conftest.err conftest.$ac_objext 5133 test "x$ac_cv_prog_cc_c89" != "xno" && break 5134 done 5135 rm -f conftest.$ac_ext 5136 CC=$ac_save_CC 5137 5138 fi 5139 # AC_CACHE_VAL 5140 case "x$ac_cv_prog_cc_c89" in 5141 x) 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5143 $as_echo "none needed" >&6; } ;; 5144 xno) 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5146 $as_echo "unsupported" >&6; } ;; 5147 *) 5148 CC="$CC $ac_cv_prog_cc_c89" 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5150 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5151 esac 5152 if test "x$ac_cv_prog_cc_c89" != xno; then : 5153 5154 fi 5155 5156 ac_ext=c 5157 ac_cpp='$CPP $CPPFLAGS' 5158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5160 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5161 5162 ac_ext=c 5163 ac_cpp='$CPP $CPPFLAGS' 5164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5166 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5168 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5169 if ${am_cv_prog_cc_c_o+:} false; then : 5170 $as_echo_n "(cached) " >&6 5171 else 5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5173 /* end confdefs.h. */ 5174 5175 int 5176 main () 5177 { 5178 5179 ; 5180 return 0; 5181 } 5182 _ACEOF 5183 # Make sure it works both with $CC and with simple cc. 5184 # Following AC_PROG_CC_C_O, we do the test twice because some 5185 # compilers refuse to overwrite an existing .o file with -o, 5186 # though they will create one. 5187 am_cv_prog_cc_c_o=yes 5188 for am_i in 1 2; do 5189 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5190 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5191 ac_status=$? 5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5193 (exit $ac_status); } \ 5194 && test -f conftest2.$ac_objext; then 5195 : OK 5196 else 5197 am_cv_prog_cc_c_o=no 5198 break 5199 fi 5200 done 5201 rm -f core conftest* 5202 unset am_i 5203 fi 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5205 $as_echo "$am_cv_prog_cc_c_o" >&6; } 5206 if test "$am_cv_prog_cc_c_o" != yes; then 5207 # Losing compiler, so override with the script. 5208 # FIXME: It is wrong to rewrite CC. 5209 # But if we don't then we get into trouble of one sort or another. 5210 # A longer-term fix would be to have automake use am__CC in this case, 5211 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5212 CC="$am_aux_dir/compile $CC" 5213 fi 5214 ac_ext=c 5215 ac_cpp='$CPP $CPPFLAGS' 5216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5218 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5219 5220 5221 if test -n "$ac_tool_prefix"; then 5222 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5223 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5225 $as_echo_n "checking for $ac_word... " >&6; } 5226 if ${ac_cv_prog_RANLIB+:} false; then : 5227 $as_echo_n "(cached) " >&6 5228 else 5229 if test -n "$RANLIB"; then 5230 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5231 else 5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5233 for as_dir in $PATH 5234 do 5235 IFS=$as_save_IFS 5236 test -z "$as_dir" && as_dir=. 5237 for ac_exec_ext in '' $ac_executable_extensions; do 5238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5239 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5241 break 2 5242 fi 5243 done 5244 done 5245 IFS=$as_save_IFS 5246 5247 fi 5248 fi 5249 RANLIB=$ac_cv_prog_RANLIB 5250 if test -n "$RANLIB"; then 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5252 $as_echo "$RANLIB" >&6; } 5253 else 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5255 $as_echo "no" >&6; } 5256 fi 5257 5258 5259 fi 5260 if test -z "$ac_cv_prog_RANLIB"; then 5261 ac_ct_RANLIB=$RANLIB 5262 # Extract the first word of "ranlib", so it can be a program name with args. 5263 set dummy ranlib; ac_word=$2 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5265 $as_echo_n "checking for $ac_word... " >&6; } 5266 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268 else 5269 if test -n "$ac_ct_RANLIB"; then 5270 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5271 else 5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5273 for as_dir in $PATH 5274 do 5275 IFS=$as_save_IFS 5276 test -z "$as_dir" && as_dir=. 5277 for ac_exec_ext in '' $ac_executable_extensions; do 5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5279 ac_cv_prog_ac_ct_RANLIB="ranlib" 5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5281 break 2 5282 fi 5283 done 5284 done 5285 IFS=$as_save_IFS 5286 5287 fi 5288 fi 5289 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5290 if test -n "$ac_ct_RANLIB"; then 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5292 $as_echo "$ac_ct_RANLIB" >&6; } 5293 else 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5295 $as_echo "no" >&6; } 5296 fi 5297 5298 if test "x$ac_ct_RANLIB" = x; then 5299 RANLIB=":" 5300 else 5301 case $cross_compiling:$ac_tool_warned in 5302 yes:) 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5305 ac_tool_warned=yes ;; 5306 esac 5307 RANLIB=$ac_ct_RANLIB 5308 fi 5309 else 5310 RANLIB="$ac_cv_prog_RANLIB" 5311 fi 5312 5313 if test -n "$ac_tool_prefix"; then 5314 for ac_prog in ar lib "link -lib" 5315 do 5316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5319 $as_echo_n "checking for $ac_word... " >&6; } 5320 if ${ac_cv_prog_AR+:} false; then : 5321 $as_echo_n "(cached) " >&6 5322 else 5323 if test -n "$AR"; then 5324 ac_cv_prog_AR="$AR" # Let the user override the test. 5325 else 5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5327 for as_dir in $PATH 5328 do 5329 IFS=$as_save_IFS 5330 test -z "$as_dir" && as_dir=. 5331 for ac_exec_ext in '' $ac_executable_extensions; do 5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5333 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5335 break 2 5336 fi 5337 done 5338 done 5339 IFS=$as_save_IFS 5340 5341 fi 5342 fi 5343 AR=$ac_cv_prog_AR 5344 if test -n "$AR"; then 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5346 $as_echo "$AR" >&6; } 5347 else 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5349 $as_echo "no" >&6; } 5350 fi 5351 5352 5353 test -n "$AR" && break 5354 done 5355 fi 5356 if test -z "$AR"; then 5357 ac_ct_AR=$AR 5358 for ac_prog in ar lib "link -lib" 5359 do 5360 # Extract the first word of "$ac_prog", so it can be a program name with args. 5361 set dummy $ac_prog; ac_word=$2 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5363 $as_echo_n "checking for $ac_word... " >&6; } 5364 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5365 $as_echo_n "(cached) " >&6 5366 else 5367 if test -n "$ac_ct_AR"; then 5368 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5369 else 5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5371 for as_dir in $PATH 5372 do 5373 IFS=$as_save_IFS 5374 test -z "$as_dir" && as_dir=. 5375 for ac_exec_ext in '' $ac_executable_extensions; do 5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5377 ac_cv_prog_ac_ct_AR="$ac_prog" 5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5379 break 2 5380 fi 5381 done 5382 done 5383 IFS=$as_save_IFS 5384 5385 fi 5386 fi 5387 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5388 if test -n "$ac_ct_AR"; then 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5390 $as_echo "$ac_ct_AR" >&6; } 5391 else 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5393 $as_echo "no" >&6; } 5394 fi 5395 5396 5397 test -n "$ac_ct_AR" && break 5398 done 5399 5400 if test "x$ac_ct_AR" = x; then 5401 AR="false" 5402 else 5403 case $cross_compiling:$ac_tool_warned in 5404 yes:) 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5407 ac_tool_warned=yes ;; 5408 esac 5409 AR=$ac_ct_AR 5410 fi 5411 fi 5412 5413 : ${AR=ar} 5414 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5416 $as_echo_n "checking the archiver ($AR) interface... " >&6; } 5417 if ${am_cv_ar_interface+:} false; then : 5418 $as_echo_n "(cached) " >&6 5419 else 5420 ac_ext=c 5421 ac_cpp='$CPP $CPPFLAGS' 5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5425 5426 am_cv_ar_interface=ar 5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5428 /* end confdefs.h. */ 5429 int some_variable = 0; 5430 _ACEOF 5431 if ac_fn_c_try_compile "$LINENO"; then : 5432 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5434 (eval $am_ar_try) 2>&5 5435 ac_status=$? 5436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5437 test $ac_status = 0; } 5438 if test "$ac_status" -eq 0; then 5439 am_cv_ar_interface=ar 5440 else 5441 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5443 (eval $am_ar_try) 2>&5 5444 ac_status=$? 5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5446 test $ac_status = 0; } 5447 if test "$ac_status" -eq 0; then 5448 am_cv_ar_interface=lib 5449 else 5450 am_cv_ar_interface=unknown 5451 fi 5452 fi 5453 rm -f conftest.lib libconftest.a 5454 5455 fi 5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5457 ac_ext=c 5458 ac_cpp='$CPP $CPPFLAGS' 5459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5461 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5462 5463 fi 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5465 $as_echo "$am_cv_ar_interface" >&6; } 5466 5467 case $am_cv_ar_interface in 5468 ar) 5469 ;; 5470 lib) 5471 # Microsoft lib, so override with the ar-lib wrapper script. 5472 # FIXME: It is wrong to rewrite AR. 5473 # But if we don't then we get into trouble of one sort or another. 5474 # A longer-term fix would be to have automake use am__AR in this case, 5475 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5476 # similar. 5477 AR="$am_aux_dir/ar-lib $AR" 5478 ;; 5479 unknown) 5480 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5481 ;; 5482 esac 5483 5484 5485 MKINSTALLDIRS= 5486 if test -n "$ac_aux_dir"; then 5487 case "$ac_aux_dir" in 5488 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 5489 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 5490 esac 5491 fi 5492 if test -z "$MKINSTALLDIRS"; then 5493 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 5494 fi 5495 5496 5497 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 5499 $as_echo_n "checking whether NLS is requested... " >&6; } 5500 # Check whether --enable-nls was given. 5501 if test "${enable_nls+set}" = set; then : 5502 enableval=$enable_nls; USE_NLS=$enableval 5503 else 5504 USE_NLS=yes 5505 fi 5506 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5508 $as_echo "$USE_NLS" >&6; } 5509 5510 5511 5512 5513 5514 5515 # Prepare PATH_SEPARATOR. 5516 # The user is always right. 5517 if test "${PATH_SEPARATOR+set}" != set; then 5518 echo "#! /bin/sh" >conf$$.sh 5519 echo "exit 0" >>conf$$.sh 5520 chmod +x conf$$.sh 5521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5522 PATH_SEPARATOR=';' 5523 else 5524 PATH_SEPARATOR=: 5525 fi 5526 rm -f conf$$.sh 5527 fi 5528 5529 # Find out how to test for executable files. Don't use a zero-byte file, 5530 # as systems may use methods other than mode bits to determine executability. 5531 cat >conf$$.file <<_ASEOF 5532 #! /bin/sh 5533 exit 0 5534 _ASEOF 5535 chmod +x conf$$.file 5536 if test -x conf$$.file >/dev/null 2>&1; then 5537 ac_executable_p="test -x" 5538 else 5539 ac_executable_p="test -f" 5540 fi 5541 rm -f conf$$.file 5542 5543 # Extract the first word of "msgfmt", so it can be a program name with args. 5544 set dummy msgfmt; ac_word=$2 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5546 $as_echo_n "checking for $ac_word... " >&6; } 5547 if ${ac_cv_path_MSGFMT+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549 else 5550 case "$MSGFMT" in 5551 [\\/]* | ?:[\\/]*) 5552 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 5553 ;; 5554 *) 5555 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5556 for ac_dir in $PATH; do 5557 IFS="$ac_save_IFS" 5558 test -z "$ac_dir" && ac_dir=. 5559 for ac_exec_ext in '' $ac_executable_extensions; do 5560 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5561 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 5562 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5563 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 5564 break 2 5565 fi 5566 fi 5567 done 5568 done 5569 IFS="$ac_save_IFS" 5570 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 5571 ;; 5572 esac 5573 fi 5574 MSGFMT="$ac_cv_path_MSGFMT" 5575 if test "$MSGFMT" != ":"; then 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 5577 $as_echo "$MSGFMT" >&6; } 5578 else 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5580 $as_echo "no" >&6; } 5581 fi 5582 5583 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5584 set dummy gmsgfmt; ac_word=$2 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5586 $as_echo_n "checking for $ac_word... " >&6; } 5587 if ${ac_cv_path_GMSGFMT+:} false; then : 5588 $as_echo_n "(cached) " >&6 5589 else 5590 case $GMSGFMT in 5591 [\\/]* | ?:[\\/]*) 5592 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5593 ;; 5594 *) 5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5596 for as_dir in $PATH 5597 do 5598 IFS=$as_save_IFS 5599 test -z "$as_dir" && as_dir=. 5600 for ac_exec_ext in '' $ac_executable_extensions; do 5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5602 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5604 break 2 5605 fi 5606 done 5607 done 5608 IFS=$as_save_IFS 5609 5610 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5611 ;; 5612 esac 5613 fi 5614 GMSGFMT=$ac_cv_path_GMSGFMT 5615 if test -n "$GMSGFMT"; then 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 5617 $as_echo "$GMSGFMT" >&6; } 5618 else 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5620 $as_echo "no" >&6; } 5621 fi 5622 5623 5624 5625 5626 # Prepare PATH_SEPARATOR. 5627 # The user is always right. 5628 if test "${PATH_SEPARATOR+set}" != set; then 5629 echo "#! /bin/sh" >conf$$.sh 5630 echo "exit 0" >>conf$$.sh 5631 chmod +x conf$$.sh 5632 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5633 PATH_SEPARATOR=';' 5634 else 5635 PATH_SEPARATOR=: 5636 fi 5637 rm -f conf$$.sh 5638 fi 5639 5640 # Find out how to test for executable files. Don't use a zero-byte file, 5641 # as systems may use methods other than mode bits to determine executability. 5642 cat >conf$$.file <<_ASEOF 5643 #! /bin/sh 5644 exit 0 5645 _ASEOF 5646 chmod +x conf$$.file 5647 if test -x conf$$.file >/dev/null 2>&1; then 5648 ac_executable_p="test -x" 5649 else 5650 ac_executable_p="test -f" 5651 fi 5652 rm -f conf$$.file 5653 5654 # Extract the first word of "xgettext", so it can be a program name with args. 5655 set dummy xgettext; ac_word=$2 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5657 $as_echo_n "checking for $ac_word... " >&6; } 5658 if ${ac_cv_path_XGETTEXT+:} false; then : 5659 $as_echo_n "(cached) " >&6 5660 else 5661 case "$XGETTEXT" in 5662 [\\/]* | ?:[\\/]*) 5663 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5664 ;; 5665 *) 5666 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5667 for ac_dir in $PATH; do 5668 IFS="$ac_save_IFS" 5669 test -z "$ac_dir" && ac_dir=. 5670 for ac_exec_ext in '' $ac_executable_extensions; do 5671 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5672 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 5673 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5674 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 5675 break 2 5676 fi 5677 fi 5678 done 5679 done 5680 IFS="$ac_save_IFS" 5681 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 5682 ;; 5683 esac 5684 fi 5685 XGETTEXT="$ac_cv_path_XGETTEXT" 5686 if test "$XGETTEXT" != ":"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 5688 $as_echo "$XGETTEXT" >&6; } 5689 else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5691 $as_echo "no" >&6; } 5692 fi 5693 5694 rm -f messages.po 5695 5696 5697 # Prepare PATH_SEPARATOR. 5698 # The user is always right. 5699 if test "${PATH_SEPARATOR+set}" != set; then 5700 echo "#! /bin/sh" >conf$$.sh 5701 echo "exit 0" >>conf$$.sh 5702 chmod +x conf$$.sh 5703 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5704 PATH_SEPARATOR=';' 5705 else 5706 PATH_SEPARATOR=: 5707 fi 5708 rm -f conf$$.sh 5709 fi 5710 5711 # Find out how to test for executable files. Don't use a zero-byte file, 5712 # as systems may use methods other than mode bits to determine executability. 5713 cat >conf$$.file <<_ASEOF 5714 #! /bin/sh 5715 exit 0 5716 _ASEOF 5717 chmod +x conf$$.file 5718 if test -x conf$$.file >/dev/null 2>&1; then 5719 ac_executable_p="test -x" 5720 else 5721 ac_executable_p="test -f" 5722 fi 5723 rm -f conf$$.file 5724 5725 # Extract the first word of "msgmerge", so it can be a program name with args. 5726 set dummy msgmerge; ac_word=$2 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5728 $as_echo_n "checking for $ac_word... " >&6; } 5729 if ${ac_cv_path_MSGMERGE+:} false; then : 5730 $as_echo_n "(cached) " >&6 5731 else 5732 case "$MSGMERGE" in 5733 [\\/]* | ?:[\\/]*) 5734 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 5735 ;; 5736 *) 5737 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5738 for ac_dir in $PATH; do 5739 IFS="$ac_save_IFS" 5740 test -z "$ac_dir" && ac_dir=. 5741 for ac_exec_ext in '' $ac_executable_extensions; do 5742 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5743 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 5744 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 5745 break 2 5746 fi 5747 fi 5748 done 5749 done 5750 IFS="$ac_save_IFS" 5751 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 5752 ;; 5753 esac 5754 fi 5755 MSGMERGE="$ac_cv_path_MSGMERGE" 5756 if test "$MSGMERGE" != ":"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 5758 $as_echo "$MSGMERGE" >&6; } 5759 else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761 $as_echo "no" >&6; } 5762 fi 5763 5764 5765 if test "$GMSGFMT" != ":"; then 5766 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 5767 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5768 : ; 5769 else 5770 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 5772 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 5773 GMSGFMT=":" 5774 fi 5775 fi 5776 5777 if test "$XGETTEXT" != ":"; then 5778 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 5779 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5780 : ; 5781 else 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 5783 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 5784 XGETTEXT=":" 5785 fi 5786 rm -f messages.po 5787 fi 5788 5789 ac_config_commands="$ac_config_commands default-1" 5790 5791 5792 5793 if test "X$prefix" = "XNONE"; then 5794 acl_final_prefix="$ac_default_prefix" 5795 else 5796 acl_final_prefix="$prefix" 5797 fi 5798 if test "X$exec_prefix" = "XNONE"; then 5799 acl_final_exec_prefix='${prefix}' 5800 else 5801 acl_final_exec_prefix="$exec_prefix" 5802 fi 5803 acl_save_prefix="$prefix" 5804 prefix="$acl_final_prefix" 5805 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 5806 prefix="$acl_save_prefix" 5807 5808 5809 # Check whether --with-gnu-ld was given. 5810 if test "${with_gnu_ld+set}" = set; then : 5811 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5812 else 5813 with_gnu_ld=no 5814 fi 5815 5816 # Prepare PATH_SEPARATOR. 5817 # The user is always right. 5818 if test "${PATH_SEPARATOR+set}" != set; then 5819 echo "#! /bin/sh" >conf$$.sh 5820 echo "exit 0" >>conf$$.sh 5821 chmod +x conf$$.sh 5822 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5823 PATH_SEPARATOR=';' 5824 else 5825 PATH_SEPARATOR=: 5826 fi 5827 rm -f conf$$.sh 5828 fi 5829 ac_prog=ld 5830 if test "$GCC" = yes; then 5831 # Check if gcc -print-prog-name=ld gives a path. 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 5833 $as_echo_n "checking for ld used by GCC... " >&6; } 5834 case $host in 5835 *-*-mingw*) 5836 # gcc leaves a trailing carriage return which upsets mingw 5837 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5838 *) 5839 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5840 esac 5841 case $ac_prog in 5842 # Accept absolute paths. 5843 [\\/]* | [A-Za-z]:[\\/]*) 5844 re_direlt='/[^/][^/]*/\.\./' 5845 # Canonicalize the path of ld 5846 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 5847 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5848 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 5849 done 5850 test -z "$LD" && LD="$ac_prog" 5851 ;; 5852 "") 5853 # If it fails, then pretend we aren't using GCC. 5854 ac_prog=ld 5855 ;; 5856 *) 5857 # If it is relative, then search for the first ld in PATH. 5858 with_gnu_ld=unknown 5859 ;; 5860 esac 5861 elif test "$with_gnu_ld" = yes; then 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5863 $as_echo_n "checking for GNU ld... " >&6; } 5864 else 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5866 $as_echo_n "checking for non-GNU ld... " >&6; } 5867 fi 5868 if ${acl_cv_path_LD+:} false; then : 5869 $as_echo_n "(cached) " >&6 5870 else 5871 if test -z "$LD"; then 5872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 5873 for ac_dir in $PATH; do 5874 test -z "$ac_dir" && ac_dir=. 5875 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5876 acl_cv_path_LD="$ac_dir/$ac_prog" 5877 # Check to see if the program is GNU ld. I'd rather use --version, 5878 # but apparently some GNU ld's only accept -v. 5879 # Break only if it was the GNU/non-GNU ld that we prefer. 5880 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then 5881 test "$with_gnu_ld" != no && break 5882 else 5883 test "$with_gnu_ld" != yes && break 5884 fi 5885 fi 5886 done 5887 IFS="$ac_save_ifs" 5888 else 5889 acl_cv_path_LD="$LD" # Let the user override the test with a path. 5890 fi 5891 fi 5892 5893 LD="$acl_cv_path_LD" 5894 if test -n "$LD"; then 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5896 $as_echo "$LD" >&6; } 5897 else 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5899 $as_echo "no" >&6; } 5900 fi 5901 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5903 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5904 if ${acl_cv_prog_gnu_ld+:} false; then : 5905 $as_echo_n "(cached) " >&6 5906 else 5907 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 5908 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then 5909 acl_cv_prog_gnu_ld=yes 5910 else 5911 acl_cv_prog_gnu_ld=no 5912 fi 5913 fi 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 5915 $as_echo "$acl_cv_prog_gnu_ld" >&6; } 5916 with_gnu_ld=$acl_cv_prog_gnu_ld 5917 5918 5919 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 5921 $as_echo_n "checking for shared library run path origin... " >&6; } 5922 if ${acl_cv_rpath+:} false; then : 5923 $as_echo_n "(cached) " >&6 5924 else 5925 5926 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 5927 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 5928 . ./conftest.sh 5929 rm -f ./conftest.sh 5930 acl_cv_rpath=done 5931 5932 fi 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 5934 $as_echo "$acl_cv_rpath" >&6; } 5935 wl="$acl_cv_wl" 5936 libext="$acl_cv_libext" 5937 shlibext="$acl_cv_shlibext" 5938 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 5939 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 5940 hardcode_direct="$acl_cv_hardcode_direct" 5941 hardcode_minus_L="$acl_cv_hardcode_minus_L" 5942 # Check whether --enable-rpath was given. 5943 if test "${enable_rpath+set}" = set; then : 5944 enableval=$enable_rpath; : 5945 else 5946 enable_rpath=yes 5947 fi 5948 5949 5950 5951 5952 5953 5954 5955 5956 use_additional=yes 5957 5958 acl_save_prefix="$prefix" 5959 prefix="$acl_final_prefix" 5960 acl_save_exec_prefix="$exec_prefix" 5961 exec_prefix="$acl_final_exec_prefix" 5962 5963 eval additional_includedir=\"$includedir\" 5964 eval additional_libdir=\"$libdir\" 5965 5966 exec_prefix="$acl_save_exec_prefix" 5967 prefix="$acl_save_prefix" 5968 5969 5970 # Check whether --with-libiconv-prefix was given. 5971 if test "${with_libiconv_prefix+set}" = set; then : 5972 withval=$with_libiconv_prefix; 5973 if test "X$withval" = "Xno"; then 5974 use_additional=no 5975 else 5976 if test "X$withval" = "X"; then 5977 5978 acl_save_prefix="$prefix" 5979 prefix="$acl_final_prefix" 5980 acl_save_exec_prefix="$exec_prefix" 5981 exec_prefix="$acl_final_exec_prefix" 5982 5983 eval additional_includedir=\"$includedir\" 5984 eval additional_libdir=\"$libdir\" 5985 5986 exec_prefix="$acl_save_exec_prefix" 5987 prefix="$acl_save_prefix" 5988 5989 else 5990 additional_includedir="$withval/include" 5991 additional_libdir="$withval/lib" 5992 fi 5993 fi 5994 5995 fi 5996 5997 5998 # Check whether --with-libiconv-type was given. 5999 if test "${with_libiconv_type+set}" = set; then : 6000 withval=$with_libiconv_type; with_libiconv_type=$withval 6001 else 6002 with_libiconv_type=auto 6003 fi 6004 6005 lib_type=`eval echo \$with_libiconv_type` 6006 6007 LIBICONV= 6008 LTLIBICONV= 6009 INCICONV= 6010 rpathdirs= 6011 ltrpathdirs= 6012 names_already_handled= 6013 names_next_round='iconv ' 6014 while test -n "$names_next_round"; do 6015 names_this_round="$names_next_round" 6016 names_next_round= 6017 for name in $names_this_round; do 6018 already_handled= 6019 for n in $names_already_handled; do 6020 if test "$n" = "$name"; then 6021 already_handled=yes 6022 break 6023 fi 6024 done 6025 if test -z "$already_handled"; then 6026 names_already_handled="$names_already_handled $name" 6027 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6028 eval value=\"\$HAVE_LIB$uppername\" 6029 if test -n "$value"; then 6030 if test "$value" = yes; then 6031 eval value=\"\$LIB$uppername\" 6032 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 6033 eval value=\"\$LTLIB$uppername\" 6034 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 6035 else 6036 : 6037 fi 6038 else 6039 found_dir= 6040 found_la= 6041 found_so= 6042 found_a= 6043 if test $use_additional = yes; then 6044 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6045 found_dir="$additional_libdir" 6046 found_so="$additional_libdir/lib$name.$shlibext" 6047 if test -f "$additional_libdir/lib$name.la"; then 6048 found_la="$additional_libdir/lib$name.la" 6049 fi 6050 elif test x$lib_type != xshared; then 6051 if test -f "$additional_libdir/lib$name.$libext"; then 6052 found_dir="$additional_libdir" 6053 found_a="$additional_libdir/lib$name.$libext" 6054 if test -f "$additional_libdir/lib$name.la"; then 6055 found_la="$additional_libdir/lib$name.la" 6056 fi 6057 fi 6058 fi 6059 fi 6060 if test "X$found_dir" = "X"; then 6061 for x in $LDFLAGS $LTLIBICONV; do 6062 6063 acl_save_prefix="$prefix" 6064 prefix="$acl_final_prefix" 6065 acl_save_exec_prefix="$exec_prefix" 6066 exec_prefix="$acl_final_exec_prefix" 6067 eval x=\"$x\" 6068 exec_prefix="$acl_save_exec_prefix" 6069 prefix="$acl_save_prefix" 6070 6071 case "$x" in 6072 -L*) 6073 dir=`echo "X$x" | sed -e 's/^X-L//'` 6074 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6075 found_dir="$dir" 6076 found_so="$dir/lib$name.$shlibext" 6077 if test -f "$dir/lib$name.la"; then 6078 found_la="$dir/lib$name.la" 6079 fi 6080 elif test x$lib_type != xshared; then 6081 if test -f "$dir/lib$name.$libext"; then 6082 found_dir="$dir" 6083 found_a="$dir/lib$name.$libext" 6084 if test -f "$dir/lib$name.la"; then 6085 found_la="$dir/lib$name.la" 6086 fi 6087 fi 6088 fi 6089 ;; 6090 esac 6091 if test "X$found_dir" != "X"; then 6092 break 6093 fi 6094 done 6095 fi 6096 if test "X$found_dir" != "X"; then 6097 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 6098 if test "X$found_so" != "X"; then 6099 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 6100 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6101 else 6102 haveit= 6103 for x in $ltrpathdirs; do 6104 if test "X$x" = "X$found_dir"; then 6105 haveit=yes 6106 break 6107 fi 6108 done 6109 if test -z "$haveit"; then 6110 ltrpathdirs="$ltrpathdirs $found_dir" 6111 fi 6112 if test "$hardcode_direct" = yes; then 6113 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6114 else 6115 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 6116 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6117 haveit= 6118 for x in $rpathdirs; do 6119 if test "X$x" = "X$found_dir"; then 6120 haveit=yes 6121 break 6122 fi 6123 done 6124 if test -z "$haveit"; then 6125 rpathdirs="$rpathdirs $found_dir" 6126 fi 6127 else 6128 haveit= 6129 for x in $LDFLAGS $LIBICONV; do 6130 6131 acl_save_prefix="$prefix" 6132 prefix="$acl_final_prefix" 6133 acl_save_exec_prefix="$exec_prefix" 6134 exec_prefix="$acl_final_exec_prefix" 6135 eval x=\"$x\" 6136 exec_prefix="$acl_save_exec_prefix" 6137 prefix="$acl_save_prefix" 6138 6139 if test "X$x" = "X-L$found_dir"; then 6140 haveit=yes 6141 break 6142 fi 6143 done 6144 if test -z "$haveit"; then 6145 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 6146 fi 6147 if test "$hardcode_minus_L" != no; then 6148 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6149 else 6150 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6151 fi 6152 fi 6153 fi 6154 fi 6155 else 6156 if test "X$found_a" != "X"; then 6157 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 6158 else 6159 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 6160 fi 6161 fi 6162 additional_includedir= 6163 case "$found_dir" in 6164 */lib | */lib/) 6165 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 6166 additional_includedir="$basedir/include" 6167 ;; 6168 esac 6169 if test "X$additional_includedir" != "X"; then 6170 if test "X$additional_includedir" != "X/usr/include"; then 6171 haveit= 6172 if test "X$additional_includedir" = "X/usr/local/include"; then 6173 if test -n "$GCC"; then 6174 case $host_os in 6175 linux*) haveit=yes;; 6176 esac 6177 fi 6178 fi 6179 if test -z "$haveit"; then 6180 for x in $CPPFLAGS $INCICONV; do 6181 6182 acl_save_prefix="$prefix" 6183 prefix="$acl_final_prefix" 6184 acl_save_exec_prefix="$exec_prefix" 6185 exec_prefix="$acl_final_exec_prefix" 6186 eval x=\"$x\" 6187 exec_prefix="$acl_save_exec_prefix" 6188 prefix="$acl_save_prefix" 6189 6190 if test "X$x" = "X-I$additional_includedir"; then 6191 haveit=yes 6192 break 6193 fi 6194 done 6195 if test -z "$haveit"; then 6196 if test -d "$additional_includedir"; then 6197 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 6198 fi 6199 fi 6200 fi 6201 fi 6202 fi 6203 if test -n "$found_la"; then 6204 save_libdir="$libdir" 6205 case "$found_la" in 6206 */* | *\\*) . "$found_la" ;; 6207 *) . "./$found_la" ;; 6208 esac 6209 libdir="$save_libdir" 6210 for dep in $dependency_libs; do 6211 case "$dep" in 6212 -L*) 6213 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 6214 if test "X$additional_libdir" != "X/usr/lib"; then 6215 haveit= 6216 if test "X$additional_libdir" = "X/usr/local/lib"; then 6217 if test -n "$GCC"; then 6218 case $host_os in 6219 linux*) haveit=yes;; 6220 esac 6221 fi 6222 fi 6223 if test -z "$haveit"; then 6224 haveit= 6225 for x in $LDFLAGS $LIBICONV; do 6226 6227 acl_save_prefix="$prefix" 6228 prefix="$acl_final_prefix" 6229 acl_save_exec_prefix="$exec_prefix" 6230 exec_prefix="$acl_final_exec_prefix" 6231 eval x=\"$x\" 6232 exec_prefix="$acl_save_exec_prefix" 6233 prefix="$acl_save_prefix" 6234 6235 if test "X$x" = "X-L$additional_libdir"; then 6236 haveit=yes 6237 break 6238 fi 6239 done 6240 if test -z "$haveit"; then 6241 if test -d "$additional_libdir"; then 6242 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 6243 fi 6244 fi 6245 haveit= 6246 for x in $LDFLAGS $LTLIBICONV; do 6247 6248 acl_save_prefix="$prefix" 6249 prefix="$acl_final_prefix" 6250 acl_save_exec_prefix="$exec_prefix" 6251 exec_prefix="$acl_final_exec_prefix" 6252 eval x=\"$x\" 6253 exec_prefix="$acl_save_exec_prefix" 6254 prefix="$acl_save_prefix" 6255 6256 if test "X$x" = "X-L$additional_libdir"; then 6257 haveit=yes 6258 break 6259 fi 6260 done 6261 if test -z "$haveit"; then 6262 if test -d "$additional_libdir"; then 6263 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 6264 fi 6265 fi 6266 fi 6267 fi 6268 ;; 6269 -R*) 6270 dir=`echo "X$dep" | sed -e 's/^X-R//'` 6271 if test "$enable_rpath" != no; then 6272 haveit= 6273 for x in $rpathdirs; do 6274 if test "X$x" = "X$dir"; then 6275 haveit=yes 6276 break 6277 fi 6278 done 6279 if test -z "$haveit"; then 6280 rpathdirs="$rpathdirs $dir" 6281 fi 6282 haveit= 6283 for x in $ltrpathdirs; do 6284 if test "X$x" = "X$dir"; then 6285 haveit=yes 6286 break 6287 fi 6288 done 6289 if test -z "$haveit"; then 6290 ltrpathdirs="$ltrpathdirs $dir" 6291 fi 6292 fi 6293 ;; 6294 -l*) 6295 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 6296 ;; 6297 *.la) 6298 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 6299 ;; 6300 *) 6301 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 6302 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 6303 ;; 6304 esac 6305 done 6306 fi 6307 else 6308 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 6309 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6310 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 6311 else 6312 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 6313 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 6314 fi 6315 fi 6316 fi 6317 fi 6318 done 6319 done 6320 if test "X$rpathdirs" != "X"; then 6321 if test -n "$hardcode_libdir_separator"; then 6322 alldirs= 6323 for found_dir in $rpathdirs; do 6324 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 6325 done 6326 acl_save_libdir="$libdir" 6327 libdir="$alldirs" 6328 eval flag=\"$hardcode_libdir_flag_spec\" 6329 libdir="$acl_save_libdir" 6330 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6331 else 6332 for found_dir in $rpathdirs; do 6333 acl_save_libdir="$libdir" 6334 libdir="$found_dir" 6335 eval flag=\"$hardcode_libdir_flag_spec\" 6336 libdir="$acl_save_libdir" 6337 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6338 done 6339 fi 6340 fi 6341 if test "X$ltrpathdirs" != "X"; then 6342 for found_dir in $ltrpathdirs; do 6343 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 6344 done 6345 fi 6346 6347 6348 6349 6350 6351 if test -f ../gettext/uninstalled-config.sh; then 6352 relative_builddir='$(top_builddir)/../gettext' 6353 . ../gettext/uninstalled-config.sh 6354 else 6355 # The sister gettext directory doesn't exist and won't collect information on 6356 # using gettext for us. Call a bundled AM_GNU_GETTEXT. 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 6381 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 6382 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384 else 6385 gt_save_LIBS="$LIBS" 6386 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6388 /* end confdefs.h. */ 6389 #include <CoreFoundation/CFPreferences.h> 6390 int 6391 main () 6392 { 6393 CFPreferencesCopyAppValue(NULL, NULL) 6394 ; 6395 return 0; 6396 } 6397 _ACEOF 6398 if ac_fn_c_try_link "$LINENO"; then : 6399 gt_cv_func_CFPreferencesCopyAppValue=yes 6400 else 6401 gt_cv_func_CFPreferencesCopyAppValue=no 6402 fi 6403 rm -f core conftest.err conftest.$ac_objext \ 6404 conftest$ac_exeext conftest.$ac_ext 6405 LIBS="$gt_save_LIBS" 6406 fi 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 6408 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 6409 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 6410 6411 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 6412 6413 fi 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 6415 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 6416 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 6417 $as_echo_n "(cached) " >&6 6418 else 6419 gt_save_LIBS="$LIBS" 6420 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6422 /* end confdefs.h. */ 6423 #include <CoreFoundation/CFLocale.h> 6424 int 6425 main () 6426 { 6427 CFLocaleCopyPreferredLanguages(); 6428 ; 6429 return 0; 6430 } 6431 _ACEOF 6432 if ac_fn_c_try_link "$LINENO"; then : 6433 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 6434 else 6435 gt_cv_func_CFLocaleCopyPreferredLanguages=no 6436 fi 6437 rm -f core conftest.err conftest.$ac_objext \ 6438 conftest$ac_exeext conftest.$ac_ext 6439 LIBS="$gt_save_LIBS" 6440 fi 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 6442 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 6443 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 6444 6445 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 6446 6447 fi 6448 INTL_MACOSX_LIBS= 6449 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 6450 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 6451 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" 6452 fi 6453 6454 6455 6456 6457 6458 6459 LIBINTL= 6460 LTLIBINTL= 6461 POSUB= 6462 6463 case " $gt_needs " in 6464 *" need-formatstring-macros "*) gt_api_version=3 ;; 6465 *" need-ngettext "*) gt_api_version=2 ;; 6466 *) gt_api_version=1 ;; 6467 esac 6468 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 6469 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 6470 6471 if test "$USE_NLS" = "yes"; then 6472 gt_use_preinstalled_gnugettext=no 6473 6474 6475 if test $gt_api_version -ge 3; then 6476 gt_revision_test_code=' 6477 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 6478 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 6479 #endif 6480 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 6481 ' 6482 else 6483 gt_revision_test_code= 6484 fi 6485 if test $gt_api_version -ge 2; then 6486 gt_expression_test_code=' + * ngettext ("", "", 0)' 6487 else 6488 gt_expression_test_code= 6489 fi 6490 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 6492 $as_echo_n "checking for GNU gettext in libc... " >&6; } 6493 if eval \${$gt_func_gnugettext_libc+:} false; then : 6494 $as_echo_n "(cached) " >&6 6495 else 6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6497 /* end confdefs.h. */ 6498 6499 #include <libintl.h> 6500 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 6501 extern int _nl_msg_cat_cntr; 6502 extern int *_nl_domain_bindings; 6503 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 6504 #else 6505 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 6506 #endif 6507 $gt_revision_test_code 6508 6509 int 6510 main () 6511 { 6512 6513 bindtextdomain ("", ""); 6514 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 6515 6516 ; 6517 return 0; 6518 } 6519 _ACEOF 6520 if ac_fn_c_try_link "$LINENO"; then : 6521 eval "$gt_func_gnugettext_libc=yes" 6522 else 6523 eval "$gt_func_gnugettext_libc=no" 6524 fi 6525 rm -f core conftest.err conftest.$ac_objext \ 6526 conftest$ac_exeext conftest.$ac_ext 6527 fi 6528 eval ac_res=\$$gt_func_gnugettext_libc 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6530 $as_echo "$ac_res" >&6; } 6531 6532 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 6533 6534 6535 6536 6537 6538 am_save_CPPFLAGS="$CPPFLAGS" 6539 6540 for element in $INCICONV; do 6541 haveit= 6542 for x in $CPPFLAGS; do 6543 6544 acl_save_prefix="$prefix" 6545 prefix="$acl_final_prefix" 6546 acl_save_exec_prefix="$exec_prefix" 6547 exec_prefix="$acl_final_exec_prefix" 6548 eval x=\"$x\" 6549 exec_prefix="$acl_save_exec_prefix" 6550 prefix="$acl_save_prefix" 6551 6552 if test "X$x" = "X$element"; then 6553 haveit=yes 6554 break 6555 fi 6556 done 6557 if test -z "$haveit"; then 6558 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 6559 fi 6560 done 6561 6562 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 6564 $as_echo_n "checking for iconv... " >&6; } 6565 if ${am_cv_func_iconv+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567 else 6568 6569 am_cv_func_iconv="no, consider installing GNU libiconv" 6570 am_cv_lib_iconv=no 6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572 /* end confdefs.h. */ 6573 6574 #include <stdlib.h> 6575 #include <iconv.h> 6576 6577 int 6578 main () 6579 { 6580 iconv_t cd = iconv_open("",""); 6581 iconv(cd,NULL,NULL,NULL,NULL); 6582 iconv_close(cd); 6583 ; 6584 return 0; 6585 } 6586 _ACEOF 6587 if ac_fn_c_try_link "$LINENO"; then : 6588 am_cv_func_iconv=yes 6589 fi 6590 rm -f core conftest.err conftest.$ac_objext \ 6591 conftest$ac_exeext conftest.$ac_ext 6592 if test "$am_cv_func_iconv" != yes; then 6593 am_save_LIBS="$LIBS" 6594 LIBS="$LIBS $LIBICONV" 6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6596 /* end confdefs.h. */ 6597 6598 #include <stdlib.h> 6599 #include <iconv.h> 6600 6601 int 6602 main () 6603 { 6604 iconv_t cd = iconv_open("",""); 6605 iconv(cd,NULL,NULL,NULL,NULL); 6606 iconv_close(cd); 6607 ; 6608 return 0; 6609 } 6610 _ACEOF 6611 if ac_fn_c_try_link "$LINENO"; then : 6612 am_cv_lib_iconv=yes 6613 am_cv_func_iconv=yes 6614 fi 6615 rm -f core conftest.err conftest.$ac_objext \ 6616 conftest$ac_exeext conftest.$ac_ext 6617 LIBS="$am_save_LIBS" 6618 fi 6619 6620 fi 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 6622 $as_echo "$am_cv_func_iconv" >&6; } 6623 if test "$am_cv_func_iconv" = yes; then 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 6625 $as_echo_n "checking for working iconv... " >&6; } 6626 if ${am_cv_func_iconv_works+:} false; then : 6627 $as_echo_n "(cached) " >&6 6628 else 6629 6630 am_save_LIBS="$LIBS" 6631 if test $am_cv_lib_iconv = yes; then 6632 LIBS="$LIBS $LIBICONV" 6633 fi 6634 am_cv_func_iconv_works=no 6635 for ac_iconv_const in '' 'const'; do 6636 if test "$cross_compiling" = yes; then : 6637 case "$host_os" in 6638 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 6639 *) am_cv_func_iconv_works="guessing yes" ;; 6640 esac 6641 else 6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6643 /* end confdefs.h. */ 6644 6645 #include <iconv.h> 6646 #include <string.h> 6647 6648 #ifndef ICONV_CONST 6649 # define ICONV_CONST $ac_iconv_const 6650 #endif 6651 6652 int 6653 main () 6654 { 6655 int result = 0; 6656 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from 6657 successful returns. This is even documented in 6658 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ 6659 { 6660 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 6661 if (cd_utf8_to_88591 != (iconv_t)(-1)) 6662 { 6663 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 6664 char buf[10]; 6665 ICONV_CONST char *inptr = input; 6666 size_t inbytesleft = strlen (input); 6667 char *outptr = buf; 6668 size_t outbytesleft = sizeof (buf); 6669 size_t res = iconv (cd_utf8_to_88591, 6670 &inptr, &inbytesleft, 6671 &outptr, &outbytesleft); 6672 if (res == 0) 6673 result |= 1; 6674 iconv_close (cd_utf8_to_88591); 6675 } 6676 } 6677 /* Test against Solaris 10 bug: Failures are not distinguishable from 6678 successful returns. */ 6679 { 6680 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 6681 if (cd_ascii_to_88591 != (iconv_t)(-1)) 6682 { 6683 static ICONV_CONST char input[] = "\263"; 6684 char buf[10]; 6685 ICONV_CONST char *inptr = input; 6686 size_t inbytesleft = strlen (input); 6687 char *outptr = buf; 6688 size_t outbytesleft = sizeof (buf); 6689 size_t res = iconv (cd_ascii_to_88591, 6690 &inptr, &inbytesleft, 6691 &outptr, &outbytesleft); 6692 if (res == 0) 6693 result |= 2; 6694 iconv_close (cd_ascii_to_88591); 6695 } 6696 } 6697 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 6698 { 6699 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 6700 if (cd_88591_to_utf8 != (iconv_t)(-1)) 6701 { 6702 static ICONV_CONST char input[] = "\304"; 6703 static char buf[2] = { (char)0xDE, (char)0xAD }; 6704 ICONV_CONST char *inptr = input; 6705 size_t inbytesleft = 1; 6706 char *outptr = buf; 6707 size_t outbytesleft = 1; 6708 size_t res = iconv (cd_88591_to_utf8, 6709 &inptr, &inbytesleft, 6710 &outptr, &outbytesleft); 6711 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 6712 result |= 4; 6713 iconv_close (cd_88591_to_utf8); 6714 } 6715 } 6716 #if 0 /* This bug could be worked around by the caller. */ 6717 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 6718 { 6719 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 6720 if (cd_88591_to_utf8 != (iconv_t)(-1)) 6721 { 6722 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 6723 char buf[50]; 6724 ICONV_CONST char *inptr = input; 6725 size_t inbytesleft = strlen (input); 6726 char *outptr = buf; 6727 size_t outbytesleft = sizeof (buf); 6728 size_t res = iconv (cd_88591_to_utf8, 6729 &inptr, &inbytesleft, 6730 &outptr, &outbytesleft); 6731 if ((int)res > 0) 6732 result |= 8; 6733 iconv_close (cd_88591_to_utf8); 6734 } 6735 } 6736 #endif 6737 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 6738 provided. */ 6739 { 6740 /* Try standardized names. */ 6741 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 6742 /* Try IRIX, OSF/1 names. */ 6743 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 6744 /* Try AIX names. */ 6745 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 6746 /* Try HP-UX names. */ 6747 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 6748 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 6749 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 6750 result |= 16; 6751 if (cd1 != (iconv_t)(-1)) 6752 iconv_close (cd1); 6753 if (cd2 != (iconv_t)(-1)) 6754 iconv_close (cd2); 6755 if (cd3 != (iconv_t)(-1)) 6756 iconv_close (cd3); 6757 if (cd4 != (iconv_t)(-1)) 6758 iconv_close (cd4); 6759 } 6760 return result; 6761 6762 ; 6763 return 0; 6764 } 6765 _ACEOF 6766 if ac_fn_c_try_run "$LINENO"; then : 6767 am_cv_func_iconv_works=yes 6768 fi 6769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6770 conftest.$ac_objext conftest.beam conftest.$ac_ext 6771 fi 6772 6773 test "$am_cv_func_iconv_works" = no || break 6774 done 6775 LIBS="$am_save_LIBS" 6776 6777 fi 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 6779 $as_echo "$am_cv_func_iconv_works" >&6; } 6780 case "$am_cv_func_iconv_works" in 6781 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 6782 *) am_func_iconv=yes ;; 6783 esac 6784 else 6785 am_func_iconv=no am_cv_lib_iconv=no 6786 fi 6787 if test "$am_func_iconv" = yes; then 6788 6789 $as_echo "#define HAVE_ICONV 1" >>confdefs.h 6790 6791 fi 6792 if test "$am_cv_lib_iconv" = yes; then 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 6794 $as_echo_n "checking how to link with libiconv... " >&6; } 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 6796 $as_echo "$LIBICONV" >&6; } 6797 else 6798 CPPFLAGS="$am_save_CPPFLAGS" 6799 LIBICONV= 6800 LTLIBICONV= 6801 fi 6802 6803 6804 6805 6806 6807 6808 use_additional=yes 6809 6810 acl_save_prefix="$prefix" 6811 prefix="$acl_final_prefix" 6812 acl_save_exec_prefix="$exec_prefix" 6813 exec_prefix="$acl_final_exec_prefix" 6814 6815 eval additional_includedir=\"$includedir\" 6816 eval additional_libdir=\"$libdir\" 6817 6818 exec_prefix="$acl_save_exec_prefix" 6819 prefix="$acl_save_prefix" 6820 6821 6822 # Check whether --with-libintl-prefix was given. 6823 if test "${with_libintl_prefix+set}" = set; then : 6824 withval=$with_libintl_prefix; 6825 if test "X$withval" = "Xno"; then 6826 use_additional=no 6827 else 6828 if test "X$withval" = "X"; then 6829 6830 acl_save_prefix="$prefix" 6831 prefix="$acl_final_prefix" 6832 acl_save_exec_prefix="$exec_prefix" 6833 exec_prefix="$acl_final_exec_prefix" 6834 6835 eval additional_includedir=\"$includedir\" 6836 eval additional_libdir=\"$libdir\" 6837 6838 exec_prefix="$acl_save_exec_prefix" 6839 prefix="$acl_save_prefix" 6840 6841 else 6842 additional_includedir="$withval/include" 6843 additional_libdir="$withval/lib" 6844 fi 6845 fi 6846 6847 fi 6848 6849 6850 # Check whether --with-libintl-type was given. 6851 if test "${with_libintl_type+set}" = set; then : 6852 withval=$with_libintl_type; with_libintl_type=$withval 6853 else 6854 with_libintl_type=auto 6855 fi 6856 6857 lib_type=`eval echo \$with_libintl_type` 6858 6859 LIBINTL= 6860 LTLIBINTL= 6861 INCINTL= 6862 rpathdirs= 6863 ltrpathdirs= 6864 names_already_handled= 6865 names_next_round='intl ' 6866 while test -n "$names_next_round"; do 6867 names_this_round="$names_next_round" 6868 names_next_round= 6869 for name in $names_this_round; do 6870 already_handled= 6871 for n in $names_already_handled; do 6872 if test "$n" = "$name"; then 6873 already_handled=yes 6874 break 6875 fi 6876 done 6877 if test -z "$already_handled"; then 6878 names_already_handled="$names_already_handled $name" 6879 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6880 eval value=\"\$HAVE_LIB$uppername\" 6881 if test -n "$value"; then 6882 if test "$value" = yes; then 6883 eval value=\"\$LIB$uppername\" 6884 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 6885 eval value=\"\$LTLIB$uppername\" 6886 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 6887 else 6888 : 6889 fi 6890 else 6891 found_dir= 6892 found_la= 6893 found_so= 6894 found_a= 6895 if test $use_additional = yes; then 6896 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6897 found_dir="$additional_libdir" 6898 found_so="$additional_libdir/lib$name.$shlibext" 6899 if test -f "$additional_libdir/lib$name.la"; then 6900 found_la="$additional_libdir/lib$name.la" 6901 fi 6902 elif test x$lib_type != xshared; then 6903 if test -f "$additional_libdir/lib$name.$libext"; then 6904 found_dir="$additional_libdir" 6905 found_a="$additional_libdir/lib$name.$libext" 6906 if test -f "$additional_libdir/lib$name.la"; then 6907 found_la="$additional_libdir/lib$name.la" 6908 fi 6909 fi 6910 fi 6911 fi 6912 if test "X$found_dir" = "X"; then 6913 for x in $LDFLAGS $LTLIBINTL; do 6914 6915 acl_save_prefix="$prefix" 6916 prefix="$acl_final_prefix" 6917 acl_save_exec_prefix="$exec_prefix" 6918 exec_prefix="$acl_final_exec_prefix" 6919 eval x=\"$x\" 6920 exec_prefix="$acl_save_exec_prefix" 6921 prefix="$acl_save_prefix" 6922 6923 case "$x" in 6924 -L*) 6925 dir=`echo "X$x" | sed -e 's/^X-L//'` 6926 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6927 found_dir="$dir" 6928 found_so="$dir/lib$name.$shlibext" 6929 if test -f "$dir/lib$name.la"; then 6930 found_la="$dir/lib$name.la" 6931 fi 6932 elif test x$lib_type != xshared; then 6933 if test -f "$dir/lib$name.$libext"; then 6934 found_dir="$dir" 6935 found_a="$dir/lib$name.$libext" 6936 if test -f "$dir/lib$name.la"; then 6937 found_la="$dir/lib$name.la" 6938 fi 6939 fi 6940 fi 6941 ;; 6942 esac 6943 if test "X$found_dir" != "X"; then 6944 break 6945 fi 6946 done 6947 fi 6948 if test "X$found_dir" != "X"; then 6949 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 6950 if test "X$found_so" != "X"; then 6951 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 6952 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6953 else 6954 haveit= 6955 for x in $ltrpathdirs; do 6956 if test "X$x" = "X$found_dir"; then 6957 haveit=yes 6958 break 6959 fi 6960 done 6961 if test -z "$haveit"; then 6962 ltrpathdirs="$ltrpathdirs $found_dir" 6963 fi 6964 if test "$hardcode_direct" = yes; then 6965 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6966 else 6967 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 6968 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6969 haveit= 6970 for x in $rpathdirs; do 6971 if test "X$x" = "X$found_dir"; then 6972 haveit=yes 6973 break 6974 fi 6975 done 6976 if test -z "$haveit"; then 6977 rpathdirs="$rpathdirs $found_dir" 6978 fi 6979 else 6980 haveit= 6981 for x in $LDFLAGS $LIBINTL; do 6982 6983 acl_save_prefix="$prefix" 6984 prefix="$acl_final_prefix" 6985 acl_save_exec_prefix="$exec_prefix" 6986 exec_prefix="$acl_final_exec_prefix" 6987 eval x=\"$x\" 6988 exec_prefix="$acl_save_exec_prefix" 6989 prefix="$acl_save_prefix" 6990 6991 if test "X$x" = "X-L$found_dir"; then 6992 haveit=yes 6993 break 6994 fi 6995 done 6996 if test -z "$haveit"; then 6997 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 6998 fi 6999 if test "$hardcode_minus_L" != no; then 7000 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7001 else 7002 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7003 fi 7004 fi 7005 fi 7006 fi 7007 else 7008 if test "X$found_a" != "X"; then 7009 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 7010 else 7011 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 7012 fi 7013 fi 7014 additional_includedir= 7015 case "$found_dir" in 7016 */lib | */lib/) 7017 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 7018 additional_includedir="$basedir/include" 7019 ;; 7020 esac 7021 if test "X$additional_includedir" != "X"; then 7022 if test "X$additional_includedir" != "X/usr/include"; then 7023 haveit= 7024 if test "X$additional_includedir" = "X/usr/local/include"; then 7025 if test -n "$GCC"; then 7026 case $host_os in 7027 linux*) haveit=yes;; 7028 esac 7029 fi 7030 fi 7031 if test -z "$haveit"; then 7032 for x in $CPPFLAGS $INCINTL; do 7033 7034 acl_save_prefix="$prefix" 7035 prefix="$acl_final_prefix" 7036 acl_save_exec_prefix="$exec_prefix" 7037 exec_prefix="$acl_final_exec_prefix" 7038 eval x=\"$x\" 7039 exec_prefix="$acl_save_exec_prefix" 7040 prefix="$acl_save_prefix" 7041 7042 if test "X$x" = "X-I$additional_includedir"; then 7043 haveit=yes 7044 break 7045 fi 7046 done 7047 if test -z "$haveit"; then 7048 if test -d "$additional_includedir"; then 7049 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 7050 fi 7051 fi 7052 fi 7053 fi 7054 fi 7055 if test -n "$found_la"; then 7056 save_libdir="$libdir" 7057 case "$found_la" in 7058 */* | *\\*) . "$found_la" ;; 7059 *) . "./$found_la" ;; 7060 esac 7061 libdir="$save_libdir" 7062 for dep in $dependency_libs; do 7063 case "$dep" in 7064 -L*) 7065 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7066 if test "X$additional_libdir" != "X/usr/lib"; then 7067 haveit= 7068 if test "X$additional_libdir" = "X/usr/local/lib"; then 7069 if test -n "$GCC"; then 7070 case $host_os in 7071 linux*) haveit=yes;; 7072 esac 7073 fi 7074 fi 7075 if test -z "$haveit"; then 7076 haveit= 7077 for x in $LDFLAGS $LIBINTL; do 7078 7079 acl_save_prefix="$prefix" 7080 prefix="$acl_final_prefix" 7081 acl_save_exec_prefix="$exec_prefix" 7082 exec_prefix="$acl_final_exec_prefix" 7083 eval x=\"$x\" 7084 exec_prefix="$acl_save_exec_prefix" 7085 prefix="$acl_save_prefix" 7086 7087 if test "X$x" = "X-L$additional_libdir"; then 7088 haveit=yes 7089 break 7090 fi 7091 done 7092 if test -z "$haveit"; then 7093 if test -d "$additional_libdir"; then 7094 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 7095 fi 7096 fi 7097 haveit= 7098 for x in $LDFLAGS $LTLIBINTL; do 7099 7100 acl_save_prefix="$prefix" 7101 prefix="$acl_final_prefix" 7102 acl_save_exec_prefix="$exec_prefix" 7103 exec_prefix="$acl_final_exec_prefix" 7104 eval x=\"$x\" 7105 exec_prefix="$acl_save_exec_prefix" 7106 prefix="$acl_save_prefix" 7107 7108 if test "X$x" = "X-L$additional_libdir"; then 7109 haveit=yes 7110 break 7111 fi 7112 done 7113 if test -z "$haveit"; then 7114 if test -d "$additional_libdir"; then 7115 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 7116 fi 7117 fi 7118 fi 7119 fi 7120 ;; 7121 -R*) 7122 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7123 if test "$enable_rpath" != no; then 7124 haveit= 7125 for x in $rpathdirs; do 7126 if test "X$x" = "X$dir"; then 7127 haveit=yes 7128 break 7129 fi 7130 done 7131 if test -z "$haveit"; then 7132 rpathdirs="$rpathdirs $dir" 7133 fi 7134 haveit= 7135 for x in $ltrpathdirs; do 7136 if test "X$x" = "X$dir"; then 7137 haveit=yes 7138 break 7139 fi 7140 done 7141 if test -z "$haveit"; then 7142 ltrpathdirs="$ltrpathdirs $dir" 7143 fi 7144 fi 7145 ;; 7146 -l*) 7147 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7148 ;; 7149 *.la) 7150 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7151 ;; 7152 *) 7153 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 7154 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 7155 ;; 7156 esac 7157 done 7158 fi 7159 else 7160 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 7161 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7162 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 7163 else 7164 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext" 7165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext" 7166 fi 7167 fi 7168 fi 7169 fi 7170 done 7171 done 7172 if test "X$rpathdirs" != "X"; then 7173 if test -n "$hardcode_libdir_separator"; then 7174 alldirs= 7175 for found_dir in $rpathdirs; do 7176 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 7177 done 7178 acl_save_libdir="$libdir" 7179 libdir="$alldirs" 7180 eval flag=\"$hardcode_libdir_flag_spec\" 7181 libdir="$acl_save_libdir" 7182 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7183 else 7184 for found_dir in $rpathdirs; do 7185 acl_save_libdir="$libdir" 7186 libdir="$found_dir" 7187 eval flag=\"$hardcode_libdir_flag_spec\" 7188 libdir="$acl_save_libdir" 7189 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7190 done 7191 fi 7192 fi 7193 if test "X$ltrpathdirs" != "X"; then 7194 for found_dir in $ltrpathdirs; do 7195 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 7196 done 7197 fi 7198 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 7200 $as_echo_n "checking for GNU gettext in libintl... " >&6; } 7201 if eval \${$gt_func_gnugettext_libintl+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203 else 7204 gt_save_CPPFLAGS="$CPPFLAGS" 7205 CPPFLAGS="$CPPFLAGS $INCINTL" 7206 gt_save_LIBS="$LIBS" 7207 LIBS="$LIBS $LIBINTL" 7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7209 /* end confdefs.h. */ 7210 7211 #include <libintl.h> 7212 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 7213 extern int _nl_msg_cat_cntr; 7214 extern 7215 #ifdef __cplusplus 7216 "C" 7217 #endif 7218 const char *_nl_expand_alias (const char *); 7219 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 7220 #else 7221 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 7222 #endif 7223 $gt_revision_test_code 7224 7225 int 7226 main () 7227 { 7228 7229 bindtextdomain ("", ""); 7230 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 7231 7232 ; 7233 return 0; 7234 } 7235 _ACEOF 7236 if ac_fn_c_try_link "$LINENO"; then : 7237 eval "$gt_func_gnugettext_libintl=yes" 7238 else 7239 eval "$gt_func_gnugettext_libintl=no" 7240 fi 7241 rm -f core conftest.err conftest.$ac_objext \ 7242 conftest$ac_exeext conftest.$ac_ext 7243 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 7244 LIBS="$LIBS $LIBICONV" 7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246 /* end confdefs.h. */ 7247 7248 #include <libintl.h> 7249 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 7250 extern int _nl_msg_cat_cntr; 7251 extern 7252 #ifdef __cplusplus 7253 "C" 7254 #endif 7255 const char *_nl_expand_alias (const char *); 7256 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 7257 #else 7258 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 7259 #endif 7260 $gt_revision_test_code 7261 7262 int 7263 main () 7264 { 7265 7266 bindtextdomain ("", ""); 7267 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 7268 7269 ; 7270 return 0; 7271 } 7272 _ACEOF 7273 if ac_fn_c_try_link "$LINENO"; then : 7274 LIBINTL="$LIBINTL $LIBICONV" 7275 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 7276 eval "$gt_func_gnugettext_libintl=yes" 7277 7278 fi 7279 rm -f core conftest.err conftest.$ac_objext \ 7280 conftest$ac_exeext conftest.$ac_ext 7281 fi 7282 CPPFLAGS="$gt_save_CPPFLAGS" 7283 LIBS="$gt_save_LIBS" 7284 fi 7285 eval ac_res=\$$gt_func_gnugettext_libintl 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7287 $as_echo "$ac_res" >&6; } 7288 fi 7289 7290 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 7291 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 7292 && test "$PACKAGE" != gettext-runtime \ 7293 && test "$PACKAGE" != gettext-tools; }; then 7294 gt_use_preinstalled_gnugettext=yes 7295 else 7296 LIBINTL= 7297 LTLIBINTL= 7298 INCINTL= 7299 fi 7300 7301 7302 7303 if test -n "$INTL_MACOSX_LIBS"; then 7304 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 7305 || test "$nls_cv_use_gnu_gettext" = "yes"; then 7306 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 7307 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 7308 fi 7309 fi 7310 7311 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 7312 || test "$nls_cv_use_gnu_gettext" = "yes"; then 7313 7314 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 7315 7316 else 7317 USE_NLS=no 7318 fi 7319 fi 7320 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 7322 $as_echo_n "checking whether to use NLS... " >&6; } 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 7324 $as_echo "$USE_NLS" >&6; } 7325 if test "$USE_NLS" = "yes"; then 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 7327 $as_echo_n "checking where the gettext function comes from... " >&6; } 7328 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 7329 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 7330 gt_source="external libintl" 7331 else 7332 gt_source="libc" 7333 fi 7334 else 7335 gt_source="included intl directory" 7336 fi 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 7338 $as_echo "$gt_source" >&6; } 7339 fi 7340 7341 if test "$USE_NLS" = "yes"; then 7342 7343 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 7344 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 7346 $as_echo_n "checking how to link with libintl... " >&6; } 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 7348 $as_echo "$LIBINTL" >&6; } 7349 7350 for element in $INCINTL; do 7351 haveit= 7352 for x in $CPPFLAGS; do 7353 7354 acl_save_prefix="$prefix" 7355 prefix="$acl_final_prefix" 7356 acl_save_exec_prefix="$exec_prefix" 7357 exec_prefix="$acl_final_exec_prefix" 7358 eval x=\"$x\" 7359 exec_prefix="$acl_save_exec_prefix" 7360 prefix="$acl_save_prefix" 7361 7362 if test "X$x" = "X$element"; then 7363 haveit=yes 7364 break 7365 fi 7366 done 7367 if test -z "$haveit"; then 7368 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7369 fi 7370 done 7371 7372 fi 7373 7374 7375 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 7376 7377 7378 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 7379 7380 fi 7381 7382 POSUB=po 7383 fi 7384 7385 7386 7387 INTLLIBS="$LIBINTL" 7388 7389 7390 7391 7392 7393 7394 fi 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 7407 $as_echo_n "checking whether NLS is requested... " >&6; } 7408 if test x"$USE_NLS" != xyes; then 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7410 $as_echo "no" >&6; } 7411 else 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7413 $as_echo "yes" >&6; } 7414 7415 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 7416 7417 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 7419 $as_echo_n "checking for catalogs to be installed... " >&6; } 7420 # Look for .po and .gmo files in the source directory. 7421 CATALOGS= 7422 XLINGUAS= 7423 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 7424 # If there aren't any .gmo files the shell will give us the 7425 # literal string "../path/to/srcdir/po/*.gmo" which has to be 7426 # weeded out. 7427 case "$cat" in *\**) 7428 continue;; 7429 esac 7430 # The quadruple backslash is collapsed to a double backslash 7431 # by the backticks, then collapsed again by the double quotes, 7432 # leaving us with one backslash in the sed expression (right 7433 # before the dot that mustn't act as a wildcard). 7434 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 7435 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 7436 # The user is allowed to set LINGUAS to a list of languages to 7437 # install catalogs for. If it's empty that means "all of them." 7438 if test "x$LINGUAS" = x; then 7439 CATALOGS="$CATALOGS $cat" 7440 XLINGUAS="$XLINGUAS $lang" 7441 else 7442 case "$LINGUAS" in *$lang*) 7443 CATALOGS="$CATALOGS $cat" 7444 XLINGUAS="$XLINGUAS $lang" 7445 ;; 7446 esac 7447 fi 7448 done 7449 LINGUAS="$XLINGUAS" 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 7451 $as_echo "$LINGUAS" >&6; } 7452 7453 7454 DATADIRNAME=share 7455 7456 INSTOBJEXT=.mo 7457 7458 GENCAT=gencat 7459 7460 CATOBJEXT=.gmo 7461 7462 fi 7463 7464 # Check whether --enable-shared was given. 7465 if test "${enable_shared+set}" = set; then : 7466 enableval=$enable_shared; p=${PACKAGE-default} 7467 case $enableval in 7468 yes) enable_shared=yes ;; 7469 no) enable_shared=no ;; 7470 *) 7471 enable_shared=no 7472 # Look at the argument we got. We use all the common list separators. 7473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7474 for pkg in $enableval; do 7475 IFS="$lt_save_ifs" 7476 if test "X$pkg" = "X$p"; then 7477 enable_shared=yes 7478 fi 7479 done 7480 IFS="$lt_save_ifs" 7481 ;; 7482 esac 7483 else 7484 enable_shared=no 7485 fi 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 case `pwd` in 7497 *\ * | *\ *) 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7499 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7500 esac 7501 7502 7503 7504 macro_version='2.2.7a' 7505 macro_revision='1.3134' 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 ltmain="$ac_aux_dir/ltmain.sh" 7520 7521 # Backslashify metacharacters that are still active within 7522 # double-quoted strings. 7523 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7524 7525 # Same as above, but do not quote variable references. 7526 double_quote_subst='s/\(["`\\]\)/\\\1/g' 7527 7528 # Sed substitution to delay expansion of an escaped shell variable in a 7529 # double_quote_subst'ed string. 7530 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7531 7532 # Sed substitution to delay expansion of an escaped single quote. 7533 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7534 7535 # Sed substitution to avoid accidental globbing in evaled expressions 7536 no_glob_subst='s/\*/\\\*/g' 7537 7538 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7539 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7540 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7541 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7543 $as_echo_n "checking how to print strings... " >&6; } 7544 # Test print first, because it will be a builtin if present. 7545 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 7546 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7547 ECHO='print -r --' 7548 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7549 ECHO='printf %s\n' 7550 else 7551 # Use this function as a fallback that always works. 7552 func_fallback_echo () 7553 { 7554 eval 'cat <<_LTECHO_EOF 7555 $1 7556 _LTECHO_EOF' 7557 } 7558 ECHO='func_fallback_echo' 7559 fi 7560 7561 # func_echo_all arg... 7562 # Invoke $ECHO with all args, space-separated. 7563 func_echo_all () 7564 { 7565 $ECHO "" 7566 } 7567 7568 case "$ECHO" in 7569 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7570 $as_echo "printf" >&6; } ;; 7571 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7572 $as_echo "print -r" >&6; } ;; 7573 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7574 $as_echo "cat" >&6; } ;; 7575 esac 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7591 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 7592 if ${ac_cv_path_SED+:} false; then : 7593 $as_echo_n "(cached) " >&6 7594 else 7595 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7596 for ac_i in 1 2 3 4 5 6 7; do 7597 ac_script="$ac_script$as_nl$ac_script" 7598 done 7599 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7600 { ac_script=; unset ac_script;} 7601 if test -z "$SED"; then 7602 ac_path_SED_found=false 7603 # Loop through the user's path and test for each of PROGNAME-LIST 7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7605 for as_dir in $PATH 7606 do 7607 IFS=$as_save_IFS 7608 test -z "$as_dir" && as_dir=. 7609 for ac_prog in sed gsed; do 7610 for ac_exec_ext in '' $ac_executable_extensions; do 7611 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7612 as_fn_executable_p "$ac_path_SED" || continue 7613 # Check for GNU ac_path_SED and select it if it is found. 7614 # Check for GNU $ac_path_SED 7615 case `"$ac_path_SED" --version 2>&1` in 7616 *GNU*) 7617 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7618 *) 7619 ac_count=0 7620 $as_echo_n 0123456789 >"conftest.in" 7621 while : 7622 do 7623 cat "conftest.in" "conftest.in" >"conftest.tmp" 7624 mv "conftest.tmp" "conftest.in" 7625 cp "conftest.in" "conftest.nl" 7626 $as_echo '' >> "conftest.nl" 7627 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7629 as_fn_arith $ac_count + 1 && ac_count=$as_val 7630 if test $ac_count -gt ${ac_path_SED_max-0}; then 7631 # Best one so far, save it but keep looking for a better one 7632 ac_cv_path_SED="$ac_path_SED" 7633 ac_path_SED_max=$ac_count 7634 fi 7635 # 10*(2^10) chars as input seems more than enough 7636 test $ac_count -gt 10 && break 7637 done 7638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7639 esac 7640 7641 $ac_path_SED_found && break 3 7642 done 7643 done 7644 done 7645 IFS=$as_save_IFS 7646 if test -z "$ac_cv_path_SED"; then 7647 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7648 fi 7649 else 7650 ac_cv_path_SED=$SED 7651 fi 7652 7653 fi 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7655 $as_echo "$ac_cv_path_SED" >&6; } 7656 SED="$ac_cv_path_SED" 7657 rm -f conftest.sed 7658 7659 test -z "$SED" && SED=sed 7660 Xsed="$SED -e 1s/^X//" 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7673 $as_echo_n "checking for fgrep... " >&6; } 7674 if ${ac_cv_path_FGREP+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676 else 7677 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7678 then ac_cv_path_FGREP="$GREP -F" 7679 else 7680 if test -z "$FGREP"; then 7681 ac_path_FGREP_found=false 7682 # Loop through the user's path and test for each of PROGNAME-LIST 7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7684 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7685 do 7686 IFS=$as_save_IFS 7687 test -z "$as_dir" && as_dir=. 7688 for ac_prog in fgrep; do 7689 for ac_exec_ext in '' $ac_executable_extensions; do 7690 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7691 as_fn_executable_p "$ac_path_FGREP" || continue 7692 # Check for GNU ac_path_FGREP and select it if it is found. 7693 # Check for GNU $ac_path_FGREP 7694 case `"$ac_path_FGREP" --version 2>&1` in 7695 *GNU*) 7696 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7697 *) 7698 ac_count=0 7699 $as_echo_n 0123456789 >"conftest.in" 7700 while : 7701 do 7702 cat "conftest.in" "conftest.in" >"conftest.tmp" 7703 mv "conftest.tmp" "conftest.in" 7704 cp "conftest.in" "conftest.nl" 7705 $as_echo 'FGREP' >> "conftest.nl" 7706 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7708 as_fn_arith $ac_count + 1 && ac_count=$as_val 7709 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7710 # Best one so far, save it but keep looking for a better one 7711 ac_cv_path_FGREP="$ac_path_FGREP" 7712 ac_path_FGREP_max=$ac_count 7713 fi 7714 # 10*(2^10) chars as input seems more than enough 7715 test $ac_count -gt 10 && break 7716 done 7717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7718 esac 7719 7720 $ac_path_FGREP_found && break 3 7721 done 7722 done 7723 done 7724 IFS=$as_save_IFS 7725 if test -z "$ac_cv_path_FGREP"; then 7726 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7727 fi 7728 else 7729 ac_cv_path_FGREP=$FGREP 7730 fi 7731 7732 fi 7733 fi 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7735 $as_echo "$ac_cv_path_FGREP" >&6; } 7736 FGREP="$ac_cv_path_FGREP" 7737 7738 7739 test -z "$GREP" && GREP=grep 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 # Check whether --with-gnu-ld was given. 7760 if test "${with_gnu_ld+set}" = set; then : 7761 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7762 else 7763 with_gnu_ld=no 7764 fi 7765 7766 ac_prog=ld 7767 if test "$GCC" = yes; then 7768 # Check if gcc -print-prog-name=ld gives a path. 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7770 $as_echo_n "checking for ld used by $CC... " >&6; } 7771 case $host in 7772 *-*-mingw*) 7773 # gcc leaves a trailing carriage return which upsets mingw 7774 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7775 *) 7776 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7777 esac 7778 case $ac_prog in 7779 # Accept absolute paths. 7780 [\\/]* | ?:[\\/]*) 7781 re_direlt='/[^/][^/]*/\.\./' 7782 # Canonicalize the pathname of ld 7783 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7784 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7785 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7786 done 7787 test -z "$LD" && LD="$ac_prog" 7788 ;; 7789 "") 7790 # If it fails, then pretend we aren't using GCC. 7791 ac_prog=ld 7792 ;; 7793 *) 7794 # If it is relative, then search for the first ld in PATH. 7795 with_gnu_ld=unknown 7796 ;; 7797 esac 7798 elif test "$with_gnu_ld" = yes; then 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7800 $as_echo_n "checking for GNU ld... " >&6; } 7801 else 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7803 $as_echo_n "checking for non-GNU ld... " >&6; } 7804 fi 7805 if ${lt_cv_path_LD+:} false; then : 7806 $as_echo_n "(cached) " >&6 7807 else 7808 if test -z "$LD"; then 7809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7810 for ac_dir in $PATH; do 7811 IFS="$lt_save_ifs" 7812 test -z "$ac_dir" && ac_dir=. 7813 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7814 lt_cv_path_LD="$ac_dir/$ac_prog" 7815 # Check to see if the program is GNU ld. I'd rather use --version, 7816 # but apparently some variants of GNU ld only accept -v. 7817 # Break only if it was the GNU/non-GNU ld that we prefer. 7818 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7819 *GNU* | *'with BFD'*) 7820 test "$with_gnu_ld" != no && break 7821 ;; 7822 *) 7823 test "$with_gnu_ld" != yes && break 7824 ;; 7825 esac 7826 fi 7827 done 7828 IFS="$lt_save_ifs" 7829 else 7830 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7831 fi 7832 fi 7833 7834 LD="$lt_cv_path_LD" 7835 if test -n "$LD"; then 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7837 $as_echo "$LD" >&6; } 7838 else 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7840 $as_echo "no" >&6; } 7841 fi 7842 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7844 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7845 if ${lt_cv_prog_gnu_ld+:} false; then : 7846 $as_echo_n "(cached) " >&6 7847 else 7848 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7849 case `$LD -v 2>&1 </dev/null` in 7850 *GNU* | *'with BFD'*) 7851 lt_cv_prog_gnu_ld=yes 7852 ;; 7853 *) 7854 lt_cv_prog_gnu_ld=no 7855 ;; 7856 esac 7857 fi 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7859 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 7860 with_gnu_ld=$lt_cv_prog_gnu_ld 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7871 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7872 if ${lt_cv_path_NM+:} false; then : 7873 $as_echo_n "(cached) " >&6 7874 else 7875 if test -n "$NM"; then 7876 # Let the user override the nm to test. 7877 lt_nm_to_check="$NM" 7878 else 7879 lt_nm_to_check="${ac_tool_prefix}nm" 7880 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7881 lt_nm_to_check="$lt_nm_to_check nm" 7882 fi 7883 fi 7884 for lt_tmp_nm in "$lt_nm_to_check"; do 7885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7886 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7887 IFS="$lt_save_ifs" 7888 test -z "$ac_dir" && ac_dir=. 7889 # Strip out any user-provided options from the nm to test twice, 7890 # the first time to test to see if nm (rather than its options) has 7891 # an explicit path, the second time to yield a file which can be 7892 # nm'ed itself. 7893 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 7894 case "$tmp_nm_path" in 7895 */*|*\\*) tmp_nm="$lt_tmp_nm";; 7896 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 7897 esac 7898 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 7899 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 7900 # Check to see if the nm accepts a BSD-compat flag. 7901 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7902 # nm: unknown option "B" ignored 7903 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 7904 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 7905 break 7906 ;; 7907 *) 7908 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 7909 *$tmp_nm*) 7910 lt_cv_path_NM="$tmp_nm -p" 7911 break 7912 ;; 7913 *) 7914 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7915 continue # so that we can try to find one that supports BSD flags 7916 ;; 7917 esac 7918 ;; 7919 esac 7920 fi 7921 done 7922 IFS="$lt_save_ifs" 7923 done 7924 : ${lt_cv_path_NM=no} 7925 fi 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7927 $as_echo "$lt_cv_path_NM" >&6; } 7928 if test "$lt_cv_path_NM" != "no"; then 7929 NM="$lt_cv_path_NM" 7930 else 7931 # Didn't find any BSD compatible name lister, look for dumpbin. 7932 if test -n "$DUMPBIN"; then : 7933 # Let the user override the test. 7934 else 7935 if test -n "$ac_tool_prefix"; then 7936 for ac_prog in dumpbin "link -dump" 7937 do 7938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7941 $as_echo_n "checking for $ac_word... " >&6; } 7942 if ${ac_cv_prog_DUMPBIN+:} false; then : 7943 $as_echo_n "(cached) " >&6 7944 else 7945 if test -n "$DUMPBIN"; then 7946 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7947 else 7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7949 for as_dir in $PATH 7950 do 7951 IFS=$as_save_IFS 7952 test -z "$as_dir" && as_dir=. 7953 for ac_exec_ext in '' $ac_executable_extensions; do 7954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7955 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7957 break 2 7958 fi 7959 done 7960 done 7961 IFS=$as_save_IFS 7962 7963 fi 7964 fi 7965 DUMPBIN=$ac_cv_prog_DUMPBIN 7966 if test -n "$DUMPBIN"; then 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7968 $as_echo "$DUMPBIN" >&6; } 7969 else 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7971 $as_echo "no" >&6; } 7972 fi 7973 7974 7975 test -n "$DUMPBIN" && break 7976 done 7977 fi 7978 if test -z "$DUMPBIN"; then 7979 ac_ct_DUMPBIN=$DUMPBIN 7980 for ac_prog in dumpbin "link -dump" 7981 do 7982 # Extract the first word of "$ac_prog", so it can be a program name with args. 7983 set dummy $ac_prog; ac_word=$2 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7985 $as_echo_n "checking for $ac_word... " >&6; } 7986 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7987 $as_echo_n "(cached) " >&6 7988 else 7989 if test -n "$ac_ct_DUMPBIN"; then 7990 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7991 else 7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7993 for as_dir in $PATH 7994 do 7995 IFS=$as_save_IFS 7996 test -z "$as_dir" && as_dir=. 7997 for ac_exec_ext in '' $ac_executable_extensions; do 7998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7999 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8001 break 2 8002 fi 8003 done 8004 done 8005 IFS=$as_save_IFS 8006 8007 fi 8008 fi 8009 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8010 if test -n "$ac_ct_DUMPBIN"; then 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8012 $as_echo "$ac_ct_DUMPBIN" >&6; } 8013 else 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8015 $as_echo "no" >&6; } 8016 fi 8017 8018 8019 test -n "$ac_ct_DUMPBIN" && break 8020 done 8021 8022 if test "x$ac_ct_DUMPBIN" = x; then 8023 DUMPBIN=":" 8024 else 8025 case $cross_compiling:$ac_tool_warned in 8026 yes:) 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8029 ac_tool_warned=yes ;; 8030 esac 8031 DUMPBIN=$ac_ct_DUMPBIN 8032 fi 8033 fi 8034 8035 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 8036 *COFF*) 8037 DUMPBIN="$DUMPBIN -symbols" 8038 ;; 8039 *) 8040 DUMPBIN=: 8041 ;; 8042 esac 8043 fi 8044 8045 if test "$DUMPBIN" != ":"; then 8046 NM="$DUMPBIN" 8047 fi 8048 fi 8049 test -z "$NM" && NM=nm 8050 8051 8052 8053 8054 8055 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8057 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 8058 if ${lt_cv_nm_interface+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060 else 8061 lt_cv_nm_interface="BSD nm" 8062 echo "int some_variable = 0;" > conftest.$ac_ext 8063 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8064 (eval "$ac_compile" 2>conftest.err) 8065 cat conftest.err >&5 8066 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8067 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8068 cat conftest.err >&5 8069 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8070 cat conftest.out >&5 8071 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8072 lt_cv_nm_interface="MS dumpbin" 8073 fi 8074 rm -f conftest* 8075 fi 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8077 $as_echo "$lt_cv_nm_interface" >&6; } 8078 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8080 $as_echo_n "checking whether ln -s works... " >&6; } 8081 LN_S=$as_ln_s 8082 if test "$LN_S" = "ln -s"; then 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8084 $as_echo "yes" >&6; } 8085 else 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8087 $as_echo "no, using $LN_S" >&6; } 8088 fi 8089 8090 # find the maximum length of command line arguments 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8092 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 8093 if ${lt_cv_sys_max_cmd_len+:} false; then : 8094 $as_echo_n "(cached) " >&6 8095 else 8096 i=0 8097 teststring="ABCD" 8098 8099 case $build_os in 8100 msdosdjgpp*) 8101 # On DJGPP, this test can blow up pretty badly due to problems in libc 8102 # (any single argument exceeding 2000 bytes causes a buffer overrun 8103 # during glob expansion). Even if it were fixed, the result of this 8104 # check would be larger than it should be. 8105 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8106 ;; 8107 8108 gnu*) 8109 # Under GNU Hurd, this test is not required because there is 8110 # no limit to the length of command line arguments. 8111 # Libtool will interpret -1 as no limit whatsoever 8112 lt_cv_sys_max_cmd_len=-1; 8113 ;; 8114 8115 cygwin* | mingw* | cegcc*) 8116 # On Win9x/ME, this test blows up -- it succeeds, but takes 8117 # about 5 minutes as the teststring grows exponentially. 8118 # Worse, since 9x/ME are not pre-emptively multitasking, 8119 # you end up with a "frozen" computer, even though with patience 8120 # the test eventually succeeds (with a max line length of 256k). 8121 # Instead, let's just punt: use the minimum linelength reported by 8122 # all of the supported platforms: 8192 (on NT/2K/XP). 8123 lt_cv_sys_max_cmd_len=8192; 8124 ;; 8125 8126 mint*) 8127 # On MiNT this can take a long time and run out of memory. 8128 lt_cv_sys_max_cmd_len=8192; 8129 ;; 8130 8131 amigaos*) 8132 # On AmigaOS with pdksh, this test takes hours, literally. 8133 # So we just punt and use a minimum line length of 8192. 8134 lt_cv_sys_max_cmd_len=8192; 8135 ;; 8136 8137 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 8138 # This has been around since 386BSD, at least. Likely further. 8139 if test -x /sbin/sysctl; then 8140 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8141 elif test -x /usr/sbin/sysctl; then 8142 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8143 else 8144 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8145 fi 8146 # And add a safety zone 8147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8149 ;; 8150 8151 interix*) 8152 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8153 lt_cv_sys_max_cmd_len=196608 8154 ;; 8155 8156 osf*) 8157 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8158 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8159 # nice to cause kernel panics so lets avoid the loop below. 8160 # First set a reasonable default. 8161 lt_cv_sys_max_cmd_len=16384 8162 # 8163 if test -x /sbin/sysconfig; then 8164 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8165 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8166 esac 8167 fi 8168 ;; 8169 sco3.2v5*) 8170 lt_cv_sys_max_cmd_len=102400 8171 ;; 8172 sysv5* | sco5v6* | sysv4.2uw2*) 8173 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8174 if test -n "$kargmax"; then 8175 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8176 else 8177 lt_cv_sys_max_cmd_len=32768 8178 fi 8179 ;; 8180 *) 8181 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8182 if test -n "$lt_cv_sys_max_cmd_len"; then 8183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8185 else 8186 # Make teststring a little bigger before we do anything with it. 8187 # a 1K string should be a reasonable start. 8188 for i in 1 2 3 4 5 6 7 8 ; do 8189 teststring=$teststring$teststring 8190 done 8191 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8192 # If test is not a shell built-in, we'll probably end up computing a 8193 # maximum length that is only half of the actual maximum length, but 8194 # we can't tell. 8195 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 8196 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8197 test $i != 17 # 1/2 MB should be enough 8198 do 8199 i=`expr $i + 1` 8200 teststring=$teststring$teststring 8201 done 8202 # Only check the string length outside the loop. 8203 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8204 teststring= 8205 # Add a significant safety factor because C++ compilers can tack on 8206 # massive amounts of additional arguments before passing them to the 8207 # linker. It appears as though 1/2 is a usable value. 8208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8209 fi 8210 ;; 8211 esac 8212 8213 fi 8214 8215 if test -n $lt_cv_sys_max_cmd_len ; then 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8217 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8218 else 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8220 $as_echo "none" >&6; } 8221 fi 8222 max_cmd_len=$lt_cv_sys_max_cmd_len 8223 8224 8225 8226 8227 8228 8229 : ${CP="cp -f"} 8230 : ${MV="mv -f"} 8231 : ${RM="rm -f"} 8232 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 8234 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 8235 # Try some XSI features 8236 xsi_shell=no 8237 ( _lt_dummy="a/b/c" 8238 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 8239 = c,a/b,, \ 8240 && eval 'test $(( 1 + 1 )) -eq 2 \ 8241 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 8242 && xsi_shell=yes 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 8244 $as_echo "$xsi_shell" >&6; } 8245 8246 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 8248 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 8249 lt_shell_append=no 8250 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 8251 >/dev/null 2>&1 \ 8252 && lt_shell_append=yes 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 8254 $as_echo "$lt_shell_append" >&6; } 8255 8256 8257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8258 lt_unset=unset 8259 else 8260 lt_unset=false 8261 fi 8262 8263 8264 8265 8266 8267 # test EBCDIC or ASCII 8268 case `echo X|tr X '\101'` in 8269 A) # ASCII based system 8270 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8271 lt_SP2NL='tr \040 \012' 8272 lt_NL2SP='tr \015\012 \040\040' 8273 ;; 8274 *) # EBCDIC based system 8275 lt_SP2NL='tr \100 \n' 8276 lt_NL2SP='tr \r\n \100\100' 8277 ;; 8278 esac 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8289 $as_echo_n "checking for $LD option to reload object files... " >&6; } 8290 if ${lt_cv_ld_reload_flag+:} false; then : 8291 $as_echo_n "(cached) " >&6 8292 else 8293 lt_cv_ld_reload_flag='-r' 8294 fi 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8296 $as_echo "$lt_cv_ld_reload_flag" >&6; } 8297 reload_flag=$lt_cv_ld_reload_flag 8298 case $reload_flag in 8299 "" | " "*) ;; 8300 *) reload_flag=" $reload_flag" ;; 8301 esac 8302 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8303 case $host_os in 8304 darwin*) 8305 if test "$GCC" = yes; then 8306 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 8307 else 8308 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8309 fi 8310 ;; 8311 esac 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 if test -n "$ac_tool_prefix"; then 8322 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8323 set dummy ${ac_tool_prefix}objdump; ac_word=$2 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8325 $as_echo_n "checking for $ac_word... " >&6; } 8326 if ${ac_cv_prog_OBJDUMP+:} false; then : 8327 $as_echo_n "(cached) " >&6 8328 else 8329 if test -n "$OBJDUMP"; then 8330 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8331 else 8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8333 for as_dir in $PATH 8334 do 8335 IFS=$as_save_IFS 8336 test -z "$as_dir" && as_dir=. 8337 for ac_exec_ext in '' $ac_executable_extensions; do 8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8339 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8341 break 2 8342 fi 8343 done 8344 done 8345 IFS=$as_save_IFS 8346 8347 fi 8348 fi 8349 OBJDUMP=$ac_cv_prog_OBJDUMP 8350 if test -n "$OBJDUMP"; then 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8352 $as_echo "$OBJDUMP" >&6; } 8353 else 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8355 $as_echo "no" >&6; } 8356 fi 8357 8358 8359 fi 8360 if test -z "$ac_cv_prog_OBJDUMP"; then 8361 ac_ct_OBJDUMP=$OBJDUMP 8362 # Extract the first word of "objdump", so it can be a program name with args. 8363 set dummy objdump; ac_word=$2 8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8365 $as_echo_n "checking for $ac_word... " >&6; } 8366 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8367 $as_echo_n "(cached) " >&6 8368 else 8369 if test -n "$ac_ct_OBJDUMP"; then 8370 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8371 else 8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8373 for as_dir in $PATH 8374 do 8375 IFS=$as_save_IFS 8376 test -z "$as_dir" && as_dir=. 8377 for ac_exec_ext in '' $ac_executable_extensions; do 8378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8379 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8381 break 2 8382 fi 8383 done 8384 done 8385 IFS=$as_save_IFS 8386 8387 fi 8388 fi 8389 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8390 if test -n "$ac_ct_OBJDUMP"; then 8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8392 $as_echo "$ac_ct_OBJDUMP" >&6; } 8393 else 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8395 $as_echo "no" >&6; } 8396 fi 8397 8398 if test "x$ac_ct_OBJDUMP" = x; then 8399 OBJDUMP="false" 8400 else 8401 case $cross_compiling:$ac_tool_warned in 8402 yes:) 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8405 ac_tool_warned=yes ;; 8406 esac 8407 OBJDUMP=$ac_ct_OBJDUMP 8408 fi 8409 else 8410 OBJDUMP="$ac_cv_prog_OBJDUMP" 8411 fi 8412 8413 test -z "$OBJDUMP" && OBJDUMP=objdump 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8424 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 8425 if ${lt_cv_deplibs_check_method+:} false; then : 8426 $as_echo_n "(cached) " >&6 8427 else 8428 lt_cv_file_magic_cmd='$MAGIC_CMD' 8429 lt_cv_file_magic_test_file= 8430 lt_cv_deplibs_check_method='unknown' 8431 # Need to set the preceding variable on all platforms that support 8432 # interlibrary dependencies. 8433 # 'none' -- dependencies not supported. 8434 # `unknown' -- same as none, but documents that we really don't know. 8435 # 'pass_all' -- all dependencies passed with no checks. 8436 # 'test_compile' -- check by making test program. 8437 # 'file_magic [[regex]]' -- check by looking for files in library path 8438 # which responds to the $file_magic_cmd with a given extended regex. 8439 # If you have `file' or equivalent on your system and you're not sure 8440 # whether `pass_all' will *always* work, you probably want this one. 8441 8442 case $host_os in 8443 aix[4-9]*) 8444 lt_cv_deplibs_check_method=pass_all 8445 ;; 8446 8447 beos*) 8448 lt_cv_deplibs_check_method=pass_all 8449 ;; 8450 8451 bsdi[45]*) 8452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8453 lt_cv_file_magic_cmd='/usr/bin/file -L' 8454 lt_cv_file_magic_test_file=/shlib/libc.so 8455 ;; 8456 8457 cygwin*) 8458 # func_win32_libid is a shell function defined in ltmain.sh 8459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8460 lt_cv_file_magic_cmd='func_win32_libid' 8461 ;; 8462 8463 mingw* | pw32*) 8464 # Base MSYS/MinGW do not provide the 'file' command needed by 8465 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8466 # unless we find 'file', for example because we are cross-compiling. 8467 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 8468 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 8469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8470 lt_cv_file_magic_cmd='func_win32_libid' 8471 else 8472 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 8473 lt_cv_file_magic_cmd='$OBJDUMP -f' 8474 fi 8475 ;; 8476 8477 cegcc*) 8478 # use the weaker test based on 'objdump'. See mingw*. 8479 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8480 lt_cv_file_magic_cmd='$OBJDUMP -f' 8481 ;; 8482 8483 darwin* | rhapsody*) 8484 lt_cv_deplibs_check_method=pass_all 8485 ;; 8486 8487 freebsd* | dragonfly*) 8488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8489 case $host_cpu in 8490 i*86 ) 8491 # Not sure whether the presence of OpenBSD here was a mistake. 8492 # Let's accept both of them until this is cleared up. 8493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8494 lt_cv_file_magic_cmd=/usr/bin/file 8495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8496 ;; 8497 esac 8498 else 8499 lt_cv_deplibs_check_method=pass_all 8500 fi 8501 ;; 8502 8503 gnu*) 8504 lt_cv_deplibs_check_method=pass_all 8505 ;; 8506 8507 haiku*) 8508 lt_cv_deplibs_check_method=pass_all 8509 ;; 8510 8511 hpux10.20* | hpux11*) 8512 lt_cv_file_magic_cmd=/usr/bin/file 8513 case $host_cpu in 8514 ia64*) 8515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8517 ;; 8518 hppa*64*) 8519 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]' 8520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8521 ;; 8522 *) 8523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8524 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8525 ;; 8526 esac 8527 ;; 8528 8529 interix[3-9]*) 8530 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8532 ;; 8533 8534 irix5* | irix6* | nonstopux*) 8535 case $LD in 8536 *-32|*"-32 ") libmagic=32-bit;; 8537 *-n32|*"-n32 ") libmagic=N32;; 8538 *-64|*"-64 ") libmagic=64-bit;; 8539 *) libmagic=never-match;; 8540 esac 8541 lt_cv_deplibs_check_method=pass_all 8542 ;; 8543 8544 # This must be Linux ELF. 8545 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 8546 lt_cv_deplibs_check_method=pass_all 8547 ;; 8548 8549 netbsd*) 8550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8552 else 8553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8554 fi 8555 ;; 8556 8557 newos6*) 8558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8559 lt_cv_file_magic_cmd=/usr/bin/file 8560 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8561 ;; 8562 8563 *nto* | *qnx*) 8564 lt_cv_deplibs_check_method=pass_all 8565 ;; 8566 8567 openbsd*) 8568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8570 else 8571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8572 fi 8573 ;; 8574 8575 osf3* | osf4* | osf5*) 8576 lt_cv_deplibs_check_method=pass_all 8577 ;; 8578 8579 rdos*) 8580 lt_cv_deplibs_check_method=pass_all 8581 ;; 8582 8583 solaris*) 8584 lt_cv_deplibs_check_method=pass_all 8585 ;; 8586 8587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8588 lt_cv_deplibs_check_method=pass_all 8589 ;; 8590 8591 sysv4 | sysv4.3*) 8592 case $host_vendor in 8593 motorola) 8594 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]' 8595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8596 ;; 8597 ncr) 8598 lt_cv_deplibs_check_method=pass_all 8599 ;; 8600 sequent) 8601 lt_cv_file_magic_cmd='/bin/file' 8602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8603 ;; 8604 sni) 8605 lt_cv_file_magic_cmd='/bin/file' 8606 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8607 lt_cv_file_magic_test_file=/lib/libc.so 8608 ;; 8609 siemens) 8610 lt_cv_deplibs_check_method=pass_all 8611 ;; 8612 pc) 8613 lt_cv_deplibs_check_method=pass_all 8614 ;; 8615 esac 8616 ;; 8617 8618 tpf*) 8619 lt_cv_deplibs_check_method=pass_all 8620 ;; 8621 vxworks*) 8622 # Assume VxWorks cross toolchains are built on Linux, possibly 8623 # as canadian for Windows hosts. 8624 lt_cv_deplibs_check_method=pass_all 8625 ;; 8626 esac 8627 8628 fi 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8630 $as_echo "$lt_cv_deplibs_check_method" >&6; } 8631 file_magic_cmd=$lt_cv_file_magic_cmd 8632 deplibs_check_method=$lt_cv_deplibs_check_method 8633 test -z "$deplibs_check_method" && deplibs_check_method=unknown 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 plugin_option= 8647 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 8648 for plugin in $plugin_names; do 8649 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 8650 if test x$plugin_so = x$plugin; then 8651 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 8652 fi 8653 if test x$plugin_so != x$plugin; then 8654 plugin_option="--plugin $plugin_so" 8655 break 8656 fi 8657 done 8658 8659 if test -n "$ac_tool_prefix"; then 8660 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8661 set dummy ${ac_tool_prefix}ar; ac_word=$2 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8663 $as_echo_n "checking for $ac_word... " >&6; } 8664 if ${ac_cv_prog_AR+:} false; then : 8665 $as_echo_n "(cached) " >&6 8666 else 8667 if test -n "$AR"; then 8668 ac_cv_prog_AR="$AR" # Let the user override the test. 8669 else 8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8671 for as_dir in $PATH 8672 do 8673 IFS=$as_save_IFS 8674 test -z "$as_dir" && as_dir=. 8675 for ac_exec_ext in '' $ac_executable_extensions; do 8676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8677 ac_cv_prog_AR="${ac_tool_prefix}ar" 8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8679 break 2 8680 fi 8681 done 8682 done 8683 IFS=$as_save_IFS 8684 8685 fi 8686 fi 8687 AR=$ac_cv_prog_AR 8688 if test -n "$AR"; then 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8690 $as_echo "$AR" >&6; } 8691 else 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8693 $as_echo "no" >&6; } 8694 fi 8695 8696 8697 fi 8698 if test -z "$ac_cv_prog_AR"; then 8699 ac_ct_AR=$AR 8700 # Extract the first word of "ar", so it can be a program name with args. 8701 set dummy ar; ac_word=$2 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8703 $as_echo_n "checking for $ac_word... " >&6; } 8704 if ${ac_cv_prog_ac_ct_AR+:} false; then : 8705 $as_echo_n "(cached) " >&6 8706 else 8707 if test -n "$ac_ct_AR"; then 8708 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8709 else 8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8711 for as_dir in $PATH 8712 do 8713 IFS=$as_save_IFS 8714 test -z "$as_dir" && as_dir=. 8715 for ac_exec_ext in '' $ac_executable_extensions; do 8716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8717 ac_cv_prog_ac_ct_AR="ar" 8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8719 break 2 8720 fi 8721 done 8722 done 8723 IFS=$as_save_IFS 8724 8725 fi 8726 fi 8727 ac_ct_AR=$ac_cv_prog_ac_ct_AR 8728 if test -n "$ac_ct_AR"; then 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8730 $as_echo "$ac_ct_AR" >&6; } 8731 else 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8733 $as_echo "no" >&6; } 8734 fi 8735 8736 if test "x$ac_ct_AR" = x; then 8737 AR="false" 8738 else 8739 case $cross_compiling:$ac_tool_warned in 8740 yes:) 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8743 ac_tool_warned=yes ;; 8744 esac 8745 AR=$ac_ct_AR 8746 fi 8747 else 8748 AR="$ac_cv_prog_AR" 8749 fi 8750 8751 test -z "$AR" && AR=ar 8752 if test -n "$plugin_option"; then 8753 if $AR --help 2>&1 | grep -q "\--plugin"; then 8754 touch conftest.c 8755 $AR $plugin_option rc conftest.a conftest.c 8756 if test "$?" != 0; then 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 8758 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 8759 else 8760 AR="$AR $plugin_option" 8761 fi 8762 rm -f conftest.* 8763 fi 8764 fi 8765 test -z "$AR_FLAGS" && AR_FLAGS=cru 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 if test -n "$ac_tool_prefix"; then 8778 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8779 set dummy ${ac_tool_prefix}strip; ac_word=$2 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8781 $as_echo_n "checking for $ac_word... " >&6; } 8782 if ${ac_cv_prog_STRIP+:} false; then : 8783 $as_echo_n "(cached) " >&6 8784 else 8785 if test -n "$STRIP"; then 8786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8787 else 8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8789 for as_dir in $PATH 8790 do 8791 IFS=$as_save_IFS 8792 test -z "$as_dir" && as_dir=. 8793 for ac_exec_ext in '' $ac_executable_extensions; do 8794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8795 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8797 break 2 8798 fi 8799 done 8800 done 8801 IFS=$as_save_IFS 8802 8803 fi 8804 fi 8805 STRIP=$ac_cv_prog_STRIP 8806 if test -n "$STRIP"; then 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8808 $as_echo "$STRIP" >&6; } 8809 else 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8811 $as_echo "no" >&6; } 8812 fi 8813 8814 8815 fi 8816 if test -z "$ac_cv_prog_STRIP"; then 8817 ac_ct_STRIP=$STRIP 8818 # Extract the first word of "strip", so it can be a program name with args. 8819 set dummy strip; ac_word=$2 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8821 $as_echo_n "checking for $ac_word... " >&6; } 8822 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8823 $as_echo_n "(cached) " >&6 8824 else 8825 if test -n "$ac_ct_STRIP"; then 8826 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8827 else 8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8829 for as_dir in $PATH 8830 do 8831 IFS=$as_save_IFS 8832 test -z "$as_dir" && as_dir=. 8833 for ac_exec_ext in '' $ac_executable_extensions; do 8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8835 ac_cv_prog_ac_ct_STRIP="strip" 8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8837 break 2 8838 fi 8839 done 8840 done 8841 IFS=$as_save_IFS 8842 8843 fi 8844 fi 8845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8846 if test -n "$ac_ct_STRIP"; then 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8848 $as_echo "$ac_ct_STRIP" >&6; } 8849 else 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8851 $as_echo "no" >&6; } 8852 fi 8853 8854 if test "x$ac_ct_STRIP" = x; then 8855 STRIP=":" 8856 else 8857 case $cross_compiling:$ac_tool_warned in 8858 yes:) 8859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8861 ac_tool_warned=yes ;; 8862 esac 8863 STRIP=$ac_ct_STRIP 8864 fi 8865 else 8866 STRIP="$ac_cv_prog_STRIP" 8867 fi 8868 8869 test -z "$STRIP" && STRIP=: 8870 8871 8872 8873 8874 8875 8876 if test -n "$ac_tool_prefix"; then 8877 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8878 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8880 $as_echo_n "checking for $ac_word... " >&6; } 8881 if ${ac_cv_prog_RANLIB+:} false; then : 8882 $as_echo_n "(cached) " >&6 8883 else 8884 if test -n "$RANLIB"; then 8885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8886 else 8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8888 for as_dir in $PATH 8889 do 8890 IFS=$as_save_IFS 8891 test -z "$as_dir" && as_dir=. 8892 for ac_exec_ext in '' $ac_executable_extensions; do 8893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8894 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8896 break 2 8897 fi 8898 done 8899 done 8900 IFS=$as_save_IFS 8901 8902 fi 8903 fi 8904 RANLIB=$ac_cv_prog_RANLIB 8905 if test -n "$RANLIB"; then 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8907 $as_echo "$RANLIB" >&6; } 8908 else 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8910 $as_echo "no" >&6; } 8911 fi 8912 8913 8914 fi 8915 if test -z "$ac_cv_prog_RANLIB"; then 8916 ac_ct_RANLIB=$RANLIB 8917 # Extract the first word of "ranlib", so it can be a program name with args. 8918 set dummy ranlib; ac_word=$2 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8920 $as_echo_n "checking for $ac_word... " >&6; } 8921 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8922 $as_echo_n "(cached) " >&6 8923 else 8924 if test -n "$ac_ct_RANLIB"; then 8925 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8926 else 8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8928 for as_dir in $PATH 8929 do 8930 IFS=$as_save_IFS 8931 test -z "$as_dir" && as_dir=. 8932 for ac_exec_ext in '' $ac_executable_extensions; do 8933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8934 ac_cv_prog_ac_ct_RANLIB="ranlib" 8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8936 break 2 8937 fi 8938 done 8939 done 8940 IFS=$as_save_IFS 8941 8942 fi 8943 fi 8944 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8945 if test -n "$ac_ct_RANLIB"; then 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8947 $as_echo "$ac_ct_RANLIB" >&6; } 8948 else 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8950 $as_echo "no" >&6; } 8951 fi 8952 8953 if test "x$ac_ct_RANLIB" = x; then 8954 RANLIB=":" 8955 else 8956 case $cross_compiling:$ac_tool_warned in 8957 yes:) 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8960 ac_tool_warned=yes ;; 8961 esac 8962 RANLIB=$ac_ct_RANLIB 8963 fi 8964 else 8965 RANLIB="$ac_cv_prog_RANLIB" 8966 fi 8967 8968 test -z "$RANLIB" && RANLIB=: 8969 if test -n "$plugin_option" && test "$RANLIB" != ":"; then 8970 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 8971 RANLIB="$RANLIB $plugin_option" 8972 fi 8973 fi 8974 8975 8976 8977 8978 8979 8980 # Determine commands to create old-style static archives. 8981 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8982 old_postinstall_cmds='chmod 644 $oldlib' 8983 old_postuninstall_cmds= 8984 8985 if test -n "$RANLIB"; then 8986 case $host_os in 8987 openbsd*) 8988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8989 ;; 8990 *) 8991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8992 ;; 8993 esac 8994 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8995 fi 8996 8997 case $host_os in 8998 darwin*) 8999 lock_old_archive_extraction=yes ;; 9000 *) 9001 lock_old_archive_extraction=no ;; 9002 esac 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 # If no C compiler was specified, use CC. 9043 LTCC=${LTCC-"$CC"} 9044 9045 # If no C compiler flags were specified, use CFLAGS. 9046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9047 9048 # Allow CC to be a program name with arguments. 9049 compiler=$CC 9050 9051 9052 # Check for command to grab the raw symbol name followed by C symbol from nm. 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9054 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9055 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9056 $as_echo_n "(cached) " >&6 9057 else 9058 9059 # These are sane defaults that work on at least a few old systems. 9060 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 9061 9062 # Character class describing NM global symbol codes. 9063 symcode='[BCDEGRST]' 9064 9065 # Regexp to match symbols that can be accessed directly from C. 9066 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9067 9068 # Define system-specific variables. 9069 case $host_os in 9070 aix*) 9071 symcode='[BCDT]' 9072 ;; 9073 cygwin* | mingw* | pw32* | cegcc*) 9074 symcode='[ABCDGISTW]' 9075 ;; 9076 hpux*) 9077 if test "$host_cpu" = ia64; then 9078 symcode='[ABCDEGRST]' 9079 fi 9080 ;; 9081 irix* | nonstopux*) 9082 symcode='[BCDEGRST]' 9083 ;; 9084 osf*) 9085 symcode='[BCDEGQRST]' 9086 ;; 9087 solaris*) 9088 symcode='[BCDRT]' 9089 ;; 9090 sco3.2v5*) 9091 symcode='[DT]' 9092 ;; 9093 sysv4.2uw2*) 9094 symcode='[DT]' 9095 ;; 9096 sysv5* | sco5v6* | unixware* | OpenUNIX*) 9097 symcode='[ABDT]' 9098 ;; 9099 sysv4) 9100 symcode='[DFNSTU]' 9101 ;; 9102 esac 9103 9104 # If we're using GNU nm, then use its standard symbol codes. 9105 case `$NM -V 2>&1` in 9106 *GNU* | *'with BFD'*) 9107 symcode='[ABCDGIRSTW]' ;; 9108 esac 9109 9110 # Transform an extracted symbol line into a proper C declaration. 9111 # Some systems (esp. on ia64) link data and code symbols differently, 9112 # so use this general approach. 9113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9114 9115 # Transform an extracted symbol line into symbol name and symbol address 9116 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 9117 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 9118 9119 # Handle CRLF in mingw tool chain 9120 opt_cr= 9121 case $build_os in 9122 mingw*) 9123 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9124 ;; 9125 esac 9126 9127 # Try without a prefix underscore, then with it. 9128 for ac_symprfx in "" "_"; do 9129 9130 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9131 symxfrm="\\1 $ac_symprfx\\2 \\2" 9132 9133 # Write the raw and C identifiers. 9134 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9135 # Fake it for dumpbin and say T for any non-static function 9136 # and D for any global variable. 9137 # Also find C++ and __fastcall symbols from MSVC++, 9138 # which start with @ or ?. 9139 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9140 " {last_section=section; section=\$ 3};"\ 9141 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9142 " \$ 0!~/External *\|/{next};"\ 9143 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9144 " {if(hide[section]) next};"\ 9145 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 9146 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 9147 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 9148 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 9149 " ' prfx=^$ac_symprfx" 9150 else 9151 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9152 fi 9153 9154 # Check to see that the pipe works correctly. 9155 pipe_works=no 9156 9157 rm -f conftest* 9158 cat > conftest.$ac_ext <<_LT_EOF 9159 #ifdef __cplusplus 9160 extern "C" { 9161 #endif 9162 char nm_test_var; 9163 void nm_test_func(void); 9164 void nm_test_func(void){} 9165 #ifdef __cplusplus 9166 } 9167 #endif 9168 int main(){nm_test_var='a';nm_test_func();return(0);} 9169 _LT_EOF 9170 9171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9172 (eval $ac_compile) 2>&5 9173 ac_status=$? 9174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9175 test $ac_status = 0; }; then 9176 # Now try to grab the symbols. 9177 nlist=conftest.nm 9178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9179 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9180 ac_status=$? 9181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9182 test $ac_status = 0; } && test -s "$nlist"; then 9183 # Try sorting and uniquifying the output. 9184 if sort "$nlist" | uniq > "$nlist"T; then 9185 mv -f "$nlist"T "$nlist" 9186 else 9187 rm -f "$nlist"T 9188 fi 9189 9190 # Make sure that we snagged all the symbols we need. 9191 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9192 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9193 cat <<_LT_EOF > conftest.$ac_ext 9194 #ifdef __cplusplus 9195 extern "C" { 9196 #endif 9197 9198 _LT_EOF 9199 # Now generate the symbol file. 9200 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9201 9202 cat <<_LT_EOF >> conftest.$ac_ext 9203 9204 /* The mapping between symbol names and symbols. */ 9205 const struct { 9206 const char *name; 9207 void *address; 9208 } 9209 lt__PROGRAM__LTX_preloaded_symbols[] = 9210 { 9211 { "@PROGRAM@", (void *) 0 }, 9212 _LT_EOF 9213 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9214 cat <<\_LT_EOF >> conftest.$ac_ext 9215 {0, (void *) 0} 9216 }; 9217 9218 /* This works around a problem in FreeBSD linker */ 9219 #ifdef FREEBSD_WORKAROUND 9220 static const void *lt_preloaded_setup() { 9221 return lt__PROGRAM__LTX_preloaded_symbols; 9222 } 9223 #endif 9224 9225 #ifdef __cplusplus 9226 } 9227 #endif 9228 _LT_EOF 9229 # Now try linking the two files. 9230 mv conftest.$ac_objext conftstm.$ac_objext 9231 lt_save_LIBS="$LIBS" 9232 lt_save_CFLAGS="$CFLAGS" 9233 LIBS="conftstm.$ac_objext" 9234 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9236 (eval $ac_link) 2>&5 9237 ac_status=$? 9238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9239 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 9240 pipe_works=yes 9241 fi 9242 LIBS="$lt_save_LIBS" 9243 CFLAGS="$lt_save_CFLAGS" 9244 else 9245 echo "cannot find nm_test_func in $nlist" >&5 9246 fi 9247 else 9248 echo "cannot find nm_test_var in $nlist" >&5 9249 fi 9250 else 9251 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9252 fi 9253 else 9254 echo "$progname: failed program was:" >&5 9255 cat conftest.$ac_ext >&5 9256 fi 9257 rm -rf conftest* conftst* 9258 9259 # Do not use the global_symbol_pipe unless it works. 9260 if test "$pipe_works" = yes; then 9261 break 9262 else 9263 lt_cv_sys_global_symbol_pipe= 9264 fi 9265 done 9266 9267 fi 9268 9269 if test -z "$lt_cv_sys_global_symbol_pipe"; then 9270 lt_cv_sys_global_symbol_to_cdecl= 9271 fi 9272 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9274 $as_echo "failed" >&6; } 9275 else 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9277 $as_echo "ok" >&6; } 9278 fi 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 # Check whether --enable-libtool-lock was given. 9302 if test "${enable_libtool_lock+set}" = set; then : 9303 enableval=$enable_libtool_lock; 9304 fi 9305 9306 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9307 9308 # Some flags need to be propagated to the compiler or linker for good 9309 # libtool support. 9310 case $host in 9311 ia64-*-hpux*) 9312 # Find out which ABI we are using. 9313 echo 'int i;' > conftest.$ac_ext 9314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9315 (eval $ac_compile) 2>&5 9316 ac_status=$? 9317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9318 test $ac_status = 0; }; then 9319 case `/usr/bin/file conftest.$ac_objext` in 9320 *ELF-32*) 9321 HPUX_IA64_MODE="32" 9322 ;; 9323 *ELF-64*) 9324 HPUX_IA64_MODE="64" 9325 ;; 9326 esac 9327 fi 9328 rm -rf conftest* 9329 ;; 9330 *-*-irix6*) 9331 # Find out which ABI we are using. 9332 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9334 (eval $ac_compile) 2>&5 9335 ac_status=$? 9336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9337 test $ac_status = 0; }; then 9338 if test "$lt_cv_prog_gnu_ld" = yes; then 9339 case `/usr/bin/file conftest.$ac_objext` in 9340 *32-bit*) 9341 LD="${LD-ld} -melf32bsmip" 9342 ;; 9343 *N32*) 9344 LD="${LD-ld} -melf32bmipn32" 9345 ;; 9346 *64-bit*) 9347 LD="${LD-ld} -melf64bmip" 9348 ;; 9349 esac 9350 else 9351 case `/usr/bin/file conftest.$ac_objext` in 9352 *32-bit*) 9353 LD="${LD-ld} -32" 9354 ;; 9355 *N32*) 9356 LD="${LD-ld} -n32" 9357 ;; 9358 *64-bit*) 9359 LD="${LD-ld} -64" 9360 ;; 9361 esac 9362 fi 9363 fi 9364 rm -rf conftest* 9365 ;; 9366 9367 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9368 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9369 # Find out which ABI we are using. 9370 echo 'int i;' > conftest.$ac_ext 9371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9372 (eval $ac_compile) 2>&5 9373 ac_status=$? 9374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9375 test $ac_status = 0; }; then 9376 case `/usr/bin/file conftest.o` in 9377 *32-bit*) 9378 case $host in 9379 x86_64-*kfreebsd*-gnu) 9380 LD="${LD-ld} -m elf_i386_fbsd" 9381 ;; 9382 x86_64-*linux*) 9383 case `/usr/bin/file conftest.o` in 9384 *x86-64*) 9385 LD="${LD-ld} -m elf32_x86_64" 9386 ;; 9387 *) 9388 LD="${LD-ld} -m elf_i386" 9389 ;; 9390 esac 9391 ;; 9392 powerpc64le-*linux*) 9393 LD="${LD-ld} -m elf32lppclinux" 9394 ;; 9395 powerpc64-*linux*) 9396 LD="${LD-ld} -m elf32ppclinux" 9397 ;; 9398 s390x-*linux*) 9399 LD="${LD-ld} -m elf_s390" 9400 ;; 9401 sparc64-*linux*) 9402 LD="${LD-ld} -m elf32_sparc" 9403 ;; 9404 esac 9405 ;; 9406 *64-bit*) 9407 case $host in 9408 x86_64-*kfreebsd*-gnu) 9409 LD="${LD-ld} -m elf_x86_64_fbsd" 9410 ;; 9411 x86_64-*linux*) 9412 LD="${LD-ld} -m elf_x86_64" 9413 ;; 9414 powerpcle-*linux*) 9415 LD="${LD-ld} -m elf64lppc" 9416 ;; 9417 powerpc-*linux*) 9418 LD="${LD-ld} -m elf64ppc" 9419 ;; 9420 s390*-*linux*|s390*-*tpf*) 9421 LD="${LD-ld} -m elf64_s390" 9422 ;; 9423 sparc*-*linux*) 9424 LD="${LD-ld} -m elf64_sparc" 9425 ;; 9426 esac 9427 ;; 9428 esac 9429 fi 9430 rm -rf conftest* 9431 ;; 9432 9433 *-*-sco3.2v5*) 9434 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9435 SAVE_CFLAGS="$CFLAGS" 9436 CFLAGS="$CFLAGS -belf" 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9438 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9439 if ${lt_cv_cc_needs_belf+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441 else 9442 ac_ext=c 9443 ac_cpp='$CPP $CPPFLAGS' 9444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9446 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9447 9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9449 /* end confdefs.h. */ 9450 9451 int 9452 main () 9453 { 9454 9455 ; 9456 return 0; 9457 } 9458 _ACEOF 9459 if ac_fn_c_try_link "$LINENO"; then : 9460 lt_cv_cc_needs_belf=yes 9461 else 9462 lt_cv_cc_needs_belf=no 9463 fi 9464 rm -f core conftest.err conftest.$ac_objext \ 9465 conftest$ac_exeext conftest.$ac_ext 9466 ac_ext=c 9467 ac_cpp='$CPP $CPPFLAGS' 9468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9470 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9471 9472 fi 9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9474 $as_echo "$lt_cv_cc_needs_belf" >&6; } 9475 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9476 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9477 CFLAGS="$SAVE_CFLAGS" 9478 fi 9479 ;; 9480 sparc*-*solaris*) 9481 # Find out which ABI we are using. 9482 echo 'int i;' > conftest.$ac_ext 9483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9484 (eval $ac_compile) 2>&5 9485 ac_status=$? 9486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9487 test $ac_status = 0; }; then 9488 case `/usr/bin/file conftest.o` in 9489 *64-bit*) 9490 case $lt_cv_prog_gnu_ld in 9491 yes*) LD="${LD-ld} -m elf64_sparc" ;; 9492 *) 9493 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9494 LD="${LD-ld} -64" 9495 fi 9496 ;; 9497 esac 9498 ;; 9499 esac 9500 fi 9501 rm -rf conftest* 9502 ;; 9503 esac 9504 9505 need_locks="$enable_libtool_lock" 9506 9507 9508 case $host_os in 9509 rhapsody* | darwin*) 9510 if test -n "$ac_tool_prefix"; then 9511 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9512 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9514 $as_echo_n "checking for $ac_word... " >&6; } 9515 if ${ac_cv_prog_DSYMUTIL+:} false; then : 9516 $as_echo_n "(cached) " >&6 9517 else 9518 if test -n "$DSYMUTIL"; then 9519 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9520 else 9521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9522 for as_dir in $PATH 9523 do 9524 IFS=$as_save_IFS 9525 test -z "$as_dir" && as_dir=. 9526 for ac_exec_ext in '' $ac_executable_extensions; do 9527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9528 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9530 break 2 9531 fi 9532 done 9533 done 9534 IFS=$as_save_IFS 9535 9536 fi 9537 fi 9538 DSYMUTIL=$ac_cv_prog_DSYMUTIL 9539 if test -n "$DSYMUTIL"; then 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9541 $as_echo "$DSYMUTIL" >&6; } 9542 else 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9544 $as_echo "no" >&6; } 9545 fi 9546 9547 9548 fi 9549 if test -z "$ac_cv_prog_DSYMUTIL"; then 9550 ac_ct_DSYMUTIL=$DSYMUTIL 9551 # Extract the first word of "dsymutil", so it can be a program name with args. 9552 set dummy dsymutil; ac_word=$2 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9554 $as_echo_n "checking for $ac_word... " >&6; } 9555 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9556 $as_echo_n "(cached) " >&6 9557 else 9558 if test -n "$ac_ct_DSYMUTIL"; then 9559 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9560 else 9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9562 for as_dir in $PATH 9563 do 9564 IFS=$as_save_IFS 9565 test -z "$as_dir" && as_dir=. 9566 for ac_exec_ext in '' $ac_executable_extensions; do 9567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9568 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9570 break 2 9571 fi 9572 done 9573 done 9574 IFS=$as_save_IFS 9575 9576 fi 9577 fi 9578 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9579 if test -n "$ac_ct_DSYMUTIL"; then 9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9581 $as_echo "$ac_ct_DSYMUTIL" >&6; } 9582 else 9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9584 $as_echo "no" >&6; } 9585 fi 9586 9587 if test "x$ac_ct_DSYMUTIL" = x; then 9588 DSYMUTIL=":" 9589 else 9590 case $cross_compiling:$ac_tool_warned in 9591 yes:) 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9594 ac_tool_warned=yes ;; 9595 esac 9596 DSYMUTIL=$ac_ct_DSYMUTIL 9597 fi 9598 else 9599 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9600 fi 9601 9602 if test -n "$ac_tool_prefix"; then 9603 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9604 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9606 $as_echo_n "checking for $ac_word... " >&6; } 9607 if ${ac_cv_prog_NMEDIT+:} false; then : 9608 $as_echo_n "(cached) " >&6 9609 else 9610 if test -n "$NMEDIT"; then 9611 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9612 else 9613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9614 for as_dir in $PATH 9615 do 9616 IFS=$as_save_IFS 9617 test -z "$as_dir" && as_dir=. 9618 for ac_exec_ext in '' $ac_executable_extensions; do 9619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9620 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9622 break 2 9623 fi 9624 done 9625 done 9626 IFS=$as_save_IFS 9627 9628 fi 9629 fi 9630 NMEDIT=$ac_cv_prog_NMEDIT 9631 if test -n "$NMEDIT"; then 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9633 $as_echo "$NMEDIT" >&6; } 9634 else 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9636 $as_echo "no" >&6; } 9637 fi 9638 9639 9640 fi 9641 if test -z "$ac_cv_prog_NMEDIT"; then 9642 ac_ct_NMEDIT=$NMEDIT 9643 # Extract the first word of "nmedit", so it can be a program name with args. 9644 set dummy nmedit; ac_word=$2 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9646 $as_echo_n "checking for $ac_word... " >&6; } 9647 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9648 $as_echo_n "(cached) " >&6 9649 else 9650 if test -n "$ac_ct_NMEDIT"; then 9651 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9652 else 9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9654 for as_dir in $PATH 9655 do 9656 IFS=$as_save_IFS 9657 test -z "$as_dir" && as_dir=. 9658 for ac_exec_ext in '' $ac_executable_extensions; do 9659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9660 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9662 break 2 9663 fi 9664 done 9665 done 9666 IFS=$as_save_IFS 9667 9668 fi 9669 fi 9670 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9671 if test -n "$ac_ct_NMEDIT"; then 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9673 $as_echo "$ac_ct_NMEDIT" >&6; } 9674 else 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9676 $as_echo "no" >&6; } 9677 fi 9678 9679 if test "x$ac_ct_NMEDIT" = x; then 9680 NMEDIT=":" 9681 else 9682 case $cross_compiling:$ac_tool_warned in 9683 yes:) 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9686 ac_tool_warned=yes ;; 9687 esac 9688 NMEDIT=$ac_ct_NMEDIT 9689 fi 9690 else 9691 NMEDIT="$ac_cv_prog_NMEDIT" 9692 fi 9693 9694 if test -n "$ac_tool_prefix"; then 9695 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9696 set dummy ${ac_tool_prefix}lipo; ac_word=$2 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9698 $as_echo_n "checking for $ac_word... " >&6; } 9699 if ${ac_cv_prog_LIPO+:} false; then : 9700 $as_echo_n "(cached) " >&6 9701 else 9702 if test -n "$LIPO"; then 9703 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9704 else 9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9706 for as_dir in $PATH 9707 do 9708 IFS=$as_save_IFS 9709 test -z "$as_dir" && as_dir=. 9710 for ac_exec_ext in '' $ac_executable_extensions; do 9711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9712 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9714 break 2 9715 fi 9716 done 9717 done 9718 IFS=$as_save_IFS 9719 9720 fi 9721 fi 9722 LIPO=$ac_cv_prog_LIPO 9723 if test -n "$LIPO"; then 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9725 $as_echo "$LIPO" >&6; } 9726 else 9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9728 $as_echo "no" >&6; } 9729 fi 9730 9731 9732 fi 9733 if test -z "$ac_cv_prog_LIPO"; then 9734 ac_ct_LIPO=$LIPO 9735 # Extract the first word of "lipo", so it can be a program name with args. 9736 set dummy lipo; ac_word=$2 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9738 $as_echo_n "checking for $ac_word... " >&6; } 9739 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9740 $as_echo_n "(cached) " >&6 9741 else 9742 if test -n "$ac_ct_LIPO"; then 9743 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9744 else 9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9746 for as_dir in $PATH 9747 do 9748 IFS=$as_save_IFS 9749 test -z "$as_dir" && as_dir=. 9750 for ac_exec_ext in '' $ac_executable_extensions; do 9751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9752 ac_cv_prog_ac_ct_LIPO="lipo" 9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9754 break 2 9755 fi 9756 done 9757 done 9758 IFS=$as_save_IFS 9759 9760 fi 9761 fi 9762 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9763 if test -n "$ac_ct_LIPO"; then 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9765 $as_echo "$ac_ct_LIPO" >&6; } 9766 else 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9768 $as_echo "no" >&6; } 9769 fi 9770 9771 if test "x$ac_ct_LIPO" = x; then 9772 LIPO=":" 9773 else 9774 case $cross_compiling:$ac_tool_warned in 9775 yes:) 9776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9778 ac_tool_warned=yes ;; 9779 esac 9780 LIPO=$ac_ct_LIPO 9781 fi 9782 else 9783 LIPO="$ac_cv_prog_LIPO" 9784 fi 9785 9786 if test -n "$ac_tool_prefix"; then 9787 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9788 set dummy ${ac_tool_prefix}otool; ac_word=$2 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9790 $as_echo_n "checking for $ac_word... " >&6; } 9791 if ${ac_cv_prog_OTOOL+:} false; then : 9792 $as_echo_n "(cached) " >&6 9793 else 9794 if test -n "$OTOOL"; then 9795 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9796 else 9797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9798 for as_dir in $PATH 9799 do 9800 IFS=$as_save_IFS 9801 test -z "$as_dir" && as_dir=. 9802 for ac_exec_ext in '' $ac_executable_extensions; do 9803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9804 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9806 break 2 9807 fi 9808 done 9809 done 9810 IFS=$as_save_IFS 9811 9812 fi 9813 fi 9814 OTOOL=$ac_cv_prog_OTOOL 9815 if test -n "$OTOOL"; then 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9817 $as_echo "$OTOOL" >&6; } 9818 else 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9820 $as_echo "no" >&6; } 9821 fi 9822 9823 9824 fi 9825 if test -z "$ac_cv_prog_OTOOL"; then 9826 ac_ct_OTOOL=$OTOOL 9827 # Extract the first word of "otool", so it can be a program name with args. 9828 set dummy otool; ac_word=$2 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9830 $as_echo_n "checking for $ac_word... " >&6; } 9831 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9832 $as_echo_n "(cached) " >&6 9833 else 9834 if test -n "$ac_ct_OTOOL"; then 9835 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9836 else 9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9838 for as_dir in $PATH 9839 do 9840 IFS=$as_save_IFS 9841 test -z "$as_dir" && as_dir=. 9842 for ac_exec_ext in '' $ac_executable_extensions; do 9843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9844 ac_cv_prog_ac_ct_OTOOL="otool" 9845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9846 break 2 9847 fi 9848 done 9849 done 9850 IFS=$as_save_IFS 9851 9852 fi 9853 fi 9854 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9855 if test -n "$ac_ct_OTOOL"; then 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9857 $as_echo "$ac_ct_OTOOL" >&6; } 9858 else 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9860 $as_echo "no" >&6; } 9861 fi 9862 9863 if test "x$ac_ct_OTOOL" = x; then 9864 OTOOL=":" 9865 else 9866 case $cross_compiling:$ac_tool_warned in 9867 yes:) 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9870 ac_tool_warned=yes ;; 9871 esac 9872 OTOOL=$ac_ct_OTOOL 9873 fi 9874 else 9875 OTOOL="$ac_cv_prog_OTOOL" 9876 fi 9877 9878 if test -n "$ac_tool_prefix"; then 9879 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9880 set dummy ${ac_tool_prefix}otool64; ac_word=$2 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9882 $as_echo_n "checking for $ac_word... " >&6; } 9883 if ${ac_cv_prog_OTOOL64+:} false; then : 9884 $as_echo_n "(cached) " >&6 9885 else 9886 if test -n "$OTOOL64"; then 9887 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9888 else 9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9890 for as_dir in $PATH 9891 do 9892 IFS=$as_save_IFS 9893 test -z "$as_dir" && as_dir=. 9894 for ac_exec_ext in '' $ac_executable_extensions; do 9895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9896 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9898 break 2 9899 fi 9900 done 9901 done 9902 IFS=$as_save_IFS 9903 9904 fi 9905 fi 9906 OTOOL64=$ac_cv_prog_OTOOL64 9907 if test -n "$OTOOL64"; then 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9909 $as_echo "$OTOOL64" >&6; } 9910 else 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9912 $as_echo "no" >&6; } 9913 fi 9914 9915 9916 fi 9917 if test -z "$ac_cv_prog_OTOOL64"; then 9918 ac_ct_OTOOL64=$OTOOL64 9919 # Extract the first word of "otool64", so it can be a program name with args. 9920 set dummy otool64; ac_word=$2 9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9922 $as_echo_n "checking for $ac_word... " >&6; } 9923 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9924 $as_echo_n "(cached) " >&6 9925 else 9926 if test -n "$ac_ct_OTOOL64"; then 9927 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9928 else 9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9930 for as_dir in $PATH 9931 do 9932 IFS=$as_save_IFS 9933 test -z "$as_dir" && as_dir=. 9934 for ac_exec_ext in '' $ac_executable_extensions; do 9935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9936 ac_cv_prog_ac_ct_OTOOL64="otool64" 9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9938 break 2 9939 fi 9940 done 9941 done 9942 IFS=$as_save_IFS 9943 9944 fi 9945 fi 9946 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9947 if test -n "$ac_ct_OTOOL64"; then 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9949 $as_echo "$ac_ct_OTOOL64" >&6; } 9950 else 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9952 $as_echo "no" >&6; } 9953 fi 9954 9955 if test "x$ac_ct_OTOOL64" = x; then 9956 OTOOL64=":" 9957 else 9958 case $cross_compiling:$ac_tool_warned in 9959 yes:) 9960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9962 ac_tool_warned=yes ;; 9963 esac 9964 OTOOL64=$ac_ct_OTOOL64 9965 fi 9966 else 9967 OTOOL64="$ac_cv_prog_OTOOL64" 9968 fi 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9997 $as_echo_n "checking for -single_module linker flag... " >&6; } 9998 if ${lt_cv_apple_cc_single_mod+:} false; then : 9999 $as_echo_n "(cached) " >&6 10000 else 10001 lt_cv_apple_cc_single_mod=no 10002 if test -z "${LT_MULTI_MODULE}"; then 10003 # By default we will add the -single_module flag. You can override 10004 # by either setting the environment variable LT_MULTI_MODULE 10005 # non-empty at configure time, or by adding -multi_module to the 10006 # link flags. 10007 rm -rf libconftest.dylib* 10008 echo "int foo(void){return 1;}" > conftest.c 10009 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10010 -dynamiclib -Wl,-single_module conftest.c" >&5 10011 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10012 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10013 _lt_result=$? 10014 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 10015 lt_cv_apple_cc_single_mod=yes 10016 else 10017 cat conftest.err >&5 10018 fi 10019 rm -rf libconftest.dylib* 10020 rm -f conftest.* 10021 fi 10022 fi 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10024 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10026 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10027 if ${lt_cv_ld_exported_symbols_list+:} false; then : 10028 $as_echo_n "(cached) " >&6 10029 else 10030 lt_cv_ld_exported_symbols_list=no 10031 save_LDFLAGS=$LDFLAGS 10032 echo "_main" > conftest.sym 10033 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035 /* end confdefs.h. */ 10036 10037 int 10038 main () 10039 { 10040 10041 ; 10042 return 0; 10043 } 10044 _ACEOF 10045 if ac_fn_c_try_link "$LINENO"; then : 10046 lt_cv_ld_exported_symbols_list=yes 10047 else 10048 lt_cv_ld_exported_symbols_list=no 10049 fi 10050 rm -f core conftest.err conftest.$ac_objext \ 10051 conftest$ac_exeext conftest.$ac_ext 10052 LDFLAGS="$save_LDFLAGS" 10053 10054 fi 10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10056 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10058 $as_echo_n "checking for -force_load linker flag... " >&6; } 10059 if ${lt_cv_ld_force_load+:} false; then : 10060 $as_echo_n "(cached) " >&6 10061 else 10062 lt_cv_ld_force_load=no 10063 cat > conftest.c << _LT_EOF 10064 int forced_loaded() { return 2;} 10065 _LT_EOF 10066 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10067 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10068 echo "$AR cru libconftest.a conftest.o" >&5 10069 $AR cru libconftest.a conftest.o 2>&5 10070 cat > conftest.c << _LT_EOF 10071 int main() { return 0;} 10072 _LT_EOF 10073 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10074 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10075 _lt_result=$? 10076 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 10077 lt_cv_ld_force_load=yes 10078 else 10079 cat conftest.err >&5 10080 fi 10081 rm -f conftest.err libconftest.a conftest conftest.c 10082 rm -rf conftest.dSYM 10083 10084 fi 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10086 $as_echo "$lt_cv_ld_force_load" >&6; } 10087 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 10088 # build without first building modern cctools / linker. 10089 case $host_cpu-$host_os in 10090 *-rhapsody* | *-darwin1.[012]) 10091 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 10092 *-darwin1.*) 10093 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10094 *-darwin*) 10095 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 10096 # deployment target is forced to an earlier version. 10097 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 10098 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 10099 ;; 10100 10.[012][,.]*) 10101 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10102 ;; 10103 *) 10104 ;; 10105 esac 10106 ;; 10107 esac 10108 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 10109 _lt_dar_single_mod='$single_module' 10110 fi 10111 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 10112 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 10113 else 10114 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 10115 fi 10116 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 10117 _lt_dsymutil='~$DSYMUTIL $lib || :' 10118 else 10119 _lt_dsymutil= 10120 fi 10121 ;; 10122 esac 10123 10124 for ac_header in dlfcn.h 10125 do : 10126 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10127 " 10128 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10129 cat >>confdefs.h <<_ACEOF 10130 #define HAVE_DLFCN_H 1 10131 _ACEOF 10132 10133 fi 10134 10135 done 10136 10137 10138 10139 10140 10141 # Set options 10142 10143 10144 10145 enable_dlopen=no 10146 10147 10148 enable_win32_dll=no 10149 10150 10151 10152 # Check whether --enable-static was given. 10153 if test "${enable_static+set}" = set; then : 10154 enableval=$enable_static; p=${PACKAGE-default} 10155 case $enableval in 10156 yes) enable_static=yes ;; 10157 no) enable_static=no ;; 10158 *) 10159 enable_static=no 10160 # Look at the argument we got. We use all the common list separators. 10161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10162 for pkg in $enableval; do 10163 IFS="$lt_save_ifs" 10164 if test "X$pkg" = "X$p"; then 10165 enable_static=yes 10166 fi 10167 done 10168 IFS="$lt_save_ifs" 10169 ;; 10170 esac 10171 else 10172 enable_static=yes 10173 fi 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 # Check whether --with-pic was given. 10185 if test "${with_pic+set}" = set; then : 10186 withval=$with_pic; pic_mode="$withval" 10187 else 10188 pic_mode=default 10189 fi 10190 10191 10192 test -z "$pic_mode" && pic_mode=default 10193 10194 10195 10196 10197 10198 10199 10200 # Check whether --enable-fast-install was given. 10201 if test "${enable_fast_install+set}" = set; then : 10202 enableval=$enable_fast_install; p=${PACKAGE-default} 10203 case $enableval in 10204 yes) enable_fast_install=yes ;; 10205 no) enable_fast_install=no ;; 10206 *) 10207 enable_fast_install=no 10208 # Look at the argument we got. We use all the common list separators. 10209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10210 for pkg in $enableval; do 10211 IFS="$lt_save_ifs" 10212 if test "X$pkg" = "X$p"; then 10213 enable_fast_install=yes 10214 fi 10215 done 10216 IFS="$lt_save_ifs" 10217 ;; 10218 esac 10219 else 10220 enable_fast_install=yes 10221 fi 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 # This can be used to rebuild libtool when needed 10234 LIBTOOL_DEPS="$ltmain" 10235 10236 # Always use our own libtool. 10237 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 test -z "$LN_S" && LN_S="ln -s" 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 if test -n "${ZSH_VERSION+set}" ; then 10280 setopt NO_GLOB_SUBST 10281 fi 10282 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10284 $as_echo_n "checking for objdir... " >&6; } 10285 if ${lt_cv_objdir+:} false; then : 10286 $as_echo_n "(cached) " >&6 10287 else 10288 rm -f .libs 2>/dev/null 10289 mkdir .libs 2>/dev/null 10290 if test -d .libs; then 10291 lt_cv_objdir=.libs 10292 else 10293 # MS-DOS does not allow filenames that begin with a dot. 10294 lt_cv_objdir=_libs 10295 fi 10296 rmdir .libs 2>/dev/null 10297 fi 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10299 $as_echo "$lt_cv_objdir" >&6; } 10300 objdir=$lt_cv_objdir 10301 10302 10303 10304 10305 10306 cat >>confdefs.h <<_ACEOF 10307 #define LT_OBJDIR "$lt_cv_objdir/" 10308 _ACEOF 10309 10310 10311 10312 10313 case $host_os in 10314 aix3*) 10315 # AIX sometimes has problems with the GCC collect2 program. For some 10316 # reason, if we set the COLLECT_NAMES environment variable, the problems 10317 # vanish in a puff of smoke. 10318 if test "X${COLLECT_NAMES+set}" != Xset; then 10319 COLLECT_NAMES= 10320 export COLLECT_NAMES 10321 fi 10322 ;; 10323 esac 10324 10325 # Global variables: 10326 ofile=libtool 10327 can_build_shared=yes 10328 10329 # All known linkers require a `.a' archive for static linking (except MSVC, 10330 # which needs '.lib'). 10331 libext=a 10332 10333 with_gnu_ld="$lt_cv_prog_gnu_ld" 10334 10335 old_CC="$CC" 10336 old_CFLAGS="$CFLAGS" 10337 10338 # Set sane defaults for various variables 10339 test -z "$CC" && CC=cc 10340 test -z "$LTCC" && LTCC=$CC 10341 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10342 test -z "$LD" && LD=ld 10343 test -z "$ac_objext" && ac_objext=o 10344 10345 for cc_temp in $compiler""; do 10346 case $cc_temp in 10347 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10348 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10349 \-*) ;; 10350 *) break;; 10351 esac 10352 done 10353 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10354 10355 10356 # Only perform the check for file, if the check method requires it 10357 test -z "$MAGIC_CMD" && MAGIC_CMD=file 10358 case $deplibs_check_method in 10359 file_magic*) 10360 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10362 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10363 if ${lt_cv_path_MAGIC_CMD+:} false; then : 10364 $as_echo_n "(cached) " >&6 10365 else 10366 case $MAGIC_CMD in 10367 [\\/*] | ?:[\\/]*) 10368 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10369 ;; 10370 *) 10371 lt_save_MAGIC_CMD="$MAGIC_CMD" 10372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10374 for ac_dir in $ac_dummy; do 10375 IFS="$lt_save_ifs" 10376 test -z "$ac_dir" && ac_dir=. 10377 if test -f $ac_dir/${ac_tool_prefix}file; then 10378 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10379 if test -n "$file_magic_test_file"; then 10380 case $deplibs_check_method in 10381 "file_magic "*) 10382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10385 $EGREP "$file_magic_regex" > /dev/null; then 10386 : 10387 else 10388 cat <<_LT_EOF 1>&2 10389 10390 *** Warning: the command libtool uses to detect shared libraries, 10391 *** $file_magic_cmd, produces output that libtool cannot recognize. 10392 *** The result is that libtool may fail to recognize shared libraries 10393 *** as such. This will affect the creation of libtool libraries that 10394 *** depend on shared libraries, but programs linked with such libtool 10395 *** libraries will work regardless of this problem. Nevertheless, you 10396 *** may want to report the problem to your system manager and/or to 10397 *** bug-libtool@gnu.org 10398 10399 _LT_EOF 10400 fi ;; 10401 esac 10402 fi 10403 break 10404 fi 10405 done 10406 IFS="$lt_save_ifs" 10407 MAGIC_CMD="$lt_save_MAGIC_CMD" 10408 ;; 10409 esac 10410 fi 10411 10412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10413 if test -n "$MAGIC_CMD"; then 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10415 $as_echo "$MAGIC_CMD" >&6; } 10416 else 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10418 $as_echo "no" >&6; } 10419 fi 10420 10421 10422 10423 10424 10425 if test -z "$lt_cv_path_MAGIC_CMD"; then 10426 if test -n "$ac_tool_prefix"; then 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10428 $as_echo_n "checking for file... " >&6; } 10429 if ${lt_cv_path_MAGIC_CMD+:} false; then : 10430 $as_echo_n "(cached) " >&6 10431 else 10432 case $MAGIC_CMD in 10433 [\\/*] | ?:[\\/]*) 10434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10435 ;; 10436 *) 10437 lt_save_MAGIC_CMD="$MAGIC_CMD" 10438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10440 for ac_dir in $ac_dummy; do 10441 IFS="$lt_save_ifs" 10442 test -z "$ac_dir" && ac_dir=. 10443 if test -f $ac_dir/file; then 10444 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10445 if test -n "$file_magic_test_file"; then 10446 case $deplibs_check_method in 10447 "file_magic "*) 10448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10451 $EGREP "$file_magic_regex" > /dev/null; then 10452 : 10453 else 10454 cat <<_LT_EOF 1>&2 10455 10456 *** Warning: the command libtool uses to detect shared libraries, 10457 *** $file_magic_cmd, produces output that libtool cannot recognize. 10458 *** The result is that libtool may fail to recognize shared libraries 10459 *** as such. This will affect the creation of libtool libraries that 10460 *** depend on shared libraries, but programs linked with such libtool 10461 *** libraries will work regardless of this problem. Nevertheless, you 10462 *** may want to report the problem to your system manager and/or to 10463 *** bug-libtool@gnu.org 10464 10465 _LT_EOF 10466 fi ;; 10467 esac 10468 fi 10469 break 10470 fi 10471 done 10472 IFS="$lt_save_ifs" 10473 MAGIC_CMD="$lt_save_MAGIC_CMD" 10474 ;; 10475 esac 10476 fi 10477 10478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10479 if test -n "$MAGIC_CMD"; then 10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10481 $as_echo "$MAGIC_CMD" >&6; } 10482 else 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10484 $as_echo "no" >&6; } 10485 fi 10486 10487 10488 else 10489 MAGIC_CMD=: 10490 fi 10491 fi 10492 10493 fi 10494 ;; 10495 esac 10496 10497 # Use C for the default configuration in the libtool script 10498 10499 lt_save_CC="$CC" 10500 ac_ext=c 10501 ac_cpp='$CPP $CPPFLAGS' 10502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10504 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10505 10506 10507 # Source file extension for C test sources. 10508 ac_ext=c 10509 10510 # Object file extension for compiled C test sources. 10511 objext=o 10512 objext=$objext 10513 10514 # Code to be used in simple compile tests 10515 lt_simple_compile_test_code="int some_variable = 0;" 10516 10517 # Code to be used in simple link tests 10518 lt_simple_link_test_code='int main(){return(0);}' 10519 10520 10521 10522 10523 10524 10525 10526 # If no C compiler was specified, use CC. 10527 LTCC=${LTCC-"$CC"} 10528 10529 # If no C compiler flags were specified, use CFLAGS. 10530 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10531 10532 # Allow CC to be a program name with arguments. 10533 compiler=$CC 10534 10535 # Save the default compiler, since it gets overwritten when the other 10536 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10537 compiler_DEFAULT=$CC 10538 10539 # save warnings/boilerplate of simple test code 10540 ac_outfile=conftest.$ac_objext 10541 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10542 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10543 _lt_compiler_boilerplate=`cat conftest.err` 10544 $RM conftest* 10545 10546 ac_outfile=conftest.$ac_objext 10547 echo "$lt_simple_link_test_code" >conftest.$ac_ext 10548 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10549 _lt_linker_boilerplate=`cat conftest.err` 10550 $RM -r conftest* 10551 10552 10553 ## CAVEAT EMPTOR: 10554 ## There is no encapsulation within the following macros, do not change 10555 ## the running order or otherwise move them around unless you know exactly 10556 ## what you are doing... 10557 if test -n "$compiler"; then 10558 10559 lt_prog_compiler_no_builtin_flag= 10560 10561 if test "$GCC" = yes; then 10562 case $cc_basename in 10563 nvcc*) 10564 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10565 *) 10566 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10567 esac 10568 10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10570 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10571 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10572 $as_echo_n "(cached) " >&6 10573 else 10574 lt_cv_prog_compiler_rtti_exceptions=no 10575 ac_outfile=conftest.$ac_objext 10576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10577 lt_compiler_flag="-fno-rtti -fno-exceptions" 10578 # Insert the option either (1) after the last *FLAGS variable, or 10579 # (2) before a word containing "conftest.", or (3) at the end. 10580 # Note that $ac_compile itself does not contain backslashes and begins 10581 # with a dollar sign (not a hyphen), so the echo should work correctly. 10582 # The option is referenced via a variable to avoid confusing sed. 10583 lt_compile=`echo "$ac_compile" | $SED \ 10584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10586 -e 's:$: $lt_compiler_flag:'` 10587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10588 (eval "$lt_compile" 2>conftest.err) 10589 ac_status=$? 10590 cat conftest.err >&5 10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10592 if (exit $ac_status) && test -s "$ac_outfile"; then 10593 # The compiler can only warn and ignore the option if not recognized 10594 # So say no if there are warnings other than the usual output. 10595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10598 lt_cv_prog_compiler_rtti_exceptions=yes 10599 fi 10600 fi 10601 $RM conftest* 10602 10603 fi 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10605 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10606 10607 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10608 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10609 else 10610 : 10611 fi 10612 10613 fi 10614 10615 10616 10617 10618 10619 10620 lt_prog_compiler_wl= 10621 lt_prog_compiler_pic= 10622 lt_prog_compiler_static= 10623 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10625 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10626 10627 if test "$GCC" = yes; then 10628 lt_prog_compiler_wl='-Wl,' 10629 lt_prog_compiler_static='-static' 10630 10631 case $host_os in 10632 aix*) 10633 # All AIX code is PIC. 10634 if test "$host_cpu" = ia64; then 10635 # AIX 5 now supports IA64 processor 10636 lt_prog_compiler_static='-Bstatic' 10637 fi 10638 lt_prog_compiler_pic='-fPIC' 10639 ;; 10640 10641 amigaos*) 10642 case $host_cpu in 10643 powerpc) 10644 # see comment about AmigaOS4 .so support 10645 lt_prog_compiler_pic='-fPIC' 10646 ;; 10647 m68k) 10648 # FIXME: we need at least 68020 code to build shared libraries, but 10649 # adding the `-m68020' flag to GCC prevents building anything better, 10650 # like `-m68040'. 10651 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10652 ;; 10653 esac 10654 ;; 10655 10656 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10657 # PIC is the default for these OSes. 10658 ;; 10659 10660 mingw* | cygwin* | pw32* | os2* | cegcc*) 10661 # This hack is so that the source file can tell whether it is being 10662 # built for inclusion in a dll (and should export symbols for example). 10663 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10664 # (--disable-auto-import) libraries 10665 lt_prog_compiler_pic='-DDLL_EXPORT' 10666 ;; 10667 10668 darwin* | rhapsody*) 10669 # PIC is the default on this platform 10670 # Common symbols not allowed in MH_DYLIB files 10671 lt_prog_compiler_pic='-fno-common' 10672 ;; 10673 10674 haiku*) 10675 # PIC is the default for Haiku. 10676 # The "-static" flag exists, but is broken. 10677 lt_prog_compiler_static= 10678 ;; 10679 10680 hpux*) 10681 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10682 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10683 # sets the default TLS model and affects inlining. 10684 case $host_cpu in 10685 hppa*64*) 10686 # +Z the default 10687 ;; 10688 *) 10689 lt_prog_compiler_pic='-fPIC' 10690 ;; 10691 esac 10692 ;; 10693 10694 interix[3-9]*) 10695 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10696 # Instead, we relocate shared libraries at runtime. 10697 ;; 10698 10699 msdosdjgpp*) 10700 # Just because we use GCC doesn't mean we suddenly get shared libraries 10701 # on systems that don't support them. 10702 lt_prog_compiler_can_build_shared=no 10703 enable_shared=no 10704 ;; 10705 10706 *nto* | *qnx*) 10707 # QNX uses GNU C++, but need to define -shared option too, otherwise 10708 # it will coredump. 10709 lt_prog_compiler_pic='-fPIC -shared' 10710 ;; 10711 10712 sysv4*MP*) 10713 if test -d /usr/nec; then 10714 lt_prog_compiler_pic=-Kconform_pic 10715 fi 10716 ;; 10717 10718 *) 10719 lt_prog_compiler_pic='-fPIC' 10720 ;; 10721 esac 10722 10723 case $cc_basename in 10724 nvcc*) # Cuda Compiler Driver 2.2 10725 lt_prog_compiler_wl='-Xlinker ' 10726 lt_prog_compiler_pic='-Xcompiler -fPIC' 10727 ;; 10728 esac 10729 else 10730 # PORTME Check for flag to pass linker flags through the system compiler. 10731 case $host_os in 10732 aix*) 10733 lt_prog_compiler_wl='-Wl,' 10734 if test "$host_cpu" = ia64; then 10735 # AIX 5 now supports IA64 processor 10736 lt_prog_compiler_static='-Bstatic' 10737 else 10738 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10739 fi 10740 ;; 10741 10742 mingw* | cygwin* | pw32* | os2* | cegcc*) 10743 # This hack is so that the source file can tell whether it is being 10744 # built for inclusion in a dll (and should export symbols for example). 10745 lt_prog_compiler_pic='-DDLL_EXPORT' 10746 ;; 10747 10748 hpux9* | hpux10* | hpux11*) 10749 lt_prog_compiler_wl='-Wl,' 10750 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10751 # not for PA HP-UX. 10752 case $host_cpu in 10753 hppa*64*|ia64*) 10754 # +Z the default 10755 ;; 10756 *) 10757 lt_prog_compiler_pic='+Z' 10758 ;; 10759 esac 10760 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10761 lt_prog_compiler_static='${wl}-a ${wl}archive' 10762 ;; 10763 10764 irix5* | irix6* | nonstopux*) 10765 lt_prog_compiler_wl='-Wl,' 10766 # PIC (with -KPIC) is the default. 10767 lt_prog_compiler_static='-non_shared' 10768 ;; 10769 10770 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10771 case $cc_basename in 10772 # old Intel for x86_64 which still supported -KPIC. 10773 ecc*) 10774 lt_prog_compiler_wl='-Wl,' 10775 lt_prog_compiler_pic='-KPIC' 10776 lt_prog_compiler_static='-static' 10777 ;; 10778 # icc used to be incompatible with GCC. 10779 # ICC 10 doesn't accept -KPIC any more. 10780 icc* | ifort*) 10781 lt_prog_compiler_wl='-Wl,' 10782 lt_prog_compiler_pic='-fPIC' 10783 lt_prog_compiler_static='-static' 10784 ;; 10785 # Lahey Fortran 8.1. 10786 lf95*) 10787 lt_prog_compiler_wl='-Wl,' 10788 lt_prog_compiler_pic='--shared' 10789 lt_prog_compiler_static='--static' 10790 ;; 10791 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10792 # Portland Group compilers (*not* the Pentium gcc compiler, 10793 # which looks to be a dead project) 10794 lt_prog_compiler_wl='-Wl,' 10795 lt_prog_compiler_pic='-fpic' 10796 lt_prog_compiler_static='-Bstatic' 10797 ;; 10798 ccc*) 10799 lt_prog_compiler_wl='-Wl,' 10800 # All Alpha code is PIC. 10801 lt_prog_compiler_static='-non_shared' 10802 ;; 10803 xl* | bgxl* | bgf* | mpixl*) 10804 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10805 lt_prog_compiler_wl='-Wl,' 10806 lt_prog_compiler_pic='-qpic' 10807 lt_prog_compiler_static='-qstaticlink' 10808 ;; 10809 *) 10810 case `$CC -V 2>&1 | sed 5q` in 10811 *Sun\ F* | *Sun*Fortran*) 10812 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10813 lt_prog_compiler_pic='-KPIC' 10814 lt_prog_compiler_static='-Bstatic' 10815 lt_prog_compiler_wl='' 10816 ;; 10817 *Sun\ C*) 10818 # Sun C 5.9 10819 lt_prog_compiler_pic='-KPIC' 10820 lt_prog_compiler_static='-Bstatic' 10821 lt_prog_compiler_wl='-Wl,' 10822 ;; 10823 esac 10824 ;; 10825 esac 10826 ;; 10827 10828 newsos6) 10829 lt_prog_compiler_pic='-KPIC' 10830 lt_prog_compiler_static='-Bstatic' 10831 ;; 10832 10833 *nto* | *qnx*) 10834 # QNX uses GNU C++, but need to define -shared option too, otherwise 10835 # it will coredump. 10836 lt_prog_compiler_pic='-fPIC -shared' 10837 ;; 10838 10839 osf3* | osf4* | osf5*) 10840 lt_prog_compiler_wl='-Wl,' 10841 # All OSF/1 code is PIC. 10842 lt_prog_compiler_static='-non_shared' 10843 ;; 10844 10845 rdos*) 10846 lt_prog_compiler_static='-non_shared' 10847 ;; 10848 10849 solaris*) 10850 lt_prog_compiler_pic='-KPIC' 10851 lt_prog_compiler_static='-Bstatic' 10852 case $cc_basename in 10853 f77* | f90* | f95*) 10854 lt_prog_compiler_wl='-Qoption ld ';; 10855 *) 10856 lt_prog_compiler_wl='-Wl,';; 10857 esac 10858 ;; 10859 10860 sunos4*) 10861 lt_prog_compiler_wl='-Qoption ld ' 10862 lt_prog_compiler_pic='-PIC' 10863 lt_prog_compiler_static='-Bstatic' 10864 ;; 10865 10866 sysv4 | sysv4.2uw2* | sysv4.3*) 10867 lt_prog_compiler_wl='-Wl,' 10868 lt_prog_compiler_pic='-KPIC' 10869 lt_prog_compiler_static='-Bstatic' 10870 ;; 10871 10872 sysv4*MP*) 10873 if test -d /usr/nec ;then 10874 lt_prog_compiler_pic='-Kconform_pic' 10875 lt_prog_compiler_static='-Bstatic' 10876 fi 10877 ;; 10878 10879 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10880 lt_prog_compiler_wl='-Wl,' 10881 lt_prog_compiler_pic='-KPIC' 10882 lt_prog_compiler_static='-Bstatic' 10883 ;; 10884 10885 unicos*) 10886 lt_prog_compiler_wl='-Wl,' 10887 lt_prog_compiler_can_build_shared=no 10888 ;; 10889 10890 uts4*) 10891 lt_prog_compiler_pic='-pic' 10892 lt_prog_compiler_static='-Bstatic' 10893 ;; 10894 10895 *) 10896 lt_prog_compiler_can_build_shared=no 10897 ;; 10898 esac 10899 fi 10900 10901 case $host_os in 10902 # For platforms which do not support PIC, -DPIC is meaningless: 10903 *djgpp*) 10904 lt_prog_compiler_pic= 10905 ;; 10906 *) 10907 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10908 ;; 10909 esac 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 10911 $as_echo "$lt_prog_compiler_pic" >&6; } 10912 10913 10914 10915 10916 10917 10918 # 10919 # Check to make sure the PIC flag actually works. 10920 # 10921 if test -n "$lt_prog_compiler_pic"; then 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10923 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10924 if ${lt_cv_prog_compiler_pic_works+:} false; then : 10925 $as_echo_n "(cached) " >&6 10926 else 10927 lt_cv_prog_compiler_pic_works=no 10928 ac_outfile=conftest.$ac_objext 10929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10930 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10931 # Insert the option either (1) after the last *FLAGS variable, or 10932 # (2) before a word containing "conftest.", or (3) at the end. 10933 # Note that $ac_compile itself does not contain backslashes and begins 10934 # with a dollar sign (not a hyphen), so the echo should work correctly. 10935 # The option is referenced via a variable to avoid confusing sed. 10936 lt_compile=`echo "$ac_compile" | $SED \ 10937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10939 -e 's:$: $lt_compiler_flag:'` 10940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10941 (eval "$lt_compile" 2>conftest.err) 10942 ac_status=$? 10943 cat conftest.err >&5 10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10945 if (exit $ac_status) && test -s "$ac_outfile"; then 10946 # The compiler can only warn and ignore the option if not recognized 10947 # So say no if there are warnings other than the usual output. 10948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10950 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10951 lt_cv_prog_compiler_pic_works=yes 10952 fi 10953 fi 10954 $RM conftest* 10955 10956 fi 10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10958 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10959 10960 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10961 case $lt_prog_compiler_pic in 10962 "" | " "*) ;; 10963 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10964 esac 10965 else 10966 lt_prog_compiler_pic= 10967 lt_prog_compiler_can_build_shared=no 10968 fi 10969 10970 fi 10971 10972 10973 10974 10975 10976 10977 # 10978 # Check to make sure the static flag actually works. 10979 # 10980 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10982 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10983 if ${lt_cv_prog_compiler_static_works+:} false; then : 10984 $as_echo_n "(cached) " >&6 10985 else 10986 lt_cv_prog_compiler_static_works=no 10987 save_LDFLAGS="$LDFLAGS" 10988 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10989 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10990 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10991 # The linker can only warn and ignore the option if not recognized 10992 # So say no if there are warnings 10993 if test -s conftest.err; then 10994 # Append any errors to the config.log. 10995 cat conftest.err 1>&5 10996 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10998 if diff conftest.exp conftest.er2 >/dev/null; then 10999 lt_cv_prog_compiler_static_works=yes 11000 fi 11001 else 11002 lt_cv_prog_compiler_static_works=yes 11003 fi 11004 fi 11005 $RM -r conftest* 11006 LDFLAGS="$save_LDFLAGS" 11007 11008 fi 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11010 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11011 11012 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 11013 : 11014 else 11015 lt_prog_compiler_static= 11016 fi 11017 11018 11019 11020 11021 11022 11023 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11025 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11026 if ${lt_cv_prog_compiler_c_o+:} false; then : 11027 $as_echo_n "(cached) " >&6 11028 else 11029 lt_cv_prog_compiler_c_o=no 11030 $RM -r conftest 2>/dev/null 11031 mkdir conftest 11032 cd conftest 11033 mkdir out 11034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11035 11036 lt_compiler_flag="-o out/conftest2.$ac_objext" 11037 # Insert the option either (1) after the last *FLAGS variable, or 11038 # (2) before a word containing "conftest.", or (3) at the end. 11039 # Note that $ac_compile itself does not contain backslashes and begins 11040 # with a dollar sign (not a hyphen), so the echo should work correctly. 11041 lt_compile=`echo "$ac_compile" | $SED \ 11042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11044 -e 's:$: $lt_compiler_flag:'` 11045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11046 (eval "$lt_compile" 2>out/conftest.err) 11047 ac_status=$? 11048 cat out/conftest.err >&5 11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11050 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11051 then 11052 # The compiler can only warn and ignore the option if not recognized 11053 # So say no if there are warnings 11054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11057 lt_cv_prog_compiler_c_o=yes 11058 fi 11059 fi 11060 chmod u+w . 2>&5 11061 $RM conftest* 11062 # SGI C++ compiler will create directory out/ii_files/ for 11063 # template instantiation 11064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11065 $RM out/* && rmdir out 11066 cd .. 11067 $RM -r conftest 11068 $RM conftest* 11069 11070 fi 11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11072 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11073 11074 11075 11076 11077 11078 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11080 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11081 if ${lt_cv_prog_compiler_c_o+:} false; then : 11082 $as_echo_n "(cached) " >&6 11083 else 11084 lt_cv_prog_compiler_c_o=no 11085 $RM -r conftest 2>/dev/null 11086 mkdir conftest 11087 cd conftest 11088 mkdir out 11089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11090 11091 lt_compiler_flag="-o out/conftest2.$ac_objext" 11092 # Insert the option either (1) after the last *FLAGS variable, or 11093 # (2) before a word containing "conftest.", or (3) at the end. 11094 # Note that $ac_compile itself does not contain backslashes and begins 11095 # with a dollar sign (not a hyphen), so the echo should work correctly. 11096 lt_compile=`echo "$ac_compile" | $SED \ 11097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11099 -e 's:$: $lt_compiler_flag:'` 11100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11101 (eval "$lt_compile" 2>out/conftest.err) 11102 ac_status=$? 11103 cat out/conftest.err >&5 11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11105 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11106 then 11107 # The compiler can only warn and ignore the option if not recognized 11108 # So say no if there are warnings 11109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11112 lt_cv_prog_compiler_c_o=yes 11113 fi 11114 fi 11115 chmod u+w . 2>&5 11116 $RM conftest* 11117 # SGI C++ compiler will create directory out/ii_files/ for 11118 # template instantiation 11119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11120 $RM out/* && rmdir out 11121 cd .. 11122 $RM -r conftest 11123 $RM conftest* 11124 11125 fi 11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11127 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11128 11129 11130 11131 11132 hard_links="nottested" 11133 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 11134 # do not overwrite the value of need_locks provided by the user 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11136 $as_echo_n "checking if we can lock with hard links... " >&6; } 11137 hard_links=yes 11138 $RM conftest* 11139 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11140 touch conftest.a 11141 ln conftest.a conftest.b 2>&5 || hard_links=no 11142 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11144 $as_echo "$hard_links" >&6; } 11145 if test "$hard_links" = no; then 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11147 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11148 need_locks=warn 11149 fi 11150 else 11151 need_locks=no 11152 fi 11153 11154 11155 11156 11157 11158 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11160 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11161 11162 runpath_var= 11163 allow_undefined_flag= 11164 always_export_symbols=no 11165 archive_cmds= 11166 archive_expsym_cmds= 11167 compiler_needs_object=no 11168 enable_shared_with_static_runtimes=no 11169 export_dynamic_flag_spec= 11170 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11171 hardcode_automatic=no 11172 hardcode_direct=no 11173 hardcode_direct_absolute=no 11174 hardcode_libdir_flag_spec= 11175 hardcode_libdir_flag_spec_ld= 11176 hardcode_libdir_separator= 11177 hardcode_minus_L=no 11178 hardcode_shlibpath_var=unsupported 11179 inherit_rpath=no 11180 link_all_deplibs=unknown 11181 module_cmds= 11182 module_expsym_cmds= 11183 old_archive_from_new_cmds= 11184 old_archive_from_expsyms_cmds= 11185 thread_safe_flag_spec= 11186 whole_archive_flag_spec= 11187 # include_expsyms should be a list of space-separated symbols to be *always* 11188 # included in the symbol list 11189 include_expsyms= 11190 # exclude_expsyms can be an extended regexp of symbols to exclude 11191 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11192 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11193 # as well as any symbol that contains `d'. 11194 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11195 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11196 # platforms (ab)use it in PIC code, but their linkers get confused if 11197 # the symbol is explicitly referenced. Since portable code cannot 11198 # rely on this symbol name, it's probably fine to never include it in 11199 # preloaded symbol tables. 11200 # Exclude shared library initialization/finalization symbols. 11201 extract_expsyms_cmds= 11202 11203 case $host_os in 11204 cygwin* | mingw* | pw32* | cegcc*) 11205 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11206 # When not using gcc, we currently assume that we are using 11207 # Microsoft Visual C++. 11208 if test "$GCC" != yes; then 11209 with_gnu_ld=no 11210 fi 11211 ;; 11212 interix*) 11213 # we just hope/assume this is gcc and not c89 (= MSVC++) 11214 with_gnu_ld=yes 11215 ;; 11216 openbsd*) 11217 with_gnu_ld=no 11218 ;; 11219 esac 11220 11221 ld_shlibs=yes 11222 11223 # On some targets, GNU ld is compatible enough with the native linker 11224 # that we're better off using the native interface for both. 11225 lt_use_gnu_ld_interface=no 11226 if test "$with_gnu_ld" = yes; then 11227 case $host_os in 11228 aix*) 11229 # The AIX port of GNU ld has always aspired to compatibility 11230 # with the native linker. However, as the warning in the GNU ld 11231 # block says, versions before 2.19.5* couldn't really create working 11232 # shared libraries, regardless of the interface used. 11233 case `$LD -v 2>&1` in 11234 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11235 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11236 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11237 *) 11238 lt_use_gnu_ld_interface=yes 11239 ;; 11240 esac 11241 ;; 11242 *) 11243 lt_use_gnu_ld_interface=yes 11244 ;; 11245 esac 11246 fi 11247 11248 if test "$lt_use_gnu_ld_interface" = yes; then 11249 # If archive_cmds runs LD, not CC, wlarc should be empty 11250 wlarc='${wl}' 11251 11252 # Set some defaults for GNU ld with shared library support. These 11253 # are reset later if shared libraries are not supported. Putting them 11254 # here allows them to be overridden if necessary. 11255 runpath_var=LD_RUN_PATH 11256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11257 export_dynamic_flag_spec='${wl}--export-dynamic' 11258 # ancient GNU ld didn't support --whole-archive et. al. 11259 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11260 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11261 else 11262 whole_archive_flag_spec= 11263 fi 11264 supports_anon_versioning=no 11265 case `$LD -v 2>&1` in 11266 *GNU\ gold*) supports_anon_versioning=yes ;; 11267 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11268 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11269 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11270 *\ 2.11.*) ;; # other 2.11 versions 11271 *) supports_anon_versioning=yes ;; 11272 esac 11273 11274 # See if GNU ld supports shared libraries. 11275 case $host_os in 11276 aix[3-9]*) 11277 # On AIX/PPC, the GNU linker is very broken 11278 if test "$host_cpu" != ia64; then 11279 ld_shlibs=no 11280 cat <<_LT_EOF 1>&2 11281 11282 *** Warning: the GNU linker, at least up to release 2.19, is reported 11283 *** to be unable to reliably create shared libraries on AIX. 11284 *** Therefore, libtool is disabling shared libraries support. If you 11285 *** really care for shared libraries, you may want to install binutils 11286 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11287 *** You will then need to restart the configuration process. 11288 11289 _LT_EOF 11290 fi 11291 ;; 11292 11293 amigaos*) 11294 case $host_cpu in 11295 powerpc) 11296 # see comment about AmigaOS4 .so support 11297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11298 archive_expsym_cmds='' 11299 ;; 11300 m68k) 11301 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)' 11302 hardcode_libdir_flag_spec='-L$libdir' 11303 hardcode_minus_L=yes 11304 ;; 11305 esac 11306 ;; 11307 11308 beos*) 11309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11310 allow_undefined_flag=unsupported 11311 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 11312 # support --undefined. This deserves some investigation. FIXME 11313 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11314 else 11315 ld_shlibs=no 11316 fi 11317 ;; 11318 11319 cygwin* | mingw* | pw32* | cegcc*) 11320 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11321 # as there is no search path for DLLs. 11322 hardcode_libdir_flag_spec='-L$libdir' 11323 export_dynamic_flag_spec='${wl}--export-all-symbols' 11324 allow_undefined_flag=unsupported 11325 always_export_symbols=no 11326 enable_shared_with_static_runtimes=yes 11327 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11328 11329 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11331 # If the export-symbols file already is a .def file (1st line 11332 # is EXPORTS), use it as is; otherwise, prepend... 11333 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11334 cp $export_symbols $output_objdir/$soname.def; 11335 else 11336 echo EXPORTS > $output_objdir/$soname.def; 11337 cat $export_symbols >> $output_objdir/$soname.def; 11338 fi~ 11339 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11340 else 11341 ld_shlibs=no 11342 fi 11343 ;; 11344 11345 haiku*) 11346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11347 link_all_deplibs=yes 11348 ;; 11349 11350 interix[3-9]*) 11351 hardcode_direct=no 11352 hardcode_shlibpath_var=no 11353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11354 export_dynamic_flag_spec='${wl}-E' 11355 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11356 # Instead, shared libraries are loaded at an image base (0x10000000 by 11357 # default) and relocated if they conflict, which is a slow very memory 11358 # consuming and fragmenting process. To avoid this, we pick a random, 11359 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11360 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11361 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11362 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' 11363 ;; 11364 11365 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 11366 tmp_diet=no 11367 if test "$host_os" = linux-dietlibc; then 11368 case $cc_basename in 11369 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11370 esac 11371 fi 11372 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11373 && test "$tmp_diet" = no 11374 then 11375 tmp_addflag=' $pic_flag' 11376 tmp_sharedflag='-shared' 11377 case $cc_basename,$host_cpu in 11378 pgcc*) # Portland Group C compiler 11379 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' 11380 tmp_addflag=' $pic_flag' 11381 ;; 11382 pgf77* | pgf90* | pgf95* | pgfortran*) 11383 # Portland Group f77 and f90 compilers 11384 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' 11385 tmp_addflag=' $pic_flag -Mnomain' ;; 11386 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11387 tmp_addflag=' -i_dynamic' ;; 11388 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11389 tmp_addflag=' -i_dynamic -nofor_main' ;; 11390 ifc* | ifort*) # Intel Fortran compiler 11391 tmp_addflag=' -nofor_main' ;; 11392 lf95*) # Lahey Fortran 8.1 11393 whole_archive_flag_spec= 11394 tmp_sharedflag='--shared' ;; 11395 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11396 tmp_sharedflag='-qmkshrobj' 11397 tmp_addflag= ;; 11398 nvcc*) # Cuda Compiler Driver 2.2 11399 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' 11400 compiler_needs_object=yes 11401 ;; 11402 esac 11403 case `$CC -V 2>&1 | sed 5q` in 11404 *Sun\ C*) # Sun C 5.9 11405 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' 11406 compiler_needs_object=yes 11407 tmp_sharedflag='-G' ;; 11408 *Sun\ F*) # Sun Fortran 8.3 11409 tmp_sharedflag='-G' ;; 11410 esac 11411 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11412 11413 if test "x$supports_anon_versioning" = xyes; then 11414 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11415 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11416 echo "local: *; };" >> $output_objdir/$libname.ver~ 11417 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11418 fi 11419 11420 case $cc_basename in 11421 xlf* | bgf* | bgxlf* | mpixlf*) 11422 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11423 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11424 hardcode_libdir_flag_spec= 11425 hardcode_libdir_flag_spec_ld='-rpath $libdir' 11426 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 11427 if test "x$supports_anon_versioning" = xyes; then 11428 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11430 echo "local: *; };" >> $output_objdir/$libname.ver~ 11431 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11432 fi 11433 ;; 11434 esac 11435 else 11436 ld_shlibs=no 11437 fi 11438 ;; 11439 11440 netbsd*) 11441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11442 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11443 wlarc= 11444 else 11445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11447 fi 11448 ;; 11449 11450 solaris*) 11451 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11452 ld_shlibs=no 11453 cat <<_LT_EOF 1>&2 11454 11455 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 11456 *** create shared libraries on Solaris systems. Therefore, libtool 11457 *** is disabling shared libraries support. We urge you to upgrade GNU 11458 *** binutils to release 2.9.1 or newer. Another option is to modify 11459 *** your PATH or compiler configuration so that the native linker is 11460 *** used, and then restart. 11461 11462 _LT_EOF 11463 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11466 else 11467 ld_shlibs=no 11468 fi 11469 ;; 11470 11471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11472 case `$LD -v 2>&1` in 11473 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11474 ld_shlibs=no 11475 cat <<_LT_EOF 1>&2 11476 11477 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11478 *** reliably create shared libraries on SCO systems. Therefore, libtool 11479 *** is disabling shared libraries support. We urge you to upgrade GNU 11480 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11481 *** your PATH or compiler configuration so that the native linker is 11482 *** used, and then restart. 11483 11484 _LT_EOF 11485 ;; 11486 *) 11487 # For security reasons, it is highly recommended that you always 11488 # use absolute paths for naming shared libraries, and exclude the 11489 # DT_RUNPATH tag from executables and libraries. But doing so 11490 # requires that you compile everything twice, which is a pain. 11491 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11495 else 11496 ld_shlibs=no 11497 fi 11498 ;; 11499 esac 11500 ;; 11501 11502 sunos4*) 11503 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11504 wlarc= 11505 hardcode_direct=yes 11506 hardcode_shlibpath_var=no 11507 ;; 11508 11509 *) 11510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11512 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11513 else 11514 ld_shlibs=no 11515 fi 11516 ;; 11517 esac 11518 11519 if test "$ld_shlibs" = no; then 11520 runpath_var= 11521 hardcode_libdir_flag_spec= 11522 export_dynamic_flag_spec= 11523 whole_archive_flag_spec= 11524 fi 11525 else 11526 # PORTME fill in a description of your system's linker (not GNU ld) 11527 case $host_os in 11528 aix3*) 11529 allow_undefined_flag=unsupported 11530 always_export_symbols=yes 11531 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' 11532 # Note: this linker hardcodes the directories in LIBPATH if there 11533 # are no directories specified by -L. 11534 hardcode_minus_L=yes 11535 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11536 # Neither direct hardcoding nor static linking is supported with a 11537 # broken collect2. 11538 hardcode_direct=unsupported 11539 fi 11540 ;; 11541 11542 aix[4-9]*) 11543 if test "$host_cpu" = ia64; then 11544 # On IA64, the linker does run time linking by default, so we don't 11545 # have to do anything special. 11546 aix_use_runtimelinking=no 11547 exp_sym_flag='-Bexport' 11548 no_entry_flag="" 11549 else 11550 # If we're using GNU nm, then we don't want the "-C" option. 11551 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11552 # Also, AIX nm treats weak defined symbols like other global 11553 # defined symbols, whereas GNU nm marks them as "W". 11554 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11555 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11556 else 11557 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11558 fi 11559 aix_use_runtimelinking=no 11560 11561 # Test if we are trying to use run time linking or normal 11562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11563 # need to do runtime linking. 11564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11565 for ld_flag in $LDFLAGS; do 11566 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11567 aix_use_runtimelinking=yes 11568 break 11569 fi 11570 done 11571 ;; 11572 esac 11573 11574 exp_sym_flag='-bexport' 11575 no_entry_flag='-bnoentry' 11576 fi 11577 11578 # When large executables or shared objects are built, AIX ld can 11579 # have problems creating the table of contents. If linking a library 11580 # or program results in "error TOC overflow" add -mminimal-toc to 11581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11583 11584 archive_cmds='' 11585 hardcode_direct=yes 11586 hardcode_direct_absolute=yes 11587 hardcode_libdir_separator=':' 11588 link_all_deplibs=yes 11589 file_list_spec='${wl}-f,' 11590 11591 if test "$GCC" = yes; then 11592 case $host_os in aix4.[012]|aix4.[012].*) 11593 # We only want to do this on AIX 4.2 and lower, the check 11594 # below for broken collect2 doesn't work under 4.3+ 11595 collect2name=`${CC} -print-prog-name=collect2` 11596 if test -f "$collect2name" && 11597 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11598 then 11599 # We have reworked collect2 11600 : 11601 else 11602 # We have old collect2 11603 hardcode_direct=unsupported 11604 # It fails to find uninstalled libraries when the uninstalled 11605 # path is not listed in the libpath. Setting hardcode_minus_L 11606 # to unsupported forces relinking 11607 hardcode_minus_L=yes 11608 hardcode_libdir_flag_spec='-L$libdir' 11609 hardcode_libdir_separator= 11610 fi 11611 ;; 11612 esac 11613 shared_flag='-shared' 11614 if test "$aix_use_runtimelinking" = yes; then 11615 shared_flag="$shared_flag "'${wl}-G' 11616 fi 11617 else 11618 # not using gcc 11619 if test "$host_cpu" = ia64; then 11620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11621 # chokes on -Wl,-G. The following line is correct: 11622 shared_flag='-G' 11623 else 11624 if test "$aix_use_runtimelinking" = yes; then 11625 shared_flag='${wl}-G' 11626 else 11627 shared_flag='${wl}-bM:SRE' 11628 fi 11629 fi 11630 fi 11631 11632 export_dynamic_flag_spec='${wl}-bexpall' 11633 # It seems that -bexpall does not export symbols beginning with 11634 # underscore (_), so it is better to generate a list of symbols to export. 11635 always_export_symbols=yes 11636 if test "$aix_use_runtimelinking" = yes; then 11637 # Warning - without using the other runtime loading flags (-brtl), 11638 # -berok will link without error, but may produce a broken library. 11639 allow_undefined_flag='-berok' 11640 # Determine the default libpath from the value encoded in an 11641 # empty executable. 11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11643 /* end confdefs.h. */ 11644 11645 int 11646 main () 11647 { 11648 11649 ; 11650 return 0; 11651 } 11652 _ACEOF 11653 if ac_fn_c_try_link "$LINENO"; then : 11654 11655 lt_aix_libpath_sed=' 11656 /Import File Strings/,/^$/ { 11657 /^0/ { 11658 s/^0 *\(.*\)$/\1/ 11659 p 11660 } 11661 }' 11662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11663 # Check for a 64-bit object if we didn't find anything. 11664 if test -z "$aix_libpath"; then 11665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11666 fi 11667 fi 11668 rm -f core conftest.err conftest.$ac_objext \ 11669 conftest$ac_exeext conftest.$ac_ext 11670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11671 11672 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11673 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11674 else 11675 if test "$host_cpu" = ia64; then 11676 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11677 allow_undefined_flag="-z nodefs" 11678 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" 11679 else 11680 # Determine the default libpath from the value encoded in an 11681 # empty executable. 11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11683 /* end confdefs.h. */ 11684 11685 int 11686 main () 11687 { 11688 11689 ; 11690 return 0; 11691 } 11692 _ACEOF 11693 if ac_fn_c_try_link "$LINENO"; then : 11694 11695 lt_aix_libpath_sed=' 11696 /Import File Strings/,/^$/ { 11697 /^0/ { 11698 s/^0 *\(.*\)$/\1/ 11699 p 11700 } 11701 }' 11702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11703 # Check for a 64-bit object if we didn't find anything. 11704 if test -z "$aix_libpath"; then 11705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11706 fi 11707 fi 11708 rm -f core conftest.err conftest.$ac_objext \ 11709 conftest$ac_exeext conftest.$ac_ext 11710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11711 11712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11713 # Warning - without using the other run time loading flags, 11714 # -berok will link without error, but may produce a broken library. 11715 no_undefined_flag=' ${wl}-bernotok' 11716 allow_undefined_flag=' ${wl}-berok' 11717 if test "$with_gnu_ld" = yes; then 11718 # We only use this code for GNU lds that support --whole-archive. 11719 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11720 else 11721 # Exported symbols can be pulled into shared objects from archives 11722 whole_archive_flag_spec='$convenience' 11723 fi 11724 archive_cmds_need_lc=yes 11725 # This is similar to how AIX traditionally builds its shared libraries. 11726 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11727 fi 11728 fi 11729 ;; 11730 11731 amigaos*) 11732 case $host_cpu in 11733 powerpc) 11734 # see comment about AmigaOS4 .so support 11735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11736 archive_expsym_cmds='' 11737 ;; 11738 m68k) 11739 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)' 11740 hardcode_libdir_flag_spec='-L$libdir' 11741 hardcode_minus_L=yes 11742 ;; 11743 esac 11744 ;; 11745 11746 bsdi[45]*) 11747 export_dynamic_flag_spec=-rdynamic 11748 ;; 11749 11750 cygwin* | mingw* | pw32* | cegcc*) 11751 # When not using gcc, we currently assume that we are using 11752 # Microsoft Visual C++. 11753 # hardcode_libdir_flag_spec is actually meaningless, as there is 11754 # no search path for DLLs. 11755 hardcode_libdir_flag_spec=' ' 11756 allow_undefined_flag=unsupported 11757 # Tell ltmain to make .lib files, not .a files. 11758 libext=lib 11759 # Tell ltmain to make .dll files, not .so files. 11760 shrext_cmds=".dll" 11761 # FIXME: Setting linknames here is a bad hack. 11762 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11763 # The linker will automatically build a .lib file if we build a DLL. 11764 old_archive_from_new_cmds='true' 11765 # FIXME: Should let the user specify the lib program. 11766 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11767 fix_srcfile_path='`cygpath -w "$srcfile"`' 11768 enable_shared_with_static_runtimes=yes 11769 ;; 11770 11771 darwin* | rhapsody*) 11772 11773 11774 archive_cmds_need_lc=no 11775 hardcode_direct=no 11776 hardcode_automatic=yes 11777 hardcode_shlibpath_var=unsupported 11778 if test "$lt_cv_ld_force_load" = "yes"; then 11779 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\"`' 11780 else 11781 whole_archive_flag_spec='' 11782 fi 11783 link_all_deplibs=yes 11784 allow_undefined_flag="$_lt_dar_allow_undefined" 11785 case $cc_basename in 11786 ifort*) _lt_dar_can_shared=yes ;; 11787 *) _lt_dar_can_shared=$GCC ;; 11788 esac 11789 if test "$_lt_dar_can_shared" = "yes"; then 11790 output_verbose_link_cmd=func_echo_all 11791 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11792 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11793 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}" 11794 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}" 11795 11796 else 11797 ld_shlibs=no 11798 fi 11799 11800 ;; 11801 11802 dgux*) 11803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11804 hardcode_libdir_flag_spec='-L$libdir' 11805 hardcode_shlibpath_var=no 11806 ;; 11807 11808 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11809 # support. Future versions do this automatically, but an explicit c++rt0.o 11810 # does not break anything, and helps significantly (at the cost of a little 11811 # extra space). 11812 freebsd2.2*) 11813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11814 hardcode_libdir_flag_spec='-R$libdir' 11815 hardcode_direct=yes 11816 hardcode_shlibpath_var=no 11817 ;; 11818 11819 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11820 freebsd2.*) 11821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11822 hardcode_direct=yes 11823 hardcode_minus_L=yes 11824 hardcode_shlibpath_var=no 11825 ;; 11826 11827 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11828 freebsd* | dragonfly*) 11829 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 11830 hardcode_libdir_flag_spec='-R$libdir' 11831 hardcode_direct=yes 11832 hardcode_shlibpath_var=no 11833 ;; 11834 11835 hpux9*) 11836 if test "$GCC" = yes; then 11837 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11838 else 11839 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11840 fi 11841 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11842 hardcode_libdir_separator=: 11843 hardcode_direct=yes 11844 11845 # hardcode_minus_L: Not really in the search PATH, 11846 # but as the default location of the library. 11847 hardcode_minus_L=yes 11848 export_dynamic_flag_spec='${wl}-E' 11849 ;; 11850 11851 hpux10*) 11852 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11853 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11854 else 11855 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11856 fi 11857 if test "$with_gnu_ld" = no; then 11858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11859 hardcode_libdir_flag_spec_ld='+b $libdir' 11860 hardcode_libdir_separator=: 11861 hardcode_direct=yes 11862 hardcode_direct_absolute=yes 11863 export_dynamic_flag_spec='${wl}-E' 11864 # hardcode_minus_L: Not really in the search PATH, 11865 # but as the default location of the library. 11866 hardcode_minus_L=yes 11867 fi 11868 ;; 11869 11870 hpux11*) 11871 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11872 case $host_cpu in 11873 hppa*64*) 11874 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11875 ;; 11876 ia64*) 11877 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11878 ;; 11879 *) 11880 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11881 ;; 11882 esac 11883 else 11884 case $host_cpu in 11885 hppa*64*) 11886 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11887 ;; 11888 ia64*) 11889 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11890 ;; 11891 *) 11892 11893 # Older versions of the 11.00 compiler do not understand -b yet 11894 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11896 $as_echo_n "checking if $CC understands -b... " >&6; } 11897 if ${lt_cv_prog_compiler__b+:} false; then : 11898 $as_echo_n "(cached) " >&6 11899 else 11900 lt_cv_prog_compiler__b=no 11901 save_LDFLAGS="$LDFLAGS" 11902 LDFLAGS="$LDFLAGS -b" 11903 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11904 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11905 # The linker can only warn and ignore the option if not recognized 11906 # So say no if there are warnings 11907 if test -s conftest.err; then 11908 # Append any errors to the config.log. 11909 cat conftest.err 1>&5 11910 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11912 if diff conftest.exp conftest.er2 >/dev/null; then 11913 lt_cv_prog_compiler__b=yes 11914 fi 11915 else 11916 lt_cv_prog_compiler__b=yes 11917 fi 11918 fi 11919 $RM -r conftest* 11920 LDFLAGS="$save_LDFLAGS" 11921 11922 fi 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11924 $as_echo "$lt_cv_prog_compiler__b" >&6; } 11925 11926 if test x"$lt_cv_prog_compiler__b" = xyes; then 11927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11928 else 11929 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11930 fi 11931 11932 ;; 11933 esac 11934 fi 11935 if test "$with_gnu_ld" = no; then 11936 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11937 hardcode_libdir_separator=: 11938 11939 case $host_cpu in 11940 hppa*64*|ia64*) 11941 hardcode_direct=no 11942 hardcode_shlibpath_var=no 11943 ;; 11944 *) 11945 hardcode_direct=yes 11946 hardcode_direct_absolute=yes 11947 export_dynamic_flag_spec='${wl}-E' 11948 11949 # hardcode_minus_L: Not really in the search PATH, 11950 # but as the default location of the library. 11951 hardcode_minus_L=yes 11952 ;; 11953 esac 11954 fi 11955 ;; 11956 11957 irix5* | irix6* | nonstopux*) 11958 if test "$GCC" = yes; then 11959 archive_cmds='$CC -shared $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' 11960 # Try to use the -exported_symbol ld option, if it does not 11961 # work, assume that -exports_file does not work either and 11962 # implicitly export all symbols. 11963 save_LDFLAGS="$LDFLAGS" 11964 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11966 /* end confdefs.h. */ 11967 int foo(void) {} 11968 _ACEOF 11969 if ac_fn_c_try_link "$LINENO"; then : 11970 archive_expsym_cmds='$CC -shared $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' 11971 11972 fi 11973 rm -f core conftest.err conftest.$ac_objext \ 11974 conftest$ac_exeext conftest.$ac_ext 11975 LDFLAGS="$save_LDFLAGS" 11976 else 11977 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' 11978 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' 11979 fi 11980 archive_cmds_need_lc='no' 11981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11982 hardcode_libdir_separator=: 11983 inherit_rpath=yes 11984 link_all_deplibs=yes 11985 ;; 11986 11987 netbsd*) 11988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11990 else 11991 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11992 fi 11993 hardcode_libdir_flag_spec='-R$libdir' 11994 hardcode_direct=yes 11995 hardcode_shlibpath_var=no 11996 ;; 11997 11998 newsos6) 11999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12000 hardcode_direct=yes 12001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12002 hardcode_libdir_separator=: 12003 hardcode_shlibpath_var=no 12004 ;; 12005 12006 *nto* | *qnx*) 12007 ;; 12008 12009 openbsd*) 12010 if test -f /usr/libexec/ld.so; then 12011 hardcode_direct=yes 12012 hardcode_shlibpath_var=no 12013 hardcode_direct_absolute=yes 12014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12016 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12018 export_dynamic_flag_spec='${wl}-E' 12019 else 12020 case $host_os in 12021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12023 hardcode_libdir_flag_spec='-R$libdir' 12024 ;; 12025 *) 12026 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12027 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12028 ;; 12029 esac 12030 fi 12031 else 12032 ld_shlibs=no 12033 fi 12034 ;; 12035 12036 os2*) 12037 hardcode_libdir_flag_spec='-L$libdir' 12038 hardcode_minus_L=yes 12039 allow_undefined_flag=unsupported 12040 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 12041 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12042 ;; 12043 12044 osf3*) 12045 if test "$GCC" = yes; then 12046 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12047 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' 12048 else 12049 allow_undefined_flag=' -expect_unresolved \*' 12050 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' 12051 fi 12052 archive_cmds_need_lc='no' 12053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12054 hardcode_libdir_separator=: 12055 ;; 12056 12057 osf4* | osf5*) # as osf3* with the addition of -msym flag 12058 if test "$GCC" = yes; then 12059 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12060 archive_cmds='$CC -shared${allow_undefined_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' 12061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12062 else 12063 allow_undefined_flag=' -expect_unresolved \*' 12064 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' 12065 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~ 12066 $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' 12067 12068 # Both c and cxx compiler support -rpath directly 12069 hardcode_libdir_flag_spec='-rpath $libdir' 12070 fi 12071 archive_cmds_need_lc='no' 12072 hardcode_libdir_separator=: 12073 ;; 12074 12075 solaris*) 12076 no_undefined_flag=' -z defs' 12077 if test "$GCC" = yes; then 12078 wlarc='${wl}' 12079 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12081 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12082 else 12083 case `$CC -V 2>&1` in 12084 *"Compilers 5.0"*) 12085 wlarc='' 12086 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12087 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12088 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12089 ;; 12090 *) 12091 wlarc='${wl}' 12092 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12094 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12095 ;; 12096 esac 12097 fi 12098 hardcode_libdir_flag_spec='-R$libdir' 12099 hardcode_shlibpath_var=no 12100 case $host_os in 12101 solaris2.[0-5] | solaris2.[0-5].*) ;; 12102 *) 12103 # The compiler driver will combine and reorder linker options, 12104 # but understands `-z linker_flag'. GCC discards it without `$wl', 12105 # but is careful enough not to reorder. 12106 # Supported since Solaris 2.6 (maybe 2.5.1?) 12107 if test "$GCC" = yes; then 12108 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12109 else 12110 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12111 fi 12112 ;; 12113 esac 12114 link_all_deplibs=yes 12115 ;; 12116 12117 sunos4*) 12118 if test "x$host_vendor" = xsequent; then 12119 # Use $CC to link under sequent, because it throws in some extra .o 12120 # files that make .init and .fini sections work. 12121 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12122 else 12123 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12124 fi 12125 hardcode_libdir_flag_spec='-L$libdir' 12126 hardcode_direct=yes 12127 hardcode_minus_L=yes 12128 hardcode_shlibpath_var=no 12129 ;; 12130 12131 sysv4) 12132 case $host_vendor in 12133 sni) 12134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12135 hardcode_direct=yes # is this really true??? 12136 ;; 12137 siemens) 12138 ## LD is ld it makes a PLAMLIB 12139 ## CC just makes a GrossModule. 12140 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12141 reload_cmds='$CC -r -o $output$reload_objs' 12142 hardcode_direct=no 12143 ;; 12144 motorola) 12145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12146 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12147 ;; 12148 esac 12149 runpath_var='LD_RUN_PATH' 12150 hardcode_shlibpath_var=no 12151 ;; 12152 12153 sysv4.3*) 12154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12155 hardcode_shlibpath_var=no 12156 export_dynamic_flag_spec='-Bexport' 12157 ;; 12158 12159 sysv4*MP*) 12160 if test -d /usr/nec; then 12161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12162 hardcode_shlibpath_var=no 12163 runpath_var=LD_RUN_PATH 12164 hardcode_runpath_var=yes 12165 ld_shlibs=yes 12166 fi 12167 ;; 12168 12169 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12170 no_undefined_flag='${wl}-z,text' 12171 archive_cmds_need_lc=no 12172 hardcode_shlibpath_var=no 12173 runpath_var='LD_RUN_PATH' 12174 12175 if test "$GCC" = yes; then 12176 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12177 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12178 else 12179 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12180 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12181 fi 12182 ;; 12183 12184 sysv5* | sco3.2v5* | sco5v6*) 12185 # Note: We can NOT use -z defs as we might desire, because we do not 12186 # link with -lc, and that would cause any symbols used from libc to 12187 # always be unresolved, which means just about no library would 12188 # ever link correctly. If we're not using GNU ld we use -z text 12189 # though, which does catch some bad symbols but isn't as heavy-handed 12190 # as -z defs. 12191 no_undefined_flag='${wl}-z,text' 12192 allow_undefined_flag='${wl}-z,nodefs' 12193 archive_cmds_need_lc=no 12194 hardcode_shlibpath_var=no 12195 hardcode_libdir_flag_spec='${wl}-R,$libdir' 12196 hardcode_libdir_separator=':' 12197 link_all_deplibs=yes 12198 export_dynamic_flag_spec='${wl}-Bexport' 12199 runpath_var='LD_RUN_PATH' 12200 12201 if test "$GCC" = yes; then 12202 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12203 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12204 else 12205 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12206 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12207 fi 12208 ;; 12209 12210 uts4*) 12211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12212 hardcode_libdir_flag_spec='-L$libdir' 12213 hardcode_shlibpath_var=no 12214 ;; 12215 12216 *) 12217 ld_shlibs=no 12218 ;; 12219 esac 12220 12221 if test x$host_vendor = xsni; then 12222 case $host in 12223 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12224 export_dynamic_flag_spec='${wl}-Blargedynsym' 12225 ;; 12226 esac 12227 fi 12228 fi 12229 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12231 $as_echo "$ld_shlibs" >&6; } 12232 test "$ld_shlibs" = no && can_build_shared=no 12233 12234 with_gnu_ld=$with_gnu_ld 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 # 12251 # Do we need to explicitly link libc? 12252 # 12253 case "x$archive_cmds_need_lc" in 12254 x|xyes) 12255 # Assume -lc should be added 12256 archive_cmds_need_lc=yes 12257 12258 if test "$enable_shared" = yes && test "$GCC" = yes; then 12259 case $archive_cmds in 12260 *'~'*) 12261 # FIXME: we may have to deal with multi-command sequences. 12262 ;; 12263 '$CC '*) 12264 # Test whether the compiler implicitly links with -lc since on some 12265 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12266 # to ld, don't add -lc before -lgcc. 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12268 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12269 if ${lt_cv_archive_cmds_need_lc+:} false; then : 12270 $as_echo_n "(cached) " >&6 12271 else 12272 $RM conftest* 12273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12274 12275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12276 (eval $ac_compile) 2>&5 12277 ac_status=$? 12278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12279 test $ac_status = 0; } 2>conftest.err; then 12280 soname=conftest 12281 lib=conftest 12282 libobjs=conftest.$ac_objext 12283 deplibs= 12284 wl=$lt_prog_compiler_wl 12285 pic_flag=$lt_prog_compiler_pic 12286 compiler_flags=-v 12287 linker_flags=-v 12288 verstring= 12289 output_objdir=. 12290 libname=conftest 12291 lt_save_allow_undefined_flag=$allow_undefined_flag 12292 allow_undefined_flag= 12293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12294 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12295 ac_status=$? 12296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12297 test $ac_status = 0; } 12298 then 12299 lt_cv_archive_cmds_need_lc=no 12300 else 12301 lt_cv_archive_cmds_need_lc=yes 12302 fi 12303 allow_undefined_flag=$lt_save_allow_undefined_flag 12304 else 12305 cat conftest.err 1>&5 12306 fi 12307 $RM conftest* 12308 12309 fi 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12311 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12312 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12313 ;; 12314 esac 12315 fi 12316 ;; 12317 esac 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12476 $as_echo_n "checking dynamic linker characteristics... " >&6; } 12477 12478 if test "$GCC" = yes; then 12479 case $host_os in 12480 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12481 *) lt_awk_arg="/^libraries:/" ;; 12482 esac 12483 case $host_os in 12484 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12485 *) lt_sed_strip_eq="s,=/,/,g" ;; 12486 esac 12487 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12488 case $lt_search_path_spec in 12489 *\;*) 12490 # if the path contains ";" then we assume it to be the separator 12491 # otherwise default to the standard path separator (i.e. ":") - it is 12492 # assumed that no part of a normal pathname contains ";" but that should 12493 # okay in the real world where ";" in dirpaths is itself problematic. 12494 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12495 ;; 12496 *) 12497 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12498 ;; 12499 esac 12500 # Ok, now we have the path, separated by spaces, we can step through it 12501 # and add multilib dir if necessary. 12502 lt_tmp_lt_search_path_spec= 12503 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12504 for lt_sys_path in $lt_search_path_spec; do 12505 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12506 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12507 else 12508 test -d "$lt_sys_path" && \ 12509 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12510 fi 12511 done 12512 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12513 BEGIN {RS=" "; FS="/|\n";} { 12514 lt_foo=""; 12515 lt_count=0; 12516 for (lt_i = NF; lt_i > 0; lt_i--) { 12517 if ($lt_i != "" && $lt_i != ".") { 12518 if ($lt_i == "..") { 12519 lt_count++; 12520 } else { 12521 if (lt_count == 0) { 12522 lt_foo="/" $lt_i lt_foo; 12523 } else { 12524 lt_count--; 12525 } 12526 } 12527 } 12528 } 12529 if (lt_foo != "") { lt_freq[lt_foo]++; } 12530 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12531 }'` 12532 # AWK program above erroneously prepends '/' to C:/dos/paths 12533 # for these hosts. 12534 case $host_os in 12535 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12536 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12537 esac 12538 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12539 else 12540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12541 fi 12542 library_names_spec= 12543 libname_spec='lib$name' 12544 soname_spec= 12545 shrext_cmds=".so" 12546 postinstall_cmds= 12547 postuninstall_cmds= 12548 finish_cmds= 12549 finish_eval= 12550 shlibpath_var= 12551 shlibpath_overrides_runpath=unknown 12552 version_type=none 12553 dynamic_linker="$host_os ld.so" 12554 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12555 need_lib_prefix=unknown 12556 hardcode_into_libs=no 12557 12558 # when you set need_version to no, make sure it does not cause -set_version 12559 # flags to be left without arguments 12560 need_version=unknown 12561 12562 case $host_os in 12563 aix3*) 12564 version_type=linux 12565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12566 shlibpath_var=LIBPATH 12567 12568 # AIX 3 has no versioning support, so we append a major version to the name. 12569 soname_spec='${libname}${release}${shared_ext}$major' 12570 ;; 12571 12572 aix[4-9]*) 12573 version_type=linux 12574 need_lib_prefix=no 12575 need_version=no 12576 hardcode_into_libs=yes 12577 if test "$host_cpu" = ia64; then 12578 # AIX 5 supports IA64 12579 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12580 shlibpath_var=LD_LIBRARY_PATH 12581 else 12582 # With GCC up to 2.95.x, collect2 would create an import file 12583 # for dependence libraries. The import file would start with 12584 # the line `#! .'. This would cause the generated library to 12585 # depend on `.', always an invalid library. This was fixed in 12586 # development snapshots of GCC prior to 3.0. 12587 case $host_os in 12588 aix4 | aix4.[01] | aix4.[01].*) 12589 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12590 echo ' yes ' 12591 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12592 : 12593 else 12594 can_build_shared=no 12595 fi 12596 ;; 12597 esac 12598 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12599 # soname into executable. Probably we can add versioning support to 12600 # collect2, so additional links can be useful in future. 12601 if test "$aix_use_runtimelinking" = yes; then 12602 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12603 # instead of lib<name>.a to let people know that these are not 12604 # typical AIX shared libraries. 12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12606 else 12607 # We preserve .a as extension for shared libraries through AIX4.2 12608 # and later when we are not doing run time linking. 12609 library_names_spec='${libname}${release}.a $libname.a' 12610 soname_spec='${libname}${release}${shared_ext}$major' 12611 fi 12612 shlibpath_var=LIBPATH 12613 fi 12614 ;; 12615 12616 amigaos*) 12617 case $host_cpu in 12618 powerpc) 12619 # Since July 2007 AmigaOS4 officially supports .so libraries. 12620 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12622 ;; 12623 m68k) 12624 library_names_spec='$libname.ixlibrary $libname.a' 12625 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12626 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12627 ;; 12628 esac 12629 ;; 12630 12631 beos*) 12632 library_names_spec='${libname}${shared_ext}' 12633 dynamic_linker="$host_os ld.so" 12634 shlibpath_var=LIBRARY_PATH 12635 ;; 12636 12637 bsdi[45]*) 12638 version_type=linux 12639 need_version=no 12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12641 soname_spec='${libname}${release}${shared_ext}$major' 12642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12643 shlibpath_var=LD_LIBRARY_PATH 12644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12646 # the default ld.so.conf also contains /usr/contrib/lib and 12647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12648 # libtool to hard-code these into programs 12649 ;; 12650 12651 cygwin* | mingw* | pw32* | cegcc*) 12652 version_type=windows 12653 shrext_cmds=".dll" 12654 need_version=no 12655 need_lib_prefix=no 12656 12657 case $GCC,$host_os in 12658 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 12659 library_names_spec='$libname.dll.a' 12660 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12661 postinstall_cmds='base_file=`basename \${file}`~ 12662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12663 dldir=$destdir/`dirname \$dlpath`~ 12664 test -d \$dldir || mkdir -p \$dldir~ 12665 $install_prog $dir/$dlname \$dldir/$dlname~ 12666 chmod a+x \$dldir/$dlname~ 12667 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12668 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12669 fi' 12670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12671 dlpath=$dir/\$dldll~ 12672 $RM \$dlpath' 12673 shlibpath_overrides_runpath=yes 12674 12675 case $host_os in 12676 cygwin*) 12677 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12678 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12679 12680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12681 ;; 12682 mingw* | cegcc*) 12683 # MinGW DLLs use traditional 'lib' prefix 12684 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12685 ;; 12686 pw32*) 12687 # pw32 DLLs use 'pw' prefix rather than 'lib' 12688 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12689 ;; 12690 esac 12691 ;; 12692 12693 *) 12694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12695 ;; 12696 esac 12697 dynamic_linker='Win32 ld.exe' 12698 # FIXME: first we should search . and the directory the executable is in 12699 shlibpath_var=PATH 12700 ;; 12701 12702 darwin* | rhapsody*) 12703 dynamic_linker="$host_os dyld" 12704 version_type=darwin 12705 need_lib_prefix=no 12706 need_version=no 12707 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12708 soname_spec='${libname}${release}${major}$shared_ext' 12709 shlibpath_overrides_runpath=yes 12710 shlibpath_var=DYLD_LIBRARY_PATH 12711 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12712 12713 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12714 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12715 ;; 12716 12717 dgux*) 12718 version_type=linux 12719 need_lib_prefix=no 12720 need_version=no 12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12722 soname_spec='${libname}${release}${shared_ext}$major' 12723 shlibpath_var=LD_LIBRARY_PATH 12724 ;; 12725 12726 freebsd* | dragonfly*) 12727 # DragonFly does not have aout. When/if they implement a new 12728 # versioning mechanism, adjust this. 12729 if test -x /usr/bin/objformat; then 12730 objformat=`/usr/bin/objformat` 12731 else 12732 case $host_os in 12733 freebsd[23].*) objformat=aout ;; 12734 *) objformat=elf ;; 12735 esac 12736 fi 12737 version_type=freebsd-$objformat 12738 case $version_type in 12739 freebsd-elf*) 12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12741 need_version=no 12742 need_lib_prefix=no 12743 ;; 12744 freebsd-*) 12745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12746 need_version=yes 12747 ;; 12748 esac 12749 shlibpath_var=LD_LIBRARY_PATH 12750 case $host_os in 12751 freebsd2.*) 12752 shlibpath_overrides_runpath=yes 12753 ;; 12754 freebsd3.[01]* | freebsdelf3.[01]*) 12755 shlibpath_overrides_runpath=yes 12756 hardcode_into_libs=yes 12757 ;; 12758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12760 shlibpath_overrides_runpath=no 12761 hardcode_into_libs=yes 12762 ;; 12763 *) # from 4.6 on, and DragonFly 12764 shlibpath_overrides_runpath=yes 12765 hardcode_into_libs=yes 12766 ;; 12767 esac 12768 ;; 12769 12770 haiku*) 12771 version_type=linux 12772 need_lib_prefix=no 12773 need_version=no 12774 dynamic_linker="$host_os runtime_loader" 12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12776 soname_spec='${libname}${release}${shared_ext}$major' 12777 shlibpath_var=LIBRARY_PATH 12778 shlibpath_overrides_runpath=yes 12779 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12780 hardcode_into_libs=yes 12781 ;; 12782 12783 hpux9* | hpux10* | hpux11*) 12784 # Give a soname corresponding to the major version so that dld.sl refuses to 12785 # link against other versions. 12786 version_type=sunos 12787 need_lib_prefix=no 12788 need_version=no 12789 case $host_cpu in 12790 ia64*) 12791 shrext_cmds='.so' 12792 hardcode_into_libs=yes 12793 dynamic_linker="$host_os dld.so" 12794 shlibpath_var=LD_LIBRARY_PATH 12795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12797 soname_spec='${libname}${release}${shared_ext}$major' 12798 if test "X$HPUX_IA64_MODE" = X32; then 12799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12800 else 12801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12802 fi 12803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12804 ;; 12805 hppa*64*) 12806 shrext_cmds='.sl' 12807 hardcode_into_libs=yes 12808 dynamic_linker="$host_os dld.sl" 12809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12812 soname_spec='${libname}${release}${shared_ext}$major' 12813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12815 ;; 12816 *) 12817 shrext_cmds='.sl' 12818 dynamic_linker="$host_os dld.sl" 12819 shlibpath_var=SHLIB_PATH 12820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12822 soname_spec='${libname}${release}${shared_ext}$major' 12823 ;; 12824 esac 12825 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12826 postinstall_cmds='chmod 555 $lib' 12827 # or fails outright, so override atomically: 12828 install_override_mode=555 12829 ;; 12830 12831 interix[3-9]*) 12832 version_type=linux 12833 need_lib_prefix=no 12834 need_version=no 12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12836 soname_spec='${libname}${release}${shared_ext}$major' 12837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12838 shlibpath_var=LD_LIBRARY_PATH 12839 shlibpath_overrides_runpath=no 12840 hardcode_into_libs=yes 12841 ;; 12842 12843 irix5* | irix6* | nonstopux*) 12844 case $host_os in 12845 nonstopux*) version_type=nonstopux ;; 12846 *) 12847 if test "$lt_cv_prog_gnu_ld" = yes; then 12848 version_type=linux 12849 else 12850 version_type=irix 12851 fi ;; 12852 esac 12853 need_lib_prefix=no 12854 need_version=no 12855 soname_spec='${libname}${release}${shared_ext}$major' 12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12857 case $host_os in 12858 irix5* | nonstopux*) 12859 libsuff= shlibsuff= 12860 ;; 12861 *) 12862 case $LD in # libtool.m4 will add one of these switches to LD 12863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12864 libsuff= shlibsuff= libmagic=32-bit;; 12865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12866 libsuff=32 shlibsuff=N32 libmagic=N32;; 12867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12868 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12869 *) libsuff= shlibsuff= libmagic=never-match;; 12870 esac 12871 ;; 12872 esac 12873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12874 shlibpath_overrides_runpath=no 12875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12877 hardcode_into_libs=yes 12878 ;; 12879 12880 # No shared lib support for Linux oldld, aout, or coff. 12881 linux*oldld* | linux*aout* | linux*coff*) 12882 dynamic_linker=no 12883 ;; 12884 12885 # This must be Linux ELF. 12886 12887 # uclinux* changes (here and below) have been submitted to the libtool 12888 # project, but have not yet been accepted: they are GCC-local changes 12889 # for the time being. (See 12890 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 12891 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 12892 version_type=linux 12893 need_lib_prefix=no 12894 need_version=no 12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12896 soname_spec='${libname}${release}${shared_ext}$major' 12897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12898 shlibpath_var=LD_LIBRARY_PATH 12899 shlibpath_overrides_runpath=no 12900 12901 # Some binutils ld are patched to set DT_RUNPATH 12902 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12903 $as_echo_n "(cached) " >&6 12904 else 12905 lt_cv_shlibpath_overrides_runpath=no 12906 save_LDFLAGS=$LDFLAGS 12907 save_libdir=$libdir 12908 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12909 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12911 /* end confdefs.h. */ 12912 12913 int 12914 main () 12915 { 12916 12917 ; 12918 return 0; 12919 } 12920 _ACEOF 12921 if ac_fn_c_try_link "$LINENO"; then : 12922 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12923 lt_cv_shlibpath_overrides_runpath=yes 12924 fi 12925 fi 12926 rm -f core conftest.err conftest.$ac_objext \ 12927 conftest$ac_exeext conftest.$ac_ext 12928 LDFLAGS=$save_LDFLAGS 12929 libdir=$save_libdir 12930 12931 fi 12932 12933 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12934 12935 # This implies no fast_install, which is unacceptable. 12936 # Some rework will be needed to allow for fast_install 12937 # before this can be enabled. 12938 hardcode_into_libs=yes 12939 12940 # Append ld.so.conf contents to the search path 12941 if test -f /etc/ld.so.conf; then 12942 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' ' '` 12943 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12944 fi 12945 12946 # We used to test for /lib/ld.so.1 and disable shared libraries on 12947 # powerpc, because MkLinux only supported shared libraries with the 12948 # GNU dynamic linker. Since this was broken with cross compilers, 12949 # most powerpc-linux boxes support dynamic linking these days and 12950 # people can always --disable-shared, the test was removed, and we 12951 # assume the GNU/Linux dynamic linker is in use. 12952 dynamic_linker='GNU/Linux ld.so' 12953 ;; 12954 12955 netbsd*) 12956 version_type=sunos 12957 need_lib_prefix=no 12958 need_version=no 12959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12962 dynamic_linker='NetBSD (a.out) ld.so' 12963 else 12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12965 soname_spec='${libname}${release}${shared_ext}$major' 12966 dynamic_linker='NetBSD ld.elf_so' 12967 fi 12968 shlibpath_var=LD_LIBRARY_PATH 12969 shlibpath_overrides_runpath=yes 12970 hardcode_into_libs=yes 12971 ;; 12972 12973 newsos6) 12974 version_type=linux 12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12976 shlibpath_var=LD_LIBRARY_PATH 12977 shlibpath_overrides_runpath=yes 12978 ;; 12979 12980 *nto* | *qnx*) 12981 version_type=qnx 12982 need_lib_prefix=no 12983 need_version=no 12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12985 soname_spec='${libname}${release}${shared_ext}$major' 12986 shlibpath_var=LD_LIBRARY_PATH 12987 shlibpath_overrides_runpath=no 12988 hardcode_into_libs=yes 12989 dynamic_linker='ldqnx.so' 12990 ;; 12991 12992 openbsd*) 12993 version_type=sunos 12994 sys_lib_dlsearch_path_spec="/usr/lib" 12995 need_lib_prefix=no 12996 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12997 case $host_os in 12998 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12999 *) need_version=no ;; 13000 esac 13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13003 shlibpath_var=LD_LIBRARY_PATH 13004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13005 case $host_os in 13006 openbsd2.[89] | openbsd2.[89].*) 13007 shlibpath_overrides_runpath=no 13008 ;; 13009 *) 13010 shlibpath_overrides_runpath=yes 13011 ;; 13012 esac 13013 else 13014 shlibpath_overrides_runpath=yes 13015 fi 13016 ;; 13017 13018 os2*) 13019 libname_spec='$name' 13020 shrext_cmds=".dll" 13021 need_lib_prefix=no 13022 library_names_spec='$libname${shared_ext} $libname.a' 13023 dynamic_linker='OS/2 ld.exe' 13024 shlibpath_var=LIBPATH 13025 ;; 13026 13027 osf3* | osf4* | osf5*) 13028 version_type=osf 13029 need_lib_prefix=no 13030 need_version=no 13031 soname_spec='${libname}${release}${shared_ext}$major' 13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13033 shlibpath_var=LD_LIBRARY_PATH 13034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13036 ;; 13037 13038 rdos*) 13039 dynamic_linker=no 13040 ;; 13041 13042 solaris*) 13043 version_type=linux 13044 need_lib_prefix=no 13045 need_version=no 13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13047 soname_spec='${libname}${release}${shared_ext}$major' 13048 shlibpath_var=LD_LIBRARY_PATH 13049 shlibpath_overrides_runpath=yes 13050 hardcode_into_libs=yes 13051 # ldd complains unless libraries are executable 13052 postinstall_cmds='chmod +x $lib' 13053 ;; 13054 13055 sunos4*) 13056 version_type=sunos 13057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13059 shlibpath_var=LD_LIBRARY_PATH 13060 shlibpath_overrides_runpath=yes 13061 if test "$with_gnu_ld" = yes; then 13062 need_lib_prefix=no 13063 fi 13064 need_version=yes 13065 ;; 13066 13067 sysv4 | sysv4.3*) 13068 version_type=linux 13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13070 soname_spec='${libname}${release}${shared_ext}$major' 13071 shlibpath_var=LD_LIBRARY_PATH 13072 case $host_vendor in 13073 sni) 13074 shlibpath_overrides_runpath=no 13075 need_lib_prefix=no 13076 runpath_var=LD_RUN_PATH 13077 ;; 13078 siemens) 13079 need_lib_prefix=no 13080 ;; 13081 motorola) 13082 need_lib_prefix=no 13083 need_version=no 13084 shlibpath_overrides_runpath=no 13085 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13086 ;; 13087 esac 13088 ;; 13089 13090 sysv4*MP*) 13091 if test -d /usr/nec ;then 13092 version_type=linux 13093 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13094 soname_spec='$libname${shared_ext}.$major' 13095 shlibpath_var=LD_LIBRARY_PATH 13096 fi 13097 ;; 13098 13099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13100 version_type=freebsd-elf 13101 need_lib_prefix=no 13102 need_version=no 13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13104 soname_spec='${libname}${release}${shared_ext}$major' 13105 shlibpath_var=LD_LIBRARY_PATH 13106 shlibpath_overrides_runpath=yes 13107 hardcode_into_libs=yes 13108 if test "$with_gnu_ld" = yes; then 13109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13110 else 13111 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13112 case $host_os in 13113 sco3.2v5*) 13114 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13115 ;; 13116 esac 13117 fi 13118 sys_lib_dlsearch_path_spec='/usr/lib' 13119 ;; 13120 13121 tpf*) 13122 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13123 version_type=linux 13124 need_lib_prefix=no 13125 need_version=no 13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13127 shlibpath_var=LD_LIBRARY_PATH 13128 shlibpath_overrides_runpath=no 13129 hardcode_into_libs=yes 13130 ;; 13131 13132 uts4*) 13133 version_type=linux 13134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13135 soname_spec='${libname}${release}${shared_ext}$major' 13136 shlibpath_var=LD_LIBRARY_PATH 13137 ;; 13138 13139 # Shared libraries for VwWorks, >= 7 only at this stage 13140 # and (fpic) still incompatible with "large" code models 13141 # in a few configurations. Only for RTP mode in any case, 13142 # and upon explicit request at configure time. 13143 vxworks7*) 13144 dynamic_linker=no 13145 case ${with_multisubdir}-${enable_shared} in 13146 *large*) 13147 ;; 13148 *mrtp*-yes) 13149 version_type=linux 13150 need_lib_prefix=no 13151 need_version=no 13152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13153 soname_spec='${libname}${release}${shared_ext}$major' 13154 dynamic_linker="$host_os module_loader" 13155 ;; 13156 esac 13157 ;; 13158 *) 13159 dynamic_linker=no 13160 ;; 13161 esac 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13163 $as_echo "$dynamic_linker" >&6; } 13164 test "$dynamic_linker" = no && can_build_shared=no 13165 13166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13167 if test "$GCC" = yes; then 13168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13169 fi 13170 13171 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13172 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13173 fi 13174 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13175 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13176 fi 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13270 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13271 hardcode_action= 13272 if test -n "$hardcode_libdir_flag_spec" || 13273 test -n "$runpath_var" || 13274 test "X$hardcode_automatic" = "Xyes" ; then 13275 13276 # We can hardcode non-existent directories. 13277 if test "$hardcode_direct" != no && 13278 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13279 # have to relink, otherwise we might link with an installed library 13280 # when we should be linking with a yet-to-be-installed one 13281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13282 test "$hardcode_minus_L" != no; then 13283 # Linking always hardcodes the temporary library directory. 13284 hardcode_action=relink 13285 else 13286 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13287 hardcode_action=immediate 13288 fi 13289 else 13290 # We cannot hardcode anything, or else we can only hardcode existing 13291 # directories. 13292 hardcode_action=unsupported 13293 fi 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13295 $as_echo "$hardcode_action" >&6; } 13296 13297 if test "$hardcode_action" = relink || 13298 test "$inherit_rpath" = yes; then 13299 # Fast installation is not supported 13300 enable_fast_install=no 13301 elif test "$shlibpath_overrides_runpath" = yes || 13302 test "$enable_shared" = no; then 13303 # Fast installation is not necessary 13304 enable_fast_install=needless 13305 fi 13306 13307 13308 13309 13310 13311 13312 if test "x$enable_dlopen" != xyes; then 13313 enable_dlopen=unknown 13314 enable_dlopen_self=unknown 13315 enable_dlopen_self_static=unknown 13316 else 13317 lt_cv_dlopen=no 13318 lt_cv_dlopen_libs= 13319 13320 case $host_os in 13321 beos*) 13322 lt_cv_dlopen="load_add_on" 13323 lt_cv_dlopen_libs= 13324 lt_cv_dlopen_self=yes 13325 ;; 13326 13327 mingw* | pw32* | cegcc*) 13328 lt_cv_dlopen="LoadLibrary" 13329 lt_cv_dlopen_libs= 13330 ;; 13331 13332 cygwin*) 13333 lt_cv_dlopen="dlopen" 13334 lt_cv_dlopen_libs= 13335 ;; 13336 13337 darwin*) 13338 # if libdl is installed we need to link against it 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13340 $as_echo_n "checking for dlopen in -ldl... " >&6; } 13341 if ${ac_cv_lib_dl_dlopen+:} false; then : 13342 $as_echo_n "(cached) " >&6 13343 else 13344 ac_check_lib_save_LIBS=$LIBS 13345 LIBS="-ldl $LIBS" 13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13347 /* end confdefs.h. */ 13348 13349 /* Override any GCC internal prototype to avoid an error. 13350 Use char because int might match the return type of a GCC 13351 builtin and then its argument prototype would still apply. */ 13352 #ifdef __cplusplus 13353 extern "C" 13354 #endif 13355 char dlopen (); 13356 int 13357 main () 13358 { 13359 return dlopen (); 13360 ; 13361 return 0; 13362 } 13363 _ACEOF 13364 if ac_fn_c_try_link "$LINENO"; then : 13365 ac_cv_lib_dl_dlopen=yes 13366 else 13367 ac_cv_lib_dl_dlopen=no 13368 fi 13369 rm -f core conftest.err conftest.$ac_objext \ 13370 conftest$ac_exeext conftest.$ac_ext 13371 LIBS=$ac_check_lib_save_LIBS 13372 fi 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13375 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13377 else 13378 13379 lt_cv_dlopen="dyld" 13380 lt_cv_dlopen_libs= 13381 lt_cv_dlopen_self=yes 13382 13383 fi 13384 13385 ;; 13386 13387 *) 13388 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13389 if test "x$ac_cv_func_shl_load" = xyes; then : 13390 lt_cv_dlopen="shl_load" 13391 else 13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13393 $as_echo_n "checking for shl_load in -ldld... " >&6; } 13394 if ${ac_cv_lib_dld_shl_load+:} false; then : 13395 $as_echo_n "(cached) " >&6 13396 else 13397 ac_check_lib_save_LIBS=$LIBS 13398 LIBS="-ldld $LIBS" 13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13400 /* end confdefs.h. */ 13401 13402 /* Override any GCC internal prototype to avoid an error. 13403 Use char because int might match the return type of a GCC 13404 builtin and then its argument prototype would still apply. */ 13405 #ifdef __cplusplus 13406 extern "C" 13407 #endif 13408 char shl_load (); 13409 int 13410 main () 13411 { 13412 return shl_load (); 13413 ; 13414 return 0; 13415 } 13416 _ACEOF 13417 if ac_fn_c_try_link "$LINENO"; then : 13418 ac_cv_lib_dld_shl_load=yes 13419 else 13420 ac_cv_lib_dld_shl_load=no 13421 fi 13422 rm -f core conftest.err conftest.$ac_objext \ 13423 conftest$ac_exeext conftest.$ac_ext 13424 LIBS=$ac_check_lib_save_LIBS 13425 fi 13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13427 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13428 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13429 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13430 else 13431 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13432 if test "x$ac_cv_func_dlopen" = xyes; then : 13433 lt_cv_dlopen="dlopen" 13434 else 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13436 $as_echo_n "checking for dlopen in -ldl... " >&6; } 13437 if ${ac_cv_lib_dl_dlopen+:} false; then : 13438 $as_echo_n "(cached) " >&6 13439 else 13440 ac_check_lib_save_LIBS=$LIBS 13441 LIBS="-ldl $LIBS" 13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13443 /* end confdefs.h. */ 13444 13445 /* Override any GCC internal prototype to avoid an error. 13446 Use char because int might match the return type of a GCC 13447 builtin and then its argument prototype would still apply. */ 13448 #ifdef __cplusplus 13449 extern "C" 13450 #endif 13451 char dlopen (); 13452 int 13453 main () 13454 { 13455 return dlopen (); 13456 ; 13457 return 0; 13458 } 13459 _ACEOF 13460 if ac_fn_c_try_link "$LINENO"; then : 13461 ac_cv_lib_dl_dlopen=yes 13462 else 13463 ac_cv_lib_dl_dlopen=no 13464 fi 13465 rm -f core conftest.err conftest.$ac_objext \ 13466 conftest$ac_exeext conftest.$ac_ext 13467 LIBS=$ac_check_lib_save_LIBS 13468 fi 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13470 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13471 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13473 else 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13475 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 13476 if ${ac_cv_lib_svld_dlopen+:} false; then : 13477 $as_echo_n "(cached) " >&6 13478 else 13479 ac_check_lib_save_LIBS=$LIBS 13480 LIBS="-lsvld $LIBS" 13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13482 /* end confdefs.h. */ 13483 13484 /* Override any GCC internal prototype to avoid an error. 13485 Use char because int might match the return type of a GCC 13486 builtin and then its argument prototype would still apply. */ 13487 #ifdef __cplusplus 13488 extern "C" 13489 #endif 13490 char dlopen (); 13491 int 13492 main () 13493 { 13494 return dlopen (); 13495 ; 13496 return 0; 13497 } 13498 _ACEOF 13499 if ac_fn_c_try_link "$LINENO"; then : 13500 ac_cv_lib_svld_dlopen=yes 13501 else 13502 ac_cv_lib_svld_dlopen=no 13503 fi 13504 rm -f core conftest.err conftest.$ac_objext \ 13505 conftest$ac_exeext conftest.$ac_ext 13506 LIBS=$ac_check_lib_save_LIBS 13507 fi 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13509 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13510 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13512 else 13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13514 $as_echo_n "checking for dld_link in -ldld... " >&6; } 13515 if ${ac_cv_lib_dld_dld_link+:} false; then : 13516 $as_echo_n "(cached) " >&6 13517 else 13518 ac_check_lib_save_LIBS=$LIBS 13519 LIBS="-ldld $LIBS" 13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13521 /* end confdefs.h. */ 13522 13523 /* Override any GCC internal prototype to avoid an error. 13524 Use char because int might match the return type of a GCC 13525 builtin and then its argument prototype would still apply. */ 13526 #ifdef __cplusplus 13527 extern "C" 13528 #endif 13529 char dld_link (); 13530 int 13531 main () 13532 { 13533 return dld_link (); 13534 ; 13535 return 0; 13536 } 13537 _ACEOF 13538 if ac_fn_c_try_link "$LINENO"; then : 13539 ac_cv_lib_dld_dld_link=yes 13540 else 13541 ac_cv_lib_dld_dld_link=no 13542 fi 13543 rm -f core conftest.err conftest.$ac_objext \ 13544 conftest$ac_exeext conftest.$ac_ext 13545 LIBS=$ac_check_lib_save_LIBS 13546 fi 13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13548 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13549 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13550 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13551 fi 13552 13553 13554 fi 13555 13556 13557 fi 13558 13559 13560 fi 13561 13562 13563 fi 13564 13565 13566 fi 13567 13568 ;; 13569 esac 13570 13571 if test "x$lt_cv_dlopen" != xno; then 13572 enable_dlopen=yes 13573 else 13574 enable_dlopen=no 13575 fi 13576 13577 case $lt_cv_dlopen in 13578 dlopen) 13579 save_CPPFLAGS="$CPPFLAGS" 13580 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13581 13582 save_LDFLAGS="$LDFLAGS" 13583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13584 13585 save_LIBS="$LIBS" 13586 LIBS="$lt_cv_dlopen_libs $LIBS" 13587 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13589 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 13590 if ${lt_cv_dlopen_self+:} false; then : 13591 $as_echo_n "(cached) " >&6 13592 else 13593 if test "$cross_compiling" = yes; then : 13594 lt_cv_dlopen_self=cross 13595 else 13596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13597 lt_status=$lt_dlunknown 13598 cat > conftest.$ac_ext <<_LT_EOF 13599 #line 13599 "configure" 13600 #include "confdefs.h" 13601 13602 #if HAVE_DLFCN_H 13603 #include <dlfcn.h> 13604 #endif 13605 13606 #include <stdio.h> 13607 13608 #ifdef RTLD_GLOBAL 13609 # define LT_DLGLOBAL RTLD_GLOBAL 13610 #else 13611 # ifdef DL_GLOBAL 13612 # define LT_DLGLOBAL DL_GLOBAL 13613 # else 13614 # define LT_DLGLOBAL 0 13615 # endif 13616 #endif 13617 13618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13619 find out it does not work in some platform. */ 13620 #ifndef LT_DLLAZY_OR_NOW 13621 # ifdef RTLD_LAZY 13622 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13623 # else 13624 # ifdef DL_LAZY 13625 # define LT_DLLAZY_OR_NOW DL_LAZY 13626 # else 13627 # ifdef RTLD_NOW 13628 # define LT_DLLAZY_OR_NOW RTLD_NOW 13629 # else 13630 # ifdef DL_NOW 13631 # define LT_DLLAZY_OR_NOW DL_NOW 13632 # else 13633 # define LT_DLLAZY_OR_NOW 0 13634 # endif 13635 # endif 13636 # endif 13637 # endif 13638 #endif 13639 13640 /* When -fvisbility=hidden is used, assume the code has been annotated 13641 correspondingly for the symbols needed. */ 13642 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13643 void fnord () __attribute__((visibility("default"))); 13644 #endif 13645 13646 void fnord () { int i=42; } 13647 int main () 13648 { 13649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13650 int status = $lt_dlunknown; 13651 13652 if (self) 13653 { 13654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13655 else 13656 { 13657 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13658 else puts (dlerror ()); 13659 } 13660 /* dlclose (self); */ 13661 } 13662 else 13663 puts (dlerror ()); 13664 13665 return status; 13666 } 13667 _LT_EOF 13668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13669 (eval $ac_link) 2>&5 13670 ac_status=$? 13671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13673 (./conftest; exit; ) >&5 2>/dev/null 13674 lt_status=$? 13675 case x$lt_status in 13676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13678 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13679 esac 13680 else : 13681 # compilation failed 13682 lt_cv_dlopen_self=no 13683 fi 13684 fi 13685 rm -fr conftest* 13686 13687 13688 fi 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13690 $as_echo "$lt_cv_dlopen_self" >&6; } 13691 13692 if test "x$lt_cv_dlopen_self" = xyes; then 13693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13695 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13696 if ${lt_cv_dlopen_self_static+:} false; then : 13697 $as_echo_n "(cached) " >&6 13698 else 13699 if test "$cross_compiling" = yes; then : 13700 lt_cv_dlopen_self_static=cross 13701 else 13702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13703 lt_status=$lt_dlunknown 13704 cat > conftest.$ac_ext <<_LT_EOF 13705 #line 13705 "configure" 13706 #include "confdefs.h" 13707 13708 #if HAVE_DLFCN_H 13709 #include <dlfcn.h> 13710 #endif 13711 13712 #include <stdio.h> 13713 13714 #ifdef RTLD_GLOBAL 13715 # define LT_DLGLOBAL RTLD_GLOBAL 13716 #else 13717 # ifdef DL_GLOBAL 13718 # define LT_DLGLOBAL DL_GLOBAL 13719 # else 13720 # define LT_DLGLOBAL 0 13721 # endif 13722 #endif 13723 13724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13725 find out it does not work in some platform. */ 13726 #ifndef LT_DLLAZY_OR_NOW 13727 # ifdef RTLD_LAZY 13728 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13729 # else 13730 # ifdef DL_LAZY 13731 # define LT_DLLAZY_OR_NOW DL_LAZY 13732 # else 13733 # ifdef RTLD_NOW 13734 # define LT_DLLAZY_OR_NOW RTLD_NOW 13735 # else 13736 # ifdef DL_NOW 13737 # define LT_DLLAZY_OR_NOW DL_NOW 13738 # else 13739 # define LT_DLLAZY_OR_NOW 0 13740 # endif 13741 # endif 13742 # endif 13743 # endif 13744 #endif 13745 13746 /* When -fvisbility=hidden is used, assume the code has been annotated 13747 correspondingly for the symbols needed. */ 13748 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13749 void fnord () __attribute__((visibility("default"))); 13750 #endif 13751 13752 void fnord () { int i=42; } 13753 int main () 13754 { 13755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13756 int status = $lt_dlunknown; 13757 13758 if (self) 13759 { 13760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13761 else 13762 { 13763 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13764 else puts (dlerror ()); 13765 } 13766 /* dlclose (self); */ 13767 } 13768 else 13769 puts (dlerror ()); 13770 13771 return status; 13772 } 13773 _LT_EOF 13774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13775 (eval $ac_link) 2>&5 13776 ac_status=$? 13777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13778 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13779 (./conftest; exit; ) >&5 2>/dev/null 13780 lt_status=$? 13781 case x$lt_status in 13782 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13783 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13784 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13785 esac 13786 else : 13787 # compilation failed 13788 lt_cv_dlopen_self_static=no 13789 fi 13790 fi 13791 rm -fr conftest* 13792 13793 13794 fi 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13796 $as_echo "$lt_cv_dlopen_self_static" >&6; } 13797 fi 13798 13799 CPPFLAGS="$save_CPPFLAGS" 13800 LDFLAGS="$save_LDFLAGS" 13801 LIBS="$save_LIBS" 13802 ;; 13803 esac 13804 13805 case $lt_cv_dlopen_self in 13806 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13807 *) enable_dlopen_self=unknown ;; 13808 esac 13809 13810 case $lt_cv_dlopen_self_static in 13811 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13812 *) enable_dlopen_self_static=unknown ;; 13813 esac 13814 fi 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 striplib= 13833 old_striplib= 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13835 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 13836 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13838 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13840 $as_echo "yes" >&6; } 13841 else 13842 # FIXME - insert some real tests, host_os isn't really good enough 13843 case $host_os in 13844 darwin*) 13845 if test -n "$STRIP" ; then 13846 striplib="$STRIP -x" 13847 old_striplib="$STRIP -S" 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13849 $as_echo "yes" >&6; } 13850 else 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13852 $as_echo "no" >&6; } 13853 fi 13854 ;; 13855 *) 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13857 $as_echo "no" >&6; } 13858 ;; 13859 esac 13860 fi 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 # Report which library types will actually be built 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13875 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13877 $as_echo "$can_build_shared" >&6; } 13878 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13880 $as_echo_n "checking whether to build shared libraries... " >&6; } 13881 test "$can_build_shared" = "no" && enable_shared=no 13882 13883 # On AIX, shared libraries and static libraries use the same namespace, and 13884 # are all built from PIC. 13885 case $host_os in 13886 aix3*) 13887 test "$enable_shared" = yes && enable_static=no 13888 if test -n "$RANLIB"; then 13889 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13890 postinstall_cmds='$RANLIB $lib' 13891 fi 13892 ;; 13893 13894 aix[4-9]*) 13895 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13896 test "$enable_shared" = yes && enable_static=no 13897 fi 13898 ;; 13899 esac 13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13901 $as_echo "$enable_shared" >&6; } 13902 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13904 $as_echo_n "checking whether to build static libraries... " >&6; } 13905 # Make sure either enable_shared or enable_static is yes. 13906 test "$enable_shared" = yes || enable_static=yes 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13908 $as_echo "$enable_static" >&6; } 13909 13910 13911 13912 13913 fi 13914 ac_ext=c 13915 ac_cpp='$CPP $CPPFLAGS' 13916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13918 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13919 13920 CC="$lt_save_CC" 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 ac_config_commands="$ac_config_commands libtool" 13935 13936 13937 13938 13939 # Only expand once: 13940 13941 13942 # Check whether --enable-largefile was given. 13943 if test "${enable_largefile+set}" = set; then : 13944 enableval=$enable_largefile; 13945 fi 13946 13947 if test "$enable_largefile" != no; then 13948 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13950 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13951 if ${ac_cv_sys_largefile_CC+:} false; then : 13952 $as_echo_n "(cached) " >&6 13953 else 13954 ac_cv_sys_largefile_CC=no 13955 if test "$GCC" != yes; then 13956 ac_save_CC=$CC 13957 while :; do 13958 # IRIX 6.2 and later do not support large files by default, 13959 # so use the C compiler's -n32 option if that helps. 13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13961 /* end confdefs.h. */ 13962 #include <sys/types.h> 13963 /* Check that off_t can represent 2**63 - 1 correctly. 13964 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13965 since some C++ compilers masquerading as C compilers 13966 incorrectly reject 9223372036854775807. */ 13967 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13968 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13969 && LARGE_OFF_T % 2147483647 == 1) 13970 ? 1 : -1]; 13971 int 13972 main () 13973 { 13974 13975 ; 13976 return 0; 13977 } 13978 _ACEOF 13979 if ac_fn_c_try_compile "$LINENO"; then : 13980 break 13981 fi 13982 rm -f core conftest.err conftest.$ac_objext 13983 CC="$CC -n32" 13984 if ac_fn_c_try_compile "$LINENO"; then : 13985 ac_cv_sys_largefile_CC=' -n32'; break 13986 fi 13987 rm -f core conftest.err conftest.$ac_objext 13988 break 13989 done 13990 CC=$ac_save_CC 13991 rm -f conftest.$ac_ext 13992 fi 13993 fi 13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13995 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 13996 if test "$ac_cv_sys_largefile_CC" != no; then 13997 CC=$CC$ac_cv_sys_largefile_CC 13998 fi 13999 14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14001 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14002 if ${ac_cv_sys_file_offset_bits+:} false; then : 14003 $as_echo_n "(cached) " >&6 14004 else 14005 while :; do 14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14007 /* end confdefs.h. */ 14008 #include <sys/types.h> 14009 /* Check that off_t can represent 2**63 - 1 correctly. 14010 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14011 since some C++ compilers masquerading as C compilers 14012 incorrectly reject 9223372036854775807. */ 14013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14015 && LARGE_OFF_T % 2147483647 == 1) 14016 ? 1 : -1]; 14017 int 14018 main () 14019 { 14020 14021 ; 14022 return 0; 14023 } 14024 _ACEOF 14025 if ac_fn_c_try_compile "$LINENO"; then : 14026 ac_cv_sys_file_offset_bits=no; break 14027 fi 14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14030 /* end confdefs.h. */ 14031 #define _FILE_OFFSET_BITS 64 14032 #include <sys/types.h> 14033 /* Check that off_t can represent 2**63 - 1 correctly. 14034 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14035 since some C++ compilers masquerading as C compilers 14036 incorrectly reject 9223372036854775807. */ 14037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14039 && LARGE_OFF_T % 2147483647 == 1) 14040 ? 1 : -1]; 14041 int 14042 main () 14043 { 14044 14045 ; 14046 return 0; 14047 } 14048 _ACEOF 14049 if ac_fn_c_try_compile "$LINENO"; then : 14050 ac_cv_sys_file_offset_bits=64; break 14051 fi 14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14053 ac_cv_sys_file_offset_bits=unknown 14054 break 14055 done 14056 fi 14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14058 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14059 case $ac_cv_sys_file_offset_bits in #( 14060 no | unknown) ;; 14061 *) 14062 cat >>confdefs.h <<_ACEOF 14063 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14064 _ACEOF 14065 ;; 14066 esac 14067 rm -rf conftest* 14068 if test $ac_cv_sys_file_offset_bits = unknown; then 14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14070 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14071 if ${ac_cv_sys_large_files+:} false; then : 14072 $as_echo_n "(cached) " >&6 14073 else 14074 while :; do 14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14076 /* end confdefs.h. */ 14077 #include <sys/types.h> 14078 /* Check that off_t can represent 2**63 - 1 correctly. 14079 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14080 since some C++ compilers masquerading as C compilers 14081 incorrectly reject 9223372036854775807. */ 14082 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14084 && LARGE_OFF_T % 2147483647 == 1) 14085 ? 1 : -1]; 14086 int 14087 main () 14088 { 14089 14090 ; 14091 return 0; 14092 } 14093 _ACEOF 14094 if ac_fn_c_try_compile "$LINENO"; then : 14095 ac_cv_sys_large_files=no; break 14096 fi 14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099 /* end confdefs.h. */ 14100 #define _LARGE_FILES 1 14101 #include <sys/types.h> 14102 /* Check that off_t can represent 2**63 - 1 correctly. 14103 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14104 since some C++ compilers masquerading as C compilers 14105 incorrectly reject 9223372036854775807. */ 14106 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14108 && LARGE_OFF_T % 2147483647 == 1) 14109 ? 1 : -1]; 14110 int 14111 main () 14112 { 14113 14114 ; 14115 return 0; 14116 } 14117 _ACEOF 14118 if ac_fn_c_try_compile "$LINENO"; then : 14119 ac_cv_sys_large_files=1; break 14120 fi 14121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14122 ac_cv_sys_large_files=unknown 14123 break 14124 done 14125 fi 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14127 $as_echo "$ac_cv_sys_large_files" >&6; } 14128 case $ac_cv_sys_large_files in #( 14129 no | unknown) ;; 14130 *) 14131 cat >>confdefs.h <<_ACEOF 14132 #define _LARGE_FILES $ac_cv_sys_large_files 14133 _ACEOF 14134 ;; 14135 esac 14136 rm -rf conftest* 14137 fi 14138 14139 14140 fi 14141 14142 : ${CONFIG_LT=./config.lt} 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5 14144 $as_echo "$as_me: creating $CONFIG_LT" >&6;} 14145 as_write_fail=0 14146 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1 14147 #! $SHELL 14148 # Generated by $as_me. 14149 # Run this file to recreate a libtool stub with the current configuration. 14150 SHELL=\${CONFIG_SHELL-$SHELL} 14151 export SHELL 14152 _ASEOF 14153 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1 14154 ## -------------------- ## 14155 ## M4sh Initialization. ## 14156 ## -------------------- ## 14157 14158 # Be more Bourne compatible 14159 DUALCASE=1; export DUALCASE # for MKS sh 14160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14161 emulate sh 14162 NULLCMD=: 14163 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14164 # is contrary to our usage. Disable this feature. 14165 alias -g '${1+"$@"}'='"$@"' 14166 setopt NO_GLOB_SUBST 14167 else 14168 case `(set -o) 2>/dev/null` in #( 14169 *posix*) : 14170 set -o posix ;; #( 14171 *) : 14172 ;; 14173 esac 14174 fi 14175 14176 14177 as_nl=' 14178 ' 14179 export as_nl 14180 # Printing a long string crashes Solaris 7 /usr/bin/printf. 14181 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14184 # Prefer a ksh shell builtin over an external printf program on Solaris, 14185 # but without wasting forks for bash or zsh. 14186 if test -z "$BASH_VERSION$ZSH_VERSION" \ 14187 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14188 as_echo='print -r --' 14189 as_echo_n='print -rn --' 14190 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14191 as_echo='printf %s\n' 14192 as_echo_n='printf %s' 14193 else 14194 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14195 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14196 as_echo_n='/usr/ucb/echo -n' 14197 else 14198 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14199 as_echo_n_body='eval 14200 arg=$1; 14201 case $arg in #( 14202 *"$as_nl"*) 14203 expr "X$arg" : "X\\(.*\\)$as_nl"; 14204 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14205 esac; 14206 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14207 ' 14208 export as_echo_n_body 14209 as_echo_n='sh -c $as_echo_n_body as_echo' 14210 fi 14211 export as_echo_body 14212 as_echo='sh -c $as_echo_body as_echo' 14213 fi 14214 14215 # The user is always right. 14216 if test "${PATH_SEPARATOR+set}" != set; then 14217 PATH_SEPARATOR=: 14218 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14219 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14220 PATH_SEPARATOR=';' 14221 } 14222 fi 14223 14224 14225 # IFS 14226 # We need space, tab and new line, in precisely that order. Quoting is 14227 # there to prevent editors from complaining about space-tab. 14228 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 14229 # splitting by setting IFS to empty value.) 14230 IFS=" "" $as_nl" 14231 14232 # Find who we are. Look in the path if we contain no directory separator. 14233 as_myself= 14234 case $0 in #(( 14235 *[\\/]* ) as_myself=$0 ;; 14236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14237 for as_dir in $PATH 14238 do 14239 IFS=$as_save_IFS 14240 test -z "$as_dir" && as_dir=. 14241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14242 done 14243 IFS=$as_save_IFS 14244 14245 ;; 14246 esac 14247 # We did not find ourselves, most probably we were run as `sh COMMAND' 14248 # in which case we are not to be found in the path. 14249 if test "x$as_myself" = x; then 14250 as_myself=$0 14251 fi 14252 if test ! -f "$as_myself"; then 14253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14254 exit 1 14255 fi 14256 14257 # Unset variables that we do not need and which cause bugs (e.g. in 14258 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14259 # suppresses any "Segmentation fault" message there. '((' could 14260 # trigger a bug in pdksh 5.2.14. 14261 for as_var in BASH_ENV ENV MAIL MAILPATH 14262 do eval test x\${$as_var+set} = xset \ 14263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14264 done 14265 PS1='$ ' 14266 PS2='> ' 14267 PS4='+ ' 14268 14269 # NLS nuisances. 14270 LC_ALL=C 14271 export LC_ALL 14272 LANGUAGE=C 14273 export LANGUAGE 14274 14275 # CDPATH. 14276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14277 14278 14279 # as_fn_error STATUS ERROR [LINENO LOG_FD] 14280 # ---------------------------------------- 14281 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14282 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14283 # script with STATUS, using 1 if that was 0. 14284 as_fn_error () 14285 { 14286 as_status=$1; test $as_status -eq 0 && as_status=1 14287 if test "$4"; then 14288 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14290 fi 14291 $as_echo "$as_me: error: $2" >&2 14292 as_fn_exit $as_status 14293 } # as_fn_error 14294 14295 14296 # as_fn_set_status STATUS 14297 # ----------------------- 14298 # Set $? to STATUS, without forking. 14299 as_fn_set_status () 14300 { 14301 return $1 14302 } # as_fn_set_status 14303 14304 # as_fn_exit STATUS 14305 # ----------------- 14306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14307 as_fn_exit () 14308 { 14309 set +e 14310 as_fn_set_status $1 14311 exit $1 14312 } # as_fn_exit 14313 14314 # as_fn_unset VAR 14315 # --------------- 14316 # Portably unset VAR. 14317 as_fn_unset () 14318 { 14319 { eval $1=; unset $1;} 14320 } 14321 as_unset=as_fn_unset 14322 # as_fn_append VAR VALUE 14323 # ---------------------- 14324 # Append the text in VALUE to the end of the definition contained in VAR. Take 14325 # advantage of any shell optimizations that allow amortized linear growth over 14326 # repeated appends, instead of the typical quadratic growth present in naive 14327 # implementations. 14328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14329 eval 'as_fn_append () 14330 { 14331 eval $1+=\$2 14332 }' 14333 else 14334 as_fn_append () 14335 { 14336 eval $1=\$$1\$2 14337 } 14338 fi # as_fn_append 14339 14340 # as_fn_arith ARG... 14341 # ------------------ 14342 # Perform arithmetic evaluation on the ARGs, and store the result in the 14343 # global $as_val. Take advantage of shells that can avoid forks. The arguments 14344 # must be portable across $(()) and expr. 14345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14346 eval 'as_fn_arith () 14347 { 14348 as_val=$(( $* )) 14349 }' 14350 else 14351 as_fn_arith () 14352 { 14353 as_val=`expr "$@" || test $? -eq 1` 14354 } 14355 fi # as_fn_arith 14356 14357 14358 if expr a : '\(a\)' >/dev/null 2>&1 && 14359 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14360 as_expr=expr 14361 else 14362 as_expr=false 14363 fi 14364 14365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14366 as_basename=basename 14367 else 14368 as_basename=false 14369 fi 14370 14371 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14372 as_dirname=dirname 14373 else 14374 as_dirname=false 14375 fi 14376 14377 as_me=`$as_basename -- "$0" || 14378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14379 X"$0" : 'X\(//\)$' \| \ 14380 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14381 $as_echo X/"$0" | 14382 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14383 s//\1/ 14384 q 14385 } 14386 /^X\/\(\/\/\)$/{ 14387 s//\1/ 14388 q 14389 } 14390 /^X\/\(\/\).*/{ 14391 s//\1/ 14392 q 14393 } 14394 s/.*/./; q'` 14395 14396 # Avoid depending upon Character Ranges. 14397 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14400 as_cr_digits='0123456789' 14401 as_cr_alnum=$as_cr_Letters$as_cr_digits 14402 14403 ECHO_C= ECHO_N= ECHO_T= 14404 case `echo -n x` in #((((( 14405 -n*) 14406 case `echo 'xy\c'` in 14407 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14408 xy) ECHO_C='\c';; 14409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14410 ECHO_T=' ';; 14411 esac;; 14412 *) 14413 ECHO_N='-n';; 14414 esac 14415 14416 rm -f conf$$ conf$$.exe conf$$.file 14417 if test -d conf$$.dir; then 14418 rm -f conf$$.dir/conf$$.file 14419 else 14420 rm -f conf$$.dir 14421 mkdir conf$$.dir 2>/dev/null 14422 fi 14423 if (echo >conf$$.file) 2>/dev/null; then 14424 if ln -s conf$$.file conf$$ 2>/dev/null; then 14425 as_ln_s='ln -s' 14426 # ... but there are two gotchas: 14427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14429 # In both cases, we have to default to `cp -pR'. 14430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14431 as_ln_s='cp -pR' 14432 elif ln conf$$.file conf$$ 2>/dev/null; then 14433 as_ln_s=ln 14434 else 14435 as_ln_s='cp -pR' 14436 fi 14437 else 14438 as_ln_s='cp -pR' 14439 fi 14440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14441 rmdir conf$$.dir 2>/dev/null 14442 14443 14444 # as_fn_mkdir_p 14445 # ------------- 14446 # Create "$as_dir" as a directory, including parents if necessary. 14447 as_fn_mkdir_p () 14448 { 14449 14450 case $as_dir in #( 14451 -*) as_dir=./$as_dir;; 14452 esac 14453 test -d "$as_dir" || eval $as_mkdir_p || { 14454 as_dirs= 14455 while :; do 14456 case $as_dir in #( 14457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14458 *) as_qdir=$as_dir;; 14459 esac 14460 as_dirs="'$as_qdir' $as_dirs" 14461 as_dir=`$as_dirname -- "$as_dir" || 14462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14463 X"$as_dir" : 'X\(//\)[^/]' \| \ 14464 X"$as_dir" : 'X\(//\)$' \| \ 14465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14466 $as_echo X"$as_dir" | 14467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14468 s//\1/ 14469 q 14470 } 14471 /^X\(\/\/\)[^/].*/{ 14472 s//\1/ 14473 q 14474 } 14475 /^X\(\/\/\)$/{ 14476 s//\1/ 14477 q 14478 } 14479 /^X\(\/\).*/{ 14480 s//\1/ 14481 q 14482 } 14483 s/.*/./; q'` 14484 test -d "$as_dir" && break 14485 done 14486 test -z "$as_dirs" || eval "mkdir $as_dirs" 14487 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14488 14489 14490 } # as_fn_mkdir_p 14491 if mkdir -p . 2>/dev/null; then 14492 as_mkdir_p='mkdir -p "$as_dir"' 14493 else 14494 test -d ./-p && rmdir ./-p 14495 as_mkdir_p=false 14496 fi 14497 14498 14499 # as_fn_executable_p FILE 14500 # ----------------------- 14501 # Test if FILE is an executable regular file. 14502 as_fn_executable_p () 14503 { 14504 test -f "$1" && test -x "$1" 14505 } # as_fn_executable_p 14506 as_test_x='test -x' 14507 as_executable_p=as_fn_executable_p 14508 14509 # Sed expression to map a string onto a valid CPP name. 14510 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14511 14512 # Sed expression to map a string onto a valid variable name. 14513 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14514 14515 14516 exec 6>&1 14517 ## --------------------------------- ## 14518 ## Main body of "$CONFIG_LT" script. ## 14519 ## --------------------------------- ## 14520 _ASEOF 14521 test $as_write_fail = 0 && chmod +x "$CONFIG_LT" 14522 14523 cat >>"$CONFIG_LT" <<\_LTEOF 14524 lt_cl_silent=false 14525 exec 5>>config.log 14526 { 14527 echo 14528 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14529 ## Running $as_me. ## 14530 _ASBOX 14531 } >&5 14532 14533 lt_cl_help="\ 14534 \`$as_me' creates a local libtool stub from the current configuration, 14535 for use in further configure time tests before the real libtool is 14536 generated. 14537 14538 Usage: $0 [OPTIONS] 14539 14540 -h, --help print this help, then exit 14541 -V, --version print version number, then exit 14542 -q, --quiet do not print progress messages 14543 -d, --debug don't remove temporary files 14544 14545 Report bugs to <bug-libtool@gnu.org>." 14546 14547 lt_cl_version="\ 14548 libctf config.lt 1.2.0 14549 configured by $0, generated by GNU Autoconf 2.69. 14550 14551 Copyright (C) 2009 Free Software Foundation, Inc. 14552 This config.lt script is free software; the Free Software Foundation 14553 gives unlimited permision to copy, distribute and modify it." 14554 14555 while test $# != 0 14556 do 14557 case $1 in 14558 --version | --v* | -V ) 14559 echo "$lt_cl_version"; exit 0 ;; 14560 --help | --h* | -h ) 14561 echo "$lt_cl_help"; exit 0 ;; 14562 --debug | --d* | -d ) 14563 debug=: ;; 14564 --quiet | --q* | --silent | --s* | -q ) 14565 lt_cl_silent=: ;; 14566 14567 -*) as_fn_error $? "unrecognized option: $1 14568 Try \`$0 --help' for more information." "$LINENO" 5 ;; 14569 14570 *) as_fn_error $? "unrecognized argument: $1 14571 Try \`$0 --help' for more information." "$LINENO" 5 ;; 14572 esac 14573 shift 14574 done 14575 14576 if $lt_cl_silent; then 14577 exec 6>/dev/null 14578 fi 14579 _LTEOF 14580 14581 cat >>"$CONFIG_LT" <<_LTEOF 14582 14583 14584 # The HP-UX ksh and POSIX shell print the target directory to stdout 14585 # if CDPATH is set. 14586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14587 14588 sed_quote_subst='$sed_quote_subst' 14589 double_quote_subst='$double_quote_subst' 14590 delay_variable_subst='$delay_variable_subst' 14591 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14592 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14593 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14594 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14595 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14596 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14597 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14598 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14599 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14600 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14601 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14602 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14603 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14604 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14605 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14606 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14607 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14608 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14609 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14610 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14611 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14612 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14613 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14614 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14615 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14616 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14617 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14618 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14619 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14620 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14621 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14622 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14623 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14624 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14625 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14626 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14627 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14628 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14629 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14630 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14631 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14632 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14633 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14634 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14635 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14636 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14637 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14638 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14639 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 14640 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14641 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14642 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14643 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14644 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14645 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14646 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14647 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14648 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14649 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14650 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14651 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14652 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14653 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14654 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14655 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14656 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14657 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14658 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14659 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14660 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14661 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14662 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14663 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14664 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14665 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14666 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14667 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14668 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14669 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14670 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14671 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 14672 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14673 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14674 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14675 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14676 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14677 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14678 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14679 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14680 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 14681 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14682 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14683 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14684 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14685 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14686 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14687 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14688 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14689 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14690 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14691 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14692 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14693 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14694 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14695 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14696 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14697 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14698 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14699 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14700 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14701 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14702 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14703 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14704 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14705 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14706 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14707 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14708 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14709 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14710 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14711 14712 LTCC='$LTCC' 14713 LTCFLAGS='$LTCFLAGS' 14714 compiler='$compiler_DEFAULT' 14715 14716 # A function that is used when there is no print builtin or printf. 14717 func_fallback_echo () 14718 { 14719 eval 'cat <<_LTECHO_EOF 14720 \$1 14721 _LTECHO_EOF' 14722 } 14723 14724 # Quote evaled strings. 14725 for var in SHELL \ 14726 ECHO \ 14727 SED \ 14728 GREP \ 14729 EGREP \ 14730 FGREP \ 14731 LD \ 14732 NM \ 14733 LN_S \ 14734 lt_SP2NL \ 14735 lt_NL2SP \ 14736 reload_flag \ 14737 OBJDUMP \ 14738 deplibs_check_method \ 14739 file_magic_cmd \ 14740 AR \ 14741 AR_FLAGS \ 14742 STRIP \ 14743 RANLIB \ 14744 CC \ 14745 CFLAGS \ 14746 compiler \ 14747 lt_cv_sys_global_symbol_pipe \ 14748 lt_cv_sys_global_symbol_to_cdecl \ 14749 lt_cv_sys_global_symbol_to_c_name_address \ 14750 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14751 lt_prog_compiler_no_builtin_flag \ 14752 lt_prog_compiler_wl \ 14753 lt_prog_compiler_pic \ 14754 lt_prog_compiler_static \ 14755 lt_cv_prog_compiler_c_o \ 14756 need_locks \ 14757 DSYMUTIL \ 14758 NMEDIT \ 14759 LIPO \ 14760 OTOOL \ 14761 OTOOL64 \ 14762 shrext_cmds \ 14763 export_dynamic_flag_spec \ 14764 whole_archive_flag_spec \ 14765 compiler_needs_object \ 14766 with_gnu_ld \ 14767 allow_undefined_flag \ 14768 no_undefined_flag \ 14769 hardcode_libdir_flag_spec \ 14770 hardcode_libdir_flag_spec_ld \ 14771 hardcode_libdir_separator \ 14772 fix_srcfile_path \ 14773 exclude_expsyms \ 14774 include_expsyms \ 14775 file_list_spec \ 14776 variables_saved_for_relink \ 14777 libname_spec \ 14778 library_names_spec \ 14779 soname_spec \ 14780 install_override_mode \ 14781 finish_eval \ 14782 old_striplib \ 14783 striplib; do 14784 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14785 *[\\\\\\\`\\"\\\$]*) 14786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14787 ;; 14788 *) 14789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14790 ;; 14791 esac 14792 done 14793 14794 # Double-quote double-evaled strings. 14795 for var in reload_cmds \ 14796 old_postinstall_cmds \ 14797 old_postuninstall_cmds \ 14798 old_archive_cmds \ 14799 extract_expsyms_cmds \ 14800 old_archive_from_new_cmds \ 14801 old_archive_from_expsyms_cmds \ 14802 archive_cmds \ 14803 archive_expsym_cmds \ 14804 module_cmds \ 14805 module_expsym_cmds \ 14806 export_symbols_cmds \ 14807 prelink_cmds \ 14808 postinstall_cmds \ 14809 postuninstall_cmds \ 14810 finish_cmds \ 14811 sys_lib_search_path_spec \ 14812 sys_lib_dlsearch_path_spec; do 14813 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14814 *[\\\\\\\`\\"\\\$]*) 14815 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14816 ;; 14817 *) 14818 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14819 ;; 14820 esac 14821 done 14822 14823 ac_aux_dir='$ac_aux_dir' 14824 xsi_shell='$xsi_shell' 14825 lt_shell_append='$lt_shell_append' 14826 14827 # See if we are running on zsh, and set the options which allow our 14828 # commands through without removal of \ escapes INIT. 14829 if test -n "\${ZSH_VERSION+set}" ; then 14830 setopt NO_GLOB_SUBST 14831 fi 14832 14833 14834 PACKAGE='$PACKAGE' 14835 VERSION='$VERSION' 14836 TIMESTAMP='$TIMESTAMP' 14837 RM='$RM' 14838 ofile='$ofile' 14839 14840 14841 14842 _LTEOF 14843 14844 cat >>"$CONFIG_LT" <<\_LTEOF 14845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 14846 $as_echo "$as_me: creating $ofile" >&6;} 14847 14848 14849 # See if we are running on zsh, and set the options which allow our 14850 # commands through without removal of \ escapes. 14851 if test -n "${ZSH_VERSION+set}" ; then 14852 setopt NO_GLOB_SUBST 14853 fi 14854 14855 cfgfile="${ofile}T" 14856 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14857 $RM "$cfgfile" 14858 14859 cat <<_LT_EOF >> "$cfgfile" 14860 #! $SHELL 14861 14862 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14863 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14864 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14865 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 14866 # 14867 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14868 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 14869 # Written by Gordon Matzigkeit, 1996 14870 # 14871 # This file is part of GNU Libtool. 14872 # 14873 # GNU Libtool is free software; you can redistribute it and/or 14874 # modify it under the terms of the GNU General Public License as 14875 # published by the Free Software Foundation; either version 2 of 14876 # the License, or (at your option) any later version. 14877 # 14878 # As a special exception to the GNU General Public License, 14879 # if you distribute this file as part of a program or library that 14880 # is built using GNU Libtool, you may include this file under the 14881 # same distribution terms that you use for the rest of that program. 14882 # 14883 # GNU Libtool is distributed in the hope that it will be useful, 14884 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14885 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14886 # GNU General Public License for more details. 14887 # 14888 # You should have received a copy of the GNU General Public License 14889 # along with GNU Libtool; see the file COPYING. If not, a copy 14890 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14891 # obtained by writing to the Free Software Foundation, Inc., 14892 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14893 14894 14895 # The names of the tagged configurations supported by this script. 14896 available_tags="" 14897 14898 # ### BEGIN LIBTOOL CONFIG 14899 14900 # Whether or not to build shared libraries. 14901 build_libtool_libs=$enable_shared 14902 14903 # Which release of libtool.m4 was used? 14904 macro_version=$macro_version 14905 macro_revision=$macro_revision 14906 14907 # Whether or not to build static libraries. 14908 build_old_libs=$enable_static 14909 14910 # What type of objects to build. 14911 pic_mode=$pic_mode 14912 14913 # Whether or not to optimize for fast installation. 14914 fast_install=$enable_fast_install 14915 14916 # Shell to use when invoking shell scripts. 14917 SHELL=$lt_SHELL 14918 14919 # An echo program that protects backslashes. 14920 ECHO=$lt_ECHO 14921 14922 # The host system. 14923 host_alias=$host_alias 14924 host=$host 14925 host_os=$host_os 14926 14927 # The build system. 14928 build_alias=$build_alias 14929 build=$build 14930 build_os=$build_os 14931 14932 # A sed program that does not truncate output. 14933 SED=$lt_SED 14934 14935 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 14936 Xsed="\$SED -e 1s/^X//" 14937 14938 # A grep program that handles long lines. 14939 GREP=$lt_GREP 14940 14941 # An ERE matcher. 14942 EGREP=$lt_EGREP 14943 14944 # A literal string matcher. 14945 FGREP=$lt_FGREP 14946 14947 # A BSD- or MS-compatible name lister. 14948 NM=$lt_NM 14949 14950 # Whether we need soft or hard links. 14951 LN_S=$lt_LN_S 14952 14953 # What is the maximum length of a command? 14954 max_cmd_len=$max_cmd_len 14955 14956 # Object file suffix (normally "o"). 14957 objext=$ac_objext 14958 14959 # Executable file suffix (normally ""). 14960 exeext=$exeext 14961 14962 # whether the shell understands "unset". 14963 lt_unset=$lt_unset 14964 14965 # turn spaces into newlines. 14966 SP2NL=$lt_lt_SP2NL 14967 14968 # turn newlines into spaces. 14969 NL2SP=$lt_lt_NL2SP 14970 14971 # An object symbol dumper. 14972 OBJDUMP=$lt_OBJDUMP 14973 14974 # Method to check whether dependent libraries are shared objects. 14975 deplibs_check_method=$lt_deplibs_check_method 14976 14977 # Command to use when deplibs_check_method == "file_magic". 14978 file_magic_cmd=$lt_file_magic_cmd 14979 14980 # The archiver. 14981 AR=$lt_AR 14982 AR_FLAGS=$lt_AR_FLAGS 14983 14984 # A symbol stripping program. 14985 STRIP=$lt_STRIP 14986 14987 # Commands used to install an old-style archive. 14988 RANLIB=$lt_RANLIB 14989 old_postinstall_cmds=$lt_old_postinstall_cmds 14990 old_postuninstall_cmds=$lt_old_postuninstall_cmds 14991 14992 # Whether to use a lock for old archive extraction. 14993 lock_old_archive_extraction=$lock_old_archive_extraction 14994 14995 # A C compiler. 14996 LTCC=$lt_CC 14997 14998 # LTCC compiler flags. 14999 LTCFLAGS=$lt_CFLAGS 15000 15001 # Take the output of nm and produce a listing of raw symbols and C names. 15002 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15003 15004 # Transform the output of nm in a proper C declaration. 15005 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15006 15007 # Transform the output of nm in a C name address pair. 15008 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15009 15010 # Transform the output of nm in a C name address pair when lib prefix is needed. 15011 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15012 15013 # The name of the directory that contains temporary libtool files. 15014 objdir=$objdir 15015 15016 # Used to examine libraries when file_magic_cmd begins with "file". 15017 MAGIC_CMD=$MAGIC_CMD 15018 15019 # Must we lock files when doing compilation? 15020 need_locks=$lt_need_locks 15021 15022 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15023 DSYMUTIL=$lt_DSYMUTIL 15024 15025 # Tool to change global to local symbols on Mac OS X. 15026 NMEDIT=$lt_NMEDIT 15027 15028 # Tool to manipulate fat objects and archives on Mac OS X. 15029 LIPO=$lt_LIPO 15030 15031 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 15032 OTOOL=$lt_OTOOL 15033 15034 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15035 OTOOL64=$lt_OTOOL64 15036 15037 # Old archive suffix (normally "a"). 15038 libext=$libext 15039 15040 # Shared library suffix (normally ".so"). 15041 shrext_cmds=$lt_shrext_cmds 15042 15043 # The commands to extract the exported symbol list from a shared archive. 15044 extract_expsyms_cmds=$lt_extract_expsyms_cmds 15045 15046 # Variables whose values should be saved in libtool wrapper scripts and 15047 # restored at link time. 15048 variables_saved_for_relink=$lt_variables_saved_for_relink 15049 15050 # Do we need the "lib" prefix for modules? 15051 need_lib_prefix=$need_lib_prefix 15052 15053 # Do we need a version for libraries? 15054 need_version=$need_version 15055 15056 # Library versioning type. 15057 version_type=$version_type 15058 15059 # Shared library runtime path variable. 15060 runpath_var=$runpath_var 15061 15062 # Shared library path variable. 15063 shlibpath_var=$shlibpath_var 15064 15065 # Is shlibpath searched before the hard-coded library search path? 15066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15067 15068 # Format of library name prefix. 15069 libname_spec=$lt_libname_spec 15070 15071 # List of archive names. First name is the real one, the rest are links. 15072 # The last name is the one that the linker finds with -lNAME 15073 library_names_spec=$lt_library_names_spec 15074 15075 # The coded name of the library, if different from the real name. 15076 soname_spec=$lt_soname_spec 15077 15078 # Permission mode override for installation of shared libraries. 15079 install_override_mode=$lt_install_override_mode 15080 15081 # Command to use after installation of a shared archive. 15082 postinstall_cmds=$lt_postinstall_cmds 15083 15084 # Command to use after uninstallation of a shared archive. 15085 postuninstall_cmds=$lt_postuninstall_cmds 15086 15087 # Commands used to finish a libtool library installation in a directory. 15088 finish_cmds=$lt_finish_cmds 15089 15090 # As "finish_cmds", except a single script fragment to be evaled but 15091 # not shown. 15092 finish_eval=$lt_finish_eval 15093 15094 # Whether we should hardcode library paths into libraries. 15095 hardcode_into_libs=$hardcode_into_libs 15096 15097 # Compile-time system search path for libraries. 15098 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15099 15100 # Run-time system search path for libraries. 15101 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15102 15103 # Whether dlopen is supported. 15104 dlopen_support=$enable_dlopen 15105 15106 # Whether dlopen of programs is supported. 15107 dlopen_self=$enable_dlopen_self 15108 15109 # Whether dlopen of statically linked programs is supported. 15110 dlopen_self_static=$enable_dlopen_self_static 15111 15112 # Commands to strip libraries. 15113 old_striplib=$lt_old_striplib 15114 striplib=$lt_striplib 15115 15116 15117 # The linker used to build libraries. 15118 LD=$lt_LD 15119 15120 # How to create reloadable object files. 15121 reload_flag=$lt_reload_flag 15122 reload_cmds=$lt_reload_cmds 15123 15124 # Commands used to build an old-style archive. 15125 old_archive_cmds=$lt_old_archive_cmds 15126 15127 # A language specific compiler. 15128 CC=$lt_compiler 15129 15130 # Is the compiler the GNU compiler? 15131 with_gcc=$GCC 15132 15133 # Compiler flag to turn off builtin functions. 15134 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15135 15136 # How to pass a linker flag through the compiler. 15137 wl=$lt_lt_prog_compiler_wl 15138 15139 # Additional compiler flags for building library objects. 15140 pic_flag=$lt_lt_prog_compiler_pic 15141 15142 # Compiler flag to prevent dynamic linking. 15143 link_static_flag=$lt_lt_prog_compiler_static 15144 15145 # Does compiler simultaneously support -c and -o options? 15146 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15147 15148 # Whether or not to add -lc for building shared libraries. 15149 build_libtool_need_lc=$archive_cmds_need_lc 15150 15151 # Whether or not to disallow shared libs when runtime libs are static. 15152 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15153 15154 # Compiler flag to allow reflexive dlopens. 15155 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15156 15157 # Compiler flag to generate shared objects directly from archives. 15158 whole_archive_flag_spec=$lt_whole_archive_flag_spec 15159 15160 # Whether the compiler copes with passing no objects directly. 15161 compiler_needs_object=$lt_compiler_needs_object 15162 15163 # Create an old-style archive from a shared archive. 15164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15165 15166 # Create a temporary old-style archive to link instead of a shared archive. 15167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15168 15169 # Commands used to build a shared archive. 15170 archive_cmds=$lt_archive_cmds 15171 archive_expsym_cmds=$lt_archive_expsym_cmds 15172 15173 # Commands used to build a loadable module if different from building 15174 # a shared archive. 15175 module_cmds=$lt_module_cmds 15176 module_expsym_cmds=$lt_module_expsym_cmds 15177 15178 # Whether we are building with GNU ld or not. 15179 with_gnu_ld=$lt_with_gnu_ld 15180 15181 # Flag that allows shared libraries with undefined symbols to be built. 15182 allow_undefined_flag=$lt_allow_undefined_flag 15183 15184 # Flag that enforces no undefined symbols. 15185 no_undefined_flag=$lt_no_undefined_flag 15186 15187 # Flag to hardcode \$libdir into a binary during linking. 15188 # This must work even if \$libdir does not exist 15189 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15190 15191 # If ld is used when linking, flag to hardcode \$libdir into a binary 15192 # during linking. This must work even if \$libdir does not exist. 15193 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15194 15195 # Whether we need a single "-rpath" flag with a separated argument. 15196 hardcode_libdir_separator=$lt_hardcode_libdir_separator 15197 15198 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15199 # DIR into the resulting binary. 15200 hardcode_direct=$hardcode_direct 15201 15202 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15203 # DIR into the resulting binary and the resulting library dependency is 15204 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15205 # library is relocated. 15206 hardcode_direct_absolute=$hardcode_direct_absolute 15207 15208 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15209 # into the resulting binary. 15210 hardcode_minus_L=$hardcode_minus_L 15211 15212 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15213 # into the resulting binary. 15214 hardcode_shlibpath_var=$hardcode_shlibpath_var 15215 15216 # Set to "yes" if building a shared library automatically hardcodes DIR 15217 # into the library and all subsequent libraries and executables linked 15218 # against it. 15219 hardcode_automatic=$hardcode_automatic 15220 15221 # Set to yes if linker adds runtime paths of dependent libraries 15222 # to runtime path list. 15223 inherit_rpath=$inherit_rpath 15224 15225 # Whether libtool must link a program against all its dependency libraries. 15226 link_all_deplibs=$link_all_deplibs 15227 15228 # Fix the shell variable \$srcfile for the compiler. 15229 fix_srcfile_path=$lt_fix_srcfile_path 15230 15231 # Set to "yes" if exported symbols are required. 15232 always_export_symbols=$always_export_symbols 15233 15234 # The commands to list exported symbols. 15235 export_symbols_cmds=$lt_export_symbols_cmds 15236 15237 # Symbols that should not be listed in the preloaded symbols. 15238 exclude_expsyms=$lt_exclude_expsyms 15239 15240 # Symbols that must always be exported. 15241 include_expsyms=$lt_include_expsyms 15242 15243 # Commands necessary for linking programs (against libraries) with templates. 15244 prelink_cmds=$lt_prelink_cmds 15245 15246 # Specify filename containing input files. 15247 file_list_spec=$lt_file_list_spec 15248 15249 # How to hardcode a shared library path into an executable. 15250 hardcode_action=$hardcode_action 15251 15252 # ### END LIBTOOL CONFIG 15253 15254 _LT_EOF 15255 15256 case $host_os in 15257 aix3*) 15258 cat <<\_LT_EOF >> "$cfgfile" 15259 # AIX sometimes has problems with the GCC collect2 program. For some 15260 # reason, if we set the COLLECT_NAMES environment variable, the problems 15261 # vanish in a puff of smoke. 15262 if test "X${COLLECT_NAMES+set}" != Xset; then 15263 COLLECT_NAMES= 15264 export COLLECT_NAMES 15265 fi 15266 _LT_EOF 15267 ;; 15268 esac 15269 15270 15271 ltmain="$ac_aux_dir/ltmain.sh" 15272 15273 15274 # We use sed instead of cat because bash on DJGPP gets confused if 15275 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15276 # text mode, it properly converts lines to CR/LF. This bash problem 15277 # is reportedly fixed, but why not run on old versions too? 15278 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15279 || (rm -f "$cfgfile"; exit 1) 15280 15281 case $xsi_shell in 15282 yes) 15283 cat << \_LT_EOF >> "$cfgfile" 15284 15285 # func_dirname file append nondir_replacement 15286 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 15287 # otherwise set result to NONDIR_REPLACEMENT. 15288 func_dirname () 15289 { 15290 case ${1} in 15291 */*) func_dirname_result="${1%/*}${2}" ;; 15292 * ) func_dirname_result="${3}" ;; 15293 esac 15294 } 15295 15296 # func_basename file 15297 func_basename () 15298 { 15299 func_basename_result="${1##*/}" 15300 } 15301 15302 # func_dirname_and_basename file append nondir_replacement 15303 # perform func_basename and func_dirname in a single function 15304 # call: 15305 # dirname: Compute the dirname of FILE. If nonempty, 15306 # add APPEND to the result, otherwise set result 15307 # to NONDIR_REPLACEMENT. 15308 # value returned in "$func_dirname_result" 15309 # basename: Compute filename of FILE. 15310 # value retuned in "$func_basename_result" 15311 # Implementation must be kept synchronized with func_dirname 15312 # and func_basename. For efficiency, we do not delegate to 15313 # those functions but instead duplicate the functionality here. 15314 func_dirname_and_basename () 15315 { 15316 case ${1} in 15317 */*) func_dirname_result="${1%/*}${2}" ;; 15318 * ) func_dirname_result="${3}" ;; 15319 esac 15320 func_basename_result="${1##*/}" 15321 } 15322 15323 # func_stripname prefix suffix name 15324 # strip PREFIX and SUFFIX off of NAME. 15325 # PREFIX and SUFFIX must not contain globbing or regex special 15326 # characters, hashes, percent signs, but SUFFIX may contain a leading 15327 # dot (in which case that matches only a dot). 15328 func_stripname () 15329 { 15330 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15331 # positional parameters, so assign one to ordinary parameter first. 15332 func_stripname_result=${3} 15333 func_stripname_result=${func_stripname_result#"${1}"} 15334 func_stripname_result=${func_stripname_result%"${2}"} 15335 } 15336 15337 # func_opt_split 15338 func_opt_split () 15339 { 15340 func_opt_split_opt=${1%%=*} 15341 func_opt_split_arg=${1#*=} 15342 } 15343 15344 # func_lo2o object 15345 func_lo2o () 15346 { 15347 case ${1} in 15348 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15349 *) func_lo2o_result=${1} ;; 15350 esac 15351 } 15352 15353 # func_xform libobj-or-source 15354 func_xform () 15355 { 15356 func_xform_result=${1%.*}.lo 15357 } 15358 15359 # func_arith arithmetic-term... 15360 func_arith () 15361 { 15362 func_arith_result=$(( $* )) 15363 } 15364 15365 # func_len string 15366 # STRING may not start with a hyphen. 15367 func_len () 15368 { 15369 func_len_result=${#1} 15370 } 15371 15372 _LT_EOF 15373 ;; 15374 *) # Bourne compatible functions. 15375 cat << \_LT_EOF >> "$cfgfile" 15376 15377 # func_dirname file append nondir_replacement 15378 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 15379 # otherwise set result to NONDIR_REPLACEMENT. 15380 func_dirname () 15381 { 15382 # Extract subdirectory from the argument. 15383 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 15384 if test "X$func_dirname_result" = "X${1}"; then 15385 func_dirname_result="${3}" 15386 else 15387 func_dirname_result="$func_dirname_result${2}" 15388 fi 15389 } 15390 15391 # func_basename file 15392 func_basename () 15393 { 15394 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 15395 } 15396 15397 15398 # func_stripname prefix suffix name 15399 # strip PREFIX and SUFFIX off of NAME. 15400 # PREFIX and SUFFIX must not contain globbing or regex special 15401 # characters, hashes, percent signs, but SUFFIX may contain a leading 15402 # dot (in which case that matches only a dot). 15403 # func_strip_suffix prefix name 15404 func_stripname () 15405 { 15406 case ${2} in 15407 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 15408 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 15409 esac 15410 } 15411 15412 # sed scripts: 15413 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15414 my_sed_long_arg='1s/^-[^=]*=//' 15415 15416 # func_opt_split 15417 func_opt_split () 15418 { 15419 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 15420 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 15421 } 15422 15423 # func_lo2o object 15424 func_lo2o () 15425 { 15426 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 15427 } 15428 15429 # func_xform libobj-or-source 15430 func_xform () 15431 { 15432 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 15433 } 15434 15435 # func_arith arithmetic-term... 15436 func_arith () 15437 { 15438 func_arith_result=`expr "$@"` 15439 } 15440 15441 # func_len string 15442 # STRING may not start with a hyphen. 15443 func_len () 15444 { 15445 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15446 } 15447 15448 _LT_EOF 15449 esac 15450 15451 case $lt_shell_append in 15452 yes) 15453 cat << \_LT_EOF >> "$cfgfile" 15454 15455 # func_append var value 15456 # Append VALUE to the end of shell variable VAR. 15457 func_append () 15458 { 15459 eval "$1+=\$2" 15460 } 15461 _LT_EOF 15462 ;; 15463 *) 15464 cat << \_LT_EOF >> "$cfgfile" 15465 15466 # func_append var value 15467 # Append VALUE to the end of shell variable VAR. 15468 func_append () 15469 { 15470 eval "$1=\$$1\$2" 15471 } 15472 15473 _LT_EOF 15474 ;; 15475 esac 15476 15477 15478 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15479 || (rm -f "$cfgfile"; exit 1) 15480 15481 mv -f "$cfgfile" "$ofile" || 15482 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15483 chmod +x "$ofile" 15484 15485 15486 as_fn_exit 0 15487 _LTEOF 15488 chmod +x "$CONFIG_LT" 15489 15490 # configure is writing to config.log, but config.lt does its own redirection, 15491 # appending to config.log, which fails on DOS, as config.log is still kept 15492 # open by configure. Here we exec the FD to /dev/null, effectively closing 15493 # config.log, so it can be properly (re)opened and appended to by config.lt. 15494 lt_cl_success=: 15495 test "$silent" = yes && 15496 lt_config_lt_args="$lt_config_lt_args --quiet" 15497 exec 5>/dev/null 15498 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 15499 exec 5>>config.log 15500 $lt_cl_success || as_fn_exit 1 15501 15502 15503 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 15504 for ac_prog in aclocal 15505 do 15506 # Extract the first word of "$ac_prog", so it can be a program name with args. 15507 set dummy $ac_prog; ac_word=$2 15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15509 $as_echo_n "checking for $ac_word... " >&6; } 15510 if ${ac_cv_prog_ACLOCAL+:} false; then : 15511 $as_echo_n "(cached) " >&6 15512 else 15513 if test -n "$ACLOCAL"; then 15514 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test. 15515 else 15516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15517 for as_dir in $PATH 15518 do 15519 IFS=$as_save_IFS 15520 test -z "$as_dir" && as_dir=. 15521 for ac_exec_ext in '' $ac_executable_extensions; do 15522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15523 ac_cv_prog_ACLOCAL="$ac_prog" 15524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15525 break 2 15526 fi 15527 done 15528 done 15529 IFS=$as_save_IFS 15530 15531 fi 15532 fi 15533 ACLOCAL=$ac_cv_prog_ACLOCAL 15534 if test -n "$ACLOCAL"; then 15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 15536 $as_echo "$ACLOCAL" >&6; } 15537 else 15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15539 $as_echo "no" >&6; } 15540 fi 15541 15542 15543 test -n "$ACLOCAL" && break 15544 done 15545 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal" 15546 15547 for ac_prog in autoconf 15548 do 15549 # Extract the first word of "$ac_prog", so it can be a program name with args. 15550 set dummy $ac_prog; ac_word=$2 15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15552 $as_echo_n "checking for $ac_word... " >&6; } 15553 if ${ac_cv_prog_AUTOCONF+:} false; then : 15554 $as_echo_n "(cached) " >&6 15555 else 15556 if test -n "$AUTOCONF"; then 15557 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. 15558 else 15559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15560 for as_dir in $PATH 15561 do 15562 IFS=$as_save_IFS 15563 test -z "$as_dir" && as_dir=. 15564 for ac_exec_ext in '' $ac_executable_extensions; do 15565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15566 ac_cv_prog_AUTOCONF="$ac_prog" 15567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15568 break 2 15569 fi 15570 done 15571 done 15572 IFS=$as_save_IFS 15573 15574 fi 15575 fi 15576 AUTOCONF=$ac_cv_prog_AUTOCONF 15577 if test -n "$AUTOCONF"; then 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 15579 $as_echo "$AUTOCONF" >&6; } 15580 else 15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15582 $as_echo "no" >&6; } 15583 fi 15584 15585 15586 test -n "$AUTOCONF" && break 15587 done 15588 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf" 15589 15590 for ac_prog in autoheader 15591 do 15592 # Extract the first word of "$ac_prog", so it can be a program name with args. 15593 set dummy $ac_prog; ac_word=$2 15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15595 $as_echo_n "checking for $ac_word... " >&6; } 15596 if ${ac_cv_prog_AUTOHEADER+:} false; then : 15597 $as_echo_n "(cached) " >&6 15598 else 15599 if test -n "$AUTOHEADER"; then 15600 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test. 15601 else 15602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15603 for as_dir in $PATH 15604 do 15605 IFS=$as_save_IFS 15606 test -z "$as_dir" && as_dir=. 15607 for ac_exec_ext in '' $ac_executable_extensions; do 15608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15609 ac_cv_prog_AUTOHEADER="$ac_prog" 15610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15611 break 2 15612 fi 15613 done 15614 done 15615 IFS=$as_save_IFS 15616 15617 fi 15618 fi 15619 AUTOHEADER=$ac_cv_prog_AUTOHEADER 15620 if test -n "$AUTOHEADER"; then 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 15622 $as_echo "$AUTOHEADER" >&6; } 15623 else 15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15625 $as_echo "no" >&6; } 15626 fi 15627 15628 15629 test -n "$AUTOHEADER" && break 15630 done 15631 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader" 15632 15633 15634 # Figure out what compiler warnings we can enable. 15635 # See config/warnings.m4 for details. 15636 15637 ac_ext=c 15638 ac_cpp='$CPP $CPPFLAGS' 15639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15641 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15642 15643 warn= 15644 save_CFLAGS="$CFLAGS" 15645 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \ 15646 -Wmissing-format-attribute; do 15647 # Do the check with the no- prefix removed since gcc silently 15648 # accepts any -Wno-* option on purpose 15649 case $real_option in 15650 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 15651 *) option=$real_option ;; 15652 esac 15653 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 15654 15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 15656 $as_echo_n "checking whether $CC supports $option... " >&6; } 15657 if eval \${$as_acx_Woption+:} false; then : 15658 $as_echo_n "(cached) " >&6 15659 else 15660 CFLAGS="$option" 15661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15662 /* end confdefs.h. */ 15663 15664 int 15665 main () 15666 { 15667 15668 ; 15669 return 0; 15670 } 15671 _ACEOF 15672 if ac_fn_c_try_compile "$LINENO"; then : 15673 eval "$as_acx_Woption=yes" 15674 else 15675 eval "$as_acx_Woption=no" 15676 fi 15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15678 15679 fi 15680 eval ac_res=\$$as_acx_Woption 15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15682 $as_echo "$ac_res" >&6; } 15683 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 15684 warn="$warn${warn:+ }$real_option" 15685 fi 15686 done 15687 CFLAGS="$save_CFLAGS" 15688 ac_ext=c 15689 ac_cpp='$CPP $CPPFLAGS' 15690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15692 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15693 15694 15695 ac_ext=c 15696 ac_cpp='$CPP $CPPFLAGS' 15697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15699 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15700 15701 c_warn= 15702 save_CFLAGS="$CFLAGS" 15703 for real_option in -Wstrict-prototypes -Wmissing-prototypes \ 15704 -Wold-style-definition; do 15705 # Do the check with the no- prefix removed since gcc silently 15706 # accepts any -Wno-* option on purpose 15707 case $real_option in 15708 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 15709 *) option=$real_option ;; 15710 esac 15711 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 15712 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 15714 $as_echo_n "checking whether $CC supports $option... " >&6; } 15715 if eval \${$as_acx_Woption+:} false; then : 15716 $as_echo_n "(cached) " >&6 15717 else 15718 CFLAGS="$option" 15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15720 /* end confdefs.h. */ 15721 15722 int 15723 main () 15724 { 15725 15726 ; 15727 return 0; 15728 } 15729 _ACEOF 15730 if ac_fn_c_try_compile "$LINENO"; then : 15731 eval "$as_acx_Woption=yes" 15732 else 15733 eval "$as_acx_Woption=no" 15734 fi 15735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15736 15737 fi 15738 eval ac_res=\$$as_acx_Woption 15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15740 $as_echo "$ac_res" >&6; } 15741 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 15742 c_warn="$c_warn${c_warn:+ }$real_option" 15743 fi 15744 done 15745 CFLAGS="$save_CFLAGS" 15746 ac_ext=c 15747 ac_cpp='$CPP $CPPFLAGS' 15748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15750 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15751 15752 15753 ac_ext=c 15754 ac_cpp='$CPP $CPPFLAGS' 15755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15757 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15758 15759 WARN_PEDANTIC= 15760 # Do the check with the no- prefix removed from the warning options 15761 # since gcc silently accepts any -Wno-* option on purpose 15762 if test "$GCC" = yes; then : 15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5 15764 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; } 15765 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then : 15766 $as_echo_n "(cached) " >&6 15767 else 15768 save_CFLAGS="$CFLAGS" 15769 CFLAGS="-pedantic -Wlong-long" 15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15771 /* end confdefs.h. */ 15772 15773 int 15774 main () 15775 { 15776 15777 ; 15778 return 0; 15779 } 15780 _ACEOF 15781 if ac_fn_c_try_compile "$LINENO"; then : 15782 acx_cv_prog_cc_pedantic__Wlong_long=yes 15783 else 15784 acx_cv_prog_cc_pedantic__Wlong_long=no 15785 fi 15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15787 CFLAGS="$save_CFLAGS" 15788 fi 15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5 15790 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; } 15791 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then : 15792 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long" 15793 fi 15794 15795 fi 15796 ac_ext=c 15797 ac_cpp='$CPP $CPPFLAGS' 15798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15800 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15801 15802 15803 15804 # Only enable with --enable-werror-always until existing warnings are 15805 # corrected. 15806 ac_ext=c 15807 ac_cpp='$CPP $CPPFLAGS' 15808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15810 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15811 15812 WERROR= 15813 # Check whether --enable-werror-always was given. 15814 if test "${enable_werror_always+set}" = set; then : 15815 enableval=$enable_werror_always; 15816 else 15817 enable_werror_always=no 15818 fi 15819 15820 if test $enable_werror_always = yes; then : 15821 WERROR="$WERROR${WERROR:+ }-Werror" 15822 fi 15823 15824 ac_ext=c 15825 ac_cpp='$CPP $CPPFLAGS' 15826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15828 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15829 15830 15831 15832 15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 15834 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 15835 # Check whether --enable-maintainer-mode was given. 15836 if test "${enable_maintainer_mode+set}" = set; then : 15837 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 15838 else 15839 USE_MAINTAINER_MODE=no 15840 fi 15841 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 15843 $as_echo "$USE_MAINTAINER_MODE" >&6; } 15844 if test $USE_MAINTAINER_MODE = yes; then 15845 MAINTAINER_MODE_TRUE= 15846 MAINTAINER_MODE_FALSE='#' 15847 else 15848 MAINTAINER_MODE_TRUE='#' 15849 MAINTAINER_MODE_FALSE= 15850 fi 15851 15852 MAINT=$MAINTAINER_MODE_TRUE 15853 15854 15855 case ${build_alias} in 15856 "") build_noncanonical=${build} ;; 15857 *) build_noncanonical=${build_alias} ;; 15858 esac 15859 15860 case ${host_alias} in 15861 "") host_noncanonical=${build_noncanonical} ;; 15862 *) host_noncanonical=${host_alias} ;; 15863 esac 15864 15865 case ${target_alias} in 15866 "") target_noncanonical=${host_noncanonical} ;; 15867 *) target_noncanonical=${target_alias} ;; 15868 esac 15869 15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 15871 $as_echo_n "checking whether to install libbfd... " >&6; } 15872 # Check whether --enable-install-libbfd was given. 15873 if test "${enable_install_libbfd+set}" = set; then : 15874 enableval=$enable_install_libbfd; install_libbfd_p=$enableval 15875 else 15876 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 15877 install_libbfd_p=yes 15878 else 15879 install_libbfd_p=no 15880 fi 15881 fi 15882 15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 15884 $as_echo "$install_libbfd_p" >&6; } 15885 if test $install_libbfd_p = yes; then 15886 INSTALL_LIBBFD_TRUE= 15887 INSTALL_LIBBFD_FALSE='#' 15888 else 15889 INSTALL_LIBBFD_TRUE='#' 15890 INSTALL_LIBBFD_FALSE= 15891 fi 15892 15893 # Need _noncanonical variables for this. 15894 15895 15896 15897 15898 # libbfd.a is a host library containing target dependent code 15899 bfdlibdir='$(libdir)' 15900 bfdincludedir='$(includedir)' 15901 if test "${host}" != "${target}"; then 15902 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 15903 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 15904 fi 15905 15906 15907 15908 15909 15910 15911 ac_ext=c 15912 ac_cpp='$CPP $CPPFLAGS' 15913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15915 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15916 15917 ac_libctf_warn_cflags= 15918 save_CFLAGS="$CFLAGS" 15919 for real_option in -Wall; do 15920 # Do the check with the no- prefix removed since gcc silently 15921 # accepts any -Wno-* option on purpose 15922 case $real_option in 15923 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 15924 *) option=$real_option ;; 15925 esac 15926 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 15927 15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 15929 $as_echo_n "checking whether $CC supports $option... " >&6; } 15930 if eval \${$as_acx_Woption+:} false; then : 15931 $as_echo_n "(cached) " >&6 15932 else 15933 CFLAGS="$option" 15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15935 /* end confdefs.h. */ 15936 15937 int 15938 main () 15939 { 15940 15941 ; 15942 return 0; 15943 } 15944 _ACEOF 15945 if ac_fn_c_try_compile "$LINENO"; then : 15946 eval "$as_acx_Woption=yes" 15947 else 15948 eval "$as_acx_Woption=no" 15949 fi 15950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15951 15952 fi 15953 eval ac_res=\$$as_acx_Woption 15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15955 $as_echo "$ac_res" >&6; } 15956 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 15957 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option" 15958 fi 15959 done 15960 CFLAGS="$save_CFLAGS" 15961 ac_ext=c 15962 ac_cpp='$CPP $CPPFLAGS' 15963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15965 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15966 15967 15968 15969 case "${host}" in 15970 # PR libctf/29292 15971 # libctf's use of mmap doesn't work on Solaris 11.4, so disable it. 15972 *-*-solaris2.11*) 15973 ac_cv_func_mmap_fixed_mapped=no 15974 ;; 15975 esac 15976 15977 15978 15979 15980 for ac_header in $ac_header_list 15981 do : 15982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15983 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15984 " 15985 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15986 cat >>confdefs.h <<_ACEOF 15987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15988 _ACEOF 15989 15990 fi 15991 15992 done 15993 15994 15995 15996 15997 15998 15999 16000 save_ASAN_OPTIONS="$ASAN_OPTIONS" 16001 ASAN_OPTIONS=detect_leaks=0 16002 export ASAN_OPTIONS 16003 16004 for ac_func in getpagesize 16005 do : 16006 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 16007 if test "x$ac_cv_func_getpagesize" = xyes; then : 16008 cat >>confdefs.h <<_ACEOF 16009 #define HAVE_GETPAGESIZE 1 16010 _ACEOF 16011 16012 fi 16013 done 16014 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 16016 $as_echo_n "checking for working mmap... " >&6; } 16017 if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 16018 $as_echo_n "(cached) " >&6 16019 else 16020 if test "$cross_compiling" = yes; then : 16021 ac_cv_func_mmap_fixed_mapped=no 16022 else 16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16024 /* end confdefs.h. */ 16025 $ac_includes_default 16026 /* malloc might have been renamed as rpl_malloc. */ 16027 #undef malloc 16028 16029 /* Thanks to Mike Haertel and Jim Avera for this test. 16030 Here is a matrix of mmap possibilities: 16031 mmap private not fixed 16032 mmap private fixed at somewhere currently unmapped 16033 mmap private fixed at somewhere already mapped 16034 mmap shared not fixed 16035 mmap shared fixed at somewhere currently unmapped 16036 mmap shared fixed at somewhere already mapped 16037 For private mappings, we should verify that changes cannot be read() 16038 back from the file, nor mmap's back from the file at a different 16039 address. (There have been systems where private was not correctly 16040 implemented like the infamous i386 svr4.0, and systems where the 16041 VM page cache was not coherent with the file system buffer cache 16042 like early versions of FreeBSD and possibly contemporary NetBSD.) 16043 For shared mappings, we should conversely verify that changes get 16044 propagated back to all the places they're supposed to be. 16045 16046 Grep wants private fixed already mapped. 16047 The main things grep needs to know about mmap are: 16048 * does it exist and is it safe to write into the mmap'd area 16049 * how to use it (BSD variants) */ 16050 16051 #include <fcntl.h> 16052 #include <sys/mman.h> 16053 16054 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 16055 char *malloc (); 16056 #endif 16057 16058 /* This mess was copied from the GNU getpagesize.h. */ 16059 #ifndef HAVE_GETPAGESIZE 16060 # ifdef _SC_PAGESIZE 16061 # define getpagesize() sysconf(_SC_PAGESIZE) 16062 # else /* no _SC_PAGESIZE */ 16063 # ifdef HAVE_SYS_PARAM_H 16064 # include <sys/param.h> 16065 # ifdef EXEC_PAGESIZE 16066 # define getpagesize() EXEC_PAGESIZE 16067 # else /* no EXEC_PAGESIZE */ 16068 # ifdef NBPG 16069 # define getpagesize() NBPG * CLSIZE 16070 # ifndef CLSIZE 16071 # define CLSIZE 1 16072 # endif /* no CLSIZE */ 16073 # else /* no NBPG */ 16074 # ifdef NBPC 16075 # define getpagesize() NBPC 16076 # else /* no NBPC */ 16077 # ifdef PAGESIZE 16078 # define getpagesize() PAGESIZE 16079 # endif /* PAGESIZE */ 16080 # endif /* no NBPC */ 16081 # endif /* no NBPG */ 16082 # endif /* no EXEC_PAGESIZE */ 16083 # else /* no HAVE_SYS_PARAM_H */ 16084 # define getpagesize() 8192 /* punt totally */ 16085 # endif /* no HAVE_SYS_PARAM_H */ 16086 # endif /* no _SC_PAGESIZE */ 16087 16088 #endif /* no HAVE_GETPAGESIZE */ 16089 16090 int 16091 main () 16092 { 16093 char *data, *data2, *data3; 16094 const char *cdata2; 16095 int i, pagesize; 16096 int fd, fd2; 16097 16098 pagesize = getpagesize (); 16099 16100 /* First, make a file with some known garbage in it. */ 16101 data = (char *) malloc (pagesize); 16102 if (!data) 16103 return 1; 16104 for (i = 0; i < pagesize; ++i) 16105 *(data + i) = rand (); 16106 umask (0); 16107 fd = creat ("conftest.mmap", 0600); 16108 if (fd < 0) 16109 return 2; 16110 if (write (fd, data, pagesize) != pagesize) 16111 return 3; 16112 close (fd); 16113 16114 /* Next, check that the tail of a page is zero-filled. File must have 16115 non-zero length, otherwise we risk SIGBUS for entire page. */ 16116 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 16117 if (fd2 < 0) 16118 return 4; 16119 cdata2 = ""; 16120 if (write (fd2, cdata2, 1) != 1) 16121 return 5; 16122 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 16123 if (data2 == MAP_FAILED) 16124 return 6; 16125 for (i = 0; i < pagesize; ++i) 16126 if (*(data2 + i)) 16127 return 7; 16128 close (fd2); 16129 if (munmap (data2, pagesize)) 16130 return 8; 16131 16132 /* Next, try to mmap the file at a fixed address which already has 16133 something else allocated at it. If we can, also make sure that 16134 we see the same garbage. */ 16135 fd = open ("conftest.mmap", O_RDWR); 16136 if (fd < 0) 16137 return 9; 16138 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 16139 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 16140 return 10; 16141 for (i = 0; i < pagesize; ++i) 16142 if (*(data + i) != *(data2 + i)) 16143 return 11; 16144 16145 /* Finally, make sure that changes to the mapped area do not 16146 percolate back to the file as seen by read(). (This is a bug on 16147 some variants of i386 svr4.0.) */ 16148 for (i = 0; i < pagesize; ++i) 16149 *(data2 + i) = *(data2 + i) + 1; 16150 data3 = (char *) malloc (pagesize); 16151 if (!data3) 16152 return 12; 16153 if (read (fd, data3, pagesize) != pagesize) 16154 return 13; 16155 for (i = 0; i < pagesize; ++i) 16156 if (*(data + i) != *(data3 + i)) 16157 return 14; 16158 close (fd); 16159 return 0; 16160 } 16161 _ACEOF 16162 if ac_fn_c_try_run "$LINENO"; then : 16163 ac_cv_func_mmap_fixed_mapped=yes 16164 else 16165 ac_cv_func_mmap_fixed_mapped=no 16166 fi 16167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16168 conftest.$ac_objext conftest.beam conftest.$ac_ext 16169 fi 16170 16171 fi 16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 16173 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 16174 if test $ac_cv_func_mmap_fixed_mapped = yes; then 16175 16176 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 16177 16178 fi 16179 rm -f conftest.mmap conftest.txt 16180 16181 ASAN_OPTIONS="$save_ASAN_OPTIONS" 16182 16183 # Needed for BFD capability checks. 16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 16185 $as_echo_n "checking for library containing dlsym... " >&6; } 16186 if ${ac_cv_search_dlsym+:} false; then : 16187 $as_echo_n "(cached) " >&6 16188 else 16189 ac_func_search_save_LIBS=$LIBS 16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16191 /* end confdefs.h. */ 16192 16193 /* Override any GCC internal prototype to avoid an error. 16194 Use char because int might match the return type of a GCC 16195 builtin and then its argument prototype would still apply. */ 16196 #ifdef __cplusplus 16197 extern "C" 16198 #endif 16199 char dlsym (); 16200 int 16201 main () 16202 { 16203 return dlsym (); 16204 ; 16205 return 0; 16206 } 16207 _ACEOF 16208 for ac_lib in '' dl; do 16209 if test -z "$ac_lib"; then 16210 ac_res="none required" 16211 else 16212 ac_res=-l$ac_lib 16213 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16214 fi 16215 if ac_fn_c_try_link "$LINENO"; then : 16216 ac_cv_search_dlsym=$ac_res 16217 fi 16218 rm -f core conftest.err conftest.$ac_objext \ 16219 conftest$ac_exeext 16220 if ${ac_cv_search_dlsym+:} false; then : 16221 break 16222 fi 16223 done 16224 if ${ac_cv_search_dlsym+:} false; then : 16225 16226 else 16227 ac_cv_search_dlsym=no 16228 fi 16229 rm conftest.$ac_ext 16230 LIBS=$ac_func_search_save_LIBS 16231 fi 16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 16233 $as_echo "$ac_cv_search_dlsym" >&6; } 16234 ac_res=$ac_cv_search_dlsym 16235 if test "$ac_res" != no; then : 16236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16237 16238 fi 16239 16240 16241 # Use the system's zlib library. 16242 zlibdir="-L\$(top_builddir)/../zlib" 16243 zlibinc="-I\$(top_srcdir)/../zlib" 16244 16245 # Check whether --with-system-zlib was given. 16246 if test "${with_system_zlib+set}" = set; then : 16247 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 16248 zlibdir= 16249 zlibinc= 16250 fi 16251 16252 fi 16253 16254 16255 16256 16257 16258 # Check whether --enable-libctf-hash-debugging was given. 16259 if test "${enable_libctf_hash_debugging+set}" = set; then : 16260 enableval=$enable_libctf_hash_debugging; 16261 case "$enableval" in 16262 yes|no) ;; 16263 *) as_fn_error $? "Argument to enable/disable libctf-hash-debugging must be yes or no" "$LINENO" 5 ;; 16264 esac 16265 16266 else 16267 enable_libctf_hash_debugging=no 16268 fi 16269 16270 16271 if test "${enable_libctf_hash_debugging}" = yes; then 16272 16273 $as_echo "#define ENABLE_LIBCTF_HASH_DEBUGGING 1" >>confdefs.h 16274 16275 fi 16276 if test "${enable_libctf_hash_debugging}" = yes; then 16277 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE= 16278 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE='#' 16279 else 16280 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE='#' 16281 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE= 16282 fi 16283 16284 16285 # Similar to GDB_AC_CHECK_BFD. 16286 OLD_CFLAGS=$CFLAGS 16287 OLD_LDFLAGS=$LDFLAGS 16288 OLD_LIBS=$LIBS 16289 OLD_CC=$CC 16290 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS 16291 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We 16292 # always want our bfd. 16293 CC="./libtool --quiet --mode=link $OLD_CC" 16294 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS" 16295 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS" 16296 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` 16297 LIBS="-lbfd -liberty $intl $LIBS" 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5 16299 $as_echo_n "checking for ELF support in BFD... " >&6; } 16300 if ${ac_cv_libctf_bfd_elf+:} false; then : 16301 $as_echo_n "(cached) " >&6 16302 else 16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16304 /* end confdefs.h. */ 16305 #include <stdlib.h> 16306 #include <string.h> 16307 #include "bfd.h" 16308 #include "elf-bfd.h" 16309 int 16310 main () 16311 { 16312 (void) bfd_section_from_elf_index (NULL, 0); 16313 return 0; 16314 ; 16315 return 0; 16316 } 16317 _ACEOF 16318 if ac_fn_c_try_link "$LINENO"; then : 16319 ac_cv_libctf_bfd_elf=yes 16320 else 16321 ac_cv_libctf_bfd_elf=no 16322 fi 16323 rm -f core conftest.err conftest.$ac_objext \ 16324 conftest$ac_exeext conftest.$ac_ext 16325 fi 16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5 16327 $as_echo "$ac_cv_libctf_bfd_elf" >&6; } 16328 CFLAGS=$OLD_CFLAGS 16329 LDFLAGS=$OLD_LDFLAGS 16330 LIBS=$OLD_LIBS 16331 CC=$OLD_CC 16332 16333 if test $ac_cv_libctf_bfd_elf = yes; then 16334 16335 $as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h 16336 16337 fi 16338 16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16340 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16341 if ${ac_cv_c_bigendian+:} false; then : 16342 $as_echo_n "(cached) " >&6 16343 else 16344 ac_cv_c_bigendian=unknown 16345 # See if we're dealing with a universal compiler. 16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16347 /* end confdefs.h. */ 16348 #ifndef __APPLE_CC__ 16349 not a universal capable compiler 16350 #endif 16351 typedef int dummy; 16352 16353 _ACEOF 16354 if ac_fn_c_try_compile "$LINENO"; then : 16355 16356 # Check for potential -arch flags. It is not universal unless 16357 # there are at least two -arch flags with different values. 16358 ac_arch= 16359 ac_prev= 16360 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16361 if test -n "$ac_prev"; then 16362 case $ac_word in 16363 i?86 | x86_64 | ppc | ppc64) 16364 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16365 ac_arch=$ac_word 16366 else 16367 ac_cv_c_bigendian=universal 16368 break 16369 fi 16370 ;; 16371 esac 16372 ac_prev= 16373 elif test "x$ac_word" = "x-arch"; then 16374 ac_prev=arch 16375 fi 16376 done 16377 fi 16378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16379 if test $ac_cv_c_bigendian = unknown; then 16380 # See if sys/param.h defines the BYTE_ORDER macro. 16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16382 /* end confdefs.h. */ 16383 #include <sys/types.h> 16384 #include <sys/param.h> 16385 16386 int 16387 main () 16388 { 16389 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16390 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16391 && LITTLE_ENDIAN) 16392 bogus endian macros 16393 #endif 16394 16395 ; 16396 return 0; 16397 } 16398 _ACEOF 16399 if ac_fn_c_try_compile "$LINENO"; then : 16400 # It does; now see whether it defined to BIG_ENDIAN or not. 16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16402 /* end confdefs.h. */ 16403 #include <sys/types.h> 16404 #include <sys/param.h> 16405 16406 int 16407 main () 16408 { 16409 #if BYTE_ORDER != BIG_ENDIAN 16410 not big endian 16411 #endif 16412 16413 ; 16414 return 0; 16415 } 16416 _ACEOF 16417 if ac_fn_c_try_compile "$LINENO"; then : 16418 ac_cv_c_bigendian=yes 16419 else 16420 ac_cv_c_bigendian=no 16421 fi 16422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16423 fi 16424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16425 fi 16426 if test $ac_cv_c_bigendian = unknown; then 16427 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16429 /* end confdefs.h. */ 16430 #include <limits.h> 16431 16432 int 16433 main () 16434 { 16435 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16436 bogus endian macros 16437 #endif 16438 16439 ; 16440 return 0; 16441 } 16442 _ACEOF 16443 if ac_fn_c_try_compile "$LINENO"; then : 16444 # It does; now see whether it defined to _BIG_ENDIAN or not. 16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16446 /* end confdefs.h. */ 16447 #include <limits.h> 16448 16449 int 16450 main () 16451 { 16452 #ifndef _BIG_ENDIAN 16453 not big endian 16454 #endif 16455 16456 ; 16457 return 0; 16458 } 16459 _ACEOF 16460 if ac_fn_c_try_compile "$LINENO"; then : 16461 ac_cv_c_bigendian=yes 16462 else 16463 ac_cv_c_bigendian=no 16464 fi 16465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16466 fi 16467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16468 fi 16469 if test $ac_cv_c_bigendian = unknown; then 16470 # Compile a test program. 16471 if test "$cross_compiling" = yes; then : 16472 # Try to guess by grepping values from an object file. 16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16474 /* end confdefs.h. */ 16475 short int ascii_mm[] = 16476 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16477 short int ascii_ii[] = 16478 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16479 int use_ascii (int i) { 16480 return ascii_mm[i] + ascii_ii[i]; 16481 } 16482 short int ebcdic_ii[] = 16483 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16484 short int ebcdic_mm[] = 16485 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16486 int use_ebcdic (int i) { 16487 return ebcdic_mm[i] + ebcdic_ii[i]; 16488 } 16489 extern int foo; 16490 16491 int 16492 main () 16493 { 16494 return use_ascii (foo) == use_ebcdic (foo); 16495 ; 16496 return 0; 16497 } 16498 _ACEOF 16499 if ac_fn_c_try_compile "$LINENO"; then : 16500 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 16501 ac_cv_c_bigendian=yes 16502 fi 16503 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 16504 if test "$ac_cv_c_bigendian" = unknown; then 16505 ac_cv_c_bigendian=no 16506 else 16507 # finding both strings is unlikely to happen, but who knows? 16508 ac_cv_c_bigendian=unknown 16509 fi 16510 fi 16511 fi 16512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16513 else 16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16515 /* end confdefs.h. */ 16516 $ac_includes_default 16517 int 16518 main () 16519 { 16520 16521 /* Are we little or big endian? From Harbison&Steele. */ 16522 union 16523 { 16524 long int l; 16525 char c[sizeof (long int)]; 16526 } u; 16527 u.l = 1; 16528 return u.c[sizeof (long int) - 1] == 1; 16529 16530 ; 16531 return 0; 16532 } 16533 _ACEOF 16534 if ac_fn_c_try_run "$LINENO"; then : 16535 ac_cv_c_bigendian=no 16536 else 16537 ac_cv_c_bigendian=yes 16538 fi 16539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16540 conftest.$ac_objext conftest.beam conftest.$ac_ext 16541 fi 16542 16543 fi 16544 fi 16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16546 $as_echo "$ac_cv_c_bigendian" >&6; } 16547 case $ac_cv_c_bigendian in #( 16548 yes) 16549 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16550 ;; #( 16551 no) 16552 ;; #( 16553 universal) 16554 16555 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16556 16557 ;; #( 16558 *) 16559 as_fn_error $? "unknown endianness 16560 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16561 esac 16562 16563 for ac_header in byteswap.h endian.h valgrind/valgrind.h 16564 do : 16565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16566 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16567 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16568 cat >>confdefs.h <<_ACEOF 16569 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16570 _ACEOF 16571 16572 fi 16573 16574 done 16575 16576 for ac_func in pread 16577 do : 16578 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 16579 if test "x$ac_cv_func_pread" = xyes; then : 16580 cat >>confdefs.h <<_ACEOF 16581 #define HAVE_PREAD 1 16582 _ACEOF 16583 16584 fi 16585 done 16586 16587 16588 ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h> 16589 " 16590 if test "x$ac_cv_have_decl_bswap_16" = xyes; then : 16591 ac_have_decl=1 16592 else 16593 ac_have_decl=0 16594 fi 16595 16596 cat >>confdefs.h <<_ACEOF 16597 #define HAVE_DECL_BSWAP_16 $ac_have_decl 16598 _ACEOF 16599 ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h> 16600 " 16601 if test "x$ac_cv_have_decl_bswap_32" = xyes; then : 16602 ac_have_decl=1 16603 else 16604 ac_have_decl=0 16605 fi 16606 16607 cat >>confdefs.h <<_ACEOF 16608 #define HAVE_DECL_BSWAP_32 $ac_have_decl 16609 _ACEOF 16610 ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h> 16611 " 16612 if test "x$ac_cv_have_decl_bswap_64" = xyes; then : 16613 ac_have_decl=1 16614 else 16615 ac_have_decl=0 16616 fi 16617 16618 cat >>confdefs.h <<_ACEOF 16619 #define HAVE_DECL_BSWAP_64 $ac_have_decl 16620 _ACEOF 16621 16622 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 16623 if test "x$ac_cv_have_decl_asprintf" = xyes; then : 16624 ac_have_decl=1 16625 else 16626 ac_have_decl=0 16627 fi 16628 16629 cat >>confdefs.h <<_ACEOF 16630 #define HAVE_DECL_ASPRINTF $ac_have_decl 16631 _ACEOF 16632 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 16633 if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 16634 ac_have_decl=1 16635 else 16636 ac_have_decl=0 16637 fi 16638 16639 cat >>confdefs.h <<_ACEOF 16640 #define HAVE_DECL_VASPRINTF $ac_have_decl 16641 _ACEOF 16642 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" 16643 if test "x$ac_cv_have_decl_stpcpy" = xyes; then : 16644 ac_have_decl=1 16645 else 16646 ac_have_decl=0 16647 fi 16648 16649 cat >>confdefs.h <<_ACEOF 16650 #define HAVE_DECL_STPCPY $ac_have_decl 16651 _ACEOF 16652 16653 16654 16655 16656 16657 for ac_func in $ac_func_list 16658 do : 16659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16661 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16662 cat >>confdefs.h <<_ACEOF 16663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16664 _ACEOF 16665 16666 fi 16667 done 16668 16669 16670 16671 16672 if test $ac_cv_func_qsort_r = yes; then 16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5 16674 $as_echo_n "checking for qsort_r signature... " >&6; } 16675 if ${ac_cv_libctf_qsort_r_signature+:} false; then : 16676 $as_echo_n "(cached) " >&6 16677 else 16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16679 /* end confdefs.h. */ 16680 #undef qsort_r 16681 #include <stdlib.h> 16682 void qsort_r (void *, size_t, size_t, 16683 int (*) (void const *, void const *, 16684 void *), 16685 void *); 16686 void (*p) (void *, size_t, size_t, 16687 int (*) (void const *, void const *, 16688 void *), 16689 void *) = qsort_r; 16690 16691 int 16692 main () 16693 { 16694 16695 ; 16696 return 0; 16697 } 16698 _ACEOF 16699 if ac_fn_c_try_link "$LINENO"; then : 16700 ac_cv_libctf_qsort_r_signature=GNU 16701 else 16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16703 /* end confdefs.h. */ 16704 #undef qsort_r 16705 #include <stdlib.h> 16706 void qsort_r (void *, size_t, size_t, void *, 16707 int (*) (void *, 16708 void const *, 16709 void const *)); 16710 void (*p) (void *, size_t, size_t, void *, 16711 int (*) (void *, void const *, 16712 void const *)) = qsort_r; 16713 16714 int 16715 main () 16716 { 16717 16718 ; 16719 return 0; 16720 } 16721 _ACEOF 16722 if ac_fn_c_try_link "$LINENO"; then : 16723 ac_cv_libctf_qsort_r_signature=BSD 16724 else 16725 ac_cv_libctf_qsort_r_signature=unknown 16726 fi 16727 rm -f core conftest.err conftest.$ac_objext \ 16728 conftest$ac_exeext conftest.$ac_ext 16729 fi 16730 rm -f core conftest.err conftest.$ac_objext \ 16731 conftest$ac_exeext conftest.$ac_ext 16732 fi 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5 16734 $as_echo "$ac_cv_libctf_qsort_r_signature" >&6; } 16735 fi 16736 16737 case x$ac_cv_libctf_qsort_r_signature in 16738 xGNU) 16739 $as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h 16740 ;; 16741 xBSD) 16742 $as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h 16743 ;; 16744 *) ac_cv_libctf_qsort_r_signature=unknown;; 16745 esac 16746 16747 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then 16748 NEED_CTF_QSORT_R_TRUE= 16749 NEED_CTF_QSORT_R_FALSE='#' 16750 else 16751 NEED_CTF_QSORT_R_TRUE='#' 16752 NEED_CTF_QSORT_R_FALSE= 16753 fi 16754 16755 16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 16757 $as_echo_n "checking for O_CLOEXEC... " >&6; } 16758 if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then : 16759 $as_echo_n "(cached) " >&6 16760 else 16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16762 /* end confdefs.h. */ 16763 #include <fcntl.h> 16764 #ifndef O_CLOEXEC 16765 choke me; 16766 #endif 16767 16768 int 16769 main () 16770 { 16771 return O_CLOEXEC; 16772 ; 16773 return 0; 16774 } 16775 _ACEOF 16776 if ac_fn_c_try_link "$LINENO"; then : 16777 ac_cv_libctf_macro_O_CLOEXEC=yes 16778 else 16779 ac_cv_libctf_macro_O_CLOEXEC=no 16780 fi 16781 rm -f core conftest.err conftest.$ac_objext \ 16782 conftest$ac_exeext conftest.$ac_ext 16783 fi 16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5 16785 $as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; } 16786 16787 if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then 16788 16789 $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h 16790 16791 fi 16792 16793 build_info= 16794 makeinfo_too_old= 16795 for ac_prog in makeinfo 16796 do 16797 # Extract the first word of "$ac_prog", so it can be a program name with args. 16798 set dummy $ac_prog; ac_word=$2 16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16800 $as_echo_n "checking for $ac_word... " >&6; } 16801 if ${ac_cv_prog_MAKEINFO+:} false; then : 16802 $as_echo_n "(cached) " >&6 16803 else 16804 if test -n "$MAKEINFO"; then 16805 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 16806 else 16807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16808 for as_dir in $PATH 16809 do 16810 IFS=$as_save_IFS 16811 test -z "$as_dir" && as_dir=. 16812 for ac_exec_ext in '' $ac_executable_extensions; do 16813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16814 ac_cv_prog_MAKEINFO="$ac_prog" 16815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16816 break 2 16817 fi 16818 done 16819 done 16820 IFS=$as_save_IFS 16821 16822 fi 16823 fi 16824 MAKEINFO=$ac_cv_prog_MAKEINFO 16825 if test -n "$MAKEINFO"; then 16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 16827 $as_echo "$MAKEINFO" >&6; } 16828 else 16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16830 $as_echo "no" >&6; } 16831 fi 16832 16833 16834 test -n "$MAKEINFO" && break 16835 done 16836 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" 16837 16838 case " $build_configdirs " in 16839 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; 16840 esac 16841 16842 # We require texinfo to be 6.3 or later, for a working synindex 16843 # and validatemenus: otherwise we fall back to /bin/true. 16844 if ${MAKEINFO} --version \ 16845 | egrep 'texinfo[^0-9]*(6\.[3-9]|[7-9]|[1-6][0-9])' >/dev/null 2>&1; then 16846 build_info=yes 16847 else 16848 build_info= 16849 makeinfo_too_old=t 16850 fi 16851 16852 if test -n "$makeinfo_too_old"; then 16853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 16854 *** Makeinfo is too old. Info documentation will not be built." >&5 16855 $as_echo "$as_me: WARNING: 16856 *** Makeinfo is too old. Info documentation will not be built." >&2;} 16857 fi 16858 16859 if test "${build_info}" = yes; then 16860 BUILD_INFO_TRUE= 16861 BUILD_INFO_FALSE='#' 16862 else 16863 BUILD_INFO_TRUE='#' 16864 BUILD_INFO_FALSE= 16865 fi 16866 16867 16868 CTF_LIBADD="-L`pwd`/../libiberty -liberty" 16869 SHARED_LDFLAGS= 16870 16871 # Horrible hacks to build DLLs on Windows and a shared library elsewhere. 16872 if test "$enable_shared" = "yes"; then 16873 # When building a shared libctf, link against the pic version of libiberty 16874 # so that apps that use libctf won't need libiberty just to satisfy any 16875 # libctf references. We can't do that if a pic libiberty is unavailable 16876 # since including non-pic # code would insert text relocations into libctf. 16877 # Note that linking against libbfd as we do here, which is itself linked 16878 # against libiberty, may not satisfy all the libctf libiberty references 16879 # since libbfd may not pull in the entirety of libiberty. 16880 # Also, jam libintl into the right place in all of this: after libiberty, 16881 # which uses it, but before -lcygwin, which it uses. 16882 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 16883 if test -n "$x"; then 16884 CTF_LIBADD="-L`pwd`/../libiberty/pic -liberty" 16885 fi 16886 fi 16887 16888 CTF_LIBADD="$CTF_LIBADD $LTLIBINTL" 16889 16890 if test "$enable_shared" = "yes"; then 16891 case "${host}" in 16892 # More hacks to build DLLs on Windows. 16893 *-*-cygwin*) 16894 SHARED_LDFLAGS="-no-undefined" 16895 CTF_LIBADD="$CTF_LIBADD -lcygwin" 16896 ;; 16897 esac 16898 fi 16899 16900 16901 16902 # Extract the first word of "expect", so it can be a program name with args. 16903 set dummy expect; ac_word=$2 16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16905 $as_echo_n "checking for $ac_word... " >&6; } 16906 if ${ac_cv_path_EXPECT+:} false; then : 16907 $as_echo_n "(cached) " >&6 16908 else 16909 case $EXPECT in 16910 [\\/]* | ?:[\\/]*) 16911 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path. 16912 ;; 16913 *) 16914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16915 for as_dir in $PATH 16916 do 16917 IFS=$as_save_IFS 16918 test -z "$as_dir" && as_dir=. 16919 for ac_exec_ext in '' $ac_executable_extensions; do 16920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16921 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext" 16922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16923 break 2 16924 fi 16925 done 16926 done 16927 IFS=$as_save_IFS 16928 16929 ;; 16930 esac 16931 fi 16932 EXPECT=$ac_cv_path_EXPECT 16933 if test -n "$EXPECT"; then 16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 16935 $as_echo "$EXPECT" >&6; } 16936 else 16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16938 $as_echo "no" >&6; } 16939 fi 16940 16941 16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5 16943 $as_echo_n "checking for Tcl supporting try/catch... " >&6; } 16944 if ${ac_cv_libctf_tcl_try+:} false; then : 16945 $as_echo_n "(cached) " >&6 16946 else 16947 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF 16948 if [llength [info commands try]] then { puts yes } else { puts no } 16949 EOF 16950 fi` 16951 16952 fi 16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5 16954 $as_echo "$ac_cv_libctf_tcl_try" >&6; } 16955 16956 HAVE_TCL_TRY=false 16957 if test "${ac_cv_libctf_tcl_try}" = "yes"; then 16958 HAVE_TCL_TRY=true 16959 fi 16960 16961 16962 # Use a version script, if possible, or an -export-symbols-regex otherwise. 16963 # First figure out the version script flag: then massage the script, if 16964 # needed. 16965 decommented_version_script= 16966 no_version_script= 16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker versioning flags" >&5 16968 $as_echo_n "checking for linker versioning flags... " >&6; } 16969 if ${ac_cv_libctf_version_script+:} false; then : 16970 $as_echo_n "(cached) " >&6 16971 else 16972 echo 'FOO { global: mai*; local: ctf_fo*; };' > conftest.ver 16973 old_LDFLAGS="$LDFLAGS" 16974 old_CFLAGS="$CFLAGS" 16975 LDFLAGS="$LDFLAGS -shared -Wl,--version-script=conftest.ver" 16976 CFLAGS="$CFLAGS -fPIC" 16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16978 /* end confdefs.h. */ 16979 int ctf_foo (void) { return 0; } 16980 int main (void) { return ctf_foo(); } 16981 _ACEOF 16982 if ac_fn_c_try_link "$LINENO"; then : 16983 ac_cv_libctf_version_script="-Wl,--version-script" 16984 fi 16985 rm -f core conftest.err conftest.$ac_objext \ 16986 conftest$ac_exeext conftest.$ac_ext 16987 LDFLAGS="$old_LDFLAGS" 16988 16989 if test -z "$ac_cv_libctf_version_script"; then 16990 LDFLAGS="$LDFLAGS -shared -Wl,-B,local -Wl,-z,gnu-version-script=conftest.ver" 16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16992 /* end confdefs.h. */ 16993 int ctf_foo (void) { return 0; } 16994 int main (void) { return ctf_foo(); } 16995 _ACEOF 16996 if ac_fn_c_try_link "$LINENO"; then : 16997 ac_cv_libctf_version_script="-Wl,-B,local -Wl,-z,gnu-version-script" 16998 decommented_version_script=t 16999 fi 17000 rm -f core conftest.err conftest.$ac_objext \ 17001 conftest$ac_exeext conftest.$ac_ext 17002 LDFLAGS="$old_LDFLAGS" 17003 fi 17004 CFLAGS="$old_CFLAGS" 17005 17006 if test -z "$ac_cv_libctf_version_script"; then 17007 ac_cv_libctf_version_script='-export-symbols-regex ctf_.*' 17008 no_version_script=t 17009 fi 17010 rm -f conftest.ver 17011 fi 17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_version_script" >&5 17013 $as_echo "$ac_cv_libctf_version_script" >&6; } 17014 17015 # Ensure that no symbols exist in the version script for libctf-nobfd.so 17016 # that do not exist in the shared library itself, since some linkers (Solaris) 17017 # add such symbols with type NOTYPE, and others (LLVM) complain loudly 17018 # and fail to link. 17019 grep -v 'libctf only' $srcdir/libctf.ver > libctf-nobfd.ver 17020 17021 if test -n "$decommented_version_script"; then 17022 # Solaris's version scripts use shell-style comments rather than the C-style 17023 # used by GNU ld. Use cpp to strip the comments out. (cpp exists under this 17024 # name on all platforms that support ld -z gnu-version-script.) 17025 /lib/cpp < $srcdir/libctf.ver > libctf-decommented.ver 17026 /lib/cpp < libctf-nobfd.ver > libctf-nobfd-decommented.ver 17027 VERSION_FLAGS="$ac_cv_libctf_version_script='libctf-decommented.ver'" 17028 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd-decommented.ver'" 17029 elif test -z "$no_version_script"; then 17030 VERSION_FLAGS="$ac_cv_libctf_version_script='$srcdir/libctf.ver'" 17031 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd.ver'" 17032 else 17033 VERSION_FLAGS="$ac_cv_libctf_version_script" 17034 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script" 17035 fi 17036 17037 17038 17039 ac_config_files="$ac_config_files Makefile" 17040 17041 ac_config_headers="$ac_config_headers config.h" 17042 17043 cat >confcache <<\_ACEOF 17044 # This file is a shell script that caches the results of configure 17045 # tests run on this system so they can be shared between configure 17046 # scripts and configure runs, see configure's option --config-cache. 17047 # It is not useful on other systems. If it contains results you don't 17048 # want to keep, you may remove or edit it. 17049 # 17050 # config.status only pays attention to the cache file if you give it 17051 # the --recheck option to rerun configure. 17052 # 17053 # `ac_cv_env_foo' variables (set or unset) will be overridden when 17054 # loading this file, other *unset* `ac_cv_foo' will be assigned the 17055 # following values. 17056 17057 _ACEOF 17058 17059 # The following way of writing the cache mishandles newlines in values, 17060 # but we know of no workaround that is simple, portable, and efficient. 17061 # So, we kill variables containing newlines. 17062 # Ultrix sh set writes to stderr and can't be redirected directly, 17063 # and sets the high bit in the cache file unless we assign to the vars. 17064 ( 17065 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17066 eval ac_val=\$$ac_var 17067 case $ac_val in #( 17068 *${as_nl}*) 17069 case $ac_var in #( 17070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17072 esac 17073 case $ac_var in #( 17074 _ | IFS | as_nl) ;; #( 17075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17076 *) { eval $ac_var=; unset $ac_var;} ;; 17077 esac ;; 17078 esac 17079 done 17080 17081 (set) 2>&1 | 17082 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17083 *${as_nl}ac_space=\ *) 17084 # `set' does not quote correctly, so add quotes: double-quote 17085 # substitution turns \\\\ into \\, and sed turns \\ into \. 17086 sed -n \ 17087 "s/'/'\\\\''/g; 17088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17089 ;; #( 17090 *) 17091 # `set' quotes correctly as required by POSIX, so do not add quotes. 17092 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17093 ;; 17094 esac | 17095 sort 17096 ) | 17097 sed ' 17098 /^ac_cv_env_/b end 17099 t clear 17100 :clear 17101 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17102 t end 17103 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17104 :end' >>confcache 17105 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17106 if test -w "$cache_file"; then 17107 if test "x$cache_file" != "x/dev/null"; then 17108 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17109 $as_echo "$as_me: updating cache $cache_file" >&6;} 17110 if test ! -f "$cache_file" || test -h "$cache_file"; then 17111 cat confcache >"$cache_file" 17112 else 17113 case $cache_file in #( 17114 */* | ?:*) 17115 mv -f confcache "$cache_file"$$ && 17116 mv -f "$cache_file"$$ "$cache_file" ;; #( 17117 *) 17118 mv -f confcache "$cache_file" ;; 17119 esac 17120 fi 17121 fi 17122 else 17123 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17124 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17125 fi 17126 fi 17127 rm -f confcache 17128 17129 test "x$prefix" = xNONE && prefix=$ac_default_prefix 17130 # Let make expand exec_prefix. 17131 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17132 17133 DEFS=-DHAVE_CONFIG_H 17134 17135 ac_libobjs= 17136 ac_ltlibobjs= 17137 U= 17138 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17139 # 1. Remove the extension, and $U if already installed. 17140 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17141 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17142 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17143 # will be set to the directory where LIBOBJS objects are built. 17144 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17145 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17146 done 17147 LIBOBJS=$ac_libobjs 17148 17149 LTLIBOBJS=$ac_ltlibobjs 17150 17151 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17153 $as_echo_n "checking that generated files are newer than configure... " >&6; } 17154 if test -n "$am_sleep_pid"; then 17155 # Hide warnings about reused PIDs. 17156 wait $am_sleep_pid 2>/dev/null 17157 fi 17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17159 $as_echo "done" >&6; } 17160 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17161 as_fn_error $? "conditional \"AMDEP\" was never defined. 17162 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17163 fi 17164 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17165 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17166 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17167 fi 17168 if test -n "$EXEEXT"; then 17169 am__EXEEXT_TRUE= 17170 am__EXEEXT_FALSE='#' 17171 else 17172 am__EXEEXT_TRUE='#' 17173 am__EXEEXT_FALSE= 17174 fi 17175 17176 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17177 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17178 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17179 fi 17180 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 17181 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. 17182 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17183 fi 17184 if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_FALSE}"; then 17185 as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined. 17186 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17187 fi 17188 17189 if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then 17190 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined. 17191 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17192 fi 17193 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then 17194 as_fn_error $? "conditional \"BUILD_INFO\" was never defined. 17195 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17196 fi 17197 17198 : "${CONFIG_STATUS=./config.status}" 17199 ac_write_fail=0 17200 ac_clean_files_save=$ac_clean_files 17201 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17203 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17204 as_write_fail=0 17205 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17206 #! $SHELL 17207 # Generated by $as_me. 17208 # Run this file to recreate the current configuration. 17209 # Compiler output produced by configure, useful for debugging 17210 # configure, is in config.log if it exists. 17211 17212 debug=false 17213 ac_cs_recheck=false 17214 ac_cs_silent=false 17215 17216 SHELL=\${CONFIG_SHELL-$SHELL} 17217 export SHELL 17218 _ASEOF 17219 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17220 ## -------------------- ## 17221 ## M4sh Initialization. ## 17222 ## -------------------- ## 17223 17224 # Be more Bourne compatible 17225 DUALCASE=1; export DUALCASE # for MKS sh 17226 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17227 emulate sh 17228 NULLCMD=: 17229 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17230 # is contrary to our usage. Disable this feature. 17231 alias -g '${1+"$@"}'='"$@"' 17232 setopt NO_GLOB_SUBST 17233 else 17234 case `(set -o) 2>/dev/null` in #( 17235 *posix*) : 17236 set -o posix ;; #( 17237 *) : 17238 ;; 17239 esac 17240 fi 17241 17242 17243 as_nl=' 17244 ' 17245 export as_nl 17246 # Printing a long string crashes Solaris 7 /usr/bin/printf. 17247 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17248 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17249 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17250 # Prefer a ksh shell builtin over an external printf program on Solaris, 17251 # but without wasting forks for bash or zsh. 17252 if test -z "$BASH_VERSION$ZSH_VERSION" \ 17253 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17254 as_echo='print -r --' 17255 as_echo_n='print -rn --' 17256 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17257 as_echo='printf %s\n' 17258 as_echo_n='printf %s' 17259 else 17260 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17261 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17262 as_echo_n='/usr/ucb/echo -n' 17263 else 17264 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17265 as_echo_n_body='eval 17266 arg=$1; 17267 case $arg in #( 17268 *"$as_nl"*) 17269 expr "X$arg" : "X\\(.*\\)$as_nl"; 17270 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17271 esac; 17272 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17273 ' 17274 export as_echo_n_body 17275 as_echo_n='sh -c $as_echo_n_body as_echo' 17276 fi 17277 export as_echo_body 17278 as_echo='sh -c $as_echo_body as_echo' 17279 fi 17280 17281 # The user is always right. 17282 if test "${PATH_SEPARATOR+set}" != set; then 17283 PATH_SEPARATOR=: 17284 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17285 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17286 PATH_SEPARATOR=';' 17287 } 17288 fi 17289 17290 17291 # IFS 17292 # We need space, tab and new line, in precisely that order. Quoting is 17293 # there to prevent editors from complaining about space-tab. 17294 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 17295 # splitting by setting IFS to empty value.) 17296 IFS=" "" $as_nl" 17297 17298 # Find who we are. Look in the path if we contain no directory separator. 17299 as_myself= 17300 case $0 in #(( 17301 *[\\/]* ) as_myself=$0 ;; 17302 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17303 for as_dir in $PATH 17304 do 17305 IFS=$as_save_IFS 17306 test -z "$as_dir" && as_dir=. 17307 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17308 done 17309 IFS=$as_save_IFS 17310 17311 ;; 17312 esac 17313 # We did not find ourselves, most probably we were run as `sh COMMAND' 17314 # in which case we are not to be found in the path. 17315 if test "x$as_myself" = x; then 17316 as_myself=$0 17317 fi 17318 if test ! -f "$as_myself"; then 17319 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17320 exit 1 17321 fi 17322 17323 # Unset variables that we do not need and which cause bugs (e.g. in 17324 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17325 # suppresses any "Segmentation fault" message there. '((' could 17326 # trigger a bug in pdksh 5.2.14. 17327 for as_var in BASH_ENV ENV MAIL MAILPATH 17328 do eval test x\${$as_var+set} = xset \ 17329 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17330 done 17331 PS1='$ ' 17332 PS2='> ' 17333 PS4='+ ' 17334 17335 # NLS nuisances. 17336 LC_ALL=C 17337 export LC_ALL 17338 LANGUAGE=C 17339 export LANGUAGE 17340 17341 # CDPATH. 17342 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17343 17344 17345 # as_fn_error STATUS ERROR [LINENO LOG_FD] 17346 # ---------------------------------------- 17347 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17348 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17349 # script with STATUS, using 1 if that was 0. 17350 as_fn_error () 17351 { 17352 as_status=$1; test $as_status -eq 0 && as_status=1 17353 if test "$4"; then 17354 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17355 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17356 fi 17357 $as_echo "$as_me: error: $2" >&2 17358 as_fn_exit $as_status 17359 } # as_fn_error 17360 17361 17362 # as_fn_set_status STATUS 17363 # ----------------------- 17364 # Set $? to STATUS, without forking. 17365 as_fn_set_status () 17366 { 17367 return $1 17368 } # as_fn_set_status 17369 17370 # as_fn_exit STATUS 17371 # ----------------- 17372 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17373 as_fn_exit () 17374 { 17375 set +e 17376 as_fn_set_status $1 17377 exit $1 17378 } # as_fn_exit 17379 17380 # as_fn_unset VAR 17381 # --------------- 17382 # Portably unset VAR. 17383 as_fn_unset () 17384 { 17385 { eval $1=; unset $1;} 17386 } 17387 as_unset=as_fn_unset 17388 # as_fn_append VAR VALUE 17389 # ---------------------- 17390 # Append the text in VALUE to the end of the definition contained in VAR. Take 17391 # advantage of any shell optimizations that allow amortized linear growth over 17392 # repeated appends, instead of the typical quadratic growth present in naive 17393 # implementations. 17394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17395 eval 'as_fn_append () 17396 { 17397 eval $1+=\$2 17398 }' 17399 else 17400 as_fn_append () 17401 { 17402 eval $1=\$$1\$2 17403 } 17404 fi # as_fn_append 17405 17406 # as_fn_arith ARG... 17407 # ------------------ 17408 # Perform arithmetic evaluation on the ARGs, and store the result in the 17409 # global $as_val. Take advantage of shells that can avoid forks. The arguments 17410 # must be portable across $(()) and expr. 17411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17412 eval 'as_fn_arith () 17413 { 17414 as_val=$(( $* )) 17415 }' 17416 else 17417 as_fn_arith () 17418 { 17419 as_val=`expr "$@" || test $? -eq 1` 17420 } 17421 fi # as_fn_arith 17422 17423 17424 if expr a : '\(a\)' >/dev/null 2>&1 && 17425 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17426 as_expr=expr 17427 else 17428 as_expr=false 17429 fi 17430 17431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17432 as_basename=basename 17433 else 17434 as_basename=false 17435 fi 17436 17437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17438 as_dirname=dirname 17439 else 17440 as_dirname=false 17441 fi 17442 17443 as_me=`$as_basename -- "$0" || 17444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17445 X"$0" : 'X\(//\)$' \| \ 17446 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17447 $as_echo X/"$0" | 17448 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17449 s//\1/ 17450 q 17451 } 17452 /^X\/\(\/\/\)$/{ 17453 s//\1/ 17454 q 17455 } 17456 /^X\/\(\/\).*/{ 17457 s//\1/ 17458 q 17459 } 17460 s/.*/./; q'` 17461 17462 # Avoid depending upon Character Ranges. 17463 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17466 as_cr_digits='0123456789' 17467 as_cr_alnum=$as_cr_Letters$as_cr_digits 17468 17469 ECHO_C= ECHO_N= ECHO_T= 17470 case `echo -n x` in #((((( 17471 -n*) 17472 case `echo 'xy\c'` in 17473 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17474 xy) ECHO_C='\c';; 17475 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17476 ECHO_T=' ';; 17477 esac;; 17478 *) 17479 ECHO_N='-n';; 17480 esac 17481 17482 rm -f conf$$ conf$$.exe conf$$.file 17483 if test -d conf$$.dir; then 17484 rm -f conf$$.dir/conf$$.file 17485 else 17486 rm -f conf$$.dir 17487 mkdir conf$$.dir 2>/dev/null 17488 fi 17489 if (echo >conf$$.file) 2>/dev/null; then 17490 if ln -s conf$$.file conf$$ 2>/dev/null; then 17491 as_ln_s='ln -s' 17492 # ... but there are two gotchas: 17493 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17494 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17495 # In both cases, we have to default to `cp -pR'. 17496 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17497 as_ln_s='cp -pR' 17498 elif ln conf$$.file conf$$ 2>/dev/null; then 17499 as_ln_s=ln 17500 else 17501 as_ln_s='cp -pR' 17502 fi 17503 else 17504 as_ln_s='cp -pR' 17505 fi 17506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17507 rmdir conf$$.dir 2>/dev/null 17508 17509 17510 # as_fn_mkdir_p 17511 # ------------- 17512 # Create "$as_dir" as a directory, including parents if necessary. 17513 as_fn_mkdir_p () 17514 { 17515 17516 case $as_dir in #( 17517 -*) as_dir=./$as_dir;; 17518 esac 17519 test -d "$as_dir" || eval $as_mkdir_p || { 17520 as_dirs= 17521 while :; do 17522 case $as_dir in #( 17523 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17524 *) as_qdir=$as_dir;; 17525 esac 17526 as_dirs="'$as_qdir' $as_dirs" 17527 as_dir=`$as_dirname -- "$as_dir" || 17528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17529 X"$as_dir" : 'X\(//\)[^/]' \| \ 17530 X"$as_dir" : 'X\(//\)$' \| \ 17531 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17532 $as_echo X"$as_dir" | 17533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17534 s//\1/ 17535 q 17536 } 17537 /^X\(\/\/\)[^/].*/{ 17538 s//\1/ 17539 q 17540 } 17541 /^X\(\/\/\)$/{ 17542 s//\1/ 17543 q 17544 } 17545 /^X\(\/\).*/{ 17546 s//\1/ 17547 q 17548 } 17549 s/.*/./; q'` 17550 test -d "$as_dir" && break 17551 done 17552 test -z "$as_dirs" || eval "mkdir $as_dirs" 17553 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17554 17555 17556 } # as_fn_mkdir_p 17557 if mkdir -p . 2>/dev/null; then 17558 as_mkdir_p='mkdir -p "$as_dir"' 17559 else 17560 test -d ./-p && rmdir ./-p 17561 as_mkdir_p=false 17562 fi 17563 17564 17565 # as_fn_executable_p FILE 17566 # ----------------------- 17567 # Test if FILE is an executable regular file. 17568 as_fn_executable_p () 17569 { 17570 test -f "$1" && test -x "$1" 17571 } # as_fn_executable_p 17572 as_test_x='test -x' 17573 as_executable_p=as_fn_executable_p 17574 17575 # Sed expression to map a string onto a valid CPP name. 17576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17577 17578 # Sed expression to map a string onto a valid variable name. 17579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17580 17581 17582 exec 6>&1 17583 ## ----------------------------------- ## 17584 ## Main body of $CONFIG_STATUS script. ## 17585 ## ----------------------------------- ## 17586 _ASEOF 17587 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17588 17589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17590 # Save the log message, to keep $0 and so on meaningful, and to 17591 # report actual input values of CONFIG_FILES etc. instead of their 17592 # values after options handling. 17593 ac_log=" 17594 This file was extended by libctf $as_me 1.2.0, which was 17595 generated by GNU Autoconf 2.69. Invocation command line was 17596 17597 CONFIG_FILES = $CONFIG_FILES 17598 CONFIG_HEADERS = $CONFIG_HEADERS 17599 CONFIG_LINKS = $CONFIG_LINKS 17600 CONFIG_COMMANDS = $CONFIG_COMMANDS 17601 $ $0 $@ 17602 17603 on `(hostname || uname -n) 2>/dev/null | sed 1q` 17604 " 17605 17606 _ACEOF 17607 17608 case $ac_config_files in *" 17609 "*) set x $ac_config_files; shift; ac_config_files=$*;; 17610 esac 17611 17612 case $ac_config_headers in *" 17613 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17614 esac 17615 17616 17617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17618 # Files that config.status was made for. 17619 config_files="$ac_config_files" 17620 config_headers="$ac_config_headers" 17621 config_commands="$ac_config_commands" 17622 17623 _ACEOF 17624 17625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17626 ac_cs_usage="\ 17627 \`$as_me' instantiates files and other configuration actions 17628 from templates according to the current configuration. Unless the files 17629 and actions are specified as TAGs, all are instantiated by default. 17630 17631 Usage: $0 [OPTION]... [TAG]... 17632 17633 -h, --help print this help, then exit 17634 -V, --version print version number and configuration settings, then exit 17635 --config print configuration, then exit 17636 -q, --quiet, --silent 17637 do not print progress messages 17638 -d, --debug don't remove temporary files 17639 --recheck update $as_me by reconfiguring in the same conditions 17640 --file=FILE[:TEMPLATE] 17641 instantiate the configuration file FILE 17642 --header=FILE[:TEMPLATE] 17643 instantiate the configuration header FILE 17644 17645 Configuration files: 17646 $config_files 17647 17648 Configuration headers: 17649 $config_headers 17650 17651 Configuration commands: 17652 $config_commands 17653 17654 Report bugs to the package provider." 17655 17656 _ACEOF 17657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17658 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17659 ac_cs_version="\\ 17660 libctf config.status 1.2.0 17661 configured by $0, generated by GNU Autoconf 2.69, 17662 with options \\"\$ac_cs_config\\" 17663 17664 Copyright (C) 2012 Free Software Foundation, Inc. 17665 This config.status script is free software; the Free Software Foundation 17666 gives unlimited permission to copy, distribute and modify it." 17667 17668 ac_pwd='$ac_pwd' 17669 srcdir='$srcdir' 17670 INSTALL='$INSTALL' 17671 MKDIR_P='$MKDIR_P' 17672 AWK='$AWK' 17673 test -n "\$AWK" || AWK=awk 17674 _ACEOF 17675 17676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17677 # The default lists apply if the user does not specify any file. 17678 ac_need_defaults=: 17679 while test $# != 0 17680 do 17681 case $1 in 17682 --*=?*) 17683 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17684 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17685 ac_shift=: 17686 ;; 17687 --*=) 17688 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17689 ac_optarg= 17690 ac_shift=: 17691 ;; 17692 *) 17693 ac_option=$1 17694 ac_optarg=$2 17695 ac_shift=shift 17696 ;; 17697 esac 17698 17699 case $ac_option in 17700 # Handling of the options. 17701 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17702 ac_cs_recheck=: ;; 17703 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17704 $as_echo "$ac_cs_version"; exit ;; 17705 --config | --confi | --conf | --con | --co | --c ) 17706 $as_echo "$ac_cs_config"; exit ;; 17707 --debug | --debu | --deb | --de | --d | -d ) 17708 debug=: ;; 17709 --file | --fil | --fi | --f ) 17710 $ac_shift 17711 case $ac_optarg in 17712 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17713 '') as_fn_error $? "missing file argument" ;; 17714 esac 17715 as_fn_append CONFIG_FILES " '$ac_optarg'" 17716 ac_need_defaults=false;; 17717 --header | --heade | --head | --hea ) 17718 $ac_shift 17719 case $ac_optarg in 17720 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17721 esac 17722 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17723 ac_need_defaults=false;; 17724 --he | --h) 17725 # Conflict between --help and --header 17726 as_fn_error $? "ambiguous option: \`$1' 17727 Try \`$0 --help' for more information.";; 17728 --help | --hel | -h ) 17729 $as_echo "$ac_cs_usage"; exit ;; 17730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17731 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17732 ac_cs_silent=: ;; 17733 17734 # This is an error. 17735 -*) as_fn_error $? "unrecognized option: \`$1' 17736 Try \`$0 --help' for more information." ;; 17737 17738 *) as_fn_append ac_config_targets " $1" 17739 ac_need_defaults=false ;; 17740 17741 esac 17742 shift 17743 done 17744 17745 ac_configure_extra_args= 17746 17747 if $ac_cs_silent; then 17748 exec 6>/dev/null 17749 ac_configure_extra_args="$ac_configure_extra_args --silent" 17750 fi 17751 17752 _ACEOF 17753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17754 if \$ac_cs_recheck; then 17755 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17756 shift 17757 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17758 CONFIG_SHELL='$SHELL' 17759 export CONFIG_SHELL 17760 exec "\$@" 17761 fi 17762 17763 _ACEOF 17764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17765 exec 5>>config.log 17766 { 17767 echo 17768 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17769 ## Running $as_me. ## 17770 _ASBOX 17771 $as_echo "$ac_log" 17772 } >&5 17773 17774 _ACEOF 17775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17776 # 17777 # INIT-COMMANDS 17778 # 17779 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17780 # Capture the value of obsolete ALL_LINGUAS because we need it to compute 17781 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 17782 # from automake. 17783 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 17784 # Capture the value of LINGUAS because we need it to compute CATALOGS. 17785 LINGUAS="${LINGUAS-%UNSET%}" 17786 17787 17788 17789 # The HP-UX ksh and POSIX shell print the target directory to stdout 17790 # if CDPATH is set. 17791 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17792 17793 sed_quote_subst='$sed_quote_subst' 17794 double_quote_subst='$double_quote_subst' 17795 delay_variable_subst='$delay_variable_subst' 17796 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17797 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17798 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17799 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17800 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17801 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17802 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17803 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17804 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17805 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17806 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17807 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17808 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17809 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17810 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17811 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17812 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17813 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17814 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17815 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17816 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17817 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17818 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17819 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17820 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17821 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17822 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17823 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17824 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17825 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17826 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17827 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17828 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17829 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17830 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17831 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17832 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17833 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17834 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17835 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17836 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17837 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17838 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17839 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17840 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17841 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17842 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17843 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17844 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 17845 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17846 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17847 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17848 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17849 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17850 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17851 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17852 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17853 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17854 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17855 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17856 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17857 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17858 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17859 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17860 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17861 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17862 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17863 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17864 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17865 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17866 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17867 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17868 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17869 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17870 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17871 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17872 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17873 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17874 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17875 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17876 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 17877 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17878 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17879 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17880 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17881 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17882 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17883 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17884 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17885 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 17886 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17887 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17888 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17889 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17890 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17891 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17892 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17893 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17894 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17895 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17896 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17897 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17898 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17899 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17900 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17901 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17902 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17903 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17904 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17905 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17906 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17907 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17908 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17909 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17910 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17911 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17912 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17913 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17914 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17915 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17916 17917 LTCC='$LTCC' 17918 LTCFLAGS='$LTCFLAGS' 17919 compiler='$compiler_DEFAULT' 17920 17921 # A function that is used when there is no print builtin or printf. 17922 func_fallback_echo () 17923 { 17924 eval 'cat <<_LTECHO_EOF 17925 \$1 17926 _LTECHO_EOF' 17927 } 17928 17929 # Quote evaled strings. 17930 for var in SHELL \ 17931 ECHO \ 17932 SED \ 17933 GREP \ 17934 EGREP \ 17935 FGREP \ 17936 LD \ 17937 NM \ 17938 LN_S \ 17939 lt_SP2NL \ 17940 lt_NL2SP \ 17941 reload_flag \ 17942 OBJDUMP \ 17943 deplibs_check_method \ 17944 file_magic_cmd \ 17945 AR \ 17946 AR_FLAGS \ 17947 STRIP \ 17948 RANLIB \ 17949 CC \ 17950 CFLAGS \ 17951 compiler \ 17952 lt_cv_sys_global_symbol_pipe \ 17953 lt_cv_sys_global_symbol_to_cdecl \ 17954 lt_cv_sys_global_symbol_to_c_name_address \ 17955 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17956 lt_prog_compiler_no_builtin_flag \ 17957 lt_prog_compiler_wl \ 17958 lt_prog_compiler_pic \ 17959 lt_prog_compiler_static \ 17960 lt_cv_prog_compiler_c_o \ 17961 need_locks \ 17962 DSYMUTIL \ 17963 NMEDIT \ 17964 LIPO \ 17965 OTOOL \ 17966 OTOOL64 \ 17967 shrext_cmds \ 17968 export_dynamic_flag_spec \ 17969 whole_archive_flag_spec \ 17970 compiler_needs_object \ 17971 with_gnu_ld \ 17972 allow_undefined_flag \ 17973 no_undefined_flag \ 17974 hardcode_libdir_flag_spec \ 17975 hardcode_libdir_flag_spec_ld \ 17976 hardcode_libdir_separator \ 17977 fix_srcfile_path \ 17978 exclude_expsyms \ 17979 include_expsyms \ 17980 file_list_spec \ 17981 variables_saved_for_relink \ 17982 libname_spec \ 17983 library_names_spec \ 17984 soname_spec \ 17985 install_override_mode \ 17986 finish_eval \ 17987 old_striplib \ 17988 striplib; do 17989 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17990 *[\\\\\\\`\\"\\\$]*) 17991 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17992 ;; 17993 *) 17994 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17995 ;; 17996 esac 17997 done 17998 17999 # Double-quote double-evaled strings. 18000 for var in reload_cmds \ 18001 old_postinstall_cmds \ 18002 old_postuninstall_cmds \ 18003 old_archive_cmds \ 18004 extract_expsyms_cmds \ 18005 old_archive_from_new_cmds \ 18006 old_archive_from_expsyms_cmds \ 18007 archive_cmds \ 18008 archive_expsym_cmds \ 18009 module_cmds \ 18010 module_expsym_cmds \ 18011 export_symbols_cmds \ 18012 prelink_cmds \ 18013 postinstall_cmds \ 18014 postuninstall_cmds \ 18015 finish_cmds \ 18016 sys_lib_search_path_spec \ 18017 sys_lib_dlsearch_path_spec; do 18018 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18019 *[\\\\\\\`\\"\\\$]*) 18020 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18021 ;; 18022 *) 18023 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18024 ;; 18025 esac 18026 done 18027 18028 ac_aux_dir='$ac_aux_dir' 18029 xsi_shell='$xsi_shell' 18030 lt_shell_append='$lt_shell_append' 18031 18032 # See if we are running on zsh, and set the options which allow our 18033 # commands through without removal of \ escapes INIT. 18034 if test -n "\${ZSH_VERSION+set}" ; then 18035 setopt NO_GLOB_SUBST 18036 fi 18037 18038 18039 PACKAGE='$PACKAGE' 18040 VERSION='$VERSION' 18041 TIMESTAMP='$TIMESTAMP' 18042 RM='$RM' 18043 ofile='$ofile' 18044 18045 ac_aux_dir='$ac_aux_dir' 18046 18047 18048 18049 _ACEOF 18050 18051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18052 18053 # Handling of arguments. 18054 for ac_config_target in $ac_config_targets 18055 do 18056 case $ac_config_target in 18057 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18058 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 18059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18060 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18061 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18062 18063 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18064 esac 18065 done 18066 18067 18068 # If the user did not use the arguments to specify the items to instantiate, 18069 # then the envvar interface is used. Set only those that are not. 18070 # We use the long form for the default assignment because of an extremely 18071 # bizarre bug on SunOS 4.1.3. 18072 if $ac_need_defaults; then 18073 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18074 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18075 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18076 fi 18077 18078 # Have a temporary directory for convenience. Make it in the build tree 18079 # simply because there is no reason against having it here, and in addition, 18080 # creating and moving files from /tmp can sometimes cause problems. 18081 # Hook for its removal unless debugging. 18082 # Note that there is a small window in which the directory will not be cleaned: 18083 # after its creation but before its name has been assigned to `$tmp'. 18084 $debug || 18085 { 18086 tmp= ac_tmp= 18087 trap 'exit_status=$? 18088 : "${ac_tmp:=$tmp}" 18089 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18090 ' 0 18091 trap 'as_fn_exit 1' 1 2 13 15 18092 } 18093 # Create a (secure) tmp directory for tmp files. 18094 18095 { 18096 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18097 test -d "$tmp" 18098 } || 18099 { 18100 tmp=./conf$$-$RANDOM 18101 (umask 077 && mkdir "$tmp") 18102 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18103 ac_tmp=$tmp 18104 18105 # Set up the scripts for CONFIG_FILES section. 18106 # No need to generate them if there are no CONFIG_FILES. 18107 # This happens for instance with `./config.status config.h'. 18108 if test -n "$CONFIG_FILES"; then 18109 18110 18111 ac_cr=`echo X | tr X '\015'` 18112 # On cygwin, bash can eat \r inside `` if the user requested igncr. 18113 # But we know of no other shell where ac_cr would be empty at this 18114 # point, so we can use a bashism as a fallback. 18115 if test "x$ac_cr" = x; then 18116 eval ac_cr=\$\'\\r\' 18117 fi 18118 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18119 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18120 ac_cs_awk_cr='\\r' 18121 else 18122 ac_cs_awk_cr=$ac_cr 18123 fi 18124 18125 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18126 _ACEOF 18127 18128 18129 { 18130 echo "cat >conf$$subs.awk <<_ACEOF" && 18131 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18132 echo "_ACEOF" 18133 } >conf$$subs.sh || 18134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18135 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18136 ac_delim='%!_!# ' 18137 for ac_last_try in false false false false false :; do 18138 . ./conf$$subs.sh || 18139 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18140 18141 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18142 if test $ac_delim_n = $ac_delim_num; then 18143 break 18144 elif $ac_last_try; then 18145 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18146 else 18147 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18148 fi 18149 done 18150 rm -f conf$$subs.sh 18151 18152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18153 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18154 _ACEOF 18155 sed -n ' 18156 h 18157 s/^/S["/; s/!.*/"]=/ 18158 p 18159 g 18160 s/^[^!]*!// 18161 :repl 18162 t repl 18163 s/'"$ac_delim"'$// 18164 t delim 18165 :nl 18166 h 18167 s/\(.\{148\}\)..*/\1/ 18168 t more1 18169 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18170 p 18171 n 18172 b repl 18173 :more1 18174 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18175 p 18176 g 18177 s/.\{148\}// 18178 t nl 18179 :delim 18180 h 18181 s/\(.\{148\}\)..*/\1/ 18182 t more2 18183 s/["\\]/\\&/g; s/^/"/; s/$/"/ 18184 p 18185 b 18186 :more2 18187 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18188 p 18189 g 18190 s/.\{148\}// 18191 t delim 18192 ' <conf$$subs.awk | sed ' 18193 /^[^""]/{ 18194 N 18195 s/\n// 18196 } 18197 ' >>$CONFIG_STATUS || ac_write_fail=1 18198 rm -f conf$$subs.awk 18199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18200 _ACAWK 18201 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18202 for (key in S) S_is_set[key] = 1 18203 FS = "" 18204 18205 } 18206 { 18207 line = $ 0 18208 nfields = split(line, field, "@") 18209 substed = 0 18210 len = length(field[1]) 18211 for (i = 2; i < nfields; i++) { 18212 key = field[i] 18213 keylen = length(key) 18214 if (S_is_set[key]) { 18215 value = S[key] 18216 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18217 len += length(value) + length(field[++i]) 18218 substed = 1 18219 } else 18220 len += 1 + keylen 18221 } 18222 18223 print line 18224 } 18225 18226 _ACAWK 18227 _ACEOF 18228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18229 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18230 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18231 else 18232 cat 18233 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18234 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18235 _ACEOF 18236 18237 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18238 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18239 # trailing colons and then remove the whole line if VPATH becomes empty 18240 # (actually we leave an empty line to preserve line numbers). 18241 if test "x$srcdir" = x.; then 18242 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18243 h 18244 s/// 18245 s/^/:/ 18246 s/[ ]*$/:/ 18247 s/:\$(srcdir):/:/g 18248 s/:\${srcdir}:/:/g 18249 s/:@srcdir@:/:/g 18250 s/^:*// 18251 s/:*$// 18252 x 18253 s/\(=[ ]*\).*/\1/ 18254 G 18255 s/\n// 18256 s/^[^=]*=[ ]*$// 18257 }' 18258 fi 18259 18260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18261 fi # test -n "$CONFIG_FILES" 18262 18263 # Set up the scripts for CONFIG_HEADERS section. 18264 # No need to generate them if there are no CONFIG_HEADERS. 18265 # This happens for instance with `./config.status Makefile'. 18266 if test -n "$CONFIG_HEADERS"; then 18267 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18268 BEGIN { 18269 _ACEOF 18270 18271 # Transform confdefs.h into an awk script `defines.awk', embedded as 18272 # here-document in config.status, that substitutes the proper values into 18273 # config.h.in to produce config.h. 18274 18275 # Create a delimiter string that does not exist in confdefs.h, to ease 18276 # handling of long lines. 18277 ac_delim='%!_!# ' 18278 for ac_last_try in false false :; do 18279 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18280 if test -z "$ac_tt"; then 18281 break 18282 elif $ac_last_try; then 18283 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18284 else 18285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18286 fi 18287 done 18288 18289 # For the awk script, D is an array of macro values keyed by name, 18290 # likewise P contains macro parameters if any. Preserve backslash 18291 # newline sequences. 18292 18293 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18294 sed -n ' 18295 s/.\{148\}/&'"$ac_delim"'/g 18296 t rset 18297 :rset 18298 s/^[ ]*#[ ]*define[ ][ ]*/ / 18299 t def 18300 d 18301 :def 18302 s/\\$// 18303 t bsnl 18304 s/["\\]/\\&/g 18305 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18306 D["\1"]=" \3"/p 18307 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18308 d 18309 :bsnl 18310 s/["\\]/\\&/g 18311 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18312 D["\1"]=" \3\\\\\\n"\\/p 18313 t cont 18314 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18315 t cont 18316 d 18317 :cont 18318 n 18319 s/.\{148\}/&'"$ac_delim"'/g 18320 t clear 18321 :clear 18322 s/\\$// 18323 t bsnlc 18324 s/["\\]/\\&/g; s/^/"/; s/$/"/p 18325 d 18326 :bsnlc 18327 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18328 b cont 18329 ' <confdefs.h | sed ' 18330 s/'"$ac_delim"'/"\\\ 18331 "/g' >>$CONFIG_STATUS || ac_write_fail=1 18332 18333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18334 for (key in D) D_is_set[key] = 1 18335 FS = "" 18336 } 18337 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18338 line = \$ 0 18339 split(line, arg, " ") 18340 if (arg[1] == "#") { 18341 defundef = arg[2] 18342 mac1 = arg[3] 18343 } else { 18344 defundef = substr(arg[1], 2) 18345 mac1 = arg[2] 18346 } 18347 split(mac1, mac2, "(") #) 18348 macro = mac2[1] 18349 prefix = substr(line, 1, index(line, defundef) - 1) 18350 if (D_is_set[macro]) { 18351 # Preserve the white space surrounding the "#". 18352 print prefix "define", macro P[macro] D[macro] 18353 next 18354 } else { 18355 # Replace #undef with comments. This is necessary, for example, 18356 # in the case of _POSIX_SOURCE, which is predefined and required 18357 # on some systems where configure will not decide to define it. 18358 if (defundef == "undef") { 18359 print "/*", prefix defundef, macro, "*/" 18360 next 18361 } 18362 } 18363 } 18364 { print } 18365 _ACAWK 18366 _ACEOF 18367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18368 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18369 fi # test -n "$CONFIG_HEADERS" 18370 18371 18372 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18373 shift 18374 for ac_tag 18375 do 18376 case $ac_tag in 18377 :[FHLC]) ac_mode=$ac_tag; continue;; 18378 esac 18379 case $ac_mode$ac_tag in 18380 :[FHL]*:*);; 18381 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18382 :[FH]-) ac_tag=-:-;; 18383 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18384 esac 18385 ac_save_IFS=$IFS 18386 IFS=: 18387 set x $ac_tag 18388 IFS=$ac_save_IFS 18389 shift 18390 ac_file=$1 18391 shift 18392 18393 case $ac_mode in 18394 :L) ac_source=$1;; 18395 :[FH]) 18396 ac_file_inputs= 18397 for ac_f 18398 do 18399 case $ac_f in 18400 -) ac_f="$ac_tmp/stdin";; 18401 *) # Look for the file first in the build tree, then in the source tree 18402 # (if the path is not absolute). The absolute path cannot be DOS-style, 18403 # because $ac_f cannot contain `:'. 18404 test -f "$ac_f" || 18405 case $ac_f in 18406 [\\/$]*) false;; 18407 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18408 esac || 18409 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18410 esac 18411 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18412 as_fn_append ac_file_inputs " '$ac_f'" 18413 done 18414 18415 # Let's still pretend it is `configure' which instantiates (i.e., don't 18416 # use $as_me), people would be surprised to read: 18417 # /* config.h. Generated by config.status. */ 18418 configure_input='Generated from '` 18419 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18420 `' by configure.' 18421 if test x"$ac_file" != x-; then 18422 configure_input="$ac_file. $configure_input" 18423 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18424 $as_echo "$as_me: creating $ac_file" >&6;} 18425 fi 18426 # Neutralize special characters interpreted by sed in replacement strings. 18427 case $configure_input in #( 18428 *\&* | *\|* | *\\* ) 18429 ac_sed_conf_input=`$as_echo "$configure_input" | 18430 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18431 *) ac_sed_conf_input=$configure_input;; 18432 esac 18433 18434 case $ac_tag in 18435 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18437 esac 18438 ;; 18439 esac 18440 18441 ac_dir=`$as_dirname -- "$ac_file" || 18442 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18443 X"$ac_file" : 'X\(//\)[^/]' \| \ 18444 X"$ac_file" : 'X\(//\)$' \| \ 18445 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18446 $as_echo X"$ac_file" | 18447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18448 s//\1/ 18449 q 18450 } 18451 /^X\(\/\/\)[^/].*/{ 18452 s//\1/ 18453 q 18454 } 18455 /^X\(\/\/\)$/{ 18456 s//\1/ 18457 q 18458 } 18459 /^X\(\/\).*/{ 18460 s//\1/ 18461 q 18462 } 18463 s/.*/./; q'` 18464 as_dir="$ac_dir"; as_fn_mkdir_p 18465 ac_builddir=. 18466 18467 case "$ac_dir" in 18468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18469 *) 18470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18471 # A ".." for each directory in $ac_dir_suffix. 18472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18473 case $ac_top_builddir_sub in 18474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18476 esac ;; 18477 esac 18478 ac_abs_top_builddir=$ac_pwd 18479 ac_abs_builddir=$ac_pwd$ac_dir_suffix 18480 # for backward compatibility: 18481 ac_top_builddir=$ac_top_build_prefix 18482 18483 case $srcdir in 18484 .) # We are building in place. 18485 ac_srcdir=. 18486 ac_top_srcdir=$ac_top_builddir_sub 18487 ac_abs_top_srcdir=$ac_pwd ;; 18488 [\\/]* | ?:[\\/]* ) # Absolute name. 18489 ac_srcdir=$srcdir$ac_dir_suffix; 18490 ac_top_srcdir=$srcdir 18491 ac_abs_top_srcdir=$srcdir ;; 18492 *) # Relative name. 18493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18494 ac_top_srcdir=$ac_top_build_prefix$srcdir 18495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18496 esac 18497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18498 18499 18500 case $ac_mode in 18501 :F) 18502 # 18503 # CONFIG_FILE 18504 # 18505 18506 case $INSTALL in 18507 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18508 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18509 esac 18510 ac_MKDIR_P=$MKDIR_P 18511 case $MKDIR_P in 18512 [\\/$]* | ?:[\\/]* ) ;; 18513 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18514 esac 18515 _ACEOF 18516 18517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18518 # If the template does not know about datarootdir, expand it. 18519 # FIXME: This hack should be removed a few years after 2.60. 18520 ac_datarootdir_hack=; ac_datarootdir_seen= 18521 ac_sed_dataroot=' 18522 /datarootdir/ { 18523 p 18524 q 18525 } 18526 /@datadir@/p 18527 /@docdir@/p 18528 /@infodir@/p 18529 /@localedir@/p 18530 /@mandir@/p' 18531 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18532 *datarootdir*) ac_datarootdir_seen=yes;; 18533 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18535 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18536 _ACEOF 18537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18538 ac_datarootdir_hack=' 18539 s&@datadir@&$datadir&g 18540 s&@docdir@&$docdir&g 18541 s&@infodir@&$infodir&g 18542 s&@localedir@&$localedir&g 18543 s&@mandir@&$mandir&g 18544 s&\\\${datarootdir}&$datarootdir&g' ;; 18545 esac 18546 _ACEOF 18547 18548 # Neutralize VPATH when `$srcdir' = `.'. 18549 # Shell code in configure.ac might set extrasub. 18550 # FIXME: do we really want to maintain this feature? 18551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18552 ac_sed_extra="$ac_vpsub 18553 $extrasub 18554 _ACEOF 18555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18556 :t 18557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18558 s|@configure_input@|$ac_sed_conf_input|;t t 18559 s&@top_builddir@&$ac_top_builddir_sub&;t t 18560 s&@top_build_prefix@&$ac_top_build_prefix&;t t 18561 s&@srcdir@&$ac_srcdir&;t t 18562 s&@abs_srcdir@&$ac_abs_srcdir&;t t 18563 s&@top_srcdir@&$ac_top_srcdir&;t t 18564 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18565 s&@builddir@&$ac_builddir&;t t 18566 s&@abs_builddir@&$ac_abs_builddir&;t t 18567 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18568 s&@INSTALL@&$ac_INSTALL&;t t 18569 s&@MKDIR_P@&$ac_MKDIR_P&;t t 18570 $ac_datarootdir_hack 18571 " 18572 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18573 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18574 18575 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18576 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18577 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18578 "$ac_tmp/out"`; test -z "$ac_out"; } && 18579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18580 which seems to be undefined. Please make sure it is defined" >&5 18581 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18582 which seems to be undefined. Please make sure it is defined" >&2;} 18583 18584 rm -f "$ac_tmp/stdin" 18585 case $ac_file in 18586 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18587 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18588 esac \ 18589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18590 ;; 18591 :H) 18592 # 18593 # CONFIG_HEADER 18594 # 18595 if test x"$ac_file" != x-; then 18596 { 18597 $as_echo "/* $configure_input */" \ 18598 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18599 } >"$ac_tmp/config.h" \ 18600 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18601 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18602 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18603 $as_echo "$as_me: $ac_file is unchanged" >&6;} 18604 else 18605 rm -f "$ac_file" 18606 mv "$ac_tmp/config.h" "$ac_file" \ 18607 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18608 fi 18609 else 18610 $as_echo "/* $configure_input */" \ 18611 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18612 || as_fn_error $? "could not create -" "$LINENO" 5 18613 fi 18614 # Compute "$ac_file"'s index in $config_headers. 18615 _am_arg="$ac_file" 18616 _am_stamp_count=1 18617 for _am_header in $config_headers :; do 18618 case $_am_header in 18619 $_am_arg | $_am_arg:* ) 18620 break ;; 18621 * ) 18622 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18623 esac 18624 done 18625 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18626 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18627 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18628 X"$_am_arg" : 'X\(//\)$' \| \ 18629 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18630 $as_echo X"$_am_arg" | 18631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18632 s//\1/ 18633 q 18634 } 18635 /^X\(\/\/\)[^/].*/{ 18636 s//\1/ 18637 q 18638 } 18639 /^X\(\/\/\)$/{ 18640 s//\1/ 18641 q 18642 } 18643 /^X\(\/\).*/{ 18644 s//\1/ 18645 q 18646 } 18647 s/.*/./; q'`/stamp-h$_am_stamp_count 18648 ;; 18649 18650 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18651 $as_echo "$as_me: executing $ac_file commands" >&6;} 18652 ;; 18653 esac 18654 18655 18656 case $ac_file$ac_mode in 18657 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18658 # Older Autoconf quotes --file arguments for eval, but not when files 18659 # are listed without --file. Let's play safe and only enable the eval 18660 # if we detect the quoting. 18661 case $CONFIG_FILES in 18662 *\'*) eval set x "$CONFIG_FILES" ;; 18663 *) set x $CONFIG_FILES ;; 18664 esac 18665 shift 18666 for mf 18667 do 18668 # Strip MF so we end up with the name of the file. 18669 mf=`echo "$mf" | sed -e 's/:.*$//'` 18670 # Check whether this is an Automake generated Makefile or not. 18671 # We used to match only the files named 'Makefile.in', but 18672 # some people rename them; so instead we look at the file content. 18673 # Grep'ing the first line is not enough: some people post-process 18674 # each Makefile.in and add a new line on top of each file to say so. 18675 # Grep'ing the whole file is not good either: AIX grep has a line 18676 # limit of 2048, but all sed's we know have understand at least 4000. 18677 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18678 dirpart=`$as_dirname -- "$mf" || 18679 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18680 X"$mf" : 'X\(//\)[^/]' \| \ 18681 X"$mf" : 'X\(//\)$' \| \ 18682 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18683 $as_echo X"$mf" | 18684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18685 s//\1/ 18686 q 18687 } 18688 /^X\(\/\/\)[^/].*/{ 18689 s//\1/ 18690 q 18691 } 18692 /^X\(\/\/\)$/{ 18693 s//\1/ 18694 q 18695 } 18696 /^X\(\/\).*/{ 18697 s//\1/ 18698 q 18699 } 18700 s/.*/./; q'` 18701 else 18702 continue 18703 fi 18704 # Extract the definition of DEPDIR, am__include, and am__quote 18705 # from the Makefile without running 'make'. 18706 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18707 test -z "$DEPDIR" && continue 18708 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18709 test -z "$am__include" && continue 18710 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18711 # Find all dependency output files, they are included files with 18712 # $(DEPDIR) in their names. We invoke sed twice because it is the 18713 # simplest approach to changing $(DEPDIR) to its actual value in the 18714 # expansion. 18715 for file in `sed -n " 18716 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18717 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18718 # Make sure the directory exists. 18719 test -f "$dirpart/$file" && continue 18720 fdir=`$as_dirname -- "$file" || 18721 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18722 X"$file" : 'X\(//\)[^/]' \| \ 18723 X"$file" : 'X\(//\)$' \| \ 18724 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18725 $as_echo X"$file" | 18726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18727 s//\1/ 18728 q 18729 } 18730 /^X\(\/\/\)[^/].*/{ 18731 s//\1/ 18732 q 18733 } 18734 /^X\(\/\/\)$/{ 18735 s//\1/ 18736 q 18737 } 18738 /^X\(\/\).*/{ 18739 s//\1/ 18740 q 18741 } 18742 s/.*/./; q'` 18743 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18744 # echo "creating $dirpart/$file" 18745 echo '# dummy' > "$dirpart/$file" 18746 done 18747 done 18748 } 18749 ;; 18750 "default-1":C) 18751 for ac_file in $CONFIG_FILES; do 18752 # Support "outfile[:infile[:infile...]]" 18753 case "$ac_file" in 18754 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 18755 esac 18756 # PO directories have a Makefile.in generated from Makefile.in.in. 18757 case "$ac_file" in */Makefile.in) 18758 # Adjust a relative srcdir. 18759 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 18760 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 18761 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 18762 # In autoconf-2.13 it is called $ac_given_srcdir. 18763 # In autoconf-2.50 it is called $srcdir. 18764 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 18765 case "$ac_given_srcdir" in 18766 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 18767 /*) top_srcdir="$ac_given_srcdir" ;; 18768 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 18769 esac 18770 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 18771 rm -f "$ac_dir/POTFILES" 18772 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 18773 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 18774 POMAKEFILEDEPS="POTFILES.in" 18775 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 18776 # on $ac_dir but don't depend on user-specified configuration 18777 # parameters. 18778 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 18779 # The LINGUAS file contains the set of available languages. 18780 if test -n "$OBSOLETE_ALL_LINGUAS"; then 18781 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 18782 fi 18783 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 18784 # Hide the ALL_LINGUAS assigment from automake. 18785 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 18786 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 18787 else 18788 # The set of available languages was given in configure.ac. 18789 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 18790 fi 18791 case "$ac_given_srcdir" in 18792 .) srcdirpre= ;; 18793 *) srcdirpre='$(srcdir)/' ;; 18794 esac 18795 POFILES= 18796 GMOFILES= 18797 UPDATEPOFILES= 18798 DUMMYPOFILES= 18799 for lang in $ALL_LINGUAS; do 18800 POFILES="$POFILES $srcdirpre$lang.po" 18801 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 18802 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 18803 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 18804 done 18805 # CATALOGS depends on both $ac_dir and the user's LINGUAS 18806 # environment variable. 18807 INST_LINGUAS= 18808 if test -n "$ALL_LINGUAS"; then 18809 for presentlang in $ALL_LINGUAS; do 18810 useit=no 18811 if test "%UNSET%" != "$LINGUAS"; then 18812 desiredlanguages="$LINGUAS" 18813 else 18814 desiredlanguages="$ALL_LINGUAS" 18815 fi 18816 for desiredlang in $desiredlanguages; do 18817 # Use the presentlang catalog if desiredlang is 18818 # a. equal to presentlang, or 18819 # b. a variant of presentlang (because in this case, 18820 # presentlang can be used as a fallback for messages 18821 # which are not translated in the desiredlang catalog). 18822 case "$desiredlang" in 18823 "$presentlang"*) useit=yes;; 18824 esac 18825 done 18826 if test $useit = yes; then 18827 INST_LINGUAS="$INST_LINGUAS $presentlang" 18828 fi 18829 done 18830 fi 18831 CATALOGS= 18832 if test -n "$INST_LINGUAS"; then 18833 for lang in $INST_LINGUAS; do 18834 CATALOGS="$CATALOGS $lang.gmo" 18835 done 18836 fi 18837 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 18838 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 18839 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 18840 if test -f "$f"; then 18841 case "$f" in 18842 *.orig | *.bak | *~) ;; 18843 *) cat "$f" >> "$ac_dir/Makefile" ;; 18844 esac 18845 fi 18846 done 18847 fi 18848 ;; 18849 esac 18850 done ;; 18851 "libtool":C) 18852 18853 # See if we are running on zsh, and set the options which allow our 18854 # commands through without removal of \ escapes. 18855 if test -n "${ZSH_VERSION+set}" ; then 18856 setopt NO_GLOB_SUBST 18857 fi 18858 18859 cfgfile="${ofile}T" 18860 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18861 $RM "$cfgfile" 18862 18863 cat <<_LT_EOF >> "$cfgfile" 18864 #! $SHELL 18865 18866 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18867 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18868 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18869 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 18870 # 18871 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18872 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 18873 # Written by Gordon Matzigkeit, 1996 18874 # 18875 # This file is part of GNU Libtool. 18876 # 18877 # GNU Libtool is free software; you can redistribute it and/or 18878 # modify it under the terms of the GNU General Public License as 18879 # published by the Free Software Foundation; either version 2 of 18880 # the License, or (at your option) any later version. 18881 # 18882 # As a special exception to the GNU General Public License, 18883 # if you distribute this file as part of a program or library that 18884 # is built using GNU Libtool, you may include this file under the 18885 # same distribution terms that you use for the rest of that program. 18886 # 18887 # GNU Libtool is distributed in the hope that it will be useful, 18888 # but WITHOUT ANY WARRANTY; without even the implied warranty of 18889 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18890 # GNU General Public License for more details. 18891 # 18892 # You should have received a copy of the GNU General Public License 18893 # along with GNU Libtool; see the file COPYING. If not, a copy 18894 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18895 # obtained by writing to the Free Software Foundation, Inc., 18896 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18897 18898 18899 # The names of the tagged configurations supported by this script. 18900 available_tags="" 18901 18902 # ### BEGIN LIBTOOL CONFIG 18903 18904 # Whether or not to build shared libraries. 18905 build_libtool_libs=$enable_shared 18906 18907 # Which release of libtool.m4 was used? 18908 macro_version=$macro_version 18909 macro_revision=$macro_revision 18910 18911 # Whether or not to build static libraries. 18912 build_old_libs=$enable_static 18913 18914 # What type of objects to build. 18915 pic_mode=$pic_mode 18916 18917 # Whether or not to optimize for fast installation. 18918 fast_install=$enable_fast_install 18919 18920 # Shell to use when invoking shell scripts. 18921 SHELL=$lt_SHELL 18922 18923 # An echo program that protects backslashes. 18924 ECHO=$lt_ECHO 18925 18926 # The host system. 18927 host_alias=$host_alias 18928 host=$host 18929 host_os=$host_os 18930 18931 # The build system. 18932 build_alias=$build_alias 18933 build=$build 18934 build_os=$build_os 18935 18936 # A sed program that does not truncate output. 18937 SED=$lt_SED 18938 18939 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 18940 Xsed="\$SED -e 1s/^X//" 18941 18942 # A grep program that handles long lines. 18943 GREP=$lt_GREP 18944 18945 # An ERE matcher. 18946 EGREP=$lt_EGREP 18947 18948 # A literal string matcher. 18949 FGREP=$lt_FGREP 18950 18951 # A BSD- or MS-compatible name lister. 18952 NM=$lt_NM 18953 18954 # Whether we need soft or hard links. 18955 LN_S=$lt_LN_S 18956 18957 # What is the maximum length of a command? 18958 max_cmd_len=$max_cmd_len 18959 18960 # Object file suffix (normally "o"). 18961 objext=$ac_objext 18962 18963 # Executable file suffix (normally ""). 18964 exeext=$exeext 18965 18966 # whether the shell understands "unset". 18967 lt_unset=$lt_unset 18968 18969 # turn spaces into newlines. 18970 SP2NL=$lt_lt_SP2NL 18971 18972 # turn newlines into spaces. 18973 NL2SP=$lt_lt_NL2SP 18974 18975 # An object symbol dumper. 18976 OBJDUMP=$lt_OBJDUMP 18977 18978 # Method to check whether dependent libraries are shared objects. 18979 deplibs_check_method=$lt_deplibs_check_method 18980 18981 # Command to use when deplibs_check_method == "file_magic". 18982 file_magic_cmd=$lt_file_magic_cmd 18983 18984 # The archiver. 18985 AR=$lt_AR 18986 AR_FLAGS=$lt_AR_FLAGS 18987 18988 # A symbol stripping program. 18989 STRIP=$lt_STRIP 18990 18991 # Commands used to install an old-style archive. 18992 RANLIB=$lt_RANLIB 18993 old_postinstall_cmds=$lt_old_postinstall_cmds 18994 old_postuninstall_cmds=$lt_old_postuninstall_cmds 18995 18996 # Whether to use a lock for old archive extraction. 18997 lock_old_archive_extraction=$lock_old_archive_extraction 18998 18999 # A C compiler. 19000 LTCC=$lt_CC 19001 19002 # LTCC compiler flags. 19003 LTCFLAGS=$lt_CFLAGS 19004 19005 # Take the output of nm and produce a listing of raw symbols and C names. 19006 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19007 19008 # Transform the output of nm in a proper C declaration. 19009 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19010 19011 # Transform the output of nm in a C name address pair. 19012 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19013 19014 # Transform the output of nm in a C name address pair when lib prefix is needed. 19015 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19016 19017 # The name of the directory that contains temporary libtool files. 19018 objdir=$objdir 19019 19020 # Used to examine libraries when file_magic_cmd begins with "file". 19021 MAGIC_CMD=$MAGIC_CMD 19022 19023 # Must we lock files when doing compilation? 19024 need_locks=$lt_need_locks 19025 19026 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19027 DSYMUTIL=$lt_DSYMUTIL 19028 19029 # Tool to change global to local symbols on Mac OS X. 19030 NMEDIT=$lt_NMEDIT 19031 19032 # Tool to manipulate fat objects and archives on Mac OS X. 19033 LIPO=$lt_LIPO 19034 19035 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 19036 OTOOL=$lt_OTOOL 19037 19038 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19039 OTOOL64=$lt_OTOOL64 19040 19041 # Old archive suffix (normally "a"). 19042 libext=$libext 19043 19044 # Shared library suffix (normally ".so"). 19045 shrext_cmds=$lt_shrext_cmds 19046 19047 # The commands to extract the exported symbol list from a shared archive. 19048 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19049 19050 # Variables whose values should be saved in libtool wrapper scripts and 19051 # restored at link time. 19052 variables_saved_for_relink=$lt_variables_saved_for_relink 19053 19054 # Do we need the "lib" prefix for modules? 19055 need_lib_prefix=$need_lib_prefix 19056 19057 # Do we need a version for libraries? 19058 need_version=$need_version 19059 19060 # Library versioning type. 19061 version_type=$version_type 19062 19063 # Shared library runtime path variable. 19064 runpath_var=$runpath_var 19065 19066 # Shared library path variable. 19067 shlibpath_var=$shlibpath_var 19068 19069 # Is shlibpath searched before the hard-coded library search path? 19070 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19071 19072 # Format of library name prefix. 19073 libname_spec=$lt_libname_spec 19074 19075 # List of archive names. First name is the real one, the rest are links. 19076 # The last name is the one that the linker finds with -lNAME 19077 library_names_spec=$lt_library_names_spec 19078 19079 # The coded name of the library, if different from the real name. 19080 soname_spec=$lt_soname_spec 19081 19082 # Permission mode override for installation of shared libraries. 19083 install_override_mode=$lt_install_override_mode 19084 19085 # Command to use after installation of a shared archive. 19086 postinstall_cmds=$lt_postinstall_cmds 19087 19088 # Command to use after uninstallation of a shared archive. 19089 postuninstall_cmds=$lt_postuninstall_cmds 19090 19091 # Commands used to finish a libtool library installation in a directory. 19092 finish_cmds=$lt_finish_cmds 19093 19094 # As "finish_cmds", except a single script fragment to be evaled but 19095 # not shown. 19096 finish_eval=$lt_finish_eval 19097 19098 # Whether we should hardcode library paths into libraries. 19099 hardcode_into_libs=$hardcode_into_libs 19100 19101 # Compile-time system search path for libraries. 19102 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19103 19104 # Run-time system search path for libraries. 19105 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19106 19107 # Whether dlopen is supported. 19108 dlopen_support=$enable_dlopen 19109 19110 # Whether dlopen of programs is supported. 19111 dlopen_self=$enable_dlopen_self 19112 19113 # Whether dlopen of statically linked programs is supported. 19114 dlopen_self_static=$enable_dlopen_self_static 19115 19116 # Commands to strip libraries. 19117 old_striplib=$lt_old_striplib 19118 striplib=$lt_striplib 19119 19120 19121 # The linker used to build libraries. 19122 LD=$lt_LD 19123 19124 # How to create reloadable object files. 19125 reload_flag=$lt_reload_flag 19126 reload_cmds=$lt_reload_cmds 19127 19128 # Commands used to build an old-style archive. 19129 old_archive_cmds=$lt_old_archive_cmds 19130 19131 # A language specific compiler. 19132 CC=$lt_compiler 19133 19134 # Is the compiler the GNU compiler? 19135 with_gcc=$GCC 19136 19137 # Compiler flag to turn off builtin functions. 19138 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19139 19140 # How to pass a linker flag through the compiler. 19141 wl=$lt_lt_prog_compiler_wl 19142 19143 # Additional compiler flags for building library objects. 19144 pic_flag=$lt_lt_prog_compiler_pic 19145 19146 # Compiler flag to prevent dynamic linking. 19147 link_static_flag=$lt_lt_prog_compiler_static 19148 19149 # Does compiler simultaneously support -c and -o options? 19150 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19151 19152 # Whether or not to add -lc for building shared libraries. 19153 build_libtool_need_lc=$archive_cmds_need_lc 19154 19155 # Whether or not to disallow shared libs when runtime libs are static. 19156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19157 19158 # Compiler flag to allow reflexive dlopens. 19159 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19160 19161 # Compiler flag to generate shared objects directly from archives. 19162 whole_archive_flag_spec=$lt_whole_archive_flag_spec 19163 19164 # Whether the compiler copes with passing no objects directly. 19165 compiler_needs_object=$lt_compiler_needs_object 19166 19167 # Create an old-style archive from a shared archive. 19168 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19169 19170 # Create a temporary old-style archive to link instead of a shared archive. 19171 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19172 19173 # Commands used to build a shared archive. 19174 archive_cmds=$lt_archive_cmds 19175 archive_expsym_cmds=$lt_archive_expsym_cmds 19176 19177 # Commands used to build a loadable module if different from building 19178 # a shared archive. 19179 module_cmds=$lt_module_cmds 19180 module_expsym_cmds=$lt_module_expsym_cmds 19181 19182 # Whether we are building with GNU ld or not. 19183 with_gnu_ld=$lt_with_gnu_ld 19184 19185 # Flag that allows shared libraries with undefined symbols to be built. 19186 allow_undefined_flag=$lt_allow_undefined_flag 19187 19188 # Flag that enforces no undefined symbols. 19189 no_undefined_flag=$lt_no_undefined_flag 19190 19191 # Flag to hardcode \$libdir into a binary during linking. 19192 # This must work even if \$libdir does not exist 19193 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19194 19195 # If ld is used when linking, flag to hardcode \$libdir into a binary 19196 # during linking. This must work even if \$libdir does not exist. 19197 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19198 19199 # Whether we need a single "-rpath" flag with a separated argument. 19200 hardcode_libdir_separator=$lt_hardcode_libdir_separator 19201 19202 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19203 # DIR into the resulting binary. 19204 hardcode_direct=$hardcode_direct 19205 19206 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19207 # DIR into the resulting binary and the resulting library dependency is 19208 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19209 # library is relocated. 19210 hardcode_direct_absolute=$hardcode_direct_absolute 19211 19212 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19213 # into the resulting binary. 19214 hardcode_minus_L=$hardcode_minus_L 19215 19216 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19217 # into the resulting binary. 19218 hardcode_shlibpath_var=$hardcode_shlibpath_var 19219 19220 # Set to "yes" if building a shared library automatically hardcodes DIR 19221 # into the library and all subsequent libraries and executables linked 19222 # against it. 19223 hardcode_automatic=$hardcode_automatic 19224 19225 # Set to yes if linker adds runtime paths of dependent libraries 19226 # to runtime path list. 19227 inherit_rpath=$inherit_rpath 19228 19229 # Whether libtool must link a program against all its dependency libraries. 19230 link_all_deplibs=$link_all_deplibs 19231 19232 # Fix the shell variable \$srcfile for the compiler. 19233 fix_srcfile_path=$lt_fix_srcfile_path 19234 19235 # Set to "yes" if exported symbols are required. 19236 always_export_symbols=$always_export_symbols 19237 19238 # The commands to list exported symbols. 19239 export_symbols_cmds=$lt_export_symbols_cmds 19240 19241 # Symbols that should not be listed in the preloaded symbols. 19242 exclude_expsyms=$lt_exclude_expsyms 19243 19244 # Symbols that must always be exported. 19245 include_expsyms=$lt_include_expsyms 19246 19247 # Commands necessary for linking programs (against libraries) with templates. 19248 prelink_cmds=$lt_prelink_cmds 19249 19250 # Specify filename containing input files. 19251 file_list_spec=$lt_file_list_spec 19252 19253 # How to hardcode a shared library path into an executable. 19254 hardcode_action=$hardcode_action 19255 19256 # ### END LIBTOOL CONFIG 19257 19258 _LT_EOF 19259 19260 case $host_os in 19261 aix3*) 19262 cat <<\_LT_EOF >> "$cfgfile" 19263 # AIX sometimes has problems with the GCC collect2 program. For some 19264 # reason, if we set the COLLECT_NAMES environment variable, the problems 19265 # vanish in a puff of smoke. 19266 if test "X${COLLECT_NAMES+set}" != Xset; then 19267 COLLECT_NAMES= 19268 export COLLECT_NAMES 19269 fi 19270 _LT_EOF 19271 ;; 19272 esac 19273 19274 19275 ltmain="$ac_aux_dir/ltmain.sh" 19276 19277 19278 # We use sed instead of cat because bash on DJGPP gets confused if 19279 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19280 # text mode, it properly converts lines to CR/LF. This bash problem 19281 # is reportedly fixed, but why not run on old versions too? 19282 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19283 || (rm -f "$cfgfile"; exit 1) 19284 19285 case $xsi_shell in 19286 yes) 19287 cat << \_LT_EOF >> "$cfgfile" 19288 19289 # func_dirname file append nondir_replacement 19290 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 19291 # otherwise set result to NONDIR_REPLACEMENT. 19292 func_dirname () 19293 { 19294 case ${1} in 19295 */*) func_dirname_result="${1%/*}${2}" ;; 19296 * ) func_dirname_result="${3}" ;; 19297 esac 19298 } 19299 19300 # func_basename file 19301 func_basename () 19302 { 19303 func_basename_result="${1##*/}" 19304 } 19305 19306 # func_dirname_and_basename file append nondir_replacement 19307 # perform func_basename and func_dirname in a single function 19308 # call: 19309 # dirname: Compute the dirname of FILE. If nonempty, 19310 # add APPEND to the result, otherwise set result 19311 # to NONDIR_REPLACEMENT. 19312 # value returned in "$func_dirname_result" 19313 # basename: Compute filename of FILE. 19314 # value retuned in "$func_basename_result" 19315 # Implementation must be kept synchronized with func_dirname 19316 # and func_basename. For efficiency, we do not delegate to 19317 # those functions but instead duplicate the functionality here. 19318 func_dirname_and_basename () 19319 { 19320 case ${1} in 19321 */*) func_dirname_result="${1%/*}${2}" ;; 19322 * ) func_dirname_result="${3}" ;; 19323 esac 19324 func_basename_result="${1##*/}" 19325 } 19326 19327 # func_stripname prefix suffix name 19328 # strip PREFIX and SUFFIX off of NAME. 19329 # PREFIX and SUFFIX must not contain globbing or regex special 19330 # characters, hashes, percent signs, but SUFFIX may contain a leading 19331 # dot (in which case that matches only a dot). 19332 func_stripname () 19333 { 19334 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19335 # positional parameters, so assign one to ordinary parameter first. 19336 func_stripname_result=${3} 19337 func_stripname_result=${func_stripname_result#"${1}"} 19338 func_stripname_result=${func_stripname_result%"${2}"} 19339 } 19340 19341 # func_opt_split 19342 func_opt_split () 19343 { 19344 func_opt_split_opt=${1%%=*} 19345 func_opt_split_arg=${1#*=} 19346 } 19347 19348 # func_lo2o object 19349 func_lo2o () 19350 { 19351 case ${1} in 19352 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19353 *) func_lo2o_result=${1} ;; 19354 esac 19355 } 19356 19357 # func_xform libobj-or-source 19358 func_xform () 19359 { 19360 func_xform_result=${1%.*}.lo 19361 } 19362 19363 # func_arith arithmetic-term... 19364 func_arith () 19365 { 19366 func_arith_result=$(( $* )) 19367 } 19368 19369 # func_len string 19370 # STRING may not start with a hyphen. 19371 func_len () 19372 { 19373 func_len_result=${#1} 19374 } 19375 19376 _LT_EOF 19377 ;; 19378 *) # Bourne compatible functions. 19379 cat << \_LT_EOF >> "$cfgfile" 19380 19381 # func_dirname file append nondir_replacement 19382 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 19383 # otherwise set result to NONDIR_REPLACEMENT. 19384 func_dirname () 19385 { 19386 # Extract subdirectory from the argument. 19387 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 19388 if test "X$func_dirname_result" = "X${1}"; then 19389 func_dirname_result="${3}" 19390 else 19391 func_dirname_result="$func_dirname_result${2}" 19392 fi 19393 } 19394 19395 # func_basename file 19396 func_basename () 19397 { 19398 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 19399 } 19400 19401 19402 # func_stripname prefix suffix name 19403 # strip PREFIX and SUFFIX off of NAME. 19404 # PREFIX and SUFFIX must not contain globbing or regex special 19405 # characters, hashes, percent signs, but SUFFIX may contain a leading 19406 # dot (in which case that matches only a dot). 19407 # func_strip_suffix prefix name 19408 func_stripname () 19409 { 19410 case ${2} in 19411 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 19412 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 19413 esac 19414 } 19415 19416 # sed scripts: 19417 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19418 my_sed_long_arg='1s/^-[^=]*=//' 19419 19420 # func_opt_split 19421 func_opt_split () 19422 { 19423 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 19424 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 19425 } 19426 19427 # func_lo2o object 19428 func_lo2o () 19429 { 19430 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 19431 } 19432 19433 # func_xform libobj-or-source 19434 func_xform () 19435 { 19436 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 19437 } 19438 19439 # func_arith arithmetic-term... 19440 func_arith () 19441 { 19442 func_arith_result=`expr "$@"` 19443 } 19444 19445 # func_len string 19446 # STRING may not start with a hyphen. 19447 func_len () 19448 { 19449 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19450 } 19451 19452 _LT_EOF 19453 esac 19454 19455 case $lt_shell_append in 19456 yes) 19457 cat << \_LT_EOF >> "$cfgfile" 19458 19459 # func_append var value 19460 # Append VALUE to the end of shell variable VAR. 19461 func_append () 19462 { 19463 eval "$1+=\$2" 19464 } 19465 _LT_EOF 19466 ;; 19467 *) 19468 cat << \_LT_EOF >> "$cfgfile" 19469 19470 # func_append var value 19471 # Append VALUE to the end of shell variable VAR. 19472 func_append () 19473 { 19474 eval "$1=\$$1\$2" 19475 } 19476 19477 _LT_EOF 19478 ;; 19479 esac 19480 19481 19482 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19483 || (rm -f "$cfgfile"; exit 1) 19484 19485 mv -f "$cfgfile" "$ofile" || 19486 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19487 chmod +x "$ofile" 19488 19489 ;; 19490 19491 esac 19492 done # for ac_tag 19493 19494 19495 as_fn_exit 0 19496 _ACEOF 19497 ac_clean_files=$ac_clean_files_save 19498 19499 test $ac_write_fail = 0 || 19500 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19501 19502 19503 # configure is writing to config.log, and then calls config.status. 19504 # config.status does its own redirection, appending to config.log. 19505 # Unfortunately, on DOS this fails, as config.log is still kept open 19506 # by configure, so config.status won't be able to write to it; its 19507 # output is simply discarded. So we exec the FD to /dev/null, 19508 # effectively closing config.log, so it can be properly (re)opened and 19509 # appended to by config.status. When coming back to configure, we 19510 # need to make the FD available again. 19511 if test "$no_create" != yes; then 19512 ac_cs_success=: 19513 ac_config_status_args= 19514 test "$silent" = yes && 19515 ac_config_status_args="$ac_config_status_args --quiet" 19516 exec 5>/dev/null 19517 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19518 exec 5>>config.log 19519 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19520 # would make configure fail if this is the last instruction. 19521 $ac_cs_success || as_fn_exit 1 19522 fi 19523 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19525 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19526 fi 19527 19528 19529 19530 touch config.status.tmp 19531 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then 19532 sed '/as_fn_exit 0/i \ 19533 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ 19534 touch --reference=Makefile Makefile.tmp \ 19535 mv Makefile.tmp Makefile \ 19536 ' config.status > config.status.tmp 19537 touch --reference=config.status config.status.tmp 19538 mv config.status.tmp config.status 19539 chmod +x config.status 19540 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp 19541 touch --reference=Makefile Makefile.tmp 19542 mv Makefile.tmp Makefile 19543 else 19544 rm -f config.status.tmp 19545 fi 19546