Lucas Eckels | 8e01cdc | 2012-08-06 15:16:01 -0700 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.61 for libvorbis 1.3.1. |
| 4 | # |
| 5 | # Report bugs to <vorbis-dev@xiph.org>. |
| 6 | # |
| 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| 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 | # Zsh 3.x and 4.x performs 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*) set -o posix ;; |
| 27 | esac |
| 28 | |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | # PATH needs CR |
| 35 | # Avoid depending upon Character Ranges. |
| 36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 39 | as_cr_digits='0123456789' |
| 40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 41 | |
| 42 | # The user is always right. |
| 43 | if test "${PATH_SEPARATOR+set}" != set; then |
| 44 | echo "#! /bin/sh" >conf$$.sh |
| 45 | echo "exit 0" >>conf$$.sh |
| 46 | chmod +x conf$$.sh |
| 47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 48 | PATH_SEPARATOR=';' |
| 49 | else |
| 50 | PATH_SEPARATOR=: |
| 51 | fi |
| 52 | rm -f conf$$.sh |
| 53 | fi |
| 54 | |
| 55 | # Support unset when possible. |
| 56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 57 | as_unset=unset |
| 58 | else |
| 59 | as_unset=false |
| 60 | fi |
| 61 | |
| 62 | |
| 63 | # IFS |
| 64 | # We need space, tab and new line, in precisely that order. Quoting is |
| 65 | # there to prevent editors from complaining about space-tab. |
| 66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 67 | # splitting by setting IFS to empty value.) |
| 68 | as_nl=' |
| 69 | ' |
| 70 | IFS=" "" $as_nl" |
| 71 | |
| 72 | # Find who we are. Look in the path if we contain no directory separator. |
| 73 | case $0 in |
| 74 | *[\\/]* ) as_myself=$0 ;; |
| 75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 76 | for as_dir in $PATH |
| 77 | do |
| 78 | IFS=$as_save_IFS |
| 79 | test -z "$as_dir" && as_dir=. |
| 80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 81 | done |
| 82 | IFS=$as_save_IFS |
| 83 | |
| 84 | ;; |
| 85 | esac |
| 86 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 87 | # in which case we are not to be found in the path. |
| 88 | if test "x$as_myself" = x; then |
| 89 | as_myself=$0 |
| 90 | fi |
| 91 | if test ! -f "$as_myself"; then |
| 92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 93 | { (exit 1); exit 1; } |
| 94 | fi |
| 95 | |
| 96 | # Work around bugs in pre-3.0 UWIN ksh. |
| 97 | for as_var in ENV MAIL MAILPATH |
| 98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 99 | done |
| 100 | PS1='$ ' |
| 101 | PS2='> ' |
| 102 | PS4='+ ' |
| 103 | |
| 104 | # NLS nuisances. |
| 105 | for as_var in \ |
| 106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 108 | LC_TELEPHONE LC_TIME |
| 109 | do |
| 110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 111 | eval $as_var=C; export $as_var |
| 112 | else |
| 113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 114 | fi |
| 115 | done |
| 116 | |
| 117 | # Required to use basename. |
| 118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 120 | as_expr=expr |
| 121 | else |
| 122 | as_expr=false |
| 123 | fi |
| 124 | |
| 125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 126 | as_basename=basename |
| 127 | else |
| 128 | as_basename=false |
| 129 | fi |
| 130 | |
| 131 | |
| 132 | # Name of the executable. |
| 133 | as_me=`$as_basename -- "$0" || |
| 134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 135 | X"$0" : 'X\(//\)$' \| \ |
| 136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 137 | echo X/"$0" | |
| 138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 139 | s//\1/ |
| 140 | q |
| 141 | } |
| 142 | /^X\/\(\/\/\)$/{ |
| 143 | s//\1/ |
| 144 | q |
| 145 | } |
| 146 | /^X\/\(\/\).*/{ |
| 147 | s//\1/ |
| 148 | q |
| 149 | } |
| 150 | s/.*/./; q'` |
| 151 | |
| 152 | # CDPATH. |
| 153 | $as_unset CDPATH |
| 154 | |
| 155 | |
| 156 | if test "x$CONFIG_SHELL" = x; then |
| 157 | if (eval ":") 2>/dev/null; then |
| 158 | as_have_required=yes |
| 159 | else |
| 160 | as_have_required=no |
| 161 | fi |
| 162 | |
| 163 | if test $as_have_required = yes && (eval ": |
| 164 | (as_func_return () { |
| 165 | (exit \$1) |
| 166 | } |
| 167 | as_func_success () { |
| 168 | as_func_return 0 |
| 169 | } |
| 170 | as_func_failure () { |
| 171 | as_func_return 1 |
| 172 | } |
| 173 | as_func_ret_success () { |
| 174 | return 0 |
| 175 | } |
| 176 | as_func_ret_failure () { |
| 177 | return 1 |
| 178 | } |
| 179 | |
| 180 | exitcode=0 |
| 181 | if as_func_success; then |
| 182 | : |
| 183 | else |
| 184 | exitcode=1 |
| 185 | echo as_func_success failed. |
| 186 | fi |
| 187 | |
| 188 | if as_func_failure; then |
| 189 | exitcode=1 |
| 190 | echo as_func_failure succeeded. |
| 191 | fi |
| 192 | |
| 193 | if as_func_ret_success; then |
| 194 | : |
| 195 | else |
| 196 | exitcode=1 |
| 197 | echo as_func_ret_success failed. |
| 198 | fi |
| 199 | |
| 200 | if as_func_ret_failure; then |
| 201 | exitcode=1 |
| 202 | echo as_func_ret_failure succeeded. |
| 203 | fi |
| 204 | |
| 205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 206 | : |
| 207 | else |
| 208 | exitcode=1 |
| 209 | echo positional parameters were not saved. |
| 210 | fi |
| 211 | |
| 212 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 213 | |
| 214 | ( |
| 215 | as_lineno_1=\$LINENO |
| 216 | as_lineno_2=\$LINENO |
| 217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 219 | ") 2> /dev/null; then |
| 220 | : |
| 221 | else |
| 222 | as_candidate_shells= |
| 223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 225 | do |
| 226 | IFS=$as_save_IFS |
| 227 | test -z "$as_dir" && as_dir=. |
| 228 | case $as_dir in |
| 229 | /*) |
| 230 | for as_base in sh bash ksh sh5; do |
| 231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 232 | done;; |
| 233 | esac |
| 234 | done |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | for as_shell in $as_candidate_shells $SHELL; do |
| 239 | # Try only shells that exist, to save several forks. |
| 240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 241 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 243 | emulate sh |
| 244 | NULLCMD=: |
| 245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 246 | # is contrary to our usage. Disable this feature. |
| 247 | alias -g '${1+"$@"}'='"$@"' |
| 248 | setopt NO_GLOB_SUBST |
| 249 | else |
| 250 | case `(set -o) 2>/dev/null` in |
| 251 | *posix*) set -o posix ;; |
| 252 | esac |
| 253 | |
| 254 | fi |
| 255 | |
| 256 | |
| 257 | : |
| 258 | _ASEOF |
| 259 | }; then |
| 260 | CONFIG_SHELL=$as_shell |
| 261 | as_have_required=yes |
| 262 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 264 | emulate sh |
| 265 | NULLCMD=: |
| 266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 267 | # is contrary to our usage. Disable this feature. |
| 268 | alias -g '${1+"$@"}'='"$@"' |
| 269 | setopt NO_GLOB_SUBST |
| 270 | else |
| 271 | case `(set -o) 2>/dev/null` in |
| 272 | *posix*) set -o posix ;; |
| 273 | esac |
| 274 | |
| 275 | fi |
| 276 | |
| 277 | |
| 278 | : |
| 279 | (as_func_return () { |
| 280 | (exit $1) |
| 281 | } |
| 282 | as_func_success () { |
| 283 | as_func_return 0 |
| 284 | } |
| 285 | as_func_failure () { |
| 286 | as_func_return 1 |
| 287 | } |
| 288 | as_func_ret_success () { |
| 289 | return 0 |
| 290 | } |
| 291 | as_func_ret_failure () { |
| 292 | return 1 |
| 293 | } |
| 294 | |
| 295 | exitcode=0 |
| 296 | if as_func_success; then |
| 297 | : |
| 298 | else |
| 299 | exitcode=1 |
| 300 | echo as_func_success failed. |
| 301 | fi |
| 302 | |
| 303 | if as_func_failure; then |
| 304 | exitcode=1 |
| 305 | echo as_func_failure succeeded. |
| 306 | fi |
| 307 | |
| 308 | if as_func_ret_success; then |
| 309 | : |
| 310 | else |
| 311 | exitcode=1 |
| 312 | echo as_func_ret_success failed. |
| 313 | fi |
| 314 | |
| 315 | if as_func_ret_failure; then |
| 316 | exitcode=1 |
| 317 | echo as_func_ret_failure succeeded. |
| 318 | fi |
| 319 | |
| 320 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 321 | : |
| 322 | else |
| 323 | exitcode=1 |
| 324 | echo positional parameters were not saved. |
| 325 | fi |
| 326 | |
| 327 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 328 | |
| 329 | ( |
| 330 | as_lineno_1=$LINENO |
| 331 | as_lineno_2=$LINENO |
| 332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 334 | |
| 335 | _ASEOF |
| 336 | }; then |
| 337 | break |
| 338 | fi |
| 339 | |
| 340 | fi |
| 341 | |
| 342 | done |
| 343 | |
| 344 | if test "x$CONFIG_SHELL" != x; then |
| 345 | for as_var in BASH_ENV ENV |
| 346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 347 | done |
| 348 | export CONFIG_SHELL |
| 349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 350 | fi |
| 351 | |
| 352 | |
| 353 | if test $as_have_required = no; then |
| 354 | echo This script requires a shell more modern than all the |
| 355 | echo shells that I found on your system. Please install a |
| 356 | echo modern shell, or manually run the script under such a |
| 357 | echo shell if you do have one. |
| 358 | { (exit 1); exit 1; } |
| 359 | fi |
| 360 | |
| 361 | |
| 362 | fi |
| 363 | |
| 364 | fi |
| 365 | |
| 366 | |
| 367 | |
| 368 | (eval "as_func_return () { |
| 369 | (exit \$1) |
| 370 | } |
| 371 | as_func_success () { |
| 372 | as_func_return 0 |
| 373 | } |
| 374 | as_func_failure () { |
| 375 | as_func_return 1 |
| 376 | } |
| 377 | as_func_ret_success () { |
| 378 | return 0 |
| 379 | } |
| 380 | as_func_ret_failure () { |
| 381 | return 1 |
| 382 | } |
| 383 | |
| 384 | exitcode=0 |
| 385 | if as_func_success; then |
| 386 | : |
| 387 | else |
| 388 | exitcode=1 |
| 389 | echo as_func_success failed. |
| 390 | fi |
| 391 | |
| 392 | if as_func_failure; then |
| 393 | exitcode=1 |
| 394 | echo as_func_failure succeeded. |
| 395 | fi |
| 396 | |
| 397 | if as_func_ret_success; then |
| 398 | : |
| 399 | else |
| 400 | exitcode=1 |
| 401 | echo as_func_ret_success failed. |
| 402 | fi |
| 403 | |
| 404 | if as_func_ret_failure; then |
| 405 | exitcode=1 |
| 406 | echo as_func_ret_failure succeeded. |
| 407 | fi |
| 408 | |
| 409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 410 | : |
| 411 | else |
| 412 | exitcode=1 |
| 413 | echo positional parameters were not saved. |
| 414 | fi |
| 415 | |
| 416 | test \$exitcode = 0") || { |
| 417 | echo No shell found that supports shell functions. |
| 418 | echo Please tell autoconf@gnu.org about your system, |
| 419 | echo including any error possibly output before this |
| 420 | echo message |
| 421 | } |
| 422 | |
| 423 | |
| 424 | |
| 425 | as_lineno_1=$LINENO |
| 426 | as_lineno_2=$LINENO |
| 427 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 429 | |
| 430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 431 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 432 | # line-number line after each line using $LINENO; the second 'sed' |
| 433 | # does the real work. The second script uses 'N' to pair each |
| 434 | # line-number line with the line containing $LINENO, and appends |
| 435 | # trailing '-' during substitution so that $LINENO is not a special |
| 436 | # case at line end. |
| 437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 439 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 440 | sed -n ' |
| 441 | p |
| 442 | /[$]LINENO/= |
| 443 | ' <$as_myself | |
| 444 | sed ' |
| 445 | s/[$]LINENO.*/&-/ |
| 446 | t lineno |
| 447 | b |
| 448 | :lineno |
| 449 | N |
| 450 | :loop |
| 451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 452 | t loop |
| 453 | s/-\n.*// |
| 454 | ' >$as_me.lineno && |
| 455 | chmod +x "$as_me.lineno" || |
| 456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 457 | { (exit 1); exit 1; }; } |
| 458 | |
| 459 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 460 | # (the dirname of $[0] is not the place where we might find the |
| 461 | # original and so on. Autoconf is especially sensitive to this). |
| 462 | . "./$as_me.lineno" |
| 463 | # Exit status is that of the last command. |
| 464 | exit |
| 465 | } |
| 466 | |
| 467 | |
| 468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 469 | as_dirname=dirname |
| 470 | else |
| 471 | as_dirname=false |
| 472 | fi |
| 473 | |
| 474 | ECHO_C= ECHO_N= ECHO_T= |
| 475 | case `echo -n x` in |
| 476 | -n*) |
| 477 | case `echo 'x\c'` in |
| 478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 479 | *) ECHO_C='\c';; |
| 480 | esac;; |
| 481 | *) |
| 482 | ECHO_N='-n';; |
| 483 | esac |
| 484 | |
| 485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 487 | as_expr=expr |
| 488 | else |
| 489 | as_expr=false |
| 490 | fi |
| 491 | |
| 492 | rm -f conf$$ conf$$.exe conf$$.file |
| 493 | if test -d conf$$.dir; then |
| 494 | rm -f conf$$.dir/conf$$.file |
| 495 | else |
| 496 | rm -f conf$$.dir |
| 497 | mkdir conf$$.dir |
| 498 | fi |
| 499 | echo >conf$$.file |
| 500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 501 | as_ln_s='ln -s' |
| 502 | # ... but there are two gotchas: |
| 503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 505 | # In both cases, we have to default to `cp -p'. |
| 506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 507 | as_ln_s='cp -p' |
| 508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 509 | as_ln_s=ln |
| 510 | else |
| 511 | as_ln_s='cp -p' |
| 512 | fi |
| 513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 514 | rmdir conf$$.dir 2>/dev/null |
| 515 | |
| 516 | if mkdir -p . 2>/dev/null; then |
| 517 | as_mkdir_p=: |
| 518 | else |
| 519 | test -d ./-p && rmdir ./-p |
| 520 | as_mkdir_p=false |
| 521 | fi |
| 522 | |
| 523 | if test -x / >/dev/null 2>&1; then |
| 524 | as_test_x='test -x' |
| 525 | else |
| 526 | if ls -dL / >/dev/null 2>&1; then |
| 527 | as_ls_L_option=L |
| 528 | else |
| 529 | as_ls_L_option= |
| 530 | fi |
| 531 | as_test_x=' |
| 532 | eval sh -c '\'' |
| 533 | if test -d "$1"; then |
| 534 | test -d "$1/."; |
| 535 | else |
| 536 | case $1 in |
| 537 | -*)set "./$1";; |
| 538 | esac; |
| 539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 540 | ???[sx]*):;;*)false;;esac;fi |
| 541 | '\'' sh |
| 542 | ' |
| 543 | fi |
| 544 | as_executable_p=$as_test_x |
| 545 | |
| 546 | # Sed expression to map a string onto a valid CPP name. |
| 547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 548 | |
| 549 | # Sed expression to map a string onto a valid variable name. |
| 550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 551 | |
| 552 | |
| 553 | |
| 554 | |
| 555 | # Check that we are running under the correct shell. |
| 556 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 557 | |
| 558 | case X$lt_ECHO in |
| 559 | X*--fallback-echo) |
| 560 | # Remove one level of quotation (which was required for Make). |
| 561 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 562 | ;; |
| 563 | esac |
| 564 | |
| 565 | ECHO=${lt_ECHO-echo} |
| 566 | if test "X$1" = X--no-reexec; then |
| 567 | # Discard the --no-reexec flag, and continue. |
| 568 | shift |
| 569 | elif test "X$1" = X--fallback-echo; then |
| 570 | # Avoid inline document here, it may be left over |
| 571 | : |
| 572 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 573 | # Yippee, $ECHO works! |
| 574 | : |
| 575 | else |
| 576 | # Restart under the correct shell. |
| 577 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 578 | fi |
| 579 | |
| 580 | if test "X$1" = X--fallback-echo; then |
| 581 | # used as fallback echo |
| 582 | shift |
| 583 | cat <<_LT_EOF |
| 584 | $* |
| 585 | _LT_EOF |
| 586 | exit 0 |
| 587 | fi |
| 588 | |
| 589 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 590 | # if CDPATH is set. |
| 591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 592 | |
| 593 | if test -z "$lt_ECHO"; then |
| 594 | if test "X${echo_test_string+set}" != Xset; then |
| 595 | # find a string as large as possible, as long as the shell can cope with it |
| 596 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 597 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 598 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 599 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 600 | then |
| 601 | break |
| 602 | fi |
| 603 | done |
| 604 | fi |
| 605 | |
| 606 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 607 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 608 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 609 | : |
| 610 | else |
| 611 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 612 | # backslashes. This makes it impossible to quote backslashes using |
| 613 | # echo "$something" | sed 's/\\/\\\\/g' |
| 614 | # |
| 615 | # So, first we look for a working echo in the user's PATH. |
| 616 | |
| 617 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 618 | for dir in $PATH /usr/ucb; do |
| 619 | IFS="$lt_save_ifs" |
| 620 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 621 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 622 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 623 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 624 | ECHO="$dir/echo" |
| 625 | break |
| 626 | fi |
| 627 | done |
| 628 | IFS="$lt_save_ifs" |
| 629 | |
| 630 | if test "X$ECHO" = Xecho; then |
| 631 | # We didn't find a better echo, so look for alternatives. |
| 632 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 633 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 634 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 635 | # This shell has a builtin print -r that does the trick. |
| 636 | ECHO='print -r' |
| 637 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 638 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 639 | # If we have ksh, try running configure again with it. |
| 640 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 641 | export ORIGINAL_CONFIG_SHELL |
| 642 | CONFIG_SHELL=/bin/ksh |
| 643 | export CONFIG_SHELL |
| 644 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 645 | else |
| 646 | # Try using printf. |
| 647 | ECHO='printf %s\n' |
| 648 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 649 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 650 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 651 | # Cool, printf works |
| 652 | : |
| 653 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 654 | test "X$echo_testing_string" = 'X\t' && |
| 655 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 656 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 657 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 658 | export CONFIG_SHELL |
| 659 | SHELL="$CONFIG_SHELL" |
| 660 | export SHELL |
| 661 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 662 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 663 | test "X$echo_testing_string" = 'X\t' && |
| 664 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 665 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 666 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 667 | else |
| 668 | # maybe with a smaller string... |
| 669 | prev=: |
| 670 | |
| 671 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 672 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 673 | then |
| 674 | break |
| 675 | fi |
| 676 | prev="$cmd" |
| 677 | done |
| 678 | |
| 679 | if test "$prev" != 'sed 50q "$0"'; then |
| 680 | echo_test_string=`eval $prev` |
| 681 | export echo_test_string |
| 682 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 683 | else |
| 684 | # Oops. We lost completely, so just stick with echo. |
| 685 | ECHO=echo |
| 686 | fi |
| 687 | fi |
| 688 | fi |
| 689 | fi |
| 690 | fi |
| 691 | fi |
| 692 | |
| 693 | # Copy echo and quote the copy suitably for passing to libtool from |
| 694 | # the Makefile, instead of quoting the original, which is used later. |
| 695 | lt_ECHO=$ECHO |
| 696 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 697 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 698 | fi |
| 699 | |
| 700 | |
| 701 | |
| 702 | |
| 703 | exec 7<&0 </dev/null 6>&1 |
| 704 | |
| 705 | # Name of the host. |
| 706 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 707 | # so uname gets run too. |
| 708 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 709 | |
| 710 | # |
| 711 | # Initializations. |
| 712 | # |
| 713 | ac_default_prefix=/usr/local |
| 714 | ac_clean_files= |
| 715 | ac_config_libobj_dir=. |
| 716 | LIBOBJS= |
| 717 | cross_compiling=no |
| 718 | subdirs= |
| 719 | MFLAGS= |
| 720 | MAKEFLAGS= |
| 721 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 722 | |
| 723 | # Identity of this package. |
| 724 | PACKAGE_NAME='libvorbis' |
| 725 | PACKAGE_TARNAME='libvorbis' |
| 726 | PACKAGE_VERSION='1.3.1' |
| 727 | PACKAGE_STRING='libvorbis 1.3.1' |
| 728 | PACKAGE_BUGREPORT='vorbis-dev@xiph.org' |
| 729 | |
| 730 | ac_unique_file="lib/mdct.c" |
| 731 | # Factoring default headers for most tests. |
| 732 | ac_includes_default="\ |
| 733 | #include <stdio.h> |
| 734 | #ifdef HAVE_SYS_TYPES_H |
| 735 | # include <sys/types.h> |
| 736 | #endif |
| 737 | #ifdef HAVE_SYS_STAT_H |
| 738 | # include <sys/stat.h> |
| 739 | #endif |
| 740 | #ifdef STDC_HEADERS |
| 741 | # include <stdlib.h> |
| 742 | # include <stddef.h> |
| 743 | #else |
| 744 | # ifdef HAVE_STDLIB_H |
| 745 | # include <stdlib.h> |
| 746 | # endif |
| 747 | #endif |
| 748 | #ifdef HAVE_STRING_H |
| 749 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 750 | # include <memory.h> |
| 751 | # endif |
| 752 | # include <string.h> |
| 753 | #endif |
| 754 | #ifdef HAVE_STRINGS_H |
| 755 | # include <strings.h> |
| 756 | #endif |
| 757 | #ifdef HAVE_INTTYPES_H |
| 758 | # include <inttypes.h> |
| 759 | #endif |
| 760 | #ifdef HAVE_STDINT_H |
| 761 | # include <stdint.h> |
| 762 | #endif |
| 763 | #ifdef HAVE_UNISTD_H |
| 764 | # include <unistd.h> |
| 765 | #endif" |
| 766 | |
| 767 | ac_subst_vars='SHELL |
| 768 | PATH_SEPARATOR |
| 769 | PACKAGE_NAME |
| 770 | PACKAGE_TARNAME |
| 771 | PACKAGE_VERSION |
| 772 | PACKAGE_STRING |
| 773 | PACKAGE_BUGREPORT |
| 774 | exec_prefix |
| 775 | prefix |
| 776 | program_transform_name |
| 777 | bindir |
| 778 | sbindir |
| 779 | libexecdir |
| 780 | datarootdir |
| 781 | datadir |
| 782 | sysconfdir |
| 783 | sharedstatedir |
| 784 | localstatedir |
| 785 | includedir |
| 786 | oldincludedir |
| 787 | docdir |
| 788 | infodir |
| 789 | htmldir |
| 790 | dvidir |
| 791 | pdfdir |
| 792 | psdir |
| 793 | libdir |
| 794 | localedir |
| 795 | mandir |
| 796 | DEFS |
| 797 | ECHO_C |
| 798 | ECHO_N |
| 799 | ECHO_T |
| 800 | LIBS |
| 801 | build_alias |
| 802 | host_alias |
| 803 | target_alias |
| 804 | build |
| 805 | build_cpu |
| 806 | build_vendor |
| 807 | build_os |
| 808 | host |
| 809 | host_cpu |
| 810 | host_vendor |
| 811 | host_os |
| 812 | target |
| 813 | target_cpu |
| 814 | target_vendor |
| 815 | target_os |
| 816 | INSTALL_PROGRAM |
| 817 | INSTALL_SCRIPT |
| 818 | INSTALL_DATA |
| 819 | am__isrc |
| 820 | CYGPATH_W |
| 821 | PACKAGE |
| 822 | VERSION |
| 823 | ACLOCAL |
| 824 | AUTOCONF |
| 825 | AUTOMAKE |
| 826 | AUTOHEADER |
| 827 | MAKEINFO |
| 828 | install_sh |
| 829 | STRIP |
| 830 | INSTALL_STRIP_PROGRAM |
| 831 | mkdir_p |
| 832 | AWK |
| 833 | SET_MAKE |
| 834 | am__leading_dot |
| 835 | AMTAR |
| 836 | am__tar |
| 837 | am__untar |
| 838 | MAINTAINER_MODE_TRUE |
| 839 | MAINTAINER_MODE_FALSE |
| 840 | MAINT |
| 841 | ACLOCAL_AMFLAGS |
| 842 | V_LIB_CURRENT |
| 843 | V_LIB_REVISION |
| 844 | V_LIB_AGE |
| 845 | VF_LIB_CURRENT |
| 846 | VF_LIB_REVISION |
| 847 | VF_LIB_AGE |
| 848 | VE_LIB_CURRENT |
| 849 | VE_LIB_REVISION |
| 850 | VE_LIB_AGE |
| 851 | CC |
| 852 | CFLAGS |
| 853 | LDFLAGS |
| 854 | CPPFLAGS |
| 855 | ac_ct_CC |
| 856 | EXEEXT |
| 857 | OBJEXT |
| 858 | DEPDIR |
| 859 | am__include |
| 860 | am__quote |
| 861 | AMDEP_TRUE |
| 862 | AMDEP_FALSE |
| 863 | AMDEPBACKSLASH |
| 864 | CCDEPMODE |
| 865 | am__fastdepCC_TRUE |
| 866 | am__fastdepCC_FALSE |
| 867 | CPP |
| 868 | AS |
| 869 | DLLTOOL |
| 870 | OBJDUMP |
| 871 | LIBTOOL |
| 872 | SED |
| 873 | GREP |
| 874 | EGREP |
| 875 | FGREP |
| 876 | LD |
| 877 | DUMPBIN |
| 878 | ac_ct_DUMPBIN |
| 879 | NM |
| 880 | LN_S |
| 881 | AR |
| 882 | RANLIB |
| 883 | lt_ECHO |
| 884 | DSYMUTIL |
| 885 | NMEDIT |
| 886 | LIPO |
| 887 | OTOOL |
| 888 | OTOOL64 |
| 889 | HAVE_DOXYGEN |
| 890 | HAVE_DOXYGEN_TRUE |
| 891 | HAVE_DOXYGEN_FALSE |
| 892 | PDFLATEX |
| 893 | HTLATEX |
| 894 | BUILD_DOCS_TRUE |
| 895 | BUILD_DOCS_FALSE |
| 896 | BUILD_EXAMPLES_TRUE |
| 897 | BUILD_EXAMPLES_FALSE |
| 898 | PKG_CONFIG |
| 899 | OGG_CFLAGS |
| 900 | OGG_LIBS |
| 901 | ALLOCA |
| 902 | LIBOBJS |
| 903 | VORBIS_LIBS |
| 904 | DEBUG |
| 905 | PROFILE |
| 906 | pthread_lib |
| 907 | LIBTOOL_DEPS |
| 908 | LTLIBOBJS' |
| 909 | ac_subst_files='' |
| 910 | ac_precious_vars='build_alias |
| 911 | host_alias |
| 912 | target_alias |
| 913 | CC |
| 914 | CFLAGS |
| 915 | LDFLAGS |
| 916 | LIBS |
| 917 | CPPFLAGS |
| 918 | CPP |
| 919 | PKG_CONFIG |
| 920 | OGG_CFLAGS |
| 921 | OGG_LIBS' |
| 922 | |
| 923 | |
| 924 | # Initialize some variables set by options. |
| 925 | ac_init_help= |
| 926 | ac_init_version=false |
| 927 | # The variables have the same names as the options, with |
| 928 | # dashes changed to underlines. |
| 929 | cache_file=/dev/null |
| 930 | exec_prefix=NONE |
| 931 | no_create= |
| 932 | no_recursion= |
| 933 | prefix=NONE |
| 934 | program_prefix=NONE |
| 935 | program_suffix=NONE |
| 936 | program_transform_name=s,x,x, |
| 937 | silent= |
| 938 | site= |
| 939 | srcdir= |
| 940 | verbose= |
| 941 | x_includes=NONE |
| 942 | x_libraries=NONE |
| 943 | |
| 944 | # Installation directory options. |
| 945 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 946 | # and all the variables that are supposed to be based on exec_prefix |
| 947 | # by default will actually change. |
| 948 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 949 | # (The list follows the same order as the GNU Coding Standards.) |
| 950 | bindir='${exec_prefix}/bin' |
| 951 | sbindir='${exec_prefix}/sbin' |
| 952 | libexecdir='${exec_prefix}/libexec' |
| 953 | datarootdir='${prefix}/share' |
| 954 | datadir='${datarootdir}' |
| 955 | sysconfdir='${prefix}/etc' |
| 956 | sharedstatedir='${prefix}/com' |
| 957 | localstatedir='${prefix}/var' |
| 958 | includedir='${prefix}/include' |
| 959 | oldincludedir='/usr/include' |
| 960 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 961 | infodir='${datarootdir}/info' |
| 962 | htmldir='${docdir}' |
| 963 | dvidir='${docdir}' |
| 964 | pdfdir='${docdir}' |
| 965 | psdir='${docdir}' |
| 966 | libdir='${exec_prefix}/lib' |
| 967 | localedir='${datarootdir}/locale' |
| 968 | mandir='${datarootdir}/man' |
| 969 | |
| 970 | ac_prev= |
| 971 | ac_dashdash= |
| 972 | for ac_option |
| 973 | do |
| 974 | # If the previous option needs an argument, assign it. |
| 975 | if test -n "$ac_prev"; then |
| 976 | eval $ac_prev=\$ac_option |
| 977 | ac_prev= |
| 978 | continue |
| 979 | fi |
| 980 | |
| 981 | case $ac_option in |
| 982 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 983 | *) ac_optarg=yes ;; |
| 984 | esac |
| 985 | |
| 986 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 987 | |
| 988 | case $ac_dashdash$ac_option in |
| 989 | --) |
| 990 | ac_dashdash=yes ;; |
| 991 | |
| 992 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 993 | ac_prev=bindir ;; |
| 994 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 995 | bindir=$ac_optarg ;; |
| 996 | |
| 997 | -build | --build | --buil | --bui | --bu) |
| 998 | ac_prev=build_alias ;; |
| 999 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1000 | build_alias=$ac_optarg ;; |
| 1001 | |
| 1002 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1003 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1004 | ac_prev=cache_file ;; |
| 1005 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1006 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1007 | cache_file=$ac_optarg ;; |
| 1008 | |
| 1009 | --config-cache | -C) |
| 1010 | cache_file=config.cache ;; |
| 1011 | |
| 1012 | -datadir | --datadir | --datadi | --datad) |
| 1013 | ac_prev=datadir ;; |
| 1014 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1015 | datadir=$ac_optarg ;; |
| 1016 | |
| 1017 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1018 | | --dataroo | --dataro | --datar) |
| 1019 | ac_prev=datarootdir ;; |
| 1020 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1021 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1022 | datarootdir=$ac_optarg ;; |
| 1023 | |
| 1024 | -disable-* | --disable-*) |
| 1025 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1026 | # Reject names that are not valid shell variable names. |
| 1027 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1028 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1029 | { (exit 1); exit 1; }; } |
| 1030 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 1031 | eval enable_$ac_feature=no ;; |
| 1032 | |
| 1033 | -docdir | --docdir | --docdi | --doc | --do) |
| 1034 | ac_prev=docdir ;; |
| 1035 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1036 | docdir=$ac_optarg ;; |
| 1037 | |
| 1038 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1039 | ac_prev=dvidir ;; |
| 1040 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1041 | dvidir=$ac_optarg ;; |
| 1042 | |
| 1043 | -enable-* | --enable-*) |
| 1044 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1045 | # Reject names that are not valid shell variable names. |
| 1046 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1047 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1048 | { (exit 1); exit 1; }; } |
| 1049 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 1050 | eval enable_$ac_feature=\$ac_optarg ;; |
| 1051 | |
| 1052 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1053 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1054 | | --exec | --exe | --ex) |
| 1055 | ac_prev=exec_prefix ;; |
| 1056 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1057 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1058 | | --exec=* | --exe=* | --ex=*) |
| 1059 | exec_prefix=$ac_optarg ;; |
| 1060 | |
| 1061 | -gas | --gas | --ga | --g) |
| 1062 | # Obsolete; use --with-gas. |
| 1063 | with_gas=yes ;; |
| 1064 | |
| 1065 | -help | --help | --hel | --he | -h) |
| 1066 | ac_init_help=long ;; |
| 1067 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1068 | ac_init_help=recursive ;; |
| 1069 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1070 | ac_init_help=short ;; |
| 1071 | |
| 1072 | -host | --host | --hos | --ho) |
| 1073 | ac_prev=host_alias ;; |
| 1074 | -host=* | --host=* | --hos=* | --ho=*) |
| 1075 | host_alias=$ac_optarg ;; |
| 1076 | |
| 1077 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1078 | ac_prev=htmldir ;; |
| 1079 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1080 | | --ht=*) |
| 1081 | htmldir=$ac_optarg ;; |
| 1082 | |
| 1083 | -includedir | --includedir | --includedi | --included | --include \ |
| 1084 | | --includ | --inclu | --incl | --inc) |
| 1085 | ac_prev=includedir ;; |
| 1086 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1087 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1088 | includedir=$ac_optarg ;; |
| 1089 | |
| 1090 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1091 | ac_prev=infodir ;; |
| 1092 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1093 | infodir=$ac_optarg ;; |
| 1094 | |
| 1095 | -libdir | --libdir | --libdi | --libd) |
| 1096 | ac_prev=libdir ;; |
| 1097 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1098 | libdir=$ac_optarg ;; |
| 1099 | |
| 1100 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1101 | | --libexe | --libex | --libe) |
| 1102 | ac_prev=libexecdir ;; |
| 1103 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1104 | | --libexe=* | --libex=* | --libe=*) |
| 1105 | libexecdir=$ac_optarg ;; |
| 1106 | |
| 1107 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1108 | ac_prev=localedir ;; |
| 1109 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1110 | localedir=$ac_optarg ;; |
| 1111 | |
| 1112 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1113 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1114 | ac_prev=localstatedir ;; |
| 1115 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1116 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1117 | localstatedir=$ac_optarg ;; |
| 1118 | |
| 1119 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1120 | ac_prev=mandir ;; |
| 1121 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1122 | mandir=$ac_optarg ;; |
| 1123 | |
| 1124 | -nfp | --nfp | --nf) |
| 1125 | # Obsolete; use --without-fp. |
| 1126 | with_fp=no ;; |
| 1127 | |
| 1128 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1129 | | --no-cr | --no-c | -n) |
| 1130 | no_create=yes ;; |
| 1131 | |
| 1132 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1133 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1134 | no_recursion=yes ;; |
| 1135 | |
| 1136 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1137 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1138 | | --oldin | --oldi | --old | --ol | --o) |
| 1139 | ac_prev=oldincludedir ;; |
| 1140 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1141 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1142 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1143 | oldincludedir=$ac_optarg ;; |
| 1144 | |
| 1145 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1146 | ac_prev=prefix ;; |
| 1147 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1148 | prefix=$ac_optarg ;; |
| 1149 | |
| 1150 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1151 | | --program-pre | --program-pr | --program-p) |
| 1152 | ac_prev=program_prefix ;; |
| 1153 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1154 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1155 | program_prefix=$ac_optarg ;; |
| 1156 | |
| 1157 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1158 | | --program-suf | --program-su | --program-s) |
| 1159 | ac_prev=program_suffix ;; |
| 1160 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1161 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1162 | program_suffix=$ac_optarg ;; |
| 1163 | |
| 1164 | -program-transform-name | --program-transform-name \ |
| 1165 | | --program-transform-nam | --program-transform-na \ |
| 1166 | | --program-transform-n | --program-transform- \ |
| 1167 | | --program-transform | --program-transfor \ |
| 1168 | | --program-transfo | --program-transf \ |
| 1169 | | --program-trans | --program-tran \ |
| 1170 | | --progr-tra | --program-tr | --program-t) |
| 1171 | ac_prev=program_transform_name ;; |
| 1172 | -program-transform-name=* | --program-transform-name=* \ |
| 1173 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1174 | | --program-transform-n=* | --program-transform-=* \ |
| 1175 | | --program-transform=* | --program-transfor=* \ |
| 1176 | | --program-transfo=* | --program-transf=* \ |
| 1177 | | --program-trans=* | --program-tran=* \ |
| 1178 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1179 | program_transform_name=$ac_optarg ;; |
| 1180 | |
| 1181 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1182 | ac_prev=pdfdir ;; |
| 1183 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1184 | pdfdir=$ac_optarg ;; |
| 1185 | |
| 1186 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1187 | ac_prev=psdir ;; |
| 1188 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1189 | psdir=$ac_optarg ;; |
| 1190 | |
| 1191 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1192 | | -silent | --silent | --silen | --sile | --sil) |
| 1193 | silent=yes ;; |
| 1194 | |
| 1195 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1196 | ac_prev=sbindir ;; |
| 1197 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1198 | | --sbi=* | --sb=*) |
| 1199 | sbindir=$ac_optarg ;; |
| 1200 | |
| 1201 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1202 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1203 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1204 | | --sha | --sh) |
| 1205 | ac_prev=sharedstatedir ;; |
| 1206 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1207 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1208 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1209 | | --sha=* | --sh=*) |
| 1210 | sharedstatedir=$ac_optarg ;; |
| 1211 | |
| 1212 | -site | --site | --sit) |
| 1213 | ac_prev=site ;; |
| 1214 | -site=* | --site=* | --sit=*) |
| 1215 | site=$ac_optarg ;; |
| 1216 | |
| 1217 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1218 | ac_prev=srcdir ;; |
| 1219 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1220 | srcdir=$ac_optarg ;; |
| 1221 | |
| 1222 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1223 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1224 | ac_prev=sysconfdir ;; |
| 1225 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1226 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1227 | sysconfdir=$ac_optarg ;; |
| 1228 | |
| 1229 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1230 | ac_prev=target_alias ;; |
| 1231 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1232 | target_alias=$ac_optarg ;; |
| 1233 | |
| 1234 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1235 | verbose=yes ;; |
| 1236 | |
| 1237 | -version | --version | --versio | --versi | --vers | -V) |
| 1238 | ac_init_version=: ;; |
| 1239 | |
| 1240 | -with-* | --with-*) |
| 1241 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1242 | # Reject names that are not valid shell variable names. |
| 1243 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1244 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1245 | { (exit 1); exit 1; }; } |
| 1246 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1247 | eval with_$ac_package=\$ac_optarg ;; |
| 1248 | |
| 1249 | -without-* | --without-*) |
| 1250 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1251 | # Reject names that are not valid shell variable names. |
| 1252 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1253 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1254 | { (exit 1); exit 1; }; } |
| 1255 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1256 | eval with_$ac_package=no ;; |
| 1257 | |
| 1258 | --x) |
| 1259 | # Obsolete; use --with-x. |
| 1260 | with_x=yes ;; |
| 1261 | |
| 1262 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1263 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1264 | ac_prev=x_includes ;; |
| 1265 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1266 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1267 | x_includes=$ac_optarg ;; |
| 1268 | |
| 1269 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1270 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1271 | ac_prev=x_libraries ;; |
| 1272 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1273 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1274 | x_libraries=$ac_optarg ;; |
| 1275 | |
| 1276 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1277 | Try \`$0 --help' for more information." >&2 |
| 1278 | { (exit 1); exit 1; }; } |
| 1279 | ;; |
| 1280 | |
| 1281 | *=*) |
| 1282 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1283 | # Reject names that are not valid shell variable names. |
| 1284 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1285 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1286 | { (exit 1); exit 1; }; } |
| 1287 | eval $ac_envvar=\$ac_optarg |
| 1288 | export $ac_envvar ;; |
| 1289 | |
| 1290 | *) |
| 1291 | # FIXME: should be removed in autoconf 3.0. |
| 1292 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1293 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1294 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1295 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1296 | ;; |
| 1297 | |
| 1298 | esac |
| 1299 | done |
| 1300 | |
| 1301 | if test -n "$ac_prev"; then |
| 1302 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1303 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1304 | { (exit 1); exit 1; }; } |
| 1305 | fi |
| 1306 | |
| 1307 | # Be sure to have absolute directory names. |
| 1308 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1309 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1310 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1311 | libdir localedir mandir |
| 1312 | do |
| 1313 | eval ac_val=\$$ac_var |
| 1314 | case $ac_val in |
| 1315 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1316 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1317 | esac |
| 1318 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1319 | { (exit 1); exit 1; }; } |
| 1320 | done |
| 1321 | |
| 1322 | # There might be people who depend on the old broken behavior: `$host' |
| 1323 | # used to hold the argument of --host etc. |
| 1324 | # FIXME: To remove some day. |
| 1325 | build=$build_alias |
| 1326 | host=$host_alias |
| 1327 | target=$target_alias |
| 1328 | |
| 1329 | # FIXME: To remove some day. |
| 1330 | if test "x$host_alias" != x; then |
| 1331 | if test "x$build_alias" = x; then |
| 1332 | cross_compiling=maybe |
| 1333 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1334 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1335 | elif test "x$build_alias" != "x$host_alias"; then |
| 1336 | cross_compiling=yes |
| 1337 | fi |
| 1338 | fi |
| 1339 | |
| 1340 | ac_tool_prefix= |
| 1341 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1342 | |
| 1343 | test "$silent" = yes && exec 6>/dev/null |
| 1344 | |
| 1345 | |
| 1346 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1347 | ac_ls_di=`ls -di .` && |
| 1348 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1349 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1350 | { (exit 1); exit 1; }; } |
| 1351 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1352 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1353 | { (exit 1); exit 1; }; } |
| 1354 | |
| 1355 | |
| 1356 | # Find the source files, if location was not specified. |
| 1357 | if test -z "$srcdir"; then |
| 1358 | ac_srcdir_defaulted=yes |
| 1359 | # Try the directory containing this script, then the parent directory. |
| 1360 | ac_confdir=`$as_dirname -- "$0" || |
| 1361 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1362 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1363 | X"$0" : 'X\(//\)$' \| \ |
| 1364 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1365 | echo X"$0" | |
| 1366 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1367 | s//\1/ |
| 1368 | q |
| 1369 | } |
| 1370 | /^X\(\/\/\)[^/].*/{ |
| 1371 | s//\1/ |
| 1372 | q |
| 1373 | } |
| 1374 | /^X\(\/\/\)$/{ |
| 1375 | s//\1/ |
| 1376 | q |
| 1377 | } |
| 1378 | /^X\(\/\).*/{ |
| 1379 | s//\1/ |
| 1380 | q |
| 1381 | } |
| 1382 | s/.*/./; q'` |
| 1383 | srcdir=$ac_confdir |
| 1384 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1385 | srcdir=.. |
| 1386 | fi |
| 1387 | else |
| 1388 | ac_srcdir_defaulted=no |
| 1389 | fi |
| 1390 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1391 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1392 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1393 | { (exit 1); exit 1; }; } |
| 1394 | fi |
| 1395 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1396 | ac_abs_confdir=`( |
| 1397 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1398 | { (exit 1); exit 1; }; } |
| 1399 | pwd)` |
| 1400 | # When building in place, set srcdir=. |
| 1401 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1402 | srcdir=. |
| 1403 | fi |
| 1404 | # Remove unnecessary trailing slashes from srcdir. |
| 1405 | # Double slashes in file names in object file debugging info |
| 1406 | # mess up M-x gdb in Emacs. |
| 1407 | case $srcdir in |
| 1408 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1409 | esac |
| 1410 | for ac_var in $ac_precious_vars; do |
| 1411 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1412 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1413 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1414 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1415 | done |
| 1416 | |
| 1417 | # |
| 1418 | # Report the --help message. |
| 1419 | # |
| 1420 | if test "$ac_init_help" = "long"; then |
| 1421 | # Omit some internal or obsolete options to make the list less imposing. |
| 1422 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1423 | cat <<_ACEOF |
| 1424 | \`configure' configures libvorbis 1.3.1 to adapt to many kinds of systems. |
| 1425 | |
| 1426 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1427 | |
| 1428 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1429 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1430 | |
| 1431 | Defaults for the options are specified in brackets. |
| 1432 | |
| 1433 | Configuration: |
| 1434 | -h, --help display this help and exit |
| 1435 | --help=short display options specific to this package |
| 1436 | --help=recursive display the short help of all the included packages |
| 1437 | -V, --version display version information and exit |
| 1438 | -q, --quiet, --silent do not print \`checking...' messages |
| 1439 | --cache-file=FILE cache test results in FILE [disabled] |
| 1440 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1441 | -n, --no-create do not create output files |
| 1442 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1443 | |
| 1444 | Installation directories: |
| 1445 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1446 | [$ac_default_prefix] |
| 1447 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1448 | [PREFIX] |
| 1449 | |
| 1450 | By default, \`make install' will install all the files in |
| 1451 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1452 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1453 | for instance \`--prefix=\$HOME'. |
| 1454 | |
| 1455 | For better control, use the options below. |
| 1456 | |
| 1457 | Fine tuning of the installation directories: |
| 1458 | --bindir=DIR user executables [EPREFIX/bin] |
| 1459 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1460 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1461 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1462 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1463 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1464 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1465 | --includedir=DIR C header files [PREFIX/include] |
| 1466 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1467 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1468 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1469 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1470 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1471 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1472 | --docdir=DIR documentation root [DATAROOTDIR/doc/libvorbis] |
| 1473 | --htmldir=DIR html documentation [DOCDIR] |
| 1474 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1475 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1476 | --psdir=DIR ps documentation [DOCDIR] |
| 1477 | _ACEOF |
| 1478 | |
| 1479 | cat <<\_ACEOF |
| 1480 | |
| 1481 | Program names: |
| 1482 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1483 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1484 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1485 | |
| 1486 | System types: |
| 1487 | --build=BUILD configure for building on BUILD [guessed] |
| 1488 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1489 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1490 | _ACEOF |
| 1491 | fi |
| 1492 | |
| 1493 | if test -n "$ac_init_help"; then |
| 1494 | case $ac_init_help in |
| 1495 | short | recursive ) echo "Configuration of libvorbis 1.3.1:";; |
| 1496 | esac |
| 1497 | cat <<\_ACEOF |
| 1498 | |
| 1499 | Optional Features: |
| 1500 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1501 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1502 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1503 | (and sometimes confusing) to the casual installer |
| 1504 | --disable-dependency-tracking speeds up one-time build |
| 1505 | --enable-dependency-tracking do not reject slow dependency extractors |
| 1506 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1507 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1508 | --enable-fast-install[=PKGS] |
| 1509 | optimize for fast installation [default=yes] |
| 1510 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1511 | --enable-docs build the documentation |
| 1512 | --enable-examples build the examples |
| 1513 | --disable-oggtest Do not try to compile and run a test Ogg program |
| 1514 | |
| 1515 | Optional Packages: |
| 1516 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1517 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1518 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1519 | both] |
| 1520 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1521 | --with-ogg=PFX Prefix where libogg is installed (optional) |
| 1522 | --with-ogg-libraries=DIR |
| 1523 | Directory where libogg library is installed |
| 1524 | (optional) |
| 1525 | --with-ogg-includes=DIR Directory where libogg header files are installed |
| 1526 | (optional) |
| 1527 | |
| 1528 | Some influential environment variables: |
| 1529 | CC C compiler command |
| 1530 | CFLAGS C compiler flags |
| 1531 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1532 | nonstandard directory <lib dir> |
| 1533 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1534 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1535 | you have headers in a nonstandard directory <include dir> |
| 1536 | CPP C preprocessor |
| 1537 | PKG_CONFIG path to pkg-config utility |
| 1538 | OGG_CFLAGS C compiler flags for OGG, overriding pkg-config |
| 1539 | OGG_LIBS linker flags for OGG, overriding pkg-config |
| 1540 | |
| 1541 | Use these variables to override the choices made by `configure' or to help |
| 1542 | it to find libraries and programs with nonstandard names/locations. |
| 1543 | |
| 1544 | Report bugs to <vorbis-dev@xiph.org>. |
| 1545 | _ACEOF |
| 1546 | ac_status=$? |
| 1547 | fi |
| 1548 | |
| 1549 | if test "$ac_init_help" = "recursive"; then |
| 1550 | # If there are subdirs, report their specific --help. |
| 1551 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1552 | test -d "$ac_dir" || continue |
| 1553 | ac_builddir=. |
| 1554 | |
| 1555 | case "$ac_dir" in |
| 1556 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1557 | *) |
| 1558 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1559 | # A ".." for each directory in $ac_dir_suffix. |
| 1560 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1561 | case $ac_top_builddir_sub in |
| 1562 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1563 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1564 | esac ;; |
| 1565 | esac |
| 1566 | ac_abs_top_builddir=$ac_pwd |
| 1567 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1568 | # for backward compatibility: |
| 1569 | ac_top_builddir=$ac_top_build_prefix |
| 1570 | |
| 1571 | case $srcdir in |
| 1572 | .) # We are building in place. |
| 1573 | ac_srcdir=. |
| 1574 | ac_top_srcdir=$ac_top_builddir_sub |
| 1575 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1576 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1577 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1578 | ac_top_srcdir=$srcdir |
| 1579 | ac_abs_top_srcdir=$srcdir ;; |
| 1580 | *) # Relative name. |
| 1581 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1582 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1583 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1584 | esac |
| 1585 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1586 | |
| 1587 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1588 | # Check for guested configure. |
| 1589 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1590 | echo && |
| 1591 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1592 | elif test -f "$ac_srcdir/configure"; then |
| 1593 | echo && |
| 1594 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1595 | else |
| 1596 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1597 | fi || ac_status=$? |
| 1598 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1599 | done |
| 1600 | fi |
| 1601 | |
| 1602 | test -n "$ac_init_help" && exit $ac_status |
| 1603 | if $ac_init_version; then |
| 1604 | cat <<\_ACEOF |
| 1605 | libvorbis configure 1.3.1 |
| 1606 | generated by GNU Autoconf 2.61 |
| 1607 | |
| 1608 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1609 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| 1610 | This configure script is free software; the Free Software Foundation |
| 1611 | gives unlimited permission to copy, distribute and modify it. |
| 1612 | _ACEOF |
| 1613 | exit |
| 1614 | fi |
| 1615 | cat >config.log <<_ACEOF |
| 1616 | This file contains any messages produced by compilers while |
| 1617 | running configure, to aid debugging if configure makes a mistake. |
| 1618 | |
| 1619 | It was created by libvorbis $as_me 1.3.1, which was |
| 1620 | generated by GNU Autoconf 2.61. Invocation command line was |
| 1621 | |
| 1622 | $ $0 $@ |
| 1623 | |
| 1624 | _ACEOF |
| 1625 | exec 5>>config.log |
| 1626 | { |
| 1627 | cat <<_ASUNAME |
| 1628 | ## --------- ## |
| 1629 | ## Platform. ## |
| 1630 | ## --------- ## |
| 1631 | |
| 1632 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1633 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1634 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1635 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1636 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1637 | |
| 1638 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1639 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1640 | |
| 1641 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1642 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1643 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1644 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1645 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1646 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1647 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1648 | |
| 1649 | _ASUNAME |
| 1650 | |
| 1651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1652 | for as_dir in $PATH |
| 1653 | do |
| 1654 | IFS=$as_save_IFS |
| 1655 | test -z "$as_dir" && as_dir=. |
| 1656 | echo "PATH: $as_dir" |
| 1657 | done |
| 1658 | IFS=$as_save_IFS |
| 1659 | |
| 1660 | } >&5 |
| 1661 | |
| 1662 | cat >&5 <<_ACEOF |
| 1663 | |
| 1664 | |
| 1665 | ## ----------- ## |
| 1666 | ## Core tests. ## |
| 1667 | ## ----------- ## |
| 1668 | |
| 1669 | _ACEOF |
| 1670 | |
| 1671 | |
| 1672 | # Keep a trace of the command line. |
| 1673 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1674 | # Strip out --silent because we don't want to record it for future runs. |
| 1675 | # Also quote any args containing shell meta-characters. |
| 1676 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1677 | ac_configure_args= |
| 1678 | ac_configure_args0= |
| 1679 | ac_configure_args1= |
| 1680 | ac_must_keep_next=false |
| 1681 | for ac_pass in 1 2 |
| 1682 | do |
| 1683 | for ac_arg |
| 1684 | do |
| 1685 | case $ac_arg in |
| 1686 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1687 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1688 | | -silent | --silent | --silen | --sile | --sil) |
| 1689 | continue ;; |
| 1690 | *\'*) |
| 1691 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1692 | esac |
| 1693 | case $ac_pass in |
| 1694 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1695 | 2) |
| 1696 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1697 | if test $ac_must_keep_next = true; then |
| 1698 | ac_must_keep_next=false # Got value, back to normal. |
| 1699 | else |
| 1700 | case $ac_arg in |
| 1701 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1702 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1703 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1704 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1705 | case "$ac_configure_args0 " in |
| 1706 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1707 | esac |
| 1708 | ;; |
| 1709 | -* ) ac_must_keep_next=true ;; |
| 1710 | esac |
| 1711 | fi |
| 1712 | ac_configure_args="$ac_configure_args '$ac_arg'" |
| 1713 | ;; |
| 1714 | esac |
| 1715 | done |
| 1716 | done |
| 1717 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1718 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1719 | |
| 1720 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1721 | # config.log. We remove comments because anyway the quotes in there |
| 1722 | # would cause problems or look ugly. |
| 1723 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1724 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1725 | trap 'exit_status=$? |
| 1726 | # Save into config.log some information that might help in debugging. |
| 1727 | { |
| 1728 | echo |
| 1729 | |
| 1730 | cat <<\_ASBOX |
| 1731 | ## ---------------- ## |
| 1732 | ## Cache variables. ## |
| 1733 | ## ---------------- ## |
| 1734 | _ASBOX |
| 1735 | echo |
| 1736 | # The following way of writing the cache mishandles newlines in values, |
| 1737 | ( |
| 1738 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1739 | eval ac_val=\$$ac_var |
| 1740 | case $ac_val in #( |
| 1741 | *${as_nl}*) |
| 1742 | case $ac_var in #( |
| 1743 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1744 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1745 | esac |
| 1746 | case $ac_var in #( |
| 1747 | _ | IFS | as_nl) ;; #( |
| 1748 | *) $as_unset $ac_var ;; |
| 1749 | esac ;; |
| 1750 | esac |
| 1751 | done |
| 1752 | (set) 2>&1 | |
| 1753 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1754 | *${as_nl}ac_space=\ *) |
| 1755 | sed -n \ |
| 1756 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1757 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1758 | ;; #( |
| 1759 | *) |
| 1760 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1761 | ;; |
| 1762 | esac | |
| 1763 | sort |
| 1764 | ) |
| 1765 | echo |
| 1766 | |
| 1767 | cat <<\_ASBOX |
| 1768 | ## ----------------- ## |
| 1769 | ## Output variables. ## |
| 1770 | ## ----------------- ## |
| 1771 | _ASBOX |
| 1772 | echo |
| 1773 | for ac_var in $ac_subst_vars |
| 1774 | do |
| 1775 | eval ac_val=\$$ac_var |
| 1776 | case $ac_val in |
| 1777 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1778 | esac |
| 1779 | echo "$ac_var='\''$ac_val'\''" |
| 1780 | done | sort |
| 1781 | echo |
| 1782 | |
| 1783 | if test -n "$ac_subst_files"; then |
| 1784 | cat <<\_ASBOX |
| 1785 | ## ------------------- ## |
| 1786 | ## File substitutions. ## |
| 1787 | ## ------------------- ## |
| 1788 | _ASBOX |
| 1789 | echo |
| 1790 | for ac_var in $ac_subst_files |
| 1791 | do |
| 1792 | eval ac_val=\$$ac_var |
| 1793 | case $ac_val in |
| 1794 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1795 | esac |
| 1796 | echo "$ac_var='\''$ac_val'\''" |
| 1797 | done | sort |
| 1798 | echo |
| 1799 | fi |
| 1800 | |
| 1801 | if test -s confdefs.h; then |
| 1802 | cat <<\_ASBOX |
| 1803 | ## ----------- ## |
| 1804 | ## confdefs.h. ## |
| 1805 | ## ----------- ## |
| 1806 | _ASBOX |
| 1807 | echo |
| 1808 | cat confdefs.h |
| 1809 | echo |
| 1810 | fi |
| 1811 | test "$ac_signal" != 0 && |
| 1812 | echo "$as_me: caught signal $ac_signal" |
| 1813 | echo "$as_me: exit $exit_status" |
| 1814 | } >&5 |
| 1815 | rm -f core *.core core.conftest.* && |
| 1816 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1817 | exit $exit_status |
| 1818 | ' 0 |
| 1819 | for ac_signal in 1 2 13 15; do |
| 1820 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1821 | done |
| 1822 | ac_signal=0 |
| 1823 | |
| 1824 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1825 | rm -f -r conftest* confdefs.h |
| 1826 | |
| 1827 | # Predefined preprocessor variables. |
| 1828 | |
| 1829 | cat >>confdefs.h <<_ACEOF |
| 1830 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1831 | _ACEOF |
| 1832 | |
| 1833 | |
| 1834 | cat >>confdefs.h <<_ACEOF |
| 1835 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1836 | _ACEOF |
| 1837 | |
| 1838 | |
| 1839 | cat >>confdefs.h <<_ACEOF |
| 1840 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1841 | _ACEOF |
| 1842 | |
| 1843 | |
| 1844 | cat >>confdefs.h <<_ACEOF |
| 1845 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1846 | _ACEOF |
| 1847 | |
| 1848 | |
| 1849 | cat >>confdefs.h <<_ACEOF |
| 1850 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1851 | _ACEOF |
| 1852 | |
| 1853 | |
| 1854 | # Let the site file select an alternate cache file if it wants to. |
| 1855 | # Prefer explicitly selected file to automatically selected ones. |
| 1856 | if test -n "$CONFIG_SITE"; then |
| 1857 | set x "$CONFIG_SITE" |
| 1858 | elif test "x$prefix" != xNONE; then |
| 1859 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1860 | else |
| 1861 | set x "$ac_default_prefix/share/config.site" \ |
| 1862 | "$ac_default_prefix/etc/config.site" |
| 1863 | fi |
| 1864 | shift |
| 1865 | for ac_site_file |
| 1866 | do |
| 1867 | if test -r "$ac_site_file"; then |
| 1868 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1869 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1870 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1871 | . "$ac_site_file" |
| 1872 | fi |
| 1873 | done |
| 1874 | |
| 1875 | if test -r "$cache_file"; then |
| 1876 | # Some versions of bash will fail to source /dev/null (special |
| 1877 | # files actually), so we avoid doing that. |
| 1878 | if test -f "$cache_file"; then |
| 1879 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1880 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1881 | case $cache_file in |
| 1882 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1883 | *) . "./$cache_file";; |
| 1884 | esac |
| 1885 | fi |
| 1886 | else |
| 1887 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1888 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1889 | >$cache_file |
| 1890 | fi |
| 1891 | |
| 1892 | # Check that the precious variables saved in the cache have kept the same |
| 1893 | # value. |
| 1894 | ac_cache_corrupted=false |
| 1895 | for ac_var in $ac_precious_vars; do |
| 1896 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1897 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1898 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1899 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 1900 | case $ac_old_set,$ac_new_set in |
| 1901 | set,) |
| 1902 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1903 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1904 | ac_cache_corrupted=: ;; |
| 1905 | ,set) |
| 1906 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1907 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1908 | ac_cache_corrupted=: ;; |
| 1909 | ,);; |
| 1910 | *) |
| 1911 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1912 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1913 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1914 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1915 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1916 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1917 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1918 | ac_cache_corrupted=: |
| 1919 | fi;; |
| 1920 | esac |
| 1921 | # Pass precious variables to config.status. |
| 1922 | if test "$ac_new_set" = set; then |
| 1923 | case $ac_new_val in |
| 1924 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1925 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1926 | esac |
| 1927 | case " $ac_configure_args " in |
| 1928 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1929 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1930 | esac |
| 1931 | fi |
| 1932 | done |
| 1933 | if $ac_cache_corrupted; then |
| 1934 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1935 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1936 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1937 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1938 | { (exit 1); exit 1; }; } |
| 1939 | fi |
| 1940 | |
| 1941 | |
| 1942 | |
| 1943 | |
| 1944 | |
| 1945 | |
| 1946 | |
| 1947 | |
| 1948 | |
| 1949 | |
| 1950 | |
| 1951 | |
| 1952 | |
| 1953 | |
| 1954 | |
| 1955 | |
| 1956 | |
| 1957 | |
| 1958 | |
| 1959 | |
| 1960 | |
| 1961 | |
| 1962 | |
| 1963 | |
| 1964 | |
| 1965 | ac_ext=c |
| 1966 | ac_cpp='$CPP $CPPFLAGS' |
| 1967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1970 | |
| 1971 | |
| 1972 | |
| 1973 | |
| 1974 | |
| 1975 | ac_aux_dir= |
| 1976 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 1977 | if test -f "$ac_dir/install-sh"; then |
| 1978 | ac_aux_dir=$ac_dir |
| 1979 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1980 | break |
| 1981 | elif test -f "$ac_dir/install.sh"; then |
| 1982 | ac_aux_dir=$ac_dir |
| 1983 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1984 | break |
| 1985 | elif test -f "$ac_dir/shtool"; then |
| 1986 | ac_aux_dir=$ac_dir |
| 1987 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1988 | break |
| 1989 | fi |
| 1990 | done |
| 1991 | if test -z "$ac_aux_dir"; then |
| 1992 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 1993 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
| 1994 | { (exit 1); exit 1; }; } |
| 1995 | fi |
| 1996 | |
| 1997 | # These three variables are undocumented and unsupported, |
| 1998 | # and are intended to be withdrawn in a future Autoconf release. |
| 1999 | # They can cause serious problems if a builder's source tree is in a directory |
| 2000 | # whose full name contains unusual characters. |
| 2001 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2002 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2003 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2004 | |
| 2005 | |
| 2006 | # Make sure we can run config.sub. |
| 2007 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2008 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2009 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2010 | { (exit 1); exit 1; }; } |
| 2011 | |
| 2012 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2013 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 2014 | if test "${ac_cv_build+set}" = set; then |
| 2015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2016 | else |
| 2017 | ac_build_alias=$build_alias |
| 2018 | test "x$ac_build_alias" = x && |
| 2019 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2020 | test "x$ac_build_alias" = x && |
| 2021 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2022 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2023 | { (exit 1); exit 1; }; } |
| 2024 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2025 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2026 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2027 | { (exit 1); exit 1; }; } |
| 2028 | |
| 2029 | fi |
| 2030 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2031 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2032 | case $ac_cv_build in |
| 2033 | *-*-*) ;; |
| 2034 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2035 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2036 | { (exit 1); exit 1; }; };; |
| 2037 | esac |
| 2038 | build=$ac_cv_build |
| 2039 | ac_save_IFS=$IFS; IFS='-' |
| 2040 | set x $ac_cv_build |
| 2041 | shift |
| 2042 | build_cpu=$1 |
| 2043 | build_vendor=$2 |
| 2044 | shift; shift |
| 2045 | # Remember, the first character of IFS is used to create $*, |
| 2046 | # except with old shells: |
| 2047 | build_os=$* |
| 2048 | IFS=$ac_save_IFS |
| 2049 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2050 | |
| 2051 | |
| 2052 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2053 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2054 | if test "${ac_cv_host+set}" = set; then |
| 2055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2056 | else |
| 2057 | if test "x$host_alias" = x; then |
| 2058 | ac_cv_host=$ac_cv_build |
| 2059 | else |
| 2060 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2061 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2062 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2063 | { (exit 1); exit 1; }; } |
| 2064 | fi |
| 2065 | |
| 2066 | fi |
| 2067 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2068 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2069 | case $ac_cv_host in |
| 2070 | *-*-*) ;; |
| 2071 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2072 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2073 | { (exit 1); exit 1; }; };; |
| 2074 | esac |
| 2075 | host=$ac_cv_host |
| 2076 | ac_save_IFS=$IFS; IFS='-' |
| 2077 | set x $ac_cv_host |
| 2078 | shift |
| 2079 | host_cpu=$1 |
| 2080 | host_vendor=$2 |
| 2081 | shift; shift |
| 2082 | # Remember, the first character of IFS is used to create $*, |
| 2083 | # except with old shells: |
| 2084 | host_os=$* |
| 2085 | IFS=$ac_save_IFS |
| 2086 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2087 | |
| 2088 | |
| 2089 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2090 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2091 | if test "${ac_cv_target+set}" = set; then |
| 2092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2093 | else |
| 2094 | if test "x$target_alias" = x; then |
| 2095 | ac_cv_target=$ac_cv_host |
| 2096 | else |
| 2097 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2098 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2099 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2100 | { (exit 1); exit 1; }; } |
| 2101 | fi |
| 2102 | |
| 2103 | fi |
| 2104 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2105 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2106 | case $ac_cv_target in |
| 2107 | *-*-*) ;; |
| 2108 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2109 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2110 | { (exit 1); exit 1; }; };; |
| 2111 | esac |
| 2112 | target=$ac_cv_target |
| 2113 | ac_save_IFS=$IFS; IFS='-' |
| 2114 | set x $ac_cv_target |
| 2115 | shift |
| 2116 | target_cpu=$1 |
| 2117 | target_vendor=$2 |
| 2118 | shift; shift |
| 2119 | # Remember, the first character of IFS is used to create $*, |
| 2120 | # except with old shells: |
| 2121 | target_os=$* |
| 2122 | IFS=$ac_save_IFS |
| 2123 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 2124 | |
| 2125 | |
| 2126 | # The aliases save the names the user supplied, while $host etc. |
| 2127 | # will get canonicalized. |
| 2128 | test -n "$target_alias" && |
| 2129 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2130 | NONENONEs,x,x, && |
| 2131 | program_prefix=${target_alias}- |
| 2132 | |
| 2133 | am__api_version='1.10' |
| 2134 | |
| 2135 | # Find a good install program. We prefer a C program (faster), |
| 2136 | # so one script is as good as another. But avoid the broken or |
| 2137 | # incompatible versions: |
| 2138 | # SysV /etc/install, /usr/sbin/install |
| 2139 | # SunOS /usr/etc/install |
| 2140 | # IRIX /sbin/install |
| 2141 | # AIX /bin/install |
| 2142 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2143 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2144 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2145 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2146 | # OS/2's system install, which has a completely different semantic |
| 2147 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2148 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2149 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 2150 | if test -z "$INSTALL"; then |
| 2151 | if test "${ac_cv_path_install+set}" = set; then |
| 2152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2153 | else |
| 2154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2155 | for as_dir in $PATH |
| 2156 | do |
| 2157 | IFS=$as_save_IFS |
| 2158 | test -z "$as_dir" && as_dir=. |
| 2159 | # Account for people who put trailing slashes in PATH elements. |
| 2160 | case $as_dir/ in |
| 2161 | ./ | .// | /cC/* | \ |
| 2162 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2163 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 2164 | /usr/ucb/* ) ;; |
| 2165 | *) |
| 2166 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2167 | # Don't use installbsd from OSF since it installs stuff as root |
| 2168 | # by default. |
| 2169 | for ac_prog in ginstall scoinst install; do |
| 2170 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2171 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 2172 | if test $ac_prog = install && |
| 2173 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2174 | # AIX install. It has an incompatible calling convention. |
| 2175 | : |
| 2176 | elif test $ac_prog = install && |
| 2177 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2178 | # program-specific install script used by HP pwplus--don't use. |
| 2179 | : |
| 2180 | else |
| 2181 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2182 | break 3 |
| 2183 | fi |
| 2184 | fi |
| 2185 | done |
| 2186 | done |
| 2187 | ;; |
| 2188 | esac |
| 2189 | done |
| 2190 | IFS=$as_save_IFS |
| 2191 | |
| 2192 | |
| 2193 | fi |
| 2194 | if test "${ac_cv_path_install+set}" = set; then |
| 2195 | INSTALL=$ac_cv_path_install |
| 2196 | else |
| 2197 | # As a last resort, use the slow shell script. Don't cache a |
| 2198 | # value for INSTALL within a source directory, because that will |
| 2199 | # break other packages using the cache if that directory is |
| 2200 | # removed, or if the value is a relative name. |
| 2201 | INSTALL=$ac_install_sh |
| 2202 | fi |
| 2203 | fi |
| 2204 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2205 | echo "${ECHO_T}$INSTALL" >&6; } |
| 2206 | |
| 2207 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2208 | # It thinks the first close brace ends the variable substitution. |
| 2209 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2210 | |
| 2211 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2212 | |
| 2213 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2214 | |
| 2215 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 2216 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
| 2217 | # Just in case |
| 2218 | sleep 1 |
| 2219 | echo timestamp > conftest.file |
| 2220 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2221 | # arguments. Must try -L first in case configure is actually a |
| 2222 | # symlink; some systems play weird games with the mod time of symlinks |
| 2223 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2224 | # directory). |
| 2225 | if ( |
| 2226 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 2227 | if test "$*" = "X"; then |
| 2228 | # -L didn't work. |
| 2229 | set X `ls -t $srcdir/configure conftest.file` |
| 2230 | fi |
| 2231 | rm -f conftest.file |
| 2232 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2233 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2234 | |
| 2235 | # If neither matched, then we have a broken ls. This can happen |
| 2236 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2237 | # broken ls alias from the environment. This has actually |
| 2238 | # happened. Such a system could not be considered "sane". |
| 2239 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2240 | alias in your environment" >&5 |
| 2241 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2242 | alias in your environment" >&2;} |
| 2243 | { (exit 1); exit 1; }; } |
| 2244 | fi |
| 2245 | |
| 2246 | test "$2" = conftest.file |
| 2247 | ) |
| 2248 | then |
| 2249 | # Ok. |
| 2250 | : |
| 2251 | else |
| 2252 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2253 | Check your system clock" >&5 |
| 2254 | echo "$as_me: error: newly created file is older than distributed files! |
| 2255 | Check your system clock" >&2;} |
| 2256 | { (exit 1); exit 1; }; } |
| 2257 | fi |
| 2258 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2259 | echo "${ECHO_T}yes" >&6; } |
| 2260 | test "$program_prefix" != NONE && |
| 2261 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2262 | # Use a double $ so make ignores it. |
| 2263 | test "$program_suffix" != NONE && |
| 2264 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2265 | # Double any \ or $. echo might interpret backslashes. |
| 2266 | # By default was `s,x,x', remove it if useless. |
| 2267 | cat <<\_ACEOF >conftest.sed |
| 2268 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 2269 | _ACEOF |
| 2270 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 2271 | rm -f conftest.sed |
| 2272 | |
| 2273 | # expand $ac_aux_dir to an absolute path |
| 2274 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2275 | |
| 2276 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 2277 | # Use eval to expand $SHELL |
| 2278 | if eval "$MISSING --run true"; then |
| 2279 | am_missing_run="$MISSING --run " |
| 2280 | else |
| 2281 | am_missing_run= |
| 2282 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2283 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2284 | fi |
| 2285 | |
| 2286 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
| 2287 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
| 2288 | if test -z "$MKDIR_P"; then |
| 2289 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2291 | else |
| 2292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2293 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2294 | do |
| 2295 | IFS=$as_save_IFS |
| 2296 | test -z "$as_dir" && as_dir=. |
| 2297 | for ac_prog in mkdir gmkdir; do |
| 2298 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2299 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2300 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2301 | 'mkdir (GNU coreutils) '* | \ |
| 2302 | 'mkdir (coreutils) '* | \ |
| 2303 | 'mkdir (fileutils) '4.1*) |
| 2304 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2305 | break 3;; |
| 2306 | esac |
| 2307 | done |
| 2308 | done |
| 2309 | done |
| 2310 | IFS=$as_save_IFS |
| 2311 | |
| 2312 | fi |
| 2313 | |
| 2314 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2315 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2316 | else |
| 2317 | # As a last resort, use the slow shell script. Don't cache a |
| 2318 | # value for MKDIR_P within a source directory, because that will |
| 2319 | # break other packages using the cache if that directory is |
| 2320 | # removed, or if the value is a relative name. |
| 2321 | test -d ./--version && rmdir ./--version |
| 2322 | MKDIR_P="$ac_install_sh -d" |
| 2323 | fi |
| 2324 | fi |
| 2325 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
| 2326 | echo "${ECHO_T}$MKDIR_P" >&6; } |
| 2327 | |
| 2328 | mkdir_p="$MKDIR_P" |
| 2329 | case $mkdir_p in |
| 2330 | [\\/$]* | ?:[\\/]*) ;; |
| 2331 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2332 | esac |
| 2333 | |
| 2334 | for ac_prog in gawk mawk nawk awk |
| 2335 | do |
| 2336 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2337 | set dummy $ac_prog; ac_word=$2 |
| 2338 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2340 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2342 | else |
| 2343 | if test -n "$AWK"; then |
| 2344 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2345 | else |
| 2346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2347 | for as_dir in $PATH |
| 2348 | do |
| 2349 | IFS=$as_save_IFS |
| 2350 | test -z "$as_dir" && as_dir=. |
| 2351 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2353 | ac_cv_prog_AWK="$ac_prog" |
| 2354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2355 | break 2 |
| 2356 | fi |
| 2357 | done |
| 2358 | done |
| 2359 | IFS=$as_save_IFS |
| 2360 | |
| 2361 | fi |
| 2362 | fi |
| 2363 | AWK=$ac_cv_prog_AWK |
| 2364 | if test -n "$AWK"; then |
| 2365 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2366 | echo "${ECHO_T}$AWK" >&6; } |
| 2367 | else |
| 2368 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2369 | echo "${ECHO_T}no" >&6; } |
| 2370 | fi |
| 2371 | |
| 2372 | |
| 2373 | test -n "$AWK" && break |
| 2374 | done |
| 2375 | |
| 2376 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2377 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 2378 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2379 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 2380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2381 | else |
| 2382 | cat >conftest.make <<\_ACEOF |
| 2383 | SHELL = /bin/sh |
| 2384 | all: |
| 2385 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2386 | _ACEOF |
| 2387 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2388 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2389 | *@@@%%%=?*=@@@%%%*) |
| 2390 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2391 | *) |
| 2392 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2393 | esac |
| 2394 | rm -f conftest.make |
| 2395 | fi |
| 2396 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2397 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2398 | echo "${ECHO_T}yes" >&6; } |
| 2399 | SET_MAKE= |
| 2400 | else |
| 2401 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2402 | echo "${ECHO_T}no" >&6; } |
| 2403 | SET_MAKE="MAKE=${MAKE-make}" |
| 2404 | fi |
| 2405 | |
| 2406 | rm -rf .tst 2>/dev/null |
| 2407 | mkdir .tst 2>/dev/null |
| 2408 | if test -d .tst; then |
| 2409 | am__leading_dot=. |
| 2410 | else |
| 2411 | am__leading_dot=_ |
| 2412 | fi |
| 2413 | rmdir .tst 2>/dev/null |
| 2414 | |
| 2415 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2416 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2417 | # is not polluted with repeated "-I." |
| 2418 | am__isrc=' -I$(srcdir)' |
| 2419 | # test to see if srcdir already configured |
| 2420 | if test -f $srcdir/config.status; then |
| 2421 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 2422 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 2423 | { (exit 1); exit 1; }; } |
| 2424 | fi |
| 2425 | fi |
| 2426 | |
| 2427 | # test whether we have cygpath |
| 2428 | if test -z "$CYGPATH_W"; then |
| 2429 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2430 | CYGPATH_W='cygpath -w' |
| 2431 | else |
| 2432 | CYGPATH_W=echo |
| 2433 | fi |
| 2434 | fi |
| 2435 | |
| 2436 | |
| 2437 | # Define the identity of the package. |
| 2438 | PACKAGE=$PACKAGE_NAME |
| 2439 | VERSION=$PACKAGE_VERSION |
| 2440 | |
| 2441 | |
| 2442 | cat >>confdefs.h <<_ACEOF |
| 2443 | #define PACKAGE "$PACKAGE" |
| 2444 | _ACEOF |
| 2445 | |
| 2446 | |
| 2447 | cat >>confdefs.h <<_ACEOF |
| 2448 | #define VERSION "$VERSION" |
| 2449 | _ACEOF |
| 2450 | |
| 2451 | # Some tools Automake needs. |
| 2452 | |
| 2453 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2454 | |
| 2455 | |
| 2456 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2457 | |
| 2458 | |
| 2459 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2460 | |
| 2461 | |
| 2462 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2463 | |
| 2464 | |
| 2465 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2466 | |
| 2467 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
| 2468 | |
| 2469 | # Installed binaries are usually stripped using `strip' when the user |
| 2470 | # run `make install-strip'. However `strip' might not be the right |
| 2471 | # tool to use in cross-compilation environments, therefore Automake |
| 2472 | # will honor the `STRIP' environment variable to overrule this program. |
| 2473 | if test "$cross_compiling" != no; then |
| 2474 | if test -n "$ac_tool_prefix"; then |
| 2475 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2476 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2477 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2479 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2481 | else |
| 2482 | if test -n "$STRIP"; then |
| 2483 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2484 | else |
| 2485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2486 | for as_dir in $PATH |
| 2487 | do |
| 2488 | IFS=$as_save_IFS |
| 2489 | test -z "$as_dir" && as_dir=. |
| 2490 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2492 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2494 | break 2 |
| 2495 | fi |
| 2496 | done |
| 2497 | done |
| 2498 | IFS=$as_save_IFS |
| 2499 | |
| 2500 | fi |
| 2501 | fi |
| 2502 | STRIP=$ac_cv_prog_STRIP |
| 2503 | if test -n "$STRIP"; then |
| 2504 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2505 | echo "${ECHO_T}$STRIP" >&6; } |
| 2506 | else |
| 2507 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2508 | echo "${ECHO_T}no" >&6; } |
| 2509 | fi |
| 2510 | |
| 2511 | |
| 2512 | fi |
| 2513 | if test -z "$ac_cv_prog_STRIP"; then |
| 2514 | ac_ct_STRIP=$STRIP |
| 2515 | # Extract the first word of "strip", so it can be a program name with args. |
| 2516 | set dummy strip; ac_word=$2 |
| 2517 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2519 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 2520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2521 | else |
| 2522 | if test -n "$ac_ct_STRIP"; then |
| 2523 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2524 | else |
| 2525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2526 | for as_dir in $PATH |
| 2527 | do |
| 2528 | IFS=$as_save_IFS |
| 2529 | test -z "$as_dir" && as_dir=. |
| 2530 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2532 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2534 | break 2 |
| 2535 | fi |
| 2536 | done |
| 2537 | done |
| 2538 | IFS=$as_save_IFS |
| 2539 | |
| 2540 | fi |
| 2541 | fi |
| 2542 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2543 | if test -n "$ac_ct_STRIP"; then |
| 2544 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 2545 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
| 2546 | else |
| 2547 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2548 | echo "${ECHO_T}no" >&6; } |
| 2549 | fi |
| 2550 | |
| 2551 | if test "x$ac_ct_STRIP" = x; then |
| 2552 | STRIP=":" |
| 2553 | else |
| 2554 | case $cross_compiling:$ac_tool_warned in |
| 2555 | yes:) |
| 2556 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2557 | whose name does not start with the host triplet. If you think this |
| 2558 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2559 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2560 | whose name does not start with the host triplet. If you think this |
| 2561 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2562 | ac_tool_warned=yes ;; |
| 2563 | esac |
| 2564 | STRIP=$ac_ct_STRIP |
| 2565 | fi |
| 2566 | else |
| 2567 | STRIP="$ac_cv_prog_STRIP" |
| 2568 | fi |
| 2569 | |
| 2570 | fi |
| 2571 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2572 | |
| 2573 | # We need awk for the "check" target. The system "awk" is bad on |
| 2574 | # some platforms. |
| 2575 | # Always define AMTAR for backward compatibility. |
| 2576 | |
| 2577 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2578 | |
| 2579 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2580 | |
| 2581 | |
| 2582 | |
| 2583 | |
| 2584 | |
| 2585 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 2586 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } |
| 2587 | # Check whether --enable-maintainer-mode was given. |
| 2588 | if test "${enable_maintainer_mode+set}" = set; then |
| 2589 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 2590 | else |
| 2591 | USE_MAINTAINER_MODE=no |
| 2592 | fi |
| 2593 | |
| 2594 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 2595 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } |
| 2596 | if test $USE_MAINTAINER_MODE = yes; then |
| 2597 | MAINTAINER_MODE_TRUE= |
| 2598 | MAINTAINER_MODE_FALSE='#' |
| 2599 | else |
| 2600 | MAINTAINER_MODE_TRUE='#' |
| 2601 | MAINTAINER_MODE_FALSE= |
| 2602 | fi |
| 2603 | |
| 2604 | MAINT=$MAINTAINER_MODE_TRUE |
| 2605 | |
| 2606 | |
| 2607 | ac_config_headers="$ac_config_headers config.h" |
| 2608 | |
| 2609 | |
| 2610 | ACLOCAL_AMFLAGS="-I m4" |
| 2611 | |
| 2612 | |
| 2613 | |
| 2614 | V_LIB_CURRENT=4 |
| 2615 | V_LIB_REVISION=4 |
| 2616 | V_LIB_AGE=4 |
| 2617 | |
| 2618 | VF_LIB_CURRENT=6 |
| 2619 | VF_LIB_REVISION=2 |
| 2620 | VF_LIB_AGE=3 |
| 2621 | |
| 2622 | VE_LIB_CURRENT=2 |
| 2623 | VE_LIB_REVISION=7 |
| 2624 | VE_LIB_AGE=0 |
| 2625 | |
| 2626 | |
| 2627 | |
| 2628 | |
| 2629 | |
| 2630 | |
| 2631 | |
| 2632 | |
| 2633 | |
| 2634 | |
| 2635 | |
| 2636 | |
| 2637 | cflags_save="$CFLAGS" |
| 2638 | ac_ext=c |
| 2639 | ac_cpp='$CPP $CPPFLAGS' |
| 2640 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2641 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2642 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2643 | if test -n "$ac_tool_prefix"; then |
| 2644 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2645 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2646 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2648 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2650 | else |
| 2651 | if test -n "$CC"; then |
| 2652 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2653 | else |
| 2654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2655 | for as_dir in $PATH |
| 2656 | do |
| 2657 | IFS=$as_save_IFS |
| 2658 | test -z "$as_dir" && as_dir=. |
| 2659 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2660 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2661 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2663 | break 2 |
| 2664 | fi |
| 2665 | done |
| 2666 | done |
| 2667 | IFS=$as_save_IFS |
| 2668 | |
| 2669 | fi |
| 2670 | fi |
| 2671 | CC=$ac_cv_prog_CC |
| 2672 | if test -n "$CC"; then |
| 2673 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2674 | echo "${ECHO_T}$CC" >&6; } |
| 2675 | else |
| 2676 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2677 | echo "${ECHO_T}no" >&6; } |
| 2678 | fi |
| 2679 | |
| 2680 | |
| 2681 | fi |
| 2682 | if test -z "$ac_cv_prog_CC"; then |
| 2683 | ac_ct_CC=$CC |
| 2684 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2685 | set dummy gcc; ac_word=$2 |
| 2686 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2687 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2688 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2690 | else |
| 2691 | if test -n "$ac_ct_CC"; then |
| 2692 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2693 | else |
| 2694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2695 | for as_dir in $PATH |
| 2696 | do |
| 2697 | IFS=$as_save_IFS |
| 2698 | test -z "$as_dir" && as_dir=. |
| 2699 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2701 | ac_cv_prog_ac_ct_CC="gcc" |
| 2702 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2703 | break 2 |
| 2704 | fi |
| 2705 | done |
| 2706 | done |
| 2707 | IFS=$as_save_IFS |
| 2708 | |
| 2709 | fi |
| 2710 | fi |
| 2711 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2712 | if test -n "$ac_ct_CC"; then |
| 2713 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2714 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 2715 | else |
| 2716 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2717 | echo "${ECHO_T}no" >&6; } |
| 2718 | fi |
| 2719 | |
| 2720 | if test "x$ac_ct_CC" = x; then |
| 2721 | CC="" |
| 2722 | else |
| 2723 | case $cross_compiling:$ac_tool_warned in |
| 2724 | yes:) |
| 2725 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2726 | whose name does not start with the host triplet. If you think this |
| 2727 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2728 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2729 | whose name does not start with the host triplet. If you think this |
| 2730 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2731 | ac_tool_warned=yes ;; |
| 2732 | esac |
| 2733 | CC=$ac_ct_CC |
| 2734 | fi |
| 2735 | else |
| 2736 | CC="$ac_cv_prog_CC" |
| 2737 | fi |
| 2738 | |
| 2739 | if test -z "$CC"; then |
| 2740 | if test -n "$ac_tool_prefix"; then |
| 2741 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2742 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2743 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2745 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2747 | else |
| 2748 | if test -n "$CC"; then |
| 2749 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2750 | else |
| 2751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2752 | for as_dir in $PATH |
| 2753 | do |
| 2754 | IFS=$as_save_IFS |
| 2755 | test -z "$as_dir" && as_dir=. |
| 2756 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2758 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2759 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2760 | break 2 |
| 2761 | fi |
| 2762 | done |
| 2763 | done |
| 2764 | IFS=$as_save_IFS |
| 2765 | |
| 2766 | fi |
| 2767 | fi |
| 2768 | CC=$ac_cv_prog_CC |
| 2769 | if test -n "$CC"; then |
| 2770 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2771 | echo "${ECHO_T}$CC" >&6; } |
| 2772 | else |
| 2773 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2774 | echo "${ECHO_T}no" >&6; } |
| 2775 | fi |
| 2776 | |
| 2777 | |
| 2778 | fi |
| 2779 | fi |
| 2780 | if test -z "$CC"; then |
| 2781 | # Extract the first word of "cc", so it can be a program name with args. |
| 2782 | set dummy cc; ac_word=$2 |
| 2783 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2785 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2787 | else |
| 2788 | if test -n "$CC"; then |
| 2789 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2790 | else |
| 2791 | ac_prog_rejected=no |
| 2792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2793 | for as_dir in $PATH |
| 2794 | do |
| 2795 | IFS=$as_save_IFS |
| 2796 | test -z "$as_dir" && as_dir=. |
| 2797 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2798 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2799 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2800 | ac_prog_rejected=yes |
| 2801 | continue |
| 2802 | fi |
| 2803 | ac_cv_prog_CC="cc" |
| 2804 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2805 | break 2 |
| 2806 | fi |
| 2807 | done |
| 2808 | done |
| 2809 | IFS=$as_save_IFS |
| 2810 | |
| 2811 | if test $ac_prog_rejected = yes; then |
| 2812 | # We found a bogon in the path, so make sure we never use it. |
| 2813 | set dummy $ac_cv_prog_CC |
| 2814 | shift |
| 2815 | if test $# != 0; then |
| 2816 | # We chose a different compiler from the bogus one. |
| 2817 | # However, it has the same basename, so the bogon will be chosen |
| 2818 | # first if we set CC to just the basename; use the full file name. |
| 2819 | shift |
| 2820 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2821 | fi |
| 2822 | fi |
| 2823 | fi |
| 2824 | fi |
| 2825 | CC=$ac_cv_prog_CC |
| 2826 | if test -n "$CC"; then |
| 2827 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2828 | echo "${ECHO_T}$CC" >&6; } |
| 2829 | else |
| 2830 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2831 | echo "${ECHO_T}no" >&6; } |
| 2832 | fi |
| 2833 | |
| 2834 | |
| 2835 | fi |
| 2836 | if test -z "$CC"; then |
| 2837 | if test -n "$ac_tool_prefix"; then |
| 2838 | for ac_prog in cl.exe |
| 2839 | do |
| 2840 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2841 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2842 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2843 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2844 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2846 | else |
| 2847 | if test -n "$CC"; then |
| 2848 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2849 | else |
| 2850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2851 | for as_dir in $PATH |
| 2852 | do |
| 2853 | IFS=$as_save_IFS |
| 2854 | test -z "$as_dir" && as_dir=. |
| 2855 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2857 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2858 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2859 | break 2 |
| 2860 | fi |
| 2861 | done |
| 2862 | done |
| 2863 | IFS=$as_save_IFS |
| 2864 | |
| 2865 | fi |
| 2866 | fi |
| 2867 | CC=$ac_cv_prog_CC |
| 2868 | if test -n "$CC"; then |
| 2869 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2870 | echo "${ECHO_T}$CC" >&6; } |
| 2871 | else |
| 2872 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2873 | echo "${ECHO_T}no" >&6; } |
| 2874 | fi |
| 2875 | |
| 2876 | |
| 2877 | test -n "$CC" && break |
| 2878 | done |
| 2879 | fi |
| 2880 | if test -z "$CC"; then |
| 2881 | ac_ct_CC=$CC |
| 2882 | for ac_prog in cl.exe |
| 2883 | do |
| 2884 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2885 | set dummy $ac_prog; ac_word=$2 |
| 2886 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2888 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2890 | else |
| 2891 | if test -n "$ac_ct_CC"; then |
| 2892 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2893 | else |
| 2894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2895 | for as_dir in $PATH |
| 2896 | do |
| 2897 | IFS=$as_save_IFS |
| 2898 | test -z "$as_dir" && as_dir=. |
| 2899 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2901 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2903 | break 2 |
| 2904 | fi |
| 2905 | done |
| 2906 | done |
| 2907 | IFS=$as_save_IFS |
| 2908 | |
| 2909 | fi |
| 2910 | fi |
| 2911 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2912 | if test -n "$ac_ct_CC"; then |
| 2913 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2914 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 2915 | else |
| 2916 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2917 | echo "${ECHO_T}no" >&6; } |
| 2918 | fi |
| 2919 | |
| 2920 | |
| 2921 | test -n "$ac_ct_CC" && break |
| 2922 | done |
| 2923 | |
| 2924 | if test "x$ac_ct_CC" = x; then |
| 2925 | CC="" |
| 2926 | else |
| 2927 | case $cross_compiling:$ac_tool_warned in |
| 2928 | yes:) |
| 2929 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2930 | whose name does not start with the host triplet. If you think this |
| 2931 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2932 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2933 | whose name does not start with the host triplet. If you think this |
| 2934 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2935 | ac_tool_warned=yes ;; |
| 2936 | esac |
| 2937 | CC=$ac_ct_CC |
| 2938 | fi |
| 2939 | fi |
| 2940 | |
| 2941 | fi |
| 2942 | |
| 2943 | |
| 2944 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2945 | See \`config.log' for more details." >&5 |
| 2946 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2947 | See \`config.log' for more details." >&2;} |
| 2948 | { (exit 1); exit 1; }; } |
| 2949 | |
| 2950 | # Provide some information about the compiler. |
| 2951 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2952 | ac_compiler=`set X $ac_compile; echo $2` |
| 2953 | { (ac_try="$ac_compiler --version >&5" |
| 2954 | case "(($ac_try" in |
| 2955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2956 | *) ac_try_echo=$ac_try;; |
| 2957 | esac |
| 2958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2959 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2960 | ac_status=$? |
| 2961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2962 | (exit $ac_status); } |
| 2963 | { (ac_try="$ac_compiler -v >&5" |
| 2964 | case "(($ac_try" in |
| 2965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2966 | *) ac_try_echo=$ac_try;; |
| 2967 | esac |
| 2968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2969 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2970 | ac_status=$? |
| 2971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2972 | (exit $ac_status); } |
| 2973 | { (ac_try="$ac_compiler -V >&5" |
| 2974 | case "(($ac_try" in |
| 2975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2976 | *) ac_try_echo=$ac_try;; |
| 2977 | esac |
| 2978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2979 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2980 | ac_status=$? |
| 2981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2982 | (exit $ac_status); } |
| 2983 | |
| 2984 | cat >conftest.$ac_ext <<_ACEOF |
| 2985 | /* confdefs.h. */ |
| 2986 | _ACEOF |
| 2987 | cat confdefs.h >>conftest.$ac_ext |
| 2988 | cat >>conftest.$ac_ext <<_ACEOF |
| 2989 | /* end confdefs.h. */ |
| 2990 | |
| 2991 | int |
| 2992 | main () |
| 2993 | { |
| 2994 | |
| 2995 | ; |
| 2996 | return 0; |
| 2997 | } |
| 2998 | _ACEOF |
| 2999 | ac_clean_files_save=$ac_clean_files |
| 3000 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 3001 | # Try to create an executable without -o first, disregard a.out. |
| 3002 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3003 | # of exeext. |
| 3004 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 3005 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 3006 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3007 | # |
| 3008 | # List of possible output files, starting from the most likely. |
| 3009 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 3010 | # only as a last resort. b.out is created by i960 compilers. |
| 3011 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 3012 | # |
| 3013 | # The IRIX 6 linker writes into existing files which may not be |
| 3014 | # executable, retaining their permissions. Remove them first so a |
| 3015 | # subsequent execution test works. |
| 3016 | ac_rmfiles= |
| 3017 | for ac_file in $ac_files |
| 3018 | do |
| 3019 | case $ac_file in |
| 3020 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 3021 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3022 | esac |
| 3023 | done |
| 3024 | rm -f $ac_rmfiles |
| 3025 | |
| 3026 | if { (ac_try="$ac_link_default" |
| 3027 | case "(($ac_try" in |
| 3028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3029 | *) ac_try_echo=$ac_try;; |
| 3030 | esac |
| 3031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3032 | (eval "$ac_link_default") 2>&5 |
| 3033 | ac_status=$? |
| 3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3035 | (exit $ac_status); }; then |
| 3036 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3037 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3038 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3039 | # so that the user can short-circuit this test for compilers unknown to |
| 3040 | # Autoconf. |
| 3041 | for ac_file in $ac_files '' |
| 3042 | do |
| 3043 | test -f "$ac_file" || continue |
| 3044 | case $ac_file in |
| 3045 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
| 3046 | ;; |
| 3047 | [ab].out ) |
| 3048 | # We found the default executable, but exeext='' is most |
| 3049 | # certainly right. |
| 3050 | break;; |
| 3051 | *.* ) |
| 3052 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3053 | then :; else |
| 3054 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3055 | fi |
| 3056 | # We set ac_cv_exeext here because the later test for it is not |
| 3057 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3058 | # argument, so we may need to know it at that point already. |
| 3059 | # Even if this section looks crufty: it has the advantage of |
| 3060 | # actually working. |
| 3061 | break;; |
| 3062 | * ) |
| 3063 | break;; |
| 3064 | esac |
| 3065 | done |
| 3066 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3067 | |
| 3068 | else |
| 3069 | ac_file='' |
| 3070 | fi |
| 3071 | |
| 3072 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 3073 | echo "${ECHO_T}$ac_file" >&6; } |
| 3074 | if test -z "$ac_file"; then |
| 3075 | echo "$as_me: failed program was:" >&5 |
| 3076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3077 | |
| 3078 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 3079 | See \`config.log' for more details." >&5 |
| 3080 | echo "$as_me: error: C compiler cannot create executables |
| 3081 | See \`config.log' for more details." >&2;} |
| 3082 | { (exit 77); exit 77; }; } |
| 3083 | fi |
| 3084 | |
| 3085 | ac_exeext=$ac_cv_exeext |
| 3086 | |
| 3087 | # Check that the compiler produces executables we can run. If not, either |
| 3088 | # the compiler is broken, or we cross compile. |
| 3089 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 3090 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 3091 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 3092 | # If not cross compiling, check that we can run a simple program. |
| 3093 | if test "$cross_compiling" != yes; then |
| 3094 | if { ac_try='./$ac_file' |
| 3095 | { (case "(($ac_try" in |
| 3096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3097 | *) ac_try_echo=$ac_try;; |
| 3098 | esac |
| 3099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3100 | (eval "$ac_try") 2>&5 |
| 3101 | ac_status=$? |
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3103 | (exit $ac_status); }; }; then |
| 3104 | cross_compiling=no |
| 3105 | else |
| 3106 | if test "$cross_compiling" = maybe; then |
| 3107 | cross_compiling=yes |
| 3108 | else |
| 3109 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 3110 | If you meant to cross compile, use \`--host'. |
| 3111 | See \`config.log' for more details." >&5 |
| 3112 | echo "$as_me: error: cannot run C compiled programs. |
| 3113 | If you meant to cross compile, use \`--host'. |
| 3114 | See \`config.log' for more details." >&2;} |
| 3115 | { (exit 1); exit 1; }; } |
| 3116 | fi |
| 3117 | fi |
| 3118 | fi |
| 3119 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3120 | echo "${ECHO_T}yes" >&6; } |
| 3121 | |
| 3122 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 3123 | ac_clean_files=$ac_clean_files_save |
| 3124 | # Check that the compiler produces executables we can run. If not, either |
| 3125 | # the compiler is broken, or we cross compile. |
| 3126 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 3127 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 3128 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 3129 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 3130 | |
| 3131 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 3132 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 3133 | if { (ac_try="$ac_link" |
| 3134 | case "(($ac_try" in |
| 3135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3136 | *) ac_try_echo=$ac_try;; |
| 3137 | esac |
| 3138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3139 | (eval "$ac_link") 2>&5 |
| 3140 | ac_status=$? |
| 3141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3142 | (exit $ac_status); }; then |
| 3143 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3144 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3145 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3146 | # `rm'. |
| 3147 | for ac_file in conftest.exe conftest conftest.*; do |
| 3148 | test -f "$ac_file" || continue |
| 3149 | case $ac_file in |
| 3150 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 3151 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3152 | break;; |
| 3153 | * ) break;; |
| 3154 | esac |
| 3155 | done |
| 3156 | else |
| 3157 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 3158 | See \`config.log' for more details." >&5 |
| 3159 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 3160 | See \`config.log' for more details." >&2;} |
| 3161 | { (exit 1); exit 1; }; } |
| 3162 | fi |
| 3163 | |
| 3164 | rm -f conftest$ac_cv_exeext |
| 3165 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 3166 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
| 3167 | |
| 3168 | rm -f conftest.$ac_ext |
| 3169 | EXEEXT=$ac_cv_exeext |
| 3170 | ac_exeext=$EXEEXT |
| 3171 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 3172 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 3173 | if test "${ac_cv_objext+set}" = set; then |
| 3174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3175 | else |
| 3176 | cat >conftest.$ac_ext <<_ACEOF |
| 3177 | /* confdefs.h. */ |
| 3178 | _ACEOF |
| 3179 | cat confdefs.h >>conftest.$ac_ext |
| 3180 | cat >>conftest.$ac_ext <<_ACEOF |
| 3181 | /* end confdefs.h. */ |
| 3182 | |
| 3183 | int |
| 3184 | main () |
| 3185 | { |
| 3186 | |
| 3187 | ; |
| 3188 | return 0; |
| 3189 | } |
| 3190 | _ACEOF |
| 3191 | rm -f conftest.o conftest.obj |
| 3192 | if { (ac_try="$ac_compile" |
| 3193 | case "(($ac_try" in |
| 3194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3195 | *) ac_try_echo=$ac_try;; |
| 3196 | esac |
| 3197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3198 | (eval "$ac_compile") 2>&5 |
| 3199 | ac_status=$? |
| 3200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3201 | (exit $ac_status); }; then |
| 3202 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3203 | test -f "$ac_file" || continue; |
| 3204 | case $ac_file in |
| 3205 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
| 3206 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3207 | break;; |
| 3208 | esac |
| 3209 | done |
| 3210 | else |
| 3211 | echo "$as_me: failed program was:" >&5 |
| 3212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3213 | |
| 3214 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3215 | See \`config.log' for more details." >&5 |
| 3216 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3217 | See \`config.log' for more details." >&2;} |
| 3218 | { (exit 1); exit 1; }; } |
| 3219 | fi |
| 3220 | |
| 3221 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3222 | fi |
| 3223 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3224 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
| 3225 | OBJEXT=$ac_cv_objext |
| 3226 | ac_objext=$OBJEXT |
| 3227 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3228 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 3229 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3231 | else |
| 3232 | cat >conftest.$ac_ext <<_ACEOF |
| 3233 | /* confdefs.h. */ |
| 3234 | _ACEOF |
| 3235 | cat confdefs.h >>conftest.$ac_ext |
| 3236 | cat >>conftest.$ac_ext <<_ACEOF |
| 3237 | /* end confdefs.h. */ |
| 3238 | |
| 3239 | int |
| 3240 | main () |
| 3241 | { |
| 3242 | #ifndef __GNUC__ |
| 3243 | choke me |
| 3244 | #endif |
| 3245 | |
| 3246 | ; |
| 3247 | return 0; |
| 3248 | } |
| 3249 | _ACEOF |
| 3250 | rm -f conftest.$ac_objext |
| 3251 | if { (ac_try="$ac_compile" |
| 3252 | case "(($ac_try" in |
| 3253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3254 | *) ac_try_echo=$ac_try;; |
| 3255 | esac |
| 3256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3257 | (eval "$ac_compile") 2>conftest.er1 |
| 3258 | ac_status=$? |
| 3259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3260 | rm -f conftest.er1 |
| 3261 | cat conftest.err >&5 |
| 3262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3263 | (exit $ac_status); } && { |
| 3264 | test -z "$ac_c_werror_flag" || |
| 3265 | test ! -s conftest.err |
| 3266 | } && test -s conftest.$ac_objext; then |
| 3267 | ac_compiler_gnu=yes |
| 3268 | else |
| 3269 | echo "$as_me: failed program was:" >&5 |
| 3270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3271 | |
| 3272 | ac_compiler_gnu=no |
| 3273 | fi |
| 3274 | |
| 3275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3276 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3277 | |
| 3278 | fi |
| 3279 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3280 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3281 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3282 | ac_test_CFLAGS=${CFLAGS+set} |
| 3283 | ac_save_CFLAGS=$CFLAGS |
| 3284 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3285 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3286 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3288 | else |
| 3289 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3290 | ac_c_werror_flag=yes |
| 3291 | ac_cv_prog_cc_g=no |
| 3292 | CFLAGS="-g" |
| 3293 | cat >conftest.$ac_ext <<_ACEOF |
| 3294 | /* confdefs.h. */ |
| 3295 | _ACEOF |
| 3296 | cat confdefs.h >>conftest.$ac_ext |
| 3297 | cat >>conftest.$ac_ext <<_ACEOF |
| 3298 | /* end confdefs.h. */ |
| 3299 | |
| 3300 | int |
| 3301 | main () |
| 3302 | { |
| 3303 | |
| 3304 | ; |
| 3305 | return 0; |
| 3306 | } |
| 3307 | _ACEOF |
| 3308 | rm -f conftest.$ac_objext |
| 3309 | if { (ac_try="$ac_compile" |
| 3310 | case "(($ac_try" in |
| 3311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3312 | *) ac_try_echo=$ac_try;; |
| 3313 | esac |
| 3314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3315 | (eval "$ac_compile") 2>conftest.er1 |
| 3316 | ac_status=$? |
| 3317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3318 | rm -f conftest.er1 |
| 3319 | cat conftest.err >&5 |
| 3320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3321 | (exit $ac_status); } && { |
| 3322 | test -z "$ac_c_werror_flag" || |
| 3323 | test ! -s conftest.err |
| 3324 | } && test -s conftest.$ac_objext; then |
| 3325 | ac_cv_prog_cc_g=yes |
| 3326 | else |
| 3327 | echo "$as_me: failed program was:" >&5 |
| 3328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3329 | |
| 3330 | CFLAGS="" |
| 3331 | cat >conftest.$ac_ext <<_ACEOF |
| 3332 | /* confdefs.h. */ |
| 3333 | _ACEOF |
| 3334 | cat confdefs.h >>conftest.$ac_ext |
| 3335 | cat >>conftest.$ac_ext <<_ACEOF |
| 3336 | /* end confdefs.h. */ |
| 3337 | |
| 3338 | int |
| 3339 | main () |
| 3340 | { |
| 3341 | |
| 3342 | ; |
| 3343 | return 0; |
| 3344 | } |
| 3345 | _ACEOF |
| 3346 | rm -f conftest.$ac_objext |
| 3347 | if { (ac_try="$ac_compile" |
| 3348 | case "(($ac_try" in |
| 3349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3350 | *) ac_try_echo=$ac_try;; |
| 3351 | esac |
| 3352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3353 | (eval "$ac_compile") 2>conftest.er1 |
| 3354 | ac_status=$? |
| 3355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3356 | rm -f conftest.er1 |
| 3357 | cat conftest.err >&5 |
| 3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3359 | (exit $ac_status); } && { |
| 3360 | test -z "$ac_c_werror_flag" || |
| 3361 | test ! -s conftest.err |
| 3362 | } && test -s conftest.$ac_objext; then |
| 3363 | : |
| 3364 | else |
| 3365 | echo "$as_me: failed program was:" >&5 |
| 3366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3367 | |
| 3368 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3369 | CFLAGS="-g" |
| 3370 | cat >conftest.$ac_ext <<_ACEOF |
| 3371 | /* confdefs.h. */ |
| 3372 | _ACEOF |
| 3373 | cat confdefs.h >>conftest.$ac_ext |
| 3374 | cat >>conftest.$ac_ext <<_ACEOF |
| 3375 | /* end confdefs.h. */ |
| 3376 | |
| 3377 | int |
| 3378 | main () |
| 3379 | { |
| 3380 | |
| 3381 | ; |
| 3382 | return 0; |
| 3383 | } |
| 3384 | _ACEOF |
| 3385 | rm -f conftest.$ac_objext |
| 3386 | if { (ac_try="$ac_compile" |
| 3387 | case "(($ac_try" in |
| 3388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3389 | *) ac_try_echo=$ac_try;; |
| 3390 | esac |
| 3391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3392 | (eval "$ac_compile") 2>conftest.er1 |
| 3393 | ac_status=$? |
| 3394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3395 | rm -f conftest.er1 |
| 3396 | cat conftest.err >&5 |
| 3397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3398 | (exit $ac_status); } && { |
| 3399 | test -z "$ac_c_werror_flag" || |
| 3400 | test ! -s conftest.err |
| 3401 | } && test -s conftest.$ac_objext; then |
| 3402 | ac_cv_prog_cc_g=yes |
| 3403 | else |
| 3404 | echo "$as_me: failed program was:" >&5 |
| 3405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3406 | |
| 3407 | |
| 3408 | fi |
| 3409 | |
| 3410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3411 | fi |
| 3412 | |
| 3413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3414 | fi |
| 3415 | |
| 3416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3417 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3418 | fi |
| 3419 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3420 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 3421 | if test "$ac_test_CFLAGS" = set; then |
| 3422 | CFLAGS=$ac_save_CFLAGS |
| 3423 | elif test $ac_cv_prog_cc_g = yes; then |
| 3424 | if test "$GCC" = yes; then |
| 3425 | CFLAGS="-g -O2" |
| 3426 | else |
| 3427 | CFLAGS="-g" |
| 3428 | fi |
| 3429 | else |
| 3430 | if test "$GCC" = yes; then |
| 3431 | CFLAGS="-O2" |
| 3432 | else |
| 3433 | CFLAGS= |
| 3434 | fi |
| 3435 | fi |
| 3436 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3437 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3438 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3440 | else |
| 3441 | ac_cv_prog_cc_c89=no |
| 3442 | ac_save_CC=$CC |
| 3443 | cat >conftest.$ac_ext <<_ACEOF |
| 3444 | /* confdefs.h. */ |
| 3445 | _ACEOF |
| 3446 | cat confdefs.h >>conftest.$ac_ext |
| 3447 | cat >>conftest.$ac_ext <<_ACEOF |
| 3448 | /* end confdefs.h. */ |
| 3449 | #include <stdarg.h> |
| 3450 | #include <stdio.h> |
| 3451 | #include <sys/types.h> |
| 3452 | #include <sys/stat.h> |
| 3453 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3454 | struct buf { int x; }; |
| 3455 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3456 | static char *e (p, i) |
| 3457 | char **p; |
| 3458 | int i; |
| 3459 | { |
| 3460 | return p[i]; |
| 3461 | } |
| 3462 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3463 | { |
| 3464 | char *s; |
| 3465 | va_list v; |
| 3466 | va_start (v,p); |
| 3467 | s = g (p, va_arg (v,int)); |
| 3468 | va_end (v); |
| 3469 | return s; |
| 3470 | } |
| 3471 | |
| 3472 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3473 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3474 | These don't provoke an error unfortunately, instead are silently treated |
| 3475 | as 'x'. The following induces an error, until -std is added to get |
| 3476 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3477 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3478 | that's true only with -std. */ |
| 3479 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3480 | |
| 3481 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3482 | inside strings and character constants. */ |
| 3483 | #define FOO(x) 'x' |
| 3484 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3485 | |
| 3486 | int test (int i, double x); |
| 3487 | struct s1 {int (*f) (int a);}; |
| 3488 | struct s2 {int (*f) (double a);}; |
| 3489 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3490 | int argc; |
| 3491 | char **argv; |
| 3492 | int |
| 3493 | main () |
| 3494 | { |
| 3495 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3496 | ; |
| 3497 | return 0; |
| 3498 | } |
| 3499 | _ACEOF |
| 3500 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3501 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3502 | do |
| 3503 | CC="$ac_save_CC $ac_arg" |
| 3504 | rm -f conftest.$ac_objext |
| 3505 | if { (ac_try="$ac_compile" |
| 3506 | case "(($ac_try" in |
| 3507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3508 | *) ac_try_echo=$ac_try;; |
| 3509 | esac |
| 3510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3511 | (eval "$ac_compile") 2>conftest.er1 |
| 3512 | ac_status=$? |
| 3513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3514 | rm -f conftest.er1 |
| 3515 | cat conftest.err >&5 |
| 3516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3517 | (exit $ac_status); } && { |
| 3518 | test -z "$ac_c_werror_flag" || |
| 3519 | test ! -s conftest.err |
| 3520 | } && test -s conftest.$ac_objext; then |
| 3521 | ac_cv_prog_cc_c89=$ac_arg |
| 3522 | else |
| 3523 | echo "$as_me: failed program was:" >&5 |
| 3524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3525 | |
| 3526 | |
| 3527 | fi |
| 3528 | |
| 3529 | rm -f core conftest.err conftest.$ac_objext |
| 3530 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3531 | done |
| 3532 | rm -f conftest.$ac_ext |
| 3533 | CC=$ac_save_CC |
| 3534 | |
| 3535 | fi |
| 3536 | # AC_CACHE_VAL |
| 3537 | case "x$ac_cv_prog_cc_c89" in |
| 3538 | x) |
| 3539 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3540 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3541 | xno) |
| 3542 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3543 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 3544 | *) |
| 3545 | CC="$CC $ac_cv_prog_cc_c89" |
| 3546 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3547 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 3548 | esac |
| 3549 | |
| 3550 | |
| 3551 | ac_ext=c |
| 3552 | ac_cpp='$CPP $CPPFLAGS' |
| 3553 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3554 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3555 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3556 | DEPDIR="${am__leading_dot}deps" |
| 3557 | |
| 3558 | ac_config_commands="$ac_config_commands depfiles" |
| 3559 | |
| 3560 | |
| 3561 | am_make=${MAKE-make} |
| 3562 | cat > confinc << 'END' |
| 3563 | am__doit: |
| 3564 | @echo done |
| 3565 | .PHONY: am__doit |
| 3566 | END |
| 3567 | # If we don't find an include directive, just comment out the code. |
| 3568 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 3569 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
| 3570 | am__include="#" |
| 3571 | am__quote= |
| 3572 | _am_result=none |
| 3573 | # First try GNU make style include. |
| 3574 | echo "include confinc" > confmf |
| 3575 | # We grep out `Entering directory' and `Leaving directory' |
| 3576 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 3577 | # In particular we don't look at `^make:' because GNU make might |
| 3578 | # be invoked under some other name (usually "gmake"), in which |
| 3579 | # case it prints its new name instead of `make'. |
| 3580 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 3581 | am__include=include |
| 3582 | am__quote= |
| 3583 | _am_result=GNU |
| 3584 | fi |
| 3585 | # Now try BSD make style include. |
| 3586 | if test "$am__include" = "#"; then |
| 3587 | echo '.include "confinc"' > confmf |
| 3588 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 3589 | am__include=.include |
| 3590 | am__quote="\"" |
| 3591 | _am_result=BSD |
| 3592 | fi |
| 3593 | fi |
| 3594 | |
| 3595 | |
| 3596 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 3597 | echo "${ECHO_T}$_am_result" >&6; } |
| 3598 | rm -f confinc confmf |
| 3599 | |
| 3600 | # Check whether --enable-dependency-tracking was given. |
| 3601 | if test "${enable_dependency_tracking+set}" = set; then |
| 3602 | enableval=$enable_dependency_tracking; |
| 3603 | fi |
| 3604 | |
| 3605 | if test "x$enable_dependency_tracking" != xno; then |
| 3606 | am_depcomp="$ac_aux_dir/depcomp" |
| 3607 | AMDEPBACKSLASH='\' |
| 3608 | fi |
| 3609 | if test "x$enable_dependency_tracking" != xno; then |
| 3610 | AMDEP_TRUE= |
| 3611 | AMDEP_FALSE='#' |
| 3612 | else |
| 3613 | AMDEP_TRUE='#' |
| 3614 | AMDEP_FALSE= |
| 3615 | fi |
| 3616 | |
| 3617 | |
| 3618 | |
| 3619 | depcc="$CC" am_compiler_list= |
| 3620 | |
| 3621 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3622 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
| 3623 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 3624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3625 | else |
| 3626 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3627 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3628 | # making bogus files that we don't know about and never remove. For |
| 3629 | # instance it was reported that on HP-UX the gcc test will end up |
| 3630 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3631 | # in D'. |
| 3632 | mkdir conftest.dir |
| 3633 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3634 | # using a relative directory. |
| 3635 | cp "$am_depcomp" conftest.dir |
| 3636 | cd conftest.dir |
| 3637 | # We will build objects and dependencies in a subdirectory because |
| 3638 | # it helps to detect inapplicable dependency modes. For instance |
| 3639 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3640 | # side effect of compilation, but ICC will put the dependencies in |
| 3641 | # the current directory while Tru64 will put them in the object |
| 3642 | # directory. |
| 3643 | mkdir sub |
| 3644 | |
| 3645 | am_cv_CC_dependencies_compiler_type=none |
| 3646 | if test "$am_compiler_list" = ""; then |
| 3647 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3648 | fi |
| 3649 | for depmode in $am_compiler_list; do |
| 3650 | # Setup a source with many dependencies, because some compilers |
| 3651 | # like to wrap large dependency lists on column 80 (with \), and |
| 3652 | # we should not choose a depcomp mode which is confused by this. |
| 3653 | # |
| 3654 | # We need to recreate these files for each test, as the compiler may |
| 3655 | # overwrite some of them when testing with obscure command lines. |
| 3656 | # This happens at least with the AIX C compiler. |
| 3657 | : > sub/conftest.c |
| 3658 | for i in 1 2 3 4 5 6; do |
| 3659 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3660 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3661 | # Solaris 8's {/usr,}/bin/sh. |
| 3662 | touch sub/conftst$i.h |
| 3663 | done |
| 3664 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3665 | |
| 3666 | case $depmode in |
| 3667 | nosideeffect) |
| 3668 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3669 | # only be used when explicitly requested |
| 3670 | if test "x$enable_dependency_tracking" = xyes; then |
| 3671 | continue |
| 3672 | else |
| 3673 | break |
| 3674 | fi |
| 3675 | ;; |
| 3676 | none) break ;; |
| 3677 | esac |
| 3678 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3679 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3680 | # handle `-M -o', and we need to detect this. |
| 3681 | if depmode=$depmode \ |
| 3682 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3683 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3684 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3685 | >/dev/null 2>conftest.err && |
| 3686 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3687 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3688 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3689 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3690 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3691 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3692 | # that says an option was ignored or not supported. |
| 3693 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3694 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3695 | # The diagnosis changed in icc 8.0: |
| 3696 | # icc: Command line remark: option '-MP' not supported |
| 3697 | if (grep 'ignoring option' conftest.err || |
| 3698 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3699 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3700 | break |
| 3701 | fi |
| 3702 | fi |
| 3703 | done |
| 3704 | |
| 3705 | cd .. |
| 3706 | rm -rf conftest.dir |
| 3707 | else |
| 3708 | am_cv_CC_dependencies_compiler_type=none |
| 3709 | fi |
| 3710 | |
| 3711 | fi |
| 3712 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3713 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
| 3714 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3715 | |
| 3716 | if |
| 3717 | test "x$enable_dependency_tracking" != xno \ |
| 3718 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3719 | am__fastdepCC_TRUE= |
| 3720 | am__fastdepCC_FALSE='#' |
| 3721 | else |
| 3722 | am__fastdepCC_TRUE='#' |
| 3723 | am__fastdepCC_FALSE= |
| 3724 | fi |
| 3725 | |
| 3726 | |
| 3727 | ac_ext=c |
| 3728 | ac_cpp='$CPP $CPPFLAGS' |
| 3729 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3730 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3731 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3732 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3733 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 3734 | # On Suns, sometimes $CPP names a directory. |
| 3735 | if test -n "$CPP" && test -d "$CPP"; then |
| 3736 | CPP= |
| 3737 | fi |
| 3738 | if test -z "$CPP"; then |
| 3739 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3741 | else |
| 3742 | # Double quotes because CPP needs to be expanded |
| 3743 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3744 | do |
| 3745 | ac_preproc_ok=false |
| 3746 | for ac_c_preproc_warn_flag in '' yes |
| 3747 | do |
| 3748 | # Use a header file that comes with gcc, so configuring glibc |
| 3749 | # with a fresh cross-compiler works. |
| 3750 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3751 | # <limits.h> exists even on freestanding compilers. |
| 3752 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3753 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3754 | cat >conftest.$ac_ext <<_ACEOF |
| 3755 | /* confdefs.h. */ |
| 3756 | _ACEOF |
| 3757 | cat confdefs.h >>conftest.$ac_ext |
| 3758 | cat >>conftest.$ac_ext <<_ACEOF |
| 3759 | /* end confdefs.h. */ |
| 3760 | #ifdef __STDC__ |
| 3761 | # include <limits.h> |
| 3762 | #else |
| 3763 | # include <assert.h> |
| 3764 | #endif |
| 3765 | Syntax error |
| 3766 | _ACEOF |
| 3767 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3768 | case "(($ac_try" in |
| 3769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3770 | *) ac_try_echo=$ac_try;; |
| 3771 | esac |
| 3772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3773 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3774 | ac_status=$? |
| 3775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3776 | rm -f conftest.er1 |
| 3777 | cat conftest.err >&5 |
| 3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3779 | (exit $ac_status); } >/dev/null && { |
| 3780 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3781 | test ! -s conftest.err |
| 3782 | }; then |
| 3783 | : |
| 3784 | else |
| 3785 | echo "$as_me: failed program was:" >&5 |
| 3786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3787 | |
| 3788 | # Broken: fails on valid input. |
| 3789 | continue |
| 3790 | fi |
| 3791 | |
| 3792 | rm -f conftest.err conftest.$ac_ext |
| 3793 | |
| 3794 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3795 | # can be detected and how. |
| 3796 | cat >conftest.$ac_ext <<_ACEOF |
| 3797 | /* confdefs.h. */ |
| 3798 | _ACEOF |
| 3799 | cat confdefs.h >>conftest.$ac_ext |
| 3800 | cat >>conftest.$ac_ext <<_ACEOF |
| 3801 | /* end confdefs.h. */ |
| 3802 | #include <ac_nonexistent.h> |
| 3803 | _ACEOF |
| 3804 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3805 | case "(($ac_try" in |
| 3806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3807 | *) ac_try_echo=$ac_try;; |
| 3808 | esac |
| 3809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3810 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3811 | ac_status=$? |
| 3812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3813 | rm -f conftest.er1 |
| 3814 | cat conftest.err >&5 |
| 3815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3816 | (exit $ac_status); } >/dev/null && { |
| 3817 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3818 | test ! -s conftest.err |
| 3819 | }; then |
| 3820 | # Broken: success on invalid input. |
| 3821 | continue |
| 3822 | else |
| 3823 | echo "$as_me: failed program was:" >&5 |
| 3824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3825 | |
| 3826 | # Passes both tests. |
| 3827 | ac_preproc_ok=: |
| 3828 | break |
| 3829 | fi |
| 3830 | |
| 3831 | rm -f conftest.err conftest.$ac_ext |
| 3832 | |
| 3833 | done |
| 3834 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3835 | rm -f conftest.err conftest.$ac_ext |
| 3836 | if $ac_preproc_ok; then |
| 3837 | break |
| 3838 | fi |
| 3839 | |
| 3840 | done |
| 3841 | ac_cv_prog_CPP=$CPP |
| 3842 | |
| 3843 | fi |
| 3844 | CPP=$ac_cv_prog_CPP |
| 3845 | else |
| 3846 | ac_cv_prog_CPP=$CPP |
| 3847 | fi |
| 3848 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3849 | echo "${ECHO_T}$CPP" >&6; } |
| 3850 | ac_preproc_ok=false |
| 3851 | for ac_c_preproc_warn_flag in '' yes |
| 3852 | do |
| 3853 | # Use a header file that comes with gcc, so configuring glibc |
| 3854 | # with a fresh cross-compiler works. |
| 3855 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3856 | # <limits.h> exists even on freestanding compilers. |
| 3857 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3858 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3859 | cat >conftest.$ac_ext <<_ACEOF |
| 3860 | /* confdefs.h. */ |
| 3861 | _ACEOF |
| 3862 | cat confdefs.h >>conftest.$ac_ext |
| 3863 | cat >>conftest.$ac_ext <<_ACEOF |
| 3864 | /* end confdefs.h. */ |
| 3865 | #ifdef __STDC__ |
| 3866 | # include <limits.h> |
| 3867 | #else |
| 3868 | # include <assert.h> |
| 3869 | #endif |
| 3870 | Syntax error |
| 3871 | _ACEOF |
| 3872 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3873 | case "(($ac_try" in |
| 3874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3875 | *) ac_try_echo=$ac_try;; |
| 3876 | esac |
| 3877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3878 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3879 | ac_status=$? |
| 3880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3881 | rm -f conftest.er1 |
| 3882 | cat conftest.err >&5 |
| 3883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3884 | (exit $ac_status); } >/dev/null && { |
| 3885 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3886 | test ! -s conftest.err |
| 3887 | }; then |
| 3888 | : |
| 3889 | else |
| 3890 | echo "$as_me: failed program was:" >&5 |
| 3891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3892 | |
| 3893 | # Broken: fails on valid input. |
| 3894 | continue |
| 3895 | fi |
| 3896 | |
| 3897 | rm -f conftest.err conftest.$ac_ext |
| 3898 | |
| 3899 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3900 | # can be detected and how. |
| 3901 | cat >conftest.$ac_ext <<_ACEOF |
| 3902 | /* confdefs.h. */ |
| 3903 | _ACEOF |
| 3904 | cat confdefs.h >>conftest.$ac_ext |
| 3905 | cat >>conftest.$ac_ext <<_ACEOF |
| 3906 | /* end confdefs.h. */ |
| 3907 | #include <ac_nonexistent.h> |
| 3908 | _ACEOF |
| 3909 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3910 | case "(($ac_try" in |
| 3911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3912 | *) ac_try_echo=$ac_try;; |
| 3913 | esac |
| 3914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3915 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3916 | ac_status=$? |
| 3917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3918 | rm -f conftest.er1 |
| 3919 | cat conftest.err >&5 |
| 3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3921 | (exit $ac_status); } >/dev/null && { |
| 3922 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3923 | test ! -s conftest.err |
| 3924 | }; then |
| 3925 | # Broken: success on invalid input. |
| 3926 | continue |
| 3927 | else |
| 3928 | echo "$as_me: failed program was:" >&5 |
| 3929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3930 | |
| 3931 | # Passes both tests. |
| 3932 | ac_preproc_ok=: |
| 3933 | break |
| 3934 | fi |
| 3935 | |
| 3936 | rm -f conftest.err conftest.$ac_ext |
| 3937 | |
| 3938 | done |
| 3939 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3940 | rm -f conftest.err conftest.$ac_ext |
| 3941 | if $ac_preproc_ok; then |
| 3942 | : |
| 3943 | else |
| 3944 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3945 | See \`config.log' for more details." >&5 |
| 3946 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3947 | See \`config.log' for more details." >&2;} |
| 3948 | { (exit 1); exit 1; }; } |
| 3949 | fi |
| 3950 | |
| 3951 | ac_ext=c |
| 3952 | ac_cpp='$CPP $CPPFLAGS' |
| 3953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3956 | |
| 3957 | CFLAGS="$cflags_save" |
| 3958 | |
| 3959 | |
| 3960 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 3961 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
| 3962 | if test "${ac_cv_c_inline+set}" = set; then |
| 3963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3964 | else |
| 3965 | ac_cv_c_inline=no |
| 3966 | for ac_kw in inline __inline__ __inline; do |
| 3967 | cat >conftest.$ac_ext <<_ACEOF |
| 3968 | /* confdefs.h. */ |
| 3969 | _ACEOF |
| 3970 | cat confdefs.h >>conftest.$ac_ext |
| 3971 | cat >>conftest.$ac_ext <<_ACEOF |
| 3972 | /* end confdefs.h. */ |
| 3973 | #ifndef __cplusplus |
| 3974 | typedef int foo_t; |
| 3975 | static $ac_kw foo_t static_foo () {return 0; } |
| 3976 | $ac_kw foo_t foo () {return 0; } |
| 3977 | #endif |
| 3978 | |
| 3979 | _ACEOF |
| 3980 | rm -f conftest.$ac_objext |
| 3981 | if { (ac_try="$ac_compile" |
| 3982 | case "(($ac_try" in |
| 3983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3984 | *) ac_try_echo=$ac_try;; |
| 3985 | esac |
| 3986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3987 | (eval "$ac_compile") 2>conftest.er1 |
| 3988 | ac_status=$? |
| 3989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3990 | rm -f conftest.er1 |
| 3991 | cat conftest.err >&5 |
| 3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3993 | (exit $ac_status); } && { |
| 3994 | test -z "$ac_c_werror_flag" || |
| 3995 | test ! -s conftest.err |
| 3996 | } && test -s conftest.$ac_objext; then |
| 3997 | ac_cv_c_inline=$ac_kw |
| 3998 | else |
| 3999 | echo "$as_me: failed program was:" >&5 |
| 4000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4001 | |
| 4002 | |
| 4003 | fi |
| 4004 | |
| 4005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4006 | test "$ac_cv_c_inline" != no && break |
| 4007 | done |
| 4008 | |
| 4009 | fi |
| 4010 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 4011 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
| 4012 | |
| 4013 | |
| 4014 | case $ac_cv_c_inline in |
| 4015 | inline | yes) ;; |
| 4016 | *) |
| 4017 | case $ac_cv_c_inline in |
| 4018 | no) ac_val=;; |
| 4019 | *) ac_val=$ac_cv_c_inline;; |
| 4020 | esac |
| 4021 | cat >>confdefs.h <<_ACEOF |
| 4022 | #ifndef __cplusplus |
| 4023 | #define inline $ac_val |
| 4024 | #endif |
| 4025 | _ACEOF |
| 4026 | ;; |
| 4027 | esac |
| 4028 | |
| 4029 | |
| 4030 | enable_win32_dll=yes |
| 4031 | |
| 4032 | case $host in |
| 4033 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) |
| 4034 | if test -n "$ac_tool_prefix"; then |
| 4035 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 4036 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 4037 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4039 | if test "${ac_cv_prog_AS+set}" = set; then |
| 4040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4041 | else |
| 4042 | if test -n "$AS"; then |
| 4043 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 4044 | else |
| 4045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4046 | for as_dir in $PATH |
| 4047 | do |
| 4048 | IFS=$as_save_IFS |
| 4049 | test -z "$as_dir" && as_dir=. |
| 4050 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4052 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 4053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4054 | break 2 |
| 4055 | fi |
| 4056 | done |
| 4057 | done |
| 4058 | IFS=$as_save_IFS |
| 4059 | |
| 4060 | fi |
| 4061 | fi |
| 4062 | AS=$ac_cv_prog_AS |
| 4063 | if test -n "$AS"; then |
| 4064 | { echo "$as_me:$LINENO: result: $AS" >&5 |
| 4065 | echo "${ECHO_T}$AS" >&6; } |
| 4066 | else |
| 4067 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4068 | echo "${ECHO_T}no" >&6; } |
| 4069 | fi |
| 4070 | |
| 4071 | |
| 4072 | fi |
| 4073 | if test -z "$ac_cv_prog_AS"; then |
| 4074 | ac_ct_AS=$AS |
| 4075 | # Extract the first word of "as", so it can be a program name with args. |
| 4076 | set dummy as; ac_word=$2 |
| 4077 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4078 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4079 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| 4080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4081 | else |
| 4082 | if test -n "$ac_ct_AS"; then |
| 4083 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 4084 | else |
| 4085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4086 | for as_dir in $PATH |
| 4087 | do |
| 4088 | IFS=$as_save_IFS |
| 4089 | test -z "$as_dir" && as_dir=. |
| 4090 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4092 | ac_cv_prog_ac_ct_AS="as" |
| 4093 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4094 | break 2 |
| 4095 | fi |
| 4096 | done |
| 4097 | done |
| 4098 | IFS=$as_save_IFS |
| 4099 | |
| 4100 | fi |
| 4101 | fi |
| 4102 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 4103 | if test -n "$ac_ct_AS"; then |
| 4104 | { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
| 4105 | echo "${ECHO_T}$ac_ct_AS" >&6; } |
| 4106 | else |
| 4107 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4108 | echo "${ECHO_T}no" >&6; } |
| 4109 | fi |
| 4110 | |
| 4111 | if test "x$ac_ct_AS" = x; then |
| 4112 | AS="false" |
| 4113 | else |
| 4114 | case $cross_compiling:$ac_tool_warned in |
| 4115 | yes:) |
| 4116 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4117 | whose name does not start with the host triplet. If you think this |
| 4118 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4119 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4120 | whose name does not start with the host triplet. If you think this |
| 4121 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4122 | ac_tool_warned=yes ;; |
| 4123 | esac |
| 4124 | AS=$ac_ct_AS |
| 4125 | fi |
| 4126 | else |
| 4127 | AS="$ac_cv_prog_AS" |
| 4128 | fi |
| 4129 | |
| 4130 | if test -n "$ac_tool_prefix"; then |
| 4131 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 4132 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 4133 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4134 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4135 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 4136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4137 | else |
| 4138 | if test -n "$DLLTOOL"; then |
| 4139 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 4140 | else |
| 4141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4142 | for as_dir in $PATH |
| 4143 | do |
| 4144 | IFS=$as_save_IFS |
| 4145 | test -z "$as_dir" && as_dir=. |
| 4146 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4148 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 4149 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4150 | break 2 |
| 4151 | fi |
| 4152 | done |
| 4153 | done |
| 4154 | IFS=$as_save_IFS |
| 4155 | |
| 4156 | fi |
| 4157 | fi |
| 4158 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 4159 | if test -n "$DLLTOOL"; then |
| 4160 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 4161 | echo "${ECHO_T}$DLLTOOL" >&6; } |
| 4162 | else |
| 4163 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4164 | echo "${ECHO_T}no" >&6; } |
| 4165 | fi |
| 4166 | |
| 4167 | |
| 4168 | fi |
| 4169 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 4170 | ac_ct_DLLTOOL=$DLLTOOL |
| 4171 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 4172 | set dummy dlltool; ac_word=$2 |
| 4173 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4175 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 4176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4177 | else |
| 4178 | if test -n "$ac_ct_DLLTOOL"; then |
| 4179 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 4180 | else |
| 4181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4182 | for as_dir in $PATH |
| 4183 | do |
| 4184 | IFS=$as_save_IFS |
| 4185 | test -z "$as_dir" && as_dir=. |
| 4186 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4187 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4188 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 4189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4190 | break 2 |
| 4191 | fi |
| 4192 | done |
| 4193 | done |
| 4194 | IFS=$as_save_IFS |
| 4195 | |
| 4196 | fi |
| 4197 | fi |
| 4198 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 4199 | if test -n "$ac_ct_DLLTOOL"; then |
| 4200 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 4201 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } |
| 4202 | else |
| 4203 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4204 | echo "${ECHO_T}no" >&6; } |
| 4205 | fi |
| 4206 | |
| 4207 | if test "x$ac_ct_DLLTOOL" = x; then |
| 4208 | DLLTOOL="false" |
| 4209 | else |
| 4210 | case $cross_compiling:$ac_tool_warned in |
| 4211 | yes:) |
| 4212 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4213 | whose name does not start with the host triplet. If you think this |
| 4214 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4215 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4216 | whose name does not start with the host triplet. If you think this |
| 4217 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4218 | ac_tool_warned=yes ;; |
| 4219 | esac |
| 4220 | DLLTOOL=$ac_ct_DLLTOOL |
| 4221 | fi |
| 4222 | else |
| 4223 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 4224 | fi |
| 4225 | |
| 4226 | if test -n "$ac_tool_prefix"; then |
| 4227 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 4228 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 4229 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4230 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4231 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
| 4232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4233 | else |
| 4234 | if test -n "$OBJDUMP"; then |
| 4235 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 4236 | else |
| 4237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4238 | for as_dir in $PATH |
| 4239 | do |
| 4240 | IFS=$as_save_IFS |
| 4241 | test -z "$as_dir" && as_dir=. |
| 4242 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4244 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 4245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4246 | break 2 |
| 4247 | fi |
| 4248 | done |
| 4249 | done |
| 4250 | IFS=$as_save_IFS |
| 4251 | |
| 4252 | fi |
| 4253 | fi |
| 4254 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 4255 | if test -n "$OBJDUMP"; then |
| 4256 | { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
| 4257 | echo "${ECHO_T}$OBJDUMP" >&6; } |
| 4258 | else |
| 4259 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4260 | echo "${ECHO_T}no" >&6; } |
| 4261 | fi |
| 4262 | |
| 4263 | |
| 4264 | fi |
| 4265 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 4266 | ac_ct_OBJDUMP=$OBJDUMP |
| 4267 | # Extract the first word of "objdump", so it can be a program name with args. |
| 4268 | set dummy objdump; ac_word=$2 |
| 4269 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4271 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
| 4272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4273 | else |
| 4274 | if test -n "$ac_ct_OBJDUMP"; then |
| 4275 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 4276 | else |
| 4277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4278 | for as_dir in $PATH |
| 4279 | do |
| 4280 | IFS=$as_save_IFS |
| 4281 | test -z "$as_dir" && as_dir=. |
| 4282 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4284 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 4285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4286 | break 2 |
| 4287 | fi |
| 4288 | done |
| 4289 | done |
| 4290 | IFS=$as_save_IFS |
| 4291 | |
| 4292 | fi |
| 4293 | fi |
| 4294 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 4295 | if test -n "$ac_ct_OBJDUMP"; then |
| 4296 | { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
| 4297 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } |
| 4298 | else |
| 4299 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4300 | echo "${ECHO_T}no" >&6; } |
| 4301 | fi |
| 4302 | |
| 4303 | if test "x$ac_ct_OBJDUMP" = x; then |
| 4304 | OBJDUMP="false" |
| 4305 | else |
| 4306 | case $cross_compiling:$ac_tool_warned in |
| 4307 | yes:) |
| 4308 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4309 | whose name does not start with the host triplet. If you think this |
| 4310 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4311 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4312 | whose name does not start with the host triplet. If you think this |
| 4313 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4314 | ac_tool_warned=yes ;; |
| 4315 | esac |
| 4316 | OBJDUMP=$ac_ct_OBJDUMP |
| 4317 | fi |
| 4318 | else |
| 4319 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 4320 | fi |
| 4321 | |
| 4322 | ;; |
| 4323 | esac |
| 4324 | |
| 4325 | test -z "$AS" && AS=as |
| 4326 | |
| 4327 | |
| 4328 | |
| 4329 | |
| 4330 | |
| 4331 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 4332 | |
| 4333 | |
| 4334 | |
| 4335 | |
| 4336 | |
| 4337 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4338 | |
| 4339 | |
| 4340 | |
| 4341 | |
| 4342 | |
| 4343 | |
| 4344 | |
| 4345 | case `pwd` in |
| 4346 | *\ * | *\ *) |
| 4347 | { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 4348 | echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4349 | esac |
| 4350 | |
| 4351 | |
| 4352 | |
| 4353 | macro_version='2.2.6' |
| 4354 | macro_revision='1.3012' |
| 4355 | |
| 4356 | |
| 4357 | |
| 4358 | |
| 4359 | |
| 4360 | |
| 4361 | |
| 4362 | |
| 4363 | |
| 4364 | |
| 4365 | |
| 4366 | |
| 4367 | |
| 4368 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4369 | |
| 4370 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 4371 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
| 4372 | if test "${ac_cv_path_SED+set}" = set; then |
| 4373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4374 | else |
| 4375 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4376 | for ac_i in 1 2 3 4 5 6 7; do |
| 4377 | ac_script="$ac_script$as_nl$ac_script" |
| 4378 | done |
| 4379 | echo "$ac_script" | sed 99q >conftest.sed |
| 4380 | $as_unset ac_script || ac_script= |
| 4381 | # Extract the first word of "sed gsed" to use in msg output |
| 4382 | if test -z "$SED"; then |
| 4383 | set dummy sed gsed; ac_prog_name=$2 |
| 4384 | if test "${ac_cv_path_SED+set}" = set; then |
| 4385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4386 | else |
| 4387 | ac_path_SED_found=false |
| 4388 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4390 | for as_dir in $PATH |
| 4391 | do |
| 4392 | IFS=$as_save_IFS |
| 4393 | test -z "$as_dir" && as_dir=. |
| 4394 | for ac_prog in sed gsed; do |
| 4395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4396 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4397 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 4398 | # Check for GNU ac_path_SED and select it if it is found. |
| 4399 | # Check for GNU $ac_path_SED |
| 4400 | case `"$ac_path_SED" --version 2>&1` in |
| 4401 | *GNU*) |
| 4402 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4403 | *) |
| 4404 | ac_count=0 |
| 4405 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4406 | while : |
| 4407 | do |
| 4408 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4409 | mv "conftest.tmp" "conftest.in" |
| 4410 | cp "conftest.in" "conftest.nl" |
| 4411 | echo '' >> "conftest.nl" |
| 4412 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4413 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4414 | ac_count=`expr $ac_count + 1` |
| 4415 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4416 | # Best one so far, save it but keep looking for a better one |
| 4417 | ac_cv_path_SED="$ac_path_SED" |
| 4418 | ac_path_SED_max=$ac_count |
| 4419 | fi |
| 4420 | # 10*(2^10) chars as input seems more than enough |
| 4421 | test $ac_count -gt 10 && break |
| 4422 | done |
| 4423 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4424 | esac |
| 4425 | |
| 4426 | |
| 4427 | $ac_path_SED_found && break 3 |
| 4428 | done |
| 4429 | done |
| 4430 | |
| 4431 | done |
| 4432 | IFS=$as_save_IFS |
| 4433 | |
| 4434 | |
| 4435 | fi |
| 4436 | |
| 4437 | SED="$ac_cv_path_SED" |
| 4438 | if test -z "$SED"; then |
| 4439 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 |
| 4440 | echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} |
| 4441 | { (exit 1); exit 1; }; } |
| 4442 | fi |
| 4443 | |
| 4444 | else |
| 4445 | ac_cv_path_SED=$SED |
| 4446 | fi |
| 4447 | |
| 4448 | fi |
| 4449 | { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
| 4450 | echo "${ECHO_T}$ac_cv_path_SED" >&6; } |
| 4451 | SED="$ac_cv_path_SED" |
| 4452 | rm -f conftest.sed |
| 4453 | |
| 4454 | test -z "$SED" && SED=sed |
| 4455 | Xsed="$SED -e 1s/^X//" |
| 4456 | |
| 4457 | |
| 4458 | |
| 4459 | |
| 4460 | |
| 4461 | |
| 4462 | |
| 4463 | |
| 4464 | |
| 4465 | |
| 4466 | |
| 4467 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 4468 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 4469 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4471 | else |
| 4472 | # Extract the first word of "grep ggrep" to use in msg output |
| 4473 | if test -z "$GREP"; then |
| 4474 | set dummy grep ggrep; ac_prog_name=$2 |
| 4475 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4477 | else |
| 4478 | ac_path_GREP_found=false |
| 4479 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4481 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4482 | do |
| 4483 | IFS=$as_save_IFS |
| 4484 | test -z "$as_dir" && as_dir=. |
| 4485 | for ac_prog in grep ggrep; do |
| 4486 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4487 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4488 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4489 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4490 | # Check for GNU $ac_path_GREP |
| 4491 | case `"$ac_path_GREP" --version 2>&1` in |
| 4492 | *GNU*) |
| 4493 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4494 | *) |
| 4495 | ac_count=0 |
| 4496 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4497 | while : |
| 4498 | do |
| 4499 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4500 | mv "conftest.tmp" "conftest.in" |
| 4501 | cp "conftest.in" "conftest.nl" |
| 4502 | echo 'GREP' >> "conftest.nl" |
| 4503 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4504 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4505 | ac_count=`expr $ac_count + 1` |
| 4506 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4507 | # Best one so far, save it but keep looking for a better one |
| 4508 | ac_cv_path_GREP="$ac_path_GREP" |
| 4509 | ac_path_GREP_max=$ac_count |
| 4510 | fi |
| 4511 | # 10*(2^10) chars as input seems more than enough |
| 4512 | test $ac_count -gt 10 && break |
| 4513 | done |
| 4514 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4515 | esac |
| 4516 | |
| 4517 | |
| 4518 | $ac_path_GREP_found && break 3 |
| 4519 | done |
| 4520 | done |
| 4521 | |
| 4522 | done |
| 4523 | IFS=$as_save_IFS |
| 4524 | |
| 4525 | |
| 4526 | fi |
| 4527 | |
| 4528 | GREP="$ac_cv_path_GREP" |
| 4529 | if test -z "$GREP"; then |
| 4530 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4531 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4532 | { (exit 1); exit 1; }; } |
| 4533 | fi |
| 4534 | |
| 4535 | else |
| 4536 | ac_cv_path_GREP=$GREP |
| 4537 | fi |
| 4538 | |
| 4539 | |
| 4540 | fi |
| 4541 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4542 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 4543 | GREP="$ac_cv_path_GREP" |
| 4544 | |
| 4545 | |
| 4546 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4547 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4548 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4550 | else |
| 4551 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4552 | then ac_cv_path_EGREP="$GREP -E" |
| 4553 | else |
| 4554 | # Extract the first word of "egrep" to use in msg output |
| 4555 | if test -z "$EGREP"; then |
| 4556 | set dummy egrep; ac_prog_name=$2 |
| 4557 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4559 | else |
| 4560 | ac_path_EGREP_found=false |
| 4561 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4563 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4564 | do |
| 4565 | IFS=$as_save_IFS |
| 4566 | test -z "$as_dir" && as_dir=. |
| 4567 | for ac_prog in egrep; do |
| 4568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4569 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4570 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4571 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4572 | # Check for GNU $ac_path_EGREP |
| 4573 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4574 | *GNU*) |
| 4575 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4576 | *) |
| 4577 | ac_count=0 |
| 4578 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4579 | while : |
| 4580 | do |
| 4581 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4582 | mv "conftest.tmp" "conftest.in" |
| 4583 | cp "conftest.in" "conftest.nl" |
| 4584 | echo 'EGREP' >> "conftest.nl" |
| 4585 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4586 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4587 | ac_count=`expr $ac_count + 1` |
| 4588 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4589 | # Best one so far, save it but keep looking for a better one |
| 4590 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4591 | ac_path_EGREP_max=$ac_count |
| 4592 | fi |
| 4593 | # 10*(2^10) chars as input seems more than enough |
| 4594 | test $ac_count -gt 10 && break |
| 4595 | done |
| 4596 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4597 | esac |
| 4598 | |
| 4599 | |
| 4600 | $ac_path_EGREP_found && break 3 |
| 4601 | done |
| 4602 | done |
| 4603 | |
| 4604 | done |
| 4605 | IFS=$as_save_IFS |
| 4606 | |
| 4607 | |
| 4608 | fi |
| 4609 | |
| 4610 | EGREP="$ac_cv_path_EGREP" |
| 4611 | if test -z "$EGREP"; then |
| 4612 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4613 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4614 | { (exit 1); exit 1; }; } |
| 4615 | fi |
| 4616 | |
| 4617 | else |
| 4618 | ac_cv_path_EGREP=$EGREP |
| 4619 | fi |
| 4620 | |
| 4621 | |
| 4622 | fi |
| 4623 | fi |
| 4624 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4625 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 4626 | EGREP="$ac_cv_path_EGREP" |
| 4627 | |
| 4628 | |
| 4629 | { echo "$as_me:$LINENO: checking for fgrep" >&5 |
| 4630 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } |
| 4631 | if test "${ac_cv_path_FGREP+set}" = set; then |
| 4632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4633 | else |
| 4634 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4635 | then ac_cv_path_FGREP="$GREP -F" |
| 4636 | else |
| 4637 | # Extract the first word of "fgrep" to use in msg output |
| 4638 | if test -z "$FGREP"; then |
| 4639 | set dummy fgrep; ac_prog_name=$2 |
| 4640 | if test "${ac_cv_path_FGREP+set}" = set; then |
| 4641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4642 | else |
| 4643 | ac_path_FGREP_found=false |
| 4644 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4646 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4647 | do |
| 4648 | IFS=$as_save_IFS |
| 4649 | test -z "$as_dir" && as_dir=. |
| 4650 | for ac_prog in fgrep; do |
| 4651 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4652 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4653 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 4654 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4655 | # Check for GNU $ac_path_FGREP |
| 4656 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4657 | *GNU*) |
| 4658 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4659 | *) |
| 4660 | ac_count=0 |
| 4661 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4662 | while : |
| 4663 | do |
| 4664 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4665 | mv "conftest.tmp" "conftest.in" |
| 4666 | cp "conftest.in" "conftest.nl" |
| 4667 | echo 'FGREP' >> "conftest.nl" |
| 4668 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4669 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4670 | ac_count=`expr $ac_count + 1` |
| 4671 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4672 | # Best one so far, save it but keep looking for a better one |
| 4673 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4674 | ac_path_FGREP_max=$ac_count |
| 4675 | fi |
| 4676 | # 10*(2^10) chars as input seems more than enough |
| 4677 | test $ac_count -gt 10 && break |
| 4678 | done |
| 4679 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4680 | esac |
| 4681 | |
| 4682 | |
| 4683 | $ac_path_FGREP_found && break 3 |
| 4684 | done |
| 4685 | done |
| 4686 | |
| 4687 | done |
| 4688 | IFS=$as_save_IFS |
| 4689 | |
| 4690 | |
| 4691 | fi |
| 4692 | |
| 4693 | FGREP="$ac_cv_path_FGREP" |
| 4694 | if test -z "$FGREP"; then |
| 4695 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4696 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4697 | { (exit 1); exit 1; }; } |
| 4698 | fi |
| 4699 | |
| 4700 | else |
| 4701 | ac_cv_path_FGREP=$FGREP |
| 4702 | fi |
| 4703 | |
| 4704 | |
| 4705 | fi |
| 4706 | fi |
| 4707 | { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
| 4708 | echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } |
| 4709 | FGREP="$ac_cv_path_FGREP" |
| 4710 | |
| 4711 | |
| 4712 | test -z "$GREP" && GREP=grep |
| 4713 | |
| 4714 | |
| 4715 | |
| 4716 | |
| 4717 | |
| 4718 | |
| 4719 | |
| 4720 | |
| 4721 | |
| 4722 | |
| 4723 | |
| 4724 | |
| 4725 | |
| 4726 | |
| 4727 | |
| 4728 | |
| 4729 | |
| 4730 | |
| 4731 | |
| 4732 | # Check whether --with-gnu-ld was given. |
| 4733 | if test "${with_gnu_ld+set}" = set; then |
| 4734 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 4735 | else |
| 4736 | with_gnu_ld=no |
| 4737 | fi |
| 4738 | |
| 4739 | ac_prog=ld |
| 4740 | if test "$GCC" = yes; then |
| 4741 | # Check if gcc -print-prog-name=ld gives a path. |
| 4742 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 4743 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
| 4744 | case $host in |
| 4745 | *-*-mingw*) |
| 4746 | # gcc leaves a trailing carriage return which upsets mingw |
| 4747 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4748 | *) |
| 4749 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4750 | esac |
| 4751 | case $ac_prog in |
| 4752 | # Accept absolute paths. |
| 4753 | [\\/]* | ?:[\\/]*) |
| 4754 | re_direlt='/[^/][^/]*/\.\./' |
| 4755 | # Canonicalize the pathname of ld |
| 4756 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4757 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4758 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 4759 | done |
| 4760 | test -z "$LD" && LD="$ac_prog" |
| 4761 | ;; |
| 4762 | "") |
| 4763 | # If it fails, then pretend we aren't using GCC. |
| 4764 | ac_prog=ld |
| 4765 | ;; |
| 4766 | *) |
| 4767 | # If it is relative, then search for the first ld in PATH. |
| 4768 | with_gnu_ld=unknown |
| 4769 | ;; |
| 4770 | esac |
| 4771 | elif test "$with_gnu_ld" = yes; then |
| 4772 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4773 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
| 4774 | else |
| 4775 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 4776 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
| 4777 | fi |
| 4778 | if test "${lt_cv_path_LD+set}" = set; then |
| 4779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4780 | else |
| 4781 | if test -z "$LD"; then |
| 4782 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4783 | for ac_dir in $PATH; do |
| 4784 | IFS="$lt_save_ifs" |
| 4785 | test -z "$ac_dir" && ac_dir=. |
| 4786 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4787 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4788 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4789 | # but apparently some variants of GNU ld only accept -v. |
| 4790 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4791 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4792 | *GNU* | *'with BFD'*) |
| 4793 | test "$with_gnu_ld" != no && break |
| 4794 | ;; |
| 4795 | *) |
| 4796 | test "$with_gnu_ld" != yes && break |
| 4797 | ;; |
| 4798 | esac |
| 4799 | fi |
| 4800 | done |
| 4801 | IFS="$lt_save_ifs" |
| 4802 | else |
| 4803 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4804 | fi |
| 4805 | fi |
| 4806 | |
| 4807 | LD="$lt_cv_path_LD" |
| 4808 | if test -n "$LD"; then |
| 4809 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 4810 | echo "${ECHO_T}$LD" >&6; } |
| 4811 | else |
| 4812 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4813 | echo "${ECHO_T}no" >&6; } |
| 4814 | fi |
| 4815 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4816 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4817 | { (exit 1); exit 1; }; } |
| 4818 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4819 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
| 4820 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 4821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4822 | else |
| 4823 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4824 | case `$LD -v 2>&1 </dev/null` in |
| 4825 | *GNU* | *'with BFD'*) |
| 4826 | lt_cv_prog_gnu_ld=yes |
| 4827 | ;; |
| 4828 | *) |
| 4829 | lt_cv_prog_gnu_ld=no |
| 4830 | ;; |
| 4831 | esac |
| 4832 | fi |
| 4833 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4834 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
| 4835 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4836 | |
| 4837 | |
| 4838 | |
| 4839 | |
| 4840 | |
| 4841 | |
| 4842 | |
| 4843 | |
| 4844 | |
| 4845 | { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 4846 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } |
| 4847 | if test "${lt_cv_path_NM+set}" = set; then |
| 4848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4849 | else |
| 4850 | if test -n "$NM"; then |
| 4851 | # Let the user override the test. |
| 4852 | lt_cv_path_NM="$NM" |
| 4853 | else |
| 4854 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4855 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4856 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4857 | fi |
| 4858 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4859 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4860 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4861 | IFS="$lt_save_ifs" |
| 4862 | test -z "$ac_dir" && ac_dir=. |
| 4863 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4864 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4865 | # Check to see if the nm accepts a BSD-compat flag. |
| 4866 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4867 | # nm: unknown option "B" ignored |
| 4868 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4869 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4870 | */dev/null* | *'Invalid file or object type'*) |
| 4871 | lt_cv_path_NM="$tmp_nm -B" |
| 4872 | break |
| 4873 | ;; |
| 4874 | *) |
| 4875 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4876 | */dev/null*) |
| 4877 | lt_cv_path_NM="$tmp_nm -p" |
| 4878 | break |
| 4879 | ;; |
| 4880 | *) |
| 4881 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4882 | continue # so that we can try to find one that supports BSD flags |
| 4883 | ;; |
| 4884 | esac |
| 4885 | ;; |
| 4886 | esac |
| 4887 | fi |
| 4888 | done |
| 4889 | IFS="$lt_save_ifs" |
| 4890 | done |
| 4891 | : ${lt_cv_path_NM=no} |
| 4892 | fi |
| 4893 | fi |
| 4894 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4895 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 4896 | if test "$lt_cv_path_NM" != "no"; then |
| 4897 | NM="$lt_cv_path_NM" |
| 4898 | else |
| 4899 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 4900 | if test -n "$ac_tool_prefix"; then |
| 4901 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 4902 | do |
| 4903 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4904 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4905 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4907 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
| 4908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4909 | else |
| 4910 | if test -n "$DUMPBIN"; then |
| 4911 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 4912 | else |
| 4913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4914 | for as_dir in $PATH |
| 4915 | do |
| 4916 | IFS=$as_save_IFS |
| 4917 | test -z "$as_dir" && as_dir=. |
| 4918 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4919 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4920 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 4921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4922 | break 2 |
| 4923 | fi |
| 4924 | done |
| 4925 | done |
| 4926 | IFS=$as_save_IFS |
| 4927 | |
| 4928 | fi |
| 4929 | fi |
| 4930 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 4931 | if test -n "$DUMPBIN"; then |
| 4932 | { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
| 4933 | echo "${ECHO_T}$DUMPBIN" >&6; } |
| 4934 | else |
| 4935 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4936 | echo "${ECHO_T}no" >&6; } |
| 4937 | fi |
| 4938 | |
| 4939 | |
| 4940 | test -n "$DUMPBIN" && break |
| 4941 | done |
| 4942 | fi |
| 4943 | if test -z "$DUMPBIN"; then |
| 4944 | ac_ct_DUMPBIN=$DUMPBIN |
| 4945 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 4946 | do |
| 4947 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4948 | set dummy $ac_prog; ac_word=$2 |
| 4949 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4950 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4951 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
| 4952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4953 | else |
| 4954 | if test -n "$ac_ct_DUMPBIN"; then |
| 4955 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 4956 | else |
| 4957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4958 | for as_dir in $PATH |
| 4959 | do |
| 4960 | IFS=$as_save_IFS |
| 4961 | test -z "$as_dir" && as_dir=. |
| 4962 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4964 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 4965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4966 | break 2 |
| 4967 | fi |
| 4968 | done |
| 4969 | done |
| 4970 | IFS=$as_save_IFS |
| 4971 | |
| 4972 | fi |
| 4973 | fi |
| 4974 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 4975 | if test -n "$ac_ct_DUMPBIN"; then |
| 4976 | { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
| 4977 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } |
| 4978 | else |
| 4979 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4980 | echo "${ECHO_T}no" >&6; } |
| 4981 | fi |
| 4982 | |
| 4983 | |
| 4984 | test -n "$ac_ct_DUMPBIN" && break |
| 4985 | done |
| 4986 | |
| 4987 | if test "x$ac_ct_DUMPBIN" = x; then |
| 4988 | DUMPBIN=":" |
| 4989 | else |
| 4990 | case $cross_compiling:$ac_tool_warned in |
| 4991 | yes:) |
| 4992 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4993 | whose name does not start with the host triplet. If you think this |
| 4994 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4995 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4996 | whose name does not start with the host triplet. If you think this |
| 4997 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4998 | ac_tool_warned=yes ;; |
| 4999 | esac |
| 5000 | DUMPBIN=$ac_ct_DUMPBIN |
| 5001 | fi |
| 5002 | fi |
| 5003 | |
| 5004 | |
| 5005 | if test "$DUMPBIN" != ":"; then |
| 5006 | NM="$DUMPBIN" |
| 5007 | fi |
| 5008 | fi |
| 5009 | test -z "$NM" && NM=nm |
| 5010 | |
| 5011 | |
| 5012 | |
| 5013 | |
| 5014 | |
| 5015 | |
| 5016 | { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
| 5017 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } |
| 5018 | if test "${lt_cv_nm_interface+set}" = set; then |
| 5019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5020 | else |
| 5021 | lt_cv_nm_interface="BSD nm" |
| 5022 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5023 | (eval echo "\"\$as_me:5023: $ac_compile\"" >&5) |
| 5024 | (eval "$ac_compile" 2>conftest.err) |
| 5025 | cat conftest.err >&5 |
| 5026 | (eval echo "\"\$as_me:5026: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 5027 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5028 | cat conftest.err >&5 |
| 5029 | (eval echo "\"\$as_me:5029: output\"" >&5) |
| 5030 | cat conftest.out >&5 |
| 5031 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5032 | lt_cv_nm_interface="MS dumpbin" |
| 5033 | fi |
| 5034 | rm -f conftest* |
| 5035 | fi |
| 5036 | { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
| 5037 | echo "${ECHO_T}$lt_cv_nm_interface" >&6; } |
| 5038 | |
| 5039 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 5040 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 5041 | LN_S=$as_ln_s |
| 5042 | if test "$LN_S" = "ln -s"; then |
| 5043 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5044 | echo "${ECHO_T}yes" >&6; } |
| 5045 | else |
| 5046 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 5047 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 5048 | fi |
| 5049 | |
| 5050 | # find the maximum length of command line arguments |
| 5051 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 5052 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
| 5053 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 5054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5055 | else |
| 5056 | i=0 |
| 5057 | teststring="ABCD" |
| 5058 | |
| 5059 | case $build_os in |
| 5060 | msdosdjgpp*) |
| 5061 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5062 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5063 | # during glob expansion). Even if it were fixed, the result of this |
| 5064 | # check would be larger than it should be. |
| 5065 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5066 | ;; |
| 5067 | |
| 5068 | gnu*) |
| 5069 | # Under GNU Hurd, this test is not required because there is |
| 5070 | # no limit to the length of command line arguments. |
| 5071 | # Libtool will interpret -1 as no limit whatsoever |
| 5072 | lt_cv_sys_max_cmd_len=-1; |
| 5073 | ;; |
| 5074 | |
| 5075 | cygwin* | mingw* | cegcc*) |
| 5076 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5077 | # about 5 minutes as the teststring grows exponentially. |
| 5078 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5079 | # you end up with a "frozen" computer, even though with patience |
| 5080 | # the test eventually succeeds (with a max line length of 256k). |
| 5081 | # Instead, let's just punt: use the minimum linelength reported by |
| 5082 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5083 | lt_cv_sys_max_cmd_len=8192; |
| 5084 | ;; |
| 5085 | |
| 5086 | amigaos*) |
| 5087 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5088 | # So we just punt and use a minimum line length of 8192. |
| 5089 | lt_cv_sys_max_cmd_len=8192; |
| 5090 | ;; |
| 5091 | |
| 5092 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5093 | # This has been around since 386BSD, at least. Likely further. |
| 5094 | if test -x /sbin/sysctl; then |
| 5095 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5096 | elif test -x /usr/sbin/sysctl; then |
| 5097 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5098 | else |
| 5099 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5100 | fi |
| 5101 | # And add a safety zone |
| 5102 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5103 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5104 | ;; |
| 5105 | |
| 5106 | interix*) |
| 5107 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5108 | lt_cv_sys_max_cmd_len=196608 |
| 5109 | ;; |
| 5110 | |
| 5111 | osf*) |
| 5112 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5113 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5114 | # nice to cause kernel panics so lets avoid the loop below. |
| 5115 | # First set a reasonable default. |
| 5116 | lt_cv_sys_max_cmd_len=16384 |
| 5117 | # |
| 5118 | if test -x /sbin/sysconfig; then |
| 5119 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5120 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5121 | esac |
| 5122 | fi |
| 5123 | ;; |
| 5124 | sco3.2v5*) |
| 5125 | lt_cv_sys_max_cmd_len=102400 |
| 5126 | ;; |
| 5127 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5128 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5129 | if test -n "$kargmax"; then |
| 5130 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5131 | else |
| 5132 | lt_cv_sys_max_cmd_len=32768 |
| 5133 | fi |
| 5134 | ;; |
| 5135 | *) |
| 5136 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5137 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5138 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5139 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5140 | else |
| 5141 | # Make teststring a little bigger before we do anything with it. |
| 5142 | # a 1K string should be a reasonable start. |
| 5143 | for i in 1 2 3 4 5 6 7 8 ; do |
| 5144 | teststring=$teststring$teststring |
| 5145 | done |
| 5146 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5147 | # If test is not a shell built-in, we'll probably end up computing a |
| 5148 | # maximum length that is only half of the actual maximum length, but |
| 5149 | # we can't tell. |
| 5150 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 5151 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 5152 | test $i != 17 # 1/2 MB should be enough |
| 5153 | do |
| 5154 | i=`expr $i + 1` |
| 5155 | teststring=$teststring$teststring |
| 5156 | done |
| 5157 | # Only check the string length outside the loop. |
| 5158 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5159 | teststring= |
| 5160 | # Add a significant safety factor because C++ compilers can tack on |
| 5161 | # massive amounts of additional arguments before passing them to the |
| 5162 | # linker. It appears as though 1/2 is a usable value. |
| 5163 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5164 | fi |
| 5165 | ;; |
| 5166 | esac |
| 5167 | |
| 5168 | fi |
| 5169 | |
| 5170 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5171 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5172 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
| 5173 | else |
| 5174 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5175 | echo "${ECHO_T}none" >&6; } |
| 5176 | fi |
| 5177 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5178 | |
| 5179 | |
| 5180 | |
| 5181 | |
| 5182 | |
| 5183 | |
| 5184 | : ${CP="cp -f"} |
| 5185 | : ${MV="mv -f"} |
| 5186 | : ${RM="rm -f"} |
| 5187 | |
| 5188 | { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
| 5189 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } |
| 5190 | # Try some XSI features |
| 5191 | xsi_shell=no |
| 5192 | ( _lt_dummy="a/b/c" |
| 5193 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 5194 | = c,a/b,, \ |
| 5195 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5196 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5197 | && xsi_shell=yes |
| 5198 | { echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
| 5199 | echo "${ECHO_T}$xsi_shell" >&6; } |
| 5200 | |
| 5201 | |
| 5202 | { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
| 5203 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } |
| 5204 | lt_shell_append=no |
| 5205 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5206 | >/dev/null 2>&1 \ |
| 5207 | && lt_shell_append=yes |
| 5208 | { echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
| 5209 | echo "${ECHO_T}$lt_shell_append" >&6; } |
| 5210 | |
| 5211 | |
| 5212 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5213 | lt_unset=unset |
| 5214 | else |
| 5215 | lt_unset=false |
| 5216 | fi |
| 5217 | |
| 5218 | |
| 5219 | |
| 5220 | |
| 5221 | |
| 5222 | # test EBCDIC or ASCII |
| 5223 | case `echo X|tr X '\101'` in |
| 5224 | A) # ASCII based system |
| 5225 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5226 | lt_SP2NL='tr \040 \012' |
| 5227 | lt_NL2SP='tr \015\012 \040\040' |
| 5228 | ;; |
| 5229 | *) # EBCDIC based system |
| 5230 | lt_SP2NL='tr \100 \n' |
| 5231 | lt_NL2SP='tr \r\n \100\100' |
| 5232 | ;; |
| 5233 | esac |
| 5234 | |
| 5235 | |
| 5236 | |
| 5237 | |
| 5238 | |
| 5239 | |
| 5240 | |
| 5241 | |
| 5242 | |
| 5243 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 5244 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
| 5245 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 5246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5247 | else |
| 5248 | lt_cv_ld_reload_flag='-r' |
| 5249 | fi |
| 5250 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 5251 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
| 5252 | reload_flag=$lt_cv_ld_reload_flag |
| 5253 | case $reload_flag in |
| 5254 | "" | " "*) ;; |
| 5255 | *) reload_flag=" $reload_flag" ;; |
| 5256 | esac |
| 5257 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5258 | case $host_os in |
| 5259 | darwin*) |
| 5260 | if test "$GCC" = yes; then |
| 5261 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5262 | else |
| 5263 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5264 | fi |
| 5265 | ;; |
| 5266 | esac |
| 5267 | |
| 5268 | |
| 5269 | |
| 5270 | |
| 5271 | |
| 5272 | |
| 5273 | |
| 5274 | |
| 5275 | |
| 5276 | if test -n "$ac_tool_prefix"; then |
| 5277 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5278 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5279 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5281 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
| 5282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5283 | else |
| 5284 | if test -n "$OBJDUMP"; then |
| 5285 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5286 | else |
| 5287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5288 | for as_dir in $PATH |
| 5289 | do |
| 5290 | IFS=$as_save_IFS |
| 5291 | test -z "$as_dir" && as_dir=. |
| 5292 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5294 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5295 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5296 | break 2 |
| 5297 | fi |
| 5298 | done |
| 5299 | done |
| 5300 | IFS=$as_save_IFS |
| 5301 | |
| 5302 | fi |
| 5303 | fi |
| 5304 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5305 | if test -n "$OBJDUMP"; then |
| 5306 | { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
| 5307 | echo "${ECHO_T}$OBJDUMP" >&6; } |
| 5308 | else |
| 5309 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5310 | echo "${ECHO_T}no" >&6; } |
| 5311 | fi |
| 5312 | |
| 5313 | |
| 5314 | fi |
| 5315 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5316 | ac_ct_OBJDUMP=$OBJDUMP |
| 5317 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5318 | set dummy objdump; ac_word=$2 |
| 5319 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5320 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5321 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
| 5322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5323 | else |
| 5324 | if test -n "$ac_ct_OBJDUMP"; then |
| 5325 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5326 | else |
| 5327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5328 | for as_dir in $PATH |
| 5329 | do |
| 5330 | IFS=$as_save_IFS |
| 5331 | test -z "$as_dir" && as_dir=. |
| 5332 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5333 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5334 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5335 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5336 | break 2 |
| 5337 | fi |
| 5338 | done |
| 5339 | done |
| 5340 | IFS=$as_save_IFS |
| 5341 | |
| 5342 | fi |
| 5343 | fi |
| 5344 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5345 | if test -n "$ac_ct_OBJDUMP"; then |
| 5346 | { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
| 5347 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } |
| 5348 | else |
| 5349 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5350 | echo "${ECHO_T}no" >&6; } |
| 5351 | fi |
| 5352 | |
| 5353 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5354 | OBJDUMP="false" |
| 5355 | else |
| 5356 | case $cross_compiling:$ac_tool_warned in |
| 5357 | yes:) |
| 5358 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5359 | whose name does not start with the host triplet. If you think this |
| 5360 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5361 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5362 | whose name does not start with the host triplet. If you think this |
| 5363 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5364 | ac_tool_warned=yes ;; |
| 5365 | esac |
| 5366 | OBJDUMP=$ac_ct_OBJDUMP |
| 5367 | fi |
| 5368 | else |
| 5369 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5370 | fi |
| 5371 | |
| 5372 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5373 | |
| 5374 | |
| 5375 | |
| 5376 | |
| 5377 | |
| 5378 | |
| 5379 | { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
| 5380 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } |
| 5381 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 5382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5383 | else |
| 5384 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5385 | lt_cv_file_magic_test_file= |
| 5386 | lt_cv_deplibs_check_method='unknown' |
| 5387 | # Need to set the preceding variable on all platforms that support |
| 5388 | # interlibrary dependencies. |
| 5389 | # 'none' -- dependencies not supported. |
| 5390 | # `unknown' -- same as none, but documents that we really don't know. |
| 5391 | # 'pass_all' -- all dependencies passed with no checks. |
| 5392 | # 'test_compile' -- check by making test program. |
| 5393 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5394 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5395 | # If you have `file' or equivalent on your system and you're not sure |
| 5396 | # whether `pass_all' will *always* work, you probably want this one. |
| 5397 | |
| 5398 | case $host_os in |
| 5399 | aix[4-9]*) |
| 5400 | lt_cv_deplibs_check_method=pass_all |
| 5401 | ;; |
| 5402 | |
| 5403 | beos*) |
| 5404 | lt_cv_deplibs_check_method=pass_all |
| 5405 | ;; |
| 5406 | |
| 5407 | bsdi[45]*) |
| 5408 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5409 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5410 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5411 | ;; |
| 5412 | |
| 5413 | cygwin*) |
| 5414 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5415 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5416 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5417 | ;; |
| 5418 | |
| 5419 | mingw* | pw32*) |
| 5420 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5421 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5422 | # unless we find 'file', for example because we are cross-compiling. |
| 5423 | if ( file / ) >/dev/null 2>&1; then |
| 5424 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5425 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5426 | else |
| 5427 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 5428 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5429 | fi |
| 5430 | ;; |
| 5431 | |
| 5432 | cegcc) |
| 5433 | # use the weaker test based on 'objdump'. See mingw*. |
| 5434 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5435 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5436 | ;; |
| 5437 | |
| 5438 | darwin* | rhapsody*) |
| 5439 | lt_cv_deplibs_check_method=pass_all |
| 5440 | ;; |
| 5441 | |
| 5442 | freebsd* | dragonfly*) |
| 5443 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5444 | case $host_cpu in |
| 5445 | i*86 ) |
| 5446 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5447 | # Let's accept both of them until this is cleared up. |
| 5448 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 5449 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5450 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5451 | ;; |
| 5452 | esac |
| 5453 | else |
| 5454 | lt_cv_deplibs_check_method=pass_all |
| 5455 | fi |
| 5456 | ;; |
| 5457 | |
| 5458 | gnu*) |
| 5459 | lt_cv_deplibs_check_method=pass_all |
| 5460 | ;; |
| 5461 | |
| 5462 | hpux10.20* | hpux11*) |
| 5463 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5464 | case $host_cpu in |
| 5465 | ia64*) |
| 5466 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5467 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5468 | ;; |
| 5469 | hppa*64*) |
| 5470 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| 5471 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5472 | ;; |
| 5473 | *) |
| 5474 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 5475 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5476 | ;; |
| 5477 | esac |
| 5478 | ;; |
| 5479 | |
| 5480 | interix[3-9]*) |
| 5481 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5482 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5483 | ;; |
| 5484 | |
| 5485 | irix5* | irix6* | nonstopux*) |
| 5486 | case $LD in |
| 5487 | *-32|*"-32 ") libmagic=32-bit;; |
| 5488 | *-n32|*"-n32 ") libmagic=N32;; |
| 5489 | *-64|*"-64 ") libmagic=64-bit;; |
| 5490 | *) libmagic=never-match;; |
| 5491 | esac |
| 5492 | lt_cv_deplibs_check_method=pass_all |
| 5493 | ;; |
| 5494 | |
| 5495 | # This must be Linux ELF. |
| 5496 | linux* | k*bsd*-gnu) |
| 5497 | lt_cv_deplibs_check_method=pass_all |
| 5498 | ;; |
| 5499 | |
| 5500 | netbsd* | netbsdelf*-gnu) |
| 5501 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5502 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5503 | else |
| 5504 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5505 | fi |
| 5506 | ;; |
| 5507 | |
| 5508 | newos6*) |
| 5509 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5510 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5511 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5512 | ;; |
| 5513 | |
| 5514 | *nto* | *qnx*) |
| 5515 | lt_cv_deplibs_check_method=pass_all |
| 5516 | ;; |
| 5517 | |
| 5518 | openbsd*) |
| 5519 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5520 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5521 | else |
| 5522 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5523 | fi |
| 5524 | ;; |
| 5525 | |
| 5526 | osf3* | osf4* | osf5*) |
| 5527 | lt_cv_deplibs_check_method=pass_all |
| 5528 | ;; |
| 5529 | |
| 5530 | rdos*) |
| 5531 | lt_cv_deplibs_check_method=pass_all |
| 5532 | ;; |
| 5533 | |
| 5534 | solaris*) |
| 5535 | lt_cv_deplibs_check_method=pass_all |
| 5536 | ;; |
| 5537 | |
| 5538 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5539 | lt_cv_deplibs_check_method=pass_all |
| 5540 | ;; |
| 5541 | |
| 5542 | sysv4 | sysv4.3*) |
| 5543 | case $host_vendor in |
| 5544 | motorola) |
| 5545 | 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]' |
| 5546 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5547 | ;; |
| 5548 | ncr) |
| 5549 | lt_cv_deplibs_check_method=pass_all |
| 5550 | ;; |
| 5551 | sequent) |
| 5552 | lt_cv_file_magic_cmd='/bin/file' |
| 5553 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5554 | ;; |
| 5555 | sni) |
| 5556 | lt_cv_file_magic_cmd='/bin/file' |
| 5557 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5558 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5559 | ;; |
| 5560 | siemens) |
| 5561 | lt_cv_deplibs_check_method=pass_all |
| 5562 | ;; |
| 5563 | pc) |
| 5564 | lt_cv_deplibs_check_method=pass_all |
| 5565 | ;; |
| 5566 | esac |
| 5567 | ;; |
| 5568 | |
| 5569 | tpf*) |
| 5570 | lt_cv_deplibs_check_method=pass_all |
| 5571 | ;; |
| 5572 | esac |
| 5573 | |
| 5574 | fi |
| 5575 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 5576 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
| 5577 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5578 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5579 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5580 | |
| 5581 | |
| 5582 | |
| 5583 | |
| 5584 | |
| 5585 | |
| 5586 | |
| 5587 | |
| 5588 | |
| 5589 | |
| 5590 | |
| 5591 | |
| 5592 | if test -n "$ac_tool_prefix"; then |
| 5593 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5594 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5595 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5597 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5599 | else |
| 5600 | if test -n "$AR"; then |
| 5601 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5602 | else |
| 5603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5604 | for as_dir in $PATH |
| 5605 | do |
| 5606 | IFS=$as_save_IFS |
| 5607 | test -z "$as_dir" && as_dir=. |
| 5608 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5609 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5610 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5612 | break 2 |
| 5613 | fi |
| 5614 | done |
| 5615 | done |
| 5616 | IFS=$as_save_IFS |
| 5617 | |
| 5618 | fi |
| 5619 | fi |
| 5620 | AR=$ac_cv_prog_AR |
| 5621 | if test -n "$AR"; then |
| 5622 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 5623 | echo "${ECHO_T}$AR" >&6; } |
| 5624 | else |
| 5625 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5626 | echo "${ECHO_T}no" >&6; } |
| 5627 | fi |
| 5628 | |
| 5629 | |
| 5630 | fi |
| 5631 | if test -z "$ac_cv_prog_AR"; then |
| 5632 | ac_ct_AR=$AR |
| 5633 | # Extract the first word of "ar", so it can be a program name with args. |
| 5634 | set dummy ar; ac_word=$2 |
| 5635 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5637 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5639 | else |
| 5640 | if test -n "$ac_ct_AR"; then |
| 5641 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5642 | else |
| 5643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5644 | for as_dir in $PATH |
| 5645 | do |
| 5646 | IFS=$as_save_IFS |
| 5647 | test -z "$as_dir" && as_dir=. |
| 5648 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5649 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5650 | ac_cv_prog_ac_ct_AR="ar" |
| 5651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5652 | break 2 |
| 5653 | fi |
| 5654 | done |
| 5655 | done |
| 5656 | IFS=$as_save_IFS |
| 5657 | |
| 5658 | fi |
| 5659 | fi |
| 5660 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5661 | if test -n "$ac_ct_AR"; then |
| 5662 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5663 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
| 5664 | else |
| 5665 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5666 | echo "${ECHO_T}no" >&6; } |
| 5667 | fi |
| 5668 | |
| 5669 | if test "x$ac_ct_AR" = x; then |
| 5670 | AR="false" |
| 5671 | else |
| 5672 | case $cross_compiling:$ac_tool_warned in |
| 5673 | yes:) |
| 5674 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5675 | whose name does not start with the host triplet. If you think this |
| 5676 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5677 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5678 | whose name does not start with the host triplet. If you think this |
| 5679 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5680 | ac_tool_warned=yes ;; |
| 5681 | esac |
| 5682 | AR=$ac_ct_AR |
| 5683 | fi |
| 5684 | else |
| 5685 | AR="$ac_cv_prog_AR" |
| 5686 | fi |
| 5687 | |
| 5688 | test -z "$AR" && AR=ar |
| 5689 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5690 | |
| 5691 | |
| 5692 | |
| 5693 | |
| 5694 | |
| 5695 | |
| 5696 | |
| 5697 | |
| 5698 | |
| 5699 | |
| 5700 | |
| 5701 | if test -n "$ac_tool_prefix"; then |
| 5702 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5703 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5704 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5706 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5708 | else |
| 5709 | if test -n "$STRIP"; then |
| 5710 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5711 | else |
| 5712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5713 | for as_dir in $PATH |
| 5714 | do |
| 5715 | IFS=$as_save_IFS |
| 5716 | test -z "$as_dir" && as_dir=. |
| 5717 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5719 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5721 | break 2 |
| 5722 | fi |
| 5723 | done |
| 5724 | done |
| 5725 | IFS=$as_save_IFS |
| 5726 | |
| 5727 | fi |
| 5728 | fi |
| 5729 | STRIP=$ac_cv_prog_STRIP |
| 5730 | if test -n "$STRIP"; then |
| 5731 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5732 | echo "${ECHO_T}$STRIP" >&6; } |
| 5733 | else |
| 5734 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5735 | echo "${ECHO_T}no" >&6; } |
| 5736 | fi |
| 5737 | |
| 5738 | |
| 5739 | fi |
| 5740 | if test -z "$ac_cv_prog_STRIP"; then |
| 5741 | ac_ct_STRIP=$STRIP |
| 5742 | # Extract the first word of "strip", so it can be a program name with args. |
| 5743 | set dummy strip; ac_word=$2 |
| 5744 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5745 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5746 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5748 | else |
| 5749 | if test -n "$ac_ct_STRIP"; then |
| 5750 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5751 | else |
| 5752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5753 | for as_dir in $PATH |
| 5754 | do |
| 5755 | IFS=$as_save_IFS |
| 5756 | test -z "$as_dir" && as_dir=. |
| 5757 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5758 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5759 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5760 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5761 | break 2 |
| 5762 | fi |
| 5763 | done |
| 5764 | done |
| 5765 | IFS=$as_save_IFS |
| 5766 | |
| 5767 | fi |
| 5768 | fi |
| 5769 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5770 | if test -n "$ac_ct_STRIP"; then |
| 5771 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5772 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
| 5773 | else |
| 5774 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5775 | echo "${ECHO_T}no" >&6; } |
| 5776 | fi |
| 5777 | |
| 5778 | if test "x$ac_ct_STRIP" = x; then |
| 5779 | STRIP=":" |
| 5780 | else |
| 5781 | case $cross_compiling:$ac_tool_warned in |
| 5782 | yes:) |
| 5783 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5784 | whose name does not start with the host triplet. If you think this |
| 5785 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5786 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5787 | whose name does not start with the host triplet. If you think this |
| 5788 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5789 | ac_tool_warned=yes ;; |
| 5790 | esac |
| 5791 | STRIP=$ac_ct_STRIP |
| 5792 | fi |
| 5793 | else |
| 5794 | STRIP="$ac_cv_prog_STRIP" |
| 5795 | fi |
| 5796 | |
| 5797 | test -z "$STRIP" && STRIP=: |
| 5798 | |
| 5799 | |
| 5800 | |
| 5801 | |
| 5802 | |
| 5803 | |
| 5804 | if test -n "$ac_tool_prefix"; then |
| 5805 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5806 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5807 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5809 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5811 | else |
| 5812 | if test -n "$RANLIB"; then |
| 5813 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5814 | else |
| 5815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5816 | for as_dir in $PATH |
| 5817 | do |
| 5818 | IFS=$as_save_IFS |
| 5819 | test -z "$as_dir" && as_dir=. |
| 5820 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5822 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5823 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5824 | break 2 |
| 5825 | fi |
| 5826 | done |
| 5827 | done |
| 5828 | IFS=$as_save_IFS |
| 5829 | |
| 5830 | fi |
| 5831 | fi |
| 5832 | RANLIB=$ac_cv_prog_RANLIB |
| 5833 | if test -n "$RANLIB"; then |
| 5834 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5835 | echo "${ECHO_T}$RANLIB" >&6; } |
| 5836 | else |
| 5837 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5838 | echo "${ECHO_T}no" >&6; } |
| 5839 | fi |
| 5840 | |
| 5841 | |
| 5842 | fi |
| 5843 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5844 | ac_ct_RANLIB=$RANLIB |
| 5845 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5846 | set dummy ranlib; ac_word=$2 |
| 5847 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5849 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5851 | else |
| 5852 | if test -n "$ac_ct_RANLIB"; then |
| 5853 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5854 | else |
| 5855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5856 | for as_dir in $PATH |
| 5857 | do |
| 5858 | IFS=$as_save_IFS |
| 5859 | test -z "$as_dir" && as_dir=. |
| 5860 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5862 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5863 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5864 | break 2 |
| 5865 | fi |
| 5866 | done |
| 5867 | done |
| 5868 | IFS=$as_save_IFS |
| 5869 | |
| 5870 | fi |
| 5871 | fi |
| 5872 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5873 | if test -n "$ac_ct_RANLIB"; then |
| 5874 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5875 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 5876 | else |
| 5877 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5878 | echo "${ECHO_T}no" >&6; } |
| 5879 | fi |
| 5880 | |
| 5881 | if test "x$ac_ct_RANLIB" = x; then |
| 5882 | RANLIB=":" |
| 5883 | else |
| 5884 | case $cross_compiling:$ac_tool_warned in |
| 5885 | yes:) |
| 5886 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5887 | whose name does not start with the host triplet. If you think this |
| 5888 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5889 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5890 | whose name does not start with the host triplet. If you think this |
| 5891 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5892 | ac_tool_warned=yes ;; |
| 5893 | esac |
| 5894 | RANLIB=$ac_ct_RANLIB |
| 5895 | fi |
| 5896 | else |
| 5897 | RANLIB="$ac_cv_prog_RANLIB" |
| 5898 | fi |
| 5899 | |
| 5900 | test -z "$RANLIB" && RANLIB=: |
| 5901 | |
| 5902 | |
| 5903 | |
| 5904 | |
| 5905 | |
| 5906 | |
| 5907 | # Determine commands to create old-style static archives. |
| 5908 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 5909 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5910 | old_postuninstall_cmds= |
| 5911 | |
| 5912 | if test -n "$RANLIB"; then |
| 5913 | case $host_os in |
| 5914 | openbsd*) |
| 5915 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 5916 | ;; |
| 5917 | *) |
| 5918 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 5919 | ;; |
| 5920 | esac |
| 5921 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5922 | fi |
| 5923 | |
| 5924 | |
| 5925 | |
| 5926 | |
| 5927 | |
| 5928 | |
| 5929 | |
| 5930 | |
| 5931 | |
| 5932 | |
| 5933 | |
| 5934 | |
| 5935 | |
| 5936 | |
| 5937 | |
| 5938 | |
| 5939 | |
| 5940 | |
| 5941 | |
| 5942 | |
| 5943 | |
| 5944 | |
| 5945 | |
| 5946 | |
| 5947 | |
| 5948 | |
| 5949 | |
| 5950 | |
| 5951 | |
| 5952 | |
| 5953 | |
| 5954 | |
| 5955 | |
| 5956 | |
| 5957 | # If no C compiler was specified, use CC. |
| 5958 | LTCC=${LTCC-"$CC"} |
| 5959 | |
| 5960 | # If no C compiler flags were specified, use CFLAGS. |
| 5961 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5962 | |
| 5963 | # Allow CC to be a program name with arguments. |
| 5964 | compiler=$CC |
| 5965 | |
| 5966 | |
| 5967 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 5968 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 5969 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 5970 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 5971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5972 | else |
| 5973 | |
| 5974 | # These are sane defaults that work on at least a few old systems. |
| 5975 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5976 | |
| 5977 | # Character class describing NM global symbol codes. |
| 5978 | symcode='[BCDEGRST]' |
| 5979 | |
| 5980 | # Regexp to match symbols that can be accessed directly from C. |
| 5981 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5982 | |
| 5983 | # Define system-specific variables. |
| 5984 | case $host_os in |
| 5985 | aix*) |
| 5986 | symcode='[BCDT]' |
| 5987 | ;; |
| 5988 | cygwin* | mingw* | pw32* | cegcc*) |
| 5989 | symcode='[ABCDGISTW]' |
| 5990 | ;; |
| 5991 | hpux*) |
| 5992 | if test "$host_cpu" = ia64; then |
| 5993 | symcode='[ABCDEGRST]' |
| 5994 | fi |
| 5995 | ;; |
| 5996 | irix* | nonstopux*) |
| 5997 | symcode='[BCDEGRST]' |
| 5998 | ;; |
| 5999 | osf*) |
| 6000 | symcode='[BCDEGQRST]' |
| 6001 | ;; |
| 6002 | solaris*) |
| 6003 | symcode='[BDRT]' |
| 6004 | ;; |
| 6005 | sco3.2v5*) |
| 6006 | symcode='[DT]' |
| 6007 | ;; |
| 6008 | sysv4.2uw2*) |
| 6009 | symcode='[DT]' |
| 6010 | ;; |
| 6011 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6012 | symcode='[ABDT]' |
| 6013 | ;; |
| 6014 | sysv4) |
| 6015 | symcode='[DFNSTU]' |
| 6016 | ;; |
| 6017 | esac |
| 6018 | |
| 6019 | # If we're using GNU nm, then use its standard symbol codes. |
| 6020 | case `$NM -V 2>&1` in |
| 6021 | *GNU* | *'with BFD'*) |
| 6022 | symcode='[ABCDGIRSTW]' ;; |
| 6023 | esac |
| 6024 | |
| 6025 | # Transform an extracted symbol line into a proper C declaration. |
| 6026 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6027 | # so use this general approach. |
| 6028 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6029 | |
| 6030 | # Transform an extracted symbol line into symbol name and symbol address |
| 6031 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6032 | 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'" |
| 6033 | |
| 6034 | # Handle CRLF in mingw tool chain |
| 6035 | opt_cr= |
| 6036 | case $build_os in |
| 6037 | mingw*) |
| 6038 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6039 | ;; |
| 6040 | esac |
| 6041 | |
| 6042 | # Try without a prefix underscore, then with it. |
| 6043 | for ac_symprfx in "" "_"; do |
| 6044 | |
| 6045 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6046 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6047 | |
| 6048 | # Write the raw and C identifiers. |
| 6049 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6050 | # Fake it for dumpbin and say T for any non-static function |
| 6051 | # and D for any global variable. |
| 6052 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6053 | # which start with @ or ?. |
| 6054 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6055 | " {last_section=section; section=\$ 3};"\ |
| 6056 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6057 | " \$ 0!~/External *\|/{next};"\ |
| 6058 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6059 | " {if(hide[section]) next};"\ |
| 6060 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6061 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6062 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6063 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6064 | " ' prfx=^$ac_symprfx" |
| 6065 | else |
| 6066 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6067 | fi |
| 6068 | |
| 6069 | # Check to see that the pipe works correctly. |
| 6070 | pipe_works=no |
| 6071 | |
| 6072 | rm -f conftest* |
| 6073 | cat > conftest.$ac_ext <<_LT_EOF |
| 6074 | #ifdef __cplusplus |
| 6075 | extern "C" { |
| 6076 | #endif |
| 6077 | char nm_test_var; |
| 6078 | void nm_test_func(void); |
| 6079 | void nm_test_func(void){} |
| 6080 | #ifdef __cplusplus |
| 6081 | } |
| 6082 | #endif |
| 6083 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6084 | _LT_EOF |
| 6085 | |
| 6086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6087 | (eval $ac_compile) 2>&5 |
| 6088 | ac_status=$? |
| 6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6090 | (exit $ac_status); }; then |
| 6091 | # Now try to grab the symbols. |
| 6092 | nlist=conftest.nm |
| 6093 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 6094 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6095 | ac_status=$? |
| 6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6097 | (exit $ac_status); } && test -s "$nlist"; then |
| 6098 | # Try sorting and uniquifying the output. |
| 6099 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6100 | mv -f "$nlist"T "$nlist" |
| 6101 | else |
| 6102 | rm -f "$nlist"T |
| 6103 | fi |
| 6104 | |
| 6105 | # Make sure that we snagged all the symbols we need. |
| 6106 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6107 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6108 | cat <<_LT_EOF > conftest.$ac_ext |
| 6109 | #ifdef __cplusplus |
| 6110 | extern "C" { |
| 6111 | #endif |
| 6112 | |
| 6113 | _LT_EOF |
| 6114 | # Now generate the symbol file. |
| 6115 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 6116 | |
| 6117 | cat <<_LT_EOF >> conftest.$ac_ext |
| 6118 | |
| 6119 | /* The mapping between symbol names and symbols. */ |
| 6120 | const struct { |
| 6121 | const char *name; |
| 6122 | void *address; |
| 6123 | } |
| 6124 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 6125 | { |
| 6126 | { "@PROGRAM@", (void *) 0 }, |
| 6127 | _LT_EOF |
| 6128 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6129 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6130 | {0, (void *) 0} |
| 6131 | }; |
| 6132 | |
| 6133 | /* This works around a problem in FreeBSD linker */ |
| 6134 | #ifdef FREEBSD_WORKAROUND |
| 6135 | static const void *lt_preloaded_setup() { |
| 6136 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6137 | } |
| 6138 | #endif |
| 6139 | |
| 6140 | #ifdef __cplusplus |
| 6141 | } |
| 6142 | #endif |
| 6143 | _LT_EOF |
| 6144 | # Now try linking the two files. |
| 6145 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6146 | lt_save_LIBS="$LIBS" |
| 6147 | lt_save_CFLAGS="$CFLAGS" |
| 6148 | LIBS="conftstm.$ac_objext" |
| 6149 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6151 | (eval $ac_link) 2>&5 |
| 6152 | ac_status=$? |
| 6153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6154 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 6155 | pipe_works=yes |
| 6156 | fi |
| 6157 | LIBS="$lt_save_LIBS" |
| 6158 | CFLAGS="$lt_save_CFLAGS" |
| 6159 | else |
| 6160 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6161 | fi |
| 6162 | else |
| 6163 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6164 | fi |
| 6165 | else |
| 6166 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6167 | fi |
| 6168 | else |
| 6169 | echo "$progname: failed program was:" >&5 |
| 6170 | cat conftest.$ac_ext >&5 |
| 6171 | fi |
| 6172 | rm -rf conftest* conftst* |
| 6173 | |
| 6174 | # Do not use the global_symbol_pipe unless it works. |
| 6175 | if test "$pipe_works" = yes; then |
| 6176 | break |
| 6177 | else |
| 6178 | lt_cv_sys_global_symbol_pipe= |
| 6179 | fi |
| 6180 | done |
| 6181 | |
| 6182 | fi |
| 6183 | |
| 6184 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6185 | lt_cv_sys_global_symbol_to_cdecl= |
| 6186 | fi |
| 6187 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6188 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 6189 | echo "${ECHO_T}failed" >&6; } |
| 6190 | else |
| 6191 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 6192 | echo "${ECHO_T}ok" >&6; } |
| 6193 | fi |
| 6194 | |
| 6195 | |
| 6196 | |
| 6197 | |
| 6198 | |
| 6199 | |
| 6200 | |
| 6201 | |
| 6202 | |
| 6203 | |
| 6204 | |
| 6205 | |
| 6206 | |
| 6207 | |
| 6208 | |
| 6209 | |
| 6210 | |
| 6211 | |
| 6212 | |
| 6213 | |
| 6214 | |
| 6215 | |
| 6216 | # Check whether --enable-libtool-lock was given. |
| 6217 | if test "${enable_libtool_lock+set}" = set; then |
| 6218 | enableval=$enable_libtool_lock; |
| 6219 | fi |
| 6220 | |
| 6221 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6222 | |
| 6223 | # Some flags need to be propagated to the compiler or linker for good |
| 6224 | # libtool support. |
| 6225 | case $host in |
| 6226 | ia64-*-hpux*) |
| 6227 | # Find out which ABI we are using. |
| 6228 | echo 'int i;' > conftest.$ac_ext |
| 6229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6230 | (eval $ac_compile) 2>&5 |
| 6231 | ac_status=$? |
| 6232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6233 | (exit $ac_status); }; then |
| 6234 | case `/usr/bin/file conftest.$ac_objext` in |
| 6235 | *ELF-32*) |
| 6236 | HPUX_IA64_MODE="32" |
| 6237 | ;; |
| 6238 | *ELF-64*) |
| 6239 | HPUX_IA64_MODE="64" |
| 6240 | ;; |
| 6241 | esac |
| 6242 | fi |
| 6243 | rm -rf conftest* |
| 6244 | ;; |
| 6245 | *-*-irix6*) |
| 6246 | # Find out which ABI we are using. |
| 6247 | echo '#line 6247 "configure"' > conftest.$ac_ext |
| 6248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6249 | (eval $ac_compile) 2>&5 |
| 6250 | ac_status=$? |
| 6251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6252 | (exit $ac_status); }; then |
| 6253 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6254 | case `/usr/bin/file conftest.$ac_objext` in |
| 6255 | *32-bit*) |
| 6256 | LD="${LD-ld} -melf32bsmip" |
| 6257 | ;; |
| 6258 | *N32*) |
| 6259 | LD="${LD-ld} -melf32bmipn32" |
| 6260 | ;; |
| 6261 | *64-bit*) |
| 6262 | LD="${LD-ld} -melf64bmip" |
| 6263 | ;; |
| 6264 | esac |
| 6265 | else |
| 6266 | case `/usr/bin/file conftest.$ac_objext` in |
| 6267 | *32-bit*) |
| 6268 | LD="${LD-ld} -32" |
| 6269 | ;; |
| 6270 | *N32*) |
| 6271 | LD="${LD-ld} -n32" |
| 6272 | ;; |
| 6273 | *64-bit*) |
| 6274 | LD="${LD-ld} -64" |
| 6275 | ;; |
| 6276 | esac |
| 6277 | fi |
| 6278 | fi |
| 6279 | rm -rf conftest* |
| 6280 | ;; |
| 6281 | |
| 6282 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6283 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6284 | # Find out which ABI we are using. |
| 6285 | echo 'int i;' > conftest.$ac_ext |
| 6286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6287 | (eval $ac_compile) 2>&5 |
| 6288 | ac_status=$? |
| 6289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6290 | (exit $ac_status); }; then |
| 6291 | case `/usr/bin/file conftest.o` in |
| 6292 | *32-bit*) |
| 6293 | case $host in |
| 6294 | x86_64-*kfreebsd*-gnu) |
| 6295 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6296 | ;; |
| 6297 | x86_64-*linux*) |
| 6298 | LD="${LD-ld} -m elf_i386" |
| 6299 | ;; |
| 6300 | ppc64-*linux*|powerpc64-*linux*) |
| 6301 | LD="${LD-ld} -m elf32ppclinux" |
| 6302 | ;; |
| 6303 | s390x-*linux*) |
| 6304 | LD="${LD-ld} -m elf_s390" |
| 6305 | ;; |
| 6306 | sparc64-*linux*) |
| 6307 | LD="${LD-ld} -m elf32_sparc" |
| 6308 | ;; |
| 6309 | esac |
| 6310 | ;; |
| 6311 | *64-bit*) |
| 6312 | case $host in |
| 6313 | x86_64-*kfreebsd*-gnu) |
| 6314 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6315 | ;; |
| 6316 | x86_64-*linux*) |
| 6317 | LD="${LD-ld} -m elf_x86_64" |
| 6318 | ;; |
| 6319 | ppc*-*linux*|powerpc*-*linux*) |
| 6320 | LD="${LD-ld} -m elf64ppc" |
| 6321 | ;; |
| 6322 | s390*-*linux*|s390*-*tpf*) |
| 6323 | LD="${LD-ld} -m elf64_s390" |
| 6324 | ;; |
| 6325 | sparc*-*linux*) |
| 6326 | LD="${LD-ld} -m elf64_sparc" |
| 6327 | ;; |
| 6328 | esac |
| 6329 | ;; |
| 6330 | esac |
| 6331 | fi |
| 6332 | rm -rf conftest* |
| 6333 | ;; |
| 6334 | |
| 6335 | *-*-sco3.2v5*) |
| 6336 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6337 | SAVE_CFLAGS="$CFLAGS" |
| 6338 | CFLAGS="$CFLAGS -belf" |
| 6339 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 6340 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
| 6341 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 6342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6343 | else |
| 6344 | ac_ext=c |
| 6345 | ac_cpp='$CPP $CPPFLAGS' |
| 6346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6349 | |
| 6350 | cat >conftest.$ac_ext <<_ACEOF |
| 6351 | /* confdefs.h. */ |
| 6352 | _ACEOF |
| 6353 | cat confdefs.h >>conftest.$ac_ext |
| 6354 | cat >>conftest.$ac_ext <<_ACEOF |
| 6355 | /* end confdefs.h. */ |
| 6356 | |
| 6357 | int |
| 6358 | main () |
| 6359 | { |
| 6360 | |
| 6361 | ; |
| 6362 | return 0; |
| 6363 | } |
| 6364 | _ACEOF |
| 6365 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6366 | if { (ac_try="$ac_link" |
| 6367 | case "(($ac_try" in |
| 6368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6369 | *) ac_try_echo=$ac_try;; |
| 6370 | esac |
| 6371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6372 | (eval "$ac_link") 2>conftest.er1 |
| 6373 | ac_status=$? |
| 6374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6375 | rm -f conftest.er1 |
| 6376 | cat conftest.err >&5 |
| 6377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6378 | (exit $ac_status); } && { |
| 6379 | test -z "$ac_c_werror_flag" || |
| 6380 | test ! -s conftest.err |
| 6381 | } && test -s conftest$ac_exeext && |
| 6382 | $as_test_x conftest$ac_exeext; then |
| 6383 | lt_cv_cc_needs_belf=yes |
| 6384 | else |
| 6385 | echo "$as_me: failed program was:" >&5 |
| 6386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6387 | |
| 6388 | lt_cv_cc_needs_belf=no |
| 6389 | fi |
| 6390 | |
| 6391 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6392 | conftest$ac_exeext conftest.$ac_ext |
| 6393 | ac_ext=c |
| 6394 | ac_cpp='$CPP $CPPFLAGS' |
| 6395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6398 | |
| 6399 | fi |
| 6400 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 6401 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
| 6402 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6403 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6404 | CFLAGS="$SAVE_CFLAGS" |
| 6405 | fi |
| 6406 | ;; |
| 6407 | sparc*-*solaris*) |
| 6408 | # Find out which ABI we are using. |
| 6409 | echo 'int i;' > conftest.$ac_ext |
| 6410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6411 | (eval $ac_compile) 2>&5 |
| 6412 | ac_status=$? |
| 6413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6414 | (exit $ac_status); }; then |
| 6415 | case `/usr/bin/file conftest.o` in |
| 6416 | *64-bit*) |
| 6417 | case $lt_cv_prog_gnu_ld in |
| 6418 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 6419 | *) |
| 6420 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6421 | LD="${LD-ld} -64" |
| 6422 | fi |
| 6423 | ;; |
| 6424 | esac |
| 6425 | ;; |
| 6426 | esac |
| 6427 | fi |
| 6428 | rm -rf conftest* |
| 6429 | ;; |
| 6430 | esac |
| 6431 | |
| 6432 | need_locks="$enable_libtool_lock" |
| 6433 | |
| 6434 | |
| 6435 | case $host_os in |
| 6436 | rhapsody* | darwin*) |
| 6437 | if test -n "$ac_tool_prefix"; then |
| 6438 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6439 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 6440 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6442 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
| 6443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6444 | else |
| 6445 | if test -n "$DSYMUTIL"; then |
| 6446 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6447 | else |
| 6448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6449 | for as_dir in $PATH |
| 6450 | do |
| 6451 | IFS=$as_save_IFS |
| 6452 | test -z "$as_dir" && as_dir=. |
| 6453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6454 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6455 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 6456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6457 | break 2 |
| 6458 | fi |
| 6459 | done |
| 6460 | done |
| 6461 | IFS=$as_save_IFS |
| 6462 | |
| 6463 | fi |
| 6464 | fi |
| 6465 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6466 | if test -n "$DSYMUTIL"; then |
| 6467 | { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
| 6468 | echo "${ECHO_T}$DSYMUTIL" >&6; } |
| 6469 | else |
| 6470 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6471 | echo "${ECHO_T}no" >&6; } |
| 6472 | fi |
| 6473 | |
| 6474 | |
| 6475 | fi |
| 6476 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6477 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6478 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6479 | set dummy dsymutil; ac_word=$2 |
| 6480 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6481 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6482 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
| 6483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6484 | else |
| 6485 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6486 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6487 | else |
| 6488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6489 | for as_dir in $PATH |
| 6490 | do |
| 6491 | IFS=$as_save_IFS |
| 6492 | test -z "$as_dir" && as_dir=. |
| 6493 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6494 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6495 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 6496 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6497 | break 2 |
| 6498 | fi |
| 6499 | done |
| 6500 | done |
| 6501 | IFS=$as_save_IFS |
| 6502 | |
| 6503 | fi |
| 6504 | fi |
| 6505 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6506 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6507 | { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
| 6508 | echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } |
| 6509 | else |
| 6510 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6511 | echo "${ECHO_T}no" >&6; } |
| 6512 | fi |
| 6513 | |
| 6514 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6515 | DSYMUTIL=":" |
| 6516 | else |
| 6517 | case $cross_compiling:$ac_tool_warned in |
| 6518 | yes:) |
| 6519 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6520 | whose name does not start with the host triplet. If you think this |
| 6521 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6522 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6523 | whose name does not start with the host triplet. If you think this |
| 6524 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6525 | ac_tool_warned=yes ;; |
| 6526 | esac |
| 6527 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 6528 | fi |
| 6529 | else |
| 6530 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 6531 | fi |
| 6532 | |
| 6533 | if test -n "$ac_tool_prefix"; then |
| 6534 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 6535 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 6536 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6538 | if test "${ac_cv_prog_NMEDIT+set}" = set; then |
| 6539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6540 | else |
| 6541 | if test -n "$NMEDIT"; then |
| 6542 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 6543 | else |
| 6544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6545 | for as_dir in $PATH |
| 6546 | do |
| 6547 | IFS=$as_save_IFS |
| 6548 | test -z "$as_dir" && as_dir=. |
| 6549 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6550 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6551 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 6552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6553 | break 2 |
| 6554 | fi |
| 6555 | done |
| 6556 | done |
| 6557 | IFS=$as_save_IFS |
| 6558 | |
| 6559 | fi |
| 6560 | fi |
| 6561 | NMEDIT=$ac_cv_prog_NMEDIT |
| 6562 | if test -n "$NMEDIT"; then |
| 6563 | { echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
| 6564 | echo "${ECHO_T}$NMEDIT" >&6; } |
| 6565 | else |
| 6566 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6567 | echo "${ECHO_T}no" >&6; } |
| 6568 | fi |
| 6569 | |
| 6570 | |
| 6571 | fi |
| 6572 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6573 | ac_ct_NMEDIT=$NMEDIT |
| 6574 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6575 | set dummy nmedit; ac_word=$2 |
| 6576 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6578 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
| 6579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6580 | else |
| 6581 | if test -n "$ac_ct_NMEDIT"; then |
| 6582 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6583 | else |
| 6584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6585 | for as_dir in $PATH |
| 6586 | do |
| 6587 | IFS=$as_save_IFS |
| 6588 | test -z "$as_dir" && as_dir=. |
| 6589 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6591 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 6592 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6593 | break 2 |
| 6594 | fi |
| 6595 | done |
| 6596 | done |
| 6597 | IFS=$as_save_IFS |
| 6598 | |
| 6599 | fi |
| 6600 | fi |
| 6601 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6602 | if test -n "$ac_ct_NMEDIT"; then |
| 6603 | { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
| 6604 | echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } |
| 6605 | else |
| 6606 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6607 | echo "${ECHO_T}no" >&6; } |
| 6608 | fi |
| 6609 | |
| 6610 | if test "x$ac_ct_NMEDIT" = x; then |
| 6611 | NMEDIT=":" |
| 6612 | else |
| 6613 | case $cross_compiling:$ac_tool_warned in |
| 6614 | yes:) |
| 6615 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6616 | whose name does not start with the host triplet. If you think this |
| 6617 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6618 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6619 | whose name does not start with the host triplet. If you think this |
| 6620 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6621 | ac_tool_warned=yes ;; |
| 6622 | esac |
| 6623 | NMEDIT=$ac_ct_NMEDIT |
| 6624 | fi |
| 6625 | else |
| 6626 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 6627 | fi |
| 6628 | |
| 6629 | if test -n "$ac_tool_prefix"; then |
| 6630 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 6631 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 6632 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6634 | if test "${ac_cv_prog_LIPO+set}" = set; then |
| 6635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6636 | else |
| 6637 | if test -n "$LIPO"; then |
| 6638 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 6639 | else |
| 6640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6641 | for as_dir in $PATH |
| 6642 | do |
| 6643 | IFS=$as_save_IFS |
| 6644 | test -z "$as_dir" && as_dir=. |
| 6645 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6647 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 6648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6649 | break 2 |
| 6650 | fi |
| 6651 | done |
| 6652 | done |
| 6653 | IFS=$as_save_IFS |
| 6654 | |
| 6655 | fi |
| 6656 | fi |
| 6657 | LIPO=$ac_cv_prog_LIPO |
| 6658 | if test -n "$LIPO"; then |
| 6659 | { echo "$as_me:$LINENO: result: $LIPO" >&5 |
| 6660 | echo "${ECHO_T}$LIPO" >&6; } |
| 6661 | else |
| 6662 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6663 | echo "${ECHO_T}no" >&6; } |
| 6664 | fi |
| 6665 | |
| 6666 | |
| 6667 | fi |
| 6668 | if test -z "$ac_cv_prog_LIPO"; then |
| 6669 | ac_ct_LIPO=$LIPO |
| 6670 | # Extract the first word of "lipo", so it can be a program name with args. |
| 6671 | set dummy lipo; ac_word=$2 |
| 6672 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6674 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then |
| 6675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6676 | else |
| 6677 | if test -n "$ac_ct_LIPO"; then |
| 6678 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 6679 | else |
| 6680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6681 | for as_dir in $PATH |
| 6682 | do |
| 6683 | IFS=$as_save_IFS |
| 6684 | test -z "$as_dir" && as_dir=. |
| 6685 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6687 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 6688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6689 | break 2 |
| 6690 | fi |
| 6691 | done |
| 6692 | done |
| 6693 | IFS=$as_save_IFS |
| 6694 | |
| 6695 | fi |
| 6696 | fi |
| 6697 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 6698 | if test -n "$ac_ct_LIPO"; then |
| 6699 | { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 |
| 6700 | echo "${ECHO_T}$ac_ct_LIPO" >&6; } |
| 6701 | else |
| 6702 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6703 | echo "${ECHO_T}no" >&6; } |
| 6704 | fi |
| 6705 | |
| 6706 | if test "x$ac_ct_LIPO" = x; then |
| 6707 | LIPO=":" |
| 6708 | else |
| 6709 | case $cross_compiling:$ac_tool_warned in |
| 6710 | yes:) |
| 6711 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6712 | whose name does not start with the host triplet. If you think this |
| 6713 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6714 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6715 | whose name does not start with the host triplet. If you think this |
| 6716 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6717 | ac_tool_warned=yes ;; |
| 6718 | esac |
| 6719 | LIPO=$ac_ct_LIPO |
| 6720 | fi |
| 6721 | else |
| 6722 | LIPO="$ac_cv_prog_LIPO" |
| 6723 | fi |
| 6724 | |
| 6725 | if test -n "$ac_tool_prefix"; then |
| 6726 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 6727 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 6728 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6730 | if test "${ac_cv_prog_OTOOL+set}" = set; then |
| 6731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6732 | else |
| 6733 | if test -n "$OTOOL"; then |
| 6734 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 6735 | else |
| 6736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6737 | for as_dir in $PATH |
| 6738 | do |
| 6739 | IFS=$as_save_IFS |
| 6740 | test -z "$as_dir" && as_dir=. |
| 6741 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6743 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 6744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6745 | break 2 |
| 6746 | fi |
| 6747 | done |
| 6748 | done |
| 6749 | IFS=$as_save_IFS |
| 6750 | |
| 6751 | fi |
| 6752 | fi |
| 6753 | OTOOL=$ac_cv_prog_OTOOL |
| 6754 | if test -n "$OTOOL"; then |
| 6755 | { echo "$as_me:$LINENO: result: $OTOOL" >&5 |
| 6756 | echo "${ECHO_T}$OTOOL" >&6; } |
| 6757 | else |
| 6758 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6759 | echo "${ECHO_T}no" >&6; } |
| 6760 | fi |
| 6761 | |
| 6762 | |
| 6763 | fi |
| 6764 | if test -z "$ac_cv_prog_OTOOL"; then |
| 6765 | ac_ct_OTOOL=$OTOOL |
| 6766 | # Extract the first word of "otool", so it can be a program name with args. |
| 6767 | set dummy otool; ac_word=$2 |
| 6768 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6770 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then |
| 6771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6772 | else |
| 6773 | if test -n "$ac_ct_OTOOL"; then |
| 6774 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 6775 | else |
| 6776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6777 | for as_dir in $PATH |
| 6778 | do |
| 6779 | IFS=$as_save_IFS |
| 6780 | test -z "$as_dir" && as_dir=. |
| 6781 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6783 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 6784 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6785 | break 2 |
| 6786 | fi |
| 6787 | done |
| 6788 | done |
| 6789 | IFS=$as_save_IFS |
| 6790 | |
| 6791 | fi |
| 6792 | fi |
| 6793 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 6794 | if test -n "$ac_ct_OTOOL"; then |
| 6795 | { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 |
| 6796 | echo "${ECHO_T}$ac_ct_OTOOL" >&6; } |
| 6797 | else |
| 6798 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6799 | echo "${ECHO_T}no" >&6; } |
| 6800 | fi |
| 6801 | |
| 6802 | if test "x$ac_ct_OTOOL" = x; then |
| 6803 | OTOOL=":" |
| 6804 | else |
| 6805 | case $cross_compiling:$ac_tool_warned in |
| 6806 | yes:) |
| 6807 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6808 | whose name does not start with the host triplet. If you think this |
| 6809 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6810 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6811 | whose name does not start with the host triplet. If you think this |
| 6812 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6813 | ac_tool_warned=yes ;; |
| 6814 | esac |
| 6815 | OTOOL=$ac_ct_OTOOL |
| 6816 | fi |
| 6817 | else |
| 6818 | OTOOL="$ac_cv_prog_OTOOL" |
| 6819 | fi |
| 6820 | |
| 6821 | if test -n "$ac_tool_prefix"; then |
| 6822 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 6823 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 6824 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6826 | if test "${ac_cv_prog_OTOOL64+set}" = set; then |
| 6827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6828 | else |
| 6829 | if test -n "$OTOOL64"; then |
| 6830 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 6831 | else |
| 6832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6833 | for as_dir in $PATH |
| 6834 | do |
| 6835 | IFS=$as_save_IFS |
| 6836 | test -z "$as_dir" && as_dir=. |
| 6837 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6839 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 6840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6841 | break 2 |
| 6842 | fi |
| 6843 | done |
| 6844 | done |
| 6845 | IFS=$as_save_IFS |
| 6846 | |
| 6847 | fi |
| 6848 | fi |
| 6849 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 6850 | if test -n "$OTOOL64"; then |
| 6851 | { echo "$as_me:$LINENO: result: $OTOOL64" >&5 |
| 6852 | echo "${ECHO_T}$OTOOL64" >&6; } |
| 6853 | else |
| 6854 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6855 | echo "${ECHO_T}no" >&6; } |
| 6856 | fi |
| 6857 | |
| 6858 | |
| 6859 | fi |
| 6860 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 6861 | ac_ct_OTOOL64=$OTOOL64 |
| 6862 | # Extract the first word of "otool64", so it can be a program name with args. |
| 6863 | set dummy otool64; ac_word=$2 |
| 6864 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6866 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then |
| 6867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6868 | else |
| 6869 | if test -n "$ac_ct_OTOOL64"; then |
| 6870 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 6871 | else |
| 6872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6873 | for as_dir in $PATH |
| 6874 | do |
| 6875 | IFS=$as_save_IFS |
| 6876 | test -z "$as_dir" && as_dir=. |
| 6877 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6879 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 6880 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6881 | break 2 |
| 6882 | fi |
| 6883 | done |
| 6884 | done |
| 6885 | IFS=$as_save_IFS |
| 6886 | |
| 6887 | fi |
| 6888 | fi |
| 6889 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 6890 | if test -n "$ac_ct_OTOOL64"; then |
| 6891 | { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 |
| 6892 | echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } |
| 6893 | else |
| 6894 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6895 | echo "${ECHO_T}no" >&6; } |
| 6896 | fi |
| 6897 | |
| 6898 | if test "x$ac_ct_OTOOL64" = x; then |
| 6899 | OTOOL64=":" |
| 6900 | else |
| 6901 | case $cross_compiling:$ac_tool_warned in |
| 6902 | yes:) |
| 6903 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6904 | whose name does not start with the host triplet. If you think this |
| 6905 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6906 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6907 | whose name does not start with the host triplet. If you think this |
| 6908 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6909 | ac_tool_warned=yes ;; |
| 6910 | esac |
| 6911 | OTOOL64=$ac_ct_OTOOL64 |
| 6912 | fi |
| 6913 | else |
| 6914 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 6915 | fi |
| 6916 | |
| 6917 | |
| 6918 | |
| 6919 | |
| 6920 | |
| 6921 | |
| 6922 | |
| 6923 | |
| 6924 | |
| 6925 | |
| 6926 | |
| 6927 | |
| 6928 | |
| 6929 | |
| 6930 | |
| 6931 | |
| 6932 | |
| 6933 | |
| 6934 | |
| 6935 | |
| 6936 | |
| 6937 | |
| 6938 | |
| 6939 | |
| 6940 | |
| 6941 | |
| 6942 | |
| 6943 | { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
| 6944 | echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } |
| 6945 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
| 6946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6947 | else |
| 6948 | lt_cv_apple_cc_single_mod=no |
| 6949 | if test -z "${LT_MULTI_MODULE}"; then |
| 6950 | # By default we will add the -single_module flag. You can override |
| 6951 | # by either setting the environment variable LT_MULTI_MODULE |
| 6952 | # non-empty at configure time, or by adding -multi_module to the |
| 6953 | # link flags. |
| 6954 | rm -rf libconftest.dylib* |
| 6955 | echo "int foo(void){return 1;}" > conftest.c |
| 6956 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6957 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 6958 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6959 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 6960 | _lt_result=$? |
| 6961 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 6962 | lt_cv_apple_cc_single_mod=yes |
| 6963 | else |
| 6964 | cat conftest.err >&5 |
| 6965 | fi |
| 6966 | rm -rf libconftest.dylib* |
| 6967 | rm -f conftest.* |
| 6968 | fi |
| 6969 | fi |
| 6970 | { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
| 6971 | echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } |
| 6972 | { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
| 6973 | echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } |
| 6974 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
| 6975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6976 | else |
| 6977 | lt_cv_ld_exported_symbols_list=no |
| 6978 | save_LDFLAGS=$LDFLAGS |
| 6979 | echo "_main" > conftest.sym |
| 6980 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 6981 | cat >conftest.$ac_ext <<_ACEOF |
| 6982 | /* confdefs.h. */ |
| 6983 | _ACEOF |
| 6984 | cat confdefs.h >>conftest.$ac_ext |
| 6985 | cat >>conftest.$ac_ext <<_ACEOF |
| 6986 | /* end confdefs.h. */ |
| 6987 | |
| 6988 | int |
| 6989 | main () |
| 6990 | { |
| 6991 | |
| 6992 | ; |
| 6993 | return 0; |
| 6994 | } |
| 6995 | _ACEOF |
| 6996 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6997 | if { (ac_try="$ac_link" |
| 6998 | case "(($ac_try" in |
| 6999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7000 | *) ac_try_echo=$ac_try;; |
| 7001 | esac |
| 7002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7003 | (eval "$ac_link") 2>conftest.er1 |
| 7004 | ac_status=$? |
| 7005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7006 | rm -f conftest.er1 |
| 7007 | cat conftest.err >&5 |
| 7008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7009 | (exit $ac_status); } && { |
| 7010 | test -z "$ac_c_werror_flag" || |
| 7011 | test ! -s conftest.err |
| 7012 | } && test -s conftest$ac_exeext && |
| 7013 | $as_test_x conftest$ac_exeext; then |
| 7014 | lt_cv_ld_exported_symbols_list=yes |
| 7015 | else |
| 7016 | echo "$as_me: failed program was:" >&5 |
| 7017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7018 | |
| 7019 | lt_cv_ld_exported_symbols_list=no |
| 7020 | fi |
| 7021 | |
| 7022 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7023 | conftest$ac_exeext conftest.$ac_ext |
| 7024 | LDFLAGS="$save_LDFLAGS" |
| 7025 | |
| 7026 | fi |
| 7027 | { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7028 | echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } |
| 7029 | case $host_os in |
| 7030 | rhapsody* | darwin1.[012]) |
| 7031 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7032 | darwin1.*) |
| 7033 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7034 | darwin*) # darwin 5.x on |
| 7035 | # if running on 10.5 or later, the deployment target defaults |
| 7036 | # to the OS version, if on x86, and 10.4, the deployment |
| 7037 | # target defaults to 10.4. Don't you love it? |
| 7038 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7039 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7040 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7041 | 10.[012]*) |
| 7042 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7043 | 10.*) |
| 7044 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7045 | esac |
| 7046 | ;; |
| 7047 | esac |
| 7048 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7049 | _lt_dar_single_mod='$single_module' |
| 7050 | fi |
| 7051 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7052 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7053 | else |
| 7054 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7055 | fi |
| 7056 | if test "$DSYMUTIL" != ":"; then |
| 7057 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7058 | else |
| 7059 | _lt_dsymutil= |
| 7060 | fi |
| 7061 | ;; |
| 7062 | esac |
| 7063 | |
| 7064 | |
| 7065 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 7066 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 7067 | if test "${ac_cv_header_stdc+set}" = set; then |
| 7068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7069 | else |
| 7070 | cat >conftest.$ac_ext <<_ACEOF |
| 7071 | /* confdefs.h. */ |
| 7072 | _ACEOF |
| 7073 | cat confdefs.h >>conftest.$ac_ext |
| 7074 | cat >>conftest.$ac_ext <<_ACEOF |
| 7075 | /* end confdefs.h. */ |
| 7076 | #include <stdlib.h> |
| 7077 | #include <stdarg.h> |
| 7078 | #include <string.h> |
| 7079 | #include <float.h> |
| 7080 | |
| 7081 | int |
| 7082 | main () |
| 7083 | { |
| 7084 | |
| 7085 | ; |
| 7086 | return 0; |
| 7087 | } |
| 7088 | _ACEOF |
| 7089 | rm -f conftest.$ac_objext |
| 7090 | if { (ac_try="$ac_compile" |
| 7091 | case "(($ac_try" in |
| 7092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7093 | *) ac_try_echo=$ac_try;; |
| 7094 | esac |
| 7095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7096 | (eval "$ac_compile") 2>conftest.er1 |
| 7097 | ac_status=$? |
| 7098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7099 | rm -f conftest.er1 |
| 7100 | cat conftest.err >&5 |
| 7101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7102 | (exit $ac_status); } && { |
| 7103 | test -z "$ac_c_werror_flag" || |
| 7104 | test ! -s conftest.err |
| 7105 | } && test -s conftest.$ac_objext; then |
| 7106 | ac_cv_header_stdc=yes |
| 7107 | else |
| 7108 | echo "$as_me: failed program was:" >&5 |
| 7109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7110 | |
| 7111 | ac_cv_header_stdc=no |
| 7112 | fi |
| 7113 | |
| 7114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7115 | |
| 7116 | if test $ac_cv_header_stdc = yes; then |
| 7117 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7118 | cat >conftest.$ac_ext <<_ACEOF |
| 7119 | /* confdefs.h. */ |
| 7120 | _ACEOF |
| 7121 | cat confdefs.h >>conftest.$ac_ext |
| 7122 | cat >>conftest.$ac_ext <<_ACEOF |
| 7123 | /* end confdefs.h. */ |
| 7124 | #include <string.h> |
| 7125 | |
| 7126 | _ACEOF |
| 7127 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7128 | $EGREP "memchr" >/dev/null 2>&1; then |
| 7129 | : |
| 7130 | else |
| 7131 | ac_cv_header_stdc=no |
| 7132 | fi |
| 7133 | rm -f conftest* |
| 7134 | |
| 7135 | fi |
| 7136 | |
| 7137 | if test $ac_cv_header_stdc = yes; then |
| 7138 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7139 | cat >conftest.$ac_ext <<_ACEOF |
| 7140 | /* confdefs.h. */ |
| 7141 | _ACEOF |
| 7142 | cat confdefs.h >>conftest.$ac_ext |
| 7143 | cat >>conftest.$ac_ext <<_ACEOF |
| 7144 | /* end confdefs.h. */ |
| 7145 | #include <stdlib.h> |
| 7146 | |
| 7147 | _ACEOF |
| 7148 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7149 | $EGREP "free" >/dev/null 2>&1; then |
| 7150 | : |
| 7151 | else |
| 7152 | ac_cv_header_stdc=no |
| 7153 | fi |
| 7154 | rm -f conftest* |
| 7155 | |
| 7156 | fi |
| 7157 | |
| 7158 | if test $ac_cv_header_stdc = yes; then |
| 7159 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7160 | if test "$cross_compiling" = yes; then |
| 7161 | : |
| 7162 | else |
| 7163 | cat >conftest.$ac_ext <<_ACEOF |
| 7164 | /* confdefs.h. */ |
| 7165 | _ACEOF |
| 7166 | cat confdefs.h >>conftest.$ac_ext |
| 7167 | cat >>conftest.$ac_ext <<_ACEOF |
| 7168 | /* end confdefs.h. */ |
| 7169 | #include <ctype.h> |
| 7170 | #include <stdlib.h> |
| 7171 | #if ((' ' & 0x0FF) == 0x020) |
| 7172 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7173 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7174 | #else |
| 7175 | # define ISLOWER(c) \ |
| 7176 | (('a' <= (c) && (c) <= 'i') \ |
| 7177 | || ('j' <= (c) && (c) <= 'r') \ |
| 7178 | || ('s' <= (c) && (c) <= 'z')) |
| 7179 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7180 | #endif |
| 7181 | |
| 7182 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7183 | int |
| 7184 | main () |
| 7185 | { |
| 7186 | int i; |
| 7187 | for (i = 0; i < 256; i++) |
| 7188 | if (XOR (islower (i), ISLOWER (i)) |
| 7189 | || toupper (i) != TOUPPER (i)) |
| 7190 | return 2; |
| 7191 | return 0; |
| 7192 | } |
| 7193 | _ACEOF |
| 7194 | rm -f conftest$ac_exeext |
| 7195 | if { (ac_try="$ac_link" |
| 7196 | case "(($ac_try" in |
| 7197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7198 | *) ac_try_echo=$ac_try;; |
| 7199 | esac |
| 7200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7201 | (eval "$ac_link") 2>&5 |
| 7202 | ac_status=$? |
| 7203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7204 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7205 | { (case "(($ac_try" in |
| 7206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7207 | *) ac_try_echo=$ac_try;; |
| 7208 | esac |
| 7209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7210 | (eval "$ac_try") 2>&5 |
| 7211 | ac_status=$? |
| 7212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7213 | (exit $ac_status); }; }; then |
| 7214 | : |
| 7215 | else |
| 7216 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7217 | echo "$as_me: failed program was:" >&5 |
| 7218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7219 | |
| 7220 | ( exit $ac_status ) |
| 7221 | ac_cv_header_stdc=no |
| 7222 | fi |
| 7223 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7224 | fi |
| 7225 | |
| 7226 | |
| 7227 | fi |
| 7228 | fi |
| 7229 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7230 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
| 7231 | if test $ac_cv_header_stdc = yes; then |
| 7232 | |
| 7233 | cat >>confdefs.h <<\_ACEOF |
| 7234 | #define STDC_HEADERS 1 |
| 7235 | _ACEOF |
| 7236 | |
| 7237 | fi |
| 7238 | |
| 7239 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7240 | |
| 7241 | |
| 7242 | |
| 7243 | |
| 7244 | |
| 7245 | |
| 7246 | |
| 7247 | |
| 7248 | |
| 7249 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7250 | inttypes.h stdint.h unistd.h |
| 7251 | do |
| 7252 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7253 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7254 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7255 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7257 | else |
| 7258 | cat >conftest.$ac_ext <<_ACEOF |
| 7259 | /* confdefs.h. */ |
| 7260 | _ACEOF |
| 7261 | cat confdefs.h >>conftest.$ac_ext |
| 7262 | cat >>conftest.$ac_ext <<_ACEOF |
| 7263 | /* end confdefs.h. */ |
| 7264 | $ac_includes_default |
| 7265 | |
| 7266 | #include <$ac_header> |
| 7267 | _ACEOF |
| 7268 | rm -f conftest.$ac_objext |
| 7269 | if { (ac_try="$ac_compile" |
| 7270 | case "(($ac_try" in |
| 7271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7272 | *) ac_try_echo=$ac_try;; |
| 7273 | esac |
| 7274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7275 | (eval "$ac_compile") 2>conftest.er1 |
| 7276 | ac_status=$? |
| 7277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7278 | rm -f conftest.er1 |
| 7279 | cat conftest.err >&5 |
| 7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7281 | (exit $ac_status); } && { |
| 7282 | test -z "$ac_c_werror_flag" || |
| 7283 | test ! -s conftest.err |
| 7284 | } && test -s conftest.$ac_objext; then |
| 7285 | eval "$as_ac_Header=yes" |
| 7286 | else |
| 7287 | echo "$as_me: failed program was:" >&5 |
| 7288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7289 | |
| 7290 | eval "$as_ac_Header=no" |
| 7291 | fi |
| 7292 | |
| 7293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7294 | fi |
| 7295 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7296 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7297 | echo "${ECHO_T}$ac_res" >&6; } |
| 7298 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7299 | cat >>confdefs.h <<_ACEOF |
| 7300 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7301 | _ACEOF |
| 7302 | |
| 7303 | fi |
| 7304 | |
| 7305 | done |
| 7306 | |
| 7307 | |
| 7308 | |
| 7309 | for ac_header in dlfcn.h |
| 7310 | do |
| 7311 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7312 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7314 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7316 | else |
| 7317 | cat >conftest.$ac_ext <<_ACEOF |
| 7318 | /* confdefs.h. */ |
| 7319 | _ACEOF |
| 7320 | cat confdefs.h >>conftest.$ac_ext |
| 7321 | cat >>conftest.$ac_ext <<_ACEOF |
| 7322 | /* end confdefs.h. */ |
| 7323 | $ac_includes_default |
| 7324 | |
| 7325 | #include <$ac_header> |
| 7326 | _ACEOF |
| 7327 | rm -f conftest.$ac_objext |
| 7328 | if { (ac_try="$ac_compile" |
| 7329 | case "(($ac_try" in |
| 7330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7331 | *) ac_try_echo=$ac_try;; |
| 7332 | esac |
| 7333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7334 | (eval "$ac_compile") 2>conftest.er1 |
| 7335 | ac_status=$? |
| 7336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7337 | rm -f conftest.er1 |
| 7338 | cat conftest.err >&5 |
| 7339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7340 | (exit $ac_status); } && { |
| 7341 | test -z "$ac_c_werror_flag" || |
| 7342 | test ! -s conftest.err |
| 7343 | } && test -s conftest.$ac_objext; then |
| 7344 | eval "$as_ac_Header=yes" |
| 7345 | else |
| 7346 | echo "$as_me: failed program was:" >&5 |
| 7347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7348 | |
| 7349 | eval "$as_ac_Header=no" |
| 7350 | fi |
| 7351 | |
| 7352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7353 | fi |
| 7354 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7355 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7356 | echo "${ECHO_T}$ac_res" >&6; } |
| 7357 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7358 | cat >>confdefs.h <<_ACEOF |
| 7359 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7360 | _ACEOF |
| 7361 | |
| 7362 | fi |
| 7363 | |
| 7364 | done |
| 7365 | |
| 7366 | |
| 7367 | |
| 7368 | # Set options |
| 7369 | |
| 7370 | |
| 7371 | |
| 7372 | enable_dlopen=no |
| 7373 | |
| 7374 | |
| 7375 | |
| 7376 | # Check whether --enable-shared was given. |
| 7377 | if test "${enable_shared+set}" = set; then |
| 7378 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7379 | case $enableval in |
| 7380 | yes) enable_shared=yes ;; |
| 7381 | no) enable_shared=no ;; |
| 7382 | *) |
| 7383 | enable_shared=no |
| 7384 | # Look at the argument we got. We use all the common list separators. |
| 7385 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7386 | for pkg in $enableval; do |
| 7387 | IFS="$lt_save_ifs" |
| 7388 | if test "X$pkg" = "X$p"; then |
| 7389 | enable_shared=yes |
| 7390 | fi |
| 7391 | done |
| 7392 | IFS="$lt_save_ifs" |
| 7393 | ;; |
| 7394 | esac |
| 7395 | else |
| 7396 | enable_shared=yes |
| 7397 | fi |
| 7398 | |
| 7399 | |
| 7400 | |
| 7401 | |
| 7402 | |
| 7403 | |
| 7404 | |
| 7405 | |
| 7406 | |
| 7407 | # Check whether --enable-static was given. |
| 7408 | if test "${enable_static+set}" = set; then |
| 7409 | enableval=$enable_static; p=${PACKAGE-default} |
| 7410 | case $enableval in |
| 7411 | yes) enable_static=yes ;; |
| 7412 | no) enable_static=no ;; |
| 7413 | *) |
| 7414 | enable_static=no |
| 7415 | # Look at the argument we got. We use all the common list separators. |
| 7416 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7417 | for pkg in $enableval; do |
| 7418 | IFS="$lt_save_ifs" |
| 7419 | if test "X$pkg" = "X$p"; then |
| 7420 | enable_static=yes |
| 7421 | fi |
| 7422 | done |
| 7423 | IFS="$lt_save_ifs" |
| 7424 | ;; |
| 7425 | esac |
| 7426 | else |
| 7427 | enable_static=yes |
| 7428 | fi |
| 7429 | |
| 7430 | |
| 7431 | |
| 7432 | |
| 7433 | |
| 7434 | |
| 7435 | |
| 7436 | |
| 7437 | |
| 7438 | |
| 7439 | # Check whether --with-pic was given. |
| 7440 | if test "${with_pic+set}" = set; then |
| 7441 | withval=$with_pic; pic_mode="$withval" |
| 7442 | else |
| 7443 | pic_mode=default |
| 7444 | fi |
| 7445 | |
| 7446 | |
| 7447 | test -z "$pic_mode" && pic_mode=default |
| 7448 | |
| 7449 | |
| 7450 | |
| 7451 | |
| 7452 | |
| 7453 | |
| 7454 | |
| 7455 | # Check whether --enable-fast-install was given. |
| 7456 | if test "${enable_fast_install+set}" = set; then |
| 7457 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7458 | case $enableval in |
| 7459 | yes) enable_fast_install=yes ;; |
| 7460 | no) enable_fast_install=no ;; |
| 7461 | *) |
| 7462 | enable_fast_install=no |
| 7463 | # Look at the argument we got. We use all the common list separators. |
| 7464 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7465 | for pkg in $enableval; do |
| 7466 | IFS="$lt_save_ifs" |
| 7467 | if test "X$pkg" = "X$p"; then |
| 7468 | enable_fast_install=yes |
| 7469 | fi |
| 7470 | done |
| 7471 | IFS="$lt_save_ifs" |
| 7472 | ;; |
| 7473 | esac |
| 7474 | else |
| 7475 | enable_fast_install=yes |
| 7476 | fi |
| 7477 | |
| 7478 | |
| 7479 | |
| 7480 | |
| 7481 | |
| 7482 | |
| 7483 | |
| 7484 | |
| 7485 | |
| 7486 | |
| 7487 | |
| 7488 | # This can be used to rebuild libtool when needed |
| 7489 | LIBTOOL_DEPS="$ltmain" |
| 7490 | |
| 7491 | # Always use our own libtool. |
| 7492 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7493 | |
| 7494 | |
| 7495 | |
| 7496 | |
| 7497 | |
| 7498 | |
| 7499 | |
| 7500 | |
| 7501 | |
| 7502 | |
| 7503 | |
| 7504 | |
| 7505 | |
| 7506 | |
| 7507 | |
| 7508 | |
| 7509 | |
| 7510 | |
| 7511 | |
| 7512 | |
| 7513 | |
| 7514 | |
| 7515 | |
| 7516 | |
| 7517 | |
| 7518 | test -z "$LN_S" && LN_S="ln -s" |
| 7519 | |
| 7520 | |
| 7521 | |
| 7522 | |
| 7523 | |
| 7524 | |
| 7525 | |
| 7526 | |
| 7527 | |
| 7528 | |
| 7529 | |
| 7530 | |
| 7531 | |
| 7532 | |
| 7533 | if test -n "${ZSH_VERSION+set}" ; then |
| 7534 | setopt NO_GLOB_SUBST |
| 7535 | fi |
| 7536 | |
| 7537 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 7538 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 7539 | if test "${lt_cv_objdir+set}" = set; then |
| 7540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7541 | else |
| 7542 | rm -f .libs 2>/dev/null |
| 7543 | mkdir .libs 2>/dev/null |
| 7544 | if test -d .libs; then |
| 7545 | lt_cv_objdir=.libs |
| 7546 | else |
| 7547 | # MS-DOS does not allow filenames that begin with a dot. |
| 7548 | lt_cv_objdir=_libs |
| 7549 | fi |
| 7550 | rmdir .libs 2>/dev/null |
| 7551 | fi |
| 7552 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 7553 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
| 7554 | objdir=$lt_cv_objdir |
| 7555 | |
| 7556 | |
| 7557 | |
| 7558 | |
| 7559 | |
| 7560 | cat >>confdefs.h <<_ACEOF |
| 7561 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 7562 | _ACEOF |
| 7563 | |
| 7564 | |
| 7565 | |
| 7566 | |
| 7567 | |
| 7568 | |
| 7569 | |
| 7570 | |
| 7571 | |
| 7572 | |
| 7573 | |
| 7574 | |
| 7575 | |
| 7576 | |
| 7577 | |
| 7578 | |
| 7579 | |
| 7580 | case $host_os in |
| 7581 | aix3*) |
| 7582 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7583 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7584 | # vanish in a puff of smoke. |
| 7585 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7586 | COLLECT_NAMES= |
| 7587 | export COLLECT_NAMES |
| 7588 | fi |
| 7589 | ;; |
| 7590 | esac |
| 7591 | |
| 7592 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 7593 | # metacharacters that are still active within double-quoted strings. |
| 7594 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 7595 | |
| 7596 | # Same as above, but do not quote variable references. |
| 7597 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 7598 | |
| 7599 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 7600 | # double_quote_subst'ed string. |
| 7601 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 7602 | |
| 7603 | # Sed substitution to delay expansion of an escaped single quote. |
| 7604 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 7605 | |
| 7606 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 7607 | no_glob_subst='s/\*/\\\*/g' |
| 7608 | |
| 7609 | # Global variables: |
| 7610 | ofile=libtool |
| 7611 | can_build_shared=yes |
| 7612 | |
| 7613 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 7614 | # which needs '.lib'). |
| 7615 | libext=a |
| 7616 | |
| 7617 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 7618 | |
| 7619 | old_CC="$CC" |
| 7620 | old_CFLAGS="$CFLAGS" |
| 7621 | |
| 7622 | # Set sane defaults for various variables |
| 7623 | test -z "$CC" && CC=cc |
| 7624 | test -z "$LTCC" && LTCC=$CC |
| 7625 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 7626 | test -z "$LD" && LD=ld |
| 7627 | test -z "$ac_objext" && ac_objext=o |
| 7628 | |
| 7629 | for cc_temp in $compiler""; do |
| 7630 | case $cc_temp in |
| 7631 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7632 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7633 | \-*) ;; |
| 7634 | *) break;; |
| 7635 | esac |
| 7636 | done |
| 7637 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 7638 | |
| 7639 | |
| 7640 | # Only perform the check for file, if the check method requires it |
| 7641 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 7642 | case $deplibs_check_method in |
| 7643 | file_magic*) |
| 7644 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 7645 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 7646 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
| 7647 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7649 | else |
| 7650 | case $MAGIC_CMD in |
| 7651 | [\\/*] | ?:[\\/]*) |
| 7652 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7653 | ;; |
| 7654 | *) |
| 7655 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7656 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7657 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7658 | for ac_dir in $ac_dummy; do |
| 7659 | IFS="$lt_save_ifs" |
| 7660 | test -z "$ac_dir" && ac_dir=. |
| 7661 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7662 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7663 | if test -n "$file_magic_test_file"; then |
| 7664 | case $deplibs_check_method in |
| 7665 | "file_magic "*) |
| 7666 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 7667 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7668 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7669 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7670 | : |
| 7671 | else |
| 7672 | cat <<_LT_EOF 1>&2 |
| 7673 | |
| 7674 | *** Warning: the command libtool uses to detect shared libraries, |
| 7675 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7676 | *** The result is that libtool may fail to recognize shared libraries |
| 7677 | *** as such. This will affect the creation of libtool libraries that |
| 7678 | *** depend on shared libraries, but programs linked with such libtool |
| 7679 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7680 | *** may want to report the problem to your system manager and/or to |
| 7681 | *** bug-libtool@gnu.org |
| 7682 | |
| 7683 | _LT_EOF |
| 7684 | fi ;; |
| 7685 | esac |
| 7686 | fi |
| 7687 | break |
| 7688 | fi |
| 7689 | done |
| 7690 | IFS="$lt_save_ifs" |
| 7691 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7692 | ;; |
| 7693 | esac |
| 7694 | fi |
| 7695 | |
| 7696 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7697 | if test -n "$MAGIC_CMD"; then |
| 7698 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7699 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
| 7700 | else |
| 7701 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7702 | echo "${ECHO_T}no" >&6; } |
| 7703 | fi |
| 7704 | |
| 7705 | |
| 7706 | |
| 7707 | |
| 7708 | |
| 7709 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7710 | if test -n "$ac_tool_prefix"; then |
| 7711 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 7712 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
| 7713 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7715 | else |
| 7716 | case $MAGIC_CMD in |
| 7717 | [\\/*] | ?:[\\/]*) |
| 7718 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7719 | ;; |
| 7720 | *) |
| 7721 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7722 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7723 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7724 | for ac_dir in $ac_dummy; do |
| 7725 | IFS="$lt_save_ifs" |
| 7726 | test -z "$ac_dir" && ac_dir=. |
| 7727 | if test -f $ac_dir/file; then |
| 7728 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7729 | if test -n "$file_magic_test_file"; then |
| 7730 | case $deplibs_check_method in |
| 7731 | "file_magic "*) |
| 7732 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 7733 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7734 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7735 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7736 | : |
| 7737 | else |
| 7738 | cat <<_LT_EOF 1>&2 |
| 7739 | |
| 7740 | *** Warning: the command libtool uses to detect shared libraries, |
| 7741 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7742 | *** The result is that libtool may fail to recognize shared libraries |
| 7743 | *** as such. This will affect the creation of libtool libraries that |
| 7744 | *** depend on shared libraries, but programs linked with such libtool |
| 7745 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7746 | *** may want to report the problem to your system manager and/or to |
| 7747 | *** bug-libtool@gnu.org |
| 7748 | |
| 7749 | _LT_EOF |
| 7750 | fi ;; |
| 7751 | esac |
| 7752 | fi |
| 7753 | break |
| 7754 | fi |
| 7755 | done |
| 7756 | IFS="$lt_save_ifs" |
| 7757 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7758 | ;; |
| 7759 | esac |
| 7760 | fi |
| 7761 | |
| 7762 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7763 | if test -n "$MAGIC_CMD"; then |
| 7764 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7765 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
| 7766 | else |
| 7767 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7768 | echo "${ECHO_T}no" >&6; } |
| 7769 | fi |
| 7770 | |
| 7771 | |
| 7772 | else |
| 7773 | MAGIC_CMD=: |
| 7774 | fi |
| 7775 | fi |
| 7776 | |
| 7777 | fi |
| 7778 | ;; |
| 7779 | esac |
| 7780 | |
| 7781 | # Use C for the default configuration in the libtool script |
| 7782 | |
| 7783 | lt_save_CC="$CC" |
| 7784 | ac_ext=c |
| 7785 | ac_cpp='$CPP $CPPFLAGS' |
| 7786 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7787 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7789 | |
| 7790 | |
| 7791 | # Source file extension for C test sources. |
| 7792 | ac_ext=c |
| 7793 | |
| 7794 | # Object file extension for compiled C test sources. |
| 7795 | objext=o |
| 7796 | objext=$objext |
| 7797 | |
| 7798 | # Code to be used in simple compile tests |
| 7799 | lt_simple_compile_test_code="int some_variable = 0;" |
| 7800 | |
| 7801 | # Code to be used in simple link tests |
| 7802 | lt_simple_link_test_code='int main(){return(0);}' |
| 7803 | |
| 7804 | |
| 7805 | |
| 7806 | |
| 7807 | |
| 7808 | |
| 7809 | |
| 7810 | # If no C compiler was specified, use CC. |
| 7811 | LTCC=${LTCC-"$CC"} |
| 7812 | |
| 7813 | # If no C compiler flags were specified, use CFLAGS. |
| 7814 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7815 | |
| 7816 | # Allow CC to be a program name with arguments. |
| 7817 | compiler=$CC |
| 7818 | |
| 7819 | # Save the default compiler, since it gets overwritten when the other |
| 7820 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 7821 | compiler_DEFAULT=$CC |
| 7822 | |
| 7823 | # save warnings/boilerplate of simple test code |
| 7824 | ac_outfile=conftest.$ac_objext |
| 7825 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 7826 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7827 | _lt_compiler_boilerplate=`cat conftest.err` |
| 7828 | $RM conftest* |
| 7829 | |
| 7830 | ac_outfile=conftest.$ac_objext |
| 7831 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 7832 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7833 | _lt_linker_boilerplate=`cat conftest.err` |
| 7834 | $RM -r conftest* |
| 7835 | |
| 7836 | |
| 7837 | if test -n "$compiler"; then |
| 7838 | |
| 7839 | lt_prog_compiler_no_builtin_flag= |
| 7840 | |
| 7841 | if test "$GCC" = yes; then |
| 7842 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 7843 | |
| 7844 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 7845 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
| 7846 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 7847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7848 | else |
| 7849 | lt_cv_prog_compiler_rtti_exceptions=no |
| 7850 | ac_outfile=conftest.$ac_objext |
| 7851 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7852 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7853 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7854 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7855 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7856 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7857 | # The option is referenced via a variable to avoid confusing sed. |
| 7858 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7859 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7860 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7861 | -e 's:$: $lt_compiler_flag:'` |
| 7862 | (eval echo "\"\$as_me:7862: $lt_compile\"" >&5) |
| 7863 | (eval "$lt_compile" 2>conftest.err) |
| 7864 | ac_status=$? |
| 7865 | cat conftest.err >&5 |
| 7866 | echo "$as_me:7866: \$? = $ac_status" >&5 |
| 7867 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7868 | # The compiler can only warn and ignore the option if not recognized |
| 7869 | # So say no if there are warnings other than the usual output. |
| 7870 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7871 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7872 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 7873 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7874 | fi |
| 7875 | fi |
| 7876 | $RM conftest* |
| 7877 | |
| 7878 | fi |
| 7879 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 7880 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 7881 | |
| 7882 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7883 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7884 | else |
| 7885 | : |
| 7886 | fi |
| 7887 | |
| 7888 | fi |
| 7889 | |
| 7890 | |
| 7891 | |
| 7892 | |
| 7893 | |
| 7894 | |
| 7895 | lt_prog_compiler_wl= |
| 7896 | lt_prog_compiler_pic= |
| 7897 | lt_prog_compiler_static= |
| 7898 | |
| 7899 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 7900 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
| 7901 | |
| 7902 | if test "$GCC" = yes; then |
| 7903 | lt_prog_compiler_wl='-Wl,' |
| 7904 | lt_prog_compiler_static='-static' |
| 7905 | |
| 7906 | case $host_os in |
| 7907 | aix*) |
| 7908 | # All AIX code is PIC. |
| 7909 | if test "$host_cpu" = ia64; then |
| 7910 | # AIX 5 now supports IA64 processor |
| 7911 | lt_prog_compiler_static='-Bstatic' |
| 7912 | fi |
| 7913 | ;; |
| 7914 | |
| 7915 | amigaos*) |
| 7916 | case $host_cpu in |
| 7917 | powerpc) |
| 7918 | # see comment about AmigaOS4 .so support |
| 7919 | lt_prog_compiler_pic='-fPIC' |
| 7920 | ;; |
| 7921 | m68k) |
| 7922 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7923 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7924 | # like `-m68040'. |
| 7925 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7926 | ;; |
| 7927 | esac |
| 7928 | ;; |
| 7929 | |
| 7930 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 7931 | # PIC is the default for these OSes. |
| 7932 | ;; |
| 7933 | |
| 7934 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 7935 | # This hack is so that the source file can tell whether it is being |
| 7936 | # built for inclusion in a dll (and should export symbols for example). |
| 7937 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 7938 | # (--disable-auto-import) libraries |
| 7939 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7940 | ;; |
| 7941 | |
| 7942 | darwin* | rhapsody*) |
| 7943 | # PIC is the default on this platform |
| 7944 | # Common symbols not allowed in MH_DYLIB files |
| 7945 | lt_prog_compiler_pic='-fno-common' |
| 7946 | ;; |
| 7947 | |
| 7948 | hpux*) |
| 7949 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 7950 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 7951 | # sets the default TLS model and affects inlining. |
| 7952 | case $host_cpu in |
| 7953 | hppa*64*) |
| 7954 | # +Z the default |
| 7955 | ;; |
| 7956 | *) |
| 7957 | lt_prog_compiler_pic='-fPIC' |
| 7958 | ;; |
| 7959 | esac |
| 7960 | ;; |
| 7961 | |
| 7962 | interix[3-9]*) |
| 7963 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7964 | # Instead, we relocate shared libraries at runtime. |
| 7965 | ;; |
| 7966 | |
| 7967 | msdosdjgpp*) |
| 7968 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7969 | # on systems that don't support them. |
| 7970 | lt_prog_compiler_can_build_shared=no |
| 7971 | enable_shared=no |
| 7972 | ;; |
| 7973 | |
| 7974 | *nto* | *qnx*) |
| 7975 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 7976 | # it will coredump. |
| 7977 | lt_prog_compiler_pic='-fPIC -shared' |
| 7978 | ;; |
| 7979 | |
| 7980 | sysv4*MP*) |
| 7981 | if test -d /usr/nec; then |
| 7982 | lt_prog_compiler_pic=-Kconform_pic |
| 7983 | fi |
| 7984 | ;; |
| 7985 | |
| 7986 | *) |
| 7987 | lt_prog_compiler_pic='-fPIC' |
| 7988 | ;; |
| 7989 | esac |
| 7990 | else |
| 7991 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7992 | case $host_os in |
| 7993 | aix*) |
| 7994 | lt_prog_compiler_wl='-Wl,' |
| 7995 | if test "$host_cpu" = ia64; then |
| 7996 | # AIX 5 now supports IA64 processor |
| 7997 | lt_prog_compiler_static='-Bstatic' |
| 7998 | else |
| 7999 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8000 | fi |
| 8001 | ;; |
| 8002 | |
| 8003 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8004 | # This hack is so that the source file can tell whether it is being |
| 8005 | # built for inclusion in a dll (and should export symbols for example). |
| 8006 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8007 | ;; |
| 8008 | |
| 8009 | hpux9* | hpux10* | hpux11*) |
| 8010 | lt_prog_compiler_wl='-Wl,' |
| 8011 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8012 | # not for PA HP-UX. |
| 8013 | case $host_cpu in |
| 8014 | hppa*64*|ia64*) |
| 8015 | # +Z the default |
| 8016 | ;; |
| 8017 | *) |
| 8018 | lt_prog_compiler_pic='+Z' |
| 8019 | ;; |
| 8020 | esac |
| 8021 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8022 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8023 | ;; |
| 8024 | |
| 8025 | irix5* | irix6* | nonstopux*) |
| 8026 | lt_prog_compiler_wl='-Wl,' |
| 8027 | # PIC (with -KPIC) is the default. |
| 8028 | lt_prog_compiler_static='-non_shared' |
| 8029 | ;; |
| 8030 | |
| 8031 | linux* | k*bsd*-gnu) |
| 8032 | case $cc_basename in |
| 8033 | # old Intel for x86_64 which still supported -KPIC. |
| 8034 | ecc*) |
| 8035 | lt_prog_compiler_wl='-Wl,' |
| 8036 | lt_prog_compiler_pic='-KPIC' |
| 8037 | lt_prog_compiler_static='-static' |
| 8038 | ;; |
| 8039 | # icc used to be incompatible with GCC. |
| 8040 | # ICC 10 doesn't accept -KPIC any more. |
| 8041 | icc* | ifort*) |
| 8042 | lt_prog_compiler_wl='-Wl,' |
| 8043 | lt_prog_compiler_pic='-fPIC' |
| 8044 | lt_prog_compiler_static='-static' |
| 8045 | ;; |
| 8046 | # Lahey Fortran 8.1. |
| 8047 | lf95*) |
| 8048 | lt_prog_compiler_wl='-Wl,' |
| 8049 | lt_prog_compiler_pic='--shared' |
| 8050 | lt_prog_compiler_static='--static' |
| 8051 | ;; |
| 8052 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 8053 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8054 | # which looks to be a dead project) |
| 8055 | lt_prog_compiler_wl='-Wl,' |
| 8056 | lt_prog_compiler_pic='-fpic' |
| 8057 | lt_prog_compiler_static='-Bstatic' |
| 8058 | ;; |
| 8059 | ccc*) |
| 8060 | lt_prog_compiler_wl='-Wl,' |
| 8061 | # All Alpha code is PIC. |
| 8062 | lt_prog_compiler_static='-non_shared' |
| 8063 | ;; |
| 8064 | xl*) |
| 8065 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 8066 | lt_prog_compiler_wl='-Wl,' |
| 8067 | lt_prog_compiler_pic='-qpic' |
| 8068 | lt_prog_compiler_static='-qstaticlink' |
| 8069 | ;; |
| 8070 | *) |
| 8071 | case `$CC -V 2>&1 | sed 5q` in |
| 8072 | *Sun\ C*) |
| 8073 | # Sun C 5.9 |
| 8074 | lt_prog_compiler_pic='-KPIC' |
| 8075 | lt_prog_compiler_static='-Bstatic' |
| 8076 | lt_prog_compiler_wl='-Wl,' |
| 8077 | ;; |
| 8078 | *Sun\ F*) |
| 8079 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8080 | lt_prog_compiler_pic='-KPIC' |
| 8081 | lt_prog_compiler_static='-Bstatic' |
| 8082 | lt_prog_compiler_wl='' |
| 8083 | ;; |
| 8084 | esac |
| 8085 | ;; |
| 8086 | esac |
| 8087 | ;; |
| 8088 | |
| 8089 | newsos6) |
| 8090 | lt_prog_compiler_pic='-KPIC' |
| 8091 | lt_prog_compiler_static='-Bstatic' |
| 8092 | ;; |
| 8093 | |
| 8094 | *nto* | *qnx*) |
| 8095 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8096 | # it will coredump. |
| 8097 | lt_prog_compiler_pic='-fPIC -shared' |
| 8098 | ;; |
| 8099 | |
| 8100 | osf3* | osf4* | osf5*) |
| 8101 | lt_prog_compiler_wl='-Wl,' |
| 8102 | # All OSF/1 code is PIC. |
| 8103 | lt_prog_compiler_static='-non_shared' |
| 8104 | ;; |
| 8105 | |
| 8106 | rdos*) |
| 8107 | lt_prog_compiler_static='-non_shared' |
| 8108 | ;; |
| 8109 | |
| 8110 | solaris*) |
| 8111 | lt_prog_compiler_pic='-KPIC' |
| 8112 | lt_prog_compiler_static='-Bstatic' |
| 8113 | case $cc_basename in |
| 8114 | f77* | f90* | f95*) |
| 8115 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8116 | *) |
| 8117 | lt_prog_compiler_wl='-Wl,';; |
| 8118 | esac |
| 8119 | ;; |
| 8120 | |
| 8121 | sunos4*) |
| 8122 | lt_prog_compiler_wl='-Qoption ld ' |
| 8123 | lt_prog_compiler_pic='-PIC' |
| 8124 | lt_prog_compiler_static='-Bstatic' |
| 8125 | ;; |
| 8126 | |
| 8127 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 8128 | lt_prog_compiler_wl='-Wl,' |
| 8129 | lt_prog_compiler_pic='-KPIC' |
| 8130 | lt_prog_compiler_static='-Bstatic' |
| 8131 | ;; |
| 8132 | |
| 8133 | sysv4*MP*) |
| 8134 | if test -d /usr/nec ;then |
| 8135 | lt_prog_compiler_pic='-Kconform_pic' |
| 8136 | lt_prog_compiler_static='-Bstatic' |
| 8137 | fi |
| 8138 | ;; |
| 8139 | |
| 8140 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8141 | lt_prog_compiler_wl='-Wl,' |
| 8142 | lt_prog_compiler_pic='-KPIC' |
| 8143 | lt_prog_compiler_static='-Bstatic' |
| 8144 | ;; |
| 8145 | |
| 8146 | unicos*) |
| 8147 | lt_prog_compiler_wl='-Wl,' |
| 8148 | lt_prog_compiler_can_build_shared=no |
| 8149 | ;; |
| 8150 | |
| 8151 | uts4*) |
| 8152 | lt_prog_compiler_pic='-pic' |
| 8153 | lt_prog_compiler_static='-Bstatic' |
| 8154 | ;; |
| 8155 | |
| 8156 | *) |
| 8157 | lt_prog_compiler_can_build_shared=no |
| 8158 | ;; |
| 8159 | esac |
| 8160 | fi |
| 8161 | |
| 8162 | case $host_os in |
| 8163 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8164 | *djgpp*) |
| 8165 | lt_prog_compiler_pic= |
| 8166 | ;; |
| 8167 | *) |
| 8168 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8169 | ;; |
| 8170 | esac |
| 8171 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 8172 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
| 8173 | |
| 8174 | |
| 8175 | |
| 8176 | |
| 8177 | |
| 8178 | |
| 8179 | # |
| 8180 | # Check to make sure the PIC flag actually works. |
| 8181 | # |
| 8182 | if test -n "$lt_prog_compiler_pic"; then |
| 8183 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8184 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
| 8185 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
| 8186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8187 | else |
| 8188 | lt_cv_prog_compiler_pic_works=no |
| 8189 | ac_outfile=conftest.$ac_objext |
| 8190 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8191 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8192 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8193 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8194 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8195 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8196 | # The option is referenced via a variable to avoid confusing sed. |
| 8197 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8198 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8199 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8200 | -e 's:$: $lt_compiler_flag:'` |
| 8201 | (eval echo "\"\$as_me:8201: $lt_compile\"" >&5) |
| 8202 | (eval "$lt_compile" 2>conftest.err) |
| 8203 | ac_status=$? |
| 8204 | cat conftest.err >&5 |
| 8205 | echo "$as_me:8205: \$? = $ac_status" >&5 |
| 8206 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8207 | # The compiler can only warn and ignore the option if not recognized |
| 8208 | # So say no if there are warnings other than the usual output. |
| 8209 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 8210 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8211 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8212 | lt_cv_prog_compiler_pic_works=yes |
| 8213 | fi |
| 8214 | fi |
| 8215 | $RM conftest* |
| 8216 | |
| 8217 | fi |
| 8218 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8219 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } |
| 8220 | |
| 8221 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 8222 | case $lt_prog_compiler_pic in |
| 8223 | "" | " "*) ;; |
| 8224 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8225 | esac |
| 8226 | else |
| 8227 | lt_prog_compiler_pic= |
| 8228 | lt_prog_compiler_can_build_shared=no |
| 8229 | fi |
| 8230 | |
| 8231 | fi |
| 8232 | |
| 8233 | |
| 8234 | |
| 8235 | |
| 8236 | |
| 8237 | |
| 8238 | # |
| 8239 | # Check to make sure the static flag actually works. |
| 8240 | # |
| 8241 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 8242 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8243 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 8244 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
| 8245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8246 | else |
| 8247 | lt_cv_prog_compiler_static_works=no |
| 8248 | save_LDFLAGS="$LDFLAGS" |
| 8249 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 8250 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 8251 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8252 | # The linker can only warn and ignore the option if not recognized |
| 8253 | # So say no if there are warnings |
| 8254 | if test -s conftest.err; then |
| 8255 | # Append any errors to the config.log. |
| 8256 | cat conftest.err 1>&5 |
| 8257 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 8258 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8259 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 8260 | lt_cv_prog_compiler_static_works=yes |
| 8261 | fi |
| 8262 | else |
| 8263 | lt_cv_prog_compiler_static_works=yes |
| 8264 | fi |
| 8265 | fi |
| 8266 | $RM -r conftest* |
| 8267 | LDFLAGS="$save_LDFLAGS" |
| 8268 | |
| 8269 | fi |
| 8270 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8271 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } |
| 8272 | |
| 8273 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 8274 | : |
| 8275 | else |
| 8276 | lt_prog_compiler_static= |
| 8277 | fi |
| 8278 | |
| 8279 | |
| 8280 | |
| 8281 | |
| 8282 | |
| 8283 | |
| 8284 | |
| 8285 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8286 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
| 8287 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 8288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8289 | else |
| 8290 | lt_cv_prog_compiler_c_o=no |
| 8291 | $RM -r conftest 2>/dev/null |
| 8292 | mkdir conftest |
| 8293 | cd conftest |
| 8294 | mkdir out |
| 8295 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8296 | |
| 8297 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8298 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8299 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8300 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8301 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8302 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8303 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8304 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8305 | -e 's:$: $lt_compiler_flag:'` |
| 8306 | (eval echo "\"\$as_me:8306: $lt_compile\"" >&5) |
| 8307 | (eval "$lt_compile" 2>out/conftest.err) |
| 8308 | ac_status=$? |
| 8309 | cat out/conftest.err >&5 |
| 8310 | echo "$as_me:8310: \$? = $ac_status" >&5 |
| 8311 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8312 | then |
| 8313 | # The compiler can only warn and ignore the option if not recognized |
| 8314 | # So say no if there are warnings |
| 8315 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 8316 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8317 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8318 | lt_cv_prog_compiler_c_o=yes |
| 8319 | fi |
| 8320 | fi |
| 8321 | chmod u+w . 2>&5 |
| 8322 | $RM conftest* |
| 8323 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8324 | # template instantiation |
| 8325 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8326 | $RM out/* && rmdir out |
| 8327 | cd .. |
| 8328 | $RM -r conftest |
| 8329 | $RM conftest* |
| 8330 | |
| 8331 | fi |
| 8332 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8333 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
| 8334 | |
| 8335 | |
| 8336 | |
| 8337 | |
| 8338 | |
| 8339 | |
| 8340 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8341 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
| 8342 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 8343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8344 | else |
| 8345 | lt_cv_prog_compiler_c_o=no |
| 8346 | $RM -r conftest 2>/dev/null |
| 8347 | mkdir conftest |
| 8348 | cd conftest |
| 8349 | mkdir out |
| 8350 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8351 | |
| 8352 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8353 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8354 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8355 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8356 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8357 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8358 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8359 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8360 | -e 's:$: $lt_compiler_flag:'` |
| 8361 | (eval echo "\"\$as_me:8361: $lt_compile\"" >&5) |
| 8362 | (eval "$lt_compile" 2>out/conftest.err) |
| 8363 | ac_status=$? |
| 8364 | cat out/conftest.err >&5 |
| 8365 | echo "$as_me:8365: \$? = $ac_status" >&5 |
| 8366 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8367 | then |
| 8368 | # The compiler can only warn and ignore the option if not recognized |
| 8369 | # So say no if there are warnings |
| 8370 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 8371 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8372 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8373 | lt_cv_prog_compiler_c_o=yes |
| 8374 | fi |
| 8375 | fi |
| 8376 | chmod u+w . 2>&5 |
| 8377 | $RM conftest* |
| 8378 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8379 | # template instantiation |
| 8380 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8381 | $RM out/* && rmdir out |
| 8382 | cd .. |
| 8383 | $RM -r conftest |
| 8384 | $RM conftest* |
| 8385 | |
| 8386 | fi |
| 8387 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8388 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | hard_links="nottested" |
| 8394 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8395 | # do not overwrite the value of need_locks provided by the user |
| 8396 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 8397 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
| 8398 | hard_links=yes |
| 8399 | $RM conftest* |
| 8400 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8401 | touch conftest.a |
| 8402 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8403 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8404 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 8405 | echo "${ECHO_T}$hard_links" >&6; } |
| 8406 | if test "$hard_links" = no; then |
| 8407 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 8408 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 8409 | need_locks=warn |
| 8410 | fi |
| 8411 | else |
| 8412 | need_locks=no |
| 8413 | fi |
| 8414 | |
| 8415 | |
| 8416 | |
| 8417 | |
| 8418 | |
| 8419 | |
| 8420 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 8421 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
| 8422 | |
| 8423 | runpath_var= |
| 8424 | allow_undefined_flag= |
| 8425 | always_export_symbols=no |
| 8426 | archive_cmds= |
| 8427 | archive_expsym_cmds= |
| 8428 | compiler_needs_object=no |
| 8429 | enable_shared_with_static_runtimes=no |
| 8430 | export_dynamic_flag_spec= |
| 8431 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8432 | hardcode_automatic=no |
| 8433 | hardcode_direct=no |
| 8434 | hardcode_direct_absolute=no |
| 8435 | hardcode_libdir_flag_spec= |
| 8436 | hardcode_libdir_flag_spec_ld= |
| 8437 | hardcode_libdir_separator= |
| 8438 | hardcode_minus_L=no |
| 8439 | hardcode_shlibpath_var=unsupported |
| 8440 | inherit_rpath=no |
| 8441 | link_all_deplibs=unknown |
| 8442 | module_cmds= |
| 8443 | module_expsym_cmds= |
| 8444 | old_archive_from_new_cmds= |
| 8445 | old_archive_from_expsyms_cmds= |
| 8446 | thread_safe_flag_spec= |
| 8447 | whole_archive_flag_spec= |
| 8448 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 8449 | # included in the symbol list |
| 8450 | include_expsyms= |
| 8451 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8452 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8453 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8454 | # as well as any symbol that contains `d'. |
| 8455 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 8456 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8457 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8458 | # the symbol is explicitly referenced. Since portable code cannot |
| 8459 | # rely on this symbol name, it's probably fine to never include it in |
| 8460 | # preloaded symbol tables. |
| 8461 | # Exclude shared library initialization/finalization symbols. |
| 8462 | extract_expsyms_cmds= |
| 8463 | |
| 8464 | case $host_os in |
| 8465 | cygwin* | mingw* | pw32* | cegcc*) |
| 8466 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8467 | # When not using gcc, we currently assume that we are using |
| 8468 | # Microsoft Visual C++. |
| 8469 | if test "$GCC" != yes; then |
| 8470 | with_gnu_ld=no |
| 8471 | fi |
| 8472 | ;; |
| 8473 | interix*) |
| 8474 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8475 | with_gnu_ld=yes |
| 8476 | ;; |
| 8477 | openbsd*) |
| 8478 | with_gnu_ld=no |
| 8479 | ;; |
| 8480 | linux* | k*bsd*-gnu) |
| 8481 | link_all_deplibs=no |
| 8482 | ;; |
| 8483 | esac |
| 8484 | |
| 8485 | ld_shlibs=yes |
| 8486 | if test "$with_gnu_ld" = yes; then |
| 8487 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8488 | wlarc='${wl}' |
| 8489 | |
| 8490 | # Set some defaults for GNU ld with shared library support. These |
| 8491 | # are reset later if shared libraries are not supported. Putting them |
| 8492 | # here allows them to be overridden if necessary. |
| 8493 | runpath_var=LD_RUN_PATH |
| 8494 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8495 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8496 | # ancient GNU ld didn't support --whole-archive et. al. |
| 8497 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8498 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8499 | else |
| 8500 | whole_archive_flag_spec= |
| 8501 | fi |
| 8502 | supports_anon_versioning=no |
| 8503 | case `$LD -v 2>&1` in |
| 8504 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8505 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8506 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8507 | *\ 2.11.*) ;; # other 2.11 versions |
| 8508 | *) supports_anon_versioning=yes ;; |
| 8509 | esac |
| 8510 | |
| 8511 | # See if GNU ld supports shared libraries. |
| 8512 | case $host_os in |
| 8513 | aix[3-9]*) |
| 8514 | # On AIX/PPC, the GNU linker is very broken |
| 8515 | if test "$host_cpu" != ia64; then |
| 8516 | ld_shlibs=no |
| 8517 | cat <<_LT_EOF 1>&2 |
| 8518 | |
| 8519 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 8520 | *** to be unable to reliably create shared libraries on AIX. |
| 8521 | *** Therefore, libtool is disabling shared libraries support. If you |
| 8522 | *** really care for shared libraries, you may want to modify your PATH |
| 8523 | *** so that a non-GNU linker is found, and then restart. |
| 8524 | |
| 8525 | _LT_EOF |
| 8526 | fi |
| 8527 | ;; |
| 8528 | |
| 8529 | amigaos*) |
| 8530 | case $host_cpu in |
| 8531 | powerpc) |
| 8532 | # see comment about AmigaOS4 .so support |
| 8533 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8534 | archive_expsym_cmds='' |
| 8535 | ;; |
| 8536 | m68k) |
| 8537 | 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)' |
| 8538 | hardcode_libdir_flag_spec='-L$libdir' |
| 8539 | hardcode_minus_L=yes |
| 8540 | ;; |
| 8541 | esac |
| 8542 | ;; |
| 8543 | |
| 8544 | beos*) |
| 8545 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8546 | allow_undefined_flag=unsupported |
| 8547 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 8548 | # support --undefined. This deserves some investigation. FIXME |
| 8549 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8550 | else |
| 8551 | ld_shlibs=no |
| 8552 | fi |
| 8553 | ;; |
| 8554 | |
| 8555 | cygwin* | mingw* | pw32* | cegcc*) |
| 8556 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 8557 | # as there is no search path for DLLs. |
| 8558 | hardcode_libdir_flag_spec='-L$libdir' |
| 8559 | allow_undefined_flag=unsupported |
| 8560 | always_export_symbols=no |
| 8561 | enable_shared_with_static_runtimes=yes |
| 8562 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 8563 | |
| 8564 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 8565 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8566 | # If the export-symbols file already is a .def file (1st line |
| 8567 | # is EXPORTS), use it as is; otherwise, prepend... |
| 8568 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 8569 | cp $export_symbols $output_objdir/$soname.def; |
| 8570 | else |
| 8571 | echo EXPORTS > $output_objdir/$soname.def; |
| 8572 | cat $export_symbols >> $output_objdir/$soname.def; |
| 8573 | fi~ |
| 8574 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8575 | else |
| 8576 | ld_shlibs=no |
| 8577 | fi |
| 8578 | ;; |
| 8579 | |
| 8580 | interix[3-9]*) |
| 8581 | hardcode_direct=no |
| 8582 | hardcode_shlibpath_var=no |
| 8583 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8584 | export_dynamic_flag_spec='${wl}-E' |
| 8585 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 8586 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 8587 | # default) and relocated if they conflict, which is a slow very memory |
| 8588 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 8589 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 8590 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8591 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 8592 | 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' |
| 8593 | ;; |
| 8594 | |
| 8595 | gnu* | linux* | tpf* | k*bsd*-gnu) |
| 8596 | tmp_diet=no |
| 8597 | if test "$host_os" = linux-dietlibc; then |
| 8598 | case $cc_basename in |
| 8599 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 8600 | esac |
| 8601 | fi |
| 8602 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 8603 | && test "$tmp_diet" = no |
| 8604 | then |
| 8605 | tmp_addflag= |
| 8606 | tmp_sharedflag='-shared' |
| 8607 | case $cc_basename,$host_cpu in |
| 8608 | pgcc*) # Portland Group C compiler |
| 8609 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 8610 | tmp_addflag=' $pic_flag' |
| 8611 | ;; |
| 8612 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 8613 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 8614 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 8615 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 8616 | tmp_addflag=' -i_dynamic' ;; |
| 8617 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 8618 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 8619 | ifc* | ifort*) # Intel Fortran compiler |
| 8620 | tmp_addflag=' -nofor_main' ;; |
| 8621 | lf95*) # Lahey Fortran 8.1 |
| 8622 | whole_archive_flag_spec= |
| 8623 | tmp_sharedflag='--shared' ;; |
| 8624 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 8625 | tmp_sharedflag='-qmkshrobj' |
| 8626 | tmp_addflag= ;; |
| 8627 | esac |
| 8628 | case `$CC -V 2>&1 | sed 5q` in |
| 8629 | *Sun\ C*) # Sun C 5.9 |
| 8630 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 8631 | compiler_needs_object=yes |
| 8632 | tmp_sharedflag='-G' ;; |
| 8633 | *Sun\ F*) # Sun Fortran 8.3 |
| 8634 | tmp_sharedflag='-G' ;; |
| 8635 | esac |
| 8636 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8637 | |
| 8638 | if test "x$supports_anon_versioning" = xyes; then |
| 8639 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8640 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8641 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8642 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 8643 | fi |
| 8644 | |
| 8645 | case $cc_basename in |
| 8646 | xlf*) |
| 8647 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 8648 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 8649 | hardcode_libdir_flag_spec= |
| 8650 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 8651 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 8652 | if test "x$supports_anon_versioning" = xyes; then |
| 8653 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8654 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8655 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8656 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 8657 | fi |
| 8658 | ;; |
| 8659 | esac |
| 8660 | else |
| 8661 | ld_shlibs=no |
| 8662 | fi |
| 8663 | ;; |
| 8664 | |
| 8665 | netbsd* | netbsdelf*-gnu) |
| 8666 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 8667 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 8668 | wlarc= |
| 8669 | else |
| 8670 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8671 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8672 | fi |
| 8673 | ;; |
| 8674 | |
| 8675 | solaris*) |
| 8676 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 8677 | ld_shlibs=no |
| 8678 | cat <<_LT_EOF 1>&2 |
| 8679 | |
| 8680 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 8681 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 8682 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8683 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 8684 | *** your PATH or compiler configuration so that the native linker is |
| 8685 | *** used, and then restart. |
| 8686 | |
| 8687 | _LT_EOF |
| 8688 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8689 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8690 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8691 | else |
| 8692 | ld_shlibs=no |
| 8693 | fi |
| 8694 | ;; |
| 8695 | |
| 8696 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 8697 | case `$LD -v 2>&1` in |
| 8698 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 8699 | ld_shlibs=no |
| 8700 | cat <<_LT_EOF 1>&2 |
| 8701 | |
| 8702 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 8703 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 8704 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8705 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 8706 | *** your PATH or compiler configuration so that the native linker is |
| 8707 | *** used, and then restart. |
| 8708 | |
| 8709 | _LT_EOF |
| 8710 | ;; |
| 8711 | *) |
| 8712 | # For security reasons, it is highly recommended that you always |
| 8713 | # use absolute paths for naming shared libraries, and exclude the |
| 8714 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 8715 | # requires that you compile everything twice, which is a pain. |
| 8716 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8717 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8718 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8719 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8720 | else |
| 8721 | ld_shlibs=no |
| 8722 | fi |
| 8723 | ;; |
| 8724 | esac |
| 8725 | ;; |
| 8726 | |
| 8727 | sunos4*) |
| 8728 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8729 | wlarc= |
| 8730 | hardcode_direct=yes |
| 8731 | hardcode_shlibpath_var=no |
| 8732 | ;; |
| 8733 | |
| 8734 | *) |
| 8735 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8736 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8737 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8738 | else |
| 8739 | ld_shlibs=no |
| 8740 | fi |
| 8741 | ;; |
| 8742 | esac |
| 8743 | |
| 8744 | if test "$ld_shlibs" = no; then |
| 8745 | runpath_var= |
| 8746 | hardcode_libdir_flag_spec= |
| 8747 | export_dynamic_flag_spec= |
| 8748 | whole_archive_flag_spec= |
| 8749 | fi |
| 8750 | else |
| 8751 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 8752 | case $host_os in |
| 8753 | aix3*) |
| 8754 | allow_undefined_flag=unsupported |
| 8755 | always_export_symbols=yes |
| 8756 | 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' |
| 8757 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 8758 | # are no directories specified by -L. |
| 8759 | hardcode_minus_L=yes |
| 8760 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 8761 | # Neither direct hardcoding nor static linking is supported with a |
| 8762 | # broken collect2. |
| 8763 | hardcode_direct=unsupported |
| 8764 | fi |
| 8765 | ;; |
| 8766 | |
| 8767 | aix[4-9]*) |
| 8768 | if test "$host_cpu" = ia64; then |
| 8769 | # On IA64, the linker does run time linking by default, so we don't |
| 8770 | # have to do anything special. |
| 8771 | aix_use_runtimelinking=no |
| 8772 | exp_sym_flag='-Bexport' |
| 8773 | no_entry_flag="" |
| 8774 | else |
| 8775 | # If we're using GNU nm, then we don't want the "-C" option. |
| 8776 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 8777 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 8778 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 8779 | else |
| 8780 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 8781 | fi |
| 8782 | aix_use_runtimelinking=no |
| 8783 | |
| 8784 | # Test if we are trying to use run time linking or normal |
| 8785 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8786 | # need to do runtime linking. |
| 8787 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 8788 | for ld_flag in $LDFLAGS; do |
| 8789 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 8790 | aix_use_runtimelinking=yes |
| 8791 | break |
| 8792 | fi |
| 8793 | done |
| 8794 | ;; |
| 8795 | esac |
| 8796 | |
| 8797 | exp_sym_flag='-bexport' |
| 8798 | no_entry_flag='-bnoentry' |
| 8799 | fi |
| 8800 | |
| 8801 | # When large executables or shared objects are built, AIX ld can |
| 8802 | # have problems creating the table of contents. If linking a library |
| 8803 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 8804 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 8805 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 8806 | |
| 8807 | archive_cmds='' |
| 8808 | hardcode_direct=yes |
| 8809 | hardcode_direct_absolute=yes |
| 8810 | hardcode_libdir_separator=':' |
| 8811 | link_all_deplibs=yes |
| 8812 | file_list_spec='${wl}-f,' |
| 8813 | |
| 8814 | if test "$GCC" = yes; then |
| 8815 | case $host_os in aix4.[012]|aix4.[012].*) |
| 8816 | # We only want to do this on AIX 4.2 and lower, the check |
| 8817 | # below for broken collect2 doesn't work under 4.3+ |
| 8818 | collect2name=`${CC} -print-prog-name=collect2` |
| 8819 | if test -f "$collect2name" && |
| 8820 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 8821 | then |
| 8822 | # We have reworked collect2 |
| 8823 | : |
| 8824 | else |
| 8825 | # We have old collect2 |
| 8826 | hardcode_direct=unsupported |
| 8827 | # It fails to find uninstalled libraries when the uninstalled |
| 8828 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 8829 | # to unsupported forces relinking |
| 8830 | hardcode_minus_L=yes |
| 8831 | hardcode_libdir_flag_spec='-L$libdir' |
| 8832 | hardcode_libdir_separator= |
| 8833 | fi |
| 8834 | ;; |
| 8835 | esac |
| 8836 | shared_flag='-shared' |
| 8837 | if test "$aix_use_runtimelinking" = yes; then |
| 8838 | shared_flag="$shared_flag "'${wl}-G' |
| 8839 | fi |
| 8840 | link_all_deplibs=no |
| 8841 | else |
| 8842 | # not using gcc |
| 8843 | if test "$host_cpu" = ia64; then |
| 8844 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 8845 | # chokes on -Wl,-G. The following line is correct: |
| 8846 | shared_flag='-G' |
| 8847 | else |
| 8848 | if test "$aix_use_runtimelinking" = yes; then |
| 8849 | shared_flag='${wl}-G' |
| 8850 | else |
| 8851 | shared_flag='${wl}-bM:SRE' |
| 8852 | fi |
| 8853 | fi |
| 8854 | fi |
| 8855 | |
| 8856 | export_dynamic_flag_spec='${wl}-bexpall' |
| 8857 | # It seems that -bexpall does not export symbols beginning with |
| 8858 | # underscore (_), so it is better to generate a list of symbols to export. |
| 8859 | always_export_symbols=yes |
| 8860 | if test "$aix_use_runtimelinking" = yes; then |
| 8861 | # Warning - without using the other runtime loading flags (-brtl), |
| 8862 | # -berok will link without error, but may produce a broken library. |
| 8863 | allow_undefined_flag='-berok' |
| 8864 | # Determine the default libpath from the value encoded in an |
| 8865 | # empty executable. |
| 8866 | cat >conftest.$ac_ext <<_ACEOF |
| 8867 | /* confdefs.h. */ |
| 8868 | _ACEOF |
| 8869 | cat confdefs.h >>conftest.$ac_ext |
| 8870 | cat >>conftest.$ac_ext <<_ACEOF |
| 8871 | /* end confdefs.h. */ |
| 8872 | |
| 8873 | int |
| 8874 | main () |
| 8875 | { |
| 8876 | |
| 8877 | ; |
| 8878 | return 0; |
| 8879 | } |
| 8880 | _ACEOF |
| 8881 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8882 | if { (ac_try="$ac_link" |
| 8883 | case "(($ac_try" in |
| 8884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8885 | *) ac_try_echo=$ac_try;; |
| 8886 | esac |
| 8887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8888 | (eval "$ac_link") 2>conftest.er1 |
| 8889 | ac_status=$? |
| 8890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8891 | rm -f conftest.er1 |
| 8892 | cat conftest.err >&5 |
| 8893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8894 | (exit $ac_status); } && { |
| 8895 | test -z "$ac_c_werror_flag" || |
| 8896 | test ! -s conftest.err |
| 8897 | } && test -s conftest$ac_exeext && |
| 8898 | $as_test_x conftest$ac_exeext; then |
| 8899 | |
| 8900 | lt_aix_libpath_sed=' |
| 8901 | /Import File Strings/,/^$/ { |
| 8902 | /^0/ { |
| 8903 | s/^0 *\(.*\)$/\1/ |
| 8904 | p |
| 8905 | } |
| 8906 | }' |
| 8907 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8908 | # Check for a 64-bit object if we didn't find anything. |
| 8909 | if test -z "$aix_libpath"; then |
| 8910 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8911 | fi |
| 8912 | else |
| 8913 | echo "$as_me: failed program was:" >&5 |
| 8914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8915 | |
| 8916 | |
| 8917 | fi |
| 8918 | |
| 8919 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 8920 | conftest$ac_exeext conftest.$ac_ext |
| 8921 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8922 | |
| 8923 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8924 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 8925 | else |
| 8926 | if test "$host_cpu" = ia64; then |
| 8927 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8928 | allow_undefined_flag="-z nodefs" |
| 8929 | 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" |
| 8930 | else |
| 8931 | # Determine the default libpath from the value encoded in an |
| 8932 | # empty executable. |
| 8933 | cat >conftest.$ac_ext <<_ACEOF |
| 8934 | /* confdefs.h. */ |
| 8935 | _ACEOF |
| 8936 | cat confdefs.h >>conftest.$ac_ext |
| 8937 | cat >>conftest.$ac_ext <<_ACEOF |
| 8938 | /* end confdefs.h. */ |
| 8939 | |
| 8940 | int |
| 8941 | main () |
| 8942 | { |
| 8943 | |
| 8944 | ; |
| 8945 | return 0; |
| 8946 | } |
| 8947 | _ACEOF |
| 8948 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8949 | if { (ac_try="$ac_link" |
| 8950 | case "(($ac_try" in |
| 8951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8952 | *) ac_try_echo=$ac_try;; |
| 8953 | esac |
| 8954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8955 | (eval "$ac_link") 2>conftest.er1 |
| 8956 | ac_status=$? |
| 8957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8958 | rm -f conftest.er1 |
| 8959 | cat conftest.err >&5 |
| 8960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8961 | (exit $ac_status); } && { |
| 8962 | test -z "$ac_c_werror_flag" || |
| 8963 | test ! -s conftest.err |
| 8964 | } && test -s conftest$ac_exeext && |
| 8965 | $as_test_x conftest$ac_exeext; then |
| 8966 | |
| 8967 | lt_aix_libpath_sed=' |
| 8968 | /Import File Strings/,/^$/ { |
| 8969 | /^0/ { |
| 8970 | s/^0 *\(.*\)$/\1/ |
| 8971 | p |
| 8972 | } |
| 8973 | }' |
| 8974 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8975 | # Check for a 64-bit object if we didn't find anything. |
| 8976 | if test -z "$aix_libpath"; then |
| 8977 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8978 | fi |
| 8979 | else |
| 8980 | echo "$as_me: failed program was:" >&5 |
| 8981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8982 | |
| 8983 | |
| 8984 | fi |
| 8985 | |
| 8986 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 8987 | conftest$ac_exeext conftest.$ac_ext |
| 8988 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8989 | |
| 8990 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8991 | # Warning - without using the other run time loading flags, |
| 8992 | # -berok will link without error, but may produce a broken library. |
| 8993 | no_undefined_flag=' ${wl}-bernotok' |
| 8994 | allow_undefined_flag=' ${wl}-berok' |
| 8995 | # Exported symbols can be pulled into shared objects from archives |
| 8996 | whole_archive_flag_spec='$convenience' |
| 8997 | archive_cmds_need_lc=yes |
| 8998 | # This is similar to how AIX traditionally builds its shared libraries. |
| 8999 | 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' |
| 9000 | fi |
| 9001 | fi |
| 9002 | ;; |
| 9003 | |
| 9004 | amigaos*) |
| 9005 | case $host_cpu in |
| 9006 | powerpc) |
| 9007 | # see comment about AmigaOS4 .so support |
| 9008 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9009 | archive_expsym_cmds='' |
| 9010 | ;; |
| 9011 | m68k) |
| 9012 | 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)' |
| 9013 | hardcode_libdir_flag_spec='-L$libdir' |
| 9014 | hardcode_minus_L=yes |
| 9015 | ;; |
| 9016 | esac |
| 9017 | ;; |
| 9018 | |
| 9019 | bsdi[45]*) |
| 9020 | export_dynamic_flag_spec=-rdynamic |
| 9021 | ;; |
| 9022 | |
| 9023 | cygwin* | mingw* | pw32* | cegcc*) |
| 9024 | # When not using gcc, we currently assume that we are using |
| 9025 | # Microsoft Visual C++. |
| 9026 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9027 | # no search path for DLLs. |
| 9028 | hardcode_libdir_flag_spec=' ' |
| 9029 | allow_undefined_flag=unsupported |
| 9030 | # Tell ltmain to make .lib files, not .a files. |
| 9031 | libext=lib |
| 9032 | # Tell ltmain to make .dll files, not .so files. |
| 9033 | shrext_cmds=".dll" |
| 9034 | # FIXME: Setting linknames here is a bad hack. |
| 9035 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9036 | # The linker will automatically build a .lib file if we build a DLL. |
| 9037 | old_archive_from_new_cmds='true' |
| 9038 | # FIXME: Should let the user specify the lib program. |
| 9039 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9040 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 9041 | enable_shared_with_static_runtimes=yes |
| 9042 | ;; |
| 9043 | |
| 9044 | darwin* | rhapsody*) |
| 9045 | |
| 9046 | |
| 9047 | archive_cmds_need_lc=no |
| 9048 | hardcode_direct=no |
| 9049 | hardcode_automatic=yes |
| 9050 | hardcode_shlibpath_var=unsupported |
| 9051 | whole_archive_flag_spec='' |
| 9052 | link_all_deplibs=yes |
| 9053 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9054 | case $cc_basename in |
| 9055 | ifort*) _lt_dar_can_shared=yes ;; |
| 9056 | *) _lt_dar_can_shared=$GCC ;; |
| 9057 | esac |
| 9058 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9059 | output_verbose_link_cmd=echo |
| 9060 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9061 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9062 | 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}" |
| 9063 | 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}" |
| 9064 | |
| 9065 | else |
| 9066 | ld_shlibs=no |
| 9067 | fi |
| 9068 | |
| 9069 | ;; |
| 9070 | |
| 9071 | dgux*) |
| 9072 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9073 | hardcode_libdir_flag_spec='-L$libdir' |
| 9074 | hardcode_shlibpath_var=no |
| 9075 | ;; |
| 9076 | |
| 9077 | freebsd1*) |
| 9078 | ld_shlibs=no |
| 9079 | ;; |
| 9080 | |
| 9081 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9082 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9083 | # does not break anything, and helps significantly (at the cost of a little |
| 9084 | # extra space). |
| 9085 | freebsd2.2*) |
| 9086 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9087 | hardcode_libdir_flag_spec='-R$libdir' |
| 9088 | hardcode_direct=yes |
| 9089 | hardcode_shlibpath_var=no |
| 9090 | ;; |
| 9091 | |
| 9092 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9093 | freebsd2*) |
| 9094 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9095 | hardcode_direct=yes |
| 9096 | hardcode_minus_L=yes |
| 9097 | hardcode_shlibpath_var=no |
| 9098 | ;; |
| 9099 | |
| 9100 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 9101 | freebsd* | dragonfly*) |
| 9102 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 9103 | hardcode_libdir_flag_spec='-R$libdir' |
| 9104 | hardcode_direct=yes |
| 9105 | hardcode_shlibpath_var=no |
| 9106 | ;; |
| 9107 | |
| 9108 | hpux9*) |
| 9109 | if test "$GCC" = yes; then |
| 9110 | 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' |
| 9111 | else |
| 9112 | 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' |
| 9113 | fi |
| 9114 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9115 | hardcode_libdir_separator=: |
| 9116 | hardcode_direct=yes |
| 9117 | |
| 9118 | # hardcode_minus_L: Not really in the search PATH, |
| 9119 | # but as the default location of the library. |
| 9120 | hardcode_minus_L=yes |
| 9121 | export_dynamic_flag_spec='${wl}-E' |
| 9122 | ;; |
| 9123 | |
| 9124 | hpux10*) |
| 9125 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 9126 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9127 | else |
| 9128 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9129 | fi |
| 9130 | if test "$with_gnu_ld" = no; then |
| 9131 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9132 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 9133 | hardcode_libdir_separator=: |
| 9134 | hardcode_direct=yes |
| 9135 | hardcode_direct_absolute=yes |
| 9136 | export_dynamic_flag_spec='${wl}-E' |
| 9137 | # hardcode_minus_L: Not really in the search PATH, |
| 9138 | # but as the default location of the library. |
| 9139 | hardcode_minus_L=yes |
| 9140 | fi |
| 9141 | ;; |
| 9142 | |
| 9143 | hpux11*) |
| 9144 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 9145 | case $host_cpu in |
| 9146 | hppa*64*) |
| 9147 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9148 | ;; |
| 9149 | ia64*) |
| 9150 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9151 | ;; |
| 9152 | *) |
| 9153 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9154 | ;; |
| 9155 | esac |
| 9156 | else |
| 9157 | case $host_cpu in |
| 9158 | hppa*64*) |
| 9159 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9160 | ;; |
| 9161 | ia64*) |
| 9162 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9163 | ;; |
| 9164 | *) |
| 9165 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9166 | ;; |
| 9167 | esac |
| 9168 | fi |
| 9169 | if test "$with_gnu_ld" = no; then |
| 9170 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9171 | hardcode_libdir_separator=: |
| 9172 | |
| 9173 | case $host_cpu in |
| 9174 | hppa*64*|ia64*) |
| 9175 | hardcode_direct=no |
| 9176 | hardcode_shlibpath_var=no |
| 9177 | ;; |
| 9178 | *) |
| 9179 | hardcode_direct=yes |
| 9180 | hardcode_direct_absolute=yes |
| 9181 | export_dynamic_flag_spec='${wl}-E' |
| 9182 | |
| 9183 | # hardcode_minus_L: Not really in the search PATH, |
| 9184 | # but as the default location of the library. |
| 9185 | hardcode_minus_L=yes |
| 9186 | ;; |
| 9187 | esac |
| 9188 | fi |
| 9189 | ;; |
| 9190 | |
| 9191 | irix5* | irix6* | nonstopux*) |
| 9192 | if test "$GCC" = yes; then |
| 9193 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 9194 | # Try to use the -exported_symbol ld option, if it does not |
| 9195 | # work, assume that -exports_file does not work either and |
| 9196 | # implicitly export all symbols. |
| 9197 | save_LDFLAGS="$LDFLAGS" |
| 9198 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 9199 | cat >conftest.$ac_ext <<_ACEOF |
| 9200 | int foo(void) {} |
| 9201 | _ACEOF |
| 9202 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9203 | if { (ac_try="$ac_link" |
| 9204 | case "(($ac_try" in |
| 9205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9206 | *) ac_try_echo=$ac_try;; |
| 9207 | esac |
| 9208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9209 | (eval "$ac_link") 2>conftest.er1 |
| 9210 | ac_status=$? |
| 9211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9212 | rm -f conftest.er1 |
| 9213 | cat conftest.err >&5 |
| 9214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9215 | (exit $ac_status); } && { |
| 9216 | test -z "$ac_c_werror_flag" || |
| 9217 | test ! -s conftest.err |
| 9218 | } && test -s conftest$ac_exeext && |
| 9219 | $as_test_x conftest$ac_exeext; then |
| 9220 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 9221 | |
| 9222 | else |
| 9223 | echo "$as_me: failed program was:" >&5 |
| 9224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9225 | |
| 9226 | |
| 9227 | fi |
| 9228 | |
| 9229 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 9230 | conftest$ac_exeext conftest.$ac_ext |
| 9231 | LDFLAGS="$save_LDFLAGS" |
| 9232 | else |
| 9233 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 9234 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
| 9235 | fi |
| 9236 | archive_cmds_need_lc='no' |
| 9237 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9238 | hardcode_libdir_separator=: |
| 9239 | inherit_rpath=yes |
| 9240 | link_all_deplibs=yes |
| 9241 | ;; |
| 9242 | |
| 9243 | netbsd* | netbsdelf*-gnu) |
| 9244 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9245 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 9246 | else |
| 9247 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 9248 | fi |
| 9249 | hardcode_libdir_flag_spec='-R$libdir' |
| 9250 | hardcode_direct=yes |
| 9251 | hardcode_shlibpath_var=no |
| 9252 | ;; |
| 9253 | |
| 9254 | newsos6) |
| 9255 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9256 | hardcode_direct=yes |
| 9257 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9258 | hardcode_libdir_separator=: |
| 9259 | hardcode_shlibpath_var=no |
| 9260 | ;; |
| 9261 | |
| 9262 | *nto* | *qnx*) |
| 9263 | ;; |
| 9264 | |
| 9265 | openbsd*) |
| 9266 | if test -f /usr/libexec/ld.so; then |
| 9267 | hardcode_direct=yes |
| 9268 | hardcode_shlibpath_var=no |
| 9269 | hardcode_direct_absolute=yes |
| 9270 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9271 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9272 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9273 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9274 | export_dynamic_flag_spec='${wl}-E' |
| 9275 | else |
| 9276 | case $host_os in |
| 9277 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9278 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9279 | hardcode_libdir_flag_spec='-R$libdir' |
| 9280 | ;; |
| 9281 | *) |
| 9282 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9283 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9284 | ;; |
| 9285 | esac |
| 9286 | fi |
| 9287 | else |
| 9288 | ld_shlibs=no |
| 9289 | fi |
| 9290 | ;; |
| 9291 | |
| 9292 | os2*) |
| 9293 | hardcode_libdir_flag_spec='-L$libdir' |
| 9294 | hardcode_minus_L=yes |
| 9295 | allow_undefined_flag=unsupported |
| 9296 | 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' |
| 9297 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 9298 | ;; |
| 9299 | |
| 9300 | osf3*) |
| 9301 | if test "$GCC" = yes; then |
| 9302 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 9303 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 9304 | else |
| 9305 | allow_undefined_flag=' -expect_unresolved \*' |
| 9306 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 9307 | fi |
| 9308 | archive_cmds_need_lc='no' |
| 9309 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9310 | hardcode_libdir_separator=: |
| 9311 | ;; |
| 9312 | |
| 9313 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9314 | if test "$GCC" = yes; then |
| 9315 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 9316 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 9317 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9318 | else |
| 9319 | allow_undefined_flag=' -expect_unresolved \*' |
| 9320 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 9321 | 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~ |
| 9322 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
| 9323 | |
| 9324 | # Both c and cxx compiler support -rpath directly |
| 9325 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 9326 | fi |
| 9327 | archive_cmds_need_lc='no' |
| 9328 | hardcode_libdir_separator=: |
| 9329 | ;; |
| 9330 | |
| 9331 | solaris*) |
| 9332 | no_undefined_flag=' -z defs' |
| 9333 | if test "$GCC" = yes; then |
| 9334 | wlarc='${wl}' |
| 9335 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9336 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9337 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9338 | else |
| 9339 | case `$CC -V 2>&1` in |
| 9340 | *"Compilers 5.0"*) |
| 9341 | wlarc='' |
| 9342 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9343 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9344 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 9345 | ;; |
| 9346 | *) |
| 9347 | wlarc='${wl}' |
| 9348 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9349 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9350 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9351 | ;; |
| 9352 | esac |
| 9353 | fi |
| 9354 | hardcode_libdir_flag_spec='-R$libdir' |
| 9355 | hardcode_shlibpath_var=no |
| 9356 | case $host_os in |
| 9357 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 9358 | *) |
| 9359 | # The compiler driver will combine and reorder linker options, |
| 9360 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 9361 | # but is careful enough not to reorder. |
| 9362 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9363 | if test "$GCC" = yes; then |
| 9364 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9365 | else |
| 9366 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 9367 | fi |
| 9368 | ;; |
| 9369 | esac |
| 9370 | link_all_deplibs=yes |
| 9371 | ;; |
| 9372 | |
| 9373 | sunos4*) |
| 9374 | if test "x$host_vendor" = xsequent; then |
| 9375 | # Use $CC to link under sequent, because it throws in some extra .o |
| 9376 | # files that make .init and .fini sections work. |
| 9377 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9378 | else |
| 9379 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9380 | fi |
| 9381 | hardcode_libdir_flag_spec='-L$libdir' |
| 9382 | hardcode_direct=yes |
| 9383 | hardcode_minus_L=yes |
| 9384 | hardcode_shlibpath_var=no |
| 9385 | ;; |
| 9386 | |
| 9387 | sysv4) |
| 9388 | case $host_vendor in |
| 9389 | sni) |
| 9390 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9391 | hardcode_direct=yes # is this really true??? |
| 9392 | ;; |
| 9393 | siemens) |
| 9394 | ## LD is ld it makes a PLAMLIB |
| 9395 | ## CC just makes a GrossModule. |
| 9396 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9397 | reload_cmds='$CC -r -o $output$reload_objs' |
| 9398 | hardcode_direct=no |
| 9399 | ;; |
| 9400 | motorola) |
| 9401 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9402 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9403 | ;; |
| 9404 | esac |
| 9405 | runpath_var='LD_RUN_PATH' |
| 9406 | hardcode_shlibpath_var=no |
| 9407 | ;; |
| 9408 | |
| 9409 | sysv4.3*) |
| 9410 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9411 | hardcode_shlibpath_var=no |
| 9412 | export_dynamic_flag_spec='-Bexport' |
| 9413 | ;; |
| 9414 | |
| 9415 | sysv4*MP*) |
| 9416 | if test -d /usr/nec; then |
| 9417 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9418 | hardcode_shlibpath_var=no |
| 9419 | runpath_var=LD_RUN_PATH |
| 9420 | hardcode_runpath_var=yes |
| 9421 | ld_shlibs=yes |
| 9422 | fi |
| 9423 | ;; |
| 9424 | |
| 9425 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 9426 | no_undefined_flag='${wl}-z,text' |
| 9427 | archive_cmds_need_lc=no |
| 9428 | hardcode_shlibpath_var=no |
| 9429 | runpath_var='LD_RUN_PATH' |
| 9430 | |
| 9431 | if test "$GCC" = yes; then |
| 9432 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9433 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9434 | else |
| 9435 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9436 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9437 | fi |
| 9438 | ;; |
| 9439 | |
| 9440 | sysv5* | sco3.2v5* | sco5v6*) |
| 9441 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 9442 | # link with -lc, and that would cause any symbols used from libc to |
| 9443 | # always be unresolved, which means just about no library would |
| 9444 | # ever link correctly. If we're not using GNU ld we use -z text |
| 9445 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 9446 | # as -z defs. |
| 9447 | no_undefined_flag='${wl}-z,text' |
| 9448 | allow_undefined_flag='${wl}-z,nodefs' |
| 9449 | archive_cmds_need_lc=no |
| 9450 | hardcode_shlibpath_var=no |
| 9451 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 9452 | hardcode_libdir_separator=':' |
| 9453 | link_all_deplibs=yes |
| 9454 | export_dynamic_flag_spec='${wl}-Bexport' |
| 9455 | runpath_var='LD_RUN_PATH' |
| 9456 | |
| 9457 | if test "$GCC" = yes; then |
| 9458 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9459 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9460 | else |
| 9461 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9462 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9463 | fi |
| 9464 | ;; |
| 9465 | |
| 9466 | uts4*) |
| 9467 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9468 | hardcode_libdir_flag_spec='-L$libdir' |
| 9469 | hardcode_shlibpath_var=no |
| 9470 | ;; |
| 9471 | |
| 9472 | *) |
| 9473 | ld_shlibs=no |
| 9474 | ;; |
| 9475 | esac |
| 9476 | |
| 9477 | if test x$host_vendor = xsni; then |
| 9478 | case $host in |
| 9479 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9480 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9481 | ;; |
| 9482 | esac |
| 9483 | fi |
| 9484 | fi |
| 9485 | |
| 9486 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 9487 | echo "${ECHO_T}$ld_shlibs" >&6; } |
| 9488 | test "$ld_shlibs" = no && can_build_shared=no |
| 9489 | |
| 9490 | with_gnu_ld=$with_gnu_ld |
| 9491 | |
| 9492 | |
| 9493 | |
| 9494 | |
| 9495 | |
| 9496 | |
| 9497 | |
| 9498 | |
| 9499 | |
| 9500 | |
| 9501 | |
| 9502 | |
| 9503 | |
| 9504 | |
| 9505 | |
| 9506 | # |
| 9507 | # Do we need to explicitly link libc? |
| 9508 | # |
| 9509 | case "x$archive_cmds_need_lc" in |
| 9510 | x|xyes) |
| 9511 | # Assume -lc should be added |
| 9512 | archive_cmds_need_lc=yes |
| 9513 | |
| 9514 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9515 | case $archive_cmds in |
| 9516 | *'~'*) |
| 9517 | # FIXME: we may have to deal with multi-command sequences. |
| 9518 | ;; |
| 9519 | '$CC '*) |
| 9520 | # Test whether the compiler implicitly links with -lc since on some |
| 9521 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9522 | # to ld, don't add -lc before -lgcc. |
| 9523 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 9524 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
| 9525 | $RM conftest* |
| 9526 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9527 | |
| 9528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9529 | (eval $ac_compile) 2>&5 |
| 9530 | ac_status=$? |
| 9531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9532 | (exit $ac_status); } 2>conftest.err; then |
| 9533 | soname=conftest |
| 9534 | lib=conftest |
| 9535 | libobjs=conftest.$ac_objext |
| 9536 | deplibs= |
| 9537 | wl=$lt_prog_compiler_wl |
| 9538 | pic_flag=$lt_prog_compiler_pic |
| 9539 | compiler_flags=-v |
| 9540 | linker_flags=-v |
| 9541 | verstring= |
| 9542 | output_objdir=. |
| 9543 | libname=conftest |
| 9544 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9545 | allow_undefined_flag= |
| 9546 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 9547 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 9548 | ac_status=$? |
| 9549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9550 | (exit $ac_status); } |
| 9551 | then |
| 9552 | archive_cmds_need_lc=no |
| 9553 | else |
| 9554 | archive_cmds_need_lc=yes |
| 9555 | fi |
| 9556 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9557 | else |
| 9558 | cat conftest.err 1>&5 |
| 9559 | fi |
| 9560 | $RM conftest* |
| 9561 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 9562 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
| 9563 | ;; |
| 9564 | esac |
| 9565 | fi |
| 9566 | ;; |
| 9567 | esac |
| 9568 | |
| 9569 | |
| 9570 | |
| 9571 | |
| 9572 | |
| 9573 | |
| 9574 | |
| 9575 | |
| 9576 | |
| 9577 | |
| 9578 | |
| 9579 | |
| 9580 | |
| 9581 | |
| 9582 | |
| 9583 | |
| 9584 | |
| 9585 | |
| 9586 | |
| 9587 | |
| 9588 | |
| 9589 | |
| 9590 | |
| 9591 | |
| 9592 | |
| 9593 | |
| 9594 | |
| 9595 | |
| 9596 | |
| 9597 | |
| 9598 | |
| 9599 | |
| 9600 | |
| 9601 | |
| 9602 | |
| 9603 | |
| 9604 | |
| 9605 | |
| 9606 | |
| 9607 | |
| 9608 | |
| 9609 | |
| 9610 | |
| 9611 | |
| 9612 | |
| 9613 | |
| 9614 | |
| 9615 | |
| 9616 | |
| 9617 | |
| 9618 | |
| 9619 | |
| 9620 | |
| 9621 | |
| 9622 | |
| 9623 | |
| 9624 | |
| 9625 | |
| 9626 | |
| 9627 | |
| 9628 | |
| 9629 | |
| 9630 | |
| 9631 | |
| 9632 | |
| 9633 | |
| 9634 | |
| 9635 | |
| 9636 | |
| 9637 | |
| 9638 | |
| 9639 | |
| 9640 | |
| 9641 | |
| 9642 | |
| 9643 | |
| 9644 | |
| 9645 | |
| 9646 | |
| 9647 | |
| 9648 | |
| 9649 | |
| 9650 | |
| 9651 | |
| 9652 | |
| 9653 | |
| 9654 | |
| 9655 | |
| 9656 | |
| 9657 | |
| 9658 | |
| 9659 | |
| 9660 | |
| 9661 | |
| 9662 | |
| 9663 | |
| 9664 | |
| 9665 | |
| 9666 | |
| 9667 | |
| 9668 | |
| 9669 | |
| 9670 | |
| 9671 | |
| 9672 | |
| 9673 | |
| 9674 | |
| 9675 | |
| 9676 | |
| 9677 | |
| 9678 | |
| 9679 | |
| 9680 | |
| 9681 | |
| 9682 | |
| 9683 | |
| 9684 | |
| 9685 | |
| 9686 | |
| 9687 | |
| 9688 | |
| 9689 | |
| 9690 | |
| 9691 | |
| 9692 | |
| 9693 | |
| 9694 | |
| 9695 | |
| 9696 | |
| 9697 | |
| 9698 | |
| 9699 | |
| 9700 | |
| 9701 | |
| 9702 | |
| 9703 | |
| 9704 | |
| 9705 | |
| 9706 | |
| 9707 | |
| 9708 | |
| 9709 | |
| 9710 | |
| 9711 | |
| 9712 | |
| 9713 | |
| 9714 | |
| 9715 | |
| 9716 | |
| 9717 | |
| 9718 | |
| 9719 | |
| 9720 | |
| 9721 | |
| 9722 | |
| 9723 | |
| 9724 | |
| 9725 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9726 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
| 9727 | |
| 9728 | if test "$GCC" = yes; then |
| 9729 | case $host_os in |
| 9730 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 9731 | *) lt_awk_arg="/^libraries:/" ;; |
| 9732 | esac |
| 9733 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9734 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
| 9735 | # if the path contains ";" then we assume it to be the separator |
| 9736 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9737 | # assumed that no part of a normal pathname contains ";" but that should |
| 9738 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9739 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 9740 | else |
| 9741 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9742 | fi |
| 9743 | # Ok, now we have the path, separated by spaces, we can step through it |
| 9744 | # and add multilib dir if necessary. |
| 9745 | lt_tmp_lt_search_path_spec= |
| 9746 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 9747 | for lt_sys_path in $lt_search_path_spec; do |
| 9748 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 9749 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 9750 | else |
| 9751 | test -d "$lt_sys_path" && \ |
| 9752 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 9753 | fi |
| 9754 | done |
| 9755 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
| 9756 | BEGIN {RS=" "; FS="/|\n";} { |
| 9757 | lt_foo=""; |
| 9758 | lt_count=0; |
| 9759 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 9760 | if ($lt_i != "" && $lt_i != ".") { |
| 9761 | if ($lt_i == "..") { |
| 9762 | lt_count++; |
| 9763 | } else { |
| 9764 | if (lt_count == 0) { |
| 9765 | lt_foo="/" $lt_i lt_foo; |
| 9766 | } else { |
| 9767 | lt_count--; |
| 9768 | } |
| 9769 | } |
| 9770 | } |
| 9771 | } |
| 9772 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 9773 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 9774 | }'` |
| 9775 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
| 9776 | else |
| 9777 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9778 | fi |
| 9779 | library_names_spec= |
| 9780 | libname_spec='lib$name' |
| 9781 | soname_spec= |
| 9782 | shrext_cmds=".so" |
| 9783 | postinstall_cmds= |
| 9784 | postuninstall_cmds= |
| 9785 | finish_cmds= |
| 9786 | finish_eval= |
| 9787 | shlibpath_var= |
| 9788 | shlibpath_overrides_runpath=unknown |
| 9789 | version_type=none |
| 9790 | dynamic_linker="$host_os ld.so" |
| 9791 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9792 | need_lib_prefix=unknown |
| 9793 | hardcode_into_libs=no |
| 9794 | |
| 9795 | # when you set need_version to no, make sure it does not cause -set_version |
| 9796 | # flags to be left without arguments |
| 9797 | need_version=unknown |
| 9798 | |
| 9799 | case $host_os in |
| 9800 | aix3*) |
| 9801 | version_type=linux |
| 9802 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9803 | shlibpath_var=LIBPATH |
| 9804 | |
| 9805 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9806 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9807 | ;; |
| 9808 | |
| 9809 | aix[4-9]*) |
| 9810 | version_type=linux |
| 9811 | need_lib_prefix=no |
| 9812 | need_version=no |
| 9813 | hardcode_into_libs=yes |
| 9814 | if test "$host_cpu" = ia64; then |
| 9815 | # AIX 5 supports IA64 |
| 9816 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9817 | shlibpath_var=LD_LIBRARY_PATH |
| 9818 | else |
| 9819 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9820 | # for dependence libraries. The import file would start with |
| 9821 | # the line `#! .'. This would cause the generated library to |
| 9822 | # depend on `.', always an invalid library. This was fixed in |
| 9823 | # development snapshots of GCC prior to 3.0. |
| 9824 | case $host_os in |
| 9825 | aix4 | aix4.[01] | aix4.[01].*) |
| 9826 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9827 | echo ' yes ' |
| 9828 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 9829 | : |
| 9830 | else |
| 9831 | can_build_shared=no |
| 9832 | fi |
| 9833 | ;; |
| 9834 | esac |
| 9835 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9836 | # soname into executable. Probably we can add versioning support to |
| 9837 | # collect2, so additional links can be useful in future. |
| 9838 | if test "$aix_use_runtimelinking" = yes; then |
| 9839 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9840 | # instead of lib<name>.a to let people know that these are not |
| 9841 | # typical AIX shared libraries. |
| 9842 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9843 | else |
| 9844 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9845 | # and later when we are not doing run time linking. |
| 9846 | library_names_spec='${libname}${release}.a $libname.a' |
| 9847 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9848 | fi |
| 9849 | shlibpath_var=LIBPATH |
| 9850 | fi |
| 9851 | ;; |
| 9852 | |
| 9853 | amigaos*) |
| 9854 | case $host_cpu in |
| 9855 | powerpc) |
| 9856 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 9857 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 9858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9859 | ;; |
| 9860 | m68k) |
| 9861 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9862 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9863 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' |
| 9864 | ;; |
| 9865 | esac |
| 9866 | ;; |
| 9867 | |
| 9868 | beos*) |
| 9869 | library_names_spec='${libname}${shared_ext}' |
| 9870 | dynamic_linker="$host_os ld.so" |
| 9871 | shlibpath_var=LIBRARY_PATH |
| 9872 | ;; |
| 9873 | |
| 9874 | bsdi[45]*) |
| 9875 | version_type=linux |
| 9876 | need_version=no |
| 9877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9878 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9879 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9880 | shlibpath_var=LD_LIBRARY_PATH |
| 9881 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9882 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9883 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9884 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9885 | # libtool to hard-code these into programs |
| 9886 | ;; |
| 9887 | |
| 9888 | cygwin* | mingw* | pw32* | cegcc*) |
| 9889 | version_type=windows |
| 9890 | shrext_cmds=".dll" |
| 9891 | need_version=no |
| 9892 | need_lib_prefix=no |
| 9893 | |
| 9894 | case $GCC,$host_os in |
| 9895 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
| 9896 | library_names_spec='$libname.dll.a' |
| 9897 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9898 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9899 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 9900 | dldir=$destdir/`dirname \$dlpath`~ |
| 9901 | test -d \$dldir || mkdir -p \$dldir~ |
| 9902 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9903 | chmod a+x \$dldir/$dlname~ |
| 9904 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 9905 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 9906 | fi' |
| 9907 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9908 | dlpath=$dir/\$dldll~ |
| 9909 | $RM \$dlpath' |
| 9910 | shlibpath_overrides_runpath=yes |
| 9911 | |
| 9912 | case $host_os in |
| 9913 | cygwin*) |
| 9914 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9915 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9916 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9917 | ;; |
| 9918 | mingw* | cegcc*) |
| 9919 | # MinGW DLLs use traditional 'lib' prefix |
| 9920 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9921 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9922 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 9923 | # It is most probably a Windows format PATH printed by |
| 9924 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9925 | # path with ; separators, and with drive letters. We can handle the |
| 9926 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9927 | # especially as we might pass files found there to a mingw objdump, |
| 9928 | # which wouldn't understand a cygwinified path. Ahh. |
| 9929 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9930 | else |
| 9931 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9932 | fi |
| 9933 | ;; |
| 9934 | pw32*) |
| 9935 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 9936 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9937 | ;; |
| 9938 | esac |
| 9939 | ;; |
| 9940 | |
| 9941 | *) |
| 9942 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9943 | ;; |
| 9944 | esac |
| 9945 | dynamic_linker='Win32 ld.exe' |
| 9946 | # FIXME: first we should search . and the directory the executable is in |
| 9947 | shlibpath_var=PATH |
| 9948 | ;; |
| 9949 | |
| 9950 | darwin* | rhapsody*) |
| 9951 | dynamic_linker="$host_os dyld" |
| 9952 | version_type=darwin |
| 9953 | need_lib_prefix=no |
| 9954 | need_version=no |
| 9955 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9956 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9957 | shlibpath_overrides_runpath=yes |
| 9958 | shlibpath_var=DYLD_LIBRARY_PATH |
| 9959 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 9960 | |
| 9961 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 9962 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9963 | ;; |
| 9964 | |
| 9965 | dgux*) |
| 9966 | version_type=linux |
| 9967 | need_lib_prefix=no |
| 9968 | need_version=no |
| 9969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9970 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9971 | shlibpath_var=LD_LIBRARY_PATH |
| 9972 | ;; |
| 9973 | |
| 9974 | freebsd1*) |
| 9975 | dynamic_linker=no |
| 9976 | ;; |
| 9977 | |
| 9978 | freebsd* | dragonfly*) |
| 9979 | # DragonFly does not have aout. When/if they implement a new |
| 9980 | # versioning mechanism, adjust this. |
| 9981 | if test -x /usr/bin/objformat; then |
| 9982 | objformat=`/usr/bin/objformat` |
| 9983 | else |
| 9984 | case $host_os in |
| 9985 | freebsd[123]*) objformat=aout ;; |
| 9986 | *) objformat=elf ;; |
| 9987 | esac |
| 9988 | fi |
| 9989 | version_type=freebsd-$objformat |
| 9990 | case $version_type in |
| 9991 | freebsd-elf*) |
| 9992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9993 | need_version=no |
| 9994 | need_lib_prefix=no |
| 9995 | ;; |
| 9996 | freebsd-*) |
| 9997 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9998 | need_version=yes |
| 9999 | ;; |
| 10000 | esac |
| 10001 | shlibpath_var=LD_LIBRARY_PATH |
| 10002 | case $host_os in |
| 10003 | freebsd2*) |
| 10004 | shlibpath_overrides_runpath=yes |
| 10005 | ;; |
| 10006 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 10007 | shlibpath_overrides_runpath=yes |
| 10008 | hardcode_into_libs=yes |
| 10009 | ;; |
| 10010 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10011 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 10012 | shlibpath_overrides_runpath=no |
| 10013 | hardcode_into_libs=yes |
| 10014 | ;; |
| 10015 | *) # from 4.6 on, and DragonFly |
| 10016 | shlibpath_overrides_runpath=yes |
| 10017 | hardcode_into_libs=yes |
| 10018 | ;; |
| 10019 | esac |
| 10020 | ;; |
| 10021 | |
| 10022 | gnu*) |
| 10023 | version_type=linux |
| 10024 | need_lib_prefix=no |
| 10025 | need_version=no |
| 10026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10027 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10028 | shlibpath_var=LD_LIBRARY_PATH |
| 10029 | hardcode_into_libs=yes |
| 10030 | ;; |
| 10031 | |
| 10032 | hpux9* | hpux10* | hpux11*) |
| 10033 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10034 | # link against other versions. |
| 10035 | version_type=sunos |
| 10036 | need_lib_prefix=no |
| 10037 | need_version=no |
| 10038 | case $host_cpu in |
| 10039 | ia64*) |
| 10040 | shrext_cmds='.so' |
| 10041 | hardcode_into_libs=yes |
| 10042 | dynamic_linker="$host_os dld.so" |
| 10043 | shlibpath_var=LD_LIBRARY_PATH |
| 10044 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10046 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10047 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10048 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10049 | else |
| 10050 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10051 | fi |
| 10052 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10053 | ;; |
| 10054 | hppa*64*) |
| 10055 | shrext_cmds='.sl' |
| 10056 | hardcode_into_libs=yes |
| 10057 | dynamic_linker="$host_os dld.sl" |
| 10058 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10059 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10061 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10062 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10063 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10064 | ;; |
| 10065 | *) |
| 10066 | shrext_cmds='.sl' |
| 10067 | dynamic_linker="$host_os dld.sl" |
| 10068 | shlibpath_var=SHLIB_PATH |
| 10069 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10071 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10072 | ;; |
| 10073 | esac |
| 10074 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10075 | postinstall_cmds='chmod 555 $lib' |
| 10076 | ;; |
| 10077 | |
| 10078 | interix[3-9]*) |
| 10079 | version_type=linux |
| 10080 | need_lib_prefix=no |
| 10081 | need_version=no |
| 10082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10083 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10084 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10085 | shlibpath_var=LD_LIBRARY_PATH |
| 10086 | shlibpath_overrides_runpath=no |
| 10087 | hardcode_into_libs=yes |
| 10088 | ;; |
| 10089 | |
| 10090 | irix5* | irix6* | nonstopux*) |
| 10091 | case $host_os in |
| 10092 | nonstopux*) version_type=nonstopux ;; |
| 10093 | *) |
| 10094 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10095 | version_type=linux |
| 10096 | else |
| 10097 | version_type=irix |
| 10098 | fi ;; |
| 10099 | esac |
| 10100 | need_lib_prefix=no |
| 10101 | need_version=no |
| 10102 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10103 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10104 | case $host_os in |
| 10105 | irix5* | nonstopux*) |
| 10106 | libsuff= shlibsuff= |
| 10107 | ;; |
| 10108 | *) |
| 10109 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10110 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10111 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10112 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10113 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10114 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10115 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10116 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10117 | esac |
| 10118 | ;; |
| 10119 | esac |
| 10120 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10121 | shlibpath_overrides_runpath=no |
| 10122 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10123 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10124 | hardcode_into_libs=yes |
| 10125 | ;; |
| 10126 | |
| 10127 | # No shared lib support for Linux oldld, aout, or coff. |
| 10128 | linux*oldld* | linux*aout* | linux*coff*) |
| 10129 | dynamic_linker=no |
| 10130 | ;; |
| 10131 | |
| 10132 | # This must be Linux ELF. |
| 10133 | linux* | k*bsd*-gnu) |
| 10134 | version_type=linux |
| 10135 | need_lib_prefix=no |
| 10136 | need_version=no |
| 10137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10138 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10139 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10140 | shlibpath_var=LD_LIBRARY_PATH |
| 10141 | shlibpath_overrides_runpath=no |
| 10142 | # Some binutils ld are patched to set DT_RUNPATH |
| 10143 | save_LDFLAGS=$LDFLAGS |
| 10144 | save_libdir=$libdir |
| 10145 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 10146 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 10147 | cat >conftest.$ac_ext <<_ACEOF |
| 10148 | /* confdefs.h. */ |
| 10149 | _ACEOF |
| 10150 | cat confdefs.h >>conftest.$ac_ext |
| 10151 | cat >>conftest.$ac_ext <<_ACEOF |
| 10152 | /* end confdefs.h. */ |
| 10153 | |
| 10154 | int |
| 10155 | main () |
| 10156 | { |
| 10157 | |
| 10158 | ; |
| 10159 | return 0; |
| 10160 | } |
| 10161 | _ACEOF |
| 10162 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10163 | if { (ac_try="$ac_link" |
| 10164 | case "(($ac_try" in |
| 10165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10166 | *) ac_try_echo=$ac_try;; |
| 10167 | esac |
| 10168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10169 | (eval "$ac_link") 2>conftest.er1 |
| 10170 | ac_status=$? |
| 10171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10172 | rm -f conftest.er1 |
| 10173 | cat conftest.err >&5 |
| 10174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10175 | (exit $ac_status); } && { |
| 10176 | test -z "$ac_c_werror_flag" || |
| 10177 | test ! -s conftest.err |
| 10178 | } && test -s conftest$ac_exeext && |
| 10179 | $as_test_x conftest$ac_exeext; then |
| 10180 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
| 10181 | shlibpath_overrides_runpath=yes |
| 10182 | fi |
| 10183 | |
| 10184 | else |
| 10185 | echo "$as_me: failed program was:" >&5 |
| 10186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10187 | |
| 10188 | |
| 10189 | fi |
| 10190 | |
| 10191 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10192 | conftest$ac_exeext conftest.$ac_ext |
| 10193 | LDFLAGS=$save_LDFLAGS |
| 10194 | libdir=$save_libdir |
| 10195 | |
| 10196 | # This implies no fast_install, which is unacceptable. |
| 10197 | # Some rework will be needed to allow for fast_install |
| 10198 | # before this can be enabled. |
| 10199 | hardcode_into_libs=yes |
| 10200 | |
| 10201 | # Append ld.so.conf contents to the search path |
| 10202 | if test -f /etc/ld.so.conf; then |
| 10203 | 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;/^$/d' | tr '\n' ' '` |
| 10204 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10205 | fi |
| 10206 | |
| 10207 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10208 | # powerpc, because MkLinux only supported shared libraries with the |
| 10209 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10210 | # most powerpc-linux boxes support dynamic linking these days and |
| 10211 | # people can always --disable-shared, the test was removed, and we |
| 10212 | # assume the GNU/Linux dynamic linker is in use. |
| 10213 | dynamic_linker='GNU/Linux ld.so' |
| 10214 | ;; |
| 10215 | |
| 10216 | netbsdelf*-gnu) |
| 10217 | version_type=linux |
| 10218 | need_lib_prefix=no |
| 10219 | need_version=no |
| 10220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10221 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10222 | shlibpath_var=LD_LIBRARY_PATH |
| 10223 | shlibpath_overrides_runpath=no |
| 10224 | hardcode_into_libs=yes |
| 10225 | dynamic_linker='NetBSD ld.elf_so' |
| 10226 | ;; |
| 10227 | |
| 10228 | netbsd*) |
| 10229 | version_type=sunos |
| 10230 | need_lib_prefix=no |
| 10231 | need_version=no |
| 10232 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10234 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10235 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10236 | else |
| 10237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10238 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10239 | dynamic_linker='NetBSD ld.elf_so' |
| 10240 | fi |
| 10241 | shlibpath_var=LD_LIBRARY_PATH |
| 10242 | shlibpath_overrides_runpath=yes |
| 10243 | hardcode_into_libs=yes |
| 10244 | ;; |
| 10245 | |
| 10246 | newsos6) |
| 10247 | version_type=linux |
| 10248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10249 | shlibpath_var=LD_LIBRARY_PATH |
| 10250 | shlibpath_overrides_runpath=yes |
| 10251 | ;; |
| 10252 | |
| 10253 | *nto* | *qnx*) |
| 10254 | version_type=qnx |
| 10255 | need_lib_prefix=no |
| 10256 | need_version=no |
| 10257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10258 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10259 | shlibpath_var=LD_LIBRARY_PATH |
| 10260 | shlibpath_overrides_runpath=no |
| 10261 | hardcode_into_libs=yes |
| 10262 | dynamic_linker='ldqnx.so' |
| 10263 | ;; |
| 10264 | |
| 10265 | openbsd*) |
| 10266 | version_type=sunos |
| 10267 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 10268 | need_lib_prefix=no |
| 10269 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10270 | case $host_os in |
| 10271 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10272 | *) need_version=no ;; |
| 10273 | esac |
| 10274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10275 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10276 | shlibpath_var=LD_LIBRARY_PATH |
| 10277 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10278 | case $host_os in |
| 10279 | openbsd2.[89] | openbsd2.[89].*) |
| 10280 | shlibpath_overrides_runpath=no |
| 10281 | ;; |
| 10282 | *) |
| 10283 | shlibpath_overrides_runpath=yes |
| 10284 | ;; |
| 10285 | esac |
| 10286 | else |
| 10287 | shlibpath_overrides_runpath=yes |
| 10288 | fi |
| 10289 | ;; |
| 10290 | |
| 10291 | os2*) |
| 10292 | libname_spec='$name' |
| 10293 | shrext_cmds=".dll" |
| 10294 | need_lib_prefix=no |
| 10295 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10296 | dynamic_linker='OS/2 ld.exe' |
| 10297 | shlibpath_var=LIBPATH |
| 10298 | ;; |
| 10299 | |
| 10300 | osf3* | osf4* | osf5*) |
| 10301 | version_type=osf |
| 10302 | need_lib_prefix=no |
| 10303 | need_version=no |
| 10304 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10306 | shlibpath_var=LD_LIBRARY_PATH |
| 10307 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10308 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10309 | ;; |
| 10310 | |
| 10311 | rdos*) |
| 10312 | dynamic_linker=no |
| 10313 | ;; |
| 10314 | |
| 10315 | solaris*) |
| 10316 | version_type=linux |
| 10317 | need_lib_prefix=no |
| 10318 | need_version=no |
| 10319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10320 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10321 | shlibpath_var=LD_LIBRARY_PATH |
| 10322 | shlibpath_overrides_runpath=yes |
| 10323 | hardcode_into_libs=yes |
| 10324 | # ldd complains unless libraries are executable |
| 10325 | postinstall_cmds='chmod +x $lib' |
| 10326 | ;; |
| 10327 | |
| 10328 | sunos4*) |
| 10329 | version_type=sunos |
| 10330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10331 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10332 | shlibpath_var=LD_LIBRARY_PATH |
| 10333 | shlibpath_overrides_runpath=yes |
| 10334 | if test "$with_gnu_ld" = yes; then |
| 10335 | need_lib_prefix=no |
| 10336 | fi |
| 10337 | need_version=yes |
| 10338 | ;; |
| 10339 | |
| 10340 | sysv4 | sysv4.3*) |
| 10341 | version_type=linux |
| 10342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10343 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10344 | shlibpath_var=LD_LIBRARY_PATH |
| 10345 | case $host_vendor in |
| 10346 | sni) |
| 10347 | shlibpath_overrides_runpath=no |
| 10348 | need_lib_prefix=no |
| 10349 | runpath_var=LD_RUN_PATH |
| 10350 | ;; |
| 10351 | siemens) |
| 10352 | need_lib_prefix=no |
| 10353 | ;; |
| 10354 | motorola) |
| 10355 | need_lib_prefix=no |
| 10356 | need_version=no |
| 10357 | shlibpath_overrides_runpath=no |
| 10358 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10359 | ;; |
| 10360 | esac |
| 10361 | ;; |
| 10362 | |
| 10363 | sysv4*MP*) |
| 10364 | if test -d /usr/nec ;then |
| 10365 | version_type=linux |
| 10366 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10367 | soname_spec='$libname${shared_ext}.$major' |
| 10368 | shlibpath_var=LD_LIBRARY_PATH |
| 10369 | fi |
| 10370 | ;; |
| 10371 | |
| 10372 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10373 | version_type=freebsd-elf |
| 10374 | need_lib_prefix=no |
| 10375 | need_version=no |
| 10376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10377 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10378 | shlibpath_var=LD_LIBRARY_PATH |
| 10379 | shlibpath_overrides_runpath=yes |
| 10380 | hardcode_into_libs=yes |
| 10381 | if test "$with_gnu_ld" = yes; then |
| 10382 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 10383 | else |
| 10384 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10385 | case $host_os in |
| 10386 | sco3.2v5*) |
| 10387 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10388 | ;; |
| 10389 | esac |
| 10390 | fi |
| 10391 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10392 | ;; |
| 10393 | |
| 10394 | tpf*) |
| 10395 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 10396 | version_type=linux |
| 10397 | need_lib_prefix=no |
| 10398 | need_version=no |
| 10399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10400 | shlibpath_var=LD_LIBRARY_PATH |
| 10401 | shlibpath_overrides_runpath=no |
| 10402 | hardcode_into_libs=yes |
| 10403 | ;; |
| 10404 | |
| 10405 | uts4*) |
| 10406 | version_type=linux |
| 10407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10408 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10409 | shlibpath_var=LD_LIBRARY_PATH |
| 10410 | ;; |
| 10411 | |
| 10412 | *) |
| 10413 | dynamic_linker=no |
| 10414 | ;; |
| 10415 | esac |
| 10416 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 10417 | echo "${ECHO_T}$dynamic_linker" >&6; } |
| 10418 | test "$dynamic_linker" = no && can_build_shared=no |
| 10419 | |
| 10420 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10421 | if test "$GCC" = yes; then |
| 10422 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10423 | fi |
| 10424 | |
| 10425 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 10426 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 10427 | fi |
| 10428 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 10429 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 10430 | fi |
| 10431 | |
| 10432 | |
| 10433 | |
| 10434 | |
| 10435 | |
| 10436 | |
| 10437 | |
| 10438 | |
| 10439 | |
| 10440 | |
| 10441 | |
| 10442 | |
| 10443 | |
| 10444 | |
| 10445 | |
| 10446 | |
| 10447 | |
| 10448 | |
| 10449 | |
| 10450 | |
| 10451 | |
| 10452 | |
| 10453 | |
| 10454 | |
| 10455 | |
| 10456 | |
| 10457 | |
| 10458 | |
| 10459 | |
| 10460 | |
| 10461 | |
| 10462 | |
| 10463 | |
| 10464 | |
| 10465 | |
| 10466 | |
| 10467 | |
| 10468 | |
| 10469 | |
| 10470 | |
| 10471 | |
| 10472 | |
| 10473 | |
| 10474 | |
| 10475 | |
| 10476 | |
| 10477 | |
| 10478 | |
| 10479 | |
| 10480 | |
| 10481 | |
| 10482 | |
| 10483 | |
| 10484 | |
| 10485 | |
| 10486 | |
| 10487 | |
| 10488 | |
| 10489 | |
| 10490 | |
| 10491 | |
| 10492 | |
| 10493 | |
| 10494 | |
| 10495 | |
| 10496 | |
| 10497 | |
| 10498 | |
| 10499 | |
| 10500 | |
| 10501 | |
| 10502 | |
| 10503 | |
| 10504 | |
| 10505 | |
| 10506 | |
| 10507 | |
| 10508 | |
| 10509 | |
| 10510 | |
| 10511 | |
| 10512 | |
| 10513 | |
| 10514 | |
| 10515 | |
| 10516 | |
| 10517 | |
| 10518 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 10519 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
| 10520 | hardcode_action= |
| 10521 | if test -n "$hardcode_libdir_flag_spec" || |
| 10522 | test -n "$runpath_var" || |
| 10523 | test "X$hardcode_automatic" = "Xyes" ; then |
| 10524 | |
| 10525 | # We can hardcode non-existent directories. |
| 10526 | if test "$hardcode_direct" != no && |
| 10527 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10528 | # have to relink, otherwise we might link with an installed library |
| 10529 | # when we should be linking with a yet-to-be-installed one |
| 10530 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 10531 | test "$hardcode_minus_L" != no; then |
| 10532 | # Linking always hardcodes the temporary library directory. |
| 10533 | hardcode_action=relink |
| 10534 | else |
| 10535 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10536 | hardcode_action=immediate |
| 10537 | fi |
| 10538 | else |
| 10539 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10540 | # directories. |
| 10541 | hardcode_action=unsupported |
| 10542 | fi |
| 10543 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 10544 | echo "${ECHO_T}$hardcode_action" >&6; } |
| 10545 | |
| 10546 | if test "$hardcode_action" = relink || |
| 10547 | test "$inherit_rpath" = yes; then |
| 10548 | # Fast installation is not supported |
| 10549 | enable_fast_install=no |
| 10550 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10551 | test "$enable_shared" = no; then |
| 10552 | # Fast installation is not necessary |
| 10553 | enable_fast_install=needless |
| 10554 | fi |
| 10555 | |
| 10556 | |
| 10557 | |
| 10558 | |
| 10559 | |
| 10560 | |
| 10561 | if test "x$enable_dlopen" != xyes; then |
| 10562 | enable_dlopen=unknown |
| 10563 | enable_dlopen_self=unknown |
| 10564 | enable_dlopen_self_static=unknown |
| 10565 | else |
| 10566 | lt_cv_dlopen=no |
| 10567 | lt_cv_dlopen_libs= |
| 10568 | |
| 10569 | case $host_os in |
| 10570 | beos*) |
| 10571 | lt_cv_dlopen="load_add_on" |
| 10572 | lt_cv_dlopen_libs= |
| 10573 | lt_cv_dlopen_self=yes |
| 10574 | ;; |
| 10575 | |
| 10576 | mingw* | pw32* | cegcc*) |
| 10577 | lt_cv_dlopen="LoadLibrary" |
| 10578 | lt_cv_dlopen_libs= |
| 10579 | ;; |
| 10580 | |
| 10581 | cygwin*) |
| 10582 | lt_cv_dlopen="dlopen" |
| 10583 | lt_cv_dlopen_libs= |
| 10584 | ;; |
| 10585 | |
| 10586 | darwin*) |
| 10587 | # if libdl is installed we need to link against it |
| 10588 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10589 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10590 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10592 | else |
| 10593 | ac_check_lib_save_LIBS=$LIBS |
| 10594 | LIBS="-ldl $LIBS" |
| 10595 | cat >conftest.$ac_ext <<_ACEOF |
| 10596 | /* confdefs.h. */ |
| 10597 | _ACEOF |
| 10598 | cat confdefs.h >>conftest.$ac_ext |
| 10599 | cat >>conftest.$ac_ext <<_ACEOF |
| 10600 | /* end confdefs.h. */ |
| 10601 | |
| 10602 | /* Override any GCC internal prototype to avoid an error. |
| 10603 | Use char because int might match the return type of a GCC |
| 10604 | builtin and then its argument prototype would still apply. */ |
| 10605 | #ifdef __cplusplus |
| 10606 | extern "C" |
| 10607 | #endif |
| 10608 | char dlopen (); |
| 10609 | int |
| 10610 | main () |
| 10611 | { |
| 10612 | return dlopen (); |
| 10613 | ; |
| 10614 | return 0; |
| 10615 | } |
| 10616 | _ACEOF |
| 10617 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10618 | if { (ac_try="$ac_link" |
| 10619 | case "(($ac_try" in |
| 10620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10621 | *) ac_try_echo=$ac_try;; |
| 10622 | esac |
| 10623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10624 | (eval "$ac_link") 2>conftest.er1 |
| 10625 | ac_status=$? |
| 10626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10627 | rm -f conftest.er1 |
| 10628 | cat conftest.err >&5 |
| 10629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10630 | (exit $ac_status); } && { |
| 10631 | test -z "$ac_c_werror_flag" || |
| 10632 | test ! -s conftest.err |
| 10633 | } && test -s conftest$ac_exeext && |
| 10634 | $as_test_x conftest$ac_exeext; then |
| 10635 | ac_cv_lib_dl_dlopen=yes |
| 10636 | else |
| 10637 | echo "$as_me: failed program was:" >&5 |
| 10638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10639 | |
| 10640 | ac_cv_lib_dl_dlopen=no |
| 10641 | fi |
| 10642 | |
| 10643 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10644 | conftest$ac_exeext conftest.$ac_ext |
| 10645 | LIBS=$ac_check_lib_save_LIBS |
| 10646 | fi |
| 10647 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10648 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10649 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10650 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10651 | else |
| 10652 | |
| 10653 | lt_cv_dlopen="dyld" |
| 10654 | lt_cv_dlopen_libs= |
| 10655 | lt_cv_dlopen_self=yes |
| 10656 | |
| 10657 | fi |
| 10658 | |
| 10659 | ;; |
| 10660 | |
| 10661 | *) |
| 10662 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10663 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10664 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10666 | else |
| 10667 | cat >conftest.$ac_ext <<_ACEOF |
| 10668 | /* confdefs.h. */ |
| 10669 | _ACEOF |
| 10670 | cat confdefs.h >>conftest.$ac_ext |
| 10671 | cat >>conftest.$ac_ext <<_ACEOF |
| 10672 | /* end confdefs.h. */ |
| 10673 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10675 | #define shl_load innocuous_shl_load |
| 10676 | |
| 10677 | /* System header to define __stub macros and hopefully few prototypes, |
| 10678 | which can conflict with char shl_load (); below. |
| 10679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10680 | <limits.h> exists even on freestanding compilers. */ |
| 10681 | |
| 10682 | #ifdef __STDC__ |
| 10683 | # include <limits.h> |
| 10684 | #else |
| 10685 | # include <assert.h> |
| 10686 | #endif |
| 10687 | |
| 10688 | #undef shl_load |
| 10689 | |
| 10690 | /* Override any GCC internal prototype to avoid an error. |
| 10691 | Use char because int might match the return type of a GCC |
| 10692 | builtin and then its argument prototype would still apply. */ |
| 10693 | #ifdef __cplusplus |
| 10694 | extern "C" |
| 10695 | #endif |
| 10696 | char shl_load (); |
| 10697 | /* The GNU C library defines this for functions which it implements |
| 10698 | to always fail with ENOSYS. Some functions are actually named |
| 10699 | something starting with __ and the normal name is an alias. */ |
| 10700 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10701 | choke me |
| 10702 | #endif |
| 10703 | |
| 10704 | int |
| 10705 | main () |
| 10706 | { |
| 10707 | return shl_load (); |
| 10708 | ; |
| 10709 | return 0; |
| 10710 | } |
| 10711 | _ACEOF |
| 10712 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10713 | if { (ac_try="$ac_link" |
| 10714 | case "(($ac_try" in |
| 10715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10716 | *) ac_try_echo=$ac_try;; |
| 10717 | esac |
| 10718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10719 | (eval "$ac_link") 2>conftest.er1 |
| 10720 | ac_status=$? |
| 10721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10722 | rm -f conftest.er1 |
| 10723 | cat conftest.err >&5 |
| 10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10725 | (exit $ac_status); } && { |
| 10726 | test -z "$ac_c_werror_flag" || |
| 10727 | test ! -s conftest.err |
| 10728 | } && test -s conftest$ac_exeext && |
| 10729 | $as_test_x conftest$ac_exeext; then |
| 10730 | ac_cv_func_shl_load=yes |
| 10731 | else |
| 10732 | echo "$as_me: failed program was:" >&5 |
| 10733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10734 | |
| 10735 | ac_cv_func_shl_load=no |
| 10736 | fi |
| 10737 | |
| 10738 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10739 | conftest$ac_exeext conftest.$ac_ext |
| 10740 | fi |
| 10741 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10742 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10743 | if test $ac_cv_func_shl_load = yes; then |
| 10744 | lt_cv_dlopen="shl_load" |
| 10745 | else |
| 10746 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10747 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10748 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10750 | else |
| 10751 | ac_check_lib_save_LIBS=$LIBS |
| 10752 | LIBS="-ldld $LIBS" |
| 10753 | cat >conftest.$ac_ext <<_ACEOF |
| 10754 | /* confdefs.h. */ |
| 10755 | _ACEOF |
| 10756 | cat confdefs.h >>conftest.$ac_ext |
| 10757 | cat >>conftest.$ac_ext <<_ACEOF |
| 10758 | /* end confdefs.h. */ |
| 10759 | |
| 10760 | /* Override any GCC internal prototype to avoid an error. |
| 10761 | Use char because int might match the return type of a GCC |
| 10762 | builtin and then its argument prototype would still apply. */ |
| 10763 | #ifdef __cplusplus |
| 10764 | extern "C" |
| 10765 | #endif |
| 10766 | char shl_load (); |
| 10767 | int |
| 10768 | main () |
| 10769 | { |
| 10770 | return shl_load (); |
| 10771 | ; |
| 10772 | return 0; |
| 10773 | } |
| 10774 | _ACEOF |
| 10775 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10776 | if { (ac_try="$ac_link" |
| 10777 | case "(($ac_try" in |
| 10778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10779 | *) ac_try_echo=$ac_try;; |
| 10780 | esac |
| 10781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10782 | (eval "$ac_link") 2>conftest.er1 |
| 10783 | ac_status=$? |
| 10784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10785 | rm -f conftest.er1 |
| 10786 | cat conftest.err >&5 |
| 10787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10788 | (exit $ac_status); } && { |
| 10789 | test -z "$ac_c_werror_flag" || |
| 10790 | test ! -s conftest.err |
| 10791 | } && test -s conftest$ac_exeext && |
| 10792 | $as_test_x conftest$ac_exeext; then |
| 10793 | ac_cv_lib_dld_shl_load=yes |
| 10794 | else |
| 10795 | echo "$as_me: failed program was:" >&5 |
| 10796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10797 | |
| 10798 | ac_cv_lib_dld_shl_load=no |
| 10799 | fi |
| 10800 | |
| 10801 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10802 | conftest$ac_exeext conftest.$ac_ext |
| 10803 | LIBS=$ac_check_lib_save_LIBS |
| 10804 | fi |
| 10805 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10806 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10807 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10808 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 10809 | else |
| 10810 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 10811 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
| 10812 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 10813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10814 | else |
| 10815 | cat >conftest.$ac_ext <<_ACEOF |
| 10816 | /* confdefs.h. */ |
| 10817 | _ACEOF |
| 10818 | cat confdefs.h >>conftest.$ac_ext |
| 10819 | cat >>conftest.$ac_ext <<_ACEOF |
| 10820 | /* end confdefs.h. */ |
| 10821 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 10822 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10823 | #define dlopen innocuous_dlopen |
| 10824 | |
| 10825 | /* System header to define __stub macros and hopefully few prototypes, |
| 10826 | which can conflict with char dlopen (); below. |
| 10827 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10828 | <limits.h> exists even on freestanding compilers. */ |
| 10829 | |
| 10830 | #ifdef __STDC__ |
| 10831 | # include <limits.h> |
| 10832 | #else |
| 10833 | # include <assert.h> |
| 10834 | #endif |
| 10835 | |
| 10836 | #undef dlopen |
| 10837 | |
| 10838 | /* Override any GCC internal prototype to avoid an error. |
| 10839 | Use char because int might match the return type of a GCC |
| 10840 | builtin and then its argument prototype would still apply. */ |
| 10841 | #ifdef __cplusplus |
| 10842 | extern "C" |
| 10843 | #endif |
| 10844 | char dlopen (); |
| 10845 | /* The GNU C library defines this for functions which it implements |
| 10846 | to always fail with ENOSYS. Some functions are actually named |
| 10847 | something starting with __ and the normal name is an alias. */ |
| 10848 | #if defined __stub_dlopen || defined __stub___dlopen |
| 10849 | choke me |
| 10850 | #endif |
| 10851 | |
| 10852 | int |
| 10853 | main () |
| 10854 | { |
| 10855 | return dlopen (); |
| 10856 | ; |
| 10857 | return 0; |
| 10858 | } |
| 10859 | _ACEOF |
| 10860 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10861 | if { (ac_try="$ac_link" |
| 10862 | case "(($ac_try" in |
| 10863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10864 | *) ac_try_echo=$ac_try;; |
| 10865 | esac |
| 10866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10867 | (eval "$ac_link") 2>conftest.er1 |
| 10868 | ac_status=$? |
| 10869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10870 | rm -f conftest.er1 |
| 10871 | cat conftest.err >&5 |
| 10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10873 | (exit $ac_status); } && { |
| 10874 | test -z "$ac_c_werror_flag" || |
| 10875 | test ! -s conftest.err |
| 10876 | } && test -s conftest$ac_exeext && |
| 10877 | $as_test_x conftest$ac_exeext; then |
| 10878 | ac_cv_func_dlopen=yes |
| 10879 | else |
| 10880 | echo "$as_me: failed program was:" >&5 |
| 10881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10882 | |
| 10883 | ac_cv_func_dlopen=no |
| 10884 | fi |
| 10885 | |
| 10886 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10887 | conftest$ac_exeext conftest.$ac_ext |
| 10888 | fi |
| 10889 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 10890 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
| 10891 | if test $ac_cv_func_dlopen = yes; then |
| 10892 | lt_cv_dlopen="dlopen" |
| 10893 | else |
| 10894 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10895 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10896 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10898 | else |
| 10899 | ac_check_lib_save_LIBS=$LIBS |
| 10900 | LIBS="-ldl $LIBS" |
| 10901 | cat >conftest.$ac_ext <<_ACEOF |
| 10902 | /* confdefs.h. */ |
| 10903 | _ACEOF |
| 10904 | cat confdefs.h >>conftest.$ac_ext |
| 10905 | cat >>conftest.$ac_ext <<_ACEOF |
| 10906 | /* end confdefs.h. */ |
| 10907 | |
| 10908 | /* Override any GCC internal prototype to avoid an error. |
| 10909 | Use char because int might match the return type of a GCC |
| 10910 | builtin and then its argument prototype would still apply. */ |
| 10911 | #ifdef __cplusplus |
| 10912 | extern "C" |
| 10913 | #endif |
| 10914 | char dlopen (); |
| 10915 | int |
| 10916 | main () |
| 10917 | { |
| 10918 | return dlopen (); |
| 10919 | ; |
| 10920 | return 0; |
| 10921 | } |
| 10922 | _ACEOF |
| 10923 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10924 | if { (ac_try="$ac_link" |
| 10925 | case "(($ac_try" in |
| 10926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10927 | *) ac_try_echo=$ac_try;; |
| 10928 | esac |
| 10929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10930 | (eval "$ac_link") 2>conftest.er1 |
| 10931 | ac_status=$? |
| 10932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10933 | rm -f conftest.er1 |
| 10934 | cat conftest.err >&5 |
| 10935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10936 | (exit $ac_status); } && { |
| 10937 | test -z "$ac_c_werror_flag" || |
| 10938 | test ! -s conftest.err |
| 10939 | } && test -s conftest$ac_exeext && |
| 10940 | $as_test_x conftest$ac_exeext; then |
| 10941 | ac_cv_lib_dl_dlopen=yes |
| 10942 | else |
| 10943 | echo "$as_me: failed program was:" >&5 |
| 10944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10945 | |
| 10946 | ac_cv_lib_dl_dlopen=no |
| 10947 | fi |
| 10948 | |
| 10949 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10950 | conftest$ac_exeext conftest.$ac_ext |
| 10951 | LIBS=$ac_check_lib_save_LIBS |
| 10952 | fi |
| 10953 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10954 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10955 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10956 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10957 | else |
| 10958 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10959 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10960 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10962 | else |
| 10963 | ac_check_lib_save_LIBS=$LIBS |
| 10964 | LIBS="-lsvld $LIBS" |
| 10965 | cat >conftest.$ac_ext <<_ACEOF |
| 10966 | /* confdefs.h. */ |
| 10967 | _ACEOF |
| 10968 | cat confdefs.h >>conftest.$ac_ext |
| 10969 | cat >>conftest.$ac_ext <<_ACEOF |
| 10970 | /* end confdefs.h. */ |
| 10971 | |
| 10972 | /* Override any GCC internal prototype to avoid an error. |
| 10973 | Use char because int might match the return type of a GCC |
| 10974 | builtin and then its argument prototype would still apply. */ |
| 10975 | #ifdef __cplusplus |
| 10976 | extern "C" |
| 10977 | #endif |
| 10978 | char dlopen (); |
| 10979 | int |
| 10980 | main () |
| 10981 | { |
| 10982 | return dlopen (); |
| 10983 | ; |
| 10984 | return 0; |
| 10985 | } |
| 10986 | _ACEOF |
| 10987 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10988 | if { (ac_try="$ac_link" |
| 10989 | case "(($ac_try" in |
| 10990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10991 | *) ac_try_echo=$ac_try;; |
| 10992 | esac |
| 10993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10994 | (eval "$ac_link") 2>conftest.er1 |
| 10995 | ac_status=$? |
| 10996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10997 | rm -f conftest.er1 |
| 10998 | cat conftest.err >&5 |
| 10999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11000 | (exit $ac_status); } && { |
| 11001 | test -z "$ac_c_werror_flag" || |
| 11002 | test ! -s conftest.err |
| 11003 | } && test -s conftest$ac_exeext && |
| 11004 | $as_test_x conftest$ac_exeext; then |
| 11005 | ac_cv_lib_svld_dlopen=yes |
| 11006 | else |
| 11007 | echo "$as_me: failed program was:" >&5 |
| 11008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11009 | |
| 11010 | ac_cv_lib_svld_dlopen=no |
| 11011 | fi |
| 11012 | |
| 11013 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11014 | conftest$ac_exeext conftest.$ac_ext |
| 11015 | LIBS=$ac_check_lib_save_LIBS |
| 11016 | fi |
| 11017 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11018 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 11019 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 11020 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11021 | else |
| 11022 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 11023 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 11024 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 11025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11026 | else |
| 11027 | ac_check_lib_save_LIBS=$LIBS |
| 11028 | LIBS="-ldld $LIBS" |
| 11029 | cat >conftest.$ac_ext <<_ACEOF |
| 11030 | /* confdefs.h. */ |
| 11031 | _ACEOF |
| 11032 | cat confdefs.h >>conftest.$ac_ext |
| 11033 | cat >>conftest.$ac_ext <<_ACEOF |
| 11034 | /* end confdefs.h. */ |
| 11035 | |
| 11036 | /* Override any GCC internal prototype to avoid an error. |
| 11037 | Use char because int might match the return type of a GCC |
| 11038 | builtin and then its argument prototype would still apply. */ |
| 11039 | #ifdef __cplusplus |
| 11040 | extern "C" |
| 11041 | #endif |
| 11042 | char dld_link (); |
| 11043 | int |
| 11044 | main () |
| 11045 | { |
| 11046 | return dld_link (); |
| 11047 | ; |
| 11048 | return 0; |
| 11049 | } |
| 11050 | _ACEOF |
| 11051 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11052 | if { (ac_try="$ac_link" |
| 11053 | case "(($ac_try" in |
| 11054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11055 | *) ac_try_echo=$ac_try;; |
| 11056 | esac |
| 11057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11058 | (eval "$ac_link") 2>conftest.er1 |
| 11059 | ac_status=$? |
| 11060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11061 | rm -f conftest.er1 |
| 11062 | cat conftest.err >&5 |
| 11063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11064 | (exit $ac_status); } && { |
| 11065 | test -z "$ac_c_werror_flag" || |
| 11066 | test ! -s conftest.err |
| 11067 | } && test -s conftest$ac_exeext && |
| 11068 | $as_test_x conftest$ac_exeext; then |
| 11069 | ac_cv_lib_dld_dld_link=yes |
| 11070 | else |
| 11071 | echo "$as_me: failed program was:" >&5 |
| 11072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11073 | |
| 11074 | ac_cv_lib_dld_dld_link=no |
| 11075 | fi |
| 11076 | |
| 11077 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11078 | conftest$ac_exeext conftest.$ac_ext |
| 11079 | LIBS=$ac_check_lib_save_LIBS |
| 11080 | fi |
| 11081 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11082 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 11083 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 11084 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 11085 | fi |
| 11086 | |
| 11087 | |
| 11088 | fi |
| 11089 | |
| 11090 | |
| 11091 | fi |
| 11092 | |
| 11093 | |
| 11094 | fi |
| 11095 | |
| 11096 | |
| 11097 | fi |
| 11098 | |
| 11099 | |
| 11100 | fi |
| 11101 | |
| 11102 | ;; |
| 11103 | esac |
| 11104 | |
| 11105 | if test "x$lt_cv_dlopen" != xno; then |
| 11106 | enable_dlopen=yes |
| 11107 | else |
| 11108 | enable_dlopen=no |
| 11109 | fi |
| 11110 | |
| 11111 | case $lt_cv_dlopen in |
| 11112 | dlopen) |
| 11113 | save_CPPFLAGS="$CPPFLAGS" |
| 11114 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11115 | |
| 11116 | save_LDFLAGS="$LDFLAGS" |
| 11117 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11118 | |
| 11119 | save_LIBS="$LIBS" |
| 11120 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11121 | |
| 11122 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 11123 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
| 11124 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 11125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11126 | else |
| 11127 | if test "$cross_compiling" = yes; then : |
| 11128 | lt_cv_dlopen_self=cross |
| 11129 | else |
| 11130 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11131 | lt_status=$lt_dlunknown |
| 11132 | cat > conftest.$ac_ext <<_LT_EOF |
| 11133 | #line 11133 "configure" |
| 11134 | #include "confdefs.h" |
| 11135 | |
| 11136 | #if HAVE_DLFCN_H |
| 11137 | #include <dlfcn.h> |
| 11138 | #endif |
| 11139 | |
| 11140 | #include <stdio.h> |
| 11141 | |
| 11142 | #ifdef RTLD_GLOBAL |
| 11143 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11144 | #else |
| 11145 | # ifdef DL_GLOBAL |
| 11146 | # define LT_DLGLOBAL DL_GLOBAL |
| 11147 | # else |
| 11148 | # define LT_DLGLOBAL 0 |
| 11149 | # endif |
| 11150 | #endif |
| 11151 | |
| 11152 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11153 | find out it does not work in some platform. */ |
| 11154 | #ifndef LT_DLLAZY_OR_NOW |
| 11155 | # ifdef RTLD_LAZY |
| 11156 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11157 | # else |
| 11158 | # ifdef DL_LAZY |
| 11159 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11160 | # else |
| 11161 | # ifdef RTLD_NOW |
| 11162 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11163 | # else |
| 11164 | # ifdef DL_NOW |
| 11165 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11166 | # else |
| 11167 | # define LT_DLLAZY_OR_NOW 0 |
| 11168 | # endif |
| 11169 | # endif |
| 11170 | # endif |
| 11171 | # endif |
| 11172 | #endif |
| 11173 | |
| 11174 | void fnord() { int i=42;} |
| 11175 | int main () |
| 11176 | { |
| 11177 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11178 | int status = $lt_dlunknown; |
| 11179 | |
| 11180 | if (self) |
| 11181 | { |
| 11182 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11183 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11184 | /* dlclose (self); */ |
| 11185 | } |
| 11186 | else |
| 11187 | puts (dlerror ()); |
| 11188 | |
| 11189 | return status; |
| 11190 | } |
| 11191 | _LT_EOF |
| 11192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11193 | (eval $ac_link) 2>&5 |
| 11194 | ac_status=$? |
| 11195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11196 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11197 | (./conftest; exit; ) >&5 2>/dev/null |
| 11198 | lt_status=$? |
| 11199 | case x$lt_status in |
| 11200 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11201 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11202 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 11203 | esac |
| 11204 | else : |
| 11205 | # compilation failed |
| 11206 | lt_cv_dlopen_self=no |
| 11207 | fi |
| 11208 | fi |
| 11209 | rm -fr conftest* |
| 11210 | |
| 11211 | |
| 11212 | fi |
| 11213 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 11214 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
| 11215 | |
| 11216 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 11217 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 11218 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 11219 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
| 11220 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 11221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11222 | else |
| 11223 | if test "$cross_compiling" = yes; then : |
| 11224 | lt_cv_dlopen_self_static=cross |
| 11225 | else |
| 11226 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11227 | lt_status=$lt_dlunknown |
| 11228 | cat > conftest.$ac_ext <<_LT_EOF |
| 11229 | #line 11229 "configure" |
| 11230 | #include "confdefs.h" |
| 11231 | |
| 11232 | #if HAVE_DLFCN_H |
| 11233 | #include <dlfcn.h> |
| 11234 | #endif |
| 11235 | |
| 11236 | #include <stdio.h> |
| 11237 | |
| 11238 | #ifdef RTLD_GLOBAL |
| 11239 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11240 | #else |
| 11241 | # ifdef DL_GLOBAL |
| 11242 | # define LT_DLGLOBAL DL_GLOBAL |
| 11243 | # else |
| 11244 | # define LT_DLGLOBAL 0 |
| 11245 | # endif |
| 11246 | #endif |
| 11247 | |
| 11248 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11249 | find out it does not work in some platform. */ |
| 11250 | #ifndef LT_DLLAZY_OR_NOW |
| 11251 | # ifdef RTLD_LAZY |
| 11252 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11253 | # else |
| 11254 | # ifdef DL_LAZY |
| 11255 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11256 | # else |
| 11257 | # ifdef RTLD_NOW |
| 11258 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11259 | # else |
| 11260 | # ifdef DL_NOW |
| 11261 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11262 | # else |
| 11263 | # define LT_DLLAZY_OR_NOW 0 |
| 11264 | # endif |
| 11265 | # endif |
| 11266 | # endif |
| 11267 | # endif |
| 11268 | #endif |
| 11269 | |
| 11270 | void fnord() { int i=42;} |
| 11271 | int main () |
| 11272 | { |
| 11273 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11274 | int status = $lt_dlunknown; |
| 11275 | |
| 11276 | if (self) |
| 11277 | { |
| 11278 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11279 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11280 | /* dlclose (self); */ |
| 11281 | } |
| 11282 | else |
| 11283 | puts (dlerror ()); |
| 11284 | |
| 11285 | return status; |
| 11286 | } |
| 11287 | _LT_EOF |
| 11288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11289 | (eval $ac_link) 2>&5 |
| 11290 | ac_status=$? |
| 11291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11292 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11293 | (./conftest; exit; ) >&5 2>/dev/null |
| 11294 | lt_status=$? |
| 11295 | case x$lt_status in |
| 11296 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11297 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11298 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11299 | esac |
| 11300 | else : |
| 11301 | # compilation failed |
| 11302 | lt_cv_dlopen_self_static=no |
| 11303 | fi |
| 11304 | fi |
| 11305 | rm -fr conftest* |
| 11306 | |
| 11307 | |
| 11308 | fi |
| 11309 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 11310 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
| 11311 | fi |
| 11312 | |
| 11313 | CPPFLAGS="$save_CPPFLAGS" |
| 11314 | LDFLAGS="$save_LDFLAGS" |
| 11315 | LIBS="$save_LIBS" |
| 11316 | ;; |
| 11317 | esac |
| 11318 | |
| 11319 | case $lt_cv_dlopen_self in |
| 11320 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11321 | *) enable_dlopen_self=unknown ;; |
| 11322 | esac |
| 11323 | |
| 11324 | case $lt_cv_dlopen_self_static in |
| 11325 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11326 | *) enable_dlopen_self_static=unknown ;; |
| 11327 | esac |
| 11328 | fi |
| 11329 | |
| 11330 | |
| 11331 | |
| 11332 | |
| 11333 | |
| 11334 | |
| 11335 | |
| 11336 | |
| 11337 | |
| 11338 | |
| 11339 | |
| 11340 | |
| 11341 | |
| 11342 | |
| 11343 | |
| 11344 | |
| 11345 | |
| 11346 | striplib= |
| 11347 | old_striplib= |
| 11348 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 11349 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
| 11350 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11351 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11352 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11353 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11354 | echo "${ECHO_T}yes" >&6; } |
| 11355 | else |
| 11356 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11357 | case $host_os in |
| 11358 | darwin*) |
| 11359 | if test -n "$STRIP" ; then |
| 11360 | striplib="$STRIP -x" |
| 11361 | old_striplib="$STRIP -S" |
| 11362 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11363 | echo "${ECHO_T}yes" >&6; } |
| 11364 | else |
| 11365 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11366 | echo "${ECHO_T}no" >&6; } |
| 11367 | fi |
| 11368 | ;; |
| 11369 | *) |
| 11370 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11371 | echo "${ECHO_T}no" >&6; } |
| 11372 | ;; |
| 11373 | esac |
| 11374 | fi |
| 11375 | |
| 11376 | |
| 11377 | |
| 11378 | |
| 11379 | |
| 11380 | |
| 11381 | |
| 11382 | |
| 11383 | |
| 11384 | |
| 11385 | |
| 11386 | |
| 11387 | # Report which library types will actually be built |
| 11388 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 11389 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 11390 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 11391 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 11392 | |
| 11393 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 11394 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
| 11395 | test "$can_build_shared" = "no" && enable_shared=no |
| 11396 | |
| 11397 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11398 | # are all built from PIC. |
| 11399 | case $host_os in |
| 11400 | aix3*) |
| 11401 | test "$enable_shared" = yes && enable_static=no |
| 11402 | if test -n "$RANLIB"; then |
| 11403 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11404 | postinstall_cmds='$RANLIB $lib' |
| 11405 | fi |
| 11406 | ;; |
| 11407 | |
| 11408 | aix[4-9]*) |
| 11409 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11410 | test "$enable_shared" = yes && enable_static=no |
| 11411 | fi |
| 11412 | ;; |
| 11413 | esac |
| 11414 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 11415 | echo "${ECHO_T}$enable_shared" >&6; } |
| 11416 | |
| 11417 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 11418 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
| 11419 | # Make sure either enable_shared or enable_static is yes. |
| 11420 | test "$enable_shared" = yes || enable_static=yes |
| 11421 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 11422 | echo "${ECHO_T}$enable_static" >&6; } |
| 11423 | |
| 11424 | |
| 11425 | |
| 11426 | |
| 11427 | fi |
| 11428 | ac_ext=c |
| 11429 | ac_cpp='$CPP $CPPFLAGS' |
| 11430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11433 | |
| 11434 | CC="$lt_save_CC" |
| 11435 | |
| 11436 | |
| 11437 | |
| 11438 | |
| 11439 | |
| 11440 | |
| 11441 | |
| 11442 | |
| 11443 | |
| 11444 | |
| 11445 | |
| 11446 | |
| 11447 | |
| 11448 | ac_config_commands="$ac_config_commands libtool" |
| 11449 | |
| 11450 | |
| 11451 | |
| 11452 | |
| 11453 | # Only expand once: |
| 11454 | |
| 11455 | |
| 11456 | if test "x$CC" != xcc; then |
| 11457 | { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
| 11458 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } |
| 11459 | else |
| 11460 | { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
| 11461 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } |
| 11462 | fi |
| 11463 | set dummy $CC; ac_cc=`echo $2 | |
| 11464 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 11465 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11467 | else |
| 11468 | cat >conftest.$ac_ext <<_ACEOF |
| 11469 | /* confdefs.h. */ |
| 11470 | _ACEOF |
| 11471 | cat confdefs.h >>conftest.$ac_ext |
| 11472 | cat >>conftest.$ac_ext <<_ACEOF |
| 11473 | /* end confdefs.h. */ |
| 11474 | |
| 11475 | int |
| 11476 | main () |
| 11477 | { |
| 11478 | |
| 11479 | ; |
| 11480 | return 0; |
| 11481 | } |
| 11482 | _ACEOF |
| 11483 | # Make sure it works both with $CC and with simple cc. |
| 11484 | # We do the test twice because some compilers refuse to overwrite an |
| 11485 | # existing .o file with -o, though they will create one. |
| 11486 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 11487 | rm -f conftest2.* |
| 11488 | if { (case "(($ac_try" in |
| 11489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11490 | *) ac_try_echo=$ac_try;; |
| 11491 | esac |
| 11492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11493 | (eval "$ac_try") 2>&5 |
| 11494 | ac_status=$? |
| 11495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11496 | (exit $ac_status); } && |
| 11497 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
| 11498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11499 | *) ac_try_echo=$ac_try;; |
| 11500 | esac |
| 11501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11502 | (eval "$ac_try") 2>&5 |
| 11503 | ac_status=$? |
| 11504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11505 | (exit $ac_status); }; |
| 11506 | then |
| 11507 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 11508 | if test "x$CC" != xcc; then |
| 11509 | # Test first that cc exists at all. |
| 11510 | if { ac_try='cc -c conftest.$ac_ext >&5' |
| 11511 | { (case "(($ac_try" in |
| 11512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11513 | *) ac_try_echo=$ac_try;; |
| 11514 | esac |
| 11515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11516 | (eval "$ac_try") 2>&5 |
| 11517 | ac_status=$? |
| 11518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11519 | (exit $ac_status); }; }; then |
| 11520 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 11521 | rm -f conftest2.* |
| 11522 | if { (case "(($ac_try" in |
| 11523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11524 | *) ac_try_echo=$ac_try;; |
| 11525 | esac |
| 11526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11527 | (eval "$ac_try") 2>&5 |
| 11528 | ac_status=$? |
| 11529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11530 | (exit $ac_status); } && |
| 11531 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
| 11532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11533 | *) ac_try_echo=$ac_try;; |
| 11534 | esac |
| 11535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11536 | (eval "$ac_try") 2>&5 |
| 11537 | ac_status=$? |
| 11538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11539 | (exit $ac_status); }; |
| 11540 | then |
| 11541 | # cc works too. |
| 11542 | : |
| 11543 | else |
| 11544 | # cc exists but doesn't like -o. |
| 11545 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 11546 | fi |
| 11547 | fi |
| 11548 | fi |
| 11549 | else |
| 11550 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 11551 | fi |
| 11552 | rm -f core conftest* |
| 11553 | |
| 11554 | fi |
| 11555 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
| 11556 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11557 | echo "${ECHO_T}yes" >&6; } |
| 11558 | else |
| 11559 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11560 | echo "${ECHO_T}no" >&6; } |
| 11561 | |
| 11562 | cat >>confdefs.h <<\_ACEOF |
| 11563 | #define NO_MINUS_C_MINUS_O 1 |
| 11564 | _ACEOF |
| 11565 | |
| 11566 | fi |
| 11567 | |
| 11568 | # FIXME: we rely on the cache variable name because |
| 11569 | # there is no other way. |
| 11570 | set dummy $CC |
| 11571 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 11572 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
| 11573 | if test "$am_t" != yes; then |
| 11574 | # Losing compiler, so override with the script. |
| 11575 | # FIXME: It is wrong to rewrite CC. |
| 11576 | # But if we don't then we get into trouble of one sort or another. |
| 11577 | # A longer-term fix would be to have automake use am__CC in this case, |
| 11578 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 11579 | CC="$am_aux_dir/compile $CC" |
| 11580 | fi |
| 11581 | |
| 11582 | |
| 11583 | |
| 11584 | if test "x$enable_docs" = xyes; then |
| 11585 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 11586 | set dummy doxygen; ac_word=$2 |
| 11587 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 11589 | if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then |
| 11590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11591 | else |
| 11592 | if test -n "$HAVE_DOXYGEN"; then |
| 11593 | ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test. |
| 11594 | else |
| 11595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11596 | for as_dir in $PATH |
| 11597 | do |
| 11598 | IFS=$as_save_IFS |
| 11599 | test -z "$as_dir" && as_dir=. |
| 11600 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11602 | ac_cv_prog_HAVE_DOXYGEN="true" |
| 11603 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11604 | break 2 |
| 11605 | fi |
| 11606 | done |
| 11607 | done |
| 11608 | IFS=$as_save_IFS |
| 11609 | |
| 11610 | test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false" |
| 11611 | fi |
| 11612 | fi |
| 11613 | HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN |
| 11614 | if test -n "$HAVE_DOXYGEN"; then |
| 11615 | { echo "$as_me:$LINENO: result: $HAVE_DOXYGEN" >&5 |
| 11616 | echo "${ECHO_T}$HAVE_DOXYGEN" >&6; } |
| 11617 | else |
| 11618 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11619 | echo "${ECHO_T}no" >&6; } |
| 11620 | fi |
| 11621 | |
| 11622 | |
| 11623 | if test $HAVE_DOXYGEN = "false"; then |
| 11624 | { echo "$as_me:$LINENO: WARNING: *** doxygen not found, API documentation will not be built" >&5 |
| 11625 | echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;} |
| 11626 | fi |
| 11627 | else |
| 11628 | HAVE_DOXYGEN=false |
| 11629 | fi |
| 11630 | if $HAVE_DOXYGEN; then |
| 11631 | HAVE_DOXYGEN_TRUE= |
| 11632 | HAVE_DOXYGEN_FALSE='#' |
| 11633 | else |
| 11634 | HAVE_DOXYGEN_TRUE='#' |
| 11635 | HAVE_DOXYGEN_FALSE= |
| 11636 | fi |
| 11637 | |
| 11638 | |
| 11639 | # Check whether --enable-docs was given. |
| 11640 | if test "${enable_docs+set}" = set; then |
| 11641 | enableval=$enable_docs; |
| 11642 | fi |
| 11643 | |
| 11644 | |
| 11645 | if test "x$enable_docs" = xyes; then |
| 11646 | for ac_prog in pdflatex |
| 11647 | do |
| 11648 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11649 | set dummy $ac_prog; ac_word=$2 |
| 11650 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 11652 | if test "${ac_cv_prog_PDFLATEX+set}" = set; then |
| 11653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11654 | else |
| 11655 | if test -n "$PDFLATEX"; then |
| 11656 | ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test. |
| 11657 | else |
| 11658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11659 | for as_dir in $PATH |
| 11660 | do |
| 11661 | IFS=$as_save_IFS |
| 11662 | test -z "$as_dir" && as_dir=. |
| 11663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11665 | ac_cv_prog_PDFLATEX="$ac_prog" |
| 11666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11667 | break 2 |
| 11668 | fi |
| 11669 | done |
| 11670 | done |
| 11671 | IFS=$as_save_IFS |
| 11672 | |
| 11673 | fi |
| 11674 | fi |
| 11675 | PDFLATEX=$ac_cv_prog_PDFLATEX |
| 11676 | if test -n "$PDFLATEX"; then |
| 11677 | { echo "$as_me:$LINENO: result: $PDFLATEX" >&5 |
| 11678 | echo "${ECHO_T}$PDFLATEX" >&6; } |
| 11679 | else |
| 11680 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11681 | echo "${ECHO_T}no" >&6; } |
| 11682 | fi |
| 11683 | |
| 11684 | |
| 11685 | test -n "$PDFLATEX" && break |
| 11686 | done |
| 11687 | test -n "$PDFLATEX" || PDFLATEX="/bin/false" |
| 11688 | |
| 11689 | for ac_prog in htlatex |
| 11690 | do |
| 11691 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11692 | set dummy $ac_prog; ac_word=$2 |
| 11693 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 11695 | if test "${ac_cv_prog_HTLATEX+set}" = set; then |
| 11696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11697 | else |
| 11698 | if test -n "$HTLATEX"; then |
| 11699 | ac_cv_prog_HTLATEX="$HTLATEX" # Let the user override the test. |
| 11700 | else |
| 11701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11702 | for as_dir in $PATH |
| 11703 | do |
| 11704 | IFS=$as_save_IFS |
| 11705 | test -z "$as_dir" && as_dir=. |
| 11706 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11707 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11708 | ac_cv_prog_HTLATEX="$ac_prog" |
| 11709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11710 | break 2 |
| 11711 | fi |
| 11712 | done |
| 11713 | done |
| 11714 | IFS=$as_save_IFS |
| 11715 | |
| 11716 | fi |
| 11717 | fi |
| 11718 | HTLATEX=$ac_cv_prog_HTLATEX |
| 11719 | if test -n "$HTLATEX"; then |
| 11720 | { echo "$as_me:$LINENO: result: $HTLATEX" >&5 |
| 11721 | echo "${ECHO_T}$HTLATEX" >&6; } |
| 11722 | else |
| 11723 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11724 | echo "${ECHO_T}no" >&6; } |
| 11725 | fi |
| 11726 | |
| 11727 | |
| 11728 | test -n "$HTLATEX" && break |
| 11729 | done |
| 11730 | test -n "$HTLATEX" || HTLATEX="/bin/false" |
| 11731 | |
| 11732 | if test "x$PDFLATEX" = x/bin/false || test "x$HTLATEX" = x/bin/false; then |
| 11733 | enable_docs=no |
| 11734 | { echo "$as_me:$LINENO: WARNING: Documentation will not be built!" >&5 |
| 11735 | echo "$as_me: WARNING: Documentation will not be built!" >&2;} |
| 11736 | fi |
| 11737 | fi |
| 11738 | |
| 11739 | if test "x$enable_docs" = xyes; then |
| 11740 | BUILD_DOCS_TRUE= |
| 11741 | BUILD_DOCS_FALSE='#' |
| 11742 | else |
| 11743 | BUILD_DOCS_TRUE='#' |
| 11744 | BUILD_DOCS_FALSE= |
| 11745 | fi |
| 11746 | |
| 11747 | |
| 11748 | # Check whether --enable-examples was given. |
| 11749 | if test "${enable_examples+set}" = set; then |
| 11750 | enableval=$enable_examples; |
| 11751 | fi |
| 11752 | |
| 11753 | |
| 11754 | if test "x$enable_examples" = xyes; then |
| 11755 | BUILD_EXAMPLES_TRUE= |
| 11756 | BUILD_EXAMPLES_FALSE='#' |
| 11757 | else |
| 11758 | BUILD_EXAMPLES_TRUE='#' |
| 11759 | BUILD_EXAMPLES_FALSE= |
| 11760 | fi |
| 11761 | |
| 11762 | |
| 11763 | |
| 11764 | |
| 11765 | cflags_save="$CFLAGS" |
| 11766 | if test -z "$GCC"; then |
| 11767 | case $host in |
| 11768 | *-*-irix*) |
| 11769 | if test -z "$CC"; then |
| 11770 | CC=cc |
| 11771 | fi |
| 11772 | DEBUG="-g -signed" |
| 11773 | CFLAGS="-O2 -w -signed" |
| 11774 | PROFILE="-p -g3 -O2 -signed" ;; |
| 11775 | sparc-sun-solaris*) |
| 11776 | DEBUG="-v -g" |
| 11777 | CFLAGS="-xO4 -fast -w -fsimple -native -xcg92" |
| 11778 | PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;; |
| 11779 | *) |
| 11780 | DEBUG="-g" |
| 11781 | CFLAGS="-O" |
| 11782 | PROFILE="-g -p" ;; |
| 11783 | esac |
| 11784 | else |
| 11785 | |
| 11786 | { echo "$as_me:$LINENO: checking GCC version" >&5 |
| 11787 | echo $ECHO_N "checking GCC version... $ECHO_C" >&6; } |
| 11788 | GCC_VERSION=`$CC -dumpversion` |
| 11789 | { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5 |
| 11790 | echo "${ECHO_T}$GCC_VERSION" >&6; } |
| 11791 | case $host in |
| 11792 | *86-*-linux*) |
| 11793 | DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" |
| 11794 | CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char" |
| 11795 | # PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static" |
| 11796 | PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline" |
| 11797 | |
| 11798 | # glibc < 2.1.3 has a serious FP bug in the math inline header |
| 11799 | # that will cripple Vorbis. Look to see if the magic FP stack |
| 11800 | # clobber is missing in the mathinline header, thus indicating |
| 11801 | # the buggy version |
| 11802 | |
| 11803 | cat >conftest.$ac_ext <<_ACEOF |
| 11804 | /* confdefs.h. */ |
| 11805 | _ACEOF |
| 11806 | cat confdefs.h >>conftest.$ac_ext |
| 11807 | cat >>conftest.$ac_ext <<_ACEOF |
| 11808 | /* end confdefs.h. */ |
| 11809 | |
| 11810 | #define __LIBC_INTERNAL_MATH_INLINES 1 |
| 11811 | #define __OPTIMIZE__ |
| 11812 | #include <math.h> |
| 11813 | |
| 11814 | _ACEOF |
| 11815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11816 | $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then |
| 11817 | bad=maybe |
| 11818 | else |
| 11819 | bad=no |
| 11820 | fi |
| 11821 | rm -f conftest* |
| 11822 | |
| 11823 | if test ${bad} = "maybe" ;then |
| 11824 | cat >conftest.$ac_ext <<_ACEOF |
| 11825 | /* confdefs.h. */ |
| 11826 | _ACEOF |
| 11827 | cat confdefs.h >>conftest.$ac_ext |
| 11828 | cat >>conftest.$ac_ext <<_ACEOF |
| 11829 | /* end confdefs.h. */ |
| 11830 | |
| 11831 | #define __LIBC_INTERNAL_MATH_INLINES 1 |
| 11832 | #define __OPTIMIZE__ |
| 11833 | #include <math.h> |
| 11834 | |
| 11835 | _ACEOF |
| 11836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11837 | $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then |
| 11838 | bad=no |
| 11839 | else |
| 11840 | bad=yes |
| 11841 | fi |
| 11842 | rm -f conftest* |
| 11843 | |
| 11844 | fi |
| 11845 | if test ${bad} = "yes" ;then |
| 11846 | { echo "$as_me:$LINENO: WARNING: " >&5 |
| 11847 | echo "$as_me: WARNING: " >&2;} |
| 11848 | { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5 |
| 11849 | echo "$as_me: WARNING: ********************************************************" >&2;} |
| 11850 | { echo "$as_me:$LINENO: WARNING: * The glibc headers on this machine have a serious bug *" >&5 |
| 11851 | echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;} |
| 11852 | { echo "$as_me:$LINENO: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5 |
| 11853 | echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;} |
| 11854 | { echo "$as_me:$LINENO: WARNING: * all floating point code, not just Ogg, built on this *" >&5 |
| 11855 | echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;} |
| 11856 | { echo "$as_me:$LINENO: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&5 |
| 11857 | echo "$as_me: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&2;} |
| 11858 | { echo "$as_me:$LINENO: WARNING: * to correct the problem. Note that upgrading glibc *" >&5 |
| 11859 | echo "$as_me: WARNING: * to correct the problem. Note that upgrading glibc *" >&2;} |
| 11860 | { echo "$as_me:$LINENO: WARNING: * will not fix any previously built programs; this is *" >&5 |
| 11861 | echo "$as_me: WARNING: * will not fix any previously built programs; this is *" >&2;} |
| 11862 | { echo "$as_me:$LINENO: WARNING: * a compile-time time bug. *" >&5 |
| 11863 | echo "$as_me: WARNING: * a compile-time time bug. *" >&2;} |
| 11864 | { echo "$as_me:$LINENO: WARNING: * To work around the problem for this build of Ogg, *" >&5 |
| 11865 | echo "$as_me: WARNING: * To work around the problem for this build of Ogg, *" >&2;} |
| 11866 | { echo "$as_me:$LINENO: WARNING: * autoconf is disabling all math inlining. This will *" >&5 |
| 11867 | echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;} |
| 11868 | { echo "$as_me:$LINENO: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5 |
| 11869 | echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;} |
| 11870 | { echo "$as_me:$LINENO: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&5 |
| 11871 | echo "$as_me: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&2;} |
| 11872 | { echo "$as_me:$LINENO: WARNING: * configure and make to build with inlining. *" >&5 |
| 11873 | echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;} |
| 11874 | { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5 |
| 11875 | echo "$as_me: WARNING: ********************************************************" >&2;} |
| 11876 | { echo "$as_me:$LINENO: WARNING: " >&5 |
| 11877 | echo "$as_me: WARNING: " >&2;} |
| 11878 | |
| 11879 | CFLAGS=${OPT}" -D__NO_MATH_INLINES" |
| 11880 | PROFILE=${PROFILE}" -D__NO_MATH_INLINES" |
| 11881 | fi;; |
| 11882 | powerpc-*-linux*spe) |
| 11883 | DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES" |
| 11884 | CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -D_REENTRANT" |
| 11885 | PROFILE="-pg -g -O3 -ffast-math -mfused-madd -D_REENTRANT";; |
| 11886 | powerpc-*-linux*) |
| 11887 | DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES" |
| 11888 | CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT" |
| 11889 | PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";; |
| 11890 | *-*-linux*) |
| 11891 | DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" |
| 11892 | CFLAGS="-O20 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char" |
| 11893 | PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";; |
| 11894 | sparc-sun-*) |
| 11895 | sparc_cpu="" |
| 11896 | { echo "$as_me:$LINENO: checking if gcc supports -mv8" >&5 |
| 11897 | echo $ECHO_N "checking if gcc supports -mv8... $ECHO_C" >&6; } |
| 11898 | old_cflags="$CFLAGS" |
| 11899 | CFLAGS="$CFLAGS -mv8" |
| 11900 | cat >conftest.$ac_ext <<_ACEOF |
| 11901 | /* confdefs.h. */ |
| 11902 | _ACEOF |
| 11903 | cat confdefs.h >>conftest.$ac_ext |
| 11904 | cat >>conftest.$ac_ext <<_ACEOF |
| 11905 | /* end confdefs.h. */ |
| 11906 | |
| 11907 | int |
| 11908 | main () |
| 11909 | { |
| 11910 | return 0; |
| 11911 | ; |
| 11912 | return 0; |
| 11913 | } |
| 11914 | _ACEOF |
| 11915 | rm -f conftest.$ac_objext |
| 11916 | if { (ac_try="$ac_compile" |
| 11917 | case "(($ac_try" in |
| 11918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11919 | *) ac_try_echo=$ac_try;; |
| 11920 | esac |
| 11921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11922 | (eval "$ac_compile") 2>conftest.er1 |
| 11923 | ac_status=$? |
| 11924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11925 | rm -f conftest.er1 |
| 11926 | cat conftest.err >&5 |
| 11927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11928 | (exit $ac_status); } && { |
| 11929 | test -z "$ac_c_werror_flag" || |
| 11930 | test ! -s conftest.err |
| 11931 | } && test -s conftest.$ac_objext; then |
| 11932 | |
| 11933 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11934 | echo "${ECHO_T}yes" >&6; } |
| 11935 | sparc_cpu="-mv8" |
| 11936 | |
| 11937 | else |
| 11938 | echo "$as_me: failed program was:" >&5 |
| 11939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11940 | |
| 11941 | |
| 11942 | fi |
| 11943 | |
| 11944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11945 | CFLAGS="$old_cflags" |
| 11946 | DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" |
| 11947 | CFLAGS="-O20 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" |
| 11948 | PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;; |
| 11949 | *-*-darwin*) |
| 11950 | DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char" |
| 11951 | CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char" |
| 11952 | PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";; |
| 11953 | *-*-os2*) |
| 11954 | # Use -W instead of -Wextra because gcc on OS/2 is an old version. |
| 11955 | DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" |
| 11956 | CFLAGS="-O20 -Wall -W -ffast-math -D_REENTRANT -fsigned-char" |
| 11957 | PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";; |
| 11958 | *) |
| 11959 | DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char" |
| 11960 | CFLAGS="-O20 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char" |
| 11961 | PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;; |
| 11962 | esac |
| 11963 | |
| 11964 | { echo "$as_me:$LINENO: checking if $CC accepts -Wdeclaration-after-statement" >&5 |
| 11965 | echo $ECHO_N "checking if $CC accepts -Wdeclaration-after-statement... $ECHO_C" >&6; } |
| 11966 | ac_add_cflags__old_cflags="$CFLAGS" |
| 11967 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
| 11968 | cat >conftest.$ac_ext <<_ACEOF |
| 11969 | /* confdefs.h. */ |
| 11970 | _ACEOF |
| 11971 | cat confdefs.h >>conftest.$ac_ext |
| 11972 | cat >>conftest.$ac_ext <<_ACEOF |
| 11973 | /* end confdefs.h. */ |
| 11974 | #include <stdio.h> |
| 11975 | int |
| 11976 | main () |
| 11977 | { |
| 11978 | puts("Hello, World!"); return 0; |
| 11979 | ; |
| 11980 | return 0; |
| 11981 | } |
| 11982 | _ACEOF |
| 11983 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11984 | if { (ac_try="$ac_link" |
| 11985 | case "(($ac_try" in |
| 11986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11987 | *) ac_try_echo=$ac_try;; |
| 11988 | esac |
| 11989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11990 | (eval "$ac_link") 2>conftest.er1 |
| 11991 | ac_status=$? |
| 11992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11993 | rm -f conftest.er1 |
| 11994 | cat conftest.err >&5 |
| 11995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11996 | (exit $ac_status); } && { |
| 11997 | test -z "$ac_c_werror_flag" || |
| 11998 | test ! -s conftest.err |
| 11999 | } && test -s conftest$ac_exeext && |
| 12000 | $as_test_x conftest$ac_exeext; then |
| 12001 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12002 | echo "${ECHO_T}yes" >&6; } |
| 12003 | else |
| 12004 | echo "$as_me: failed program was:" >&5 |
| 12005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12006 | |
| 12007 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12008 | echo "${ECHO_T}no" >&6; } |
| 12009 | CFLAGS="$ac_add_cflags__old_cflags" |
| 12010 | fi |
| 12011 | |
| 12012 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12013 | conftest$ac_exeext conftest.$ac_ext |
| 12014 | |
| 12015 | fi |
| 12016 | CFLAGS="$CFLAGS $cflags_save" |
| 12017 | |
| 12018 | |
| 12019 | if test "${ac_cv_header_memory_h+set}" = set; then |
| 12020 | { echo "$as_me:$LINENO: checking for memory.h" >&5 |
| 12021 | echo $ECHO_N "checking for memory.h... $ECHO_C" >&6; } |
| 12022 | if test "${ac_cv_header_memory_h+set}" = set; then |
| 12023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12024 | fi |
| 12025 | { echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5 |
| 12026 | echo "${ECHO_T}$ac_cv_header_memory_h" >&6; } |
| 12027 | else |
| 12028 | # Is the header compilable? |
| 12029 | { echo "$as_me:$LINENO: checking memory.h usability" >&5 |
| 12030 | echo $ECHO_N "checking memory.h usability... $ECHO_C" >&6; } |
| 12031 | cat >conftest.$ac_ext <<_ACEOF |
| 12032 | /* confdefs.h. */ |
| 12033 | _ACEOF |
| 12034 | cat confdefs.h >>conftest.$ac_ext |
| 12035 | cat >>conftest.$ac_ext <<_ACEOF |
| 12036 | /* end confdefs.h. */ |
| 12037 | $ac_includes_default |
| 12038 | #include <memory.h> |
| 12039 | _ACEOF |
| 12040 | rm -f conftest.$ac_objext |
| 12041 | if { (ac_try="$ac_compile" |
| 12042 | case "(($ac_try" in |
| 12043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12044 | *) ac_try_echo=$ac_try;; |
| 12045 | esac |
| 12046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12047 | (eval "$ac_compile") 2>conftest.er1 |
| 12048 | ac_status=$? |
| 12049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12050 | rm -f conftest.er1 |
| 12051 | cat conftest.err >&5 |
| 12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12053 | (exit $ac_status); } && { |
| 12054 | test -z "$ac_c_werror_flag" || |
| 12055 | test ! -s conftest.err |
| 12056 | } && test -s conftest.$ac_objext; then |
| 12057 | ac_header_compiler=yes |
| 12058 | else |
| 12059 | echo "$as_me: failed program was:" >&5 |
| 12060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12061 | |
| 12062 | ac_header_compiler=no |
| 12063 | fi |
| 12064 | |
| 12065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12066 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12067 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12068 | |
| 12069 | # Is the header present? |
| 12070 | { echo "$as_me:$LINENO: checking memory.h presence" >&5 |
| 12071 | echo $ECHO_N "checking memory.h presence... $ECHO_C" >&6; } |
| 12072 | cat >conftest.$ac_ext <<_ACEOF |
| 12073 | /* confdefs.h. */ |
| 12074 | _ACEOF |
| 12075 | cat confdefs.h >>conftest.$ac_ext |
| 12076 | cat >>conftest.$ac_ext <<_ACEOF |
| 12077 | /* end confdefs.h. */ |
| 12078 | #include <memory.h> |
| 12079 | _ACEOF |
| 12080 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12081 | case "(($ac_try" in |
| 12082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12083 | *) ac_try_echo=$ac_try;; |
| 12084 | esac |
| 12085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12086 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12087 | ac_status=$? |
| 12088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12089 | rm -f conftest.er1 |
| 12090 | cat conftest.err >&5 |
| 12091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12092 | (exit $ac_status); } >/dev/null && { |
| 12093 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 12094 | test ! -s conftest.err |
| 12095 | }; then |
| 12096 | ac_header_preproc=yes |
| 12097 | else |
| 12098 | echo "$as_me: failed program was:" >&5 |
| 12099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12100 | |
| 12101 | ac_header_preproc=no |
| 12102 | fi |
| 12103 | |
| 12104 | rm -f conftest.err conftest.$ac_ext |
| 12105 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12106 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12107 | |
| 12108 | # So? What about this header? |
| 12109 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12110 | yes:no: ) |
| 12111 | { echo "$as_me:$LINENO: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12112 | echo "$as_me: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12113 | { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the compiler's result" >&5 |
| 12114 | echo "$as_me: WARNING: memory.h: proceeding with the compiler's result" >&2;} |
| 12115 | ac_header_preproc=yes |
| 12116 | ;; |
| 12117 | no:yes:* ) |
| 12118 | { echo "$as_me:$LINENO: WARNING: memory.h: present but cannot be compiled" >&5 |
| 12119 | echo "$as_me: WARNING: memory.h: present but cannot be compiled" >&2;} |
| 12120 | { echo "$as_me:$LINENO: WARNING: memory.h: check for missing prerequisite headers?" >&5 |
| 12121 | echo "$as_me: WARNING: memory.h: check for missing prerequisite headers?" >&2;} |
| 12122 | { echo "$as_me:$LINENO: WARNING: memory.h: see the Autoconf documentation" >&5 |
| 12123 | echo "$as_me: WARNING: memory.h: see the Autoconf documentation" >&2;} |
| 12124 | { echo "$as_me:$LINENO: WARNING: memory.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12125 | echo "$as_me: WARNING: memory.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12126 | { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the preprocessor's result" >&5 |
| 12127 | echo "$as_me: WARNING: memory.h: proceeding with the preprocessor's result" >&2;} |
| 12128 | { echo "$as_me:$LINENO: WARNING: memory.h: in the future, the compiler will take precedence" >&5 |
| 12129 | echo "$as_me: WARNING: memory.h: in the future, the compiler will take precedence" >&2;} |
| 12130 | ( cat <<\_ASBOX |
| 12131 | ## ---------------------------------- ## |
| 12132 | ## Report this to vorbis-dev@xiph.org ## |
| 12133 | ## ---------------------------------- ## |
| 12134 | _ASBOX |
| 12135 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12136 | ;; |
| 12137 | esac |
| 12138 | { echo "$as_me:$LINENO: checking for memory.h" >&5 |
| 12139 | echo $ECHO_N "checking for memory.h... $ECHO_C" >&6; } |
| 12140 | if test "${ac_cv_header_memory_h+set}" = set; then |
| 12141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12142 | else |
| 12143 | ac_cv_header_memory_h=$ac_header_preproc |
| 12144 | fi |
| 12145 | { echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5 |
| 12146 | echo "${ECHO_T}$ac_cv_header_memory_h" >&6; } |
| 12147 | |
| 12148 | fi |
| 12149 | if test $ac_cv_header_memory_h = yes; then |
| 12150 | CFLAGS="$CFLAGS -DUSE_MEMORY_H" |
| 12151 | else |
| 12152 | : |
| 12153 | fi |
| 12154 | |
| 12155 | |
| 12156 | |
| 12157 | |
| 12158 | |
| 12159 | |
| 12160 | { echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
| 12161 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; } |
| 12162 | if test "${ac_cv_lib_m_cos+set}" = set; then |
| 12163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12164 | else |
| 12165 | ac_check_lib_save_LIBS=$LIBS |
| 12166 | LIBS="-lm $LIBS" |
| 12167 | cat >conftest.$ac_ext <<_ACEOF |
| 12168 | /* confdefs.h. */ |
| 12169 | _ACEOF |
| 12170 | cat confdefs.h >>conftest.$ac_ext |
| 12171 | cat >>conftest.$ac_ext <<_ACEOF |
| 12172 | /* end confdefs.h. */ |
| 12173 | |
| 12174 | /* Override any GCC internal prototype to avoid an error. |
| 12175 | Use char because int might match the return type of a GCC |
| 12176 | builtin and then its argument prototype would still apply. */ |
| 12177 | #ifdef __cplusplus |
| 12178 | extern "C" |
| 12179 | #endif |
| 12180 | char cos (); |
| 12181 | int |
| 12182 | main () |
| 12183 | { |
| 12184 | return cos (); |
| 12185 | ; |
| 12186 | return 0; |
| 12187 | } |
| 12188 | _ACEOF |
| 12189 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12190 | if { (ac_try="$ac_link" |
| 12191 | case "(($ac_try" in |
| 12192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12193 | *) ac_try_echo=$ac_try;; |
| 12194 | esac |
| 12195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12196 | (eval "$ac_link") 2>conftest.er1 |
| 12197 | ac_status=$? |
| 12198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12199 | rm -f conftest.er1 |
| 12200 | cat conftest.err >&5 |
| 12201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12202 | (exit $ac_status); } && { |
| 12203 | test -z "$ac_c_werror_flag" || |
| 12204 | test ! -s conftest.err |
| 12205 | } && test -s conftest$ac_exeext && |
| 12206 | $as_test_x conftest$ac_exeext; then |
| 12207 | ac_cv_lib_m_cos=yes |
| 12208 | else |
| 12209 | echo "$as_me: failed program was:" >&5 |
| 12210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12211 | |
| 12212 | ac_cv_lib_m_cos=no |
| 12213 | fi |
| 12214 | |
| 12215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12216 | conftest$ac_exeext conftest.$ac_ext |
| 12217 | LIBS=$ac_check_lib_save_LIBS |
| 12218 | fi |
| 12219 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
| 12220 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; } |
| 12221 | if test $ac_cv_lib_m_cos = yes; then |
| 12222 | VORBIS_LIBS="-lm" |
| 12223 | else |
| 12224 | VORBIS_LIBS="" |
| 12225 | fi |
| 12226 | |
| 12227 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 12228 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
| 12229 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 12230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12231 | else |
| 12232 | ac_check_lib_save_LIBS=$LIBS |
| 12233 | LIBS="-lpthread $LIBS" |
| 12234 | cat >conftest.$ac_ext <<_ACEOF |
| 12235 | /* confdefs.h. */ |
| 12236 | _ACEOF |
| 12237 | cat confdefs.h >>conftest.$ac_ext |
| 12238 | cat >>conftest.$ac_ext <<_ACEOF |
| 12239 | /* end confdefs.h. */ |
| 12240 | |
| 12241 | /* Override any GCC internal prototype to avoid an error. |
| 12242 | Use char because int might match the return type of a GCC |
| 12243 | builtin and then its argument prototype would still apply. */ |
| 12244 | #ifdef __cplusplus |
| 12245 | extern "C" |
| 12246 | #endif |
| 12247 | char pthread_create (); |
| 12248 | int |
| 12249 | main () |
| 12250 | { |
| 12251 | return pthread_create (); |
| 12252 | ; |
| 12253 | return 0; |
| 12254 | } |
| 12255 | _ACEOF |
| 12256 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12257 | if { (ac_try="$ac_link" |
| 12258 | case "(($ac_try" in |
| 12259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12260 | *) ac_try_echo=$ac_try;; |
| 12261 | esac |
| 12262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12263 | (eval "$ac_link") 2>conftest.er1 |
| 12264 | ac_status=$? |
| 12265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12266 | rm -f conftest.er1 |
| 12267 | cat conftest.err >&5 |
| 12268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12269 | (exit $ac_status); } && { |
| 12270 | test -z "$ac_c_werror_flag" || |
| 12271 | test ! -s conftest.err |
| 12272 | } && test -s conftest$ac_exeext && |
| 12273 | $as_test_x conftest$ac_exeext; then |
| 12274 | ac_cv_lib_pthread_pthread_create=yes |
| 12275 | else |
| 12276 | echo "$as_me: failed program was:" >&5 |
| 12277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12278 | |
| 12279 | ac_cv_lib_pthread_pthread_create=no |
| 12280 | fi |
| 12281 | |
| 12282 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12283 | conftest$ac_exeext conftest.$ac_ext |
| 12284 | LIBS=$ac_check_lib_save_LIBS |
| 12285 | fi |
| 12286 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 12287 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
| 12288 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
| 12289 | pthread_lib="-lpthread" |
| 12290 | else |
| 12291 | : |
| 12292 | fi |
| 12293 | |
| 12294 | |
| 12295 | |
| 12296 | |
| 12297 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 12298 | if test -n "$ac_tool_prefix"; then |
| 12299 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 12300 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 12301 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12303 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 12304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12305 | else |
| 12306 | case $PKG_CONFIG in |
| 12307 | [\\/]* | ?:[\\/]*) |
| 12308 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 12309 | ;; |
| 12310 | *) |
| 12311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12312 | for as_dir in $PATH |
| 12313 | do |
| 12314 | IFS=$as_save_IFS |
| 12315 | test -z "$as_dir" && as_dir=. |
| 12316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12318 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 12319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12320 | break 2 |
| 12321 | fi |
| 12322 | done |
| 12323 | done |
| 12324 | IFS=$as_save_IFS |
| 12325 | |
| 12326 | ;; |
| 12327 | esac |
| 12328 | fi |
| 12329 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 12330 | if test -n "$PKG_CONFIG"; then |
| 12331 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 12332 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 12333 | else |
| 12334 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12335 | echo "${ECHO_T}no" >&6; } |
| 12336 | fi |
| 12337 | |
| 12338 | |
| 12339 | fi |
| 12340 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 12341 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 12342 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 12343 | set dummy pkg-config; ac_word=$2 |
| 12344 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12346 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 12347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12348 | else |
| 12349 | case $ac_pt_PKG_CONFIG in |
| 12350 | [\\/]* | ?:[\\/]*) |
| 12351 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 12352 | ;; |
| 12353 | *) |
| 12354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12355 | for as_dir in $PATH |
| 12356 | do |
| 12357 | IFS=$as_save_IFS |
| 12358 | test -z "$as_dir" && as_dir=. |
| 12359 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12361 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 12362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12363 | break 2 |
| 12364 | fi |
| 12365 | done |
| 12366 | done |
| 12367 | IFS=$as_save_IFS |
| 12368 | |
| 12369 | ;; |
| 12370 | esac |
| 12371 | fi |
| 12372 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 12373 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 12374 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 12375 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 12376 | else |
| 12377 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12378 | echo "${ECHO_T}no" >&6; } |
| 12379 | fi |
| 12380 | |
| 12381 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 12382 | PKG_CONFIG="" |
| 12383 | else |
| 12384 | case $cross_compiling:$ac_tool_warned in |
| 12385 | yes:) |
| 12386 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12387 | whose name does not start with the host triplet. If you think this |
| 12388 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12389 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12390 | whose name does not start with the host triplet. If you think this |
| 12391 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12392 | ac_tool_warned=yes ;; |
| 12393 | esac |
| 12394 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 12395 | fi |
| 12396 | else |
| 12397 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 12398 | fi |
| 12399 | |
| 12400 | fi |
| 12401 | if test -n "$PKG_CONFIG"; then |
| 12402 | _pkg_min_version=0.9.0 |
| 12403 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 12404 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
| 12405 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 12406 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12407 | echo "${ECHO_T}yes" >&6; } |
| 12408 | else |
| 12409 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12410 | echo "${ECHO_T}no" >&6; } |
| 12411 | PKG_CONFIG="" |
| 12412 | fi |
| 12413 | |
| 12414 | fi |
| 12415 | |
| 12416 | HAVE_OGG=no |
| 12417 | if test "x$PKG_CONFIG" != "x" |
| 12418 | then |
| 12419 | |
| 12420 | pkg_failed=no |
| 12421 | { echo "$as_me:$LINENO: checking for OGG" >&5 |
| 12422 | echo $ECHO_N "checking for OGG... $ECHO_C" >&6; } |
| 12423 | |
| 12424 | if test -n "$PKG_CONFIG"; then |
| 12425 | if test -n "$OGG_CFLAGS"; then |
| 12426 | pkg_cv_OGG_CFLAGS="$OGG_CFLAGS" |
| 12427 | else |
| 12428 | if test -n "$PKG_CONFIG" && \ |
| 12429 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\"") >&5 |
| 12430 | ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5 |
| 12431 | ac_status=$? |
| 12432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12433 | (exit $ac_status); }; then |
| 12434 | pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null` |
| 12435 | else |
| 12436 | pkg_failed=yes |
| 12437 | fi |
| 12438 | fi |
| 12439 | else |
| 12440 | pkg_failed=untried |
| 12441 | fi |
| 12442 | if test -n "$PKG_CONFIG"; then |
| 12443 | if test -n "$OGG_LIBS"; then |
| 12444 | pkg_cv_OGG_LIBS="$OGG_LIBS" |
| 12445 | else |
| 12446 | if test -n "$PKG_CONFIG" && \ |
| 12447 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\"") >&5 |
| 12448 | ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5 |
| 12449 | ac_status=$? |
| 12450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12451 | (exit $ac_status); }; then |
| 12452 | pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null` |
| 12453 | else |
| 12454 | pkg_failed=yes |
| 12455 | fi |
| 12456 | fi |
| 12457 | else |
| 12458 | pkg_failed=untried |
| 12459 | fi |
| 12460 | |
| 12461 | |
| 12462 | |
| 12463 | if test $pkg_failed = yes; then |
| 12464 | |
| 12465 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 12466 | _pkg_short_errors_supported=yes |
| 12467 | else |
| 12468 | _pkg_short_errors_supported=no |
| 12469 | fi |
| 12470 | if test $_pkg_short_errors_supported = yes; then |
| 12471 | OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"` |
| 12472 | else |
| 12473 | OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"` |
| 12474 | fi |
| 12475 | # Put the nasty error message in config.log where it belongs |
| 12476 | echo "$OGG_PKG_ERRORS" >&5 |
| 12477 | |
| 12478 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12479 | echo "${ECHO_T}no" >&6; } |
| 12480 | HAVE_OGG=no |
| 12481 | elif test $pkg_failed = untried; then |
| 12482 | HAVE_OGG=no |
| 12483 | else |
| 12484 | OGG_CFLAGS=$pkg_cv_OGG_CFLAGS |
| 12485 | OGG_LIBS=$pkg_cv_OGG_LIBS |
| 12486 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12487 | echo "${ECHO_T}yes" >&6; } |
| 12488 | HAVE_OGG=yes |
| 12489 | fi |
| 12490 | fi |
| 12491 | if test "x$HAVE_OGG" = "xno" |
| 12492 | then |
| 12493 | |
| 12494 | # Check whether --with-ogg was given. |
| 12495 | if test "${with_ogg+set}" = set; then |
| 12496 | withval=$with_ogg; ogg_prefix="$withval" |
| 12497 | else |
| 12498 | ogg_prefix="" |
| 12499 | fi |
| 12500 | |
| 12501 | |
| 12502 | # Check whether --with-ogg-libraries was given. |
| 12503 | if test "${with_ogg_libraries+set}" = set; then |
| 12504 | withval=$with_ogg_libraries; ogg_libraries="$withval" |
| 12505 | else |
| 12506 | ogg_libraries="" |
| 12507 | fi |
| 12508 | |
| 12509 | |
| 12510 | # Check whether --with-ogg-includes was given. |
| 12511 | if test "${with_ogg_includes+set}" = set; then |
| 12512 | withval=$with_ogg_includes; ogg_includes="$withval" |
| 12513 | else |
| 12514 | ogg_includes="" |
| 12515 | fi |
| 12516 | |
| 12517 | # Check whether --enable-oggtest was given. |
| 12518 | if test "${enable_oggtest+set}" = set; then |
| 12519 | enableval=$enable_oggtest; |
| 12520 | else |
| 12521 | enable_oggtest=yes |
| 12522 | fi |
| 12523 | |
| 12524 | |
| 12525 | if test "x$ogg_libraries" != "x" ; then |
| 12526 | OGG_LIBS="-L$ogg_libraries" |
| 12527 | elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then |
| 12528 | OGG_LIBS="" |
| 12529 | elif test "x$ogg_prefix" != "x" ; then |
| 12530 | OGG_LIBS="-L$ogg_prefix/lib" |
| 12531 | elif test "x$prefix" != "xNONE" ; then |
| 12532 | OGG_LIBS="-L$prefix/lib" |
| 12533 | fi |
| 12534 | |
| 12535 | if test "x$ogg_prefix" != "xno" ; then |
| 12536 | OGG_LIBS="$OGG_LIBS -logg" |
| 12537 | fi |
| 12538 | |
| 12539 | if test "x$ogg_includes" != "x" ; then |
| 12540 | OGG_CFLAGS="-I$ogg_includes" |
| 12541 | elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then |
| 12542 | OGG_CFLAGS="" |
| 12543 | elif test "x$ogg_prefix" != "x" ; then |
| 12544 | OGG_CFLAGS="-I$ogg_prefix/include" |
| 12545 | elif test "x$prefix" != "xNONE"; then |
| 12546 | OGG_CFLAGS="-I$prefix/include" |
| 12547 | fi |
| 12548 | |
| 12549 | { echo "$as_me:$LINENO: checking for Ogg" >&5 |
| 12550 | echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; } |
| 12551 | if test "x$ogg_prefix" = "xno" ; then |
| 12552 | no_ogg="disabled" |
| 12553 | enable_oggtest="no" |
| 12554 | else |
| 12555 | no_ogg="" |
| 12556 | fi |
| 12557 | |
| 12558 | |
| 12559 | if test "x$enable_oggtest" = "xyes" ; then |
| 12560 | ac_save_CFLAGS="$CFLAGS" |
| 12561 | ac_save_LIBS="$LIBS" |
| 12562 | CFLAGS="$CFLAGS $OGG_CFLAGS" |
| 12563 | LIBS="$LIBS $OGG_LIBS" |
| 12564 | rm -f conf.oggtest |
| 12565 | if test "$cross_compiling" = yes; then |
| 12566 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 12567 | else |
| 12568 | cat >conftest.$ac_ext <<_ACEOF |
| 12569 | /* confdefs.h. */ |
| 12570 | _ACEOF |
| 12571 | cat confdefs.h >>conftest.$ac_ext |
| 12572 | cat >>conftest.$ac_ext <<_ACEOF |
| 12573 | /* end confdefs.h. */ |
| 12574 | |
| 12575 | #include <stdio.h> |
| 12576 | #include <stdlib.h> |
| 12577 | #include <string.h> |
| 12578 | #include <ogg/ogg.h> |
| 12579 | |
| 12580 | int main () |
| 12581 | { |
| 12582 | system("touch conf.oggtest"); |
| 12583 | return 0; |
| 12584 | } |
| 12585 | |
| 12586 | |
| 12587 | _ACEOF |
| 12588 | rm -f conftest$ac_exeext |
| 12589 | if { (ac_try="$ac_link" |
| 12590 | case "(($ac_try" in |
| 12591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12592 | *) ac_try_echo=$ac_try;; |
| 12593 | esac |
| 12594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12595 | (eval "$ac_link") 2>&5 |
| 12596 | ac_status=$? |
| 12597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12598 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12599 | { (case "(($ac_try" in |
| 12600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12601 | *) ac_try_echo=$ac_try;; |
| 12602 | esac |
| 12603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12604 | (eval "$ac_try") 2>&5 |
| 12605 | ac_status=$? |
| 12606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12607 | (exit $ac_status); }; }; then |
| 12608 | : |
| 12609 | else |
| 12610 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12611 | echo "$as_me: failed program was:" >&5 |
| 12612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12613 | |
| 12614 | ( exit $ac_status ) |
| 12615 | no_ogg=yes |
| 12616 | fi |
| 12617 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12618 | fi |
| 12619 | |
| 12620 | |
| 12621 | CFLAGS="$ac_save_CFLAGS" |
| 12622 | LIBS="$ac_save_LIBS" |
| 12623 | fi |
| 12624 | |
| 12625 | if test "x$no_ogg" = "xdisabled" ; then |
| 12626 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12627 | echo "${ECHO_T}no" >&6; } |
| 12628 | { { echo "$as_me:$LINENO: error: must have Ogg installed!" >&5 |
| 12629 | echo "$as_me: error: must have Ogg installed!" >&2;} |
| 12630 | { (exit 1); exit 1; }; } |
| 12631 | elif test "x$no_ogg" = "x" ; then |
| 12632 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12633 | echo "${ECHO_T}yes" >&6; } |
| 12634 | : |
| 12635 | else |
| 12636 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12637 | echo "${ECHO_T}no" >&6; } |
| 12638 | if test -f conf.oggtest ; then |
| 12639 | : |
| 12640 | else |
| 12641 | echo "*** Could not run Ogg test program, checking why..." |
| 12642 | CFLAGS="$CFLAGS $OGG_CFLAGS" |
| 12643 | LIBS="$LIBS $OGG_LIBS" |
| 12644 | cat >conftest.$ac_ext <<_ACEOF |
| 12645 | /* confdefs.h. */ |
| 12646 | _ACEOF |
| 12647 | cat confdefs.h >>conftest.$ac_ext |
| 12648 | cat >>conftest.$ac_ext <<_ACEOF |
| 12649 | /* end confdefs.h. */ |
| 12650 | |
| 12651 | #include <stdio.h> |
| 12652 | #include <ogg/ogg.h> |
| 12653 | |
| 12654 | int |
| 12655 | main () |
| 12656 | { |
| 12657 | return 0; |
| 12658 | ; |
| 12659 | return 0; |
| 12660 | } |
| 12661 | _ACEOF |
| 12662 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12663 | if { (ac_try="$ac_link" |
| 12664 | case "(($ac_try" in |
| 12665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12666 | *) ac_try_echo=$ac_try;; |
| 12667 | esac |
| 12668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12669 | (eval "$ac_link") 2>conftest.er1 |
| 12670 | ac_status=$? |
| 12671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12672 | rm -f conftest.er1 |
| 12673 | cat conftest.err >&5 |
| 12674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12675 | (exit $ac_status); } && { |
| 12676 | test -z "$ac_c_werror_flag" || |
| 12677 | test ! -s conftest.err |
| 12678 | } && test -s conftest$ac_exeext && |
| 12679 | $as_test_x conftest$ac_exeext; then |
| 12680 | echo "*** The test program compiled, but did not run. This usually means" |
| 12681 | echo "*** that the run-time linker is not finding Ogg or finding the wrong" |
| 12682 | echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" |
| 12683 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
| 12684 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
| 12685 | echo "*** is required on your system" |
| 12686 | echo "***" |
| 12687 | echo "*** If you have an old version installed, it is best to remove it, although" |
| 12688 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
| 12689 | else |
| 12690 | echo "$as_me: failed program was:" >&5 |
| 12691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12692 | |
| 12693 | echo "*** The test program failed to compile or link. See the file config.log for the" |
| 12694 | echo "*** exact error that occured. This usually means Ogg was incorrectly installed" |
| 12695 | echo "*** or that you have moved Ogg since it was installed." |
| 12696 | fi |
| 12697 | |
| 12698 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12699 | conftest$ac_exeext conftest.$ac_ext |
| 12700 | CFLAGS="$ac_save_CFLAGS" |
| 12701 | LIBS="$ac_save_LIBS" |
| 12702 | fi |
| 12703 | OGG_CFLAGS="" |
| 12704 | OGG_LIBS="" |
| 12705 | { { echo "$as_me:$LINENO: error: must have Ogg installed!" >&5 |
| 12706 | echo "$as_me: error: must have Ogg installed!" >&2;} |
| 12707 | { (exit 1); exit 1; }; } |
| 12708 | fi |
| 12709 | |
| 12710 | |
| 12711 | rm -f conf.oggtest |
| 12712 | |
| 12713 | libs_save=$LIBS |
| 12714 | LIBS="$OGG_LIBS $VORBIS_LIBS" |
| 12715 | { echo "$as_me:$LINENO: checking for oggpack_writealign" >&5 |
| 12716 | echo $ECHO_N "checking for oggpack_writealign... $ECHO_C" >&6; } |
| 12717 | if test "${ac_cv_func_oggpack_writealign+set}" = set; then |
| 12718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12719 | else |
| 12720 | cat >conftest.$ac_ext <<_ACEOF |
| 12721 | /* confdefs.h. */ |
| 12722 | _ACEOF |
| 12723 | cat confdefs.h >>conftest.$ac_ext |
| 12724 | cat >>conftest.$ac_ext <<_ACEOF |
| 12725 | /* end confdefs.h. */ |
| 12726 | /* Define oggpack_writealign to an innocuous variant, in case <limits.h> declares oggpack_writealign. |
| 12727 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12728 | #define oggpack_writealign innocuous_oggpack_writealign |
| 12729 | |
| 12730 | /* System header to define __stub macros and hopefully few prototypes, |
| 12731 | which can conflict with char oggpack_writealign (); below. |
| 12732 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12733 | <limits.h> exists even on freestanding compilers. */ |
| 12734 | |
| 12735 | #ifdef __STDC__ |
| 12736 | # include <limits.h> |
| 12737 | #else |
| 12738 | # include <assert.h> |
| 12739 | #endif |
| 12740 | |
| 12741 | #undef oggpack_writealign |
| 12742 | |
| 12743 | /* Override any GCC internal prototype to avoid an error. |
| 12744 | Use char because int might match the return type of a GCC |
| 12745 | builtin and then its argument prototype would still apply. */ |
| 12746 | #ifdef __cplusplus |
| 12747 | extern "C" |
| 12748 | #endif |
| 12749 | char oggpack_writealign (); |
| 12750 | /* The GNU C library defines this for functions which it implements |
| 12751 | to always fail with ENOSYS. Some functions are actually named |
| 12752 | something starting with __ and the normal name is an alias. */ |
| 12753 | #if defined __stub_oggpack_writealign || defined __stub___oggpack_writealign |
| 12754 | choke me |
| 12755 | #endif |
| 12756 | |
| 12757 | int |
| 12758 | main () |
| 12759 | { |
| 12760 | return oggpack_writealign (); |
| 12761 | ; |
| 12762 | return 0; |
| 12763 | } |
| 12764 | _ACEOF |
| 12765 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12766 | if { (ac_try="$ac_link" |
| 12767 | case "(($ac_try" in |
| 12768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12769 | *) ac_try_echo=$ac_try;; |
| 12770 | esac |
| 12771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12772 | (eval "$ac_link") 2>conftest.er1 |
| 12773 | ac_status=$? |
| 12774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12775 | rm -f conftest.er1 |
| 12776 | cat conftest.err >&5 |
| 12777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12778 | (exit $ac_status); } && { |
| 12779 | test -z "$ac_c_werror_flag" || |
| 12780 | test ! -s conftest.err |
| 12781 | } && test -s conftest$ac_exeext && |
| 12782 | $as_test_x conftest$ac_exeext; then |
| 12783 | ac_cv_func_oggpack_writealign=yes |
| 12784 | else |
| 12785 | echo "$as_me: failed program was:" >&5 |
| 12786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12787 | |
| 12788 | ac_cv_func_oggpack_writealign=no |
| 12789 | fi |
| 12790 | |
| 12791 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12792 | conftest$ac_exeext conftest.$ac_ext |
| 12793 | fi |
| 12794 | { echo "$as_me:$LINENO: result: $ac_cv_func_oggpack_writealign" >&5 |
| 12795 | echo "${ECHO_T}$ac_cv_func_oggpack_writealign" >&6; } |
| 12796 | if test $ac_cv_func_oggpack_writealign = yes; then |
| 12797 | : |
| 12798 | else |
| 12799 | { { echo "$as_me:$LINENO: error: Ogg >= 1.0 required !" >&5 |
| 12800 | echo "$as_me: error: Ogg >= 1.0 required !" >&2;} |
| 12801 | { (exit 1); exit 1; }; } |
| 12802 | fi |
| 12803 | |
| 12804 | LIBS=$libs_save |
| 12805 | fi |
| 12806 | |
| 12807 | |
| 12808 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 12809 | # for constant arguments. Useless! |
| 12810 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 12811 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
| 12812 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 12813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12814 | else |
| 12815 | cat >conftest.$ac_ext <<_ACEOF |
| 12816 | /* confdefs.h. */ |
| 12817 | _ACEOF |
| 12818 | cat confdefs.h >>conftest.$ac_ext |
| 12819 | cat >>conftest.$ac_ext <<_ACEOF |
| 12820 | /* end confdefs.h. */ |
| 12821 | #include <alloca.h> |
| 12822 | int |
| 12823 | main () |
| 12824 | { |
| 12825 | char *p = (char *) alloca (2 * sizeof (int)); |
| 12826 | if (p) return 0; |
| 12827 | ; |
| 12828 | return 0; |
| 12829 | } |
| 12830 | _ACEOF |
| 12831 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12832 | if { (ac_try="$ac_link" |
| 12833 | case "(($ac_try" in |
| 12834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12835 | *) ac_try_echo=$ac_try;; |
| 12836 | esac |
| 12837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12838 | (eval "$ac_link") 2>conftest.er1 |
| 12839 | ac_status=$? |
| 12840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12841 | rm -f conftest.er1 |
| 12842 | cat conftest.err >&5 |
| 12843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12844 | (exit $ac_status); } && { |
| 12845 | test -z "$ac_c_werror_flag" || |
| 12846 | test ! -s conftest.err |
| 12847 | } && test -s conftest$ac_exeext && |
| 12848 | $as_test_x conftest$ac_exeext; then |
| 12849 | ac_cv_working_alloca_h=yes |
| 12850 | else |
| 12851 | echo "$as_me: failed program was:" >&5 |
| 12852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12853 | |
| 12854 | ac_cv_working_alloca_h=no |
| 12855 | fi |
| 12856 | |
| 12857 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12858 | conftest$ac_exeext conftest.$ac_ext |
| 12859 | fi |
| 12860 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 12861 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
| 12862 | if test $ac_cv_working_alloca_h = yes; then |
| 12863 | |
| 12864 | cat >>confdefs.h <<\_ACEOF |
| 12865 | #define HAVE_ALLOCA_H 1 |
| 12866 | _ACEOF |
| 12867 | |
| 12868 | fi |
| 12869 | |
| 12870 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 12871 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
| 12872 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 12873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12874 | else |
| 12875 | cat >conftest.$ac_ext <<_ACEOF |
| 12876 | /* confdefs.h. */ |
| 12877 | _ACEOF |
| 12878 | cat confdefs.h >>conftest.$ac_ext |
| 12879 | cat >>conftest.$ac_ext <<_ACEOF |
| 12880 | /* end confdefs.h. */ |
| 12881 | #ifdef __GNUC__ |
| 12882 | # define alloca __builtin_alloca |
| 12883 | #else |
| 12884 | # ifdef _MSC_VER |
| 12885 | # include <malloc.h> |
| 12886 | # define alloca _alloca |
| 12887 | # else |
| 12888 | # ifdef HAVE_ALLOCA_H |
| 12889 | # include <alloca.h> |
| 12890 | # else |
| 12891 | # ifdef _AIX |
| 12892 | #pragma alloca |
| 12893 | # else |
| 12894 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 12895 | char *alloca (); |
| 12896 | # endif |
| 12897 | # endif |
| 12898 | # endif |
| 12899 | # endif |
| 12900 | #endif |
| 12901 | |
| 12902 | int |
| 12903 | main () |
| 12904 | { |
| 12905 | char *p = (char *) alloca (1); |
| 12906 | if (p) return 0; |
| 12907 | ; |
| 12908 | return 0; |
| 12909 | } |
| 12910 | _ACEOF |
| 12911 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12912 | if { (ac_try="$ac_link" |
| 12913 | case "(($ac_try" in |
| 12914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12915 | *) ac_try_echo=$ac_try;; |
| 12916 | esac |
| 12917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12918 | (eval "$ac_link") 2>conftest.er1 |
| 12919 | ac_status=$? |
| 12920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12921 | rm -f conftest.er1 |
| 12922 | cat conftest.err >&5 |
| 12923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12924 | (exit $ac_status); } && { |
| 12925 | test -z "$ac_c_werror_flag" || |
| 12926 | test ! -s conftest.err |
| 12927 | } && test -s conftest$ac_exeext && |
| 12928 | $as_test_x conftest$ac_exeext; then |
| 12929 | ac_cv_func_alloca_works=yes |
| 12930 | else |
| 12931 | echo "$as_me: failed program was:" >&5 |
| 12932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12933 | |
| 12934 | ac_cv_func_alloca_works=no |
| 12935 | fi |
| 12936 | |
| 12937 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12938 | conftest$ac_exeext conftest.$ac_ext |
| 12939 | fi |
| 12940 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 12941 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
| 12942 | |
| 12943 | if test $ac_cv_func_alloca_works = yes; then |
| 12944 | |
| 12945 | cat >>confdefs.h <<\_ACEOF |
| 12946 | #define HAVE_ALLOCA 1 |
| 12947 | _ACEOF |
| 12948 | |
| 12949 | else |
| 12950 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 12951 | # that cause trouble. Some versions do not even contain alloca or |
| 12952 | # contain a buggy version. If you still want to use their alloca, |
| 12953 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 12954 | |
| 12955 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 12956 | |
| 12957 | cat >>confdefs.h <<\_ACEOF |
| 12958 | #define C_ALLOCA 1 |
| 12959 | _ACEOF |
| 12960 | |
| 12961 | |
| 12962 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 12963 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } |
| 12964 | if test "${ac_cv_os_cray+set}" = set; then |
| 12965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12966 | else |
| 12967 | cat >conftest.$ac_ext <<_ACEOF |
| 12968 | /* confdefs.h. */ |
| 12969 | _ACEOF |
| 12970 | cat confdefs.h >>conftest.$ac_ext |
| 12971 | cat >>conftest.$ac_ext <<_ACEOF |
| 12972 | /* end confdefs.h. */ |
| 12973 | #if defined CRAY && ! defined CRAY2 |
| 12974 | webecray |
| 12975 | #else |
| 12976 | wenotbecray |
| 12977 | #endif |
| 12978 | |
| 12979 | _ACEOF |
| 12980 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12981 | $EGREP "webecray" >/dev/null 2>&1; then |
| 12982 | ac_cv_os_cray=yes |
| 12983 | else |
| 12984 | ac_cv_os_cray=no |
| 12985 | fi |
| 12986 | rm -f conftest* |
| 12987 | |
| 12988 | fi |
| 12989 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 12990 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
| 12991 | if test $ac_cv_os_cray = yes; then |
| 12992 | for ac_func in _getb67 GETB67 getb67; do |
| 12993 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12994 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12995 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12996 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12998 | else |
| 12999 | cat >conftest.$ac_ext <<_ACEOF |
| 13000 | /* confdefs.h. */ |
| 13001 | _ACEOF |
| 13002 | cat confdefs.h >>conftest.$ac_ext |
| 13003 | cat >>conftest.$ac_ext <<_ACEOF |
| 13004 | /* end confdefs.h. */ |
| 13005 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13006 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13007 | #define $ac_func innocuous_$ac_func |
| 13008 | |
| 13009 | /* System header to define __stub macros and hopefully few prototypes, |
| 13010 | which can conflict with char $ac_func (); below. |
| 13011 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13012 | <limits.h> exists even on freestanding compilers. */ |
| 13013 | |
| 13014 | #ifdef __STDC__ |
| 13015 | # include <limits.h> |
| 13016 | #else |
| 13017 | # include <assert.h> |
| 13018 | #endif |
| 13019 | |
| 13020 | #undef $ac_func |
| 13021 | |
| 13022 | /* Override any GCC internal prototype to avoid an error. |
| 13023 | Use char because int might match the return type of a GCC |
| 13024 | builtin and then its argument prototype would still apply. */ |
| 13025 | #ifdef __cplusplus |
| 13026 | extern "C" |
| 13027 | #endif |
| 13028 | char $ac_func (); |
| 13029 | /* The GNU C library defines this for functions which it implements |
| 13030 | to always fail with ENOSYS. Some functions are actually named |
| 13031 | something starting with __ and the normal name is an alias. */ |
| 13032 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 13033 | choke me |
| 13034 | #endif |
| 13035 | |
| 13036 | int |
| 13037 | main () |
| 13038 | { |
| 13039 | return $ac_func (); |
| 13040 | ; |
| 13041 | return 0; |
| 13042 | } |
| 13043 | _ACEOF |
| 13044 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13045 | if { (ac_try="$ac_link" |
| 13046 | case "(($ac_try" in |
| 13047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13048 | *) ac_try_echo=$ac_try;; |
| 13049 | esac |
| 13050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13051 | (eval "$ac_link") 2>conftest.er1 |
| 13052 | ac_status=$? |
| 13053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13054 | rm -f conftest.er1 |
| 13055 | cat conftest.err >&5 |
| 13056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13057 | (exit $ac_status); } && { |
| 13058 | test -z "$ac_c_werror_flag" || |
| 13059 | test ! -s conftest.err |
| 13060 | } && test -s conftest$ac_exeext && |
| 13061 | $as_test_x conftest$ac_exeext; then |
| 13062 | eval "$as_ac_var=yes" |
| 13063 | else |
| 13064 | echo "$as_me: failed program was:" >&5 |
| 13065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13066 | |
| 13067 | eval "$as_ac_var=no" |
| 13068 | fi |
| 13069 | |
| 13070 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13071 | conftest$ac_exeext conftest.$ac_ext |
| 13072 | fi |
| 13073 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13074 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13075 | echo "${ECHO_T}$ac_res" >&6; } |
| 13076 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13077 | |
| 13078 | cat >>confdefs.h <<_ACEOF |
| 13079 | #define CRAY_STACKSEG_END $ac_func |
| 13080 | _ACEOF |
| 13081 | |
| 13082 | break |
| 13083 | fi |
| 13084 | |
| 13085 | done |
| 13086 | fi |
| 13087 | |
| 13088 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 13089 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
| 13090 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 13091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13092 | else |
| 13093 | if test "$cross_compiling" = yes; then |
| 13094 | ac_cv_c_stack_direction=0 |
| 13095 | else |
| 13096 | cat >conftest.$ac_ext <<_ACEOF |
| 13097 | /* confdefs.h. */ |
| 13098 | _ACEOF |
| 13099 | cat confdefs.h >>conftest.$ac_ext |
| 13100 | cat >>conftest.$ac_ext <<_ACEOF |
| 13101 | /* end confdefs.h. */ |
| 13102 | $ac_includes_default |
| 13103 | int |
| 13104 | find_stack_direction () |
| 13105 | { |
| 13106 | static char *addr = 0; |
| 13107 | auto char dummy; |
| 13108 | if (addr == 0) |
| 13109 | { |
| 13110 | addr = &dummy; |
| 13111 | return find_stack_direction (); |
| 13112 | } |
| 13113 | else |
| 13114 | return (&dummy > addr) ? 1 : -1; |
| 13115 | } |
| 13116 | |
| 13117 | int |
| 13118 | main () |
| 13119 | { |
| 13120 | return find_stack_direction () < 0; |
| 13121 | } |
| 13122 | _ACEOF |
| 13123 | rm -f conftest$ac_exeext |
| 13124 | if { (ac_try="$ac_link" |
| 13125 | case "(($ac_try" in |
| 13126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13127 | *) ac_try_echo=$ac_try;; |
| 13128 | esac |
| 13129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13130 | (eval "$ac_link") 2>&5 |
| 13131 | ac_status=$? |
| 13132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13133 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13134 | { (case "(($ac_try" in |
| 13135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13136 | *) ac_try_echo=$ac_try;; |
| 13137 | esac |
| 13138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13139 | (eval "$ac_try") 2>&5 |
| 13140 | ac_status=$? |
| 13141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13142 | (exit $ac_status); }; }; then |
| 13143 | ac_cv_c_stack_direction=1 |
| 13144 | else |
| 13145 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13146 | echo "$as_me: failed program was:" >&5 |
| 13147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13148 | |
| 13149 | ( exit $ac_status ) |
| 13150 | ac_cv_c_stack_direction=-1 |
| 13151 | fi |
| 13152 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13153 | fi |
| 13154 | |
| 13155 | |
| 13156 | fi |
| 13157 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 13158 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
| 13159 | |
| 13160 | cat >>confdefs.h <<_ACEOF |
| 13161 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 13162 | _ACEOF |
| 13163 | |
| 13164 | |
| 13165 | fi |
| 13166 | |
| 13167 | { echo "$as_me:$LINENO: checking for working memcmp" >&5 |
| 13168 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } |
| 13169 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
| 13170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13171 | else |
| 13172 | if test "$cross_compiling" = yes; then |
| 13173 | ac_cv_func_memcmp_working=no |
| 13174 | else |
| 13175 | cat >conftest.$ac_ext <<_ACEOF |
| 13176 | /* confdefs.h. */ |
| 13177 | _ACEOF |
| 13178 | cat confdefs.h >>conftest.$ac_ext |
| 13179 | cat >>conftest.$ac_ext <<_ACEOF |
| 13180 | /* end confdefs.h. */ |
| 13181 | $ac_includes_default |
| 13182 | int |
| 13183 | main () |
| 13184 | { |
| 13185 | |
| 13186 | /* Some versions of memcmp are not 8-bit clean. */ |
| 13187 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
| 13188 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 13189 | return 1; |
| 13190 | |
| 13191 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 13192 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 13193 | William Lewis provided this test program. */ |
| 13194 | { |
| 13195 | char foo[21]; |
| 13196 | char bar[21]; |
| 13197 | int i; |
| 13198 | for (i = 0; i < 4; i++) |
| 13199 | { |
| 13200 | char *a = foo + i; |
| 13201 | char *b = bar + i; |
| 13202 | strcpy (a, "--------01111111"); |
| 13203 | strcpy (b, "--------10000000"); |
| 13204 | if (memcmp (a, b, 16) >= 0) |
| 13205 | return 1; |
| 13206 | } |
| 13207 | return 0; |
| 13208 | } |
| 13209 | |
| 13210 | ; |
| 13211 | return 0; |
| 13212 | } |
| 13213 | _ACEOF |
| 13214 | rm -f conftest$ac_exeext |
| 13215 | if { (ac_try="$ac_link" |
| 13216 | case "(($ac_try" in |
| 13217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13218 | *) ac_try_echo=$ac_try;; |
| 13219 | esac |
| 13220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13221 | (eval "$ac_link") 2>&5 |
| 13222 | ac_status=$? |
| 13223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13224 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13225 | { (case "(($ac_try" in |
| 13226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13227 | *) ac_try_echo=$ac_try;; |
| 13228 | esac |
| 13229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13230 | (eval "$ac_try") 2>&5 |
| 13231 | ac_status=$? |
| 13232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13233 | (exit $ac_status); }; }; then |
| 13234 | ac_cv_func_memcmp_working=yes |
| 13235 | else |
| 13236 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13237 | echo "$as_me: failed program was:" >&5 |
| 13238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13239 | |
| 13240 | ( exit $ac_status ) |
| 13241 | ac_cv_func_memcmp_working=no |
| 13242 | fi |
| 13243 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13244 | fi |
| 13245 | |
| 13246 | |
| 13247 | fi |
| 13248 | { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
| 13249 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } |
| 13250 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
| 13251 | *" memcmp.$ac_objext "* ) ;; |
| 13252 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 13253 | ;; |
| 13254 | esac |
| 13255 | |
| 13256 | |
| 13257 | |
| 13258 | |
| 13259 | |
| 13260 | |
| 13261 | |
| 13262 | |
| 13263 | |
| 13264 | |
| 13265 | |
| 13266 | ac_config_files="$ac_config_files Makefile m4/Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile doc/Doxyfile include/Makefile include/vorbis/Makefile examples/Makefile test/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc" |
| 13267 | |
| 13268 | cat >confcache <<\_ACEOF |
| 13269 | # This file is a shell script that caches the results of configure |
| 13270 | # tests run on this system so they can be shared between configure |
| 13271 | # scripts and configure runs, see configure's option --config-cache. |
| 13272 | # It is not useful on other systems. If it contains results you don't |
| 13273 | # want to keep, you may remove or edit it. |
| 13274 | # |
| 13275 | # config.status only pays attention to the cache file if you give it |
| 13276 | # the --recheck option to rerun configure. |
| 13277 | # |
| 13278 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 13279 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13280 | # following values. |
| 13281 | |
| 13282 | _ACEOF |
| 13283 | |
| 13284 | # The following way of writing the cache mishandles newlines in values, |
| 13285 | # but we know of no workaround that is simple, portable, and efficient. |
| 13286 | # So, we kill variables containing newlines. |
| 13287 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13288 | # and sets the high bit in the cache file unless we assign to the vars. |
| 13289 | ( |
| 13290 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13291 | eval ac_val=\$$ac_var |
| 13292 | case $ac_val in #( |
| 13293 | *${as_nl}*) |
| 13294 | case $ac_var in #( |
| 13295 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 13296 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 13297 | esac |
| 13298 | case $ac_var in #( |
| 13299 | _ | IFS | as_nl) ;; #( |
| 13300 | *) $as_unset $ac_var ;; |
| 13301 | esac ;; |
| 13302 | esac |
| 13303 | done |
| 13304 | |
| 13305 | (set) 2>&1 | |
| 13306 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13307 | *${as_nl}ac_space=\ *) |
| 13308 | # `set' does not quote correctly, so add quotes (double-quote |
| 13309 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 13310 | sed -n \ |
| 13311 | "s/'/'\\\\''/g; |
| 13312 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 13313 | ;; #( |
| 13314 | *) |
| 13315 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 13316 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 13317 | ;; |
| 13318 | esac | |
| 13319 | sort |
| 13320 | ) | |
| 13321 | sed ' |
| 13322 | /^ac_cv_env_/b end |
| 13323 | t clear |
| 13324 | :clear |
| 13325 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13326 | t end |
| 13327 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13328 | :end' >>confcache |
| 13329 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13330 | if test -w "$cache_file"; then |
| 13331 | test "x$cache_file" != "x/dev/null" && |
| 13332 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 13333 | echo "$as_me: updating cache $cache_file" >&6;} |
| 13334 | cat confcache >$cache_file |
| 13335 | else |
| 13336 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 13337 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 13338 | fi |
| 13339 | fi |
| 13340 | rm -f confcache |
| 13341 | |
| 13342 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13343 | # Let make expand exec_prefix. |
| 13344 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13345 | |
| 13346 | DEFS=-DHAVE_CONFIG_H |
| 13347 | |
| 13348 | ac_libobjs= |
| 13349 | ac_ltlibobjs= |
| 13350 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13351 | # 1. Remove the extension, and $U if already installed. |
| 13352 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 13353 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 13354 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13355 | # will be set to the directory where LIBOBJS objects are built. |
| 13356 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13357 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
| 13358 | done |
| 13359 | LIBOBJS=$ac_libobjs |
| 13360 | |
| 13361 | LTLIBOBJS=$ac_ltlibobjs |
| 13362 | |
| 13363 | |
| 13364 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 13365 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 13366 | Usually this means the macro was only invoked conditionally." >&5 |
| 13367 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 13368 | Usually this means the macro was only invoked conditionally." >&2;} |
| 13369 | { (exit 1); exit 1; }; } |
| 13370 | fi |
| 13371 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 13372 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 13373 | Usually this means the macro was only invoked conditionally." >&5 |
| 13374 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 13375 | Usually this means the macro was only invoked conditionally." >&2;} |
| 13376 | { (exit 1); exit 1; }; } |
| 13377 | fi |
| 13378 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 13379 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 13380 | Usually this means the macro was only invoked conditionally." >&5 |
| 13381 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 13382 | Usually this means the macro was only invoked conditionally." >&2;} |
| 13383 | { (exit 1); exit 1; }; } |
| 13384 | fi |
| 13385 | if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then |
| 13386 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined. |
| 13387 | Usually this means the macro was only invoked conditionally." >&5 |
| 13388 | echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined. |
| 13389 | Usually this means the macro was only invoked conditionally." >&2;} |
| 13390 | { (exit 1); exit 1; }; } |
| 13391 | fi |
| 13392 | if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then |
| 13393 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined. |
| 13394 | Usually this means the macro was only invoked conditionally." >&5 |
| 13395 | echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined. |
| 13396 | Usually this means the macro was only invoked conditionally." >&2;} |
| 13397 | { (exit 1); exit 1; }; } |
| 13398 | fi |
| 13399 | if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then |
| 13400 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLES\" was never defined. |
| 13401 | Usually this means the macro was only invoked conditionally." >&5 |
| 13402 | echo "$as_me: error: conditional \"BUILD_EXAMPLES\" was never defined. |
| 13403 | Usually this means the macro was only invoked conditionally." >&2;} |
| 13404 | { (exit 1); exit 1; }; } |
| 13405 | fi |
| 13406 | |
| 13407 | : ${CONFIG_STATUS=./config.status} |
| 13408 | ac_clean_files_save=$ac_clean_files |
| 13409 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 13410 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 13411 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 13412 | cat >$CONFIG_STATUS <<_ACEOF |
| 13413 | #! $SHELL |
| 13414 | # Generated by $as_me. |
| 13415 | # Run this file to recreate the current configuration. |
| 13416 | # Compiler output produced by configure, useful for debugging |
| 13417 | # configure, is in config.log if it exists. |
| 13418 | |
| 13419 | debug=false |
| 13420 | ac_cs_recheck=false |
| 13421 | ac_cs_silent=false |
| 13422 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13423 | _ACEOF |
| 13424 | |
| 13425 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13426 | ## --------------------- ## |
| 13427 | ## M4sh Initialization. ## |
| 13428 | ## --------------------- ## |
| 13429 | |
| 13430 | # Be more Bourne compatible |
| 13431 | DUALCASE=1; export DUALCASE # for MKS sh |
| 13432 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 13433 | emulate sh |
| 13434 | NULLCMD=: |
| 13435 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 13436 | # is contrary to our usage. Disable this feature. |
| 13437 | alias -g '${1+"$@"}'='"$@"' |
| 13438 | setopt NO_GLOB_SUBST |
| 13439 | else |
| 13440 | case `(set -o) 2>/dev/null` in |
| 13441 | *posix*) set -o posix ;; |
| 13442 | esac |
| 13443 | |
| 13444 | fi |
| 13445 | |
| 13446 | |
| 13447 | |
| 13448 | |
| 13449 | # PATH needs CR |
| 13450 | # Avoid depending upon Character Ranges. |
| 13451 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 13452 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13453 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 13454 | as_cr_digits='0123456789' |
| 13455 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 13456 | |
| 13457 | # The user is always right. |
| 13458 | if test "${PATH_SEPARATOR+set}" != set; then |
| 13459 | echo "#! /bin/sh" >conf$$.sh |
| 13460 | echo "exit 0" >>conf$$.sh |
| 13461 | chmod +x conf$$.sh |
| 13462 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 13463 | PATH_SEPARATOR=';' |
| 13464 | else |
| 13465 | PATH_SEPARATOR=: |
| 13466 | fi |
| 13467 | rm -f conf$$.sh |
| 13468 | fi |
| 13469 | |
| 13470 | # Support unset when possible. |
| 13471 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 13472 | as_unset=unset |
| 13473 | else |
| 13474 | as_unset=false |
| 13475 | fi |
| 13476 | |
| 13477 | |
| 13478 | # IFS |
| 13479 | # We need space, tab and new line, in precisely that order. Quoting is |
| 13480 | # there to prevent editors from complaining about space-tab. |
| 13481 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 13482 | # splitting by setting IFS to empty value.) |
| 13483 | as_nl=' |
| 13484 | ' |
| 13485 | IFS=" "" $as_nl" |
| 13486 | |
| 13487 | # Find who we are. Look in the path if we contain no directory separator. |
| 13488 | case $0 in |
| 13489 | *[\\/]* ) as_myself=$0 ;; |
| 13490 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13491 | for as_dir in $PATH |
| 13492 | do |
| 13493 | IFS=$as_save_IFS |
| 13494 | test -z "$as_dir" && as_dir=. |
| 13495 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 13496 | done |
| 13497 | IFS=$as_save_IFS |
| 13498 | |
| 13499 | ;; |
| 13500 | esac |
| 13501 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 13502 | # in which case we are not to be found in the path. |
| 13503 | if test "x$as_myself" = x; then |
| 13504 | as_myself=$0 |
| 13505 | fi |
| 13506 | if test ! -f "$as_myself"; then |
| 13507 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 13508 | { (exit 1); exit 1; } |
| 13509 | fi |
| 13510 | |
| 13511 | # Work around bugs in pre-3.0 UWIN ksh. |
| 13512 | for as_var in ENV MAIL MAILPATH |
| 13513 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 13514 | done |
| 13515 | PS1='$ ' |
| 13516 | PS2='> ' |
| 13517 | PS4='+ ' |
| 13518 | |
| 13519 | # NLS nuisances. |
| 13520 | for as_var in \ |
| 13521 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 13522 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 13523 | LC_TELEPHONE LC_TIME |
| 13524 | do |
| 13525 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 13526 | eval $as_var=C; export $as_var |
| 13527 | else |
| 13528 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 13529 | fi |
| 13530 | done |
| 13531 | |
| 13532 | # Required to use basename. |
| 13533 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13534 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13535 | as_expr=expr |
| 13536 | else |
| 13537 | as_expr=false |
| 13538 | fi |
| 13539 | |
| 13540 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 13541 | as_basename=basename |
| 13542 | else |
| 13543 | as_basename=false |
| 13544 | fi |
| 13545 | |
| 13546 | |
| 13547 | # Name of the executable. |
| 13548 | as_me=`$as_basename -- "$0" || |
| 13549 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13550 | X"$0" : 'X\(//\)$' \| \ |
| 13551 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 13552 | echo X/"$0" | |
| 13553 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 13554 | s//\1/ |
| 13555 | q |
| 13556 | } |
| 13557 | /^X\/\(\/\/\)$/{ |
| 13558 | s//\1/ |
| 13559 | q |
| 13560 | } |
| 13561 | /^X\/\(\/\).*/{ |
| 13562 | s//\1/ |
| 13563 | q |
| 13564 | } |
| 13565 | s/.*/./; q'` |
| 13566 | |
| 13567 | # CDPATH. |
| 13568 | $as_unset CDPATH |
| 13569 | |
| 13570 | |
| 13571 | |
| 13572 | as_lineno_1=$LINENO |
| 13573 | as_lineno_2=$LINENO |
| 13574 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 13575 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 13576 | |
| 13577 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 13578 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 13579 | # line-number line after each line using $LINENO; the second 'sed' |
| 13580 | # does the real work. The second script uses 'N' to pair each |
| 13581 | # line-number line with the line containing $LINENO, and appends |
| 13582 | # trailing '-' during substitution so that $LINENO is not a special |
| 13583 | # case at line end. |
| 13584 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 13585 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 13586 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 13587 | sed -n ' |
| 13588 | p |
| 13589 | /[$]LINENO/= |
| 13590 | ' <$as_myself | |
| 13591 | sed ' |
| 13592 | s/[$]LINENO.*/&-/ |
| 13593 | t lineno |
| 13594 | b |
| 13595 | :lineno |
| 13596 | N |
| 13597 | :loop |
| 13598 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 13599 | t loop |
| 13600 | s/-\n.*// |
| 13601 | ' >$as_me.lineno && |
| 13602 | chmod +x "$as_me.lineno" || |
| 13603 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 13604 | { (exit 1); exit 1; }; } |
| 13605 | |
| 13606 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 13607 | # (the dirname of $[0] is not the place where we might find the |
| 13608 | # original and so on. Autoconf is especially sensitive to this). |
| 13609 | . "./$as_me.lineno" |
| 13610 | # Exit status is that of the last command. |
| 13611 | exit |
| 13612 | } |
| 13613 | |
| 13614 | |
| 13615 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 13616 | as_dirname=dirname |
| 13617 | else |
| 13618 | as_dirname=false |
| 13619 | fi |
| 13620 | |
| 13621 | ECHO_C= ECHO_N= ECHO_T= |
| 13622 | case `echo -n x` in |
| 13623 | -n*) |
| 13624 | case `echo 'x\c'` in |
| 13625 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 13626 | *) ECHO_C='\c';; |
| 13627 | esac;; |
| 13628 | *) |
| 13629 | ECHO_N='-n';; |
| 13630 | esac |
| 13631 | |
| 13632 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13633 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13634 | as_expr=expr |
| 13635 | else |
| 13636 | as_expr=false |
| 13637 | fi |
| 13638 | |
| 13639 | rm -f conf$$ conf$$.exe conf$$.file |
| 13640 | if test -d conf$$.dir; then |
| 13641 | rm -f conf$$.dir/conf$$.file |
| 13642 | else |
| 13643 | rm -f conf$$.dir |
| 13644 | mkdir conf$$.dir |
| 13645 | fi |
| 13646 | echo >conf$$.file |
| 13647 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 13648 | as_ln_s='ln -s' |
| 13649 | # ... but there are two gotchas: |
| 13650 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 13651 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 13652 | # In both cases, we have to default to `cp -p'. |
| 13653 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 13654 | as_ln_s='cp -p' |
| 13655 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13656 | as_ln_s=ln |
| 13657 | else |
| 13658 | as_ln_s='cp -p' |
| 13659 | fi |
| 13660 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 13661 | rmdir conf$$.dir 2>/dev/null |
| 13662 | |
| 13663 | if mkdir -p . 2>/dev/null; then |
| 13664 | as_mkdir_p=: |
| 13665 | else |
| 13666 | test -d ./-p && rmdir ./-p |
| 13667 | as_mkdir_p=false |
| 13668 | fi |
| 13669 | |
| 13670 | if test -x / >/dev/null 2>&1; then |
| 13671 | as_test_x='test -x' |
| 13672 | else |
| 13673 | if ls -dL / >/dev/null 2>&1; then |
| 13674 | as_ls_L_option=L |
| 13675 | else |
| 13676 | as_ls_L_option= |
| 13677 | fi |
| 13678 | as_test_x=' |
| 13679 | eval sh -c '\'' |
| 13680 | if test -d "$1"; then |
| 13681 | test -d "$1/."; |
| 13682 | else |
| 13683 | case $1 in |
| 13684 | -*)set "./$1";; |
| 13685 | esac; |
| 13686 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 13687 | ???[sx]*):;;*)false;;esac;fi |
| 13688 | '\'' sh |
| 13689 | ' |
| 13690 | fi |
| 13691 | as_executable_p=$as_test_x |
| 13692 | |
| 13693 | # Sed expression to map a string onto a valid CPP name. |
| 13694 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 13695 | |
| 13696 | # Sed expression to map a string onto a valid variable name. |
| 13697 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 13698 | |
| 13699 | |
| 13700 | exec 6>&1 |
| 13701 | |
| 13702 | # Save the log message, to keep $[0] and so on meaningful, and to |
| 13703 | # report actual input values of CONFIG_FILES etc. instead of their |
| 13704 | # values after options handling. |
| 13705 | ac_log=" |
| 13706 | This file was extended by libvorbis $as_me 1.3.1, which was |
| 13707 | generated by GNU Autoconf 2.61. Invocation command line was |
| 13708 | |
| 13709 | CONFIG_FILES = $CONFIG_FILES |
| 13710 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 13711 | CONFIG_LINKS = $CONFIG_LINKS |
| 13712 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13713 | $ $0 $@ |
| 13714 | |
| 13715 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13716 | " |
| 13717 | |
| 13718 | _ACEOF |
| 13719 | |
| 13720 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13721 | # Files that config.status was made for. |
| 13722 | config_files="$ac_config_files" |
| 13723 | config_headers="$ac_config_headers" |
| 13724 | config_commands="$ac_config_commands" |
| 13725 | |
| 13726 | _ACEOF |
| 13727 | |
| 13728 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13729 | ac_cs_usage="\ |
| 13730 | \`$as_me' instantiates files from templates according to the |
| 13731 | current configuration. |
| 13732 | |
| 13733 | Usage: $0 [OPTIONS] [FILE]... |
| 13734 | |
| 13735 | -h, --help print this help, then exit |
| 13736 | -V, --version print version number and configuration settings, then exit |
| 13737 | -q, --quiet do not print progress messages |
| 13738 | -d, --debug don't remove temporary files |
| 13739 | --recheck update $as_me by reconfiguring in the same conditions |
| 13740 | --file=FILE[:TEMPLATE] |
| 13741 | instantiate the configuration file FILE |
| 13742 | --header=FILE[:TEMPLATE] |
| 13743 | instantiate the configuration header FILE |
| 13744 | |
| 13745 | Configuration files: |
| 13746 | $config_files |
| 13747 | |
| 13748 | Configuration headers: |
| 13749 | $config_headers |
| 13750 | |
| 13751 | Configuration commands: |
| 13752 | $config_commands |
| 13753 | |
| 13754 | Report bugs to <bug-autoconf@gnu.org>." |
| 13755 | |
| 13756 | _ACEOF |
| 13757 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13758 | ac_cs_version="\\ |
| 13759 | libvorbis config.status 1.3.1 |
| 13760 | configured by $0, generated by GNU Autoconf 2.61, |
| 13761 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
| 13762 | |
| 13763 | Copyright (C) 2006 Free Software Foundation, Inc. |
| 13764 | This config.status script is free software; the Free Software Foundation |
| 13765 | gives unlimited permission to copy, distribute and modify it." |
| 13766 | |
| 13767 | ac_pwd='$ac_pwd' |
| 13768 | srcdir='$srcdir' |
| 13769 | INSTALL='$INSTALL' |
| 13770 | MKDIR_P='$MKDIR_P' |
| 13771 | _ACEOF |
| 13772 | |
| 13773 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13774 | # If no file are specified by the user, then we need to provide default |
| 13775 | # value. By we need to know if files were specified by the user. |
| 13776 | ac_need_defaults=: |
| 13777 | while test $# != 0 |
| 13778 | do |
| 13779 | case $1 in |
| 13780 | --*=*) |
| 13781 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 13782 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 13783 | ac_shift=: |
| 13784 | ;; |
| 13785 | *) |
| 13786 | ac_option=$1 |
| 13787 | ac_optarg=$2 |
| 13788 | ac_shift=shift |
| 13789 | ;; |
| 13790 | esac |
| 13791 | |
| 13792 | case $ac_option in |
| 13793 | # Handling of the options. |
| 13794 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 13795 | ac_cs_recheck=: ;; |
| 13796 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 13797 | echo "$ac_cs_version"; exit ;; |
| 13798 | --debug | --debu | --deb | --de | --d | -d ) |
| 13799 | debug=: ;; |
| 13800 | --file | --fil | --fi | --f ) |
| 13801 | $ac_shift |
| 13802 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 13803 | ac_need_defaults=false;; |
| 13804 | --header | --heade | --head | --hea ) |
| 13805 | $ac_shift |
| 13806 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 13807 | ac_need_defaults=false;; |
| 13808 | --he | --h) |
| 13809 | # Conflict between --help and --header |
| 13810 | { echo "$as_me: error: ambiguous option: $1 |
| 13811 | Try \`$0 --help' for more information." >&2 |
| 13812 | { (exit 1); exit 1; }; };; |
| 13813 | --help | --hel | -h ) |
| 13814 | echo "$ac_cs_usage"; exit ;; |
| 13815 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 13816 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 13817 | ac_cs_silent=: ;; |
| 13818 | |
| 13819 | # This is an error. |
| 13820 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 13821 | Try \`$0 --help' for more information." >&2 |
| 13822 | { (exit 1); exit 1; }; } ;; |
| 13823 | |
| 13824 | *) ac_config_targets="$ac_config_targets $1" |
| 13825 | ac_need_defaults=false ;; |
| 13826 | |
| 13827 | esac |
| 13828 | shift |
| 13829 | done |
| 13830 | |
| 13831 | ac_configure_extra_args= |
| 13832 | |
| 13833 | if $ac_cs_silent; then |
| 13834 | exec 6>/dev/null |
| 13835 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 13836 | fi |
| 13837 | |
| 13838 | _ACEOF |
| 13839 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13840 | if \$ac_cs_recheck; then |
| 13841 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 13842 | CONFIG_SHELL=$SHELL |
| 13843 | export CONFIG_SHELL |
| 13844 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 13845 | fi |
| 13846 | |
| 13847 | _ACEOF |
| 13848 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13849 | exec 5>>config.log |
| 13850 | { |
| 13851 | echo |
| 13852 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 13853 | ## Running $as_me. ## |
| 13854 | _ASBOX |
| 13855 | echo "$ac_log" |
| 13856 | } >&5 |
| 13857 | |
| 13858 | _ACEOF |
| 13859 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13860 | # |
| 13861 | # INIT-COMMANDS |
| 13862 | # |
| 13863 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 13864 | |
| 13865 | |
| 13866 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 13867 | # if CDPATH is set. |
| 13868 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13869 | |
| 13870 | sed_quote_subst='$sed_quote_subst' |
| 13871 | double_quote_subst='$double_quote_subst' |
| 13872 | delay_variable_subst='$delay_variable_subst' |
| 13873 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' |
| 13874 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 13875 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
| 13876 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 13877 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 13878 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 13879 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 13880 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 13881 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 13882 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 13883 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 13884 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 13885 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 13886 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 13887 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 13888 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 13889 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 13890 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 13891 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 13892 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 13893 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 13894 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 13895 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 13896 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 13897 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 13898 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 13899 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 13900 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 13901 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 13902 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 13903 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13904 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 13905 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 13906 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 13907 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 13908 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 13909 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 13910 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13911 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13912 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13913 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 13914 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 13915 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 13916 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 13917 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 13918 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 13919 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
| 13920 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 13921 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 13922 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 13923 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 13924 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 13925 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 13926 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 13927 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 13928 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 13929 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 13930 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 13931 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 13932 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 13933 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 13934 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 13935 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 13936 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 13937 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13938 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13939 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 13940 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 13941 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 13942 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 13943 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 13944 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13945 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13946 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13947 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13948 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13949 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13950 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 13951 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 13952 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 13953 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 13954 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 13955 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 13956 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 13957 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 13958 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 13959 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 13960 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 13961 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 13962 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 13963 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 13964 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 13965 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13966 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 13967 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 13968 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13969 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 13970 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 13971 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 13972 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 13973 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 13974 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 13975 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 13976 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 13977 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 13978 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 13979 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 13980 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13981 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13982 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 13983 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 13984 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 13985 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 13986 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 13987 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 13988 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 13989 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 13990 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 13991 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 13992 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 13993 | |
| 13994 | LTCC='$LTCC' |
| 13995 | LTCFLAGS='$LTCFLAGS' |
| 13996 | compiler='$compiler_DEFAULT' |
| 13997 | |
| 13998 | # Quote evaled strings. |
| 13999 | for var in SED \ |
| 14000 | GREP \ |
| 14001 | EGREP \ |
| 14002 | FGREP \ |
| 14003 | LD \ |
| 14004 | NM \ |
| 14005 | LN_S \ |
| 14006 | lt_SP2NL \ |
| 14007 | lt_NL2SP \ |
| 14008 | reload_flag \ |
| 14009 | deplibs_check_method \ |
| 14010 | file_magic_cmd \ |
| 14011 | AR \ |
| 14012 | AR_FLAGS \ |
| 14013 | STRIP \ |
| 14014 | RANLIB \ |
| 14015 | CC \ |
| 14016 | CFLAGS \ |
| 14017 | compiler \ |
| 14018 | lt_cv_sys_global_symbol_pipe \ |
| 14019 | lt_cv_sys_global_symbol_to_cdecl \ |
| 14020 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 14021 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 14022 | SHELL \ |
| 14023 | ECHO \ |
| 14024 | lt_prog_compiler_no_builtin_flag \ |
| 14025 | lt_prog_compiler_wl \ |
| 14026 | lt_prog_compiler_pic \ |
| 14027 | lt_prog_compiler_static \ |
| 14028 | lt_cv_prog_compiler_c_o \ |
| 14029 | need_locks \ |
| 14030 | DSYMUTIL \ |
| 14031 | NMEDIT \ |
| 14032 | LIPO \ |
| 14033 | OTOOL \ |
| 14034 | OTOOL64 \ |
| 14035 | shrext_cmds \ |
| 14036 | export_dynamic_flag_spec \ |
| 14037 | whole_archive_flag_spec \ |
| 14038 | compiler_needs_object \ |
| 14039 | with_gnu_ld \ |
| 14040 | allow_undefined_flag \ |
| 14041 | no_undefined_flag \ |
| 14042 | hardcode_libdir_flag_spec \ |
| 14043 | hardcode_libdir_flag_spec_ld \ |
| 14044 | hardcode_libdir_separator \ |
| 14045 | fix_srcfile_path \ |
| 14046 | exclude_expsyms \ |
| 14047 | include_expsyms \ |
| 14048 | file_list_spec \ |
| 14049 | variables_saved_for_relink \ |
| 14050 | libname_spec \ |
| 14051 | library_names_spec \ |
| 14052 | soname_spec \ |
| 14053 | finish_eval \ |
| 14054 | old_striplib \ |
| 14055 | striplib; do |
| 14056 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 14057 | *[\\\\\\\`\\"\\\$]*) |
| 14058 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 14059 | ;; |
| 14060 | *) |
| 14061 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 14062 | ;; |
| 14063 | esac |
| 14064 | done |
| 14065 | |
| 14066 | # Double-quote double-evaled strings. |
| 14067 | for var in reload_cmds \ |
| 14068 | old_postinstall_cmds \ |
| 14069 | old_postuninstall_cmds \ |
| 14070 | old_archive_cmds \ |
| 14071 | extract_expsyms_cmds \ |
| 14072 | old_archive_from_new_cmds \ |
| 14073 | old_archive_from_expsyms_cmds \ |
| 14074 | archive_cmds \ |
| 14075 | archive_expsym_cmds \ |
| 14076 | module_cmds \ |
| 14077 | module_expsym_cmds \ |
| 14078 | export_symbols_cmds \ |
| 14079 | prelink_cmds \ |
| 14080 | postinstall_cmds \ |
| 14081 | postuninstall_cmds \ |
| 14082 | finish_cmds \ |
| 14083 | sys_lib_search_path_spec \ |
| 14084 | sys_lib_dlsearch_path_spec; do |
| 14085 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 14086 | *[\\\\\\\`\\"\\\$]*) |
| 14087 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 14088 | ;; |
| 14089 | *) |
| 14090 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 14091 | ;; |
| 14092 | esac |
| 14093 | done |
| 14094 | |
| 14095 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 14096 | case \$lt_ECHO in |
| 14097 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 14098 | ;; |
| 14099 | esac |
| 14100 | |
| 14101 | ac_aux_dir='$ac_aux_dir' |
| 14102 | xsi_shell='$xsi_shell' |
| 14103 | lt_shell_append='$lt_shell_append' |
| 14104 | |
| 14105 | # See if we are running on zsh, and set the options which allow our |
| 14106 | # commands through without removal of \ escapes INIT. |
| 14107 | if test -n "\${ZSH_VERSION+set}" ; then |
| 14108 | setopt NO_GLOB_SUBST |
| 14109 | fi |
| 14110 | |
| 14111 | |
| 14112 | PACKAGE='$PACKAGE' |
| 14113 | VERSION='$VERSION' |
| 14114 | TIMESTAMP='$TIMESTAMP' |
| 14115 | RM='$RM' |
| 14116 | ofile='$ofile' |
| 14117 | |
| 14118 | |
| 14119 | |
| 14120 | |
| 14121 | _ACEOF |
| 14122 | |
| 14123 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14124 | |
| 14125 | # Handling of arguments. |
| 14126 | for ac_config_target in $ac_config_targets |
| 14127 | do |
| 14128 | case $ac_config_target in |
| 14129 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 14130 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 14131 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 14132 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 14133 | "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; |
| 14134 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 14135 | "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;; |
| 14136 | "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;; |
| 14137 | "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;; |
| 14138 | "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;; |
| 14139 | "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;; |
| 14140 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 14141 | "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;; |
| 14142 | "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;; |
| 14143 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; |
| 14144 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
| 14145 | "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;; |
| 14146 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
| 14147 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
| 14148 | "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;; |
| 14149 | "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;; |
| 14150 | "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;; |
| 14151 | "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;; |
| 14152 | "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;; |
| 14153 | "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;; |
| 14154 | "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;; |
| 14155 | "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;; |
| 14156 | |
| 14157 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 14158 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 14159 | { (exit 1); exit 1; }; };; |
| 14160 | esac |
| 14161 | done |
| 14162 | |
| 14163 | |
| 14164 | # If the user did not use the arguments to specify the items to instantiate, |
| 14165 | # then the envvar interface is used. Set only those that are not. |
| 14166 | # We use the long form for the default assignment because of an extremely |
| 14167 | # bizarre bug on SunOS 4.1.3. |
| 14168 | if $ac_need_defaults; then |
| 14169 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14170 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14171 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14172 | fi |
| 14173 | |
| 14174 | # Have a temporary directory for convenience. Make it in the build tree |
| 14175 | # simply because there is no reason against having it here, and in addition, |
| 14176 | # creating and moving files from /tmp can sometimes cause problems. |
| 14177 | # Hook for its removal unless debugging. |
| 14178 | # Note that there is a small window in which the directory will not be cleaned: |
| 14179 | # after its creation but before its name has been assigned to `$tmp'. |
| 14180 | $debug || |
| 14181 | { |
| 14182 | tmp= |
| 14183 | trap 'exit_status=$? |
| 14184 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 14185 | ' 0 |
| 14186 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 14187 | } |
| 14188 | # Create a (secure) tmp directory for tmp files. |
| 14189 | |
| 14190 | { |
| 14191 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 14192 | test -n "$tmp" && test -d "$tmp" |
| 14193 | } || |
| 14194 | { |
| 14195 | tmp=./conf$$-$RANDOM |
| 14196 | (umask 077 && mkdir "$tmp") |
| 14197 | } || |
| 14198 | { |
| 14199 | echo "$me: cannot create a temporary directory in ." >&2 |
| 14200 | { (exit 1); exit 1; } |
| 14201 | } |
| 14202 | |
| 14203 | # |
| 14204 | # Set up the sed scripts for CONFIG_FILES section. |
| 14205 | # |
| 14206 | |
| 14207 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 14208 | # This happens for instance when ./config.status config.h |
| 14209 | if test -n "$CONFIG_FILES"; then |
| 14210 | |
| 14211 | _ACEOF |
| 14212 | |
| 14213 | |
| 14214 | |
| 14215 | ac_delim='%!_!# ' |
| 14216 | for ac_last_try in false false false false false :; do |
| 14217 | cat >conf$$subs.sed <<_ACEOF |
| 14218 | SHELL!$SHELL$ac_delim |
| 14219 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 14220 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 14221 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 14222 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 14223 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 14224 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 14225 | exec_prefix!$exec_prefix$ac_delim |
| 14226 | prefix!$prefix$ac_delim |
| 14227 | program_transform_name!$program_transform_name$ac_delim |
| 14228 | bindir!$bindir$ac_delim |
| 14229 | sbindir!$sbindir$ac_delim |
| 14230 | libexecdir!$libexecdir$ac_delim |
| 14231 | datarootdir!$datarootdir$ac_delim |
| 14232 | datadir!$datadir$ac_delim |
| 14233 | sysconfdir!$sysconfdir$ac_delim |
| 14234 | sharedstatedir!$sharedstatedir$ac_delim |
| 14235 | localstatedir!$localstatedir$ac_delim |
| 14236 | includedir!$includedir$ac_delim |
| 14237 | oldincludedir!$oldincludedir$ac_delim |
| 14238 | docdir!$docdir$ac_delim |
| 14239 | infodir!$infodir$ac_delim |
| 14240 | htmldir!$htmldir$ac_delim |
| 14241 | dvidir!$dvidir$ac_delim |
| 14242 | pdfdir!$pdfdir$ac_delim |
| 14243 | psdir!$psdir$ac_delim |
| 14244 | libdir!$libdir$ac_delim |
| 14245 | localedir!$localedir$ac_delim |
| 14246 | mandir!$mandir$ac_delim |
| 14247 | DEFS!$DEFS$ac_delim |
| 14248 | ECHO_C!$ECHO_C$ac_delim |
| 14249 | ECHO_N!$ECHO_N$ac_delim |
| 14250 | ECHO_T!$ECHO_T$ac_delim |
| 14251 | LIBS!$LIBS$ac_delim |
| 14252 | build_alias!$build_alias$ac_delim |
| 14253 | host_alias!$host_alias$ac_delim |
| 14254 | target_alias!$target_alias$ac_delim |
| 14255 | build!$build$ac_delim |
| 14256 | build_cpu!$build_cpu$ac_delim |
| 14257 | build_vendor!$build_vendor$ac_delim |
| 14258 | build_os!$build_os$ac_delim |
| 14259 | host!$host$ac_delim |
| 14260 | host_cpu!$host_cpu$ac_delim |
| 14261 | host_vendor!$host_vendor$ac_delim |
| 14262 | host_os!$host_os$ac_delim |
| 14263 | target!$target$ac_delim |
| 14264 | target_cpu!$target_cpu$ac_delim |
| 14265 | target_vendor!$target_vendor$ac_delim |
| 14266 | target_os!$target_os$ac_delim |
| 14267 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 14268 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 14269 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 14270 | am__isrc!$am__isrc$ac_delim |
| 14271 | CYGPATH_W!$CYGPATH_W$ac_delim |
| 14272 | PACKAGE!$PACKAGE$ac_delim |
| 14273 | VERSION!$VERSION$ac_delim |
| 14274 | ACLOCAL!$ACLOCAL$ac_delim |
| 14275 | AUTOCONF!$AUTOCONF$ac_delim |
| 14276 | AUTOMAKE!$AUTOMAKE$ac_delim |
| 14277 | AUTOHEADER!$AUTOHEADER$ac_delim |
| 14278 | MAKEINFO!$MAKEINFO$ac_delim |
| 14279 | install_sh!$install_sh$ac_delim |
| 14280 | STRIP!$STRIP$ac_delim |
| 14281 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
| 14282 | mkdir_p!$mkdir_p$ac_delim |
| 14283 | AWK!$AWK$ac_delim |
| 14284 | SET_MAKE!$SET_MAKE$ac_delim |
| 14285 | am__leading_dot!$am__leading_dot$ac_delim |
| 14286 | AMTAR!$AMTAR$ac_delim |
| 14287 | am__tar!$am__tar$ac_delim |
| 14288 | am__untar!$am__untar$ac_delim |
| 14289 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim |
| 14290 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim |
| 14291 | MAINT!$MAINT$ac_delim |
| 14292 | ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim |
| 14293 | V_LIB_CURRENT!$V_LIB_CURRENT$ac_delim |
| 14294 | V_LIB_REVISION!$V_LIB_REVISION$ac_delim |
| 14295 | V_LIB_AGE!$V_LIB_AGE$ac_delim |
| 14296 | VF_LIB_CURRENT!$VF_LIB_CURRENT$ac_delim |
| 14297 | VF_LIB_REVISION!$VF_LIB_REVISION$ac_delim |
| 14298 | VF_LIB_AGE!$VF_LIB_AGE$ac_delim |
| 14299 | VE_LIB_CURRENT!$VE_LIB_CURRENT$ac_delim |
| 14300 | VE_LIB_REVISION!$VE_LIB_REVISION$ac_delim |
| 14301 | VE_LIB_AGE!$VE_LIB_AGE$ac_delim |
| 14302 | CC!$CC$ac_delim |
| 14303 | CFLAGS!$CFLAGS$ac_delim |
| 14304 | LDFLAGS!$LDFLAGS$ac_delim |
| 14305 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 14306 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 14307 | EXEEXT!$EXEEXT$ac_delim |
| 14308 | OBJEXT!$OBJEXT$ac_delim |
| 14309 | DEPDIR!$DEPDIR$ac_delim |
| 14310 | am__include!$am__include$ac_delim |
| 14311 | am__quote!$am__quote$ac_delim |
| 14312 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
| 14313 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
| 14314 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
| 14315 | _ACEOF |
| 14316 | |
| 14317 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 14318 | break |
| 14319 | elif $ac_last_try; then |
| 14320 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 14321 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 14322 | { (exit 1); exit 1; }; } |
| 14323 | else |
| 14324 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14325 | fi |
| 14326 | done |
| 14327 | |
| 14328 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 14329 | if test -n "$ac_eof"; then |
| 14330 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 14331 | ac_eof=`expr $ac_eof + 1` |
| 14332 | fi |
| 14333 | |
| 14334 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14335 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 14336 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 14337 | _ACEOF |
| 14338 | sed ' |
| 14339 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 14340 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 14341 | :n |
| 14342 | t n |
| 14343 | s/'"$ac_delim"'$/,g/; t |
| 14344 | s/$/\\/; p |
| 14345 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 14346 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 14347 | rm -f conf$$subs.sed |
| 14348 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14349 | CEOF$ac_eof |
| 14350 | _ACEOF |
| 14351 | |
| 14352 | |
| 14353 | ac_delim='%!_!# ' |
| 14354 | for ac_last_try in false false false false false :; do |
| 14355 | cat >conf$$subs.sed <<_ACEOF |
| 14356 | CCDEPMODE!$CCDEPMODE$ac_delim |
| 14357 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
| 14358 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
| 14359 | CPP!$CPP$ac_delim |
| 14360 | AS!$AS$ac_delim |
| 14361 | DLLTOOL!$DLLTOOL$ac_delim |
| 14362 | OBJDUMP!$OBJDUMP$ac_delim |
| 14363 | LIBTOOL!$LIBTOOL$ac_delim |
| 14364 | SED!$SED$ac_delim |
| 14365 | GREP!$GREP$ac_delim |
| 14366 | EGREP!$EGREP$ac_delim |
| 14367 | FGREP!$FGREP$ac_delim |
| 14368 | LD!$LD$ac_delim |
| 14369 | DUMPBIN!$DUMPBIN$ac_delim |
| 14370 | ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim |
| 14371 | NM!$NM$ac_delim |
| 14372 | LN_S!$LN_S$ac_delim |
| 14373 | AR!$AR$ac_delim |
| 14374 | RANLIB!$RANLIB$ac_delim |
| 14375 | lt_ECHO!$lt_ECHO$ac_delim |
| 14376 | DSYMUTIL!$DSYMUTIL$ac_delim |
| 14377 | NMEDIT!$NMEDIT$ac_delim |
| 14378 | LIPO!$LIPO$ac_delim |
| 14379 | OTOOL!$OTOOL$ac_delim |
| 14380 | OTOOL64!$OTOOL64$ac_delim |
| 14381 | HAVE_DOXYGEN!$HAVE_DOXYGEN$ac_delim |
| 14382 | HAVE_DOXYGEN_TRUE!$HAVE_DOXYGEN_TRUE$ac_delim |
| 14383 | HAVE_DOXYGEN_FALSE!$HAVE_DOXYGEN_FALSE$ac_delim |
| 14384 | PDFLATEX!$PDFLATEX$ac_delim |
| 14385 | HTLATEX!$HTLATEX$ac_delim |
| 14386 | BUILD_DOCS_TRUE!$BUILD_DOCS_TRUE$ac_delim |
| 14387 | BUILD_DOCS_FALSE!$BUILD_DOCS_FALSE$ac_delim |
| 14388 | BUILD_EXAMPLES_TRUE!$BUILD_EXAMPLES_TRUE$ac_delim |
| 14389 | BUILD_EXAMPLES_FALSE!$BUILD_EXAMPLES_FALSE$ac_delim |
| 14390 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
| 14391 | OGG_CFLAGS!$OGG_CFLAGS$ac_delim |
| 14392 | OGG_LIBS!$OGG_LIBS$ac_delim |
| 14393 | ALLOCA!$ALLOCA$ac_delim |
| 14394 | LIBOBJS!$LIBOBJS$ac_delim |
| 14395 | VORBIS_LIBS!$VORBIS_LIBS$ac_delim |
| 14396 | DEBUG!$DEBUG$ac_delim |
| 14397 | PROFILE!$PROFILE$ac_delim |
| 14398 | pthread_lib!$pthread_lib$ac_delim |
| 14399 | LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim |
| 14400 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 14401 | _ACEOF |
| 14402 | |
| 14403 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then |
| 14404 | break |
| 14405 | elif $ac_last_try; then |
| 14406 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 14407 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 14408 | { (exit 1); exit 1; }; } |
| 14409 | else |
| 14410 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14411 | fi |
| 14412 | done |
| 14413 | |
| 14414 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 14415 | if test -n "$ac_eof"; then |
| 14416 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 14417 | ac_eof=`expr $ac_eof + 1` |
| 14418 | fi |
| 14419 | |
| 14420 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14421 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 14422 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 14423 | _ACEOF |
| 14424 | sed ' |
| 14425 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 14426 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 14427 | :n |
| 14428 | t n |
| 14429 | s/'"$ac_delim"'$/,g/; t |
| 14430 | s/$/\\/; p |
| 14431 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 14432 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 14433 | rm -f conf$$subs.sed |
| 14434 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14435 | :end |
| 14436 | s/|#_!!_#|//g |
| 14437 | CEOF$ac_eof |
| 14438 | _ACEOF |
| 14439 | |
| 14440 | |
| 14441 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 14442 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 14443 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14444 | # (actually we leave an empty line to preserve line numbers). |
| 14445 | if test "x$srcdir" = x.; then |
| 14446 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 14447 | s/:*\$(srcdir):*/:/ |
| 14448 | s/:*\${srcdir}:*/:/ |
| 14449 | s/:*@srcdir@:*/:/ |
| 14450 | s/^\([^=]*=[ ]*\):*/\1/ |
| 14451 | s/:*$// |
| 14452 | s/^[^=]*=[ ]*$// |
| 14453 | }' |
| 14454 | fi |
| 14455 | |
| 14456 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14457 | fi # test -n "$CONFIG_FILES" |
| 14458 | |
| 14459 | |
| 14460 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 14461 | do |
| 14462 | case $ac_tag in |
| 14463 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14464 | esac |
| 14465 | case $ac_mode$ac_tag in |
| 14466 | :[FHL]*:*);; |
| 14467 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 14468 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 14469 | { (exit 1); exit 1; }; };; |
| 14470 | :[FH]-) ac_tag=-:-;; |
| 14471 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14472 | esac |
| 14473 | ac_save_IFS=$IFS |
| 14474 | IFS=: |
| 14475 | set x $ac_tag |
| 14476 | IFS=$ac_save_IFS |
| 14477 | shift |
| 14478 | ac_file=$1 |
| 14479 | shift |
| 14480 | |
| 14481 | case $ac_mode in |
| 14482 | :L) ac_source=$1;; |
| 14483 | :[FH]) |
| 14484 | ac_file_inputs= |
| 14485 | for ac_f |
| 14486 | do |
| 14487 | case $ac_f in |
| 14488 | -) ac_f="$tmp/stdin";; |
| 14489 | *) # Look for the file first in the build tree, then in the source tree |
| 14490 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14491 | # because $ac_f cannot contain `:'. |
| 14492 | test -f "$ac_f" || |
| 14493 | case $ac_f in |
| 14494 | [\\/$]*) false;; |
| 14495 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14496 | esac || |
| 14497 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 14498 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 14499 | { (exit 1); exit 1; }; };; |
| 14500 | esac |
| 14501 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 14502 | done |
| 14503 | |
| 14504 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14505 | # use $as_me), people would be surprised to read: |
| 14506 | # /* config.h. Generated by config.status. */ |
| 14507 | configure_input="Generated from "`IFS=: |
| 14508 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 14509 | if test x"$ac_file" != x-; then |
| 14510 | configure_input="$ac_file. $configure_input" |
| 14511 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 14512 | echo "$as_me: creating $ac_file" >&6;} |
| 14513 | fi |
| 14514 | |
| 14515 | case $ac_tag in |
| 14516 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 14517 | esac |
| 14518 | ;; |
| 14519 | esac |
| 14520 | |
| 14521 | ac_dir=`$as_dirname -- "$ac_file" || |
| 14522 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14523 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14524 | X"$ac_file" : 'X\(//\)$' \| \ |
| 14525 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 14526 | echo X"$ac_file" | |
| 14527 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14528 | s//\1/ |
| 14529 | q |
| 14530 | } |
| 14531 | /^X\(\/\/\)[^/].*/{ |
| 14532 | s//\1/ |
| 14533 | q |
| 14534 | } |
| 14535 | /^X\(\/\/\)$/{ |
| 14536 | s//\1/ |
| 14537 | q |
| 14538 | } |
| 14539 | /^X\(\/\).*/{ |
| 14540 | s//\1/ |
| 14541 | q |
| 14542 | } |
| 14543 | s/.*/./; q'` |
| 14544 | { as_dir="$ac_dir" |
| 14545 | case $as_dir in #( |
| 14546 | -*) as_dir=./$as_dir;; |
| 14547 | esac |
| 14548 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 14549 | as_dirs= |
| 14550 | while :; do |
| 14551 | case $as_dir in #( |
| 14552 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 14553 | *) as_qdir=$as_dir;; |
| 14554 | esac |
| 14555 | as_dirs="'$as_qdir' $as_dirs" |
| 14556 | as_dir=`$as_dirname -- "$as_dir" || |
| 14557 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14558 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14559 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14560 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14561 | echo X"$as_dir" | |
| 14562 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14563 | s//\1/ |
| 14564 | q |
| 14565 | } |
| 14566 | /^X\(\/\/\)[^/].*/{ |
| 14567 | s//\1/ |
| 14568 | q |
| 14569 | } |
| 14570 | /^X\(\/\/\)$/{ |
| 14571 | s//\1/ |
| 14572 | q |
| 14573 | } |
| 14574 | /^X\(\/\).*/{ |
| 14575 | s//\1/ |
| 14576 | q |
| 14577 | } |
| 14578 | s/.*/./; q'` |
| 14579 | test -d "$as_dir" && break |
| 14580 | done |
| 14581 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 14582 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 14583 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 14584 | { (exit 1); exit 1; }; }; } |
| 14585 | ac_builddir=. |
| 14586 | |
| 14587 | case "$ac_dir" in |
| 14588 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14589 | *) |
| 14590 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 14591 | # A ".." for each directory in $ac_dir_suffix. |
| 14592 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 14593 | case $ac_top_builddir_sub in |
| 14594 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14595 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14596 | esac ;; |
| 14597 | esac |
| 14598 | ac_abs_top_builddir=$ac_pwd |
| 14599 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14600 | # for backward compatibility: |
| 14601 | ac_top_builddir=$ac_top_build_prefix |
| 14602 | |
| 14603 | case $srcdir in |
| 14604 | .) # We are building in place. |
| 14605 | ac_srcdir=. |
| 14606 | ac_top_srcdir=$ac_top_builddir_sub |
| 14607 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14608 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 14609 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 14610 | ac_top_srcdir=$srcdir |
| 14611 | ac_abs_top_srcdir=$srcdir ;; |
| 14612 | *) # Relative name. |
| 14613 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14614 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14615 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 14616 | esac |
| 14617 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 14618 | |
| 14619 | |
| 14620 | case $ac_mode in |
| 14621 | :F) |
| 14622 | # |
| 14623 | # CONFIG_FILE |
| 14624 | # |
| 14625 | |
| 14626 | case $INSTALL in |
| 14627 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 14628 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 14629 | esac |
| 14630 | ac_MKDIR_P=$MKDIR_P |
| 14631 | case $MKDIR_P in |
| 14632 | [\\/$]* | ?:[\\/]* ) ;; |
| 14633 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 14634 | esac |
| 14635 | _ACEOF |
| 14636 | |
| 14637 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14638 | # If the template does not know about datarootdir, expand it. |
| 14639 | # FIXME: This hack should be removed a few years after 2.60. |
| 14640 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 14641 | |
| 14642 | case `sed -n '/datarootdir/ { |
| 14643 | p |
| 14644 | q |
| 14645 | } |
| 14646 | /@datadir@/p |
| 14647 | /@docdir@/p |
| 14648 | /@infodir@/p |
| 14649 | /@localedir@/p |
| 14650 | /@mandir@/p |
| 14651 | ' $ac_file_inputs` in |
| 14652 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 14653 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 14654 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 14655 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 14656 | _ACEOF |
| 14657 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14658 | ac_datarootdir_hack=' |
| 14659 | s&@datadir@&$datadir&g |
| 14660 | s&@docdir@&$docdir&g |
| 14661 | s&@infodir@&$infodir&g |
| 14662 | s&@localedir@&$localedir&g |
| 14663 | s&@mandir@&$mandir&g |
| 14664 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 14665 | esac |
| 14666 | _ACEOF |
| 14667 | |
| 14668 | # Neutralize VPATH when `$srcdir' = `.'. |
| 14669 | # Shell code in configure.ac might set extrasub. |
| 14670 | # FIXME: do we really want to maintain this feature? |
| 14671 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14672 | sed "$ac_vpsub |
| 14673 | $extrasub |
| 14674 | _ACEOF |
| 14675 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14676 | :t |
| 14677 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 14678 | s&@configure_input@&$configure_input&;t t |
| 14679 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 14680 | s&@srcdir@&$ac_srcdir&;t t |
| 14681 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 14682 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 14683 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 14684 | s&@builddir@&$ac_builddir&;t t |
| 14685 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 14686 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 14687 | s&@INSTALL@&$ac_INSTALL&;t t |
| 14688 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 14689 | $ac_datarootdir_hack |
| 14690 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
| 14691 | |
| 14692 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 14693 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 14694 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 14695 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 14696 | which seems to be undefined. Please make sure it is defined." >&5 |
| 14697 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 14698 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 14699 | |
| 14700 | rm -f "$tmp/stdin" |
| 14701 | case $ac_file in |
| 14702 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 14703 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 14704 | esac |
| 14705 | ;; |
| 14706 | :H) |
| 14707 | # |
| 14708 | # CONFIG_HEADER |
| 14709 | # |
| 14710 | _ACEOF |
| 14711 | |
| 14712 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 14713 | # substitutes the proper values into config.h.in to produce config.h. |
| 14714 | rm -f conftest.defines conftest.tail |
| 14715 | # First, append a space to every undef/define line, to ease matching. |
| 14716 | echo 's/$/ /' >conftest.defines |
| 14717 | # Then, protect against being on the right side of a sed subst, or in |
| 14718 | # an unquoted here document, in config.status. If some macros were |
| 14719 | # called several times there might be several #defines for the same |
| 14720 | # symbol, which is useless. But do not sort them, since the last |
| 14721 | # AC_DEFINE must be honored. |
| 14722 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14723 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 14724 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 14725 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 14726 | # just an empty string. |
| 14727 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 14728 | ac_dB='\\)[ (].*,\\1define\\2' |
| 14729 | ac_dC=' ' |
| 14730 | ac_dD=' ,' |
| 14731 | |
| 14732 | uniq confdefs.h | |
| 14733 | sed -n ' |
| 14734 | t rset |
| 14735 | :rset |
| 14736 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 14737 | t ok |
| 14738 | d |
| 14739 | :ok |
| 14740 | s/[\\&,]/\\&/g |
| 14741 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 14742 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 14743 | ' >>conftest.defines |
| 14744 | |
| 14745 | # Remove the space that was appended to ease matching. |
| 14746 | # Then replace #undef with comments. This is necessary, for |
| 14747 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 14748 | # on some systems where configure will not decide to define it. |
| 14749 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 14750 | echo 's/ $// |
| 14751 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 14752 | |
| 14753 | # Break up conftest.defines: |
| 14754 | ac_max_sed_lines=50 |
| 14755 | |
| 14756 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 14757 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 14758 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 14759 | # et cetera. |
| 14760 | ac_in='$ac_file_inputs' |
| 14761 | ac_out='"$tmp/out1"' |
| 14762 | ac_nxt='"$tmp/out2"' |
| 14763 | |
| 14764 | while : |
| 14765 | do |
| 14766 | # Write a here document: |
| 14767 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14768 | # First, check the format of the line: |
| 14769 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 14770 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 14771 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 14772 | b |
| 14773 | :def |
| 14774 | _ACEOF |
| 14775 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 14776 | echo 'CEOF |
| 14777 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 14778 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 14779 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 14780 | grep . conftest.tail >/dev/null || break |
| 14781 | rm -f conftest.defines |
| 14782 | mv conftest.tail conftest.defines |
| 14783 | done |
| 14784 | rm -f conftest.defines conftest.tail |
| 14785 | |
| 14786 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 14787 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14788 | if test x"$ac_file" != x-; then |
| 14789 | echo "/* $configure_input */" >"$tmp/config.h" |
| 14790 | cat "$ac_result" >>"$tmp/config.h" |
| 14791 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 14792 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 14793 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 14794 | else |
| 14795 | rm -f $ac_file |
| 14796 | mv "$tmp/config.h" $ac_file |
| 14797 | fi |
| 14798 | else |
| 14799 | echo "/* $configure_input */" |
| 14800 | cat "$ac_result" |
| 14801 | fi |
| 14802 | rm -f "$tmp/out12" |
| 14803 | # Compute $ac_file's index in $config_headers. |
| 14804 | _am_arg=$ac_file |
| 14805 | _am_stamp_count=1 |
| 14806 | for _am_header in $config_headers :; do |
| 14807 | case $_am_header in |
| 14808 | $_am_arg | $_am_arg:* ) |
| 14809 | break ;; |
| 14810 | * ) |
| 14811 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 14812 | esac |
| 14813 | done |
| 14814 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 14815 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14816 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 14817 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 14818 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 14819 | echo X"$_am_arg" | |
| 14820 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14821 | s//\1/ |
| 14822 | q |
| 14823 | } |
| 14824 | /^X\(\/\/\)[^/].*/{ |
| 14825 | s//\1/ |
| 14826 | q |
| 14827 | } |
| 14828 | /^X\(\/\/\)$/{ |
| 14829 | s//\1/ |
| 14830 | q |
| 14831 | } |
| 14832 | /^X\(\/\).*/{ |
| 14833 | s//\1/ |
| 14834 | q |
| 14835 | } |
| 14836 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 14837 | ;; |
| 14838 | |
| 14839 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 14840 | echo "$as_me: executing $ac_file commands" >&6;} |
| 14841 | ;; |
| 14842 | esac |
| 14843 | |
| 14844 | |
| 14845 | case $ac_file$ac_mode in |
| 14846 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 14847 | # are listed without --file. Let's play safe and only enable the eval |
| 14848 | # if we detect the quoting. |
| 14849 | case $CONFIG_FILES in |
| 14850 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 14851 | *) set x $CONFIG_FILES ;; |
| 14852 | esac |
| 14853 | shift |
| 14854 | for mf |
| 14855 | do |
| 14856 | # Strip MF so we end up with the name of the file. |
| 14857 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 14858 | # Check whether this is an Automake generated Makefile or not. |
| 14859 | # We used to match only the files named `Makefile.in', but |
| 14860 | # some people rename them; so instead we look at the file content. |
| 14861 | # Grep'ing the first line is not enough: some people post-process |
| 14862 | # each Makefile.in and add a new line on top of each file to say so. |
| 14863 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 14864 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 14865 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 14866 | dirpart=`$as_dirname -- "$mf" || |
| 14867 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14868 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 14869 | X"$mf" : 'X\(//\)$' \| \ |
| 14870 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 14871 | echo X"$mf" | |
| 14872 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14873 | s//\1/ |
| 14874 | q |
| 14875 | } |
| 14876 | /^X\(\/\/\)[^/].*/{ |
| 14877 | s//\1/ |
| 14878 | q |
| 14879 | } |
| 14880 | /^X\(\/\/\)$/{ |
| 14881 | s//\1/ |
| 14882 | q |
| 14883 | } |
| 14884 | /^X\(\/\).*/{ |
| 14885 | s//\1/ |
| 14886 | q |
| 14887 | } |
| 14888 | s/.*/./; q'` |
| 14889 | else |
| 14890 | continue |
| 14891 | fi |
| 14892 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 14893 | # from the Makefile without running `make'. |
| 14894 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 14895 | test -z "$DEPDIR" && continue |
| 14896 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 14897 | test -z "am__include" && continue |
| 14898 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 14899 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 14900 | U=`sed -n 's/^U = //p' < "$mf"` |
| 14901 | # Find all dependency output files, they are included files with |
| 14902 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 14903 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 14904 | # expansion. |
| 14905 | for file in `sed -n " |
| 14906 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 14907 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 14908 | # Make sure the directory exists. |
| 14909 | test -f "$dirpart/$file" && continue |
| 14910 | fdir=`$as_dirname -- "$file" || |
| 14911 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14912 | X"$file" : 'X\(//\)[^/]' \| \ |
| 14913 | X"$file" : 'X\(//\)$' \| \ |
| 14914 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 14915 | echo X"$file" | |
| 14916 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14917 | s//\1/ |
| 14918 | q |
| 14919 | } |
| 14920 | /^X\(\/\/\)[^/].*/{ |
| 14921 | s//\1/ |
| 14922 | q |
| 14923 | } |
| 14924 | /^X\(\/\/\)$/{ |
| 14925 | s//\1/ |
| 14926 | q |
| 14927 | } |
| 14928 | /^X\(\/\).*/{ |
| 14929 | s//\1/ |
| 14930 | q |
| 14931 | } |
| 14932 | s/.*/./; q'` |
| 14933 | { as_dir=$dirpart/$fdir |
| 14934 | case $as_dir in #( |
| 14935 | -*) as_dir=./$as_dir;; |
| 14936 | esac |
| 14937 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 14938 | as_dirs= |
| 14939 | while :; do |
| 14940 | case $as_dir in #( |
| 14941 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 14942 | *) as_qdir=$as_dir;; |
| 14943 | esac |
| 14944 | as_dirs="'$as_qdir' $as_dirs" |
| 14945 | as_dir=`$as_dirname -- "$as_dir" || |
| 14946 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14947 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14948 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14949 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14950 | echo X"$as_dir" | |
| 14951 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14952 | s//\1/ |
| 14953 | q |
| 14954 | } |
| 14955 | /^X\(\/\/\)[^/].*/{ |
| 14956 | s//\1/ |
| 14957 | q |
| 14958 | } |
| 14959 | /^X\(\/\/\)$/{ |
| 14960 | s//\1/ |
| 14961 | q |
| 14962 | } |
| 14963 | /^X\(\/\).*/{ |
| 14964 | s//\1/ |
| 14965 | q |
| 14966 | } |
| 14967 | s/.*/./; q'` |
| 14968 | test -d "$as_dir" && break |
| 14969 | done |
| 14970 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 14971 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 14972 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 14973 | { (exit 1); exit 1; }; }; } |
| 14974 | # echo "creating $dirpart/$file" |
| 14975 | echo '# dummy' > "$dirpart/$file" |
| 14976 | done |
| 14977 | done |
| 14978 | ;; |
| 14979 | "libtool":C) |
| 14980 | |
| 14981 | # See if we are running on zsh, and set the options which allow our |
| 14982 | # commands through without removal of \ escapes. |
| 14983 | if test -n "${ZSH_VERSION+set}" ; then |
| 14984 | setopt NO_GLOB_SUBST |
| 14985 | fi |
| 14986 | |
| 14987 | cfgfile="${ofile}T" |
| 14988 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 14989 | $RM "$cfgfile" |
| 14990 | |
| 14991 | cat <<_LT_EOF >> "$cfgfile" |
| 14992 | #! $SHELL |
| 14993 | |
| 14994 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 14995 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 14996 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14997 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 14998 | # |
| 14999 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 15000 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 15001 | # Written by Gordon Matzigkeit, 1996 |
| 15002 | # |
| 15003 | # This file is part of GNU Libtool. |
| 15004 | # |
| 15005 | # GNU Libtool is free software; you can redistribute it and/or |
| 15006 | # modify it under the terms of the GNU General Public License as |
| 15007 | # published by the Free Software Foundation; either version 2 of |
| 15008 | # the License, or (at your option) any later version. |
| 15009 | # |
| 15010 | # As a special exception to the GNU General Public License, |
| 15011 | # if you distribute this file as part of a program or library that |
| 15012 | # is built using GNU Libtool, you may include this file under the |
| 15013 | # same distribution terms that you use for the rest of that program. |
| 15014 | # |
| 15015 | # GNU Libtool is distributed in the hope that it will be useful, |
| 15016 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15017 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15018 | # GNU General Public License for more details. |
| 15019 | # |
| 15020 | # You should have received a copy of the GNU General Public License |
| 15021 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 15022 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 15023 | # obtained by writing to the Free Software Foundation, Inc., |
| 15024 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 15025 | |
| 15026 | |
| 15027 | # The names of the tagged configurations supported by this script. |
| 15028 | available_tags="" |
| 15029 | |
| 15030 | # ### BEGIN LIBTOOL CONFIG |
| 15031 | |
| 15032 | # Assembler program. |
| 15033 | AS=$AS |
| 15034 | |
| 15035 | # DLL creation program. |
| 15036 | DLLTOOL=$DLLTOOL |
| 15037 | |
| 15038 | # Object dumper program. |
| 15039 | OBJDUMP=$OBJDUMP |
| 15040 | |
| 15041 | # Which release of libtool.m4 was used? |
| 15042 | macro_version=$macro_version |
| 15043 | macro_revision=$macro_revision |
| 15044 | |
| 15045 | # Whether or not to build shared libraries. |
| 15046 | build_libtool_libs=$enable_shared |
| 15047 | |
| 15048 | # Whether or not to build static libraries. |
| 15049 | build_old_libs=$enable_static |
| 15050 | |
| 15051 | # What type of objects to build. |
| 15052 | pic_mode=$pic_mode |
| 15053 | |
| 15054 | # Whether or not to optimize for fast installation. |
| 15055 | fast_install=$enable_fast_install |
| 15056 | |
| 15057 | # The host system. |
| 15058 | host_alias=$host_alias |
| 15059 | host=$host |
| 15060 | host_os=$host_os |
| 15061 | |
| 15062 | # The build system. |
| 15063 | build_alias=$build_alias |
| 15064 | build=$build |
| 15065 | build_os=$build_os |
| 15066 | |
| 15067 | # A sed program that does not truncate output. |
| 15068 | SED=$lt_SED |
| 15069 | |
| 15070 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 15071 | Xsed="\$SED -e 1s/^X//" |
| 15072 | |
| 15073 | # A grep program that handles long lines. |
| 15074 | GREP=$lt_GREP |
| 15075 | |
| 15076 | # An ERE matcher. |
| 15077 | EGREP=$lt_EGREP |
| 15078 | |
| 15079 | # A literal string matcher. |
| 15080 | FGREP=$lt_FGREP |
| 15081 | |
| 15082 | # A BSD- or MS-compatible name lister. |
| 15083 | NM=$lt_NM |
| 15084 | |
| 15085 | # Whether we need soft or hard links. |
| 15086 | LN_S=$lt_LN_S |
| 15087 | |
| 15088 | # What is the maximum length of a command? |
| 15089 | max_cmd_len=$max_cmd_len |
| 15090 | |
| 15091 | # Object file suffix (normally "o"). |
| 15092 | objext=$ac_objext |
| 15093 | |
| 15094 | # Executable file suffix (normally ""). |
| 15095 | exeext=$exeext |
| 15096 | |
| 15097 | # whether the shell understands "unset". |
| 15098 | lt_unset=$lt_unset |
| 15099 | |
| 15100 | # turn spaces into newlines. |
| 15101 | SP2NL=$lt_lt_SP2NL |
| 15102 | |
| 15103 | # turn newlines into spaces. |
| 15104 | NL2SP=$lt_lt_NL2SP |
| 15105 | |
| 15106 | # How to create reloadable object files. |
| 15107 | reload_flag=$lt_reload_flag |
| 15108 | reload_cmds=$lt_reload_cmds |
| 15109 | |
| 15110 | # Method to check whether dependent libraries are shared objects. |
| 15111 | deplibs_check_method=$lt_deplibs_check_method |
| 15112 | |
| 15113 | # Command to use when deplibs_check_method == "file_magic". |
| 15114 | file_magic_cmd=$lt_file_magic_cmd |
| 15115 | |
| 15116 | # The archiver. |
| 15117 | AR=$lt_AR |
| 15118 | AR_FLAGS=$lt_AR_FLAGS |
| 15119 | |
| 15120 | # A symbol stripping program. |
| 15121 | STRIP=$lt_STRIP |
| 15122 | |
| 15123 | # Commands used to install an old-style archive. |
| 15124 | RANLIB=$lt_RANLIB |
| 15125 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 15126 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 15127 | |
| 15128 | # A C compiler. |
| 15129 | LTCC=$lt_CC |
| 15130 | |
| 15131 | # LTCC compiler flags. |
| 15132 | LTCFLAGS=$lt_CFLAGS |
| 15133 | |
| 15134 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 15135 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 15136 | |
| 15137 | # Transform the output of nm in a proper C declaration. |
| 15138 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 15139 | |
| 15140 | # Transform the output of nm in a C name address pair. |
| 15141 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 15142 | |
| 15143 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 15144 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 15145 | |
| 15146 | # The name of the directory that contains temporary libtool files. |
| 15147 | objdir=$objdir |
| 15148 | |
| 15149 | # Shell to use when invoking shell scripts. |
| 15150 | SHELL=$lt_SHELL |
| 15151 | |
| 15152 | # An echo program that does not interpret backslashes. |
| 15153 | ECHO=$lt_ECHO |
| 15154 | |
| 15155 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 15156 | MAGIC_CMD=$MAGIC_CMD |
| 15157 | |
| 15158 | # Must we lock files when doing compilation? |
| 15159 | need_locks=$lt_need_locks |
| 15160 | |
| 15161 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 15162 | DSYMUTIL=$lt_DSYMUTIL |
| 15163 | |
| 15164 | # Tool to change global to local symbols on Mac OS X. |
| 15165 | NMEDIT=$lt_NMEDIT |
| 15166 | |
| 15167 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 15168 | LIPO=$lt_LIPO |
| 15169 | |
| 15170 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 15171 | OTOOL=$lt_OTOOL |
| 15172 | |
| 15173 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 15174 | OTOOL64=$lt_OTOOL64 |
| 15175 | |
| 15176 | # Old archive suffix (normally "a"). |
| 15177 | libext=$libext |
| 15178 | |
| 15179 | # Shared library suffix (normally ".so"). |
| 15180 | shrext_cmds=$lt_shrext_cmds |
| 15181 | |
| 15182 | # The commands to extract the exported symbol list from a shared archive. |
| 15183 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 15184 | |
| 15185 | # Variables whose values should be saved in libtool wrapper scripts and |
| 15186 | # restored at link time. |
| 15187 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 15188 | |
| 15189 | # Do we need the "lib" prefix for modules? |
| 15190 | need_lib_prefix=$need_lib_prefix |
| 15191 | |
| 15192 | # Do we need a version for libraries? |
| 15193 | need_version=$need_version |
| 15194 | |
| 15195 | # Library versioning type. |
| 15196 | version_type=$version_type |
| 15197 | |
| 15198 | # Shared library runtime path variable. |
| 15199 | runpath_var=$runpath_var |
| 15200 | |
| 15201 | # Shared library path variable. |
| 15202 | shlibpath_var=$shlibpath_var |
| 15203 | |
| 15204 | # Is shlibpath searched before the hard-coded library search path? |
| 15205 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 15206 | |
| 15207 | # Format of library name prefix. |
| 15208 | libname_spec=$lt_libname_spec |
| 15209 | |
| 15210 | # List of archive names. First name is the real one, the rest are links. |
| 15211 | # The last name is the one that the linker finds with -lNAME |
| 15212 | library_names_spec=$lt_library_names_spec |
| 15213 | |
| 15214 | # The coded name of the library, if different from the real name. |
| 15215 | soname_spec=$lt_soname_spec |
| 15216 | |
| 15217 | # Command to use after installation of a shared archive. |
| 15218 | postinstall_cmds=$lt_postinstall_cmds |
| 15219 | |
| 15220 | # Command to use after uninstallation of a shared archive. |
| 15221 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15222 | |
| 15223 | # Commands used to finish a libtool library installation in a directory. |
| 15224 | finish_cmds=$lt_finish_cmds |
| 15225 | |
| 15226 | # As "finish_cmds", except a single script fragment to be evaled but |
| 15227 | # not shown. |
| 15228 | finish_eval=$lt_finish_eval |
| 15229 | |
| 15230 | # Whether we should hardcode library paths into libraries. |
| 15231 | hardcode_into_libs=$hardcode_into_libs |
| 15232 | |
| 15233 | # Compile-time system search path for libraries. |
| 15234 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 15235 | |
| 15236 | # Run-time system search path for libraries. |
| 15237 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 15238 | |
| 15239 | # Whether dlopen is supported. |
| 15240 | dlopen_support=$enable_dlopen |
| 15241 | |
| 15242 | # Whether dlopen of programs is supported. |
| 15243 | dlopen_self=$enable_dlopen_self |
| 15244 | |
| 15245 | # Whether dlopen of statically linked programs is supported. |
| 15246 | dlopen_self_static=$enable_dlopen_self_static |
| 15247 | |
| 15248 | # Commands to strip libraries. |
| 15249 | old_striplib=$lt_old_striplib |
| 15250 | striplib=$lt_striplib |
| 15251 | |
| 15252 | |
| 15253 | # The linker used to build libraries. |
| 15254 | LD=$lt_LD |
| 15255 | |
| 15256 | # Commands used to build an old-style archive. |
| 15257 | old_archive_cmds=$lt_old_archive_cmds |
| 15258 | |
| 15259 | # A language specific compiler. |
| 15260 | CC=$lt_compiler |
| 15261 | |
| 15262 | # Is the compiler the GNU compiler? |
| 15263 | with_gcc=$GCC |
| 15264 | |
| 15265 | # Compiler flag to turn off builtin functions. |
| 15266 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 15267 | |
| 15268 | # How to pass a linker flag through the compiler. |
| 15269 | wl=$lt_lt_prog_compiler_wl |
| 15270 | |
| 15271 | # Additional compiler flags for building library objects. |
| 15272 | pic_flag=$lt_lt_prog_compiler_pic |
| 15273 | |
| 15274 | # Compiler flag to prevent dynamic linking. |
| 15275 | link_static_flag=$lt_lt_prog_compiler_static |
| 15276 | |
| 15277 | # Does compiler simultaneously support -c and -o options? |
| 15278 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 15279 | |
| 15280 | # Whether or not to add -lc for building shared libraries. |
| 15281 | build_libtool_need_lc=$archive_cmds_need_lc |
| 15282 | |
| 15283 | # Whether or not to disallow shared libs when runtime libs are static. |
| 15284 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 15285 | |
| 15286 | # Compiler flag to allow reflexive dlopens. |
| 15287 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 15288 | |
| 15289 | # Compiler flag to generate shared objects directly from archives. |
| 15290 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 15291 | |
| 15292 | # Whether the compiler copes with passing no objects directly. |
| 15293 | compiler_needs_object=$lt_compiler_needs_object |
| 15294 | |
| 15295 | # Create an old-style archive from a shared archive. |
| 15296 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 15297 | |
| 15298 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15299 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 15300 | |
| 15301 | # Commands used to build a shared archive. |
| 15302 | archive_cmds=$lt_archive_cmds |
| 15303 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 15304 | |
| 15305 | # Commands used to build a loadable module if different from building |
| 15306 | # a shared archive. |
| 15307 | module_cmds=$lt_module_cmds |
| 15308 | module_expsym_cmds=$lt_module_expsym_cmds |
| 15309 | |
| 15310 | # Whether we are building with GNU ld or not. |
| 15311 | with_gnu_ld=$lt_with_gnu_ld |
| 15312 | |
| 15313 | # Flag that allows shared libraries with undefined symbols to be built. |
| 15314 | allow_undefined_flag=$lt_allow_undefined_flag |
| 15315 | |
| 15316 | # Flag that enforces no undefined symbols. |
| 15317 | no_undefined_flag=$lt_no_undefined_flag |
| 15318 | |
| 15319 | # Flag to hardcode \$libdir into a binary during linking. |
| 15320 | # This must work even if \$libdir does not exist |
| 15321 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 15322 | |
| 15323 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 15324 | # during linking. This must work even if \$libdir does not exist. |
| 15325 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 15326 | |
| 15327 | # Whether we need a single "-rpath" flag with a separated argument. |
| 15328 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 15329 | |
| 15330 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 15331 | # DIR into the resulting binary. |
| 15332 | hardcode_direct=$hardcode_direct |
| 15333 | |
| 15334 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 15335 | # DIR into the resulting binary and the resulting library dependency is |
| 15336 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 15337 | # library is relocated. |
| 15338 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 15339 | |
| 15340 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 15341 | # into the resulting binary. |
| 15342 | hardcode_minus_L=$hardcode_minus_L |
| 15343 | |
| 15344 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 15345 | # into the resulting binary. |
| 15346 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 15347 | |
| 15348 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 15349 | # into the library and all subsequent libraries and executables linked |
| 15350 | # against it. |
| 15351 | hardcode_automatic=$hardcode_automatic |
| 15352 | |
| 15353 | # Set to yes if linker adds runtime paths of dependent libraries |
| 15354 | # to runtime path list. |
| 15355 | inherit_rpath=$inherit_rpath |
| 15356 | |
| 15357 | # Whether libtool must link a program against all its dependency libraries. |
| 15358 | link_all_deplibs=$link_all_deplibs |
| 15359 | |
| 15360 | # Fix the shell variable \$srcfile for the compiler. |
| 15361 | fix_srcfile_path=$lt_fix_srcfile_path |
| 15362 | |
| 15363 | # Set to "yes" if exported symbols are required. |
| 15364 | always_export_symbols=$always_export_symbols |
| 15365 | |
| 15366 | # The commands to list exported symbols. |
| 15367 | export_symbols_cmds=$lt_export_symbols_cmds |
| 15368 | |
| 15369 | # Symbols that should not be listed in the preloaded symbols. |
| 15370 | exclude_expsyms=$lt_exclude_expsyms |
| 15371 | |
| 15372 | # Symbols that must always be exported. |
| 15373 | include_expsyms=$lt_include_expsyms |
| 15374 | |
| 15375 | # Commands necessary for linking programs (against libraries) with templates. |
| 15376 | prelink_cmds=$lt_prelink_cmds |
| 15377 | |
| 15378 | # Specify filename containing input files. |
| 15379 | file_list_spec=$lt_file_list_spec |
| 15380 | |
| 15381 | # How to hardcode a shared library path into an executable. |
| 15382 | hardcode_action=$hardcode_action |
| 15383 | |
| 15384 | # ### END LIBTOOL CONFIG |
| 15385 | |
| 15386 | _LT_EOF |
| 15387 | |
| 15388 | case $host_os in |
| 15389 | aix3*) |
| 15390 | cat <<\_LT_EOF >> "$cfgfile" |
| 15391 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 15392 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 15393 | # vanish in a puff of smoke. |
| 15394 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 15395 | COLLECT_NAMES= |
| 15396 | export COLLECT_NAMES |
| 15397 | fi |
| 15398 | _LT_EOF |
| 15399 | ;; |
| 15400 | esac |
| 15401 | |
| 15402 | |
| 15403 | ltmain="$ac_aux_dir/ltmain.sh" |
| 15404 | |
| 15405 | |
| 15406 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 15407 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 15408 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 15409 | # is reportedly fixed, but why not run on old versions too? |
| 15410 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 15411 | || (rm -f "$cfgfile"; exit 1) |
| 15412 | |
| 15413 | case $xsi_shell in |
| 15414 | yes) |
| 15415 | cat << \_LT_EOF >> "$cfgfile" |
| 15416 | |
| 15417 | # func_dirname file append nondir_replacement |
| 15418 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 15419 | # otherwise set result to NONDIR_REPLACEMENT. |
| 15420 | func_dirname () |
| 15421 | { |
| 15422 | case ${1} in |
| 15423 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 15424 | * ) func_dirname_result="${3}" ;; |
| 15425 | esac |
| 15426 | } |
| 15427 | |
| 15428 | # func_basename file |
| 15429 | func_basename () |
| 15430 | { |
| 15431 | func_basename_result="${1##*/}" |
| 15432 | } |
| 15433 | |
| 15434 | # func_dirname_and_basename file append nondir_replacement |
| 15435 | # perform func_basename and func_dirname in a single function |
| 15436 | # call: |
| 15437 | # dirname: Compute the dirname of FILE. If nonempty, |
| 15438 | # add APPEND to the result, otherwise set result |
| 15439 | # to NONDIR_REPLACEMENT. |
| 15440 | # value returned in "$func_dirname_result" |
| 15441 | # basename: Compute filename of FILE. |
| 15442 | # value retuned in "$func_basename_result" |
| 15443 | # Implementation must be kept synchronized with func_dirname |
| 15444 | # and func_basename. For efficiency, we do not delegate to |
| 15445 | # those functions but instead duplicate the functionality here. |
| 15446 | func_dirname_and_basename () |
| 15447 | { |
| 15448 | case ${1} in |
| 15449 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 15450 | * ) func_dirname_result="${3}" ;; |
| 15451 | esac |
| 15452 | func_basename_result="${1##*/}" |
| 15453 | } |
| 15454 | |
| 15455 | # func_stripname prefix suffix name |
| 15456 | # strip PREFIX and SUFFIX off of NAME. |
| 15457 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 15458 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 15459 | # dot (in which case that matches only a dot). |
| 15460 | func_stripname () |
| 15461 | { |
| 15462 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 15463 | # positional parameters, so assign one to ordinary parameter first. |
| 15464 | func_stripname_result=${3} |
| 15465 | func_stripname_result=${func_stripname_result#"${1}"} |
| 15466 | func_stripname_result=${func_stripname_result%"${2}"} |
| 15467 | } |
| 15468 | |
| 15469 | # func_opt_split |
| 15470 | func_opt_split () |
| 15471 | { |
| 15472 | func_opt_split_opt=${1%%=*} |
| 15473 | func_opt_split_arg=${1#*=} |
| 15474 | } |
| 15475 | |
| 15476 | # func_lo2o object |
| 15477 | func_lo2o () |
| 15478 | { |
| 15479 | case ${1} in |
| 15480 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 15481 | *) func_lo2o_result=${1} ;; |
| 15482 | esac |
| 15483 | } |
| 15484 | |
| 15485 | # func_xform libobj-or-source |
| 15486 | func_xform () |
| 15487 | { |
| 15488 | func_xform_result=${1%.*}.lo |
| 15489 | } |
| 15490 | |
| 15491 | # func_arith arithmetic-term... |
| 15492 | func_arith () |
| 15493 | { |
| 15494 | func_arith_result=$(( $* )) |
| 15495 | } |
| 15496 | |
| 15497 | # func_len string |
| 15498 | # STRING may not start with a hyphen. |
| 15499 | func_len () |
| 15500 | { |
| 15501 | func_len_result=${#1} |
| 15502 | } |
| 15503 | |
| 15504 | _LT_EOF |
| 15505 | ;; |
| 15506 | *) # Bourne compatible functions. |
| 15507 | cat << \_LT_EOF >> "$cfgfile" |
| 15508 | |
| 15509 | # func_dirname file append nondir_replacement |
| 15510 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 15511 | # otherwise set result to NONDIR_REPLACEMENT. |
| 15512 | func_dirname () |
| 15513 | { |
| 15514 | # Extract subdirectory from the argument. |
| 15515 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 15516 | if test "X$func_dirname_result" = "X${1}"; then |
| 15517 | func_dirname_result="${3}" |
| 15518 | else |
| 15519 | func_dirname_result="$func_dirname_result${2}" |
| 15520 | fi |
| 15521 | } |
| 15522 | |
| 15523 | # func_basename file |
| 15524 | func_basename () |
| 15525 | { |
| 15526 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 15527 | } |
| 15528 | |
| 15529 | |
| 15530 | # func_stripname prefix suffix name |
| 15531 | # strip PREFIX and SUFFIX off of NAME. |
| 15532 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 15533 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 15534 | # dot (in which case that matches only a dot). |
| 15535 | # func_strip_suffix prefix name |
| 15536 | func_stripname () |
| 15537 | { |
| 15538 | case ${2} in |
| 15539 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 15540 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 15541 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 15542 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 15543 | esac |
| 15544 | } |
| 15545 | |
| 15546 | # sed scripts: |
| 15547 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 15548 | my_sed_long_arg='1s/^-[^=]*=//' |
| 15549 | |
| 15550 | # func_opt_split |
| 15551 | func_opt_split () |
| 15552 | { |
| 15553 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 15554 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 15555 | } |
| 15556 | |
| 15557 | # func_lo2o object |
| 15558 | func_lo2o () |
| 15559 | { |
| 15560 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 15561 | } |
| 15562 | |
| 15563 | # func_xform libobj-or-source |
| 15564 | func_xform () |
| 15565 | { |
| 15566 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 15567 | } |
| 15568 | |
| 15569 | # func_arith arithmetic-term... |
| 15570 | func_arith () |
| 15571 | { |
| 15572 | func_arith_result=`expr "$@"` |
| 15573 | } |
| 15574 | |
| 15575 | # func_len string |
| 15576 | # STRING may not start with a hyphen. |
| 15577 | func_len () |
| 15578 | { |
| 15579 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 15580 | } |
| 15581 | |
| 15582 | _LT_EOF |
| 15583 | esac |
| 15584 | |
| 15585 | case $lt_shell_append in |
| 15586 | yes) |
| 15587 | cat << \_LT_EOF >> "$cfgfile" |
| 15588 | |
| 15589 | # func_append var value |
| 15590 | # Append VALUE to the end of shell variable VAR. |
| 15591 | func_append () |
| 15592 | { |
| 15593 | eval "$1+=\$2" |
| 15594 | } |
| 15595 | _LT_EOF |
| 15596 | ;; |
| 15597 | *) |
| 15598 | cat << \_LT_EOF >> "$cfgfile" |
| 15599 | |
| 15600 | # func_append var value |
| 15601 | # Append VALUE to the end of shell variable VAR. |
| 15602 | func_append () |
| 15603 | { |
| 15604 | eval "$1=\$$1\$2" |
| 15605 | } |
| 15606 | |
| 15607 | _LT_EOF |
| 15608 | ;; |
| 15609 | esac |
| 15610 | |
| 15611 | |
| 15612 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 15613 | || (rm -f "$cfgfile"; exit 1) |
| 15614 | |
| 15615 | mv -f "$cfgfile" "$ofile" || |
| 15616 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 15617 | chmod +x "$ofile" |
| 15618 | |
| 15619 | ;; |
| 15620 | |
| 15621 | esac |
| 15622 | done # for ac_tag |
| 15623 | |
| 15624 | |
| 15625 | { (exit 0); exit 0; } |
| 15626 | _ACEOF |
| 15627 | chmod +x $CONFIG_STATUS |
| 15628 | ac_clean_files=$ac_clean_files_save |
| 15629 | |
| 15630 | |
| 15631 | # configure is writing to config.log, and then calls config.status. |
| 15632 | # config.status does its own redirection, appending to config.log. |
| 15633 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15634 | # by configure, so config.status won't be able to write to it; its |
| 15635 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15636 | # effectively closing config.log, so it can be properly (re)opened and |
| 15637 | # appended to by config.status. When coming back to configure, we |
| 15638 | # need to make the FD available again. |
| 15639 | if test "$no_create" != yes; then |
| 15640 | ac_cs_success=: |
| 15641 | ac_config_status_args= |
| 15642 | test "$silent" = yes && |
| 15643 | ac_config_status_args="$ac_config_status_args --quiet" |
| 15644 | exec 5>/dev/null |
| 15645 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 15646 | exec 5>>config.log |
| 15647 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15648 | # would make configure fail if this is the last instruction. |
| 15649 | $ac_cs_success || { (exit 1); exit 1; } |
| 15650 | fi |
| 15651 | |