Parent Directory
|
Revision Log
Tests cleanup: use -C in RunTest; add /Z to pcretest and make test 3 independent of link size.
| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.61 for PCRE 7.1-RC1. |
| 4 | # |
| 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
| 13 | # Be more Bourne compatible |
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
| 21 | setopt NO_GLOB_SUBST |
| 22 | else |
| 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
| 25 | esac |
| 26 | |
| 27 | fi |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | # PATH needs CR |
| 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
| 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
| 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
| 58 | fi |
| 59 | |
| 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
| 66 | as_nl=' |
| 67 | ' |
| 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
| 71 | case $0 in |
| 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
| 80 | IFS=$as_save_IFS |
| 81 | |
| 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
| 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
| 92 | fi |
| 93 | |
| 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
| 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
| 107 | do |
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
| 110 | else |
| 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 112 | fi |
| 113 | done |
| 114 | |
| 115 | # Required to use basename. |
| 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
| 130 | # Name of the executable. |
| 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 135 | echo X/"$0" | |
| 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
| 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
| 152 | |
| 153 | |
| 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
| 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
| 226 | case $as_dir in |
| 227 | /*) |
| 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 241 | emulate sh |
| 242 | NULLCMD=: |
| 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 244 | # is contrary to our usage. Disable this feature. |
| 245 | alias -g '${1+"$@"}'='"$@"' |
| 246 | setopt NO_GLOB_SUBST |
| 247 | else |
| 248 | case `(set -o) 2>/dev/null` in |
| 249 | *posix*) set -o posix ;; |
| 250 | esac |
| 251 | |
| 252 | fi |
| 253 | |
| 254 | |
| 255 | : |
| 256 | _ASEOF |
| 257 | }; then |
| 258 | CONFIG_SHELL=$as_shell |
| 259 | as_have_required=yes |
| 260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
| 269 | case `(set -o) 2>/dev/null` in |
| 270 | *posix*) set -o posix ;; |
| 271 | esac |
| 272 | |
| 273 | fi |
| 274 | |
| 275 | |
| 276 | : |
| 277 | (as_func_return () { |
| 278 | (exit $1) |
| 279 | } |
| 280 | as_func_success () { |
| 281 | as_func_return 0 |
| 282 | } |
| 283 | as_func_failure () { |
| 284 | as_func_return 1 |
| 285 | } |
| 286 | as_func_ret_success () { |
| 287 | return 0 |
| 288 | } |
| 289 | as_func_ret_failure () { |
| 290 | return 1 |
| 291 | } |
| 292 | |
| 293 | exitcode=0 |
| 294 | if as_func_success; then |
| 295 | : |
| 296 | else |
| 297 | exitcode=1 |
| 298 | echo as_func_success failed. |
| 299 | fi |
| 300 | |
| 301 | if as_func_failure; then |
| 302 | exitcode=1 |
| 303 | echo as_func_failure succeeded. |
| 304 | fi |
| 305 | |
| 306 | if as_func_ret_success; then |
| 307 | : |
| 308 | else |
| 309 | exitcode=1 |
| 310 | echo as_func_ret_success failed. |
| 311 | fi |
| 312 | |
| 313 | if as_func_ret_failure; then |
| 314 | exitcode=1 |
| 315 | echo as_func_ret_failure succeeded. |
| 316 | fi |
| 317 | |
| 318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 319 | : |
| 320 | else |
| 321 | exitcode=1 |
| 322 | echo positional parameters were not saved. |
| 323 | fi |
| 324 | |
| 325 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 326 | |
| 327 | ( |
| 328 | as_lineno_1=$LINENO |
| 329 | as_lineno_2=$LINENO |
| 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 332 | |
| 333 | _ASEOF |
| 334 | }; then |
| 335 | break |
| 336 | fi |
| 337 | |
| 338 | fi |
| 339 | |
| 340 | done |
| 341 | |
| 342 | if test "x$CONFIG_SHELL" != x; then |
| 343 | for as_var in BASH_ENV ENV |
| 344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 345 | done |
| 346 | export CONFIG_SHELL |
| 347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 348 | fi |
| 349 | |
| 350 | |
| 351 | if test $as_have_required = no; then |
| 352 | echo This script requires a shell more modern than all the |
| 353 | echo shells that I found on your system. Please install a |
| 354 | echo modern shell, or manually run the script under such a |
| 355 | echo shell if you do have one. |
| 356 | { (exit 1); exit 1; } |
| 357 | fi |
| 358 | |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | fi |
| 363 | |
| 364 | |
| 365 | |
| 366 | (eval "as_func_return () { |
| 367 | (exit \$1) |
| 368 | } |
| 369 | as_func_success () { |
| 370 | as_func_return 0 |
| 371 | } |
| 372 | as_func_failure () { |
| 373 | as_func_return 1 |
| 374 | } |
| 375 | as_func_ret_success () { |
| 376 | return 0 |
| 377 | } |
| 378 | as_func_ret_failure () { |
| 379 | return 1 |
| 380 | } |
| 381 | |
| 382 | exitcode=0 |
| 383 | if as_func_success; then |
| 384 | : |
| 385 | else |
| 386 | exitcode=1 |
| 387 | echo as_func_success failed. |
| 388 | fi |
| 389 | |
| 390 | if as_func_failure; then |
| 391 | exitcode=1 |
| 392 | echo as_func_failure succeeded. |
| 393 | fi |
| 394 | |
| 395 | if as_func_ret_success; then |
| 396 | : |
| 397 | else |
| 398 | exitcode=1 |
| 399 | echo as_func_ret_success failed. |
| 400 | fi |
| 401 | |
| 402 | if as_func_ret_failure; then |
| 403 | exitcode=1 |
| 404 | echo as_func_ret_failure succeeded. |
| 405 | fi |
| 406 | |
| 407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 408 | : |
| 409 | else |
| 410 | exitcode=1 |
| 411 | echo positional parameters were not saved. |
| 412 | fi |
| 413 | |
| 414 | test \$exitcode = 0") || { |
| 415 | echo No shell found that supports shell functions. |
| 416 | echo Please tell autoconf@gnu.org about your system, |
| 417 | echo including any error possibly output before this |
| 418 | echo message |
| 419 | } |
| 420 | |
| 421 | |
| 422 | |
| 423 | as_lineno_1=$LINENO |
| 424 | as_lineno_2=$LINENO |
| 425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 427 | |
| 428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 429 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 430 | # line-number line after each line using $LINENO; the second 'sed' |
| 431 | # does the real work. The second script uses 'N' to pair each |
| 432 | # line-number line with the line containing $LINENO, and appends |
| 433 | # trailing '-' during substitution so that $LINENO is not a special |
| 434 | # case at line end. |
| 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 438 | sed -n ' |
| 439 | p |
| 440 | /[$]LINENO/= |
| 441 | ' <$as_myself | |
| 442 | sed ' |
| 443 | s/[$]LINENO.*/&-/ |
| 444 | t lineno |
| 445 | b |
| 446 | :lineno |
| 447 | N |
| 448 | :loop |
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 450 | t loop |
| 451 | s/-\n.*// |
| 452 | ' >$as_me.lineno && |
| 453 | chmod +x "$as_me.lineno" || |
| 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 455 | { (exit 1); exit 1; }; } |
| 456 | |
| 457 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 458 | # (the dirname of $[0] is not the place where we might find the |
| 459 | # original and so on. Autoconf is especially sensitive to this). |
| 460 | . "./$as_me.lineno" |
| 461 | # Exit status is that of the last command. |
| 462 | exit |
| 463 | } |
| 464 | |
| 465 | |
| 466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 467 | as_dirname=dirname |
| 468 | else |
| 469 | as_dirname=false |
| 470 | fi |
| 471 | |
| 472 | ECHO_C= ECHO_N= ECHO_T= |
| 473 | case `echo -n x` in |
| 474 | -n*) |
| 475 | case `echo 'x\c'` in |
| 476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 477 | *) ECHO_C='\c';; |
| 478 | esac;; |
| 479 | *) |
| 480 | ECHO_N='-n';; |
| 481 | esac |
| 482 | |
| 483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 485 | as_expr=expr |
| 486 | else |
| 487 | as_expr=false |
| 488 | fi |
| 489 | |
| 490 | rm -f conf$$ conf$$.exe conf$$.file |
| 491 | if test -d conf$$.dir; then |
| 492 | rm -f conf$$.dir/conf$$.file |
| 493 | else |
| 494 | rm -f conf$$.dir |
| 495 | mkdir conf$$.dir |
| 496 | fi |
| 497 | echo >conf$$.file |
| 498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 499 | as_ln_s='ln -s' |
| 500 | # ... but there are two gotchas: |
| 501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 503 | # In both cases, we have to default to `cp -p'. |
| 504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 505 | as_ln_s='cp -p' |
| 506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 507 | as_ln_s=ln |
| 508 | else |
| 509 | as_ln_s='cp -p' |
| 510 | fi |
| 511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 512 | rmdir conf$$.dir 2>/dev/null |
| 513 | |
| 514 | if mkdir -p . 2>/dev/null; then |
| 515 | as_mkdir_p=: |
| 516 | else |
| 517 | test -d ./-p && rmdir ./-p |
| 518 | as_mkdir_p=false |
| 519 | fi |
| 520 | |
| 521 | if test -x / >/dev/null 2>&1; then |
| 522 | as_test_x='test -x' |
| 523 | else |
| 524 | if ls -dL / >/dev/null 2>&1; then |
| 525 | as_ls_L_option=L |
| 526 | else |
| 527 | as_ls_L_option= |
| 528 | fi |
| 529 | as_test_x=' |
| 530 | eval sh -c '\'' |
| 531 | if test -d "$1"; then |
| 532 | test -d "$1/."; |
| 533 | else |
| 534 | case $1 in |
| 535 | -*)set "./$1";; |
| 536 | esac; |
| 537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 538 | ???[sx]*):;;*)false;;esac;fi |
| 539 | '\'' sh |
| 540 | ' |
| 541 | fi |
| 542 | as_executable_p=$as_test_x |
| 543 | |
| 544 | # Sed expression to map a string onto a valid CPP name. |
| 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 546 | |
| 547 | # Sed expression to map a string onto a valid variable name. |
| 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 549 | |
| 550 | |
| 551 | |
| 552 | |
| 553 | # Check that we are running under the correct shell. |
| 554 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 555 | |
| 556 | case X$ECHO in |
| 557 | X*--fallback-echo) |
| 558 | # Remove one level of quotation (which was required for Make). |
| 559 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 560 | ;; |
| 561 | esac |
| 562 | |
| 563 | echo=${ECHO-echo} |
| 564 | if test "X$1" = X--no-reexec; then |
| 565 | # Discard the --no-reexec flag, and continue. |
| 566 | shift |
| 567 | elif test "X$1" = X--fallback-echo; then |
| 568 | # Avoid inline document here, it may be left over |
| 569 | : |
| 570 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 571 | # Yippee, $echo works! |
| 572 | : |
| 573 | else |
| 574 | # Restart under the correct shell. |
| 575 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 576 | fi |
| 577 | |
| 578 | if test "X$1" = X--fallback-echo; then |
| 579 | # used as fallback echo |
| 580 | shift |
| 581 | cat <<EOF |
| 582 | $* |
| 583 | EOF |
| 584 | exit 0 |
| 585 | fi |
| 586 | |
| 587 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 588 | # if CDPATH is set. |
| 589 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 590 | |
| 591 | if test -z "$ECHO"; then |
| 592 | if test "X${echo_test_string+set}" != Xset; then |
| 593 | # find a string as large as possible, as long as the shell can cope with it |
| 594 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 595 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 596 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 597 | echo_test_string=`eval $cmd` && |
| 598 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 599 | then |
| 600 | break |
| 601 | fi |
| 602 | done |
| 603 | fi |
| 604 | |
| 605 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 606 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 607 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 608 | : |
| 609 | else |
| 610 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 611 | # backslashes. This makes it impossible to quote backslashes using |
| 612 | # echo "$something" | sed 's/\\/\\\\/g' |
| 613 | # |
| 614 | # So, first we look for a working echo in the user's PATH. |
| 615 | |
| 616 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 617 | for dir in $PATH /usr/ucb; do |
| 618 | IFS="$lt_save_ifs" |
| 619 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 620 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 621 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 622 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 623 | echo="$dir/echo" |
| 624 | break |
| 625 | fi |
| 626 | done |
| 627 | IFS="$lt_save_ifs" |
| 628 | |
| 629 | if test "X$echo" = Xecho; then |
| 630 | # We didn't find a better echo, so look for alternatives. |
| 631 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 632 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 633 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 634 | # This shell has a builtin print -r that does the trick. |
| 635 | echo='print -r' |
| 636 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 637 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 638 | # If we have ksh, try running configure again with it. |
| 639 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 640 | export ORIGINAL_CONFIG_SHELL |
| 641 | CONFIG_SHELL=/bin/ksh |
| 642 | export CONFIG_SHELL |
| 643 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 644 | else |
| 645 | # Try using printf. |
| 646 | echo='printf %s\n' |
| 647 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 648 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 649 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 650 | # Cool, printf works |
| 651 | : |
| 652 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 653 | test "X$echo_testing_string" = 'X\t' && |
| 654 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 655 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 656 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 657 | export CONFIG_SHELL |
| 658 | SHELL="$CONFIG_SHELL" |
| 659 | export SHELL |
| 660 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 661 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 662 | test "X$echo_testing_string" = 'X\t' && |
| 663 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 664 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 665 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 666 | else |
| 667 | # maybe with a smaller string... |
| 668 | prev=: |
| 669 | |
| 670 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 671 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 672 | then |
| 673 | break |
| 674 | fi |
| 675 | prev="$cmd" |
| 676 | done |
| 677 | |
| 678 | if test "$prev" != 'sed 50q "$0"'; then |
| 679 | echo_test_string=`eval $prev` |
| 680 | export echo_test_string |
| 681 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 682 | else |
| 683 | # Oops. We lost completely, so just stick with echo. |
| 684 | echo=echo |
| 685 | fi |
| 686 | fi |
| 687 | fi |
| 688 | fi |
| 689 | fi |
| 690 | fi |
| 691 | |
| 692 | # Copy echo and quote the copy suitably for passing to libtool from |
| 693 | # the Makefile, instead of quoting the original, which is used later. |
| 694 | ECHO=$echo |
| 695 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 696 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 697 | fi |
| 698 | |
| 699 | |
| 700 | |
| 701 | |
| 702 | tagnames=${tagnames+${tagnames},}CXX |
| 703 | |
| 704 | tagnames=${tagnames+${tagnames},}F77 |
| 705 | |
| 706 | exec 7<&0 </dev/null 6>&1 |
| 707 | |
| 708 | # Name of the host. |
| 709 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 710 | # so uname gets run too. |
| 711 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 712 | |
| 713 | # |
| 714 | # Initializations. |
| 715 | # |
| 716 | ac_default_prefix=/usr/local |
| 717 | ac_clean_files= |
| 718 | ac_config_libobj_dir=. |
| 719 | LIBOBJS= |
| 720 | cross_compiling=no |
| 721 | subdirs= |
| 722 | MFLAGS= |
| 723 | MAKEFLAGS= |
| 724 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 725 | |
| 726 | # Identity of this package. |
| 727 | PACKAGE_NAME='PCRE' |
| 728 | PACKAGE_TARNAME='pcre' |
| 729 | PACKAGE_VERSION='7.1-RC1' |
| 730 | PACKAGE_STRING='PCRE 7.1-RC1' |
| 731 | PACKAGE_BUGREPORT='' |
| 732 | |
| 733 | ac_unique_file="pcre.h.in" |
| 734 | # Factoring default headers for most tests. |
| 735 | ac_includes_default="\ |
| 736 | #include <stdio.h> |
| 737 | #ifdef HAVE_SYS_TYPES_H |
| 738 | # include <sys/types.h> |
| 739 | #endif |
| 740 | #ifdef HAVE_SYS_STAT_H |
| 741 | # include <sys/stat.h> |
| 742 | #endif |
| 743 | #ifdef STDC_HEADERS |
| 744 | # include <stdlib.h> |
| 745 | # include <stddef.h> |
| 746 | #else |
| 747 | # ifdef HAVE_STDLIB_H |
| 748 | # include <stdlib.h> |
| 749 | # endif |
| 750 | #endif |
| 751 | #ifdef HAVE_STRING_H |
| 752 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 753 | # include <memory.h> |
| 754 | # endif |
| 755 | # include <string.h> |
| 756 | #endif |
| 757 | #ifdef HAVE_STRINGS_H |
| 758 | # include <strings.h> |
| 759 | #endif |
| 760 | #ifdef HAVE_INTTYPES_H |
| 761 | # include <inttypes.h> |
| 762 | #endif |
| 763 | #ifdef HAVE_STDINT_H |
| 764 | # include <stdint.h> |
| 765 | #endif |
| 766 | #ifdef HAVE_UNISTD_H |
| 767 | # include <unistd.h> |
| 768 | #endif" |
| 769 | |
| 770 | ac_subst_vars='SHELL |
| 771 | PATH_SEPARATOR |
| 772 | PACKAGE_NAME |
| 773 | PACKAGE_TARNAME |
| 774 | PACKAGE_VERSION |
| 775 | PACKAGE_STRING |
| 776 | PACKAGE_BUGREPORT |
| 777 | exec_prefix |
| 778 | prefix |
| 779 | program_transform_name |
| 780 | bindir |
| 781 | sbindir |
| 782 | libexecdir |
| 783 | datarootdir |
| 784 | datadir |
| 785 | sysconfdir |
| 786 | sharedstatedir |
| 787 | localstatedir |
| 788 | includedir |
| 789 | oldincludedir |
| 790 | docdir |
| 791 | infodir |
| 792 | htmldir |
| 793 | dvidir |
| 794 | pdfdir |
| 795 | psdir |
| 796 | libdir |
| 797 | localedir |
| 798 | mandir |
| 799 | DEFS |
| 800 | ECHO_C |
| 801 | ECHO_N |
| 802 | ECHO_T |
| 803 | LIBS |
| 804 | build_alias |
| 805 | host_alias |
| 806 | target_alias |
| 807 | INSTALL_PROGRAM |
| 808 | INSTALL_SCRIPT |
| 809 | INSTALL_DATA |
| 810 | am__isrc |
| 811 | CYGPATH_W |
| 812 | PACKAGE |
| 813 | VERSION |
| 814 | ACLOCAL |
| 815 | AUTOCONF |
| 816 | AUTOMAKE |
| 817 | AUTOHEADER |
| 818 | MAKEINFO |
| 819 | install_sh |
| 820 | STRIP |
| 821 | INSTALL_STRIP_PROGRAM |
| 822 | mkdir_p |
| 823 | AWK |
| 824 | SET_MAKE |
| 825 | am__leading_dot |
| 826 | AMTAR |
| 827 | am__tar |
| 828 | am__untar |
| 829 | CC |
| 830 | CFLAGS |
| 831 | LDFLAGS |
| 832 | CPPFLAGS |
| 833 | ac_ct_CC |
| 834 | EXEEXT |
| 835 | OBJEXT |
| 836 | DEPDIR |
| 837 | am__include |
| 838 | am__quote |
| 839 | AMDEP_TRUE |
| 840 | AMDEP_FALSE |
| 841 | AMDEPBACKSLASH |
| 842 | CCDEPMODE |
| 843 | am__fastdepCC_TRUE |
| 844 | am__fastdepCC_FALSE |
| 845 | CXX |
| 846 | CXXFLAGS |
| 847 | ac_ct_CXX |
| 848 | CXXDEPMODE |
| 849 | am__fastdepCXX_TRUE |
| 850 | am__fastdepCXX_FALSE |
| 851 | build |
| 852 | build_cpu |
| 853 | build_vendor |
| 854 | build_os |
| 855 | host |
| 856 | host_cpu |
| 857 | host_vendor |
| 858 | host_os |
| 859 | GREP |
| 860 | EGREP |
| 861 | LN_S |
| 862 | ECHO |
| 863 | AR |
| 864 | RANLIB |
| 865 | DLLTOOL |
| 866 | AS |
| 867 | OBJDUMP |
| 868 | CPP |
| 869 | CXXCPP |
| 870 | F77 |
| 871 | FFLAGS |
| 872 | ac_ct_F77 |
| 873 | LIBTOOL |
| 874 | PCRE_MAJOR |
| 875 | PCRE_MINOR |
| 876 | PCRE_PRERELEASE |
| 877 | PCRE_DATE |
| 878 | pcre_have_type_traits |
| 879 | pcre_have_bits_type_traits |
| 880 | WITH_PCRE_CPP_TRUE |
| 881 | WITH_PCRE_CPP_FALSE |
| 882 | pcre_have_long_long |
| 883 | pcre_have_ulong_long |
| 884 | EXTRA_LIBPCRE_LDFLAGS |
| 885 | EXTRA_LIBPCREPOSIX_LDFLAGS |
| 886 | EXTRA_LIBPCRECPP_LDFLAGS |
| 887 | DISTCHECK_CONFIGURE_FLAGS |
| 888 | LIBOBJS |
| 889 | LTLIBOBJS' |
| 890 | ac_subst_files='' |
| 891 | ac_precious_vars='build_alias |
| 892 | host_alias |
| 893 | target_alias |
| 894 | CC |
| 895 | CFLAGS |
| 896 | LDFLAGS |
| 897 | LIBS |
| 898 | CPPFLAGS |
| 899 | CXX |
| 900 | CXXFLAGS |
| 901 | CCC |
| 902 | CPP |
| 903 | CXXCPP |
| 904 | F77 |
| 905 | FFLAGS' |
| 906 | |
| 907 | |
| 908 | # Initialize some variables set by options. |
| 909 | ac_init_help= |
| 910 | ac_init_version=false |
| 911 | # The variables have the same names as the options, with |
| 912 | # dashes changed to underlines. |
| 913 | cache_file=/dev/null |
| 914 | exec_prefix=NONE |
| 915 | no_create= |
| 916 | no_recursion= |
| 917 | prefix=NONE |
| 918 | program_prefix=NONE |
| 919 | program_suffix=NONE |
| 920 | program_transform_name=s,x,x, |
| 921 | silent= |
| 922 | site= |
| 923 | srcdir= |
| 924 | verbose= |
| 925 | x_includes=NONE |
| 926 | x_libraries=NONE |
| 927 | |
| 928 | # Installation directory options. |
| 929 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 930 | # and all the variables that are supposed to be based on exec_prefix |
| 931 | # by default will actually change. |
| 932 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 933 | # (The list follows the same order as the GNU Coding Standards.) |
| 934 | bindir='${exec_prefix}/bin' |
| 935 | sbindir='${exec_prefix}/sbin' |
| 936 | libexecdir='${exec_prefix}/libexec' |
| 937 | datarootdir='${prefix}/share' |
| 938 | datadir='${datarootdir}' |
| 939 | sysconfdir='${prefix}/etc' |
| 940 | sharedstatedir='${prefix}/com' |
| 941 | localstatedir='${prefix}/var' |
| 942 | includedir='${prefix}/include' |
| 943 | oldincludedir='/usr/include' |
| 944 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 945 | infodir='${datarootdir}/info' |
| 946 | htmldir='${docdir}' |
| 947 | dvidir='${docdir}' |
| 948 | pdfdir='${docdir}' |
| 949 | psdir='${docdir}' |
| 950 | libdir='${exec_prefix}/lib' |
| 951 | localedir='${datarootdir}/locale' |
| 952 | mandir='${datarootdir}/man' |
| 953 | |
| 954 | ac_prev= |
| 955 | ac_dashdash= |
| 956 | for ac_option |
| 957 | do |
| 958 | # If the previous option needs an argument, assign it. |
| 959 | if test -n "$ac_prev"; then |
| 960 | eval $ac_prev=\$ac_option |
| 961 | ac_prev= |
| 962 | continue |
| 963 | fi |
| 964 | |
| 965 | case $ac_option in |
| 966 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 967 | *) ac_optarg=yes ;; |
| 968 | esac |
| 969 | |
| 970 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 971 | |
| 972 | case $ac_dashdash$ac_option in |
| 973 | --) |
| 974 | ac_dashdash=yes ;; |
| 975 | |
| 976 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 977 | ac_prev=bindir ;; |
| 978 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 979 | bindir=$ac_optarg ;; |
| 980 | |
| 981 | -build | --build | --buil | --bui | --bu) |
| 982 | ac_prev=build_alias ;; |
| 983 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 984 | build_alias=$ac_optarg ;; |
| 985 | |
| 986 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 987 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 988 | ac_prev=cache_file ;; |
| 989 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 990 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 991 | cache_file=$ac_optarg ;; |
| 992 | |
| 993 | --config-cache | -C) |
| 994 | cache_file=config.cache ;; |
| 995 | |
| 996 | -datadir | --datadir | --datadi | --datad) |
| 997 | ac_prev=datadir ;; |
| 998 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 999 | datadir=$ac_optarg ;; |
| 1000 | |
| 1001 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1002 | | --dataroo | --dataro | --datar) |
| 1003 | ac_prev=datarootdir ;; |
| 1004 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1005 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1006 | datarootdir=$ac_optarg ;; |
| 1007 | |
| 1008 | -disable-* | --disable-*) |
| 1009 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1010 | # Reject names that are not valid shell variable names. |
| 1011 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1012 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1013 | { (exit 1); exit 1; }; } |
| 1014 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 1015 | eval enable_$ac_feature=no ;; |
| 1016 | |
| 1017 | -docdir | --docdir | --docdi | --doc | --do) |
| 1018 | ac_prev=docdir ;; |
| 1019 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1020 | docdir=$ac_optarg ;; |
| 1021 | |
| 1022 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1023 | ac_prev=dvidir ;; |
| 1024 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1025 | dvidir=$ac_optarg ;; |
| 1026 | |
| 1027 | -enable-* | --enable-*) |
| 1028 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1029 | # Reject names that are not valid shell variable names. |
| 1030 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1031 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1032 | { (exit 1); exit 1; }; } |
| 1033 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 1034 | eval enable_$ac_feature=\$ac_optarg ;; |
| 1035 | |
| 1036 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1037 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1038 | | --exec | --exe | --ex) |
| 1039 | ac_prev=exec_prefix ;; |
| 1040 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1041 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1042 | | --exec=* | --exe=* | --ex=*) |
| 1043 | exec_prefix=$ac_optarg ;; |
| 1044 | |
| 1045 | -gas | --gas | --ga | --g) |
| 1046 | # Obsolete; use --with-gas. |
| 1047 | with_gas=yes ;; |
| 1048 | |
| 1049 | -help | --help | --hel | --he | -h) |
| 1050 | ac_init_help=long ;; |
| 1051 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1052 | ac_init_help=recursive ;; |
| 1053 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1054 | ac_init_help=short ;; |
| 1055 | |
| 1056 | -host | --host | --hos | --ho) |
| 1057 | ac_prev=host_alias ;; |
| 1058 | -host=* | --host=* | --hos=* | --ho=*) |
| 1059 | host_alias=$ac_optarg ;; |
| 1060 | |
| 1061 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1062 | ac_prev=htmldir ;; |
| 1063 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1064 | | --ht=*) |
| 1065 | htmldir=$ac_optarg ;; |
| 1066 | |
| 1067 | -includedir | --includedir | --includedi | --included | --include \ |
| 1068 | | --includ | --inclu | --incl | --inc) |
| 1069 | ac_prev=includedir ;; |
| 1070 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1071 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1072 | includedir=$ac_optarg ;; |
| 1073 | |
| 1074 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1075 | ac_prev=infodir ;; |
| 1076 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1077 | infodir=$ac_optarg ;; |
| 1078 | |
| 1079 | -libdir | --libdir | --libdi | --libd) |
| 1080 | ac_prev=libdir ;; |
| 1081 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1082 | libdir=$ac_optarg ;; |
| 1083 | |
| 1084 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1085 | | --libexe | --libex | --libe) |
| 1086 | ac_prev=libexecdir ;; |
| 1087 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1088 | | --libexe=* | --libex=* | --libe=*) |
| 1089 | libexecdir=$ac_optarg ;; |
| 1090 | |
| 1091 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1092 | ac_prev=localedir ;; |
| 1093 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1094 | localedir=$ac_optarg ;; |
| 1095 | |
| 1096 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1097 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1098 | ac_prev=localstatedir ;; |
| 1099 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1100 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1101 | localstatedir=$ac_optarg ;; |
| 1102 | |
| 1103 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1104 | ac_prev=mandir ;; |
| 1105 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1106 | mandir=$ac_optarg ;; |
| 1107 | |
| 1108 | -nfp | --nfp | --nf) |
| 1109 | # Obsolete; use --without-fp. |
| 1110 | with_fp=no ;; |
| 1111 | |
| 1112 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1113 | | --no-cr | --no-c | -n) |
| 1114 | no_create=yes ;; |
| 1115 | |
| 1116 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1117 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1118 | no_recursion=yes ;; |
| 1119 | |
| 1120 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1121 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1122 | | --oldin | --oldi | --old | --ol | --o) |
| 1123 | ac_prev=oldincludedir ;; |
| 1124 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1125 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1126 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1127 | oldincludedir=$ac_optarg ;; |
| 1128 | |
| 1129 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1130 | ac_prev=prefix ;; |
| 1131 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1132 | prefix=$ac_optarg ;; |
| 1133 | |
| 1134 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1135 | | --program-pre | --program-pr | --program-p) |
| 1136 | ac_prev=program_prefix ;; |
| 1137 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1138 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1139 | program_prefix=$ac_optarg ;; |
| 1140 | |
| 1141 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1142 | | --program-suf | --program-su | --program-s) |
| 1143 | ac_prev=program_suffix ;; |
| 1144 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1145 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1146 | program_suffix=$ac_optarg ;; |
| 1147 | |
| 1148 | -program-transform-name | --program-transform-name \ |
| 1149 | | --program-transform-nam | --program-transform-na \ |
| 1150 | | --program-transform-n | --program-transform- \ |
| 1151 | | --program-transform | --program-transfor \ |
| 1152 | | --program-transfo | --program-transf \ |
| 1153 | | --program-trans | --program-tran \ |
| 1154 | | --progr-tra | --program-tr | --program-t) |
| 1155 | ac_prev=program_transform_name ;; |
| 1156 | -program-transform-name=* | --program-transform-name=* \ |
| 1157 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1158 | | --program-transform-n=* | --program-transform-=* \ |
| 1159 | | --program-transform=* | --program-transfor=* \ |
| 1160 | | --program-transfo=* | --program-transf=* \ |
| 1161 | | --program-trans=* | --program-tran=* \ |
| 1162 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1163 | program_transform_name=$ac_optarg ;; |
| 1164 | |
| 1165 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1166 | ac_prev=pdfdir ;; |
| 1167 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1168 | pdfdir=$ac_optarg ;; |
| 1169 | |
| 1170 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1171 | ac_prev=psdir ;; |
| 1172 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1173 | psdir=$ac_optarg ;; |
| 1174 | |
| 1175 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1176 | | -silent | --silent | --silen | --sile | --sil) |
| 1177 | silent=yes ;; |
| 1178 | |
| 1179 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1180 | ac_prev=sbindir ;; |
| 1181 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1182 | | --sbi=* | --sb=*) |
| 1183 | sbindir=$ac_optarg ;; |
| 1184 | |
| 1185 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1186 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1187 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1188 | | --sha | --sh) |
| 1189 | ac_prev=sharedstatedir ;; |
| 1190 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1191 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1192 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1193 | | --sha=* | --sh=*) |
| 1194 | sharedstatedir=$ac_optarg ;; |
| 1195 | |
| 1196 | -site | --site | --sit) |
| 1197 | ac_prev=site ;; |
| 1198 | -site=* | --site=* | --sit=*) |
| 1199 | site=$ac_optarg ;; |
| 1200 | |
| 1201 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1202 | ac_prev=srcdir ;; |
| 1203 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1204 | srcdir=$ac_optarg ;; |
| 1205 | |
| 1206 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1207 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1208 | ac_prev=sysconfdir ;; |
| 1209 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1210 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1211 | sysconfdir=$ac_optarg ;; |
| 1212 | |
| 1213 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1214 | ac_prev=target_alias ;; |
| 1215 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1216 | target_alias=$ac_optarg ;; |
| 1217 | |
| 1218 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1219 | verbose=yes ;; |
| 1220 | |
| 1221 | -version | --version | --versio | --versi | --vers | -V) |
| 1222 | ac_init_version=: ;; |
| 1223 | |
| 1224 | -with-* | --with-*) |
| 1225 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1226 | # Reject names that are not valid shell variable names. |
| 1227 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1228 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1229 | { (exit 1); exit 1; }; } |
| 1230 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1231 | eval with_$ac_package=\$ac_optarg ;; |
| 1232 | |
| 1233 | -without-* | --without-*) |
| 1234 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1235 | # Reject names that are not valid shell variable names. |
| 1236 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1237 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1238 | { (exit 1); exit 1; }; } |
| 1239 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1240 | eval with_$ac_package=no ;; |
| 1241 | |
| 1242 | --x) |
| 1243 | # Obsolete; use --with-x. |
| 1244 | with_x=yes ;; |
| 1245 | |
| 1246 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1247 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1248 | ac_prev=x_includes ;; |
| 1249 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1250 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1251 | x_includes=$ac_optarg ;; |
| 1252 | |
| 1253 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1254 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1255 | ac_prev=x_libraries ;; |
| 1256 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1257 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1258 | x_libraries=$ac_optarg ;; |
| 1259 | |
| 1260 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1261 | Try \`$0 --help' for more information." >&2 |
| 1262 | { (exit 1); exit 1; }; } |
| 1263 | ;; |
| 1264 | |
| 1265 | *=*) |
| 1266 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1267 | # Reject names that are not valid shell variable names. |
| 1268 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1269 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1270 | { (exit 1); exit 1; }; } |
| 1271 | eval $ac_envvar=\$ac_optarg |
| 1272 | export $ac_envvar ;; |
| 1273 | |
| 1274 | *) |
| 1275 | # FIXME: should be removed in autoconf 3.0. |
| 1276 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1277 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1278 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1279 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1280 | ;; |
| 1281 | |
| 1282 | esac |
| 1283 | done |
| 1284 | |
| 1285 | if test -n "$ac_prev"; then |
| 1286 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1287 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1288 | { (exit 1); exit 1; }; } |
| 1289 | fi |
| 1290 | |
| 1291 | # Be sure to have absolute directory names. |
| 1292 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1293 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1294 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1295 | libdir localedir mandir |
| 1296 | do |
| 1297 | eval ac_val=\$$ac_var |
| 1298 | case $ac_val in |
| 1299 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1300 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1301 | esac |
| 1302 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1303 | { (exit 1); exit 1; }; } |
| 1304 | done |
| 1305 | |
| 1306 | # There might be people who depend on the old broken behavior: `$host' |
| 1307 | # used to hold the argument of --host etc. |
| 1308 | # FIXME: To remove some day. |
| 1309 | build=$build_alias |
| 1310 | host=$host_alias |
| 1311 | target=$target_alias |
| 1312 | |
| 1313 | # FIXME: To remove some day. |
| 1314 | if test "x$host_alias" != x; then |
| 1315 | if test "x$build_alias" = x; then |
| 1316 | cross_compiling=maybe |
| 1317 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1318 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1319 | elif test "x$build_alias" != "x$host_alias"; then |
| 1320 | cross_compiling=yes |
| 1321 | fi |
| 1322 | fi |
| 1323 | |
| 1324 | ac_tool_prefix= |
| 1325 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1326 | |
| 1327 | test "$silent" = yes && exec 6>/dev/null |
| 1328 | |
| 1329 | |
| 1330 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1331 | ac_ls_di=`ls -di .` && |
| 1332 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1333 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1334 | { (exit 1); exit 1; }; } |
| 1335 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1336 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1337 | { (exit 1); exit 1; }; } |
| 1338 | |
| 1339 | |
| 1340 | # Find the source files, if location was not specified. |
| 1341 | if test -z "$srcdir"; then |
| 1342 | ac_srcdir_defaulted=yes |
| 1343 | # Try the directory containing this script, then the parent directory. |
| 1344 | ac_confdir=`$as_dirname -- "$0" || |
| 1345 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1346 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1347 | X"$0" : 'X\(//\)$' \| \ |
| 1348 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1349 | echo X"$0" | |
| 1350 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1351 | s//\1/ |
| 1352 | q |
| 1353 | } |
| 1354 | /^X\(\/\/\)[^/].*/{ |
| 1355 | s//\1/ |
| 1356 | q |
| 1357 | } |
| 1358 | /^X\(\/\/\)$/{ |
| 1359 | s//\1/ |
| 1360 | q |
| 1361 | } |
| 1362 | /^X\(\/\).*/{ |
| 1363 | s//\1/ |
| 1364 | q |
| 1365 | } |
| 1366 | s/.*/./; q'` |
| 1367 | srcdir=$ac_confdir |
| 1368 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1369 | srcdir=.. |
| 1370 | fi |
| 1371 | else |
| 1372 | ac_srcdir_defaulted=no |
| 1373 | fi |
| 1374 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1375 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1376 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1377 | { (exit 1); exit 1; }; } |
| 1378 | fi |
| 1379 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1380 | ac_abs_confdir=`( |
| 1381 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1382 | { (exit 1); exit 1; }; } |
| 1383 | pwd)` |
| 1384 | # When building in place, set srcdir=. |
| 1385 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1386 | srcdir=. |
| 1387 | fi |
| 1388 | # Remove unnecessary trailing slashes from srcdir. |
| 1389 | # Double slashes in file names in object file debugging info |
| 1390 | # mess up M-x gdb in Emacs. |
| 1391 | case $srcdir in |
| 1392 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1393 | esac |
| 1394 | for ac_var in $ac_precious_vars; do |
| 1395 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1396 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1397 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1398 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1399 | done |
| 1400 | |
| 1401 | # |
| 1402 | # Report the --help message. |
| 1403 | # |
| 1404 | if test "$ac_init_help" = "long"; then |
| 1405 | # Omit some internal or obsolete options to make the list less imposing. |
| 1406 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1407 | cat <<_ACEOF |
| 1408 | \`configure' configures PCRE 7.1-RC1 to adapt to many kinds of systems. |
| 1409 | |
| 1410 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1411 | |
| 1412 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1413 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1414 | |
| 1415 | Defaults for the options are specified in brackets. |
| 1416 | |
| 1417 | Configuration: |
| 1418 | -h, --help display this help and exit |
| 1419 | --help=short display options specific to this package |
| 1420 | --help=recursive display the short help of all the included packages |
| 1421 | -V, --version display version information and exit |
| 1422 | -q, --quiet, --silent do not print \`checking...' messages |
| 1423 | --cache-file=FILE cache test results in FILE [disabled] |
| 1424 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1425 | -n, --no-create do not create output files |
| 1426 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1427 | |
| 1428 | Installation directories: |
| 1429 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1430 | [$ac_default_prefix] |
| 1431 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1432 | [PREFIX] |
| 1433 | |
| 1434 | By default, \`make install' will install all the files in |
| 1435 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1436 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1437 | for instance \`--prefix=\$HOME'. |
| 1438 | |
| 1439 | For better control, use the options below. |
| 1440 | |
| 1441 | Fine tuning of the installation directories: |
| 1442 | --bindir=DIR user executables [EPREFIX/bin] |
| 1443 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1444 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1445 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1446 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1447 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1448 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1449 | --includedir=DIR C header files [PREFIX/include] |
| 1450 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1451 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1452 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1453 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1454 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1455 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1456 | --docdir=DIR documentation root [DATAROOTDIR/doc/pcre] |
| 1457 | --htmldir=DIR html documentation [DOCDIR] |
| 1458 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1459 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1460 | --psdir=DIR ps documentation [DOCDIR] |
| 1461 | _ACEOF |
| 1462 | |
| 1463 | cat <<\_ACEOF |
| 1464 | |
| 1465 | Program names: |
| 1466 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1467 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1468 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1469 | |
| 1470 | System types: |
| 1471 | --build=BUILD configure for building on BUILD [guessed] |
| 1472 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1473 | _ACEOF |
| 1474 | fi |
| 1475 | |
| 1476 | if test -n "$ac_init_help"; then |
| 1477 | case $ac_init_help in |
| 1478 | short | recursive ) echo "Configuration of PCRE 7.1-RC1:";; |
| 1479 | esac |
| 1480 | cat <<\_ACEOF |
| 1481 | |
| 1482 | Optional Features: |
| 1483 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1484 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1485 | --disable-dependency-tracking speeds up one-time build |
| 1486 | --enable-dependency-tracking do not reject slow dependency extractors |
| 1487 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1488 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1489 | --enable-fast-install[=PKGS] |
| 1490 | optimize for fast installation [default=yes] |
| 1491 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1492 | --disable-cpp disable C++ support |
| 1493 | --enable-utf8 enable UTF-8 support |
| 1494 | --enable-unicode-properties |
| 1495 | enable Unicode properties support (implies |
| 1496 | --enable-utf8) |
| 1497 | --enable-newline-is-cr use CR as newline character |
| 1498 | --enable-newline-is-lf use LF as newline character (default) |
| 1499 | --enable-newline-is-crlf |
| 1500 | use CRLF as newline sequence |
| 1501 | --enable-newline-is-any use any valid Unicode newline sequence |
| 1502 | --enable-ebcdic assume EBCDIC coding rather than ASCII |
| 1503 | --disable-stack-for-recursion |
| 1504 | don't use stack recursion when matching |
| 1505 | |
| 1506 | Optional Packages: |
| 1507 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1508 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1509 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1510 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1511 | both] |
| 1512 | --with-tags[=TAGS] include additional configurations [automatic] |
| 1513 | --with-posix-malloc-threshold=NBYTES |
| 1514 | threshold for POSIX malloc usage (default=10) |
| 1515 | --with-link-size=N internal link size (2, 3, or 4 allowed; default=2) |
| 1516 | --with-match-limit=N default limit on internal looping (default=10000000) |
| 1517 | --with-match-limit-recursion=N |
| 1518 | default limit on internal recursion |
| 1519 | (default=MATCH_LIMIT) |
| 1520 | |
| 1521 | Some influential environment variables: |
| 1522 | CC C compiler command |
| 1523 | CFLAGS C compiler flags |
| 1524 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1525 | nonstandard directory <lib dir> |
| 1526 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1527 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1528 | you have headers in a nonstandard directory <include dir> |
| 1529 | CXX C++ compiler command |
| 1530 | CXXFLAGS C++ compiler flags |
| 1531 | CPP C preprocessor |
| 1532 | CXXCPP C++ preprocessor |
| 1533 | F77 Fortran 77 compiler command |
| 1534 | FFLAGS Fortran 77 compiler flags |
| 1535 | |
| 1536 | Use these variables to override the choices made by `configure' or to help |
| 1537 | it to find libraries and programs with nonstandard names/locations. |
| 1538 | |
| 1539 | _ACEOF |
| 1540 | ac_status=$? |
| 1541 | fi |
| 1542 | |
| 1543 | if test "$ac_init_help" = "recursive"; then |
| 1544 | # If there are subdirs, report their specific --help. |
| 1545 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1546 | test -d "$ac_dir" || continue |
| 1547 | ac_builddir=. |
| 1548 | |
| 1549 | case "$ac_dir" in |
| 1550 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1551 | *) |
| 1552 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1553 | # A ".." for each directory in $ac_dir_suffix. |
| 1554 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1555 | case $ac_top_builddir_sub in |
| 1556 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1557 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1558 | esac ;; |
| 1559 | esac |
| 1560 | ac_abs_top_builddir=$ac_pwd |
| 1561 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1562 | # for backward compatibility: |
| 1563 | ac_top_builddir=$ac_top_build_prefix |
| 1564 | |
| 1565 | case $srcdir in |
| 1566 | .) # We are building in place. |
| 1567 | ac_srcdir=. |
| 1568 | ac_top_srcdir=$ac_top_builddir_sub |
| 1569 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1570 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1571 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1572 | ac_top_srcdir=$srcdir |
| 1573 | ac_abs_top_srcdir=$srcdir ;; |
| 1574 | *) # Relative name. |
| 1575 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1576 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1577 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1578 | esac |
| 1579 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1580 | |
| 1581 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1582 | # Check for guested configure. |
| 1583 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1584 | echo && |
| 1585 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1586 | elif test -f "$ac_srcdir/configure"; then |
| 1587 | echo && |
| 1588 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1589 | else |
| 1590 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1591 | fi || ac_status=$? |
| 1592 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1593 | done |
| 1594 | fi |
| 1595 | |
| 1596 | test -n "$ac_init_help" && exit $ac_status |
| 1597 | if $ac_init_version; then |
| 1598 | cat <<\_ACEOF |
| 1599 | PCRE configure 7.1-RC1 |
| 1600 | generated by GNU Autoconf 2.61 |
| 1601 | |
| 1602 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1603 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| 1604 | This configure script is free software; the Free Software Foundation |
| 1605 | gives unlimited permission to copy, distribute and modify it. |
| 1606 | _ACEOF |
| 1607 | exit |
| 1608 | fi |
| 1609 | cat >config.log <<_ACEOF |
| 1610 | This file contains any messages produced by compilers while |
| 1611 | running configure, to aid debugging if configure makes a mistake. |
| 1612 | |
| 1613 | It was created by PCRE $as_me 7.1-RC1, which was |
| 1614 | generated by GNU Autoconf 2.61. Invocation command line was |
| 1615 | |
| 1616 | $ $0 $@ |
| 1617 | |
| 1618 | _ACEOF |
| 1619 | exec 5>>config.log |
| 1620 | { |
| 1621 | cat <<_ASUNAME |
| 1622 | ## --------- ## |
| 1623 | ## Platform. ## |
| 1624 | ## --------- ## |
| 1625 | |
| 1626 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1627 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1628 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1629 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1630 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1631 | |
| 1632 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1633 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1634 | |
| 1635 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1636 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1637 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1638 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1639 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1640 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1641 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1642 | |
| 1643 | _ASUNAME |
| 1644 | |
| 1645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1646 | for as_dir in $PATH |
| 1647 | do |
| 1648 | IFS=$as_save_IFS |
| 1649 | test -z "$as_dir" && as_dir=. |
| 1650 | echo "PATH: $as_dir" |
| 1651 | done |
| 1652 | IFS=$as_save_IFS |
| 1653 | |
| 1654 | } >&5 |
| 1655 | |
| 1656 | cat >&5 <<_ACEOF |
| 1657 | |
| 1658 | |
| 1659 | ## ----------- ## |
| 1660 | ## Core tests. ## |
| 1661 | ## ----------- ## |
| 1662 | |
| 1663 | _ACEOF |
| 1664 | |
| 1665 | |
| 1666 | # Keep a trace of the command line. |
| 1667 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1668 | # Strip out --silent because we don't want to record it for future runs. |
| 1669 | # Also quote any args containing shell meta-characters. |
| 1670 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1671 | ac_configure_args= |
| 1672 | ac_configure_args0= |
| 1673 | ac_configure_args1= |
| 1674 | ac_must_keep_next=false |
| 1675 | for ac_pass in 1 2 |
| 1676 | do |
| 1677 | for ac_arg |
| 1678 | do |
| 1679 | case $ac_arg in |
| 1680 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1681 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1682 | | -silent | --silent | --silen | --sile | --sil) |
| 1683 | continue ;; |
| 1684 | *\'*) |
| 1685 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1686 | esac |
| 1687 | case $ac_pass in |
| 1688 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1689 | 2) |
| 1690 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1691 | if test $ac_must_keep_next = true; then |
| 1692 | ac_must_keep_next=false # Got value, back to normal. |
| 1693 | else |
| 1694 | case $ac_arg in |
| 1695 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1696 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1697 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1698 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1699 | case "$ac_configure_args0 " in |
| 1700 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1701 | esac |
| 1702 | ;; |
| 1703 | -* ) ac_must_keep_next=true ;; |
| 1704 | esac |
| 1705 | fi |
| 1706 | ac_configure_args="$ac_configure_args '$ac_arg'" |
| 1707 | ;; |
| 1708 | esac |
| 1709 | done |
| 1710 | done |
| 1711 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1712 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1713 | |
| 1714 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1715 | # config.log. We remove comments because anyway the quotes in there |
| 1716 | # would cause problems or look ugly. |
| 1717 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1718 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1719 | trap 'exit_status=$? |
| 1720 | # Save into config.log some information that might help in debugging. |
| 1721 | { |
| 1722 | echo |
| 1723 | |
| 1724 | cat <<\_ASBOX |
| 1725 | ## ---------------- ## |
| 1726 | ## Cache variables. ## |
| 1727 | ## ---------------- ## |
| 1728 | _ASBOX |
| 1729 | echo |
| 1730 | # The following way of writing the cache mishandles newlines in values, |
| 1731 | ( |
| 1732 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1733 | eval ac_val=\$$ac_var |
| 1734 | case $ac_val in #( |
| 1735 | *${as_nl}*) |
| 1736 | case $ac_var in #( |
| 1737 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1738 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1739 | esac |
| 1740 | case $ac_var in #( |
| 1741 | _ | IFS | as_nl) ;; #( |
| 1742 | *) $as_unset $ac_var ;; |
| 1743 | esac ;; |
| 1744 | esac |
| 1745 | done |
| 1746 | (set) 2>&1 | |
| 1747 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1748 | *${as_nl}ac_space=\ *) |
| 1749 | sed -n \ |
| 1750 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1751 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1752 | ;; #( |
| 1753 | *) |
| 1754 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1755 | ;; |
| 1756 | esac | |
| 1757 | sort |
| 1758 | ) |
| 1759 | echo |
| 1760 | |
| 1761 | cat <<\_ASBOX |
| 1762 | ## ----------------- ## |
| 1763 | ## Output variables. ## |
| 1764 | ## ----------------- ## |
| 1765 | _ASBOX |
| 1766 | echo |
| 1767 | for ac_var in $ac_subst_vars |
| 1768 | do |
| 1769 | eval ac_val=\$$ac_var |
| 1770 | case $ac_val in |
| 1771 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1772 | esac |
| 1773 | echo "$ac_var='\''$ac_val'\''" |
| 1774 | done | sort |
| 1775 | echo |
| 1776 | |
| 1777 | if test -n "$ac_subst_files"; then |
| 1778 | cat <<\_ASBOX |
| 1779 | ## ------------------- ## |
| 1780 | ## File substitutions. ## |
| 1781 | ## ------------------- ## |
| 1782 | _ASBOX |
| 1783 | echo |
| 1784 | for ac_var in $ac_subst_files |
| 1785 | do |
| 1786 | eval ac_val=\$$ac_var |
| 1787 | case $ac_val in |
| 1788 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1789 | esac |
| 1790 | echo "$ac_var='\''$ac_val'\''" |
| 1791 | done | sort |
| 1792 | echo |
| 1793 | fi |
| 1794 | |
| 1795 | if test -s confdefs.h; then |
| 1796 | cat <<\_ASBOX |
| 1797 | ## ----------- ## |
| 1798 | ## confdefs.h. ## |
| 1799 | ## ----------- ## |
| 1800 | _ASBOX |
| 1801 | echo |
| 1802 | cat confdefs.h |
| 1803 | echo |
| 1804 | fi |
| 1805 | test "$ac_signal" != 0 && |
| 1806 | echo "$as_me: caught signal $ac_signal" |
| 1807 | echo "$as_me: exit $exit_status" |
| 1808 | } >&5 |
| 1809 | rm -f core *.core core.conftest.* && |
| 1810 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1811 | exit $exit_status |
| 1812 | ' 0 |
| 1813 | for ac_signal in 1 2 13 15; do |
| 1814 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1815 | done |
| 1816 | ac_signal=0 |
| 1817 | |
| 1818 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1819 | rm -f -r conftest* confdefs.h |
| 1820 | |
| 1821 | # Predefined preprocessor variables. |
| 1822 | |
| 1823 | cat >>confdefs.h <<_ACEOF |
| 1824 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1825 | _ACEOF |
| 1826 | |
| 1827 | |
| 1828 | cat >>confdefs.h <<_ACEOF |
| 1829 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1830 | _ACEOF |
| 1831 | |
| 1832 | |
| 1833 | cat >>confdefs.h <<_ACEOF |
| 1834 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1835 | _ACEOF |
| 1836 | |
| 1837 | |
| 1838 | cat >>confdefs.h <<_ACEOF |
| 1839 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1840 | _ACEOF |
| 1841 | |
| 1842 | |
| 1843 | cat >>confdefs.h <<_ACEOF |
| 1844 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1845 | _ACEOF |
| 1846 | |
| 1847 | |
| 1848 | # Let the site file select an alternate cache file if it wants to. |
| 1849 | # Prefer explicitly selected file to automatically selected ones. |
| 1850 | if test -n "$CONFIG_SITE"; then |
| 1851 | set x "$CONFIG_SITE" |
| 1852 | elif test "x$prefix" != xNONE; then |
| 1853 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1854 | else |
| 1855 | set x "$ac_default_prefix/share/config.site" \ |
| 1856 | "$ac_default_prefix/etc/config.site" |
| 1857 | fi |
| 1858 | shift |
| 1859 | for ac_site_file |
| 1860 | do |
| 1861 | if test -r "$ac_site_file"; then |
| 1862 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1863 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1864 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1865 | . "$ac_site_file" |
| 1866 | fi |
| 1867 | done |
| 1868 | |
| 1869 | if test -r "$cache_file"; then |
| 1870 | # Some versions of bash will fail to source /dev/null (special |
| 1871 | # files actually), so we avoid doing that. |
| 1872 | if test -f "$cache_file"; then |
| 1873 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1874 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1875 | case $cache_file in |
| 1876 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1877 | *) . "./$cache_file";; |
| 1878 | esac |
| 1879 | fi |
| 1880 | else |
| 1881 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1882 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1883 | >$cache_file |
| 1884 | fi |
| 1885 | |
| 1886 | # Check that the precious variables saved in the cache have kept the same |
| 1887 | # value. |
| 1888 | ac_cache_corrupted=false |
| 1889 | for ac_var in $ac_precious_vars; do |
| 1890 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1891 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1892 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1893 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 1894 | case $ac_old_set,$ac_new_set in |
| 1895 | set,) |
| 1896 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1897 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1898 | ac_cache_corrupted=: ;; |
| 1899 | ,set) |
| 1900 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1901 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1902 | ac_cache_corrupted=: ;; |
| 1903 | ,);; |
| 1904 | *) |
| 1905 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1906 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1907 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1908 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1909 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1910 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1911 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1912 | ac_cache_corrupted=: |
| 1913 | fi;; |
| 1914 | esac |
| 1915 | # Pass precious variables to config.status. |
| 1916 | if test "$ac_new_set" = set; then |
| 1917 | case $ac_new_val in |
| 1918 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1919 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1920 | esac |
| 1921 | case " $ac_configure_args " in |
| 1922 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1923 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1924 | esac |
| 1925 | fi |
| 1926 | done |
| 1927 | if $ac_cache_corrupted; then |
| 1928 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1929 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1930 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1931 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1932 | { (exit 1); exit 1; }; } |
| 1933 | fi |
| 1934 | |
| 1935 | |
| 1936 | |
| 1937 | |
| 1938 | |
| 1939 | |
| 1940 | |
| 1941 | |
| 1942 | |
| 1943 | |
| 1944 | |
| 1945 | |
| 1946 | |
| 1947 | |
| 1948 | |
| 1949 | |
| 1950 | |
| 1951 | |
| 1952 | |
| 1953 | |
| 1954 | |
| 1955 | |
| 1956 | |
| 1957 | |
| 1958 | |
| 1959 | ac_ext=c |
| 1960 | ac_cpp='$CPP $CPPFLAGS' |
| 1961 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1962 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1963 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1964 | |
| 1965 | |
| 1966 | |
| 1967 | am__api_version='1.10' |
| 1968 | |
| 1969 | ac_aux_dir= |
| 1970 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 1971 | if test -f "$ac_dir/install-sh"; then |
| 1972 | ac_aux_dir=$ac_dir |
| 1973 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1974 | break |
| 1975 | elif test -f "$ac_dir/install.sh"; then |
| 1976 | ac_aux_dir=$ac_dir |
| 1977 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1978 | break |
| 1979 | elif test -f "$ac_dir/shtool"; then |
| 1980 | ac_aux_dir=$ac_dir |
| 1981 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1982 | break |
| 1983 | fi |
| 1984 | done |
| 1985 | if test -z "$ac_aux_dir"; then |
| 1986 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 1987 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
| 1988 | { (exit 1); exit 1; }; } |
| 1989 | fi |
| 1990 | |
| 1991 | # These three variables are undocumented and unsupported, |
| 1992 | # and are intended to be withdrawn in a future Autoconf release. |
| 1993 | # They can cause serious problems if a builder's source tree is in a directory |
| 1994 | # whose full name contains unusual characters. |
| 1995 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1996 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1997 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1998 | |
| 1999 | |
| 2000 | # Find a good install program. We prefer a C program (faster), |
| 2001 | # so one script is as good as another. But avoid the broken or |
| 2002 | # incompatible versions: |
| 2003 | # SysV /etc/install, /usr/sbin/install |
| 2004 | # SunOS /usr/etc/install |
| 2005 | # IRIX /sbin/install |
| 2006 | # AIX /bin/install |
| 2007 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2008 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2009 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2010 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2011 | # OS/2's system install, which has a completely different semantic |
| 2012 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2013 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2014 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 2015 | if test -z "$INSTALL"; then |
| 2016 | if test "${ac_cv_path_install+set}" = set; then |
| 2017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2018 | else |
| 2019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2020 | for as_dir in $PATH |
| 2021 | do |
| 2022 | IFS=$as_save_IFS |
| 2023 | test -z "$as_dir" && as_dir=. |
| 2024 | # Account for people who put trailing slashes in PATH elements. |
| 2025 | case $as_dir/ in |
| 2026 | ./ | .// | /cC/* | \ |
| 2027 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2028 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 2029 | /usr/ucb/* ) ;; |
| 2030 | *) |
| 2031 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2032 | # Don't use installbsd from OSF since it installs stuff as root |
| 2033 | # by default. |
| 2034 | for ac_prog in ginstall scoinst install; do |
| 2035 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2036 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 2037 | if test $ac_prog = install && |
| 2038 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2039 | # AIX install. It has an incompatible calling convention. |
| 2040 | : |
| 2041 | elif test $ac_prog = install && |
| 2042 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2043 | # program-specific install script used by HP pwplus--don't use. |
| 2044 | : |
| 2045 | else |
| 2046 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2047 | break 3 |
| 2048 | fi |
| 2049 | fi |
| 2050 | done |
| 2051 | done |
| 2052 | ;; |
| 2053 | esac |
| 2054 | done |
| 2055 | IFS=$as_save_IFS |
| 2056 | |
| 2057 | |
| 2058 | fi |
| 2059 | if test "${ac_cv_path_install+set}" = set; then |
| 2060 | INSTALL=$ac_cv_path_install |
| 2061 | else |
| 2062 | # As a last resort, use the slow shell script. Don't cache a |
| 2063 | # value for INSTALL within a source directory, because that will |
| 2064 | # break other packages using the cache if that directory is |
| 2065 | # removed, or if the value is a relative name. |
| 2066 | INSTALL=$ac_install_sh |
| 2067 | fi |
| 2068 | fi |
| 2069 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2070 | echo "${ECHO_T}$INSTALL" >&6; } |
| 2071 | |
| 2072 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2073 | # It thinks the first close brace ends the variable substitution. |
| 2074 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2075 | |
| 2076 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2077 | |
| 2078 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2079 | |
| 2080 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 2081 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
| 2082 | # Just in case |
| 2083 | sleep 1 |
| 2084 | echo timestamp > conftest.file |
| 2085 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2086 | # arguments. Must try -L first in case configure is actually a |
| 2087 | # symlink; some systems play weird games with the mod time of symlinks |
| 2088 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2089 | # directory). |
| 2090 | if ( |
| 2091 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 2092 | if test "$*" = "X"; then |
| 2093 | # -L didn't work. |
| 2094 | set X `ls -t $srcdir/configure conftest.file` |
| 2095 | fi |
| 2096 | rm -f conftest.file |
| 2097 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2098 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2099 | |
| 2100 | # If neither matched, then we have a broken ls. This can happen |
| 2101 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2102 | # broken ls alias from the environment. This has actually |
| 2103 | # happened. Such a system could not be considered "sane". |
| 2104 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2105 | alias in your environment" >&5 |
| 2106 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2107 | alias in your environment" >&2;} |
| 2108 | { (exit 1); exit 1; }; } |
| 2109 | fi |
| 2110 | |
| 2111 | test "$2" = conftest.file |
| 2112 | ) |
| 2113 | then |
| 2114 | # Ok. |
| 2115 | : |
| 2116 | else |
| 2117 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2118 | Check your system clock" >&5 |
| 2119 | echo "$as_me: error: newly created file is older than distributed files! |
| 2120 | Check your system clock" >&2;} |
| 2121 | { (exit 1); exit 1; }; } |
| 2122 | fi |
| 2123 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2124 | echo "${ECHO_T}yes" >&6; } |
| 2125 | test "$program_prefix" != NONE && |
| 2126 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2127 | # Use a double $ so make ignores it. |
| 2128 | test "$program_suffix" != NONE && |
| 2129 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2130 | # Double any \ or $. echo might interpret backslashes. |
| 2131 | # By default was `s,x,x', remove it if useless. |
| 2132 | cat <<\_ACEOF >conftest.sed |
| 2133 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 2134 | _ACEOF |
| 2135 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 2136 | rm -f conftest.sed |
| 2137 | |
| 2138 | # expand $ac_aux_dir to an absolute path |
| 2139 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2140 | |
| 2141 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 2142 | # Use eval to expand $SHELL |
| 2143 | if eval "$MISSING --run true"; then |
| 2144 | am_missing_run="$MISSING --run " |
| 2145 | else |
| 2146 | am_missing_run= |
| 2147 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2148 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2149 | fi |
| 2150 | |
| 2151 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
| 2152 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
| 2153 | if test -z "$MKDIR_P"; then |
| 2154 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2156 | else |
| 2157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2158 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2159 | do |
| 2160 | IFS=$as_save_IFS |
| 2161 | test -z "$as_dir" && as_dir=. |
| 2162 | for ac_prog in mkdir gmkdir; do |
| 2163 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2164 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2165 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2166 | 'mkdir (GNU coreutils) '* | \ |
| 2167 | 'mkdir (coreutils) '* | \ |
| 2168 | 'mkdir (fileutils) '4.1*) |
| 2169 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2170 | break 3;; |
| 2171 | esac |
| 2172 | done |
| 2173 | done |
| 2174 | done |
| 2175 | IFS=$as_save_IFS |
| 2176 | |
| 2177 | fi |
| 2178 | |
| 2179 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2180 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2181 | else |
| 2182 | # As a last resort, use the slow shell script. Don't cache a |
| 2183 | # value for MKDIR_P within a source directory, because that will |
| 2184 | # break other packages using the cache if that directory is |
| 2185 | # removed, or if the value is a relative name. |
| 2186 | test -d ./--version && rmdir ./--version |
| 2187 | MKDIR_P="$ac_install_sh -d" |
| 2188 | fi |
| 2189 | fi |
| 2190 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
| 2191 | echo "${ECHO_T}$MKDIR_P" >&6; } |
| 2192 | |
| 2193 | mkdir_p="$MKDIR_P" |
| 2194 | case $mkdir_p in |
| 2195 | [\\/$]* | ?:[\\/]*) ;; |
| 2196 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2197 | esac |
| 2198 | |
| 2199 | for ac_prog in gawk mawk nawk awk |
| 2200 | do |
| 2201 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2202 | set dummy $ac_prog; ac_word=$2 |
| 2203 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2204 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2205 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2207 | else |
| 2208 | if test -n "$AWK"; then |
| 2209 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2210 | else |
| 2211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2212 | for as_dir in $PATH |
| 2213 | do |
| 2214 | IFS=$as_save_IFS |
| 2215 | test -z "$as_dir" && as_dir=. |
| 2216 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2217 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2218 | ac_cv_prog_AWK="$ac_prog" |
| 2219 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2220 | break 2 |
| 2221 | fi |
| 2222 | done |
| 2223 | done |
| 2224 | IFS=$as_save_IFS |
| 2225 | |
| 2226 | fi |
| 2227 | fi |
| 2228 | AWK=$ac_cv_prog_AWK |
| 2229 | if test -n "$AWK"; then |
| 2230 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2231 | echo "${ECHO_T}$AWK" >&6; } |
| 2232 | else |
| 2233 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2234 | echo "${ECHO_T}no" >&6; } |
| 2235 | fi |
| 2236 | |
| 2237 | |
| 2238 | test -n "$AWK" && break |
| 2239 | done |
| 2240 | |
| 2241 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2242 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 2243 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2244 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 2245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2246 | else |
| 2247 | cat >conftest.make <<\_ACEOF |
| 2248 | SHELL = /bin/sh |
| 2249 | all: |
| 2250 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2251 | _ACEOF |
| 2252 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2253 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2254 | *@@@%%%=?*=@@@%%%*) |
| 2255 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2256 | *) |
| 2257 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2258 | esac |
| 2259 | rm -f conftest.make |
| 2260 | fi |
| 2261 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2262 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2263 | echo "${ECHO_T}yes" >&6; } |
| 2264 | SET_MAKE= |
| 2265 | else |
| 2266 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2267 | echo "${ECHO_T}no" >&6; } |
| 2268 | SET_MAKE="MAKE=${MAKE-make}" |
| 2269 | fi |
| 2270 | |
| 2271 | rm -rf .tst 2>/dev/null |
| 2272 | mkdir .tst 2>/dev/null |
| 2273 | if test -d .tst; then |
| 2274 | am__leading_dot=. |
| 2275 | else |
| 2276 | am__leading_dot=_ |
| 2277 | fi |
| 2278 | rmdir .tst 2>/dev/null |
| 2279 | |
| 2280 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2281 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2282 | # is not polluted with repeated "-I." |
| 2283 | am__isrc=' -I$(srcdir)' |
| 2284 | # test to see if srcdir already configured |
| 2285 | if test -f $srcdir/config.status; then |
| 2286 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 2287 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 2288 | { (exit 1); exit 1; }; } |
| 2289 | fi |
| 2290 | fi |
| 2291 | |
| 2292 | # test whether we have cygpath |
| 2293 | if test -z "$CYGPATH_W"; then |
| 2294 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2295 | CYGPATH_W='cygpath -w' |
| 2296 | else |
| 2297 | CYGPATH_W=echo |
| 2298 | fi |
| 2299 | fi |
| 2300 | |
| 2301 | |
| 2302 | # Define the identity of the package. |
| 2303 | PACKAGE='pcre' |
| 2304 | VERSION='7.1-RC1' |
| 2305 | |
| 2306 | |
| 2307 | cat >>confdefs.h <<_ACEOF |
| 2308 | #define PACKAGE "$PACKAGE" |
| 2309 | _ACEOF |
| 2310 | |
| 2311 | |
| 2312 | cat >>confdefs.h <<_ACEOF |
| 2313 | #define VERSION "$VERSION" |
| 2314 | _ACEOF |
| 2315 | |
| 2316 | # Some tools Automake needs. |
| 2317 | |
| 2318 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2319 | |
| 2320 | |
| 2321 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2322 | |
| 2323 | |
| 2324 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2325 | |
| 2326 | |
| 2327 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2328 | |
| 2329 | |
| 2330 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2331 | |
| 2332 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
| 2333 | |
| 2334 | # Installed binaries are usually stripped using `strip' when the user |
| 2335 | # run `make install-strip'. However `strip' might not be the right |
| 2336 | # tool to use in cross-compilation environments, therefore Automake |
| 2337 | # will honor the `STRIP' environment variable to overrule this program. |
| 2338 | if test "$cross_compiling" != no; then |
| 2339 | if test -n "$ac_tool_prefix"; then |
| 2340 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2341 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2342 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2344 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2346 | else |
| 2347 | if test -n "$STRIP"; then |
| 2348 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2349 | else |
| 2350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2351 | for as_dir in $PATH |
| 2352 | do |
| 2353 | IFS=$as_save_IFS |
| 2354 | test -z "$as_dir" && as_dir=. |
| 2355 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2356 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2357 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2358 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2359 | break 2 |
| 2360 | fi |
| 2361 | done |
| 2362 | done |
| 2363 | IFS=$as_save_IFS |
| 2364 | |
| 2365 | fi |
| 2366 | fi |
| 2367 | STRIP=$ac_cv_prog_STRIP |
| 2368 | if test -n "$STRIP"; then |
| 2369 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2370 | echo "${ECHO_T}$STRIP" >&6; } |
| 2371 | else |
| 2372 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2373 | echo "${ECHO_T}no" >&6; } |
| 2374 | fi |
| 2375 | |
| 2376 | |
| 2377 | fi |
| 2378 | if test -z "$ac_cv_prog_STRIP"; then |
| 2379 | ac_ct_STRIP=$STRIP |
| 2380 | # Extract the first word of "strip", so it can be a program name with args. |
| 2381 | set dummy strip; ac_word=$2 |
| 2382 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2384 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 2385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2386 | else |
| 2387 | if test -n "$ac_ct_STRIP"; then |
| 2388 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2389 | else |
| 2390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2391 | for as_dir in $PATH |
| 2392 | do |
| 2393 | IFS=$as_save_IFS |
| 2394 | test -z "$as_dir" && as_dir=. |
| 2395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2396 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2397 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2399 | break 2 |
| 2400 | fi |
| 2401 | done |
| 2402 | done |
| 2403 | IFS=$as_save_IFS |
| 2404 | |
| 2405 | fi |
| 2406 | fi |
| 2407 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2408 | if test -n "$ac_ct_STRIP"; then |
| 2409 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 2410 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
| 2411 | else |
| 2412 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2413 | echo "${ECHO_T}no" >&6; } |
| 2414 | fi |
| 2415 | |
| 2416 | if test "x$ac_ct_STRIP" = x; then |
| 2417 | STRIP=":" |
| 2418 | else |
| 2419 | case $cross_compiling:$ac_tool_warned in |
| 2420 | yes:) |
| 2421 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2422 | whose name does not start with the host triplet. If you think this |
| 2423 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2424 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2425 | whose name does not start with the host triplet. If you think this |
| 2426 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2427 | ac_tool_warned=yes ;; |
| 2428 | esac |
| 2429 | STRIP=$ac_ct_STRIP |
| 2430 | fi |
| 2431 | else |
| 2432 | STRIP="$ac_cv_prog_STRIP" |
| 2433 | fi |
| 2434 | |
| 2435 | fi |
| 2436 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2437 | |
| 2438 | # We need awk for the "check" target. The system "awk" is bad on |
| 2439 | # some platforms. |
| 2440 | # Always define AMTAR for backward compatibility. |
| 2441 | |
| 2442 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2443 | |
| 2444 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2445 | |
| 2446 | |
| 2447 | |
| 2448 | |
| 2449 | |
| 2450 | ac_config_headers="$ac_config_headers config.h" |
| 2451 | |
| 2452 | ac_ext=c |
| 2453 | ac_cpp='$CPP $CPPFLAGS' |
| 2454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2457 | if test -n "$ac_tool_prefix"; then |
| 2458 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2459 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2460 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2462 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2464 | else |
| 2465 | if test -n "$CC"; then |
| 2466 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2467 | else |
| 2468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2469 | for as_dir in $PATH |
| 2470 | do |
| 2471 | IFS=$as_save_IFS |
| 2472 | test -z "$as_dir" && as_dir=. |
| 2473 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2475 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2477 | break 2 |
| 2478 | fi |
| 2479 | done |
| 2480 | done |
| 2481 | IFS=$as_save_IFS |
| 2482 | |
| 2483 | fi |
| 2484 | fi |
| 2485 | CC=$ac_cv_prog_CC |
| 2486 | if test -n "$CC"; then |
| 2487 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2488 | echo "${ECHO_T}$CC" >&6; } |
| 2489 | else |
| 2490 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2491 | echo "${ECHO_T}no" >&6; } |
| 2492 | fi |
| 2493 | |
| 2494 | |
| 2495 | fi |
| 2496 | if test -z "$ac_cv_prog_CC"; then |
| 2497 | ac_ct_CC=$CC |
| 2498 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2499 | set dummy gcc; ac_word=$2 |
| 2500 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2502 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2504 | else |
| 2505 | if test -n "$ac_ct_CC"; then |
| 2506 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2507 | else |
| 2508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2509 | for as_dir in $PATH |
| 2510 | do |
| 2511 | IFS=$as_save_IFS |
| 2512 | test -z "$as_dir" && as_dir=. |
| 2513 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2514 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2515 | ac_cv_prog_ac_ct_CC="gcc" |
| 2516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2517 | break 2 |
| 2518 | fi |
| 2519 | done |
| 2520 | done |
| 2521 | IFS=$as_save_IFS |
| 2522 | |
| 2523 | fi |
| 2524 | fi |
| 2525 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2526 | if test -n "$ac_ct_CC"; then |
| 2527 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2528 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 2529 | else |
| 2530 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2531 | echo "${ECHO_T}no" >&6; } |
| 2532 | fi |
| 2533 | |
| 2534 | if test "x$ac_ct_CC" = x; then |
| 2535 | CC="" |
| 2536 | else |
| 2537 | case $cross_compiling:$ac_tool_warned in |
| 2538 | yes:) |
| 2539 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2540 | whose name does not start with the host triplet. If you think this |
| 2541 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2542 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2543 | whose name does not start with the host triplet. If you think this |
| 2544 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2545 | ac_tool_warned=yes ;; |
| 2546 | esac |
| 2547 | CC=$ac_ct_CC |
| 2548 | fi |
| 2549 | else |
| 2550 | CC="$ac_cv_prog_CC" |
| 2551 | fi |
| 2552 | |
| 2553 | if test -z "$CC"; then |
| 2554 | if test -n "$ac_tool_prefix"; then |
| 2555 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2556 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2557 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2559 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2561 | else |
| 2562 | if test -n "$CC"; then |
| 2563 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2564 | else |
| 2565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2566 | for as_dir in $PATH |
| 2567 | do |
| 2568 | IFS=$as_save_IFS |
| 2569 | test -z "$as_dir" && as_dir=. |
| 2570 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2572 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2574 | break 2 |
| 2575 | fi |
| 2576 | done |
| 2577 | done |
| 2578 | IFS=$as_save_IFS |
| 2579 | |
| 2580 | fi |
| 2581 | fi |
| 2582 | CC=$ac_cv_prog_CC |
| 2583 | if test -n "$CC"; then |
| 2584 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2585 | echo "${ECHO_T}$CC" >&6; } |
| 2586 | else |
| 2587 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2588 | echo "${ECHO_T}no" >&6; } |
| 2589 | fi |
| 2590 | |
| 2591 | |
| 2592 | fi |
| 2593 | fi |
| 2594 | if test -z "$CC"; then |
| 2595 | # Extract the first word of "cc", so it can be a program name with args. |
| 2596 | set dummy cc; ac_word=$2 |
| 2597 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2599 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2601 | else |
| 2602 | if test -n "$CC"; then |
| 2603 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2604 | else |
| 2605 | ac_prog_rejected=no |
| 2606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2607 | for as_dir in $PATH |
| 2608 | do |
| 2609 | IFS=$as_save_IFS |
| 2610 | test -z "$as_dir" && as_dir=. |
| 2611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2613 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2614 | ac_prog_rejected=yes |
| 2615 | continue |
| 2616 | fi |
| 2617 | ac_cv_prog_CC="cc" |
| 2618 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2619 | break 2 |
| 2620 | fi |
| 2621 | done |
| 2622 | done |
| 2623 | IFS=$as_save_IFS |
| 2624 | |
| 2625 | if test $ac_prog_rejected = yes; then |
| 2626 | # We found a bogon in the path, so make sure we never use it. |
| 2627 | set dummy $ac_cv_prog_CC |
| 2628 | shift |
| 2629 | if test $# != 0; then |
| 2630 | # We chose a different compiler from the bogus one. |
| 2631 | # However, it has the same basename, so the bogon will be chosen |
| 2632 | # first if we set CC to just the basename; use the full file name. |
| 2633 | shift |
| 2634 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2635 | fi |
| 2636 | fi |
| 2637 | fi |
| 2638 | fi |
| 2639 | CC=$ac_cv_prog_CC |
| 2640 | if test -n "$CC"; then |
| 2641 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2642 | echo "${ECHO_T}$CC" >&6; } |
| 2643 | else |
| 2644 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2645 | echo "${ECHO_T}no" >&6; } |
| 2646 | fi |
| 2647 | |
| 2648 | |
| 2649 | fi |
| 2650 | if test -z "$CC"; then |
| 2651 | if test -n "$ac_tool_prefix"; then |
| 2652 | for ac_prog in cl.exe |
| 2653 | do |
| 2654 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2655 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2656 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2658 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2660 | else |
| 2661 | if test -n "$CC"; then |
| 2662 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2663 | else |
| 2664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2665 | for as_dir in $PATH |
| 2666 | do |
| 2667 | IFS=$as_save_IFS |
| 2668 | test -z "$as_dir" && as_dir=. |
| 2669 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2671 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2673 | break 2 |
| 2674 | fi |
| 2675 | done |
| 2676 | done |
| 2677 | IFS=$as_save_IFS |
| 2678 | |
| 2679 | fi |
| 2680 | fi |
| 2681 | CC=$ac_cv_prog_CC |
| 2682 | if test -n "$CC"; then |
| 2683 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2684 | echo "${ECHO_T}$CC" >&6; } |
| 2685 | else |
| 2686 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2687 | echo "${ECHO_T}no" >&6; } |
| 2688 | fi |
| 2689 | |
| 2690 | |
| 2691 | test -n "$CC" && break |
| 2692 | done |
| 2693 | fi |
| 2694 | if test -z "$CC"; then |
| 2695 | ac_ct_CC=$CC |
| 2696 | for ac_prog in cl.exe |
| 2697 | do |
| 2698 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2699 | set dummy $ac_prog; ac_word=$2 |
| 2700 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2702 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2704 | else |
| 2705 | if test -n "$ac_ct_CC"; then |
| 2706 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2707 | else |
| 2708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2709 | for as_dir in $PATH |
| 2710 | do |
| 2711 | IFS=$as_save_IFS |
| 2712 | test -z "$as_dir" && as_dir=. |
| 2713 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2714 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2715 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2717 | break 2 |
| 2718 | fi |
| 2719 | done |
| 2720 | done |
| 2721 | IFS=$as_save_IFS |
| 2722 | |
| 2723 | fi |
| 2724 | fi |
| 2725 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2726 | if test -n "$ac_ct_CC"; then |
| 2727 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2728 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 2729 | else |
| 2730 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2731 | echo "${ECHO_T}no" >&6; } |
| 2732 | fi |
| 2733 | |
| 2734 | |
| 2735 | test -n "$ac_ct_CC" && break |
| 2736 | done |
| 2737 | |
| 2738 | if test "x$ac_ct_CC" = x; then |
| 2739 | CC="" |
| 2740 | else |
| 2741 | case $cross_compiling:$ac_tool_warned in |
| 2742 | yes:) |
| 2743 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2744 | whose name does not start with the host triplet. If you think this |
| 2745 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2746 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2747 | whose name does not start with the host triplet. If you think this |
| 2748 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2749 | ac_tool_warned=yes ;; |
| 2750 | esac |
| 2751 | CC=$ac_ct_CC |
| 2752 | fi |
| 2753 | fi |
| 2754 | |
| 2755 | fi |
| 2756 | |
| 2757 | |
| 2758 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2759 | See \`config.log' for more details." >&5 |
| 2760 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2761 | See \`config.log' for more details." >&2;} |
| 2762 | { (exit 1); exit 1; }; } |
| 2763 | |
| 2764 | # Provide some information about the compiler. |
| 2765 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2766 | ac_compiler=`set X $ac_compile; echo $2` |
| 2767 | { (ac_try="$ac_compiler --version >&5" |
| 2768 | case "(($ac_try" in |
| 2769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2770 | *) ac_try_echo=$ac_try;; |
| 2771 | esac |
| 2772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2773 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2774 | ac_status=$? |
| 2775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2776 | (exit $ac_status); } |
| 2777 | { (ac_try="$ac_compiler -v >&5" |
| 2778 | case "(($ac_try" in |
| 2779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2780 | *) ac_try_echo=$ac_try;; |
| 2781 | esac |
| 2782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2783 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2784 | ac_status=$? |
| 2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2786 | (exit $ac_status); } |
| 2787 | { (ac_try="$ac_compiler -V >&5" |
| 2788 | case "(($ac_try" in |
| 2789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2790 | *) ac_try_echo=$ac_try;; |
| 2791 | esac |
| 2792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2793 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2794 | ac_status=$? |
| 2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2796 | (exit $ac_status); } |
| 2797 | |
| 2798 | cat >conftest.$ac_ext <<_ACEOF |
| 2799 | /* confdefs.h. */ |
| 2800 | _ACEOF |
| 2801 | cat confdefs.h >>conftest.$ac_ext |
| 2802 | cat >>conftest.$ac_ext <<_ACEOF |
| 2803 | /* end confdefs.h. */ |
| 2804 | |
| 2805 | int |
| 2806 | main () |
| 2807 | { |
| 2808 | |
| 2809 | ; |
| 2810 | return 0; |
| 2811 | } |
| 2812 | _ACEOF |
| 2813 | ac_clean_files_save=$ac_clean_files |
| 2814 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2815 | # Try to create an executable without -o first, disregard a.out. |
| 2816 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2817 | # of exeext. |
| 2818 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2819 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2820 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2821 | # |
| 2822 | # List of possible output files, starting from the most likely. |
| 2823 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2824 | # only as a last resort. b.out is created by i960 compilers. |
| 2825 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2826 | # |
| 2827 | # The IRIX 6 linker writes into existing files which may not be |
| 2828 | # executable, retaining their permissions. Remove them first so a |
| 2829 | # subsequent execution test works. |
| 2830 | ac_rmfiles= |
| 2831 | for ac_file in $ac_files |
| 2832 | do |
| 2833 | case $ac_file in |
| 2834 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2835 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2836 | esac |
| 2837 | done |
| 2838 | rm -f $ac_rmfiles |
| 2839 | |
| 2840 | if { (ac_try="$ac_link_default" |
| 2841 | case "(($ac_try" in |
| 2842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2843 | *) ac_try_echo=$ac_try;; |
| 2844 | esac |
| 2845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2846 | (eval "$ac_link_default") 2>&5 |
| 2847 | ac_status=$? |
| 2848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2849 | (exit $ac_status); }; then |
| 2850 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2851 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2852 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2853 | # so that the user can short-circuit this test for compilers unknown to |
| 2854 | # Autoconf. |
| 2855 | for ac_file in $ac_files '' |
| 2856 | do |
| 2857 | test -f "$ac_file" || continue |
| 2858 | case $ac_file in |
| 2859 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
| 2860 | ;; |
| 2861 | [ab].out ) |
| 2862 | # We found the default executable, but exeext='' is most |
| 2863 | # certainly right. |
| 2864 | break;; |
| 2865 | *.* ) |
| 2866 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2867 | then :; else |
| 2868 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2869 | fi |
| 2870 | # We set ac_cv_exeext here because the later test for it is not |
| 2871 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2872 | # argument, so we may need to know it at that point already. |
| 2873 | # Even if this section looks crufty: it has the advantage of |
| 2874 | # actually working. |
| 2875 | break;; |
| 2876 | * ) |
| 2877 | break;; |
| 2878 | esac |
| 2879 | done |
| 2880 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2881 | |
| 2882 | else |
| 2883 | ac_file='' |
| 2884 | fi |
| 2885 | |
| 2886 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2887 | echo "${ECHO_T}$ac_file" >&6; } |
| 2888 | if test -z "$ac_file"; then |
| 2889 | echo "$as_me: failed program was:" >&5 |
| 2890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2891 | |
| 2892 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2893 | See \`config.log' for more details." >&5 |
| 2894 | echo "$as_me: error: C compiler cannot create executables |
| 2895 | See \`config.log' for more details." >&2;} |
| 2896 | { (exit 77); exit 77; }; } |
| 2897 | fi |
| 2898 | |
| 2899 | ac_exeext=$ac_cv_exeext |
| 2900 | |
| 2901 | # Check that the compiler produces executables we can run. If not, either |
| 2902 | # the compiler is broken, or we cross compile. |
| 2903 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2904 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2905 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2906 | # If not cross compiling, check that we can run a simple program. |
| 2907 | if test "$cross_compiling" != yes; then |
| 2908 | if { ac_try='./$ac_file' |
| 2909 | { (case "(($ac_try" in |
| 2910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2911 | *) ac_try_echo=$ac_try;; |
| 2912 | esac |
| 2913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2914 | (eval "$ac_try") 2>&5 |
| 2915 | ac_status=$? |
| 2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2917 | (exit $ac_status); }; }; then |
| 2918 | cross_compiling=no |
| 2919 | else |
| 2920 | if test "$cross_compiling" = maybe; then |
| 2921 | cross_compiling=yes |
| 2922 | else |
| 2923 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2924 | If you meant to cross compile, use \`--host'. |
| 2925 | See \`config.log' for more details." >&5 |
| 2926 | echo "$as_me: error: cannot run C compiled programs. |
| 2927 | If you meant to cross compile, use \`--host'. |
| 2928 | See \`config.log' for more details." >&2;} |
| 2929 | { (exit 1); exit 1; }; } |
| 2930 | fi |
| 2931 | fi |
| 2932 | fi |
| 2933 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2934 | echo "${ECHO_T}yes" >&6; } |
| 2935 | |
| 2936 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2937 | ac_clean_files=$ac_clean_files_save |
| 2938 | # Check that the compiler produces executables we can run. If not, either |
| 2939 | # the compiler is broken, or we cross compile. |
| 2940 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2941 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2942 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2943 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2944 | |
| 2945 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2946 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2947 | if { (ac_try="$ac_link" |
| 2948 | case "(($ac_try" in |
| 2949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2950 | *) ac_try_echo=$ac_try;; |
| 2951 | esac |
| 2952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2953 | (eval "$ac_link") 2>&5 |
| 2954 | ac_status=$? |
| 2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2956 | (exit $ac_status); }; then |
| 2957 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2958 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2959 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2960 | # `rm'. |
| 2961 | for ac_file in conftest.exe conftest conftest.*; do |
| 2962 | test -f "$ac_file" || continue |
| 2963 | case $ac_file in |
| 2964 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2965 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2966 | break;; |
| 2967 | * ) break;; |
| 2968 | esac |
| 2969 | done |
| 2970 | else |
| 2971 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2972 | See \`config.log' for more details." >&5 |
| 2973 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2974 | See \`config.log' for more details." >&2;} |
| 2975 | { (exit 1); exit 1; }; } |
| 2976 | fi |
| 2977 | |
| 2978 | rm -f conftest$ac_cv_exeext |
| 2979 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2980 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
| 2981 | |
| 2982 | rm -f conftest.$ac_ext |
| 2983 | EXEEXT=$ac_cv_exeext |
| 2984 | ac_exeext=$EXEEXT |
| 2985 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2986 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2987 | if test "${ac_cv_objext+set}" = set; then |
| 2988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2989 | else |
| 2990 | cat >conftest.$ac_ext <<_ACEOF |
| 2991 | /* confdefs.h. */ |
| 2992 | _ACEOF |
| 2993 | cat confdefs.h >>conftest.$ac_ext |
| 2994 | cat >>conftest.$ac_ext <<_ACEOF |
| 2995 | /* end confdefs.h. */ |
| 2996 | |
| 2997 | int |
| 2998 | main () |
| 2999 | { |
| 3000 | |
| 3001 | ; |
| 3002 | return 0; |
| 3003 | } |
| 3004 | _ACEOF |
| 3005 | rm -f conftest.o conftest.obj |
| 3006 | if { (ac_try="$ac_compile" |
| 3007 | case "(($ac_try" in |
| 3008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3009 | *) ac_try_echo=$ac_try;; |
| 3010 | esac |
| 3011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3012 | (eval "$ac_compile") 2>&5 |
| 3013 | ac_status=$? |
| 3014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3015 | (exit $ac_status); }; then |
| 3016 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3017 | test -f "$ac_file" || continue; |
| 3018 | case $ac_file in |
| 3019 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
| 3020 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3021 | break;; |
| 3022 | esac |
| 3023 | done |
| 3024 | else |
| 3025 | echo "$as_me: failed program was:" >&5 |
| 3026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3027 | |
| 3028 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3029 | See \`config.log' for more details." >&5 |
| 3030 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3031 | See \`config.log' for more details." >&2;} |
| 3032 | { (exit 1); exit 1; }; } |
| 3033 | fi |
| 3034 | |
| 3035 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3036 | fi |
| 3037 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3038 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
| 3039 | OBJEXT=$ac_cv_objext |
| 3040 | ac_objext=$OBJEXT |
| 3041 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3042 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 3043 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3045 | else |
| 3046 | cat >conftest.$ac_ext <<_ACEOF |
| 3047 | /* confdefs.h. */ |
| 3048 | _ACEOF |
| 3049 | cat confdefs.h >>conftest.$ac_ext |
| 3050 | cat >>conftest.$ac_ext <<_ACEOF |
| 3051 | /* end confdefs.h. */ |
| 3052 | |
| 3053 | int |
| 3054 | main () |
| 3055 | { |
| 3056 | #ifndef __GNUC__ |
| 3057 | choke me |
| 3058 | #endif |
| 3059 | |
| 3060 | ; |
| 3061 | return 0; |
| 3062 | } |
| 3063 | _ACEOF |
| 3064 | rm -f conftest.$ac_objext |
| 3065 | if { (ac_try="$ac_compile" |
| 3066 | case "(($ac_try" in |
| 3067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3068 | *) ac_try_echo=$ac_try;; |
| 3069 | esac |
| 3070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3071 | (eval "$ac_compile") 2>conftest.er1 |
| 3072 | ac_status=$? |
| 3073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3074 | rm -f conftest.er1 |
| 3075 | cat conftest.err >&5 |
| 3076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3077 | (exit $ac_status); } && { |
| 3078 | test -z "$ac_c_werror_flag" || |
| 3079 | test ! -s conftest.err |
| 3080 | } && test -s conftest.$ac_objext; then |
| 3081 | ac_compiler_gnu=yes |
| 3082 | else |
| 3083 | echo "$as_me: failed program was:" >&5 |
| 3084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3085 | |
| 3086 | ac_compiler_gnu=no |
| 3087 | fi |
| 3088 | |
| 3089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3090 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3091 | |
| 3092 | fi |
| 3093 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3094 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3095 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3096 | ac_test_CFLAGS=${CFLAGS+set} |
| 3097 | ac_save_CFLAGS=$CFLAGS |
| 3098 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3099 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3100 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3102 | else |
| 3103 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3104 | ac_c_werror_flag=yes |
| 3105 | ac_cv_prog_cc_g=no |
| 3106 | CFLAGS="-g" |
| 3107 | cat >conftest.$ac_ext <<_ACEOF |
| 3108 | /* confdefs.h. */ |
| 3109 | _ACEOF |
| 3110 | cat confdefs.h >>conftest.$ac_ext |
| 3111 | cat >>conftest.$ac_ext <<_ACEOF |
| 3112 | /* end confdefs.h. */ |
| 3113 | |
| 3114 | int |
| 3115 | main () |
| 3116 | { |
| 3117 | |
| 3118 | ; |
| 3119 | return 0; |
| 3120 | } |
| 3121 | _ACEOF |
| 3122 | rm -f conftest.$ac_objext |
| 3123 | if { (ac_try="$ac_compile" |
| 3124 | case "(($ac_try" in |
| 3125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3126 | *) ac_try_echo=$ac_try;; |
| 3127 | esac |
| 3128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3129 | (eval "$ac_compile") 2>conftest.er1 |
| 3130 | ac_status=$? |
| 3131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3132 | rm -f conftest.er1 |
| 3133 | cat conftest.err >&5 |
| 3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3135 | (exit $ac_status); } && { |
| 3136 | test -z "$ac_c_werror_flag" || |
| 3137 | test ! -s conftest.err |
| 3138 | } && test -s conftest.$ac_objext; then |
| 3139 | ac_cv_prog_cc_g=yes |
| 3140 | else |
| 3141 | echo "$as_me: failed program was:" >&5 |
| 3142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3143 | |
| 3144 | CFLAGS="" |
| 3145 | cat >conftest.$ac_ext <<_ACEOF |
| 3146 | /* confdefs.h. */ |
| 3147 | _ACEOF |
| 3148 | cat confdefs.h >>conftest.$ac_ext |
| 3149 | cat >>conftest.$ac_ext <<_ACEOF |
| 3150 | /* end confdefs.h. */ |
| 3151 | |
| 3152 | int |
| 3153 | main () |
| 3154 | { |
| 3155 | |
| 3156 | ; |
| 3157 | return 0; |
| 3158 | } |
| 3159 | _ACEOF |
| 3160 | rm -f conftest.$ac_objext |
| 3161 | if { (ac_try="$ac_compile" |
| 3162 | case "(($ac_try" in |
| 3163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3164 | *) ac_try_echo=$ac_try;; |
| 3165 | esac |
| 3166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3167 | (eval "$ac_compile") 2>conftest.er1 |
| 3168 | ac_status=$? |
| 3169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3170 | rm -f conftest.er1 |
| 3171 | cat conftest.err >&5 |
| 3172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3173 | (exit $ac_status); } && { |
| 3174 | test -z "$ac_c_werror_flag" || |
| 3175 | test ! -s conftest.err |
| 3176 | } && test -s conftest.$ac_objext; then |
| 3177 | : |
| 3178 | else |
| 3179 | echo "$as_me: failed program was:" >&5 |
| 3180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3181 | |
| 3182 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3183 | CFLAGS="-g" |
| 3184 | cat >conftest.$ac_ext <<_ACEOF |
| 3185 | /* confdefs.h. */ |
| 3186 | _ACEOF |
| 3187 | cat confdefs.h >>conftest.$ac_ext |
| 3188 | cat >>conftest.$ac_ext <<_ACEOF |
| 3189 | /* end confdefs.h. */ |
| 3190 | |
| 3191 | int |
| 3192 | main () |
| 3193 | { |
| 3194 | |
| 3195 | ; |
| 3196 | return 0; |
| 3197 | } |
| 3198 | _ACEOF |
| 3199 | rm -f conftest.$ac_objext |
| 3200 | if { (ac_try="$ac_compile" |
| 3201 | case "(($ac_try" in |
| 3202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3203 | *) ac_try_echo=$ac_try;; |
| 3204 | esac |
| 3205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3206 | (eval "$ac_compile") 2>conftest.er1 |
| 3207 | ac_status=$? |
| 3208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3209 | rm -f conftest.er1 |
| 3210 | cat conftest.err >&5 |
| 3211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3212 | (exit $ac_status); } && { |
| 3213 | test -z "$ac_c_werror_flag" || |
| 3214 | test ! -s conftest.err |
| 3215 | } && test -s conftest.$ac_objext; then |
| 3216 | ac_cv_prog_cc_g=yes |
| 3217 | else |
| 3218 | echo "$as_me: failed program was:" >&5 |
| 3219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3220 | |
| 3221 | |
| 3222 | fi |
| 3223 | |
| 3224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3225 | fi |
| 3226 | |
| 3227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3228 | fi |
| 3229 | |
| 3230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3231 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3232 | fi |
| 3233 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3234 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 3235 | if test "$ac_test_CFLAGS" = set; then |
| 3236 | CFLAGS=$ac_save_CFLAGS |
| 3237 | elif test $ac_cv_prog_cc_g = yes; then |
| 3238 | if test "$GCC" = yes; then |
| 3239 | CFLAGS="-g -O2" |
| 3240 | else |
| 3241 | CFLAGS="-g" |
| 3242 | fi |
| 3243 | else |
| 3244 | if test "$GCC" = yes; then |
| 3245 | CFLAGS="-O2" |
| 3246 | else |
| 3247 | CFLAGS= |
| 3248 | fi |
| 3249 | fi |
| 3250 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3251 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3252 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3254 | else |
| 3255 | ac_cv_prog_cc_c89=no |
| 3256 | ac_save_CC=$CC |
| 3257 | cat >conftest.$ac_ext <<_ACEOF |
| 3258 | /* confdefs.h. */ |
| 3259 | _ACEOF |
| 3260 | cat confdefs.h >>conftest.$ac_ext |
| 3261 | cat >>conftest.$ac_ext <<_ACEOF |
| 3262 | /* end confdefs.h. */ |
| 3263 | #include <stdarg.h> |
| 3264 | #include <stdio.h> |
| 3265 | #include <sys/types.h> |
| 3266 | #include <sys/stat.h> |
| 3267 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3268 | struct buf { int x; }; |
| 3269 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3270 | static char *e (p, i) |
| 3271 | char **p; |
| 3272 | int i; |
| 3273 | { |
| 3274 | return p[i]; |
| 3275 | } |
| 3276 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3277 | { |
| 3278 | char *s; |
| 3279 | va_list v; |
| 3280 | va_start (v,p); |
| 3281 | s = g (p, va_arg (v,int)); |
| 3282 | va_end (v); |
| 3283 | return s; |
| 3284 | } |
| 3285 | |
| 3286 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3287 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3288 | These don't provoke an error unfortunately, instead are silently treated |
| 3289 | as 'x'. The following induces an error, until -std is added to get |
| 3290 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3291 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3292 | that's true only with -std. */ |
| 3293 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3294 | |
| 3295 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3296 | inside strings and character constants. */ |
| 3297 | #define FOO(x) 'x' |
| 3298 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3299 | |
| 3300 | int test (int i, double x); |
| 3301 | struct s1 {int (*f) (int a);}; |
| 3302 | struct s2 {int (*f) (double a);}; |
| 3303 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3304 | int argc; |
| 3305 | char **argv; |
| 3306 | int |
| 3307 | main () |
| 3308 | { |
| 3309 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3310 | ; |
| 3311 | return 0; |
| 3312 | } |
| 3313 | _ACEOF |
| 3314 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3315 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3316 | do |
| 3317 | CC="$ac_save_CC $ac_arg" |
| 3318 | rm -f conftest.$ac_objext |
| 3319 | if { (ac_try="$ac_compile" |
| 3320 | case "(($ac_try" in |
| 3321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3322 | *) ac_try_echo=$ac_try;; |
| 3323 | esac |
| 3324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3325 | (eval "$ac_compile") 2>conftest.er1 |
| 3326 | ac_status=$? |
| 3327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3328 | rm -f conftest.er1 |
| 3329 | cat conftest.err >&5 |
| 3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3331 | (exit $ac_status); } && { |
| 3332 | test -z "$ac_c_werror_flag" || |
| 3333 | test ! -s conftest.err |
| 3334 | } && test -s conftest.$ac_objext; then |
| 3335 | ac_cv_prog_cc_c89=$ac_arg |
| 3336 | else |
| 3337 | echo "$as_me: failed program was:" >&5 |
| 3338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3339 | |
| 3340 | |
| 3341 | fi |
| 3342 | |
| 3343 | rm -f core conftest.err conftest.$ac_objext |
| 3344 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3345 | done |
| 3346 | rm -f conftest.$ac_ext |
| 3347 | CC=$ac_save_CC |
| 3348 | |
| 3349 | fi |
| 3350 | # AC_CACHE_VAL |
| 3351 | case "x$ac_cv_prog_cc_c89" in |
| 3352 | x) |
| 3353 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3354 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3355 | xno) |
| 3356 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3357 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 3358 | *) |
| 3359 | CC="$CC $ac_cv_prog_cc_c89" |
| 3360 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3361 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 3362 | esac |
| 3363 | |
| 3364 | |
| 3365 | ac_ext=c |
| 3366 | ac_cpp='$CPP $CPPFLAGS' |
| 3367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3370 | DEPDIR="${am__leading_dot}deps" |
| 3371 | |
| 3372 | ac_config_commands="$ac_config_commands depfiles" |
| 3373 | |
| 3374 | |
| 3375 | am_make=${MAKE-make} |
| 3376 | cat > confinc << 'END' |
| 3377 | am__doit: |
| 3378 | @echo done |
| 3379 | .PHONY: am__doit |
| 3380 | END |
| 3381 | # If we don't find an include directive, just comment out the code. |
| 3382 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 3383 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
| 3384 | am__include="#" |
| 3385 | am__quote= |
| 3386 | _am_result=none |
| 3387 | # First try GNU make style include. |
| 3388 | echo "include confinc" > confmf |
| 3389 | # We grep out `Entering directory' and `Leaving directory' |
| 3390 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 3391 | # In particular we don't look at `^make:' because GNU make might |
| 3392 | # be invoked under some other name (usually "gmake"), in which |
| 3393 | # case it prints its new name instead of `make'. |
| 3394 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 3395 | am__include=include |
| 3396 | am__quote= |
| 3397 | _am_result=GNU |
| 3398 | fi |
| 3399 | # Now try BSD make style include. |
| 3400 | if test "$am__include" = "#"; then |
| 3401 | echo '.include "confinc"' > confmf |
| 3402 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 3403 | am__include=.include |
| 3404 | am__quote="\"" |
| 3405 | _am_result=BSD |
| 3406 | fi |
| 3407 | fi |
| 3408 | |
| 3409 | |
| 3410 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 3411 | echo "${ECHO_T}$_am_result" >&6; } |
| 3412 | rm -f confinc confmf |
| 3413 | |
| 3414 | # Check whether --enable-dependency-tracking was given. |
| 3415 | if test "${enable_dependency_tracking+set}" = set; then |
| 3416 | enableval=$enable_dependency_tracking; |
| 3417 | fi |
| 3418 | |
| 3419 | if test "x$enable_dependency_tracking" != xno; then |
| 3420 | am_depcomp="$ac_aux_dir/depcomp" |
| 3421 | AMDEPBACKSLASH='\' |
| 3422 | fi |
| 3423 | if test "x$enable_dependency_tracking" != xno; then |
| 3424 | AMDEP_TRUE= |
| 3425 | AMDEP_FALSE='#' |
| 3426 | else |
| 3427 | AMDEP_TRUE='#' |
| 3428 | AMDEP_FALSE= |
| 3429 | fi |
| 3430 | |
| 3431 | |
| 3432 | |
| 3433 | depcc="$CC" am_compiler_list= |
| 3434 | |
| 3435 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3436 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
| 3437 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 3438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3439 | else |
| 3440 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3441 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3442 | # making bogus files that we don't know about and never remove. For |
| 3443 | # instance it was reported that on HP-UX the gcc test will end up |
| 3444 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3445 | # in D'. |
| 3446 | mkdir conftest.dir |
| 3447 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3448 | # using a relative directory. |
| 3449 | cp "$am_depcomp" conftest.dir |
| 3450 | cd conftest.dir |
| 3451 | # We will build objects and dependencies in a subdirectory because |
| 3452 | # it helps to detect inapplicable dependency modes. For instance |
| 3453 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3454 | # side effect of compilation, but ICC will put the dependencies in |
| 3455 | # the current directory while Tru64 will put them in the object |
| 3456 | # directory. |
| 3457 | mkdir sub |
| 3458 | |
| 3459 | am_cv_CC_dependencies_compiler_type=none |
| 3460 | if test "$am_compiler_list" = ""; then |
| 3461 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3462 | fi |
| 3463 | for depmode in $am_compiler_list; do |
| 3464 | # Setup a source with many dependencies, because some compilers |
| 3465 | # like to wrap large dependency lists on column 80 (with \), and |
| 3466 | # we should not choose a depcomp mode which is confused by this. |
| 3467 | # |
| 3468 | # We need to recreate these files for each test, as the compiler may |
| 3469 | # overwrite some of them when testing with obscure command lines. |
| 3470 | # This happens at least with the AIX C compiler. |
| 3471 | : > sub/conftest.c |
| 3472 | for i in 1 2 3 4 5 6; do |
| 3473 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3474 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3475 | # Solaris 8's {/usr,}/bin/sh. |
| 3476 | touch sub/conftst$i.h |
| 3477 | done |
| 3478 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3479 | |
| 3480 | case $depmode in |
| 3481 | nosideeffect) |
| 3482 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3483 | # only be used when explicitly requested |
| 3484 | if test "x$enable_dependency_tracking" = xyes; then |
| 3485 | continue |
| 3486 | else |
| 3487 | break |
| 3488 | fi |
| 3489 | ;; |
| 3490 | none) break ;; |
| 3491 | esac |
| 3492 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3493 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3494 | # handle `-M -o', and we need to detect this. |
| 3495 | if depmode=$depmode \ |
| 3496 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3497 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3498 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3499 | >/dev/null 2>conftest.err && |
| 3500 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3501 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3502 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3503 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3504 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3505 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3506 | # that says an option was ignored or not supported. |
| 3507 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3508 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3509 | # The diagnosis changed in icc 8.0: |
| 3510 | # icc: Command line remark: option '-MP' not supported |
| 3511 | if (grep 'ignoring option' conftest.err || |
| 3512 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3513 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3514 | break |
| 3515 | fi |
| 3516 | fi |
| 3517 | done |
| 3518 | |
| 3519 | cd .. |
| 3520 | rm -rf conftest.dir |
| 3521 | else |
| 3522 | am_cv_CC_dependencies_compiler_type=none |
| 3523 | fi |
| 3524 | |
| 3525 | fi |
| 3526 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3527 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
| 3528 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3529 | |
| 3530 | if |
| 3531 | test "x$enable_dependency_tracking" != xno \ |
| 3532 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3533 | am__fastdepCC_TRUE= |
| 3534 | am__fastdepCC_FALSE='#' |
| 3535 | else |
| 3536 | am__fastdepCC_TRUE='#' |
| 3537 | am__fastdepCC_FALSE= |
| 3538 | fi |
| 3539 | |
| 3540 | |
| 3541 | ac_ext=cpp |
| 3542 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3543 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3544 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3545 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3546 | if test -z "$CXX"; then |
| 3547 | if test -n "$CCC"; then |
| 3548 | CXX=$CCC |
| 3549 | else |
| 3550 | if test -n "$ac_tool_prefix"; then |
| 3551 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 3552 | do |
| 3553 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3554 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3555 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 3557 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3559 | else |
| 3560 | if test -n "$CXX"; then |
| 3561 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3562 | else |
| 3563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3564 | for as_dir in $PATH |
| 3565 | do |
| 3566 | IFS=$as_save_IFS |
| 3567 | test -z "$as_dir" && as_dir=. |
| 3568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3570 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3572 | break 2 |
| 3573 | fi |
| 3574 | done |
| 3575 | done |
| 3576 | IFS=$as_save_IFS |
| 3577 | |
| 3578 | fi |
| 3579 | fi |
| 3580 | CXX=$ac_cv_prog_CXX |
| 3581 | if test -n "$CXX"; then |
| 3582 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3583 | echo "${ECHO_T}$CXX" >&6; } |
| 3584 | else |
| 3585 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3586 | echo "${ECHO_T}no" >&6; } |
| 3587 | fi |
| 3588 | |
| 3589 | |
| 3590 | test -n "$CXX" && break |
| 3591 | done |
| 3592 | fi |
| 3593 | if test -z "$CXX"; then |
| 3594 | ac_ct_CXX=$CXX |
| 3595 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 3596 | do |
| 3597 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3598 | set dummy $ac_prog; ac_word=$2 |
| 3599 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 3601 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3603 | else |
| 3604 | if test -n "$ac_ct_CXX"; then |
| 3605 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3606 | else |
| 3607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3608 | for as_dir in $PATH |
| 3609 | do |
| 3610 | IFS=$as_save_IFS |
| 3611 | test -z "$as_dir" && as_dir=. |
| 3612 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3614 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3616 | break 2 |
| 3617 | fi |
| 3618 | done |
| 3619 | done |
| 3620 | IFS=$as_save_IFS |
| 3621 | |
| 3622 | fi |
| 3623 | fi |
| 3624 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3625 | if test -n "$ac_ct_CXX"; then |
| 3626 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3627 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 3628 | else |
| 3629 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3630 | echo "${ECHO_T}no" >&6; } |
| 3631 | fi |
| 3632 | |
| 3633 | |
| 3634 | test -n "$ac_ct_CXX" && break |
| 3635 | done |
| 3636 | |
| 3637 | if test "x$ac_ct_CXX" = x; then |
| 3638 | CXX="g++" |
| 3639 | else |
| 3640 | case $cross_compiling:$ac_tool_warned in |
| 3641 | yes:) |
| 3642 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3643 | whose name does not start with the host triplet. If you think this |
| 3644 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3645 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3646 | whose name does not start with the host triplet. If you think this |
| 3647 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3648 | ac_tool_warned=yes ;; |
| 3649 | esac |
| 3650 | CXX=$ac_ct_CXX |
| 3651 | fi |
| 3652 | fi |
| 3653 | |
| 3654 | fi |
| 3655 | fi |
| 3656 | # Provide some information about the compiler. |
| 3657 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 3658 | ac_compiler=`set X $ac_compile; echo $2` |
| 3659 | { (ac_try="$ac_compiler --version >&5" |
| 3660 | case "(($ac_try" in |
| 3661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3662 | *) ac_try_echo=$ac_try;; |
| 3663 | esac |
| 3664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3665 | (eval "$ac_compiler --version >&5") 2>&5 |
| 3666 | ac_status=$? |
| 3667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3668 | (exit $ac_status); } |
| 3669 | { (ac_try="$ac_compiler -v >&5" |
| 3670 | case "(($ac_try" in |
| 3671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3672 | *) ac_try_echo=$ac_try;; |
| 3673 | esac |
| 3674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3675 | (eval "$ac_compiler -v >&5") 2>&5 |
| 3676 | ac_status=$? |
| 3677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3678 | (exit $ac_status); } |
| 3679 | { (ac_try="$ac_compiler -V >&5" |
| 3680 | case "(($ac_try" in |
| 3681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3682 | *) ac_try_echo=$ac_try;; |
| 3683 | esac |
| 3684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3685 | (eval "$ac_compiler -V >&5") 2>&5 |
| 3686 | ac_status=$? |
| 3687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3688 | (exit $ac_status); } |
| 3689 | |
| 3690 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3691 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 3692 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3694 | else |
| 3695 | cat >conftest.$ac_ext <<_ACEOF |
| 3696 | /* confdefs.h. */ |
| 3697 | _ACEOF |
| 3698 | cat confdefs.h >>conftest.$ac_ext |
| 3699 | cat >>conftest.$ac_ext <<_ACEOF |
| 3700 | /* end confdefs.h. */ |
| 3701 | |
| 3702 | int |
| 3703 | main () |
| 3704 | { |
| 3705 | #ifndef __GNUC__ |
| 3706 | choke me |
| 3707 | #endif |
| 3708 | |
| 3709 | ; |
| 3710 | return 0; |
| 3711 | } |
| 3712 | _ACEOF |
| 3713 | rm -f conftest.$ac_objext |
| 3714 | if { (ac_try="$ac_compile" |
| 3715 | case "(($ac_try" in |
| 3716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3717 | *) ac_try_echo=$ac_try;; |
| 3718 | esac |
| 3719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3720 | (eval "$ac_compile") 2>conftest.er1 |
| 3721 | ac_status=$? |
| 3722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3723 | rm -f conftest.er1 |
| 3724 | cat conftest.err >&5 |
| 3725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3726 | (exit $ac_status); } && { |
| 3727 | test -z "$ac_cxx_werror_flag" || |
| 3728 | test ! -s conftest.err |
| 3729 | } && test -s conftest.$ac_objext; then |
| 3730 | ac_compiler_gnu=yes |
| 3731 | else |
| 3732 | echo "$as_me: failed program was:" >&5 |
| 3733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3734 | |
| 3735 | ac_compiler_gnu=no |
| 3736 | fi |
| 3737 | |
| 3738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3739 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3740 | |
| 3741 | fi |
| 3742 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3743 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 3744 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3745 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3746 | ac_save_CXXFLAGS=$CXXFLAGS |
| 3747 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3748 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 3749 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3751 | else |
| 3752 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3753 | ac_cxx_werror_flag=yes |
| 3754 | ac_cv_prog_cxx_g=no |
| 3755 | CXXFLAGS="-g" |
| 3756 | cat >conftest.$ac_ext <<_ACEOF |
| 3757 | /* confdefs.h. */ |
| 3758 | _ACEOF |
| 3759 | cat confdefs.h >>conftest.$ac_ext |
| 3760 | cat >>conftest.$ac_ext <<_ACEOF |
| 3761 | /* end confdefs.h. */ |
| 3762 | |
| 3763 | int |
| 3764 | main () |
| 3765 | { |
| 3766 | |
| 3767 | ; |
| 3768 | return 0; |
| 3769 | } |
| 3770 | _ACEOF |
| 3771 | rm -f conftest.$ac_objext |
| 3772 | if { (ac_try="$ac_compile" |
| 3773 | case "(($ac_try" in |
| 3774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3775 | *) ac_try_echo=$ac_try;; |
| 3776 | esac |
| 3777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3778 | (eval "$ac_compile") 2>conftest.er1 |
| 3779 | ac_status=$? |
| 3780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3781 | rm -f conftest.er1 |
| 3782 | cat conftest.err >&5 |
| 3783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3784 | (exit $ac_status); } && { |
| 3785 | test -z "$ac_cxx_werror_flag" || |
| 3786 | test ! -s conftest.err |
| 3787 | } && test -s conftest.$ac_objext; then |
| 3788 | ac_cv_prog_cxx_g=yes |
| 3789 | else |
| 3790 | echo "$as_me: failed program was:" >&5 |
| 3791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3792 | |
| 3793 | CXXFLAGS="" |
| 3794 | cat >conftest.$ac_ext <<_ACEOF |
| 3795 | /* confdefs.h. */ |
| 3796 | _ACEOF |
| 3797 | cat confdefs.h >>conftest.$ac_ext |
| 3798 | cat >>conftest.$ac_ext <<_ACEOF |
| 3799 | /* end confdefs.h. */ |
| 3800 | |
| 3801 | int |
| 3802 | main () |
| 3803 | { |
| 3804 | |
| 3805 | ; |
| 3806 | return 0; |
| 3807 | } |
| 3808 | _ACEOF |
| 3809 | rm -f conftest.$ac_objext |
| 3810 | if { (ac_try="$ac_compile" |
| 3811 | case "(($ac_try" in |
| 3812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3813 | *) ac_try_echo=$ac_try;; |
| 3814 | esac |
| 3815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3816 | (eval "$ac_compile") 2>conftest.er1 |
| 3817 | ac_status=$? |
| 3818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3819 | rm -f conftest.er1 |
| 3820 | cat conftest.err >&5 |
| 3821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3822 | (exit $ac_status); } && { |
| 3823 | test -z "$ac_cxx_werror_flag" || |
| 3824 | test ! -s conftest.err |
| 3825 | } && test -s conftest.$ac_objext; then |
| 3826 | : |
| 3827 | else |
| 3828 | echo "$as_me: failed program was:" >&5 |
| 3829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3830 | |
| 3831 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3832 | CXXFLAGS="-g" |
| 3833 | cat >conftest.$ac_ext <<_ACEOF |
| 3834 | /* confdefs.h. */ |
| 3835 | _ACEOF |
| 3836 | cat confdefs.h >>conftest.$ac_ext |
| 3837 | cat >>conftest.$ac_ext <<_ACEOF |
| 3838 | /* end confdefs.h. */ |
| 3839 | |
| 3840 | int |
| 3841 | main () |
| 3842 | { |
| 3843 | |
| 3844 | ; |
| 3845 | return 0; |
| 3846 | } |
| 3847 | _ACEOF |
| 3848 | rm -f conftest.$ac_objext |
| 3849 | if { (ac_try="$ac_compile" |
| 3850 | case "(($ac_try" in |
| 3851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3852 | *) ac_try_echo=$ac_try;; |
| 3853 | esac |
| 3854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3855 | (eval "$ac_compile") 2>conftest.er1 |
| 3856 | ac_status=$? |
| 3857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3858 | rm -f conftest.er1 |
| 3859 | cat conftest.err >&5 |
| 3860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3861 | (exit $ac_status); } && { |
| 3862 | test -z "$ac_cxx_werror_flag" || |
| 3863 | test ! -s conftest.err |
| 3864 | } && test -s conftest.$ac_objext; then |
| 3865 | ac_cv_prog_cxx_g=yes |
| 3866 | else |
| 3867 | echo "$as_me: failed program was:" >&5 |
| 3868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3869 | |
| 3870 | |
| 3871 | fi |
| 3872 | |
| 3873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3874 | fi |
| 3875 | |
| 3876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3877 | fi |
| 3878 | |
| 3879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3880 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3881 | fi |
| 3882 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3883 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3884 | if test "$ac_test_CXXFLAGS" = set; then |
| 3885 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3886 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3887 | if test "$GXX" = yes; then |
| 3888 | CXXFLAGS="-g -O2" |
| 3889 | else |
| 3890 | CXXFLAGS="-g" |
| 3891 | fi |
| 3892 | else |
| 3893 | if test "$GXX" = yes; then |
| 3894 | CXXFLAGS="-O2" |
| 3895 | else |
| 3896 | CXXFLAGS= |
| 3897 | fi |
| 3898 | fi |
| 3899 | ac_ext=c |
| 3900 | ac_cpp='$CPP $CPPFLAGS' |
| 3901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3904 | |
| 3905 | depcc="$CXX" am_compiler_list= |
| 3906 | |
| 3907 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3908 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
| 3909 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 3910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3911 | else |
| 3912 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3913 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3914 | # making bogus files that we don't know about and never remove. For |
| 3915 | # instance it was reported that on HP-UX the gcc test will end up |
| 3916 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3917 | # in D'. |
| 3918 | mkdir conftest.dir |
| 3919 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3920 | # using a relative directory. |
| 3921 | cp "$am_depcomp" conftest.dir |
| 3922 | cd conftest.dir |
| 3923 | # We will build objects and dependencies in a subdirectory because |
| 3924 | # it helps to detect inapplicable dependency modes. For instance |
| 3925 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3926 | # side effect of compilation, but ICC will put the dependencies in |
| 3927 | # the current directory while Tru64 will put them in the object |
| 3928 | # directory. |
| 3929 | mkdir sub |
| 3930 | |
| 3931 | am_cv_CXX_dependencies_compiler_type=none |
| 3932 | if test "$am_compiler_list" = ""; then |
| 3933 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3934 | fi |
| 3935 | for depmode in $am_compiler_list; do |
| 3936 | # Setup a source with many dependencies, because some compilers |
| 3937 | # like to wrap large dependency lists on column 80 (with \), and |
| 3938 | # we should not choose a depcomp mode which is confused by this. |
| 3939 | # |
| 3940 | # We need to recreate these files for each test, as the compiler may |
| 3941 | # overwrite some of them when testing with obscure command lines. |
| 3942 | # This happens at least with the AIX C compiler. |
| 3943 | : > sub/conftest.c |
| 3944 | for i in 1 2 3 4 5 6; do |
| 3945 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3946 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3947 | # Solaris 8's {/usr,}/bin/sh. |
| 3948 | touch sub/conftst$i.h |
| 3949 | done |
| 3950 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3951 | |
| 3952 | case $depmode in |
| 3953 | nosideeffect) |
| 3954 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3955 | # only be used when explicitly requested |
| 3956 | if test "x$enable_dependency_tracking" = xyes; then |
| 3957 | continue |
| 3958 | else |
| 3959 | break |
| 3960 | fi |
| 3961 | ;; |
| 3962 | none) break ;; |
| 3963 | esac |
| 3964 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3965 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3966 | # handle `-M -o', and we need to detect this. |
| 3967 | if depmode=$depmode \ |
| 3968 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3969 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3970 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3971 | >/dev/null 2>conftest.err && |
| 3972 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3973 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3974 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3975 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3976 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3977 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3978 | # that says an option was ignored or not supported. |
| 3979 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3980 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3981 | # The diagnosis changed in icc 8.0: |
| 3982 | # icc: Command line remark: option '-MP' not supported |
| 3983 | if (grep 'ignoring option' conftest.err || |
| 3984 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3985 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 3986 | break |
| 3987 | fi |
| 3988 | fi |
| 3989 | done |
| 3990 | |
| 3991 | cd .. |
| 3992 | rm -rf conftest.dir |
| 3993 | else |
| 3994 | am_cv_CXX_dependencies_compiler_type=none |
| 3995 | fi |
| 3996 | |
| 3997 | fi |
| 3998 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 3999 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 4000 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4001 | |
| 4002 | if |
| 4003 | test "x$enable_dependency_tracking" != xno \ |
| 4004 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4005 | am__fastdepCXX_TRUE= |
| 4006 | am__fastdepCXX_FALSE='#' |
| 4007 | else |
| 4008 | am__fastdepCXX_TRUE='#' |
| 4009 | am__fastdepCXX_FALSE= |
| 4010 | fi |
| 4011 | |
| 4012 | |
| 4013 | # Find a good install program. We prefer a C program (faster), |
| 4014 | # so one script is as good as another. But avoid the broken or |
| 4015 | # incompatible versions: |
| 4016 | # SysV /etc/install, /usr/sbin/install |
| 4017 | # SunOS /usr/etc/install |
| 4018 | # IRIX /sbin/install |
| 4019 | # AIX /bin/install |
| 4020 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4021 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4022 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4023 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4024 | # OS/2's system install, which has a completely different semantic |
| 4025 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4026 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4027 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 4028 | if test -z "$INSTALL"; then |
| 4029 | if test "${ac_cv_path_install+set}" = set; then |
| 4030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4031 | else |
| 4032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4033 | for as_dir in $PATH |
| 4034 | do |
| 4035 | IFS=$as_save_IFS |
| 4036 | test -z "$as_dir" && as_dir=. |
| 4037 | # Account for people who put trailing slashes in PATH elements. |
| 4038 | case $as_dir/ in |
| 4039 | ./ | .// | /cC/* | \ |
| 4040 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4041 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4042 | /usr/ucb/* ) ;; |
| 4043 | *) |
| 4044 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4045 | # Don't use installbsd from OSF since it installs stuff as root |
| 4046 | # by default. |
| 4047 | for ac_prog in ginstall scoinst install; do |
| 4048 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4049 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4050 | if test $ac_prog = install && |
| 4051 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4052 | # AIX install. It has an incompatible calling convention. |
| 4053 | : |
| 4054 | elif test $ac_prog = install && |
| 4055 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4056 | # program-specific install script used by HP pwplus--don't use. |
| 4057 | : |
| 4058 | else |
| 4059 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4060 | break 3 |
| 4061 | fi |
| 4062 | fi |
| 4063 | done |
| 4064 | done |
| 4065 | ;; |
| 4066 | esac |
| 4067 | done |
| 4068 | IFS=$as_save_IFS |
| 4069 | |
| 4070 | |
| 4071 | fi |
| 4072 | if test "${ac_cv_path_install+set}" = set; then |
| 4073 | INSTALL=$ac_cv_path_install |
| 4074 | else |
| 4075 | # As a last resort, use the slow shell script. Don't cache a |
| 4076 | # value for INSTALL within a source directory, because that will |
| 4077 | # break other packages using the cache if that directory is |
| 4078 | # removed, or if the value is a relative name. |
| 4079 | INSTALL=$ac_install_sh |
| 4080 | fi |
| 4081 | fi |
| 4082 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4083 | echo "${ECHO_T}$INSTALL" >&6; } |
| 4084 | |
| 4085 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4086 | # It thinks the first close brace ends the variable substitution. |
| 4087 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4088 | |
| 4089 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4090 | |
| 4091 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4092 | |
| 4093 | |
| 4094 | |
| 4095 | # Check whether --enable-shared was given. |
| 4096 | if test "${enable_shared+set}" = set; then |
| 4097 | enableval=$enable_shared; p=${PACKAGE-default} |
| 4098 | case $enableval in |
| 4099 | yes) enable_shared=yes ;; |
| 4100 | no) enable_shared=no ;; |
| 4101 | *) |
| 4102 | enable_shared=no |
| 4103 | # Look at the argument we got. We use all the common list separators. |
| 4104 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4105 | for pkg in $enableval; do |
| 4106 | IFS="$lt_save_ifs" |
| 4107 | if test "X$pkg" = "X$p"; then |
| 4108 | enable_shared=yes |
| 4109 | fi |
| 4110 | done |
| 4111 | IFS="$lt_save_ifs" |
| 4112 | ;; |
| 4113 | esac |
| 4114 | else |
| 4115 | enable_shared=yes |
| 4116 | fi |
| 4117 | |
| 4118 | |
| 4119 | # Check whether --enable-static was given. |
| 4120 | if test "${enable_static+set}" = set; then |
| 4121 | enableval=$enable_static; p=${PACKAGE-default} |
| 4122 | case $enableval in |
| 4123 | yes) enable_static=yes ;; |
| 4124 | no) enable_static=no ;; |
| 4125 | *) |
| 4126 | enable_static=no |
| 4127 | # Look at the argument we got. We use all the common list separators. |
| 4128 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4129 | for pkg in $enableval; do |
| 4130 | IFS="$lt_save_ifs" |
| 4131 | if test "X$pkg" = "X$p"; then |
| 4132 | enable_static=yes |
| 4133 | fi |
| 4134 | done |
| 4135 | IFS="$lt_save_ifs" |
| 4136 | ;; |
| 4137 | esac |
| 4138 | else |
| 4139 | enable_static=yes |
| 4140 | fi |
| 4141 | |
| 4142 | |
| 4143 | # Check whether --enable-fast-install was given. |
| 4144 | if test "${enable_fast_install+set}" = set; then |
| 4145 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 4146 | case $enableval in |
| 4147 | yes) enable_fast_install=yes ;; |
| 4148 | no) enable_fast_install=no ;; |
| 4149 | *) |
| 4150 | enable_fast_install=no |
| 4151 | # Look at the argument we got. We use all the common list separators. |
| 4152 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4153 | for pkg in $enableval; do |
| 4154 | IFS="$lt_save_ifs" |
| 4155 | if test "X$pkg" = "X$p"; then |
| 4156 | enable_fast_install=yes |
| 4157 | fi |
| 4158 | done |
| 4159 | IFS="$lt_save_ifs" |
| 4160 | ;; |
| 4161 | esac |
| 4162 | else |
| 4163 | enable_fast_install=yes |
| 4164 | fi |
| 4165 | |
| 4166 | |
| 4167 | # Make sure we can run config.sub. |
| 4168 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4169 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 4170 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 4171 | { (exit 1); exit 1; }; } |
| 4172 | |
| 4173 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 4174 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 4175 | if test "${ac_cv_build+set}" = set; then |
| 4176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4177 | else |
| 4178 | ac_build_alias=$build_alias |
| 4179 | test "x$ac_build_alias" = x && |
| 4180 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4181 | test "x$ac_build_alias" = x && |
| 4182 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 4183 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 4184 | { (exit 1); exit 1; }; } |
| 4185 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4186 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 4187 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 4188 | { (exit 1); exit 1; }; } |
| 4189 | |
| 4190 | fi |
| 4191 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 4192 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 4193 | case $ac_cv_build in |
| 4194 | *-*-*) ;; |
| 4195 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 4196 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 4197 | { (exit 1); exit 1; }; };; |
| 4198 | esac |
| 4199 | build=$ac_cv_build |
| 4200 | ac_save_IFS=$IFS; IFS='-' |
| 4201 | set x $ac_cv_build |
| 4202 | shift |
| 4203 | build_cpu=$1 |
| 4204 | build_vendor=$2 |
| 4205 | shift; shift |
| 4206 | # Remember, the first character of IFS is used to create $*, |
| 4207 | # except with old shells: |
| 4208 | build_os=$* |
| 4209 | IFS=$ac_save_IFS |
| 4210 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4211 | |
| 4212 | |
| 4213 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 4214 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 4215 | if test "${ac_cv_host+set}" = set; then |
| 4216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4217 | else |
| 4218 | if test "x$host_alias" = x; then |
| 4219 | ac_cv_host=$ac_cv_build |
| 4220 | else |
| 4221 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4222 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 4223 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 4224 | { (exit 1); exit 1; }; } |
| 4225 | fi |
| 4226 | |
| 4227 | fi |
| 4228 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 4229 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 4230 | case $ac_cv_host in |
| 4231 | *-*-*) ;; |
| 4232 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 4233 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 4234 | { (exit 1); exit 1; }; };; |
| 4235 | esac |
| 4236 | host=$ac_cv_host |
| 4237 | ac_save_IFS=$IFS; IFS='-' |
| 4238 | set x $ac_cv_host |
| 4239 | shift |
| 4240 | host_cpu=$1 |
| 4241 | host_vendor=$2 |
| 4242 | shift; shift |
| 4243 | # Remember, the first character of IFS is used to create $*, |
| 4244 | # except with old shells: |
| 4245 | host_os=$* |
| 4246 | IFS=$ac_save_IFS |
| 4247 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4248 | |
| 4249 | |
| 4250 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 4251 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
| 4252 | if test "${lt_cv_path_SED+set}" = set; then |
| 4253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4254 | else |
| 4255 | # Loop through the user's path and test for sed and gsed. |
| 4256 | # Then use that list of sed's as ones to test for truncation. |
| 4257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4258 | for as_dir in $PATH |
| 4259 | do |
| 4260 | IFS=$as_save_IFS |
| 4261 | test -z "$as_dir" && as_dir=. |
| 4262 | for lt_ac_prog in sed gsed; do |
| 4263 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4264 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 4265 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 4266 | fi |
| 4267 | done |
| 4268 | done |
| 4269 | done |
| 4270 | lt_ac_max=0 |
| 4271 | lt_ac_count=0 |
| 4272 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 4273 | # along with /bin/sed that truncates output. |
| 4274 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 4275 | test ! -f $lt_ac_sed && continue |
| 4276 | cat /dev/null > conftest.in |
| 4277 | lt_ac_count=0 |
| 4278 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 4279 | # Check for GNU sed and select it if it is found. |
| 4280 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 4281 | lt_cv_path_SED=$lt_ac_sed |
| 4282 | break |
| 4283 | fi |
| 4284 | while true; do |
| 4285 | cat conftest.in conftest.in >conftest.tmp |
| 4286 | mv conftest.tmp conftest.in |
| 4287 | cp conftest.in conftest.nl |
| 4288 | echo >>conftest.nl |
| 4289 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 4290 | cmp -s conftest.out conftest.nl || break |
| 4291 | # 10000 chars as input seems more than enough |
| 4292 | test $lt_ac_count -gt 10 && break |
| 4293 | lt_ac_count=`expr $lt_ac_count + 1` |
| 4294 | if test $lt_ac_count -gt $lt_ac_max; then |
| 4295 | lt_ac_max=$lt_ac_count |
| 4296 | lt_cv_path_SED=$lt_ac_sed |
| 4297 | fi |
| 4298 | done |
| 4299 | done |
| 4300 | |
| 4301 | fi |
| 4302 | |
| 4303 | SED=$lt_cv_path_SED |
| 4304 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 4305 | echo "${ECHO_T}$SED" >&6; } |
| 4306 | |
| 4307 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 4308 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 4309 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4311 | else |
| 4312 | # Extract the first word of "grep ggrep" to use in msg output |
| 4313 | if test -z "$GREP"; then |
| 4314 | set dummy grep ggrep; ac_prog_name=$2 |
| 4315 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4317 | else |
| 4318 | ac_path_GREP_found=false |
| 4319 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4321 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4322 | do |
| 4323 | IFS=$as_save_IFS |
| 4324 | test -z "$as_dir" && as_dir=. |
| 4325 | for ac_prog in grep ggrep; do |
| 4326 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4327 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4328 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4329 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4330 | # Check for GNU $ac_path_GREP |
| 4331 | case `"$ac_path_GREP" --version 2>&1` in |
| 4332 | *GNU*) |
| 4333 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4334 | *) |
| 4335 | ac_count=0 |
| 4336 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4337 | while : |
| 4338 | do |
| 4339 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4340 | mv "conftest.tmp" "conftest.in" |
| 4341 | cp "conftest.in" "conftest.nl" |
| 4342 | echo 'GREP' >> "conftest.nl" |
| 4343 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4344 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4345 | ac_count=`expr $ac_count + 1` |
| 4346 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4347 | # Best one so far, save it but keep looking for a better one |
| 4348 | ac_cv_path_GREP="$ac_path_GREP" |
| 4349 | ac_path_GREP_max=$ac_count |
| 4350 | fi |
| 4351 | # 10*(2^10) chars as input seems more than enough |
| 4352 | test $ac_count -gt 10 && break |
| 4353 | done |
| 4354 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4355 | esac |
| 4356 | |
| 4357 | |
| 4358 | $ac_path_GREP_found && break 3 |
| 4359 | done |
| 4360 | done |
| 4361 | |
| 4362 | done |
| 4363 | IFS=$as_save_IFS |
| 4364 | |
| 4365 | |
| 4366 | fi |
| 4367 | |
| 4368 | GREP="$ac_cv_path_GREP" |
| 4369 | if test -z "$GREP"; then |
| 4370 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4371 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4372 | { (exit 1); exit 1; }; } |
| 4373 | fi |
| 4374 | |
| 4375 | else |
| 4376 | ac_cv_path_GREP=$GREP |
| 4377 | fi |
| 4378 | |
| 4379 | |
| 4380 | fi |
| 4381 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4382 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 4383 | GREP="$ac_cv_path_GREP" |
| 4384 | |
| 4385 | |
| 4386 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4387 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4388 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4390 | else |
| 4391 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4392 | then ac_cv_path_EGREP="$GREP -E" |
| 4393 | else |
| 4394 | # Extract the first word of "egrep" to use in msg output |
| 4395 | if test -z "$EGREP"; then |
| 4396 | set dummy egrep; ac_prog_name=$2 |
| 4397 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4399 | else |
| 4400 | ac_path_EGREP_found=false |
| 4401 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4403 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4404 | do |
| 4405 | IFS=$as_save_IFS |
| 4406 | test -z "$as_dir" && as_dir=. |
| 4407 | for ac_prog in egrep; do |
| 4408 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4409 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4410 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4411 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4412 | # Check for GNU $ac_path_EGREP |
| 4413 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4414 | *GNU*) |
| 4415 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4416 | *) |
| 4417 | ac_count=0 |
| 4418 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4419 | while : |
| 4420 | do |
| 4421 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4422 | mv "conftest.tmp" "conftest.in" |
| 4423 | cp "conftest.in" "conftest.nl" |
| 4424 | echo 'EGREP' >> "conftest.nl" |
| 4425 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4426 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4427 | ac_count=`expr $ac_count + 1` |
| 4428 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4429 | # Best one so far, save it but keep looking for a better one |
| 4430 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4431 | ac_path_EGREP_max=$ac_count |
| 4432 | fi |
| 4433 | # 10*(2^10) chars as input seems more than enough |
| 4434 | test $ac_count -gt 10 && break |
| 4435 | done |
| 4436 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4437 | esac |
| 4438 | |
| 4439 | |
| 4440 | $ac_path_EGREP_found && break 3 |
| 4441 | done |
| 4442 | done |
| 4443 | |
| 4444 | done |
| 4445 | IFS=$as_save_IFS |
| 4446 | |
| 4447 | |
| 4448 | fi |
| 4449 | |
| 4450 | EGREP="$ac_cv_path_EGREP" |
| 4451 | if test -z "$EGREP"; then |
| 4452 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4453 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4454 | { (exit 1); exit 1; }; } |
| 4455 | fi |
| 4456 | |
| 4457 | else |
| 4458 | ac_cv_path_EGREP=$EGREP |
| 4459 | fi |
| 4460 | |
| 4461 | |
| 4462 | fi |
| 4463 | fi |
| 4464 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4465 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 4466 | EGREP="$ac_cv_path_EGREP" |
| 4467 | |
| 4468 | |
| 4469 | |
| 4470 | # Check whether --with-gnu-ld was given. |
| 4471 | if test "${with_gnu_ld+set}" = set; then |
| 4472 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 4473 | else |
| 4474 | with_gnu_ld=no |
| 4475 | fi |
| 4476 | |
| 4477 | ac_prog=ld |
| 4478 | if test "$GCC" = yes; then |
| 4479 | # Check if gcc -print-prog-name=ld gives a path. |
| 4480 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 4481 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
| 4482 | case $host in |
| 4483 | *-*-mingw*) |
| 4484 | # gcc leaves a trailing carriage return which upsets mingw |
| 4485 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4486 | *) |
| 4487 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4488 | esac |
| 4489 | case $ac_prog in |
| 4490 | # Accept absolute paths. |
| 4491 | [\\/]* | ?:[\\/]*) |
| 4492 | re_direlt='/[^/][^/]*/\.\./' |
| 4493 | # Canonicalize the pathname of ld |
| 4494 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 4495 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 4496 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 4497 | done |
| 4498 | test -z "$LD" && LD="$ac_prog" |
| 4499 | ;; |
| 4500 | "") |
| 4501 | # If it fails, then pretend we aren't using GCC. |
| 4502 | ac_prog=ld |
| 4503 | ;; |
| 4504 | *) |
| 4505 | # If it is relative, then search for the first ld in PATH. |
| 4506 | with_gnu_ld=unknown |
| 4507 | ;; |
| 4508 | esac |
| 4509 | elif test "$with_gnu_ld" = yes; then |
| 4510 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4511 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
| 4512 | else |
| 4513 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 4514 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
| 4515 | fi |
| 4516 | if test "${lt_cv_path_LD+set}" = set; then |
| 4517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4518 | else |
| 4519 | if test -z "$LD"; then |
| 4520 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4521 | for ac_dir in $PATH; do |
| 4522 | IFS="$lt_save_ifs" |
| 4523 | test -z "$ac_dir" && ac_dir=. |
| 4524 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4525 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4526 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4527 | # but apparently some variants of GNU ld only accept -v. |
| 4528 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4529 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4530 | *GNU* | *'with BFD'*) |
| 4531 | test "$with_gnu_ld" != no && break |
| 4532 | ;; |
| 4533 | *) |
| 4534 | test "$with_gnu_ld" != yes && break |
| 4535 | ;; |
| 4536 | esac |
| 4537 | fi |
| 4538 | done |
| 4539 | IFS="$lt_save_ifs" |
| 4540 | else |
| 4541 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4542 | fi |
| 4543 | fi |
| 4544 | |
| 4545 | LD="$lt_cv_path_LD" |
| 4546 | if test -n "$LD"; then |
| 4547 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 4548 | echo "${ECHO_T}$LD" >&6; } |
| 4549 | else |
| 4550 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4551 | echo "${ECHO_T}no" >&6; } |
| 4552 | fi |
| 4553 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4554 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4555 | { (exit 1); exit 1; }; } |
| 4556 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4557 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
| 4558 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 4559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4560 | else |
| 4561 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4562 | case `$LD -v 2>&1 </dev/null` in |
| 4563 | *GNU* | *'with BFD'*) |
| 4564 | lt_cv_prog_gnu_ld=yes |
| 4565 | ;; |
| 4566 | *) |
| 4567 | lt_cv_prog_gnu_ld=no |
| 4568 | ;; |
| 4569 | esac |
| 4570 | fi |
| 4571 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4572 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
| 4573 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4574 | |
| 4575 | |
| 4576 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 4577 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
| 4578 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 4579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4580 | else |
| 4581 | lt_cv_ld_reload_flag='-r' |
| 4582 | fi |
| 4583 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 4584 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
| 4585 | reload_flag=$lt_cv_ld_reload_flag |
| 4586 | case $reload_flag in |
| 4587 | "" | " "*) ;; |
| 4588 | *) reload_flag=" $reload_flag" ;; |
| 4589 | esac |
| 4590 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4591 | case $host_os in |
| 4592 | darwin*) |
| 4593 | if test "$GCC" = yes; then |
| 4594 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4595 | else |
| 4596 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4597 | fi |
| 4598 | ;; |
| 4599 | esac |
| 4600 | |
| 4601 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4602 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 4603 | if test "${lt_cv_path_NM+set}" = set; then |
| 4604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4605 | else |
| 4606 | if test -n "$NM"; then |
| 4607 | # Let the user override the test. |
| 4608 | lt_cv_path_NM="$NM" |
| 4609 | else |
| 4610 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4611 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4612 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4613 | fi |
| 4614 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4615 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4616 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4617 | IFS="$lt_save_ifs" |
| 4618 | test -z "$ac_dir" && ac_dir=. |
| 4619 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4620 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4621 | # Check to see if the nm accepts a BSD-compat flag. |
| 4622 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4623 | # nm: unknown option "B" ignored |
| 4624 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4625 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4626 | */dev/null* | *'Invalid file or object type'*) |
| 4627 | lt_cv_path_NM="$tmp_nm -B" |
| 4628 | break |
| 4629 | ;; |
| 4630 | *) |
| 4631 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4632 | */dev/null*) |
| 4633 | lt_cv_path_NM="$tmp_nm -p" |
| 4634 | break |
| 4635 | ;; |
| 4636 | *) |
| 4637 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4638 | continue # so that we can try to find one that supports BSD flags |
| 4639 | ;; |
| 4640 | esac |
| 4641 | ;; |
| 4642 | esac |
| 4643 | fi |
| 4644 | done |
| 4645 | IFS="$lt_save_ifs" |
| 4646 | done |
| 4647 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 4648 | fi |
| 4649 | fi |
| 4650 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4651 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 4652 | NM="$lt_cv_path_NM" |
| 4653 | |
| 4654 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4655 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 4656 | LN_S=$as_ln_s |
| 4657 | if test "$LN_S" = "ln -s"; then |
| 4658 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4659 | echo "${ECHO_T}yes" >&6; } |
| 4660 | else |
| 4661 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4662 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 4663 | fi |
| 4664 | |
| 4665 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 4666 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
| 4667 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 4668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4669 | else |
| 4670 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4671 | lt_cv_file_magic_test_file= |
| 4672 | lt_cv_deplibs_check_method='unknown' |
| 4673 | # Need to set the preceding variable on all platforms that support |
| 4674 | # interlibrary dependencies. |
| 4675 | # 'none' -- dependencies not supported. |
| 4676 | # `unknown' -- same as none, but documents that we really don't know. |
| 4677 | # 'pass_all' -- all dependencies passed with no checks. |
| 4678 | # 'test_compile' -- check by making test program. |
| 4679 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4680 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4681 | # If you have `file' or equivalent on your system and you're not sure |
| 4682 | # whether `pass_all' will *always* work, you probably want this one. |
| 4683 | |
| 4684 | case $host_os in |
| 4685 | aix4* | aix5*) |
| 4686 | lt_cv_deplibs_check_method=pass_all |
| 4687 | ;; |
| 4688 | |
| 4689 | beos*) |
| 4690 | lt_cv_deplibs_check_method=pass_all |
| 4691 | ;; |
| 4692 | |
| 4693 | bsdi[45]*) |
| 4694 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4695 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4696 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4697 | ;; |
| 4698 | |
| 4699 | cygwin*) |
| 4700 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4701 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4702 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4703 | ;; |
| 4704 | |
| 4705 | mingw* | pw32*) |
| 4706 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4707 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 4708 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4709 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4710 | ;; |
| 4711 | |
| 4712 | darwin* | rhapsody*) |
| 4713 | lt_cv_deplibs_check_method=pass_all |
| 4714 | ;; |
| 4715 | |
| 4716 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 4717 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4718 | case $host_cpu in |
| 4719 | i*86 ) |
| 4720 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4721 | # Let's accept both of them until this is cleared up. |
| 4722 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 4723 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4724 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4725 | ;; |
| 4726 | esac |
| 4727 | else |
| 4728 | lt_cv_deplibs_check_method=pass_all |
| 4729 | fi |
| 4730 | ;; |
| 4731 | |
| 4732 | gnu*) |
| 4733 | lt_cv_deplibs_check_method=pass_all |
| 4734 | ;; |
| 4735 | |
| 4736 | hpux10.20* | hpux11*) |
| 4737 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4738 | case $host_cpu in |
| 4739 | ia64*) |
| 4740 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4741 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4742 | ;; |
| 4743 | hppa*64*) |
| 4744 | 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]' |
| 4745 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4746 | ;; |
| 4747 | *) |
| 4748 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4749 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4750 | ;; |
| 4751 | esac |
| 4752 | ;; |
| 4753 | |
| 4754 | interix3*) |
| 4755 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4756 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 4757 | ;; |
| 4758 | |
| 4759 | irix5* | irix6* | nonstopux*) |
| 4760 | case $LD in |
| 4761 | *-32|*"-32 ") libmagic=32-bit;; |
| 4762 | *-n32|*"-n32 ") libmagic=N32;; |
| 4763 | *-64|*"-64 ") libmagic=64-bit;; |
| 4764 | *) libmagic=never-match;; |
| 4765 | esac |
| 4766 | lt_cv_deplibs_check_method=pass_all |
| 4767 | ;; |
| 4768 | |
| 4769 | # This must be Linux ELF. |
| 4770 | linux*) |
| 4771 | lt_cv_deplibs_check_method=pass_all |
| 4772 | ;; |
| 4773 | |
| 4774 | netbsd*) |
| 4775 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4776 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4777 | else |
| 4778 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 4779 | fi |
| 4780 | ;; |
| 4781 | |
| 4782 | newos6*) |
| 4783 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4784 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4785 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4786 | ;; |
| 4787 | |
| 4788 | nto-qnx*) |
| 4789 | lt_cv_deplibs_check_method=unknown |
| 4790 | ;; |
| 4791 | |
| 4792 | openbsd*) |
| 4793 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 4794 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 4795 | else |
| 4796 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4797 | fi |
| 4798 | ;; |
| 4799 | |
| 4800 | osf3* | osf4* | osf5*) |
| 4801 | lt_cv_deplibs_check_method=pass_all |
| 4802 | ;; |
| 4803 | |
| 4804 | solaris*) |
| 4805 | lt_cv_deplibs_check_method=pass_all |
| 4806 | ;; |
| 4807 | |
| 4808 | sysv4 | sysv4.3*) |
| 4809 | case $host_vendor in |
| 4810 | motorola) |
| 4811 | 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]' |
| 4812 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4813 | ;; |
| 4814 | ncr) |
| 4815 | lt_cv_deplibs_check_method=pass_all |
| 4816 | ;; |
| 4817 | sequent) |
| 4818 | lt_cv_file_magic_cmd='/bin/file' |
| 4819 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4820 | ;; |
| 4821 | sni) |
| 4822 | lt_cv_file_magic_cmd='/bin/file' |
| 4823 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4824 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4825 | ;; |
| 4826 | siemens) |
| 4827 | lt_cv_deplibs_check_method=pass_all |
| 4828 | ;; |
| 4829 | pc) |
| 4830 | lt_cv_deplibs_check_method=pass_all |
| 4831 | ;; |
| 4832 | esac |
| 4833 | ;; |
| 4834 | |
| 4835 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 4836 | lt_cv_deplibs_check_method=pass_all |
| 4837 | ;; |
| 4838 | esac |
| 4839 | |
| 4840 | fi |
| 4841 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 4842 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
| 4843 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4844 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 4845 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 4846 | |
| 4847 | |
| 4848 | |
| 4849 | |
| 4850 | # If no C compiler was specified, use CC. |
| 4851 | LTCC=${LTCC-"$CC"} |
| 4852 | |
| 4853 | # If no C compiler flags were specified, use CFLAGS. |
| 4854 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 4855 | |
| 4856 | # Allow CC to be a program name with arguments. |
| 4857 | compiler=$CC |
| 4858 | |
| 4859 | |
| 4860 | # Check whether --enable-libtool-lock was given. |
| 4861 | if test "${enable_libtool_lock+set}" = set; then |
| 4862 | enableval=$enable_libtool_lock; |
| 4863 | fi |
| 4864 | |
| 4865 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 4866 | |
| 4867 | # Some flags need to be propagated to the compiler or linker for good |
| 4868 | # libtool support. |
| 4869 | case $host in |
| 4870 | ia64-*-hpux*) |
| 4871 | # Find out which ABI we are using. |
| 4872 | echo 'int i;' > conftest.$ac_ext |
| 4873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4874 | (eval $ac_compile) 2>&5 |
| 4875 | ac_status=$? |
| 4876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4877 | (exit $ac_status); }; then |
| 4878 | case `/usr/bin/file conftest.$ac_objext` in |
| 4879 | *ELF-32*) |
| 4880 | HPUX_IA64_MODE="32" |
| 4881 | ;; |
| 4882 | *ELF-64*) |
| 4883 | HPUX_IA64_MODE="64" |
| 4884 | ;; |
| 4885 | esac |
| 4886 | fi |
| 4887 | rm -rf conftest* |
| 4888 | ;; |
| 4889 | *-*-irix6*) |
| 4890 | # Find out which ABI we are using. |
| 4891 | echo '#line 4891 "configure"' > conftest.$ac_ext |
| 4892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4893 | (eval $ac_compile) 2>&5 |
| 4894 | ac_status=$? |
| 4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4896 | (exit $ac_status); }; then |
| 4897 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4898 | case `/usr/bin/file conftest.$ac_objext` in |
| 4899 | *32-bit*) |
| 4900 | LD="${LD-ld} -melf32bsmip" |
| 4901 | ;; |
| 4902 | *N32*) |
| 4903 | LD="${LD-ld} -melf32bmipn32" |
| 4904 | ;; |
| 4905 | *64-bit*) |
| 4906 | LD="${LD-ld} -melf64bmip" |
| 4907 | ;; |
| 4908 | esac |
| 4909 | else |
| 4910 | case `/usr/bin/file conftest.$ac_objext` in |
| 4911 | *32-bit*) |
| 4912 | LD="${LD-ld} -32" |
| 4913 | ;; |
| 4914 | *N32*) |
| 4915 | LD="${LD-ld} -n32" |
| 4916 | ;; |
| 4917 | *64-bit*) |
| 4918 | LD="${LD-ld} -64" |
| 4919 | ;; |
| 4920 | esac |
| 4921 | fi |
| 4922 | fi |
| 4923 | rm -rf conftest* |
| 4924 | ;; |
| 4925 | |
| 4926 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 4927 | # Find out which ABI we are using. |
| 4928 | echo 'int i;' > conftest.$ac_ext |
| 4929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4930 | (eval $ac_compile) 2>&5 |
| 4931 | ac_status=$? |
| 4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4933 | (exit $ac_status); }; then |
| 4934 | case `/usr/bin/file conftest.o` in |
| 4935 | *32-bit*) |
| 4936 | case $host in |
| 4937 | x86_64-*linux*) |
| 4938 | LD="${LD-ld} -m elf_i386" |
| 4939 | ;; |
| 4940 | ppc64-*linux*|powerpc64-*linux*) |
| 4941 | LD="${LD-ld} -m elf32ppclinux" |
| 4942 | ;; |
| 4943 | s390x-*linux*) |
| 4944 | LD="${LD-ld} -m elf_s390" |
| 4945 | ;; |
| 4946 | sparc64-*linux*) |
| 4947 | LD="${LD-ld} -m elf32_sparc" |
| 4948 | ;; |
| 4949 | esac |
| 4950 | ;; |
| 4951 | *64-bit*) |
| 4952 | case $host in |
| 4953 | x86_64-*linux*) |
| 4954 | LD="${LD-ld} -m elf_x86_64" |
| 4955 | ;; |
| 4956 | ppc*-*linux*|powerpc*-*linux*) |
| 4957 | LD="${LD-ld} -m elf64ppc" |
| 4958 | ;; |
| 4959 | s390*-*linux*) |
| 4960 | LD="${LD-ld} -m elf64_s390" |
| 4961 | ;; |
| 4962 | sparc*-*linux*) |
| 4963 | LD="${LD-ld} -m elf64_sparc" |
| 4964 | ;; |
| 4965 | esac |
| 4966 | ;; |
| 4967 | esac |
| 4968 | fi |
| 4969 | rm -rf conftest* |
| 4970 | ;; |
| 4971 | |
| 4972 | *-*-sco3.2v5*) |
| 4973 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4974 | SAVE_CFLAGS="$CFLAGS" |
| 4975 | CFLAGS="$CFLAGS -belf" |
| 4976 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4977 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
| 4978 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4980 | else |
| 4981 | ac_ext=c |
| 4982 | ac_cpp='$CPP $CPPFLAGS' |
| 4983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4986 | |
| 4987 | cat >conftest.$ac_ext <<_ACEOF |
| 4988 | /* confdefs.h. */ |
| 4989 | _ACEOF |
| 4990 | cat confdefs.h >>conftest.$ac_ext |
| 4991 | cat >>conftest.$ac_ext <<_ACEOF |
| 4992 | /* end confdefs.h. */ |
| 4993 | |
| 4994 | int |
| 4995 | main () |
| 4996 | { |
| 4997 | |
| 4998 | ; |
| 4999 | return 0; |
| 5000 | } |
| 5001 | _ACEOF |
| 5002 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5003 | if { (ac_try="$ac_link" |
| 5004 | case "(($ac_try" in |
| 5005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5006 | *) ac_try_echo=$ac_try;; |
| 5007 | esac |
| 5008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5009 | (eval "$ac_link") 2>conftest.er1 |
| 5010 | ac_status=$? |
| 5011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5012 | rm -f conftest.er1 |
| 5013 | cat conftest.err >&5 |
| 5014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5015 | (exit $ac_status); } && { |
| 5016 | test -z "$ac_c_werror_flag" || |
| 5017 | test ! -s conftest.err |
| 5018 | } && test -s conftest$ac_exeext && |
| 5019 | $as_test_x conftest$ac_exeext; then |
| 5020 | lt_cv_cc_needs_belf=yes |
| 5021 | else |
| 5022 | echo "$as_me: failed program was:" >&5 |
| 5023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5024 | |
| 5025 | lt_cv_cc_needs_belf=no |
| 5026 | fi |
| 5027 | |
| 5028 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5029 | conftest$ac_exeext conftest.$ac_ext |
| 5030 | ac_ext=c |
| 5031 | ac_cpp='$CPP $CPPFLAGS' |
| 5032 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5033 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5034 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5035 | |
| 5036 | fi |
| 5037 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 5038 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
| 5039 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5040 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5041 | CFLAGS="$SAVE_CFLAGS" |
| 5042 | fi |
| 5043 | ;; |
| 5044 | sparc*-*solaris*) |
| 5045 | # Find out which ABI we are using. |
| 5046 | echo 'int i;' > conftest.$ac_ext |
| 5047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5048 | (eval $ac_compile) 2>&5 |
| 5049 | ac_status=$? |
| 5050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5051 | (exit $ac_status); }; then |
| 5052 | case `/usr/bin/file conftest.o` in |
| 5053 | *64-bit*) |
| 5054 | case $lt_cv_prog_gnu_ld in |
| 5055 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 5056 | *) LD="${LD-ld} -64" ;; |
| 5057 | esac |
| 5058 | ;; |
| 5059 | esac |
| 5060 | fi |
| 5061 | rm -rf conftest* |
| 5062 | ;; |
| 5063 | |
| 5064 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) |
| 5065 | if test -n "$ac_tool_prefix"; then |
| 5066 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 5067 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 5068 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5069 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5070 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 5071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5072 | else |
| 5073 | if test -n "$DLLTOOL"; then |
| 5074 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 5075 | else |
| 5076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5077 | for as_dir in $PATH |
| 5078 | do |
| 5079 | IFS=$as_save_IFS |
| 5080 | test -z "$as_dir" && as_dir=. |
| 5081 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5082 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5083 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 5084 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5085 | break 2 |
| 5086 | fi |
| 5087 | done |
| 5088 | done |
| 5089 | IFS=$as_save_IFS |
| 5090 | |
| 5091 | fi |
| 5092 | fi |
| 5093 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 5094 | if test -n "$DLLTOOL"; then |
| 5095 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 5096 | echo "${ECHO_T}$DLLTOOL" >&6; } |
| 5097 | else |
| 5098 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5099 | echo "${ECHO_T}no" >&6; } |
| 5100 | fi |
| 5101 | |
| 5102 | |
| 5103 | fi |
| 5104 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 5105 | ac_ct_DLLTOOL=$DLLTOOL |
| 5106 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 5107 | set dummy dlltool; ac_word=$2 |
| 5108 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5109 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5110 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 5111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5112 | else |
| 5113 | if test -n "$ac_ct_DLLTOOL"; then |
| 5114 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 5115 | else |
| 5116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5117 | for as_dir in $PATH |
| 5118 | do |
| 5119 | IFS=$as_save_IFS |
| 5120 | test -z "$as_dir" && as_dir=. |
| 5121 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5122 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5123 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 5124 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5125 | break 2 |
| 5126 | fi |
| 5127 | done |
| 5128 | done |
| 5129 | IFS=$as_save_IFS |
| 5130 | |
| 5131 | fi |
| 5132 | fi |
| 5133 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 5134 | if test -n "$ac_ct_DLLTOOL"; then |
| 5135 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 5136 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } |
| 5137 | else |
| 5138 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5139 | echo "${ECHO_T}no" >&6; } |
| 5140 | fi |
| 5141 | |
| 5142 | if test "x$ac_ct_DLLTOOL" = x; then |
| 5143 | DLLTOOL="false" |
| 5144 | else |
| 5145 | case $cross_compiling:$ac_tool_warned in |
| 5146 | yes:) |
| 5147 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5148 | whose name does not start with the host triplet. If you think this |
| 5149 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5150 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5151 | whose name does not start with the host triplet. If you think this |
| 5152 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5153 | ac_tool_warned=yes ;; |
| 5154 | esac |
| 5155 | DLLTOOL=$ac_ct_DLLTOOL |
| 5156 | fi |
| 5157 | else |
| 5158 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 5159 | fi |
| 5160 | |
| 5161 | if test -n "$ac_tool_prefix"; then |
| 5162 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 5163 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 5164 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5165 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5166 | if test "${ac_cv_prog_AS+set}" = set; then |
| 5167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5168 | else |
| 5169 | if test -n "$AS"; then |
| 5170 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 5171 | else |
| 5172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5173 | for as_dir in $PATH |
| 5174 | do |
| 5175 | IFS=$as_save_IFS |
| 5176 | test -z "$as_dir" && as_dir=. |
| 5177 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5178 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5179 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 5180 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5181 | break 2 |
| 5182 | fi |
| 5183 | done |
| 5184 | done |
| 5185 | IFS=$as_save_IFS |
| 5186 | |
| 5187 | fi |
| 5188 | fi |
| 5189 | AS=$ac_cv_prog_AS |
| 5190 | if test -n "$AS"; then |
| 5191 | { echo "$as_me:$LINENO: result: $AS" >&5 |
| 5192 | echo "${ECHO_T}$AS" >&6; } |
| 5193 | else |
| 5194 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5195 | echo "${ECHO_T}no" >&6; } |
| 5196 | fi |
| 5197 | |
| 5198 | |
| 5199 | fi |
| 5200 | if test -z "$ac_cv_prog_AS"; then |
| 5201 | ac_ct_AS=$AS |
| 5202 | # Extract the first word of "as", so it can be a program name with args. |
| 5203 | set dummy as; ac_word=$2 |
| 5204 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5206 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| 5207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5208 | else |
| 5209 | if test -n "$ac_ct_AS"; then |
| 5210 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 5211 | else |
| 5212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5213 | for as_dir in $PATH |
| 5214 | do |
| 5215 | IFS=$as_save_IFS |
| 5216 | test -z "$as_dir" && as_dir=. |
| 5217 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5219 | ac_cv_prog_ac_ct_AS="as" |
| 5220 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5221 | break 2 |
| 5222 | fi |
| 5223 | done |
| 5224 | done |
| 5225 | IFS=$as_save_IFS |
| 5226 | |
| 5227 | fi |
| 5228 | fi |
| 5229 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 5230 | if test -n "$ac_ct_AS"; then |
| 5231 | { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
| 5232 | echo "${ECHO_T}$ac_ct_AS" >&6; } |
| 5233 | else |
| 5234 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5235 | echo "${ECHO_T}no" >&6; } |
| 5236 | fi |
| 5237 | |
| 5238 | if test "x$ac_ct_AS" = x; then |
| 5239 | AS="false" |
| 5240 | else |
| 5241 | case $cross_compiling:$ac_tool_warned in |
| 5242 | yes:) |
| 5243 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5244 | whose name does not start with the host triplet. If you think this |
| 5245 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5246 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5247 | whose name does not start with the host triplet. If you think this |
| 5248 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5249 | ac_tool_warned=yes ;; |
| 5250 | esac |
| 5251 | AS=$ac_ct_AS |
| 5252 | fi |
| 5253 | else |
| 5254 | AS="$ac_cv_prog_AS" |
| 5255 | fi |
| 5256 | |
| 5257 | if test -n "$ac_tool_prefix"; then |
| 5258 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5259 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5260 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5262 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
| 5263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5264 | else |
| 5265 | if test -n "$OBJDUMP"; then |
| 5266 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5267 | else |
| 5268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5269 | for as_dir in $PATH |
| 5270 | do |
| 5271 | IFS=$as_save_IFS |
| 5272 | test -z "$as_dir" && as_dir=. |
| 5273 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5275 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5276 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5277 | break 2 |
| 5278 | fi |
| 5279 | done |
| 5280 | done |
| 5281 | IFS=$as_save_IFS |
| 5282 | |
| 5283 | fi |
| 5284 | fi |
| 5285 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5286 | if test -n "$OBJDUMP"; then |
| 5287 | { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
| 5288 | echo "${ECHO_T}$OBJDUMP" >&6; } |
| 5289 | else |
| 5290 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5291 | echo "${ECHO_T}no" >&6; } |
| 5292 | fi |
| 5293 | |
| 5294 | |
| 5295 | fi |
| 5296 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5297 | ac_ct_OBJDUMP=$OBJDUMP |
| 5298 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5299 | set dummy objdump; ac_word=$2 |
| 5300 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5302 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
| 5303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5304 | else |
| 5305 | if test -n "$ac_ct_OBJDUMP"; then |
| 5306 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5307 | else |
| 5308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5309 | for as_dir in $PATH |
| 5310 | do |
| 5311 | IFS=$as_save_IFS |
| 5312 | test -z "$as_dir" && as_dir=. |
| 5313 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5314 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5315 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5317 | break 2 |
| 5318 | fi |
| 5319 | done |
| 5320 | done |
| 5321 | IFS=$as_save_IFS |
| 5322 | |
| 5323 | fi |
| 5324 | fi |
| 5325 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5326 | if test -n "$ac_ct_OBJDUMP"; then |
| 5327 | { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
| 5328 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } |
| 5329 | else |
| 5330 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5331 | echo "${ECHO_T}no" >&6; } |
| 5332 | fi |
| 5333 | |
| 5334 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5335 | OBJDUMP="false" |
| 5336 | else |
| 5337 | case $cross_compiling:$ac_tool_warned in |
| 5338 | yes:) |
| 5339 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5340 | whose name does not start with the host triplet. If you think this |
| 5341 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5342 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5343 | whose name does not start with the host triplet. If you think this |
| 5344 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5345 | ac_tool_warned=yes ;; |
| 5346 | esac |
| 5347 | OBJDUMP=$ac_ct_OBJDUMP |
| 5348 | fi |
| 5349 | else |
| 5350 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5351 | fi |
| 5352 | |
| 5353 | ;; |
| 5354 | |
| 5355 | esac |
| 5356 | |
| 5357 | need_locks="$enable_libtool_lock" |
| 5358 | |
| 5359 | |
| 5360 | ac_ext=c |
| 5361 | ac_cpp='$CPP $CPPFLAGS' |
| 5362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5365 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5366 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 5367 | # On Suns, sometimes $CPP names a directory. |
| 5368 | if test -n "$CPP" && test -d "$CPP"; then |
| 5369 | CPP= |
| 5370 | fi |
| 5371 | if test -z "$CPP"; then |
| 5372 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5374 | else |
| 5375 | # Double quotes because CPP needs to be expanded |
| 5376 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5377 | do |
| 5378 | ac_preproc_ok=false |
| 5379 | for ac_c_preproc_warn_flag in '' yes |
| 5380 | do |
| 5381 | # Use a header file that comes with gcc, so configuring glibc |
| 5382 | # with a fresh cross-compiler works. |
| 5383 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5384 | # <limits.h> exists even on freestanding compilers. |
| 5385 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5386 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5387 | cat >conftest.$ac_ext <<_ACEOF |
| 5388 | /* confdefs.h. */ |
| 5389 | _ACEOF |
| 5390 | cat confdefs.h >>conftest.$ac_ext |
| 5391 | cat >>conftest.$ac_ext <<_ACEOF |
| 5392 | /* end confdefs.h. */ |
| 5393 | #ifdef __STDC__ |
| 5394 | # include <limits.h> |
| 5395 | #else |
| 5396 | # include <assert.h> |
| 5397 | #endif |
| 5398 | Syntax error |
| 5399 | _ACEOF |
| 5400 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5401 | case "(($ac_try" in |
| 5402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5403 | *) ac_try_echo=$ac_try;; |
| 5404 | esac |
| 5405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5406 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5407 | ac_status=$? |
| 5408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5409 | rm -f conftest.er1 |
| 5410 | cat conftest.err >&5 |
| 5411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5412 | (exit $ac_status); } >/dev/null && { |
| 5413 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5414 | test ! -s conftest.err |
| 5415 | }; then |
| 5416 | : |
| 5417 | else |
| 5418 | echo "$as_me: failed program was:" >&5 |
| 5419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5420 | |
| 5421 | # Broken: fails on valid input. |
| 5422 | continue |
| 5423 | fi |
| 5424 | |
| 5425 | rm -f conftest.err conftest.$ac_ext |
| 5426 | |
| 5427 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5428 | # can be detected and how. |
| 5429 | cat >conftest.$ac_ext <<_ACEOF |
| 5430 | /* confdefs.h. */ |
| 5431 | _ACEOF |
| 5432 | cat confdefs.h >>conftest.$ac_ext |
| 5433 | cat >>conftest.$ac_ext <<_ACEOF |
| 5434 | /* end confdefs.h. */ |
| 5435 | #include <ac_nonexistent.h> |
| 5436 | _ACEOF |
| 5437 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5438 | case "(($ac_try" in |
| 5439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5440 | *) ac_try_echo=$ac_try;; |
| 5441 | esac |
| 5442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5443 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5444 | ac_status=$? |
| 5445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5446 | rm -f conftest.er1 |
| 5447 | cat conftest.err >&5 |
| 5448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5449 | (exit $ac_status); } >/dev/null && { |
| 5450 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5451 | test ! -s conftest.err |
| 5452 | }; then |
| 5453 | # Broken: success on invalid input. |
| 5454 | continue |
| 5455 | else |
| 5456 | echo "$as_me: failed program was:" >&5 |
| 5457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5458 | |
| 5459 | # Passes both tests. |
| 5460 | ac_preproc_ok=: |
| 5461 | break |
| 5462 | fi |
| 5463 | |
| 5464 | rm -f conftest.err conftest.$ac_ext |
| 5465 | |
| 5466 | done |
| 5467 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5468 | rm -f conftest.err conftest.$ac_ext |
| 5469 | if $ac_preproc_ok; then |
| 5470 | break |
| 5471 | fi |
| 5472 | |
| 5473 | done |
| 5474 | ac_cv_prog_CPP=$CPP |
| 5475 | |
| 5476 | fi |
| 5477 | CPP=$ac_cv_prog_CPP |
| 5478 | else |
| 5479 | ac_cv_prog_CPP=$CPP |
| 5480 | fi |
| 5481 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5482 | echo "${ECHO_T}$CPP" >&6; } |
| 5483 | ac_preproc_ok=false |
| 5484 | for ac_c_preproc_warn_flag in '' yes |
| 5485 | do |
| 5486 | # Use a header file that comes with gcc, so configuring glibc |
| 5487 | # with a fresh cross-compiler works. |
| 5488 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5489 | # <limits.h> exists even on freestanding compilers. |
| 5490 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5491 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5492 | cat >conftest.$ac_ext <<_ACEOF |
| 5493 | /* confdefs.h. */ |
| 5494 | _ACEOF |
| 5495 | cat confdefs.h >>conftest.$ac_ext |
| 5496 | cat >>conftest.$ac_ext <<_ACEOF |
| 5497 | /* end confdefs.h. */ |
| 5498 | #ifdef __STDC__ |
| 5499 | # include <limits.h> |
| 5500 | #else |
| 5501 | # include <assert.h> |
| 5502 | #endif |
| 5503 | Syntax error |
| 5504 | _ACEOF |
| 5505 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5506 | case "(($ac_try" in |
| 5507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5508 | *) ac_try_echo=$ac_try;; |
| 5509 | esac |
| 5510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5511 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5512 | ac_status=$? |
| 5513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5514 | rm -f conftest.er1 |
| 5515 | cat conftest.err >&5 |
| 5516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5517 | (exit $ac_status); } >/dev/null && { |
| 5518 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5519 | test ! -s conftest.err |
| 5520 | }; then |
| 5521 | : |
| 5522 | else |
| 5523 | echo "$as_me: failed program was:" >&5 |
| 5524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5525 | |
| 5526 | # Broken: fails on valid input. |
| 5527 | continue |
| 5528 | fi |
| 5529 | |
| 5530 | rm -f conftest.err conftest.$ac_ext |
| 5531 | |
| 5532 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5533 | # can be detected and how. |
| 5534 | cat >conftest.$ac_ext <<_ACEOF |
| 5535 | /* confdefs.h. */ |
| 5536 | _ACEOF |
| 5537 | cat confdefs.h >>conftest.$ac_ext |
| 5538 | cat >>conftest.$ac_ext <<_ACEOF |
| 5539 | /* end confdefs.h. */ |
| 5540 | #include <ac_nonexistent.h> |
| 5541 | _ACEOF |
| 5542 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5543 | case "(($ac_try" in |
| 5544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5545 | *) ac_try_echo=$ac_try;; |
| 5546 | esac |
| 5547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5548 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5549 | ac_status=$? |
| 5550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5551 | rm -f conftest.er1 |
| 5552 | cat conftest.err >&5 |
| 5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5554 | (exit $ac_status); } >/dev/null && { |
| 5555 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5556 | test ! -s conftest.err |
| 5557 | }; then |
| 5558 | # Broken: success on invalid input. |
| 5559 | continue |
| 5560 | else |
| 5561 | echo "$as_me: failed program was:" >&5 |
| 5562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5563 | |
| 5564 | # Passes both tests. |
| 5565 | ac_preproc_ok=: |
| 5566 | break |
| 5567 | fi |
| 5568 | |
| 5569 | rm -f conftest.err conftest.$ac_ext |
| 5570 | |
| 5571 | done |
| 5572 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5573 | rm -f conftest.err conftest.$ac_ext |
| 5574 | if $ac_preproc_ok; then |
| 5575 | : |
| 5576 | else |
| 5577 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5578 | See \`config.log' for more details." >&5 |
| 5579 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5580 | See \`config.log' for more details." >&2;} |
| 5581 | { (exit 1); exit 1; }; } |
| 5582 | fi |
| 5583 | |
| 5584 | ac_ext=c |
| 5585 | ac_cpp='$CPP $CPPFLAGS' |
| 5586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5589 | |
| 5590 | |
| 5591 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5592 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 5593 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5595 | else |
| 5596 | cat >conftest.$ac_ext <<_ACEOF |
| 5597 | /* confdefs.h. */ |
| 5598 | _ACEOF |
| 5599 | cat confdefs.h >>conftest.$ac_ext |
| 5600 | cat >>conftest.$ac_ext <<_ACEOF |
| 5601 | /* end confdefs.h. */ |
| 5602 | #include <stdlib.h> |
| 5603 | #include <stdarg.h> |
| 5604 | #include <string.h> |
| 5605 | #include <float.h> |
| 5606 | |
| 5607 | int |
| 5608 | main () |
| 5609 | { |
| 5610 | |
| 5611 | ; |
| 5612 | return 0; |
| 5613 | } |
| 5614 | _ACEOF |
| 5615 | rm -f conftest.$ac_objext |
| 5616 | if { (ac_try="$ac_compile" |
| 5617 | case "(($ac_try" in |
| 5618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5619 | *) ac_try_echo=$ac_try;; |
| 5620 | esac |
| 5621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5622 | (eval "$ac_compile") 2>conftest.er1 |
| 5623 | ac_status=$? |
| 5624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5625 | rm -f conftest.er1 |
| 5626 | cat conftest.err >&5 |
| 5627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5628 | (exit $ac_status); } && { |
| 5629 | test -z "$ac_c_werror_flag" || |
| 5630 | test ! -s conftest.err |
| 5631 | } && test -s conftest.$ac_objext; then |
| 5632 | ac_cv_header_stdc=yes |
| 5633 | else |
| 5634 | echo "$as_me: failed program was:" >&5 |
| 5635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5636 | |
| 5637 | ac_cv_header_stdc=no |
| 5638 | fi |
| 5639 | |
| 5640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5641 | |
| 5642 | if test $ac_cv_header_stdc = yes; then |
| 5643 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5644 | cat >conftest.$ac_ext <<_ACEOF |
| 5645 | /* confdefs.h. */ |
| 5646 | _ACEOF |
| 5647 | cat confdefs.h >>conftest.$ac_ext |
| 5648 | cat >>conftest.$ac_ext <<_ACEOF |
| 5649 | /* end confdefs.h. */ |
| 5650 | #include <string.h> |
| 5651 | |
| 5652 | _ACEOF |
| 5653 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5654 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5655 | : |
| 5656 | else |
| 5657 | ac_cv_header_stdc=no |
| 5658 | fi |
| 5659 | rm -f conftest* |
| 5660 | |
| 5661 | fi |
| 5662 | |
| 5663 | if test $ac_cv_header_stdc = yes; then |
| 5664 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5665 | cat >conftest.$ac_ext <<_ACEOF |
| 5666 | /* confdefs.h. */ |
| 5667 | _ACEOF |
| 5668 | cat confdefs.h >>conftest.$ac_ext |
| 5669 | cat >>conftest.$ac_ext <<_ACEOF |
| 5670 | /* end confdefs.h. */ |
| 5671 | #include <stdlib.h> |
| 5672 | |
| 5673 | _ACEOF |
| 5674 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5675 | $EGREP "free" >/dev/null 2>&1; then |
| 5676 | : |
| 5677 | else |
| 5678 | ac_cv_header_stdc=no |
| 5679 | fi |
| 5680 | rm -f conftest* |
| 5681 | |
| 5682 | fi |
| 5683 | |
| 5684 | if test $ac_cv_header_stdc = yes; then |
| 5685 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5686 | if test "$cross_compiling" = yes; then |
| 5687 | : |
| 5688 | else |
| 5689 | cat >conftest.$ac_ext <<_ACEOF |
| 5690 | /* confdefs.h. */ |
| 5691 | _ACEOF |
| 5692 | cat confdefs.h >>conftest.$ac_ext |
| 5693 | cat >>conftest.$ac_ext <<_ACEOF |
| 5694 | /* end confdefs.h. */ |
| 5695 | #include <ctype.h> |
| 5696 | #include <stdlib.h> |
| 5697 | #if ((' ' & 0x0FF) == 0x020) |
| 5698 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5699 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5700 | #else |
| 5701 | # define ISLOWER(c) \ |
| 5702 | (('a' <= (c) && (c) <= 'i') \ |
| 5703 | || ('j' <= (c) && (c) <= 'r') \ |
| 5704 | || ('s' <= (c) && (c) <= 'z')) |
| 5705 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5706 | #endif |
| 5707 | |
| 5708 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5709 | int |
| 5710 | main () |
| 5711 | { |
| 5712 | int i; |
| 5713 | for (i = 0; i < 256; i++) |
| 5714 | if (XOR (islower (i), ISLOWER (i)) |
| 5715 | || toupper (i) != TOUPPER (i)) |
| 5716 | return 2; |
| 5717 | return 0; |
| 5718 | } |
| 5719 | _ACEOF |
| 5720 | rm -f conftest$ac_exeext |
| 5721 | if { (ac_try="$ac_link" |
| 5722 | case "(($ac_try" in |
| 5723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5724 | *) ac_try_echo=$ac_try;; |
| 5725 | esac |
| 5726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5727 | (eval "$ac_link") 2>&5 |
| 5728 | ac_status=$? |
| 5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5730 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5731 | { (case "(($ac_try" in |
| 5732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5733 | *) ac_try_echo=$ac_try;; |
| 5734 | esac |
| 5735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5736 | (eval "$ac_try") 2>&5 |
| 5737 | ac_status=$? |
| 5738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5739 | (exit $ac_status); }; }; then |
| 5740 | : |
| 5741 | else |
| 5742 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5743 | echo "$as_me: failed program was:" >&5 |
| 5744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5745 | |
| 5746 | ( exit $ac_status ) |
| 5747 | ac_cv_header_stdc=no |
| 5748 | fi |
| 5749 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5750 | fi |
| 5751 | |
| 5752 | |
| 5753 | fi |
| 5754 | fi |
| 5755 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5756 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
| 5757 | if test $ac_cv_header_stdc = yes; then |
| 5758 | |
| 5759 | cat >>confdefs.h <<\_ACEOF |
| 5760 | #define STDC_HEADERS 1 |
| 5761 | _ACEOF |
| 5762 | |
| 5763 | fi |
| 5764 | |
| 5765 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5766 | |
| 5767 | |
| 5768 | |
| 5769 | |
| 5770 | |
| 5771 | |
| 5772 | |
| 5773 | |
| 5774 | |
| 5775 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5776 | inttypes.h stdint.h unistd.h |
| 5777 | do |
| 5778 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5779 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5780 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5781 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5783 | else |
| 5784 | cat >conftest.$ac_ext <<_ACEOF |
| 5785 | /* confdefs.h. */ |
| 5786 | _ACEOF |
| 5787 | cat confdefs.h >>conftest.$ac_ext |
| 5788 | cat >>conftest.$ac_ext <<_ACEOF |
| 5789 | /* end confdefs.h. */ |
| 5790 | $ac_includes_default |
| 5791 | |
| 5792 | #include <$ac_header> |
| 5793 | _ACEOF |
| 5794 | rm -f conftest.$ac_objext |
| 5795 | if { (ac_try="$ac_compile" |
| 5796 | case "(($ac_try" in |
| 5797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5798 | *) ac_try_echo=$ac_try;; |
| 5799 | esac |
| 5800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5801 | (eval "$ac_compile") 2>conftest.er1 |
| 5802 | ac_status=$? |
| 5803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5804 | rm -f conftest.er1 |
| 5805 | cat conftest.err >&5 |
| 5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5807 | (exit $ac_status); } && { |
| 5808 | test -z "$ac_c_werror_flag" || |
| 5809 | test ! -s conftest.err |
| 5810 | } && test -s conftest.$ac_objext; then |
| 5811 | eval "$as_ac_Header=yes" |
| 5812 | else |
| 5813 | echo "$as_me: failed program was:" >&5 |
| 5814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5815 | |
| 5816 | eval "$as_ac_Header=no" |
| 5817 | fi |
| 5818 | |
| 5819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5820 | fi |
| 5821 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5822 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5823 | echo "${ECHO_T}$ac_res" >&6; } |
| 5824 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5825 | cat >>confdefs.h <<_ACEOF |
| 5826 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5827 | _ACEOF |
| 5828 | |
| 5829 | fi |
| 5830 | |
| 5831 | done |
| 5832 | |
| 5833 | |
| 5834 | |
| 5835 | for ac_header in dlfcn.h |
| 5836 | do |
| 5837 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5838 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5839 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5840 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5841 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5843 | fi |
| 5844 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5845 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5846 | echo "${ECHO_T}$ac_res" >&6; } |
| 5847 | else |
| 5848 | # Is the header compilable? |
| 5849 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5850 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 5851 | cat >conftest.$ac_ext <<_ACEOF |
| 5852 | /* confdefs.h. */ |
| 5853 | _ACEOF |
| 5854 | cat confdefs.h >>conftest.$ac_ext |
| 5855 | cat >>conftest.$ac_ext <<_ACEOF |
| 5856 | /* end confdefs.h. */ |
| 5857 | $ac_includes_default |
| 5858 | #include <$ac_header> |
| 5859 | _ACEOF |
| 5860 | rm -f conftest.$ac_objext |
| 5861 | if { (ac_try="$ac_compile" |
| 5862 | case "(($ac_try" in |
| 5863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5864 | *) ac_try_echo=$ac_try;; |
| 5865 | esac |
| 5866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5867 | (eval "$ac_compile") 2>conftest.er1 |
| 5868 | ac_status=$? |
| 5869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5870 | rm -f conftest.er1 |
| 5871 | cat conftest.err >&5 |
| 5872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5873 | (exit $ac_status); } && { |
| 5874 | test -z "$ac_c_werror_flag" || |
| 5875 | test ! -s conftest.err |
| 5876 | } && test -s conftest.$ac_objext; then |
| 5877 | ac_header_compiler=yes |
| 5878 | else |
| 5879 | echo "$as_me: failed program was:" >&5 |
| 5880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5881 | |
| 5882 | ac_header_compiler=no |
| 5883 | fi |
| 5884 | |
| 5885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5886 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5887 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5888 | |
| 5889 | # Is the header present? |
| 5890 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5891 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 5892 | cat >conftest.$ac_ext <<_ACEOF |
| 5893 | /* confdefs.h. */ |
| 5894 | _ACEOF |
| 5895 | cat confdefs.h >>conftest.$ac_ext |
| 5896 | cat >>conftest.$ac_ext <<_ACEOF |
| 5897 | /* end confdefs.h. */ |
| 5898 | #include <$ac_header> |
| 5899 | _ACEOF |
| 5900 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5901 | case "(($ac_try" in |
| 5902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5903 | *) ac_try_echo=$ac_try;; |
| 5904 | esac |
| 5905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5906 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5907 | ac_status=$? |
| 5908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5909 | rm -f conftest.er1 |
| 5910 | cat conftest.err >&5 |
| 5911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5912 | (exit $ac_status); } >/dev/null && { |
| 5913 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5914 | test ! -s conftest.err |
| 5915 | }; then |
| 5916 | ac_header_preproc=yes |
| 5917 | else |
| 5918 | echo "$as_me: failed program was:" >&5 |
| 5919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5920 | |
| 5921 | ac_header_preproc=no |
| 5922 | fi |
| 5923 | |
| 5924 | rm -f conftest.err conftest.$ac_ext |
| 5925 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5926 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5927 | |
| 5928 | # So? What about this header? |
| 5929 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5930 | yes:no: ) |
| 5931 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5932 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5933 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5934 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5935 | ac_header_preproc=yes |
| 5936 | ;; |
| 5937 | no:yes:* ) |
| 5938 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5939 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5940 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5941 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5942 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5943 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5944 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5945 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5946 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5947 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5948 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5949 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5950 | |
| 5951 | ;; |
| 5952 | esac |
| 5953 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5954 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5955 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5957 | else |
| 5958 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5959 | fi |
| 5960 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5961 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5962 | echo "${ECHO_T}$ac_res" >&6; } |
| 5963 | |
| 5964 | fi |
| 5965 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5966 | cat >>confdefs.h <<_ACEOF |
| 5967 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5968 | _ACEOF |
| 5969 | |
| 5970 | fi |
| 5971 | |
| 5972 | done |
| 5973 | |
| 5974 | |
| 5975 | |
| 5976 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 5977 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 5978 | (test "X$CXX" != "Xg++"))) ; then |
| 5979 | ac_ext=cpp |
| 5980 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5981 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5982 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5983 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5984 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 5985 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
| 5986 | if test -z "$CXXCPP"; then |
| 5987 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 5988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5989 | else |
| 5990 | # Double quotes because CXXCPP needs to be expanded |
| 5991 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 5992 | do |
| 5993 | ac_preproc_ok=false |
| 5994 | for ac_cxx_preproc_warn_flag in '' yes |
| 5995 | do |
| 5996 | # Use a header file that comes with gcc, so configuring glibc |
| 5997 | # with a fresh cross-compiler works. |
| 5998 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5999 | # <limits.h> exists even on freestanding compilers. |
| 6000 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6001 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6002 | cat >conftest.$ac_ext <<_ACEOF |
| 6003 | /* confdefs.h. */ |
| 6004 | _ACEOF |
| 6005 | cat confdefs.h >>conftest.$ac_ext |
| 6006 | cat >>conftest.$ac_ext <<_ACEOF |
| 6007 | /* end confdefs.h. */ |
| 6008 | #ifdef __STDC__ |
| 6009 | # include <limits.h> |
| 6010 | #else |
| 6011 | # include <assert.h> |
| 6012 | #endif |
| 6013 | Syntax error |
| 6014 | _ACEOF |
| 6015 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6016 | case "(($ac_try" in |
| 6017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6018 | *) ac_try_echo=$ac_try;; |
| 6019 | esac |
| 6020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6021 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6022 | ac_status=$? |
| 6023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6024 | rm -f conftest.er1 |
| 6025 | cat conftest.err >&5 |
| 6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6027 | (exit $ac_status); } >/dev/null && { |
| 6028 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 6029 | test ! -s conftest.err |
| 6030 | }; then |
| 6031 | : |
| 6032 | else |
| 6033 | echo "$as_me: failed program was:" >&5 |
| 6034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6035 | |
| 6036 | # Broken: fails on valid input. |
| 6037 | continue |
| 6038 | fi |
| 6039 | |
| 6040 | rm -f conftest.err conftest.$ac_ext |
| 6041 | |
| 6042 | # OK, works on sane cases. Now check whether nonexistent headers |
| 6043 | # can be detected and how. |
| 6044 | cat >conftest.$ac_ext <<_ACEOF |
| 6045 | /* confdefs.h. */ |
| 6046 | _ACEOF |
| 6047 | cat confdefs.h >>conftest.$ac_ext |
| 6048 | cat >>conftest.$ac_ext <<_ACEOF |
| 6049 | /* end confdefs.h. */ |
| 6050 | #include <ac_nonexistent.h> |
| 6051 | _ACEOF |
| 6052 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6053 | case "(($ac_try" in |
| 6054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6055 | *) ac_try_echo=$ac_try;; |
| 6056 | esac |
| 6057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6058 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6059 | ac_status=$? |
| 6060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6061 | rm -f conftest.er1 |
| 6062 | cat conftest.err >&5 |
| 6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6064 | (exit $ac_status); } >/dev/null && { |
| 6065 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 6066 | test ! -s conftest.err |
| 6067 | }; then |
| 6068 | # Broken: success on invalid input. |
| 6069 | continue |
| 6070 | else |
| 6071 | echo "$as_me: failed program was:" >&5 |
| 6072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6073 | |
| 6074 | # Passes both tests. |
| 6075 | ac_preproc_ok=: |
| 6076 | break |
| 6077 | fi |
| 6078 | |
| 6079 | rm -f conftest.err conftest.$ac_ext |
| 6080 | |
| 6081 | done |
| 6082 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6083 | rm -f conftest.err conftest.$ac_ext |
| 6084 | if $ac_preproc_ok; then |
| 6085 | break |
| 6086 | fi |
| 6087 | |
| 6088 | done |
| 6089 | ac_cv_prog_CXXCPP=$CXXCPP |
| 6090 | |
| 6091 | fi |
| 6092 | CXXCPP=$ac_cv_prog_CXXCPP |
| 6093 | else |
| 6094 | ac_cv_prog_CXXCPP=$CXXCPP |
| 6095 | fi |
| 6096 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 6097 | echo "${ECHO_T}$CXXCPP" >&6; } |
| 6098 | ac_preproc_ok=false |
| 6099 | for ac_cxx_preproc_warn_flag in '' yes |
| 6100 | do |
| 6101 | # Use a header file that comes with gcc, so configuring glibc |
| 6102 | # with a fresh cross-compiler works. |
| 6103 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6104 | # <limits.h> exists even on freestanding compilers. |
| 6105 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6106 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6107 | cat >conftest.$ac_ext <<_ACEOF |
| 6108 | /* confdefs.h. */ |
| 6109 | _ACEOF |
| 6110 | cat confdefs.h >>conftest.$ac_ext |
| 6111 | cat >>conftest.$ac_ext <<_ACEOF |
| 6112 | /* end confdefs.h. */ |
| 6113 | #ifdef __STDC__ |
| 6114 | # include <limits.h> |
| 6115 | #else |
| 6116 | # include <assert.h> |
| 6117 | #endif |
| 6118 | Syntax error |
| 6119 | _ACEOF |
| 6120 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6121 | case "(($ac_try" in |
| 6122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6123 | *) ac_try_echo=$ac_try;; |
| 6124 | esac |
| 6125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6126 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6127 | ac_status=$? |
| 6128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6129 | rm -f conftest.er1 |
| 6130 | cat conftest.err >&5 |
| 6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6132 | (exit $ac_status); } >/dev/null && { |
| 6133 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 6134 | test ! -s conftest.err |
| 6135 | }; then |
| 6136 | : |
| 6137 | else |
| 6138 | echo "$as_me: failed program was:" >&5 |
| 6139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6140 | |
| 6141 | # Broken: fails on valid input. |
| 6142 | continue |
| 6143 | fi |
| 6144 | |
| 6145 | rm -f conftest.err conftest.$ac_ext |
| 6146 | |
| 6147 | # OK, works on sane cases. Now check whether nonexistent headers |
| 6148 | # can be detected and how. |
| 6149 | cat >conftest.$ac_ext <<_ACEOF |
| 6150 | /* confdefs.h. */ |
| 6151 | _ACEOF |
| 6152 | cat confdefs.h >>conftest.$ac_ext |
| 6153 | cat >>conftest.$ac_ext <<_ACEOF |
| 6154 | /* end confdefs.h. */ |
| 6155 | #include <ac_nonexistent.h> |
| 6156 | _ACEOF |
| 6157 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6158 | case "(($ac_try" in |
| 6159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6160 | *) ac_try_echo=$ac_try;; |
| 6161 | esac |
| 6162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6163 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6164 | ac_status=$? |
| 6165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6166 | rm -f conftest.er1 |
| 6167 | cat conftest.err >&5 |
| 6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6169 | (exit $ac_status); } >/dev/null && { |
| 6170 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 6171 | test ! -s conftest.err |
| 6172 | }; then |
| 6173 | # Broken: success on invalid input. |
| 6174 | continue |
| 6175 | else |
| 6176 | echo "$as_me: failed program was:" >&5 |
| 6177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6178 | |
| 6179 | # Passes both tests. |
| 6180 | ac_preproc_ok=: |
| 6181 | break |
| 6182 | fi |
| 6183 | |
| 6184 | rm -f conftest.err conftest.$ac_ext |
| 6185 | |
| 6186 | done |
| 6187 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6188 | rm -f conftest.err conftest.$ac_ext |
| 6189 | if $ac_preproc_ok; then |
| 6190 | : |
| 6191 | else |
| 6192 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6193 | See \`config.log' for more details." >&5 |
| 6194 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6195 | See \`config.log' for more details." >&2;} |
| 6196 | { (exit 1); exit 1; }; } |
| 6197 | fi |
| 6198 | |
| 6199 | ac_ext=cpp |
| 6200 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6201 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6202 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6203 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6204 | |
| 6205 | fi |
| 6206 | |
| 6207 | |
| 6208 | ac_ext=f |
| 6209 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 6210 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6211 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 6212 | if test -n "$ac_tool_prefix"; then |
| 6213 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
| 6214 | do |
| 6215 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6216 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6217 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6219 | if test "${ac_cv_prog_F77+set}" = set; then |
| 6220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6221 | else |
| 6222 | if test -n "$F77"; then |
| 6223 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 6224 | else |
| 6225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6226 | for as_dir in $PATH |
| 6227 | do |
| 6228 | IFS=$as_save_IFS |
| 6229 | test -z "$as_dir" && as_dir=. |
| 6230 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6232 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 6233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6234 | break 2 |
| 6235 | fi |
| 6236 | done |
| 6237 | done |
| 6238 | IFS=$as_save_IFS |
| 6239 | |
| 6240 | fi |
| 6241 | fi |
| 6242 | F77=$ac_cv_prog_F77 |
| 6243 | if test -n "$F77"; then |
| 6244 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 6245 | echo "${ECHO_T}$F77" >&6; } |
| 6246 | else |
| 6247 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6248 | echo "${ECHO_T}no" >&6; } |
| 6249 | fi |
| 6250 | |
| 6251 | |
| 6252 | test -n "$F77" && break |
| 6253 | done |
| 6254 | fi |
| 6255 | if test -z "$F77"; then |
| 6256 | ac_ct_F77=$F77 |
| 6257 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
| 6258 | do |
| 6259 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6260 | set dummy $ac_prog; ac_word=$2 |
| 6261 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6263 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 6264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6265 | else |
| 6266 | if test -n "$ac_ct_F77"; then |
| 6267 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 6268 | else |
| 6269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6270 | for as_dir in $PATH |
| 6271 | do |
| 6272 | IFS=$as_save_IFS |
| 6273 | test -z "$as_dir" && as_dir=. |
| 6274 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6275 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6276 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 6277 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6278 | break 2 |
| 6279 | fi |
| 6280 | done |
| 6281 | done |
| 6282 | IFS=$as_save_IFS |
| 6283 | |
| 6284 | fi |
| 6285 | fi |
| 6286 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 6287 | if test -n "$ac_ct_F77"; then |
| 6288 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 6289 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
| 6290 | else |
| 6291 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6292 | echo "${ECHO_T}no" >&6; } |
| 6293 | fi |
| 6294 | |
| 6295 | |
| 6296 | test -n "$ac_ct_F77" && break |
| 6297 | done |
| 6298 | |
| 6299 | if test "x$ac_ct_F77" = x; then |
| 6300 | F77="" |
| 6301 | else |
| 6302 | case $cross_compiling:$ac_tool_warned in |
| 6303 | yes:) |
| 6304 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6305 | whose name does not start with the host triplet. If you think this |
| 6306 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6307 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6308 | whose name does not start with the host triplet. If you think this |
| 6309 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6310 | ac_tool_warned=yes ;; |
| 6311 | esac |
| 6312 | F77=$ac_ct_F77 |
| 6313 | fi |
| 6314 | fi |
| 6315 | |
| 6316 | |
| 6317 | # Provide some information about the compiler. |
| 6318 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
| 6319 | ac_compiler=`set X $ac_compile; echo $2` |
| 6320 | { (ac_try="$ac_compiler --version >&5" |
| 6321 | case "(($ac_try" in |
| 6322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6323 | *) ac_try_echo=$ac_try;; |
| 6324 | esac |
| 6325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6326 | (eval "$ac_compiler --version >&5") 2>&5 |
| 6327 | ac_status=$? |
| 6328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6329 | (exit $ac_status); } |
| 6330 | { (ac_try="$ac_compiler -v >&5" |
| 6331 | case "(($ac_try" in |
| 6332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6333 | *) ac_try_echo=$ac_try;; |
| 6334 | esac |
| 6335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6336 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6337 | ac_status=$? |
| 6338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6339 | (exit $ac_status); } |
| 6340 | { (ac_try="$ac_compiler -V >&5" |
| 6341 | case "(($ac_try" in |
| 6342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6343 | *) ac_try_echo=$ac_try;; |
| 6344 | esac |
| 6345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6346 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6347 | ac_status=$? |
| 6348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6349 | (exit $ac_status); } |
| 6350 | rm -f a.out |
| 6351 | |
| 6352 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 6353 | # input file. (Note that this only needs to work for GNU compilers.) |
| 6354 | ac_save_ext=$ac_ext |
| 6355 | ac_ext=F |
| 6356 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 6357 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
| 6358 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 6359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6360 | else |
| 6361 | cat >conftest.$ac_ext <<_ACEOF |
| 6362 | program main |
| 6363 | #ifndef __GNUC__ |
| 6364 | choke me |
| 6365 | #endif |
| 6366 | |
| 6367 | end |
| 6368 | _ACEOF |
| 6369 | rm -f conftest.$ac_objext |
| 6370 | if { (ac_try="$ac_compile" |
| 6371 | case "(($ac_try" in |
| 6372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6373 | *) ac_try_echo=$ac_try;; |
| 6374 | esac |
| 6375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6376 | (eval "$ac_compile") 2>conftest.er1 |
| 6377 | ac_status=$? |
| 6378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6379 | rm -f conftest.er1 |
| 6380 | cat conftest.err >&5 |
| 6381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6382 | (exit $ac_status); } && { |
| 6383 | test -z "$ac_f77_werror_flag" || |
| 6384 | test ! -s conftest.err |
| 6385 | } && test -s conftest.$ac_objext; then |
| 6386 | ac_compiler_gnu=yes |
| 6387 | else |
| 6388 | echo "$as_me: failed program was:" >&5 |
| 6389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6390 | |
| 6391 | ac_compiler_gnu=no |
| 6392 | fi |
| 6393 | |
| 6394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6395 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 6396 | |
| 6397 | fi |
| 6398 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 6399 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
| 6400 | ac_ext=$ac_save_ext |
| 6401 | ac_test_FFLAGS=${FFLAGS+set} |
| 6402 | ac_save_FFLAGS=$FFLAGS |
| 6403 | FFLAGS= |
| 6404 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 6405 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
| 6406 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 6407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6408 | else |
| 6409 | FFLAGS=-g |
| 6410 | cat >conftest.$ac_ext <<_ACEOF |
| 6411 | program main |
| 6412 | |
| 6413 | end |
| 6414 | _ACEOF |
| 6415 | rm -f conftest.$ac_objext |
| 6416 | if { (ac_try="$ac_compile" |
| 6417 | case "(($ac_try" in |
| 6418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6419 | *) ac_try_echo=$ac_try;; |
| 6420 | esac |
| 6421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6422 | (eval "$ac_compile") 2>conftest.er1 |
| 6423 | ac_status=$? |
| 6424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6425 | rm -f conftest.er1 |
| 6426 | cat conftest.err >&5 |
| 6427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6428 | (exit $ac_status); } && { |
| 6429 | test -z "$ac_f77_werror_flag" || |
| 6430 | test ! -s conftest.err |
| 6431 | } && test -s conftest.$ac_objext; then |
| 6432 | ac_cv_prog_f77_g=yes |
| 6433 | else |
| 6434 | echo "$as_me: failed program was:" >&5 |
| 6435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6436 | |
| 6437 | ac_cv_prog_f77_g=no |
| 6438 | fi |
| 6439 | |
| 6440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6441 | |
| 6442 | fi |
| 6443 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 6444 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
| 6445 | if test "$ac_test_FFLAGS" = set; then |
| 6446 | FFLAGS=$ac_save_FFLAGS |
| 6447 | elif test $ac_cv_prog_f77_g = yes; then |
| 6448 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6449 | FFLAGS="-g -O2" |
| 6450 | else |
| 6451 | FFLAGS="-g" |
| 6452 | fi |
| 6453 | else |
| 6454 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6455 | FFLAGS="-O2" |
| 6456 | else |
| 6457 | FFLAGS= |
| 6458 | fi |
| 6459 | fi |
| 6460 | |
| 6461 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 6462 | ac_ext=c |
| 6463 | ac_cpp='$CPP $CPPFLAGS' |
| 6464 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6465 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6466 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6467 | |
| 6468 | |
| 6469 | |
| 6470 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 6471 | |
| 6472 | # find the maximum length of command line arguments |
| 6473 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 6474 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
| 6475 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 6476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6477 | else |
| 6478 | i=0 |
| 6479 | teststring="ABCD" |
| 6480 | |
| 6481 | case $build_os in |
| 6482 | msdosdjgpp*) |
| 6483 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6484 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6485 | # during glob expansion). Even if it were fixed, the result of this |
| 6486 | # check would be larger than it should be. |
| 6487 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6488 | ;; |
| 6489 | |
| 6490 | gnu*) |
| 6491 | # Under GNU Hurd, this test is not required because there is |
| 6492 | # no limit to the length of command line arguments. |
| 6493 | # Libtool will interpret -1 as no limit whatsoever |
| 6494 | lt_cv_sys_max_cmd_len=-1; |
| 6495 | ;; |
| 6496 | |
| 6497 | cygwin* | mingw*) |
| 6498 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6499 | # about 5 minutes as the teststring grows exponentially. |
| 6500 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6501 | # you end up with a "frozen" computer, even though with patience |
| 6502 | # the test eventually succeeds (with a max line length of 256k). |
| 6503 | # Instead, let's just punt: use the minimum linelength reported by |
| 6504 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6505 | lt_cv_sys_max_cmd_len=8192; |
| 6506 | ;; |
| 6507 | |
| 6508 | amigaos*) |
| 6509 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6510 | # So we just punt and use a minimum line length of 8192. |
| 6511 | lt_cv_sys_max_cmd_len=8192; |
| 6512 | ;; |
| 6513 | |
| 6514 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 6515 | # This has been around since 386BSD, at least. Likely further. |
| 6516 | if test -x /sbin/sysctl; then |
| 6517 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6518 | elif test -x /usr/sbin/sysctl; then |
| 6519 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6520 | else |
| 6521 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6522 | fi |
| 6523 | # And add a safety zone |
| 6524 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6525 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6526 | ;; |
| 6527 | |
| 6528 | interix*) |
| 6529 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6530 | lt_cv_sys_max_cmd_len=196608 |
| 6531 | ;; |
| 6532 | |
| 6533 | osf*) |
| 6534 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6535 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6536 | # nice to cause kernel panics so lets avoid the loop below. |
| 6537 | # First set a reasonable default. |
| 6538 | lt_cv_sys_max_cmd_len=16384 |
| 6539 | # |
| 6540 | if test -x /sbin/sysconfig; then |
| 6541 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6542 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6543 | esac |
| 6544 | fi |
| 6545 | ;; |
| 6546 | sco3.2v5*) |
| 6547 | lt_cv_sys_max_cmd_len=102400 |
| 6548 | ;; |
| 6549 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6550 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6551 | if test -n "$kargmax"; then |
| 6552 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6553 | else |
| 6554 | lt_cv_sys_max_cmd_len=32768 |
| 6555 | fi |
| 6556 | ;; |
| 6557 | *) |
| 6558 | # If test is not a shell built-in, we'll probably end up computing a |
| 6559 | # maximum length that is only half of the actual maximum length, but |
| 6560 | # we can't tell. |
| 6561 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6562 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 6563 | = "XX$teststring") >/dev/null 2>&1 && |
| 6564 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 6565 | lt_cv_sys_max_cmd_len=$new_result && |
| 6566 | test $i != 17 # 1/2 MB should be enough |
| 6567 | do |
| 6568 | i=`expr $i + 1` |
| 6569 | teststring=$teststring$teststring |
| 6570 | done |
| 6571 | teststring= |
| 6572 | # Add a significant safety factor because C++ compilers can tack on massive |
| 6573 | # amounts of additional arguments before passing them to the linker. |
| 6574 | # It appears as though 1/2 is a usable value. |
| 6575 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6576 | ;; |
| 6577 | esac |
| 6578 | |
| 6579 | fi |
| 6580 | |
| 6581 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 6582 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6583 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
| 6584 | else |
| 6585 | { echo "$as_me:$LINENO: result: none" >&5 |
| 6586 | echo "${ECHO_T}none" >&6; } |
| 6587 | fi |
| 6588 | |
| 6589 | |
| 6590 | |
| 6591 | |
| 6592 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6593 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 6594 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 6595 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 6596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6597 | else |
| 6598 | |
| 6599 | # These are sane defaults that work on at least a few old systems. |
| 6600 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6601 | |
| 6602 | # Character class describing NM global symbol codes. |
| 6603 | symcode='[BCDEGRST]' |
| 6604 | |
| 6605 | # Regexp to match symbols that can be accessed directly from C. |
| 6606 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6607 | |
| 6608 | # Transform an extracted symbol line into a proper C declaration |
| 6609 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 6610 | |
| 6611 | # Transform an extracted symbol line into symbol name and symbol address |
| 6612 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 6613 | |
| 6614 | # Define system-specific variables. |
| 6615 | case $host_os in |
| 6616 | aix*) |
| 6617 | symcode='[BCDT]' |
| 6618 | ;; |
| 6619 | cygwin* | mingw* | pw32*) |
| 6620 | symcode='[ABCDGISTW]' |
| 6621 | ;; |
| 6622 | hpux*) # Its linker distinguishes data from code symbols |