Adam Tkac | fded078 | 2008-03-22 11:20:54 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.61. |
| 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 | exec 7<&0 </dev/null 6>&1 |
| 553 | |
| 554 | # Name of the host. |
| 555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 556 | # so uname gets run too. |
| 557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 558 | |
| 559 | # |
| 560 | # Initializations. |
| 561 | # |
| 562 | ac_default_prefix=/usr/local |
| 563 | ac_clean_files= |
| 564 | ac_config_libobj_dir=. |
| 565 | LIBOBJS= |
| 566 | cross_compiling=no |
| 567 | subdirs= |
| 568 | MFLAGS= |
| 569 | MAKEFLAGS= |
| 570 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 571 | |
| 572 | # Identity of this package. |
| 573 | PACKAGE_NAME= |
| 574 | PACKAGE_TARNAME= |
| 575 | PACKAGE_VERSION= |
| 576 | PACKAGE_STRING= |
| 577 | PACKAGE_BUGREPORT= |
| 578 | |
| 579 | ac_unique_file="vncviewer/vncviewer.cxx" |
| 580 | # Factoring default headers for most tests. |
| 581 | ac_includes_default="\ |
| 582 | #include <stdio.h> |
| 583 | #ifdef HAVE_SYS_TYPES_H |
| 584 | # include <sys/types.h> |
| 585 | #endif |
| 586 | #ifdef HAVE_SYS_STAT_H |
| 587 | # include <sys/stat.h> |
| 588 | #endif |
| 589 | #ifdef STDC_HEADERS |
| 590 | # include <stdlib.h> |
| 591 | # include <stddef.h> |
| 592 | #else |
| 593 | # ifdef HAVE_STDLIB_H |
| 594 | # include <stdlib.h> |
| 595 | # endif |
| 596 | #endif |
| 597 | #ifdef HAVE_STRING_H |
| 598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 599 | # include <memory.h> |
| 600 | # endif |
| 601 | # include <string.h> |
| 602 | #endif |
| 603 | #ifdef HAVE_STRINGS_H |
| 604 | # include <strings.h> |
| 605 | #endif |
| 606 | #ifdef HAVE_INTTYPES_H |
| 607 | # include <inttypes.h> |
| 608 | #endif |
| 609 | #ifdef HAVE_STDINT_H |
| 610 | # include <stdint.h> |
| 611 | #endif |
| 612 | #ifdef HAVE_UNISTD_H |
| 613 | # include <unistd.h> |
| 614 | #endif" |
| 615 | |
| 616 | ac_subst_vars='SHELL |
| 617 | PATH_SEPARATOR |
| 618 | PACKAGE_NAME |
| 619 | PACKAGE_TARNAME |
| 620 | PACKAGE_VERSION |
| 621 | PACKAGE_STRING |
| 622 | PACKAGE_BUGREPORT |
| 623 | exec_prefix |
| 624 | prefix |
| 625 | program_transform_name |
| 626 | bindir |
| 627 | sbindir |
| 628 | libexecdir |
| 629 | datarootdir |
| 630 | datadir |
| 631 | sysconfdir |
| 632 | sharedstatedir |
| 633 | localstatedir |
| 634 | includedir |
| 635 | oldincludedir |
| 636 | docdir |
| 637 | infodir |
| 638 | htmldir |
| 639 | dvidir |
| 640 | pdfdir |
| 641 | psdir |
| 642 | libdir |
| 643 | localedir |
| 644 | mandir |
| 645 | DEFS |
| 646 | ECHO_C |
| 647 | ECHO_N |
| 648 | ECHO_T |
| 649 | LIBS |
| 650 | build_alias |
| 651 | host_alias |
| 652 | target_alias |
| 653 | PACKAGE |
| 654 | VERSION |
| 655 | CC |
| 656 | CFLAGS |
| 657 | LDFLAGS |
| 658 | CPPFLAGS |
| 659 | ac_ct_CC |
| 660 | EXEEXT |
| 661 | OBJEXT |
| 662 | CXX |
| 663 | CXXFLAGS |
| 664 | ac_ct_CXX |
| 665 | RANLIB |
| 666 | SET_MAKE |
| 667 | MITSHM_DEFINE |
| 668 | CL_LIB |
| 669 | DMEDIA_LIB |
| 670 | XMKMF |
| 671 | CXXCPP |
| 672 | X_CFLAGS |
| 673 | X_PRE_LIBS |
| 674 | X_LIBS |
| 675 | X_EXTRA_LIBS |
| 676 | ZLIB_DIR |
| 677 | ZLIB_INCLUDE |
| 678 | ZLIB_LIB |
| 679 | JPEG_DIR |
| 680 | JPEG_INCLUDE |
| 681 | JPEG_LIB |
| 682 | VNCCONFIG_DIR |
| 683 | XTEST_DEFINE |
| 684 | XTEST_LIB |
| 685 | READDISPLAY_DEFINE |
| 686 | INET_LIB |
| 687 | INSTALL_PROGRAM |
| 688 | INSTALL_SCRIPT |
| 689 | INSTALL_DATA |
| 690 | MKINSTALLDIRS |
| 691 | USE_NLS |
| 692 | MSGFMT |
| 693 | GMSGFMT |
| 694 | XGETTEXT |
| 695 | MSGMERGE |
| 696 | build |
| 697 | build_cpu |
| 698 | build_vendor |
| 699 | build_os |
| 700 | host |
| 701 | host_cpu |
| 702 | host_vendor |
| 703 | host_os |
| 704 | GREP |
| 705 | EGREP |
| 706 | ALLOCA |
| 707 | GLIBC21 |
| 708 | HAVE_POSIX_PRINTF |
| 709 | HAVE_ASPRINTF |
| 710 | HAVE_SNPRINTF |
| 711 | HAVE_WPRINTF |
| 712 | LIBICONV |
| 713 | LTLIBICONV |
| 714 | INTLBISON |
| 715 | BUILD_INCLUDED_LIBINTL |
| 716 | USE_INCLUDED_LIBINTL |
| 717 | CATOBJEXT |
| 718 | DATADIRNAME |
| 719 | INSTOBJEXT |
| 720 | GENCAT |
| 721 | INTLOBJS |
| 722 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 723 | INTLLIBS |
| 724 | LIBINTL |
| 725 | LTLIBINTL |
| 726 | POSUB |
| 727 | LIBOBJS |
| 728 | LTLIBOBJS' |
| 729 | ac_subst_files='' |
| 730 | ac_precious_vars='build_alias |
| 731 | host_alias |
| 732 | target_alias |
| 733 | CC |
| 734 | CFLAGS |
| 735 | LDFLAGS |
| 736 | LIBS |
| 737 | CPPFLAGS |
| 738 | CXX |
| 739 | CXXFLAGS |
| 740 | CCC |
| 741 | XMKMF |
| 742 | CXXCPP' |
| 743 | |
| 744 | |
| 745 | # Initialize some variables set by options. |
| 746 | ac_init_help= |
| 747 | ac_init_version=false |
| 748 | # The variables have the same names as the options, with |
| 749 | # dashes changed to underlines. |
| 750 | cache_file=/dev/null |
| 751 | exec_prefix=NONE |
| 752 | no_create= |
| 753 | no_recursion= |
| 754 | prefix=NONE |
| 755 | program_prefix=NONE |
| 756 | program_suffix=NONE |
| 757 | program_transform_name=s,x,x, |
| 758 | silent= |
| 759 | site= |
| 760 | srcdir= |
| 761 | verbose= |
| 762 | x_includes=NONE |
| 763 | x_libraries=NONE |
| 764 | |
| 765 | # Installation directory options. |
| 766 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 767 | # and all the variables that are supposed to be based on exec_prefix |
| 768 | # by default will actually change. |
| 769 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 770 | # (The list follows the same order as the GNU Coding Standards.) |
| 771 | bindir='${exec_prefix}/bin' |
| 772 | sbindir='${exec_prefix}/sbin' |
| 773 | libexecdir='${exec_prefix}/libexec' |
| 774 | datarootdir='${prefix}/share' |
| 775 | datadir='${datarootdir}' |
| 776 | sysconfdir='${prefix}/etc' |
| 777 | sharedstatedir='${prefix}/com' |
| 778 | localstatedir='${prefix}/var' |
| 779 | includedir='${prefix}/include' |
| 780 | oldincludedir='/usr/include' |
| 781 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 782 | infodir='${datarootdir}/info' |
| 783 | htmldir='${docdir}' |
| 784 | dvidir='${docdir}' |
| 785 | pdfdir='${docdir}' |
| 786 | psdir='${docdir}' |
| 787 | libdir='${exec_prefix}/lib' |
| 788 | localedir='${datarootdir}/locale' |
| 789 | mandir='${datarootdir}/man' |
| 790 | |
| 791 | ac_prev= |
| 792 | ac_dashdash= |
| 793 | for ac_option |
| 794 | do |
| 795 | # If the previous option needs an argument, assign it. |
| 796 | if test -n "$ac_prev"; then |
| 797 | eval $ac_prev=\$ac_option |
| 798 | ac_prev= |
| 799 | continue |
| 800 | fi |
| 801 | |
| 802 | case $ac_option in |
| 803 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 804 | *) ac_optarg=yes ;; |
| 805 | esac |
| 806 | |
| 807 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 808 | |
| 809 | case $ac_dashdash$ac_option in |
| 810 | --) |
| 811 | ac_dashdash=yes ;; |
| 812 | |
| 813 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 814 | ac_prev=bindir ;; |
| 815 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 816 | bindir=$ac_optarg ;; |
| 817 | |
| 818 | -build | --build | --buil | --bui | --bu) |
| 819 | ac_prev=build_alias ;; |
| 820 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 821 | build_alias=$ac_optarg ;; |
| 822 | |
| 823 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 824 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 825 | ac_prev=cache_file ;; |
| 826 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 827 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 828 | cache_file=$ac_optarg ;; |
| 829 | |
| 830 | --config-cache | -C) |
| 831 | cache_file=config.cache ;; |
| 832 | |
| 833 | -datadir | --datadir | --datadi | --datad) |
| 834 | ac_prev=datadir ;; |
| 835 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 836 | datadir=$ac_optarg ;; |
| 837 | |
| 838 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 839 | | --dataroo | --dataro | --datar) |
| 840 | ac_prev=datarootdir ;; |
| 841 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 842 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 843 | datarootdir=$ac_optarg ;; |
| 844 | |
| 845 | -disable-* | --disable-*) |
| 846 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 847 | # Reject names that are not valid shell variable names. |
| 848 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 849 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 850 | { (exit 1); exit 1; }; } |
| 851 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 852 | eval enable_$ac_feature=no ;; |
| 853 | |
| 854 | -docdir | --docdir | --docdi | --doc | --do) |
| 855 | ac_prev=docdir ;; |
| 856 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 857 | docdir=$ac_optarg ;; |
| 858 | |
| 859 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 860 | ac_prev=dvidir ;; |
| 861 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 862 | dvidir=$ac_optarg ;; |
| 863 | |
| 864 | -enable-* | --enable-*) |
| 865 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 866 | # Reject names that are not valid shell variable names. |
| 867 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 868 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 869 | { (exit 1); exit 1; }; } |
| 870 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 871 | eval enable_$ac_feature=\$ac_optarg ;; |
| 872 | |
| 873 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 874 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 875 | | --exec | --exe | --ex) |
| 876 | ac_prev=exec_prefix ;; |
| 877 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 878 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 879 | | --exec=* | --exe=* | --ex=*) |
| 880 | exec_prefix=$ac_optarg ;; |
| 881 | |
| 882 | -gas | --gas | --ga | --g) |
| 883 | # Obsolete; use --with-gas. |
| 884 | with_gas=yes ;; |
| 885 | |
| 886 | -help | --help | --hel | --he | -h) |
| 887 | ac_init_help=long ;; |
| 888 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 889 | ac_init_help=recursive ;; |
| 890 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 891 | ac_init_help=short ;; |
| 892 | |
| 893 | -host | --host | --hos | --ho) |
| 894 | ac_prev=host_alias ;; |
| 895 | -host=* | --host=* | --hos=* | --ho=*) |
| 896 | host_alias=$ac_optarg ;; |
| 897 | |
| 898 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 899 | ac_prev=htmldir ;; |
| 900 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 901 | | --ht=*) |
| 902 | htmldir=$ac_optarg ;; |
| 903 | |
| 904 | -includedir | --includedir | --includedi | --included | --include \ |
| 905 | | --includ | --inclu | --incl | --inc) |
| 906 | ac_prev=includedir ;; |
| 907 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 908 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 909 | includedir=$ac_optarg ;; |
| 910 | |
| 911 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 912 | ac_prev=infodir ;; |
| 913 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 914 | infodir=$ac_optarg ;; |
| 915 | |
| 916 | -libdir | --libdir | --libdi | --libd) |
| 917 | ac_prev=libdir ;; |
| 918 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 919 | libdir=$ac_optarg ;; |
| 920 | |
| 921 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 922 | | --libexe | --libex | --libe) |
| 923 | ac_prev=libexecdir ;; |
| 924 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 925 | | --libexe=* | --libex=* | --libe=*) |
| 926 | libexecdir=$ac_optarg ;; |
| 927 | |
| 928 | -localedir | --localedir | --localedi | --localed | --locale) |
| 929 | ac_prev=localedir ;; |
| 930 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 931 | localedir=$ac_optarg ;; |
| 932 | |
| 933 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 934 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 935 | ac_prev=localstatedir ;; |
| 936 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 937 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 938 | localstatedir=$ac_optarg ;; |
| 939 | |
| 940 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 941 | ac_prev=mandir ;; |
| 942 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 943 | mandir=$ac_optarg ;; |
| 944 | |
| 945 | -nfp | --nfp | --nf) |
| 946 | # Obsolete; use --without-fp. |
| 947 | with_fp=no ;; |
| 948 | |
| 949 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 950 | | --no-cr | --no-c | -n) |
| 951 | no_create=yes ;; |
| 952 | |
| 953 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 954 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 955 | no_recursion=yes ;; |
| 956 | |
| 957 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 958 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 959 | | --oldin | --oldi | --old | --ol | --o) |
| 960 | ac_prev=oldincludedir ;; |
| 961 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 962 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 963 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 964 | oldincludedir=$ac_optarg ;; |
| 965 | |
| 966 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 967 | ac_prev=prefix ;; |
| 968 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 969 | prefix=$ac_optarg ;; |
| 970 | |
| 971 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 972 | | --program-pre | --program-pr | --program-p) |
| 973 | ac_prev=program_prefix ;; |
| 974 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 975 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 976 | program_prefix=$ac_optarg ;; |
| 977 | |
| 978 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 979 | | --program-suf | --program-su | --program-s) |
| 980 | ac_prev=program_suffix ;; |
| 981 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 982 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 983 | program_suffix=$ac_optarg ;; |
| 984 | |
| 985 | -program-transform-name | --program-transform-name \ |
| 986 | | --program-transform-nam | --program-transform-na \ |
| 987 | | --program-transform-n | --program-transform- \ |
| 988 | | --program-transform | --program-transfor \ |
| 989 | | --program-transfo | --program-transf \ |
| 990 | | --program-trans | --program-tran \ |
| 991 | | --progr-tra | --program-tr | --program-t) |
| 992 | ac_prev=program_transform_name ;; |
| 993 | -program-transform-name=* | --program-transform-name=* \ |
| 994 | | --program-transform-nam=* | --program-transform-na=* \ |
| 995 | | --program-transform-n=* | --program-transform-=* \ |
| 996 | | --program-transform=* | --program-transfor=* \ |
| 997 | | --program-transfo=* | --program-transf=* \ |
| 998 | | --program-trans=* | --program-tran=* \ |
| 999 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1000 | program_transform_name=$ac_optarg ;; |
| 1001 | |
| 1002 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1003 | ac_prev=pdfdir ;; |
| 1004 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1005 | pdfdir=$ac_optarg ;; |
| 1006 | |
| 1007 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1008 | ac_prev=psdir ;; |
| 1009 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1010 | psdir=$ac_optarg ;; |
| 1011 | |
| 1012 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1013 | | -silent | --silent | --silen | --sile | --sil) |
| 1014 | silent=yes ;; |
| 1015 | |
| 1016 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1017 | ac_prev=sbindir ;; |
| 1018 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1019 | | --sbi=* | --sb=*) |
| 1020 | sbindir=$ac_optarg ;; |
| 1021 | |
| 1022 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1023 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1024 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1025 | | --sha | --sh) |
| 1026 | ac_prev=sharedstatedir ;; |
| 1027 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1028 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1029 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1030 | | --sha=* | --sh=*) |
| 1031 | sharedstatedir=$ac_optarg ;; |
| 1032 | |
| 1033 | -site | --site | --sit) |
| 1034 | ac_prev=site ;; |
| 1035 | -site=* | --site=* | --sit=*) |
| 1036 | site=$ac_optarg ;; |
| 1037 | |
| 1038 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1039 | ac_prev=srcdir ;; |
| 1040 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1041 | srcdir=$ac_optarg ;; |
| 1042 | |
| 1043 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1044 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1045 | ac_prev=sysconfdir ;; |
| 1046 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1047 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1048 | sysconfdir=$ac_optarg ;; |
| 1049 | |
| 1050 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1051 | ac_prev=target_alias ;; |
| 1052 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1053 | target_alias=$ac_optarg ;; |
| 1054 | |
| 1055 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1056 | verbose=yes ;; |
| 1057 | |
| 1058 | -version | --version | --versio | --versi | --vers | -V) |
| 1059 | ac_init_version=: ;; |
| 1060 | |
| 1061 | -with-* | --with-*) |
| 1062 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1063 | # Reject names that are not valid shell variable names. |
| 1064 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1065 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1066 | { (exit 1); exit 1; }; } |
| 1067 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1068 | eval with_$ac_package=\$ac_optarg ;; |
| 1069 | |
| 1070 | -without-* | --without-*) |
| 1071 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1072 | # Reject names that are not valid shell variable names. |
| 1073 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1074 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1075 | { (exit 1); exit 1; }; } |
| 1076 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1077 | eval with_$ac_package=no ;; |
| 1078 | |
| 1079 | --x) |
| 1080 | # Obsolete; use --with-x. |
| 1081 | with_x=yes ;; |
| 1082 | |
| 1083 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1084 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1085 | ac_prev=x_includes ;; |
| 1086 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1087 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1088 | x_includes=$ac_optarg ;; |
| 1089 | |
| 1090 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1091 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1092 | ac_prev=x_libraries ;; |
| 1093 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1094 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1095 | x_libraries=$ac_optarg ;; |
| 1096 | |
| 1097 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1098 | Try \`$0 --help' for more information." >&2 |
| 1099 | { (exit 1); exit 1; }; } |
| 1100 | ;; |
| 1101 | |
| 1102 | *=*) |
| 1103 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1104 | # Reject names that are not valid shell variable names. |
| 1105 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1106 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1107 | { (exit 1); exit 1; }; } |
| 1108 | eval $ac_envvar=\$ac_optarg |
| 1109 | export $ac_envvar ;; |
| 1110 | |
| 1111 | *) |
| 1112 | # FIXME: should be removed in autoconf 3.0. |
| 1113 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1114 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1115 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1116 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1117 | ;; |
| 1118 | |
| 1119 | esac |
| 1120 | done |
| 1121 | |
| 1122 | if test -n "$ac_prev"; then |
| 1123 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1124 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1125 | { (exit 1); exit 1; }; } |
| 1126 | fi |
| 1127 | |
| 1128 | # Be sure to have absolute directory names. |
| 1129 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1130 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1131 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1132 | libdir localedir mandir |
| 1133 | do |
| 1134 | eval ac_val=\$$ac_var |
| 1135 | case $ac_val in |
| 1136 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1137 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1138 | esac |
| 1139 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1140 | { (exit 1); exit 1; }; } |
| 1141 | done |
| 1142 | |
| 1143 | # There might be people who depend on the old broken behavior: `$host' |
| 1144 | # used to hold the argument of --host etc. |
| 1145 | # FIXME: To remove some day. |
| 1146 | build=$build_alias |
| 1147 | host=$host_alias |
| 1148 | target=$target_alias |
| 1149 | |
| 1150 | # FIXME: To remove some day. |
| 1151 | if test "x$host_alias" != x; then |
| 1152 | if test "x$build_alias" = x; then |
| 1153 | cross_compiling=maybe |
| 1154 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1155 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1156 | elif test "x$build_alias" != "x$host_alias"; then |
| 1157 | cross_compiling=yes |
| 1158 | fi |
| 1159 | fi |
| 1160 | |
| 1161 | ac_tool_prefix= |
| 1162 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1163 | |
| 1164 | test "$silent" = yes && exec 6>/dev/null |
| 1165 | |
| 1166 | |
| 1167 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1168 | ac_ls_di=`ls -di .` && |
| 1169 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1170 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1171 | { (exit 1); exit 1; }; } |
| 1172 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1173 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1174 | { (exit 1); exit 1; }; } |
| 1175 | |
| 1176 | |
| 1177 | # Find the source files, if location was not specified. |
| 1178 | if test -z "$srcdir"; then |
| 1179 | ac_srcdir_defaulted=yes |
| 1180 | # Try the directory containing this script, then the parent directory. |
| 1181 | ac_confdir=`$as_dirname -- "$0" || |
| 1182 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1183 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1184 | X"$0" : 'X\(//\)$' \| \ |
| 1185 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1186 | echo X"$0" | |
| 1187 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1188 | s//\1/ |
| 1189 | q |
| 1190 | } |
| 1191 | /^X\(\/\/\)[^/].*/{ |
| 1192 | s//\1/ |
| 1193 | q |
| 1194 | } |
| 1195 | /^X\(\/\/\)$/{ |
| 1196 | s//\1/ |
| 1197 | q |
| 1198 | } |
| 1199 | /^X\(\/\).*/{ |
| 1200 | s//\1/ |
| 1201 | q |
| 1202 | } |
| 1203 | s/.*/./; q'` |
| 1204 | srcdir=$ac_confdir |
| 1205 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1206 | srcdir=.. |
| 1207 | fi |
| 1208 | else |
| 1209 | ac_srcdir_defaulted=no |
| 1210 | fi |
| 1211 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1212 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1213 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1214 | { (exit 1); exit 1; }; } |
| 1215 | fi |
| 1216 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1217 | ac_abs_confdir=`( |
| 1218 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1219 | { (exit 1); exit 1; }; } |
| 1220 | pwd)` |
| 1221 | # When building in place, set srcdir=. |
| 1222 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1223 | srcdir=. |
| 1224 | fi |
| 1225 | # Remove unnecessary trailing slashes from srcdir. |
| 1226 | # Double slashes in file names in object file debugging info |
| 1227 | # mess up M-x gdb in Emacs. |
| 1228 | case $srcdir in |
| 1229 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1230 | esac |
| 1231 | for ac_var in $ac_precious_vars; do |
| 1232 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1233 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1234 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1235 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1236 | done |
| 1237 | |
| 1238 | # |
| 1239 | # Report the --help message. |
| 1240 | # |
| 1241 | if test "$ac_init_help" = "long"; then |
| 1242 | # Omit some internal or obsolete options to make the list less imposing. |
| 1243 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1244 | cat <<_ACEOF |
| 1245 | \`configure' configures this package to adapt to many kinds of systems. |
| 1246 | |
| 1247 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1248 | |
| 1249 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1250 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1251 | |
| 1252 | Defaults for the options are specified in brackets. |
| 1253 | |
| 1254 | Configuration: |
| 1255 | -h, --help display this help and exit |
| 1256 | --help=short display options specific to this package |
| 1257 | --help=recursive display the short help of all the included packages |
| 1258 | -V, --version display version information and exit |
| 1259 | -q, --quiet, --silent do not print \`checking...' messages |
| 1260 | --cache-file=FILE cache test results in FILE [disabled] |
| 1261 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1262 | -n, --no-create do not create output files |
| 1263 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1264 | |
| 1265 | Installation directories: |
| 1266 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1267 | [$ac_default_prefix] |
| 1268 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1269 | [PREFIX] |
| 1270 | |
| 1271 | By default, \`make install' will install all the files in |
| 1272 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1273 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1274 | for instance \`--prefix=\$HOME'. |
| 1275 | |
| 1276 | For better control, use the options below. |
| 1277 | |
| 1278 | Fine tuning of the installation directories: |
| 1279 | --bindir=DIR user executables [EPREFIX/bin] |
| 1280 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1281 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1282 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1283 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1284 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1285 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1286 | --includedir=DIR C header files [PREFIX/include] |
| 1287 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1288 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1289 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1290 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1291 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1292 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1293 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1294 | --htmldir=DIR html documentation [DOCDIR] |
| 1295 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1296 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1297 | --psdir=DIR ps documentation [DOCDIR] |
| 1298 | _ACEOF |
| 1299 | |
| 1300 | cat <<\_ACEOF |
| 1301 | |
| 1302 | X features: |
| 1303 | --x-includes=DIR X include files are in DIR |
| 1304 | --x-libraries=DIR X library files are in DIR |
| 1305 | |
| 1306 | System types: |
| 1307 | --build=BUILD configure for building on BUILD [guessed] |
| 1308 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1309 | _ACEOF |
| 1310 | fi |
| 1311 | |
| 1312 | if test -n "$ac_init_help"; then |
| 1313 | |
| 1314 | cat <<\_ACEOF |
| 1315 | |
| 1316 | Optional Features: |
| 1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1319 | --enable-vncconfig build the vncconfig utility (assumed by default), |
| 1320 | use --disable-vncconfig to skip building vncconfig |
| 1321 | --disable-nls do not use Native Language Support |
| 1322 | --disable-rpath do not hardcode runtime library paths |
| 1323 | |
| 1324 | Optional Packages: |
| 1325 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1326 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1327 | --with-x use the X Window System |
| 1328 | --with-installed-zlib use the version of zlib which is installed on the |
| 1329 | system instead of the one distributed with VNC |
| 1330 | --with-installed-jpeg use the version of jpeg which is installed on the |
| 1331 | system instead of the one distributed with VNC |
| 1332 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1333 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1334 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1335 | --with-included-gettext use the GNU gettext library included here |
| 1336 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1337 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1338 | |
| 1339 | Some influential environment variables: |
| 1340 | CC C compiler command |
| 1341 | CFLAGS C compiler flags |
| 1342 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1343 | nonstandard directory <lib dir> |
| 1344 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1345 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1346 | you have headers in a nonstandard directory <include dir> |
| 1347 | CXX C++ compiler command |
| 1348 | CXXFLAGS C++ compiler flags |
| 1349 | XMKMF Path to xmkmf, Makefile generator for X Window System |
| 1350 | CXXCPP C++ preprocessor |
| 1351 | |
| 1352 | Use these variables to override the choices made by `configure' or to help |
| 1353 | it to find libraries and programs with nonstandard names/locations. |
| 1354 | |
| 1355 | _ACEOF |
| 1356 | ac_status=$? |
| 1357 | fi |
| 1358 | |
| 1359 | if test "$ac_init_help" = "recursive"; then |
| 1360 | # If there are subdirs, report their specific --help. |
| 1361 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1362 | test -d "$ac_dir" || continue |
| 1363 | ac_builddir=. |
| 1364 | |
| 1365 | case "$ac_dir" in |
| 1366 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1367 | *) |
| 1368 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1369 | # A ".." for each directory in $ac_dir_suffix. |
| 1370 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1371 | case $ac_top_builddir_sub in |
| 1372 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1373 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1374 | esac ;; |
| 1375 | esac |
| 1376 | ac_abs_top_builddir=$ac_pwd |
| 1377 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1378 | # for backward compatibility: |
| 1379 | ac_top_builddir=$ac_top_build_prefix |
| 1380 | |
| 1381 | case $srcdir in |
| 1382 | .) # We are building in place. |
| 1383 | ac_srcdir=. |
| 1384 | ac_top_srcdir=$ac_top_builddir_sub |
| 1385 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1386 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1387 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1388 | ac_top_srcdir=$srcdir |
| 1389 | ac_abs_top_srcdir=$srcdir ;; |
| 1390 | *) # Relative name. |
| 1391 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1392 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1393 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1394 | esac |
| 1395 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1396 | |
| 1397 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1398 | # Check for guested configure. |
| 1399 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1400 | echo && |
| 1401 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1402 | elif test -f "$ac_srcdir/configure"; then |
| 1403 | echo && |
| 1404 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1405 | else |
| 1406 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1407 | fi || ac_status=$? |
| 1408 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1409 | done |
| 1410 | fi |
| 1411 | |
| 1412 | test -n "$ac_init_help" && exit $ac_status |
| 1413 | if $ac_init_version; then |
| 1414 | cat <<\_ACEOF |
| 1415 | configure |
| 1416 | generated by GNU Autoconf 2.61 |
| 1417 | |
| 1418 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1419 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| 1420 | This configure script is free software; the Free Software Foundation |
| 1421 | gives unlimited permission to copy, distribute and modify it. |
| 1422 | _ACEOF |
| 1423 | exit |
| 1424 | fi |
| 1425 | cat >config.log <<_ACEOF |
| 1426 | This file contains any messages produced by compilers while |
| 1427 | running configure, to aid debugging if configure makes a mistake. |
| 1428 | |
| 1429 | It was created by $as_me, which was |
| 1430 | generated by GNU Autoconf 2.61. Invocation command line was |
| 1431 | |
| 1432 | $ $0 $@ |
| 1433 | |
| 1434 | _ACEOF |
| 1435 | exec 5>>config.log |
| 1436 | { |
| 1437 | cat <<_ASUNAME |
| 1438 | ## --------- ## |
| 1439 | ## Platform. ## |
| 1440 | ## --------- ## |
| 1441 | |
| 1442 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1443 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1444 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1445 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1446 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1447 | |
| 1448 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1449 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1450 | |
| 1451 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1452 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1453 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1454 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1455 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1456 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1457 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1458 | |
| 1459 | _ASUNAME |
| 1460 | |
| 1461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1462 | for as_dir in $PATH |
| 1463 | do |
| 1464 | IFS=$as_save_IFS |
| 1465 | test -z "$as_dir" && as_dir=. |
| 1466 | echo "PATH: $as_dir" |
| 1467 | done |
| 1468 | IFS=$as_save_IFS |
| 1469 | |
| 1470 | } >&5 |
| 1471 | |
| 1472 | cat >&5 <<_ACEOF |
| 1473 | |
| 1474 | |
| 1475 | ## ----------- ## |
| 1476 | ## Core tests. ## |
| 1477 | ## ----------- ## |
| 1478 | |
| 1479 | _ACEOF |
| 1480 | |
| 1481 | |
| 1482 | # Keep a trace of the command line. |
| 1483 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1484 | # Strip out --silent because we don't want to record it for future runs. |
| 1485 | # Also quote any args containing shell meta-characters. |
| 1486 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1487 | ac_configure_args= |
| 1488 | ac_configure_args0= |
| 1489 | ac_configure_args1= |
| 1490 | ac_must_keep_next=false |
| 1491 | for ac_pass in 1 2 |
| 1492 | do |
| 1493 | for ac_arg |
| 1494 | do |
| 1495 | case $ac_arg in |
| 1496 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1497 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1498 | | -silent | --silent | --silen | --sile | --sil) |
| 1499 | continue ;; |
| 1500 | *\'*) |
| 1501 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1502 | esac |
| 1503 | case $ac_pass in |
| 1504 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1505 | 2) |
| 1506 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1507 | if test $ac_must_keep_next = true; then |
| 1508 | ac_must_keep_next=false # Got value, back to normal. |
| 1509 | else |
| 1510 | case $ac_arg in |
| 1511 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1512 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1513 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1514 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1515 | case "$ac_configure_args0 " in |
| 1516 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1517 | esac |
| 1518 | ;; |
| 1519 | -* ) ac_must_keep_next=true ;; |
| 1520 | esac |
| 1521 | fi |
| 1522 | ac_configure_args="$ac_configure_args '$ac_arg'" |
| 1523 | ;; |
| 1524 | esac |
| 1525 | done |
| 1526 | done |
| 1527 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1528 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1529 | |
| 1530 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1531 | # config.log. We remove comments because anyway the quotes in there |
| 1532 | # would cause problems or look ugly. |
| 1533 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1534 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1535 | trap 'exit_status=$? |
| 1536 | # Save into config.log some information that might help in debugging. |
| 1537 | { |
| 1538 | echo |
| 1539 | |
| 1540 | cat <<\_ASBOX |
| 1541 | ## ---------------- ## |
| 1542 | ## Cache variables. ## |
| 1543 | ## ---------------- ## |
| 1544 | _ASBOX |
| 1545 | echo |
| 1546 | # The following way of writing the cache mishandles newlines in values, |
| 1547 | ( |
| 1548 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1549 | eval ac_val=\$$ac_var |
| 1550 | case $ac_val in #( |
| 1551 | *${as_nl}*) |
| 1552 | case $ac_var in #( |
| 1553 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1554 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1555 | esac |
| 1556 | case $ac_var in #( |
| 1557 | _ | IFS | as_nl) ;; #( |
| 1558 | *) $as_unset $ac_var ;; |
| 1559 | esac ;; |
| 1560 | esac |
| 1561 | done |
| 1562 | (set) 2>&1 | |
| 1563 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1564 | *${as_nl}ac_space=\ *) |
| 1565 | sed -n \ |
| 1566 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1567 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1568 | ;; #( |
| 1569 | *) |
| 1570 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1571 | ;; |
| 1572 | esac | |
| 1573 | sort |
| 1574 | ) |
| 1575 | echo |
| 1576 | |
| 1577 | cat <<\_ASBOX |
| 1578 | ## ----------------- ## |
| 1579 | ## Output variables. ## |
| 1580 | ## ----------------- ## |
| 1581 | _ASBOX |
| 1582 | echo |
| 1583 | for ac_var in $ac_subst_vars |
| 1584 | do |
| 1585 | eval ac_val=\$$ac_var |
| 1586 | case $ac_val in |
| 1587 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1588 | esac |
| 1589 | echo "$ac_var='\''$ac_val'\''" |
| 1590 | done | sort |
| 1591 | echo |
| 1592 | |
| 1593 | if test -n "$ac_subst_files"; then |
| 1594 | cat <<\_ASBOX |
| 1595 | ## ------------------- ## |
| 1596 | ## File substitutions. ## |
| 1597 | ## ------------------- ## |
| 1598 | _ASBOX |
| 1599 | echo |
| 1600 | for ac_var in $ac_subst_files |
| 1601 | do |
| 1602 | eval ac_val=\$$ac_var |
| 1603 | case $ac_val in |
| 1604 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1605 | esac |
| 1606 | echo "$ac_var='\''$ac_val'\''" |
| 1607 | done | sort |
| 1608 | echo |
| 1609 | fi |
| 1610 | |
| 1611 | if test -s confdefs.h; then |
| 1612 | cat <<\_ASBOX |
| 1613 | ## ----------- ## |
| 1614 | ## confdefs.h. ## |
| 1615 | ## ----------- ## |
| 1616 | _ASBOX |
| 1617 | echo |
| 1618 | cat confdefs.h |
| 1619 | echo |
| 1620 | fi |
| 1621 | test "$ac_signal" != 0 && |
| 1622 | echo "$as_me: caught signal $ac_signal" |
| 1623 | echo "$as_me: exit $exit_status" |
| 1624 | } >&5 |
| 1625 | rm -f core *.core core.conftest.* && |
| 1626 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1627 | exit $exit_status |
| 1628 | ' 0 |
| 1629 | for ac_signal in 1 2 13 15; do |
| 1630 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1631 | done |
| 1632 | ac_signal=0 |
| 1633 | |
| 1634 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1635 | rm -f -r conftest* confdefs.h |
| 1636 | |
| 1637 | # Predefined preprocessor variables. |
| 1638 | |
| 1639 | cat >>confdefs.h <<_ACEOF |
| 1640 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1641 | _ACEOF |
| 1642 | |
| 1643 | |
| 1644 | cat >>confdefs.h <<_ACEOF |
| 1645 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1646 | _ACEOF |
| 1647 | |
| 1648 | |
| 1649 | cat >>confdefs.h <<_ACEOF |
| 1650 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1651 | _ACEOF |
| 1652 | |
| 1653 | |
| 1654 | cat >>confdefs.h <<_ACEOF |
| 1655 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1656 | _ACEOF |
| 1657 | |
| 1658 | |
| 1659 | cat >>confdefs.h <<_ACEOF |
| 1660 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1661 | _ACEOF |
| 1662 | |
| 1663 | |
| 1664 | # Let the site file select an alternate cache file if it wants to. |
| 1665 | # Prefer explicitly selected file to automatically selected ones. |
| 1666 | if test -n "$CONFIG_SITE"; then |
| 1667 | set x "$CONFIG_SITE" |
| 1668 | elif test "x$prefix" != xNONE; then |
| 1669 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1670 | else |
| 1671 | set x "$ac_default_prefix/share/config.site" \ |
| 1672 | "$ac_default_prefix/etc/config.site" |
| 1673 | fi |
| 1674 | shift |
| 1675 | for ac_site_file |
| 1676 | do |
| 1677 | if test -r "$ac_site_file"; then |
| 1678 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1679 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1680 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1681 | . "$ac_site_file" |
| 1682 | fi |
| 1683 | done |
| 1684 | |
| 1685 | if test -r "$cache_file"; then |
| 1686 | # Some versions of bash will fail to source /dev/null (special |
| 1687 | # files actually), so we avoid doing that. |
| 1688 | if test -f "$cache_file"; then |
| 1689 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1690 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1691 | case $cache_file in |
| 1692 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1693 | *) . "./$cache_file";; |
| 1694 | esac |
| 1695 | fi |
| 1696 | else |
| 1697 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1698 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1699 | >$cache_file |
| 1700 | fi |
| 1701 | |
| 1702 | # Check that the precious variables saved in the cache have kept the same |
| 1703 | # value. |
| 1704 | ac_cache_corrupted=false |
| 1705 | for ac_var in $ac_precious_vars; do |
| 1706 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1707 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1708 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1709 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 1710 | case $ac_old_set,$ac_new_set in |
| 1711 | set,) |
| 1712 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1713 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1714 | ac_cache_corrupted=: ;; |
| 1715 | ,set) |
| 1716 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1717 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1718 | ac_cache_corrupted=: ;; |
| 1719 | ,);; |
| 1720 | *) |
| 1721 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1722 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1723 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1724 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1725 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1726 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1727 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1728 | ac_cache_corrupted=: |
| 1729 | fi;; |
| 1730 | esac |
| 1731 | # Pass precious variables to config.status. |
| 1732 | if test "$ac_new_set" = set; then |
| 1733 | case $ac_new_val in |
| 1734 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1735 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1736 | esac |
| 1737 | case " $ac_configure_args " in |
| 1738 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1739 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1740 | esac |
| 1741 | fi |
| 1742 | done |
| 1743 | if $ac_cache_corrupted; then |
| 1744 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1745 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1746 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1747 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1748 | { (exit 1); exit 1; }; } |
| 1749 | fi |
| 1750 | |
| 1751 | |
| 1752 | |
| 1753 | |
| 1754 | |
| 1755 | |
| 1756 | |
| 1757 | |
| 1758 | |
| 1759 | |
| 1760 | |
| 1761 | |
| 1762 | |
| 1763 | |
| 1764 | |
| 1765 | |
| 1766 | |
| 1767 | ac_ext=c |
| 1768 | ac_cpp='$CPP $CPPFLAGS' |
| 1769 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1770 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1771 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1772 | |
| 1773 | |
| 1774 | |
| 1775 | PACKAGE=tightvnc |
| 1776 | VERSION=1.5.0 |
| 1777 | cat >>confdefs.h <<_ACEOF |
| 1778 | #define PACKAGE "$PACKAGE" |
| 1779 | _ACEOF |
| 1780 | |
| 1781 | cat >>confdefs.h <<_ACEOF |
| 1782 | #define VERSION "$VERSION" |
| 1783 | _ACEOF |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | echo "configuring common..." |
| 1789 | (cd ../common; ./configure $*) |
| 1790 | echo "...done configuring common" |
| 1791 | |
| 1792 | ac_cv_prog_cc_g=no |
| 1793 | ac_cv_prog_cxx_g=no |
| 1794 | |
| 1795 | ac_ext=c |
| 1796 | ac_cpp='$CPP $CPPFLAGS' |
| 1797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1800 | if test -n "$ac_tool_prefix"; then |
| 1801 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1802 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1803 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1804 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1805 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1807 | else |
| 1808 | if test -n "$CC"; then |
| 1809 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1810 | else |
| 1811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1812 | for as_dir in $PATH |
| 1813 | do |
| 1814 | IFS=$as_save_IFS |
| 1815 | test -z "$as_dir" && as_dir=. |
| 1816 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 1818 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1820 | break 2 |
| 1821 | fi |
| 1822 | done |
| 1823 | done |
| 1824 | IFS=$as_save_IFS |
| 1825 | |
| 1826 | fi |
| 1827 | fi |
| 1828 | CC=$ac_cv_prog_CC |
| 1829 | if test -n "$CC"; then |
| 1830 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 1831 | echo "${ECHO_T}$CC" >&6; } |
| 1832 | else |
| 1833 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1834 | echo "${ECHO_T}no" >&6; } |
| 1835 | fi |
| 1836 | |
| 1837 | |
| 1838 | fi |
| 1839 | if test -z "$ac_cv_prog_CC"; then |
| 1840 | ac_ct_CC=$CC |
| 1841 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1842 | set dummy gcc; ac_word=$2 |
| 1843 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1845 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1847 | else |
| 1848 | if test -n "$ac_ct_CC"; then |
| 1849 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1850 | else |
| 1851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1852 | for as_dir in $PATH |
| 1853 | do |
| 1854 | IFS=$as_save_IFS |
| 1855 | test -z "$as_dir" && as_dir=. |
| 1856 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 1858 | ac_cv_prog_ac_ct_CC="gcc" |
| 1859 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1860 | break 2 |
| 1861 | fi |
| 1862 | done |
| 1863 | done |
| 1864 | IFS=$as_save_IFS |
| 1865 | |
| 1866 | fi |
| 1867 | fi |
| 1868 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1869 | if test -n "$ac_ct_CC"; then |
| 1870 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1871 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 1872 | else |
| 1873 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1874 | echo "${ECHO_T}no" >&6; } |
| 1875 | fi |
| 1876 | |
| 1877 | if test "x$ac_ct_CC" = x; then |
| 1878 | CC="" |
| 1879 | else |
| 1880 | case $cross_compiling:$ac_tool_warned in |
| 1881 | yes:) |
| 1882 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 1883 | whose name does not start with the host triplet. If you think this |
| 1884 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 1885 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 1886 | whose name does not start with the host triplet. If you think this |
| 1887 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 1888 | ac_tool_warned=yes ;; |
| 1889 | esac |
| 1890 | CC=$ac_ct_CC |
| 1891 | fi |
| 1892 | else |
| 1893 | CC="$ac_cv_prog_CC" |
| 1894 | fi |
| 1895 | |
| 1896 | if test -z "$CC"; then |
| 1897 | if test -n "$ac_tool_prefix"; then |
| 1898 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1899 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1900 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1902 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1904 | else |
| 1905 | if test -n "$CC"; then |
| 1906 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1907 | else |
| 1908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1909 | for as_dir in $PATH |
| 1910 | do |
| 1911 | IFS=$as_save_IFS |
| 1912 | test -z "$as_dir" && as_dir=. |
| 1913 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 1915 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1917 | break 2 |
| 1918 | fi |
| 1919 | done |
| 1920 | done |
| 1921 | IFS=$as_save_IFS |
| 1922 | |
| 1923 | fi |
| 1924 | fi |
| 1925 | CC=$ac_cv_prog_CC |
| 1926 | if test -n "$CC"; then |
| 1927 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 1928 | echo "${ECHO_T}$CC" >&6; } |
| 1929 | else |
| 1930 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1931 | echo "${ECHO_T}no" >&6; } |
| 1932 | fi |
| 1933 | |
| 1934 | |
| 1935 | fi |
| 1936 | fi |
| 1937 | if test -z "$CC"; then |
| 1938 | # Extract the first word of "cc", so it can be a program name with args. |
| 1939 | set dummy cc; ac_word=$2 |
| 1940 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1942 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1944 | else |
| 1945 | if test -n "$CC"; then |
| 1946 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1947 | else |
| 1948 | ac_prog_rejected=no |
| 1949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1950 | for as_dir in $PATH |
| 1951 | do |
| 1952 | IFS=$as_save_IFS |
| 1953 | test -z "$as_dir" && as_dir=. |
| 1954 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1955 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 1956 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1957 | ac_prog_rejected=yes |
| 1958 | continue |
| 1959 | fi |
| 1960 | ac_cv_prog_CC="cc" |
| 1961 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1962 | break 2 |
| 1963 | fi |
| 1964 | done |
| 1965 | done |
| 1966 | IFS=$as_save_IFS |
| 1967 | |
| 1968 | if test $ac_prog_rejected = yes; then |
| 1969 | # We found a bogon in the path, so make sure we never use it. |
| 1970 | set dummy $ac_cv_prog_CC |
| 1971 | shift |
| 1972 | if test $# != 0; then |
| 1973 | # We chose a different compiler from the bogus one. |
| 1974 | # However, it has the same basename, so the bogon will be chosen |
| 1975 | # first if we set CC to just the basename; use the full file name. |
| 1976 | shift |
| 1977 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1978 | fi |
| 1979 | fi |
| 1980 | fi |
| 1981 | fi |
| 1982 | CC=$ac_cv_prog_CC |
| 1983 | if test -n "$CC"; then |
| 1984 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 1985 | echo "${ECHO_T}$CC" >&6; } |
| 1986 | else |
| 1987 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1988 | echo "${ECHO_T}no" >&6; } |
| 1989 | fi |
| 1990 | |
| 1991 | |
| 1992 | fi |
| 1993 | if test -z "$CC"; then |
| 1994 | if test -n "$ac_tool_prefix"; then |
| 1995 | for ac_prog in cl.exe |
| 1996 | do |
| 1997 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1998 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1999 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2001 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2003 | else |
| 2004 | if test -n "$CC"; then |
| 2005 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2006 | else |
| 2007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2008 | for as_dir in $PATH |
| 2009 | do |
| 2010 | IFS=$as_save_IFS |
| 2011 | test -z "$as_dir" && as_dir=. |
| 2012 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2014 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2016 | break 2 |
| 2017 | fi |
| 2018 | done |
| 2019 | done |
| 2020 | IFS=$as_save_IFS |
| 2021 | |
| 2022 | fi |
| 2023 | fi |
| 2024 | CC=$ac_cv_prog_CC |
| 2025 | if test -n "$CC"; then |
| 2026 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2027 | echo "${ECHO_T}$CC" >&6; } |
| 2028 | else |
| 2029 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2030 | echo "${ECHO_T}no" >&6; } |
| 2031 | fi |
| 2032 | |
| 2033 | |
| 2034 | test -n "$CC" && break |
| 2035 | done |
| 2036 | fi |
| 2037 | if test -z "$CC"; then |
| 2038 | ac_ct_CC=$CC |
| 2039 | for ac_prog in cl.exe |
| 2040 | do |
| 2041 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2042 | set dummy $ac_prog; ac_word=$2 |
| 2043 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2045 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2047 | else |
| 2048 | if test -n "$ac_ct_CC"; then |
| 2049 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2050 | else |
| 2051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2052 | for as_dir in $PATH |
| 2053 | do |
| 2054 | IFS=$as_save_IFS |
| 2055 | test -z "$as_dir" && as_dir=. |
| 2056 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2058 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2060 | break 2 |
| 2061 | fi |
| 2062 | done |
| 2063 | done |
| 2064 | IFS=$as_save_IFS |
| 2065 | |
| 2066 | fi |
| 2067 | fi |
| 2068 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2069 | if test -n "$ac_ct_CC"; then |
| 2070 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2071 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 2072 | else |
| 2073 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2074 | echo "${ECHO_T}no" >&6; } |
| 2075 | fi |
| 2076 | |
| 2077 | |
| 2078 | test -n "$ac_ct_CC" && break |
| 2079 | done |
| 2080 | |
| 2081 | if test "x$ac_ct_CC" = x; then |
| 2082 | CC="" |
| 2083 | else |
| 2084 | case $cross_compiling:$ac_tool_warned in |
| 2085 | yes:) |
| 2086 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2087 | whose name does not start with the host triplet. If you think this |
| 2088 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2089 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2090 | whose name does not start with the host triplet. If you think this |
| 2091 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2092 | ac_tool_warned=yes ;; |
| 2093 | esac |
| 2094 | CC=$ac_ct_CC |
| 2095 | fi |
| 2096 | fi |
| 2097 | |
| 2098 | fi |
| 2099 | |
| 2100 | |
| 2101 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2102 | See \`config.log' for more details." >&5 |
| 2103 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2104 | See \`config.log' for more details." >&2;} |
| 2105 | { (exit 1); exit 1; }; } |
| 2106 | |
| 2107 | # Provide some information about the compiler. |
| 2108 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2109 | ac_compiler=`set X $ac_compile; echo $2` |
| 2110 | { (ac_try="$ac_compiler --version >&5" |
| 2111 | case "(($ac_try" in |
| 2112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2113 | *) ac_try_echo=$ac_try;; |
| 2114 | esac |
| 2115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2116 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2117 | ac_status=$? |
| 2118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2119 | (exit $ac_status); } |
| 2120 | { (ac_try="$ac_compiler -v >&5" |
| 2121 | case "(($ac_try" in |
| 2122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2123 | *) ac_try_echo=$ac_try;; |
| 2124 | esac |
| 2125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2126 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2127 | ac_status=$? |
| 2128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2129 | (exit $ac_status); } |
| 2130 | { (ac_try="$ac_compiler -V >&5" |
| 2131 | case "(($ac_try" in |
| 2132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2133 | *) ac_try_echo=$ac_try;; |
| 2134 | esac |
| 2135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2136 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2137 | ac_status=$? |
| 2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2139 | (exit $ac_status); } |
| 2140 | |
| 2141 | cat >conftest.$ac_ext <<_ACEOF |
| 2142 | /* confdefs.h. */ |
| 2143 | _ACEOF |
| 2144 | cat confdefs.h >>conftest.$ac_ext |
| 2145 | cat >>conftest.$ac_ext <<_ACEOF |
| 2146 | /* end confdefs.h. */ |
| 2147 | |
| 2148 | int |
| 2149 | main () |
| 2150 | { |
| 2151 | |
| 2152 | ; |
| 2153 | return 0; |
| 2154 | } |
| 2155 | _ACEOF |
| 2156 | ac_clean_files_save=$ac_clean_files |
| 2157 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2158 | # Try to create an executable without -o first, disregard a.out. |
| 2159 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2160 | # of exeext. |
| 2161 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2162 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2163 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2164 | # |
| 2165 | # List of possible output files, starting from the most likely. |
| 2166 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2167 | # only as a last resort. b.out is created by i960 compilers. |
| 2168 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2169 | # |
| 2170 | # The IRIX 6 linker writes into existing files which may not be |
| 2171 | # executable, retaining their permissions. Remove them first so a |
| 2172 | # subsequent execution test works. |
| 2173 | ac_rmfiles= |
| 2174 | for ac_file in $ac_files |
| 2175 | do |
| 2176 | case $ac_file in |
| 2177 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2178 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2179 | esac |
| 2180 | done |
| 2181 | rm -f $ac_rmfiles |
| 2182 | |
| 2183 | if { (ac_try="$ac_link_default" |
| 2184 | case "(($ac_try" in |
| 2185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2186 | *) ac_try_echo=$ac_try;; |
| 2187 | esac |
| 2188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2189 | (eval "$ac_link_default") 2>&5 |
| 2190 | ac_status=$? |
| 2191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2192 | (exit $ac_status); }; then |
| 2193 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2194 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2195 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2196 | # so that the user can short-circuit this test for compilers unknown to |
| 2197 | # Autoconf. |
| 2198 | for ac_file in $ac_files '' |
| 2199 | do |
| 2200 | test -f "$ac_file" || continue |
| 2201 | case $ac_file in |
| 2202 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
| 2203 | ;; |
| 2204 | [ab].out ) |
| 2205 | # We found the default executable, but exeext='' is most |
| 2206 | # certainly right. |
| 2207 | break;; |
| 2208 | *.* ) |
| 2209 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2210 | then :; else |
| 2211 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2212 | fi |
| 2213 | # We set ac_cv_exeext here because the later test for it is not |
| 2214 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2215 | # argument, so we may need to know it at that point already. |
| 2216 | # Even if this section looks crufty: it has the advantage of |
| 2217 | # actually working. |
| 2218 | break;; |
| 2219 | * ) |
| 2220 | break;; |
| 2221 | esac |
| 2222 | done |
| 2223 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2224 | |
| 2225 | else |
| 2226 | ac_file='' |
| 2227 | fi |
| 2228 | |
| 2229 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2230 | echo "${ECHO_T}$ac_file" >&6; } |
| 2231 | if test -z "$ac_file"; then |
| 2232 | echo "$as_me: failed program was:" >&5 |
| 2233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2234 | |
| 2235 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2236 | See \`config.log' for more details." >&5 |
| 2237 | echo "$as_me: error: C compiler cannot create executables |
| 2238 | See \`config.log' for more details." >&2;} |
| 2239 | { (exit 77); exit 77; }; } |
| 2240 | fi |
| 2241 | |
| 2242 | ac_exeext=$ac_cv_exeext |
| 2243 | |
| 2244 | # Check that the compiler produces executables we can run. If not, either |
| 2245 | # the compiler is broken, or we cross compile. |
| 2246 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2247 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2248 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2249 | # If not cross compiling, check that we can run a simple program. |
| 2250 | if test "$cross_compiling" != yes; then |
| 2251 | if { ac_try='./$ac_file' |
| 2252 | { (case "(($ac_try" in |
| 2253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2254 | *) ac_try_echo=$ac_try;; |
| 2255 | esac |
| 2256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2257 | (eval "$ac_try") 2>&5 |
| 2258 | ac_status=$? |
| 2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2260 | (exit $ac_status); }; }; then |
| 2261 | cross_compiling=no |
| 2262 | else |
| 2263 | if test "$cross_compiling" = maybe; then |
| 2264 | cross_compiling=yes |
| 2265 | else |
| 2266 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2267 | If you meant to cross compile, use \`--host'. |
| 2268 | See \`config.log' for more details." >&5 |
| 2269 | echo "$as_me: error: cannot run C compiled programs. |
| 2270 | If you meant to cross compile, use \`--host'. |
| 2271 | See \`config.log' for more details." >&2;} |
| 2272 | { (exit 1); exit 1; }; } |
| 2273 | fi |
| 2274 | fi |
| 2275 | fi |
| 2276 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2277 | echo "${ECHO_T}yes" >&6; } |
| 2278 | |
| 2279 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2280 | ac_clean_files=$ac_clean_files_save |
| 2281 | # Check that the compiler produces executables we can run. If not, either |
| 2282 | # the compiler is broken, or we cross compile. |
| 2283 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2284 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2285 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2286 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2287 | |
| 2288 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2289 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2290 | if { (ac_try="$ac_link" |
| 2291 | case "(($ac_try" in |
| 2292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2293 | *) ac_try_echo=$ac_try;; |
| 2294 | esac |
| 2295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2296 | (eval "$ac_link") 2>&5 |
| 2297 | ac_status=$? |
| 2298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2299 | (exit $ac_status); }; then |
| 2300 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2301 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2302 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2303 | # `rm'. |
| 2304 | for ac_file in conftest.exe conftest conftest.*; do |
| 2305 | test -f "$ac_file" || continue |
| 2306 | case $ac_file in |
| 2307 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2308 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2309 | break;; |
| 2310 | * ) break;; |
| 2311 | esac |
| 2312 | done |
| 2313 | else |
| 2314 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2315 | See \`config.log' for more details." >&5 |
| 2316 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2317 | See \`config.log' for more details." >&2;} |
| 2318 | { (exit 1); exit 1; }; } |
| 2319 | fi |
| 2320 | |
| 2321 | rm -f conftest$ac_cv_exeext |
| 2322 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2323 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
| 2324 | |
| 2325 | rm -f conftest.$ac_ext |
| 2326 | EXEEXT=$ac_cv_exeext |
| 2327 | ac_exeext=$EXEEXT |
| 2328 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2329 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2330 | if test "${ac_cv_objext+set}" = set; then |
| 2331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2332 | else |
| 2333 | cat >conftest.$ac_ext <<_ACEOF |
| 2334 | /* confdefs.h. */ |
| 2335 | _ACEOF |
| 2336 | cat confdefs.h >>conftest.$ac_ext |
| 2337 | cat >>conftest.$ac_ext <<_ACEOF |
| 2338 | /* end confdefs.h. */ |
| 2339 | |
| 2340 | int |
| 2341 | main () |
| 2342 | { |
| 2343 | |
| 2344 | ; |
| 2345 | return 0; |
| 2346 | } |
| 2347 | _ACEOF |
| 2348 | rm -f conftest.o conftest.obj |
| 2349 | if { (ac_try="$ac_compile" |
| 2350 | case "(($ac_try" in |
| 2351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2352 | *) ac_try_echo=$ac_try;; |
| 2353 | esac |
| 2354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2355 | (eval "$ac_compile") 2>&5 |
| 2356 | ac_status=$? |
| 2357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2358 | (exit $ac_status); }; then |
| 2359 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2360 | test -f "$ac_file" || continue; |
| 2361 | case $ac_file in |
| 2362 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
| 2363 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2364 | break;; |
| 2365 | esac |
| 2366 | done |
| 2367 | else |
| 2368 | echo "$as_me: failed program was:" >&5 |
| 2369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2370 | |
| 2371 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2372 | See \`config.log' for more details." >&5 |
| 2373 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2374 | See \`config.log' for more details." >&2;} |
| 2375 | { (exit 1); exit 1; }; } |
| 2376 | fi |
| 2377 | |
| 2378 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2379 | fi |
| 2380 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2381 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
| 2382 | OBJEXT=$ac_cv_objext |
| 2383 | ac_objext=$OBJEXT |
| 2384 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2385 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2386 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2388 | else |
| 2389 | cat >conftest.$ac_ext <<_ACEOF |
| 2390 | /* confdefs.h. */ |
| 2391 | _ACEOF |
| 2392 | cat confdefs.h >>conftest.$ac_ext |
| 2393 | cat >>conftest.$ac_ext <<_ACEOF |
| 2394 | /* end confdefs.h. */ |
| 2395 | |
| 2396 | int |
| 2397 | main () |
| 2398 | { |
| 2399 | #ifndef __GNUC__ |
| 2400 | choke me |
| 2401 | #endif |
| 2402 | |
| 2403 | ; |
| 2404 | return 0; |
| 2405 | } |
| 2406 | _ACEOF |
| 2407 | rm -f conftest.$ac_objext |
| 2408 | if { (ac_try="$ac_compile" |
| 2409 | case "(($ac_try" in |
| 2410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2411 | *) ac_try_echo=$ac_try;; |
| 2412 | esac |
| 2413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2414 | (eval "$ac_compile") 2>conftest.er1 |
| 2415 | ac_status=$? |
| 2416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2417 | rm -f conftest.er1 |
| 2418 | cat conftest.err >&5 |
| 2419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2420 | (exit $ac_status); } && { |
| 2421 | test -z "$ac_c_werror_flag" || |
| 2422 | test ! -s conftest.err |
| 2423 | } && test -s conftest.$ac_objext; then |
| 2424 | ac_compiler_gnu=yes |
| 2425 | else |
| 2426 | echo "$as_me: failed program was:" >&5 |
| 2427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2428 | |
| 2429 | ac_compiler_gnu=no |
| 2430 | fi |
| 2431 | |
| 2432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2433 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2434 | |
| 2435 | fi |
| 2436 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2437 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2438 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2439 | ac_test_CFLAGS=${CFLAGS+set} |
| 2440 | ac_save_CFLAGS=$CFLAGS |
| 2441 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2442 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 2443 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2445 | else |
| 2446 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2447 | ac_c_werror_flag=yes |
| 2448 | ac_cv_prog_cc_g=no |
| 2449 | CFLAGS="-g" |
| 2450 | cat >conftest.$ac_ext <<_ACEOF |
| 2451 | /* confdefs.h. */ |
| 2452 | _ACEOF |
| 2453 | cat confdefs.h >>conftest.$ac_ext |
| 2454 | cat >>conftest.$ac_ext <<_ACEOF |
| 2455 | /* end confdefs.h. */ |
| 2456 | |
| 2457 | int |
| 2458 | main () |
| 2459 | { |
| 2460 | |
| 2461 | ; |
| 2462 | return 0; |
| 2463 | } |
| 2464 | _ACEOF |
| 2465 | rm -f conftest.$ac_objext |
| 2466 | if { (ac_try="$ac_compile" |
| 2467 | case "(($ac_try" in |
| 2468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2469 | *) ac_try_echo=$ac_try;; |
| 2470 | esac |
| 2471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2472 | (eval "$ac_compile") 2>conftest.er1 |
| 2473 | ac_status=$? |
| 2474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2475 | rm -f conftest.er1 |
| 2476 | cat conftest.err >&5 |
| 2477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2478 | (exit $ac_status); } && { |
| 2479 | test -z "$ac_c_werror_flag" || |
| 2480 | test ! -s conftest.err |
| 2481 | } && test -s conftest.$ac_objext; then |
| 2482 | ac_cv_prog_cc_g=yes |
| 2483 | else |
| 2484 | echo "$as_me: failed program was:" >&5 |
| 2485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2486 | |
| 2487 | CFLAGS="" |
| 2488 | cat >conftest.$ac_ext <<_ACEOF |
| 2489 | /* confdefs.h. */ |
| 2490 | _ACEOF |
| 2491 | cat confdefs.h >>conftest.$ac_ext |
| 2492 | cat >>conftest.$ac_ext <<_ACEOF |
| 2493 | /* end confdefs.h. */ |
| 2494 | |
| 2495 | int |
| 2496 | main () |
| 2497 | { |
| 2498 | |
| 2499 | ; |
| 2500 | return 0; |
| 2501 | } |
| 2502 | _ACEOF |
| 2503 | rm -f conftest.$ac_objext |
| 2504 | if { (ac_try="$ac_compile" |
| 2505 | case "(($ac_try" in |
| 2506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2507 | *) ac_try_echo=$ac_try;; |
| 2508 | esac |
| 2509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2510 | (eval "$ac_compile") 2>conftest.er1 |
| 2511 | ac_status=$? |
| 2512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2513 | rm -f conftest.er1 |
| 2514 | cat conftest.err >&5 |
| 2515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2516 | (exit $ac_status); } && { |
| 2517 | test -z "$ac_c_werror_flag" || |
| 2518 | test ! -s conftest.err |
| 2519 | } && test -s conftest.$ac_objext; then |
| 2520 | : |
| 2521 | else |
| 2522 | echo "$as_me: failed program was:" >&5 |
| 2523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2524 | |
| 2525 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2526 | CFLAGS="-g" |
| 2527 | cat >conftest.$ac_ext <<_ACEOF |
| 2528 | /* confdefs.h. */ |
| 2529 | _ACEOF |
| 2530 | cat confdefs.h >>conftest.$ac_ext |
| 2531 | cat >>conftest.$ac_ext <<_ACEOF |
| 2532 | /* end confdefs.h. */ |
| 2533 | |
| 2534 | int |
| 2535 | main () |
| 2536 | { |
| 2537 | |
| 2538 | ; |
| 2539 | return 0; |
| 2540 | } |
| 2541 | _ACEOF |
| 2542 | rm -f conftest.$ac_objext |
| 2543 | if { (ac_try="$ac_compile" |
| 2544 | case "(($ac_try" in |
| 2545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2546 | *) ac_try_echo=$ac_try;; |
| 2547 | esac |
| 2548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2549 | (eval "$ac_compile") 2>conftest.er1 |
| 2550 | ac_status=$? |
| 2551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2552 | rm -f conftest.er1 |
| 2553 | cat conftest.err >&5 |
| 2554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2555 | (exit $ac_status); } && { |
| 2556 | test -z "$ac_c_werror_flag" || |
| 2557 | test ! -s conftest.err |
| 2558 | } && test -s conftest.$ac_objext; then |
| 2559 | ac_cv_prog_cc_g=yes |
| 2560 | else |
| 2561 | echo "$as_me: failed program was:" >&5 |
| 2562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2563 | |
| 2564 | |
| 2565 | fi |
| 2566 | |
| 2567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2568 | fi |
| 2569 | |
| 2570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2571 | fi |
| 2572 | |
| 2573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2574 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2575 | fi |
| 2576 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2577 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 2578 | if test "$ac_test_CFLAGS" = set; then |
| 2579 | CFLAGS=$ac_save_CFLAGS |
| 2580 | elif test $ac_cv_prog_cc_g = yes; then |
| 2581 | if test "$GCC" = yes; then |
| 2582 | CFLAGS="-g -O2" |
| 2583 | else |
| 2584 | CFLAGS="-g" |
| 2585 | fi |
| 2586 | else |
| 2587 | if test "$GCC" = yes; then |
| 2588 | CFLAGS="-O2" |
| 2589 | else |
| 2590 | CFLAGS= |
| 2591 | fi |
| 2592 | fi |
| 2593 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2594 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2595 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2597 | else |
| 2598 | ac_cv_prog_cc_c89=no |
| 2599 | ac_save_CC=$CC |
| 2600 | cat >conftest.$ac_ext <<_ACEOF |
| 2601 | /* confdefs.h. */ |
| 2602 | _ACEOF |
| 2603 | cat confdefs.h >>conftest.$ac_ext |
| 2604 | cat >>conftest.$ac_ext <<_ACEOF |
| 2605 | /* end confdefs.h. */ |
| 2606 | #include <stdarg.h> |
| 2607 | #include <stdio.h> |
| 2608 | #include <sys/types.h> |
| 2609 | #include <sys/stat.h> |
| 2610 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2611 | struct buf { int x; }; |
| 2612 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2613 | static char *e (p, i) |
| 2614 | char **p; |
| 2615 | int i; |
| 2616 | { |
| 2617 | return p[i]; |
| 2618 | } |
| 2619 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2620 | { |
| 2621 | char *s; |
| 2622 | va_list v; |
| 2623 | va_start (v,p); |
| 2624 | s = g (p, va_arg (v,int)); |
| 2625 | va_end (v); |
| 2626 | return s; |
| 2627 | } |
| 2628 | |
| 2629 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2630 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2631 | These don't provoke an error unfortunately, instead are silently treated |
| 2632 | as 'x'. The following induces an error, until -std is added to get |
| 2633 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2634 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2635 | that's true only with -std. */ |
| 2636 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2637 | |
| 2638 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2639 | inside strings and character constants. */ |
| 2640 | #define FOO(x) 'x' |
| 2641 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2642 | |
| 2643 | int test (int i, double x); |
| 2644 | struct s1 {int (*f) (int a);}; |
| 2645 | struct s2 {int (*f) (double a);}; |
| 2646 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2647 | int argc; |
| 2648 | char **argv; |
| 2649 | int |
| 2650 | main () |
| 2651 | { |
| 2652 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2653 | ; |
| 2654 | return 0; |
| 2655 | } |
| 2656 | _ACEOF |
| 2657 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2658 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2659 | do |
| 2660 | CC="$ac_save_CC $ac_arg" |
| 2661 | rm -f conftest.$ac_objext |
| 2662 | if { (ac_try="$ac_compile" |
| 2663 | case "(($ac_try" in |
| 2664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2665 | *) ac_try_echo=$ac_try;; |
| 2666 | esac |
| 2667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2668 | (eval "$ac_compile") 2>conftest.er1 |
| 2669 | ac_status=$? |
| 2670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2671 | rm -f conftest.er1 |
| 2672 | cat conftest.err >&5 |
| 2673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2674 | (exit $ac_status); } && { |
| 2675 | test -z "$ac_c_werror_flag" || |
| 2676 | test ! -s conftest.err |
| 2677 | } && test -s conftest.$ac_objext; then |
| 2678 | ac_cv_prog_cc_c89=$ac_arg |
| 2679 | else |
| 2680 | echo "$as_me: failed program was:" >&5 |
| 2681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2682 | |
| 2683 | |
| 2684 | fi |
| 2685 | |
| 2686 | rm -f core conftest.err conftest.$ac_objext |
| 2687 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 2688 | done |
| 2689 | rm -f conftest.$ac_ext |
| 2690 | CC=$ac_save_CC |
| 2691 | |
| 2692 | fi |
| 2693 | # AC_CACHE_VAL |
| 2694 | case "x$ac_cv_prog_cc_c89" in |
| 2695 | x) |
| 2696 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2697 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2698 | xno) |
| 2699 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2700 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 2701 | *) |
| 2702 | CC="$CC $ac_cv_prog_cc_c89" |
| 2703 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2704 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 2705 | esac |
| 2706 | |
| 2707 | |
| 2708 | ac_ext=c |
| 2709 | ac_cpp='$CPP $CPPFLAGS' |
| 2710 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2711 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2712 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2713 | |
| 2714 | ac_ext=cpp |
| 2715 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2716 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2717 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2718 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2719 | if test -z "$CXX"; then |
| 2720 | if test -n "$CCC"; then |
| 2721 | CXX=$CCC |
| 2722 | else |
| 2723 | if test -n "$ac_tool_prefix"; then |
| 2724 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 2725 | do |
| 2726 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2727 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2728 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2730 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2732 | else |
| 2733 | if test -n "$CXX"; then |
| 2734 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2735 | else |
| 2736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2737 | for as_dir in $PATH |
| 2738 | do |
| 2739 | IFS=$as_save_IFS |
| 2740 | test -z "$as_dir" && as_dir=. |
| 2741 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2743 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2745 | break 2 |
| 2746 | fi |
| 2747 | done |
| 2748 | done |
| 2749 | IFS=$as_save_IFS |
| 2750 | |
| 2751 | fi |
| 2752 | fi |
| 2753 | CXX=$ac_cv_prog_CXX |
| 2754 | if test -n "$CXX"; then |
| 2755 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2756 | echo "${ECHO_T}$CXX" >&6; } |
| 2757 | else |
| 2758 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2759 | echo "${ECHO_T}no" >&6; } |
| 2760 | fi |
| 2761 | |
| 2762 | |
| 2763 | test -n "$CXX" && break |
| 2764 | done |
| 2765 | fi |
| 2766 | if test -z "$CXX"; then |
| 2767 | ac_ct_CXX=$CXX |
| 2768 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 2769 | do |
| 2770 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2771 | set dummy $ac_prog; ac_word=$2 |
| 2772 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2774 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2776 | else |
| 2777 | if test -n "$ac_ct_CXX"; then |
| 2778 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2779 | else |
| 2780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2781 | for as_dir in $PATH |
| 2782 | do |
| 2783 | IFS=$as_save_IFS |
| 2784 | test -z "$as_dir" && as_dir=. |
| 2785 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2787 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2789 | break 2 |
| 2790 | fi |
| 2791 | done |
| 2792 | done |
| 2793 | IFS=$as_save_IFS |
| 2794 | |
| 2795 | fi |
| 2796 | fi |
| 2797 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2798 | if test -n "$ac_ct_CXX"; then |
| 2799 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2800 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 2801 | else |
| 2802 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2803 | echo "${ECHO_T}no" >&6; } |
| 2804 | fi |
| 2805 | |
| 2806 | |
| 2807 | test -n "$ac_ct_CXX" && break |
| 2808 | done |
| 2809 | |
| 2810 | if test "x$ac_ct_CXX" = x; then |
| 2811 | CXX="g++" |
| 2812 | else |
| 2813 | case $cross_compiling:$ac_tool_warned in |
| 2814 | yes:) |
| 2815 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2816 | whose name does not start with the host triplet. If you think this |
| 2817 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2818 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2819 | whose name does not start with the host triplet. If you think this |
| 2820 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2821 | ac_tool_warned=yes ;; |
| 2822 | esac |
| 2823 | CXX=$ac_ct_CXX |
| 2824 | fi |
| 2825 | fi |
| 2826 | |
| 2827 | fi |
| 2828 | fi |
| 2829 | # Provide some information about the compiler. |
| 2830 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 2831 | ac_compiler=`set X $ac_compile; echo $2` |
| 2832 | { (ac_try="$ac_compiler --version >&5" |
| 2833 | case "(($ac_try" in |
| 2834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2835 | *) ac_try_echo=$ac_try;; |
| 2836 | esac |
| 2837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2838 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2839 | ac_status=$? |
| 2840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2841 | (exit $ac_status); } |
| 2842 | { (ac_try="$ac_compiler -v >&5" |
| 2843 | case "(($ac_try" in |
| 2844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2845 | *) ac_try_echo=$ac_try;; |
| 2846 | esac |
| 2847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2848 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2849 | ac_status=$? |
| 2850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2851 | (exit $ac_status); } |
| 2852 | { (ac_try="$ac_compiler -V >&5" |
| 2853 | case "(($ac_try" in |
| 2854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2855 | *) ac_try_echo=$ac_try;; |
| 2856 | esac |
| 2857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2858 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2859 | ac_status=$? |
| 2860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2861 | (exit $ac_status); } |
| 2862 | |
| 2863 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2864 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 2865 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2867 | else |
| 2868 | cat >conftest.$ac_ext <<_ACEOF |
| 2869 | /* confdefs.h. */ |
| 2870 | _ACEOF |
| 2871 | cat confdefs.h >>conftest.$ac_ext |
| 2872 | cat >>conftest.$ac_ext <<_ACEOF |
| 2873 | /* end confdefs.h. */ |
| 2874 | |
| 2875 | int |
| 2876 | main () |
| 2877 | { |
| 2878 | #ifndef __GNUC__ |
| 2879 | choke me |
| 2880 | #endif |
| 2881 | |
| 2882 | ; |
| 2883 | return 0; |
| 2884 | } |
| 2885 | _ACEOF |
| 2886 | rm -f conftest.$ac_objext |
| 2887 | if { (ac_try="$ac_compile" |
| 2888 | case "(($ac_try" in |
| 2889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2890 | *) ac_try_echo=$ac_try;; |
| 2891 | esac |
| 2892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2893 | (eval "$ac_compile") 2>conftest.er1 |
| 2894 | ac_status=$? |
| 2895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2896 | rm -f conftest.er1 |
| 2897 | cat conftest.err >&5 |
| 2898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2899 | (exit $ac_status); } && { |
| 2900 | test -z "$ac_cxx_werror_flag" || |
| 2901 | test ! -s conftest.err |
| 2902 | } && test -s conftest.$ac_objext; then |
| 2903 | ac_compiler_gnu=yes |
| 2904 | else |
| 2905 | echo "$as_me: failed program was:" >&5 |
| 2906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2907 | |
| 2908 | ac_compiler_gnu=no |
| 2909 | fi |
| 2910 | |
| 2911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2912 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2913 | |
| 2914 | fi |
| 2915 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2916 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 2917 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2918 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2919 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2920 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2921 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 2922 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2924 | else |
| 2925 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 2926 | ac_cxx_werror_flag=yes |
| 2927 | ac_cv_prog_cxx_g=no |
| 2928 | CXXFLAGS="-g" |
| 2929 | cat >conftest.$ac_ext <<_ACEOF |
| 2930 | /* confdefs.h. */ |
| 2931 | _ACEOF |
| 2932 | cat confdefs.h >>conftest.$ac_ext |
| 2933 | cat >>conftest.$ac_ext <<_ACEOF |
| 2934 | /* end confdefs.h. */ |
| 2935 | |
| 2936 | int |
| 2937 | main () |
| 2938 | { |
| 2939 | |
| 2940 | ; |
| 2941 | return 0; |
| 2942 | } |
| 2943 | _ACEOF |
| 2944 | rm -f conftest.$ac_objext |
| 2945 | if { (ac_try="$ac_compile" |
| 2946 | case "(($ac_try" in |
| 2947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2948 | *) ac_try_echo=$ac_try;; |
| 2949 | esac |
| 2950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2951 | (eval "$ac_compile") 2>conftest.er1 |
| 2952 | ac_status=$? |
| 2953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2954 | rm -f conftest.er1 |
| 2955 | cat conftest.err >&5 |
| 2956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2957 | (exit $ac_status); } && { |
| 2958 | test -z "$ac_cxx_werror_flag" || |
| 2959 | test ! -s conftest.err |
| 2960 | } && test -s conftest.$ac_objext; then |
| 2961 | ac_cv_prog_cxx_g=yes |
| 2962 | else |
| 2963 | echo "$as_me: failed program was:" >&5 |
| 2964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2965 | |
| 2966 | CXXFLAGS="" |
| 2967 | cat >conftest.$ac_ext <<_ACEOF |
| 2968 | /* confdefs.h. */ |
| 2969 | _ACEOF |
| 2970 | cat confdefs.h >>conftest.$ac_ext |
| 2971 | cat >>conftest.$ac_ext <<_ACEOF |
| 2972 | /* end confdefs.h. */ |
| 2973 | |
| 2974 | int |
| 2975 | main () |
| 2976 | { |
| 2977 | |
| 2978 | ; |
| 2979 | return 0; |
| 2980 | } |
| 2981 | _ACEOF |
| 2982 | rm -f conftest.$ac_objext |
| 2983 | if { (ac_try="$ac_compile" |
| 2984 | case "(($ac_try" in |
| 2985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2986 | *) ac_try_echo=$ac_try;; |
| 2987 | esac |
| 2988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2989 | (eval "$ac_compile") 2>conftest.er1 |
| 2990 | ac_status=$? |
| 2991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2992 | rm -f conftest.er1 |
| 2993 | cat conftest.err >&5 |
| 2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2995 | (exit $ac_status); } && { |
| 2996 | test -z "$ac_cxx_werror_flag" || |
| 2997 | test ! -s conftest.err |
| 2998 | } && test -s conftest.$ac_objext; then |
| 2999 | : |
| 3000 | else |
| 3001 | echo "$as_me: failed program was:" >&5 |
| 3002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3003 | |
| 3004 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3005 | CXXFLAGS="-g" |
| 3006 | cat >conftest.$ac_ext <<_ACEOF |
| 3007 | /* confdefs.h. */ |
| 3008 | _ACEOF |
| 3009 | cat confdefs.h >>conftest.$ac_ext |
| 3010 | cat >>conftest.$ac_ext <<_ACEOF |
| 3011 | /* end confdefs.h. */ |
| 3012 | |
| 3013 | int |
| 3014 | main () |
| 3015 | { |
| 3016 | |
| 3017 | ; |
| 3018 | return 0; |
| 3019 | } |
| 3020 | _ACEOF |
| 3021 | rm -f conftest.$ac_objext |
| 3022 | if { (ac_try="$ac_compile" |
| 3023 | case "(($ac_try" in |
| 3024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3025 | *) ac_try_echo=$ac_try;; |
| 3026 | esac |
| 3027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3028 | (eval "$ac_compile") 2>conftest.er1 |
| 3029 | ac_status=$? |
| 3030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3031 | rm -f conftest.er1 |
| 3032 | cat conftest.err >&5 |
| 3033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3034 | (exit $ac_status); } && { |
| 3035 | test -z "$ac_cxx_werror_flag" || |
| 3036 | test ! -s conftest.err |
| 3037 | } && test -s conftest.$ac_objext; then |
| 3038 | ac_cv_prog_cxx_g=yes |
| 3039 | else |
| 3040 | echo "$as_me: failed program was:" >&5 |
| 3041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3042 | |
| 3043 | |
| 3044 | fi |
| 3045 | |
| 3046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3047 | fi |
| 3048 | |
| 3049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3050 | fi |
| 3051 | |
| 3052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3053 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3054 | fi |
| 3055 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3056 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3057 | if test "$ac_test_CXXFLAGS" = set; then |
| 3058 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3059 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3060 | if test "$GXX" = yes; then |
| 3061 | CXXFLAGS="-g -O2" |
| 3062 | else |
| 3063 | CXXFLAGS="-g" |
| 3064 | fi |
| 3065 | else |
| 3066 | if test "$GXX" = yes; then |
| 3067 | CXXFLAGS="-O2" |
| 3068 | else |
| 3069 | CXXFLAGS= |
| 3070 | fi |
| 3071 | fi |
| 3072 | ac_ext=c |
| 3073 | ac_cpp='$CPP $CPPFLAGS' |
| 3074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3077 | |
| 3078 | if test -n "$ac_tool_prefix"; then |
| 3079 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3080 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3081 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 3083 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3085 | else |
| 3086 | if test -n "$RANLIB"; then |
| 3087 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3088 | else |
| 3089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3090 | for as_dir in $PATH |
| 3091 | do |
| 3092 | IFS=$as_save_IFS |
| 3093 | test -z "$as_dir" && as_dir=. |
| 3094 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3096 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3098 | break 2 |
| 3099 | fi |
| 3100 | done |
| 3101 | done |
| 3102 | IFS=$as_save_IFS |
| 3103 | |
| 3104 | fi |
| 3105 | fi |
| 3106 | RANLIB=$ac_cv_prog_RANLIB |
| 3107 | if test -n "$RANLIB"; then |
| 3108 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3109 | echo "${ECHO_T}$RANLIB" >&6; } |
| 3110 | else |
| 3111 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3112 | echo "${ECHO_T}no" >&6; } |
| 3113 | fi |
| 3114 | |
| 3115 | |
| 3116 | fi |
| 3117 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3118 | ac_ct_RANLIB=$RANLIB |
| 3119 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3120 | set dummy ranlib; ac_word=$2 |
| 3121 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 3123 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3125 | else |
| 3126 | if test -n "$ac_ct_RANLIB"; then |
| 3127 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3128 | else |
| 3129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3130 | for as_dir in $PATH |
| 3131 | do |
| 3132 | IFS=$as_save_IFS |
| 3133 | test -z "$as_dir" && as_dir=. |
| 3134 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3136 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3137 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3138 | break 2 |
| 3139 | fi |
| 3140 | done |
| 3141 | done |
| 3142 | IFS=$as_save_IFS |
| 3143 | |
| 3144 | fi |
| 3145 | fi |
| 3146 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3147 | if test -n "$ac_ct_RANLIB"; then |
| 3148 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3149 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 3150 | else |
| 3151 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3152 | echo "${ECHO_T}no" >&6; } |
| 3153 | fi |
| 3154 | |
| 3155 | if test "x$ac_ct_RANLIB" = x; then |
| 3156 | RANLIB=":" |
| 3157 | else |
| 3158 | case $cross_compiling:$ac_tool_warned in |
| 3159 | yes:) |
| 3160 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3161 | whose name does not start with the host triplet. If you think this |
| 3162 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3163 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3164 | whose name does not start with the host triplet. If you think this |
| 3165 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3166 | ac_tool_warned=yes ;; |
| 3167 | esac |
| 3168 | RANLIB=$ac_ct_RANLIB |
| 3169 | fi |
| 3170 | else |
| 3171 | RANLIB="$ac_cv_prog_RANLIB" |
| 3172 | fi |
| 3173 | |
| 3174 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3175 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 3176 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3177 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3179 | else |
| 3180 | cat >conftest.make <<\_ACEOF |
| 3181 | SHELL = /bin/sh |
| 3182 | all: |
| 3183 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3184 | _ACEOF |
| 3185 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3186 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3187 | *@@@%%%=?*=@@@%%%*) |
| 3188 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3189 | *) |
| 3190 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3191 | esac |
| 3192 | rm -f conftest.make |
| 3193 | fi |
| 3194 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3195 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3196 | echo "${ECHO_T}yes" >&6; } |
| 3197 | SET_MAKE= |
| 3198 | else |
| 3199 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3200 | echo "${ECHO_T}no" >&6; } |
| 3201 | SET_MAKE="MAKE=${MAKE-make}" |
| 3202 | fi |
| 3203 | |
| 3204 | ac_ext=cpp |
| 3205 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3206 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3207 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3208 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3209 | |
| 3210 | |
| 3211 | case "`(uname -sr) 2>/dev/null`" in |
| 3212 | "SunOS 5"*) |
| 3213 | SOLARIS=yes |
| 3214 | USE_MITSHM=yes |
| 3215 | USE_SUN_OVL=yes |
| 3216 | ;; |
| 3217 | "Linux"*) |
| 3218 | LINUX=yes |
| 3219 | USE_MITSHM=yes |
| 3220 | ;; |
| 3221 | "IRIX 6"*) |
| 3222 | X_LIBS="-L/usr/lib32" |
| 3223 | USE_MITSHM=yes |
| 3224 | USE_READDISPLAY=yes |
| 3225 | ;; |
| 3226 | "LynxOS 2"*) |
| 3227 | SJLJ_EXCEPTIONS=yes |
| 3228 | ;; |
| 3229 | esac |
| 3230 | |
| 3231 | if test "$USE_MITSHM" = yes; then |
| 3232 | MITSHM_DEFINE="-DHAVE_MITSHM" |
| 3233 | fi |
| 3234 | |
| 3235 | |
| 3236 | if test "$GCC" = yes; then |
| 3237 | CFLAGS="$CFLAGS -Wall" |
| 3238 | if test "$SOLARIS" = yes; then |
| 3239 | CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int" |
| 3240 | fi |
| 3241 | fi |
| 3242 | if test "$GXX" = yes; then |
| 3243 | CXXFLAGS="$CXXFLAGS -Wall" |
| 3244 | if test "$SOLARIS" = yes; then |
| 3245 | CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive" |
| 3246 | fi |
| 3247 | if test "$SJLJ_EXCEPTIONS" = yes; then |
| 3248 | CXXFLAGS="$CXXFLAGS -fsjlj-exceptions" |
| 3249 | fi |
| 3250 | fi |
| 3251 | |
| 3252 | |
| 3253 | { echo "$as_me:$LINENO: checking for clQuerySchemeFromName in -lcl" >&5 |
| 3254 | echo $ECHO_N "checking for clQuerySchemeFromName in -lcl... $ECHO_C" >&6; } |
| 3255 | if test "${ac_cv_lib_cl_clQuerySchemeFromName+set}" = set; then |
| 3256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3257 | else |
| 3258 | ac_check_lib_save_LIBS=$LIBS |
| 3259 | LIBS="-lcl $LIBS" |
| 3260 | cat >conftest.$ac_ext <<_ACEOF |
| 3261 | /* confdefs.h. */ |
| 3262 | _ACEOF |
| 3263 | cat confdefs.h >>conftest.$ac_ext |
| 3264 | cat >>conftest.$ac_ext <<_ACEOF |
| 3265 | /* end confdefs.h. */ |
| 3266 | |
| 3267 | /* Override any GCC internal prototype to avoid an error. |
| 3268 | Use char because int might match the return type of a GCC |
| 3269 | builtin and then its argument prototype would still apply. */ |
| 3270 | #ifdef __cplusplus |
| 3271 | extern "C" |
| 3272 | #endif |
| 3273 | char clQuerySchemeFromName (); |
| 3274 | int |
| 3275 | main () |
| 3276 | { |
| 3277 | return clQuerySchemeFromName (); |
| 3278 | ; |
| 3279 | return 0; |
| 3280 | } |
| 3281 | _ACEOF |
| 3282 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3283 | if { (ac_try="$ac_link" |
| 3284 | case "(($ac_try" in |
| 3285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3286 | *) ac_try_echo=$ac_try;; |
| 3287 | esac |
| 3288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3289 | (eval "$ac_link") 2>conftest.er1 |
| 3290 | ac_status=$? |
| 3291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3292 | rm -f conftest.er1 |
| 3293 | cat conftest.err >&5 |
| 3294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3295 | (exit $ac_status); } && { |
| 3296 | test -z "$ac_cxx_werror_flag" || |
| 3297 | test ! -s conftest.err |
| 3298 | } && test -s conftest$ac_exeext && |
| 3299 | $as_test_x conftest$ac_exeext; then |
| 3300 | ac_cv_lib_cl_clQuerySchemeFromName=yes |
| 3301 | else |
| 3302 | echo "$as_me: failed program was:" >&5 |
| 3303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3304 | |
| 3305 | ac_cv_lib_cl_clQuerySchemeFromName=no |
| 3306 | fi |
| 3307 | |
| 3308 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3309 | conftest$ac_exeext conftest.$ac_ext |
| 3310 | LIBS=$ac_check_lib_save_LIBS |
| 3311 | fi |
| 3312 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cl_clQuerySchemeFromName" >&5 |
| 3313 | echo "${ECHO_T}$ac_cv_lib_cl_clQuerySchemeFromName" >&6; } |
| 3314 | if test $ac_cv_lib_cl_clQuerySchemeFromName = yes; then |
| 3315 | cat >>confdefs.h <<\_ACEOF |
| 3316 | #define HAVE_CL 1 |
| 3317 | _ACEOF |
| 3318 | |
| 3319 | CL_LIB=-lcl |
| 3320 | fi |
| 3321 | |
| 3322 | |
| 3323 | |
| 3324 | { echo "$as_me:$LINENO: checking for dmICCreate in -ldmedia" >&5 |
| 3325 | echo $ECHO_N "checking for dmICCreate in -ldmedia... $ECHO_C" >&6; } |
| 3326 | if test "${ac_cv_lib_dmedia_dmICCreate+set}" = set; then |
| 3327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3328 | else |
| 3329 | ac_check_lib_save_LIBS=$LIBS |
| 3330 | LIBS="-ldmedia $LIBS" |
| 3331 | cat >conftest.$ac_ext <<_ACEOF |
| 3332 | /* confdefs.h. */ |
| 3333 | _ACEOF |
| 3334 | cat confdefs.h >>conftest.$ac_ext |
| 3335 | cat >>conftest.$ac_ext <<_ACEOF |
| 3336 | /* end confdefs.h. */ |
| 3337 | |
| 3338 | /* Override any GCC internal prototype to avoid an error. |
| 3339 | Use char because int might match the return type of a GCC |
| 3340 | builtin and then its argument prototype would still apply. */ |
| 3341 | #ifdef __cplusplus |
| 3342 | extern "C" |
| 3343 | #endif |
| 3344 | char dmICCreate (); |
| 3345 | int |
| 3346 | main () |
| 3347 | { |
| 3348 | return dmICCreate (); |
| 3349 | ; |
| 3350 | return 0; |
| 3351 | } |
| 3352 | _ACEOF |
| 3353 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3354 | if { (ac_try="$ac_link" |
| 3355 | case "(($ac_try" in |
| 3356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3357 | *) ac_try_echo=$ac_try;; |
| 3358 | esac |
| 3359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3360 | (eval "$ac_link") 2>conftest.er1 |
| 3361 | ac_status=$? |
| 3362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3363 | rm -f conftest.er1 |
| 3364 | cat conftest.err >&5 |
| 3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3366 | (exit $ac_status); } && { |
| 3367 | test -z "$ac_cxx_werror_flag" || |
| 3368 | test ! -s conftest.err |
| 3369 | } && test -s conftest$ac_exeext && |
| 3370 | $as_test_x conftest$ac_exeext; then |
| 3371 | ac_cv_lib_dmedia_dmICCreate=yes |
| 3372 | else |
| 3373 | echo "$as_me: failed program was:" >&5 |
| 3374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3375 | |
| 3376 | ac_cv_lib_dmedia_dmICCreate=no |
| 3377 | fi |
| 3378 | |
| 3379 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3380 | conftest$ac_exeext conftest.$ac_ext |
| 3381 | LIBS=$ac_check_lib_save_LIBS |
| 3382 | fi |
| 3383 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dmedia_dmICCreate" >&5 |
| 3384 | echo "${ECHO_T}$ac_cv_lib_dmedia_dmICCreate" >&6; } |
| 3385 | if test $ac_cv_lib_dmedia_dmICCreate = yes; then |
| 3386 | cat >>confdefs.h <<\_ACEOF |
| 3387 | #define HAVE_DMEDIA 1 |
| 3388 | _ACEOF |
| 3389 | |
| 3390 | DMEDIA_LIB=-ldmedia |
| 3391 | fi |
| 3392 | |
| 3393 | |
| 3394 | |
| 3395 | ac_ext=cpp |
| 3396 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3397 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3398 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3399 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3400 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 3401 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
| 3402 | if test -z "$CXXCPP"; then |
| 3403 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 3404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3405 | else |
| 3406 | # Double quotes because CXXCPP needs to be expanded |
| 3407 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 3408 | do |
| 3409 | ac_preproc_ok=false |
| 3410 | for ac_cxx_preproc_warn_flag in '' yes |
| 3411 | do |
| 3412 | # Use a header file that comes with gcc, so configuring glibc |
| 3413 | # with a fresh cross-compiler works. |
| 3414 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3415 | # <limits.h> exists even on freestanding compilers. |
| 3416 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3417 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3418 | cat >conftest.$ac_ext <<_ACEOF |
| 3419 | /* confdefs.h. */ |
| 3420 | _ACEOF |
| 3421 | cat confdefs.h >>conftest.$ac_ext |
| 3422 | cat >>conftest.$ac_ext <<_ACEOF |
| 3423 | /* end confdefs.h. */ |
| 3424 | #ifdef __STDC__ |
| 3425 | # include <limits.h> |
| 3426 | #else |
| 3427 | # include <assert.h> |
| 3428 | #endif |
| 3429 | Syntax error |
| 3430 | _ACEOF |
| 3431 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3432 | case "(($ac_try" in |
| 3433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3434 | *) ac_try_echo=$ac_try;; |
| 3435 | esac |
| 3436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3437 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3438 | ac_status=$? |
| 3439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3440 | rm -f conftest.er1 |
| 3441 | cat conftest.err >&5 |
| 3442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3443 | (exit $ac_status); } >/dev/null && { |
| 3444 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 3445 | test ! -s conftest.err |
| 3446 | }; then |
| 3447 | : |
| 3448 | else |
| 3449 | echo "$as_me: failed program was:" >&5 |
| 3450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3451 | |
| 3452 | # Broken: fails on valid input. |
| 3453 | continue |
| 3454 | fi |
| 3455 | |
| 3456 | rm -f conftest.err conftest.$ac_ext |
| 3457 | |
| 3458 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3459 | # can be detected and how. |
| 3460 | cat >conftest.$ac_ext <<_ACEOF |
| 3461 | /* confdefs.h. */ |
| 3462 | _ACEOF |
| 3463 | cat confdefs.h >>conftest.$ac_ext |
| 3464 | cat >>conftest.$ac_ext <<_ACEOF |
| 3465 | /* end confdefs.h. */ |
| 3466 | #include <ac_nonexistent.h> |
| 3467 | _ACEOF |
| 3468 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3469 | case "(($ac_try" in |
| 3470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3471 | *) ac_try_echo=$ac_try;; |
| 3472 | esac |
| 3473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3474 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3475 | ac_status=$? |
| 3476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3477 | rm -f conftest.er1 |
| 3478 | cat conftest.err >&5 |
| 3479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3480 | (exit $ac_status); } >/dev/null && { |
| 3481 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 3482 | test ! -s conftest.err |
| 3483 | }; then |
| 3484 | # Broken: success on invalid input. |
| 3485 | continue |
| 3486 | else |
| 3487 | echo "$as_me: failed program was:" >&5 |
| 3488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3489 | |
| 3490 | # Passes both tests. |
| 3491 | ac_preproc_ok=: |
| 3492 | break |
| 3493 | fi |
| 3494 | |
| 3495 | rm -f conftest.err conftest.$ac_ext |
| 3496 | |
| 3497 | done |
| 3498 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3499 | rm -f conftest.err conftest.$ac_ext |
| 3500 | if $ac_preproc_ok; then |
| 3501 | break |
| 3502 | fi |
| 3503 | |
| 3504 | done |
| 3505 | ac_cv_prog_CXXCPP=$CXXCPP |
| 3506 | |
| 3507 | fi |
| 3508 | CXXCPP=$ac_cv_prog_CXXCPP |
| 3509 | else |
| 3510 | ac_cv_prog_CXXCPP=$CXXCPP |
| 3511 | fi |
| 3512 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 3513 | echo "${ECHO_T}$CXXCPP" >&6; } |
| 3514 | ac_preproc_ok=false |
| 3515 | for ac_cxx_preproc_warn_flag in '' yes |
| 3516 | do |
| 3517 | # Use a header file that comes with gcc, so configuring glibc |
| 3518 | # with a fresh cross-compiler works. |
| 3519 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3520 | # <limits.h> exists even on freestanding compilers. |
| 3521 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3522 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3523 | cat >conftest.$ac_ext <<_ACEOF |
| 3524 | /* confdefs.h. */ |
| 3525 | _ACEOF |
| 3526 | cat confdefs.h >>conftest.$ac_ext |
| 3527 | cat >>conftest.$ac_ext <<_ACEOF |
| 3528 | /* end confdefs.h. */ |
| 3529 | #ifdef __STDC__ |
| 3530 | # include <limits.h> |
| 3531 | #else |
| 3532 | # include <assert.h> |
| 3533 | #endif |
| 3534 | Syntax error |
| 3535 | _ACEOF |
| 3536 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3537 | case "(($ac_try" in |
| 3538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3539 | *) ac_try_echo=$ac_try;; |
| 3540 | esac |
| 3541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3542 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3543 | ac_status=$? |
| 3544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3545 | rm -f conftest.er1 |
| 3546 | cat conftest.err >&5 |
| 3547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3548 | (exit $ac_status); } >/dev/null && { |
| 3549 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 3550 | test ! -s conftest.err |
| 3551 | }; then |
| 3552 | : |
| 3553 | else |
| 3554 | echo "$as_me: failed program was:" >&5 |
| 3555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3556 | |
| 3557 | # Broken: fails on valid input. |
| 3558 | continue |
| 3559 | fi |
| 3560 | |
| 3561 | rm -f conftest.err conftest.$ac_ext |
| 3562 | |
| 3563 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3564 | # can be detected and how. |
| 3565 | cat >conftest.$ac_ext <<_ACEOF |
| 3566 | /* confdefs.h. */ |
| 3567 | _ACEOF |
| 3568 | cat confdefs.h >>conftest.$ac_ext |
| 3569 | cat >>conftest.$ac_ext <<_ACEOF |
| 3570 | /* end confdefs.h. */ |
| 3571 | #include <ac_nonexistent.h> |
| 3572 | _ACEOF |
| 3573 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3574 | case "(($ac_try" in |
| 3575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3576 | *) ac_try_echo=$ac_try;; |
| 3577 | esac |
| 3578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3579 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3580 | ac_status=$? |
| 3581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3582 | rm -f conftest.er1 |
| 3583 | cat conftest.err >&5 |
| 3584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3585 | (exit $ac_status); } >/dev/null && { |
| 3586 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 3587 | test ! -s conftest.err |
| 3588 | }; then |
| 3589 | # Broken: success on invalid input. |
| 3590 | continue |
| 3591 | else |
| 3592 | echo "$as_me: failed program was:" >&5 |
| 3593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3594 | |
| 3595 | # Passes both tests. |
| 3596 | ac_preproc_ok=: |
| 3597 | break |
| 3598 | fi |
| 3599 | |
| 3600 | rm -f conftest.err conftest.$ac_ext |
| 3601 | |
| 3602 | done |
| 3603 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3604 | rm -f conftest.err conftest.$ac_ext |
| 3605 | if $ac_preproc_ok; then |
| 3606 | : |
| 3607 | else |
| 3608 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 3609 | See \`config.log' for more details." >&5 |
| 3610 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 3611 | See \`config.log' for more details." >&2;} |
| 3612 | { (exit 1); exit 1; }; } |
| 3613 | fi |
| 3614 | |
| 3615 | ac_ext=cpp |
| 3616 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3617 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3618 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3619 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3620 | |
| 3621 | |
| 3622 | { echo "$as_me:$LINENO: checking for X" >&5 |
| 3623 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
| 3624 | |
| 3625 | |
| 3626 | # Check whether --with-x was given. |
| 3627 | if test "${with_x+set}" = set; then |
| 3628 | withval=$with_x; |
| 3629 | fi |
| 3630 | |
| 3631 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 3632 | if test "x$with_x" = xno; then |
| 3633 | # The user explicitly disabled X. |
| 3634 | have_x=disabled |
| 3635 | else |
| 3636 | case $x_includes,$x_libraries in #( |
| 3637 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
| 3638 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
| 3639 | { (exit 1); exit 1; }; };; #( |
| 3640 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
| 3641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3642 | else |
| 3643 | # One or both of the vars are not set, and there is no cached value. |
| 3644 | ac_x_includes=no ac_x_libraries=no |
| 3645 | rm -f -r conftest.dir |
| 3646 | if mkdir conftest.dir; then |
| 3647 | cd conftest.dir |
| 3648 | cat >Imakefile <<'_ACEOF' |
| 3649 | incroot: |
| 3650 | @echo incroot='${INCROOT}' |
| 3651 | usrlibdir: |
| 3652 | @echo usrlibdir='${USRLIBDIR}' |
| 3653 | libdir: |
| 3654 | @echo libdir='${LIBDIR}' |
| 3655 | _ACEOF |
| 3656 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 3657 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3658 | for ac_var in incroot usrlibdir libdir; do |
| 3659 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 3660 | done |
| 3661 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 3662 | for ac_extension in a so sl; do |
| 3663 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 3664 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 3665 | ac_im_usrlibdir=$ac_im_libdir; break |
| 3666 | fi |
| 3667 | done |
| 3668 | # Screen out bogus values from the imake configuration. They are |
| 3669 | # bogus both because they are the default anyway, and because |
| 3670 | # using them would break gcc on systems where it needs fixed includes. |
| 3671 | case $ac_im_incroot in |
| 3672 | /usr/include) ac_x_includes= ;; |
| 3673 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 3674 | esac |
| 3675 | case $ac_im_usrlibdir in |
| 3676 | /usr/lib | /lib) ;; |
| 3677 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 3678 | esac |
| 3679 | fi |
| 3680 | cd .. |
| 3681 | rm -f -r conftest.dir |
| 3682 | fi |
| 3683 | |
| 3684 | # Standard set of common directories for X headers. |
| 3685 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 3686 | ac_x_header_dirs=' |
| 3687 | /usr/X11/include |
| 3688 | /usr/X11R6/include |
| 3689 | /usr/X11R5/include |
| 3690 | /usr/X11R4/include |
| 3691 | |
| 3692 | /usr/include/X11 |
| 3693 | /usr/include/X11R6 |
| 3694 | /usr/include/X11R5 |
| 3695 | /usr/include/X11R4 |
| 3696 | |
| 3697 | /usr/local/X11/include |
| 3698 | /usr/local/X11R6/include |
| 3699 | /usr/local/X11R5/include |
| 3700 | /usr/local/X11R4/include |
| 3701 | |
| 3702 | /usr/local/include/X11 |
| 3703 | /usr/local/include/X11R6 |
| 3704 | /usr/local/include/X11R5 |
| 3705 | /usr/local/include/X11R4 |
| 3706 | |
| 3707 | /usr/X386/include |
| 3708 | /usr/x386/include |
| 3709 | /usr/XFree86/include/X11 |
| 3710 | |
| 3711 | /usr/include |
| 3712 | /usr/local/include |
| 3713 | /usr/unsupported/include |
| 3714 | /usr/athena/include |
| 3715 | /usr/local/x11r5/include |
| 3716 | /usr/lpp/Xamples/include |
| 3717 | |
| 3718 | /usr/openwin/include |
| 3719 | /usr/openwin/share/include' |
| 3720 | |
| 3721 | if test "$ac_x_includes" = no; then |
| 3722 | # Guess where to find include files, by looking for Xlib.h. |
| 3723 | # First, try using that file with no special directory specified. |
| 3724 | cat >conftest.$ac_ext <<_ACEOF |
| 3725 | /* confdefs.h. */ |
| 3726 | _ACEOF |
| 3727 | cat confdefs.h >>conftest.$ac_ext |
| 3728 | cat >>conftest.$ac_ext <<_ACEOF |
| 3729 | /* end confdefs.h. */ |
| 3730 | #include <X11/Xlib.h> |
| 3731 | _ACEOF |
| 3732 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3733 | case "(($ac_try" in |
| 3734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3735 | *) ac_try_echo=$ac_try;; |
| 3736 | esac |
| 3737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3738 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3739 | ac_status=$? |
| 3740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3741 | rm -f conftest.er1 |
| 3742 | cat conftest.err >&5 |
| 3743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3744 | (exit $ac_status); } >/dev/null && { |
| 3745 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 3746 | test ! -s conftest.err |
| 3747 | }; then |
| 3748 | # We can compile using X headers with no special include directory. |
| 3749 | ac_x_includes= |
| 3750 | else |
| 3751 | echo "$as_me: failed program was:" >&5 |
| 3752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3753 | |
| 3754 | for ac_dir in $ac_x_header_dirs; do |
| 3755 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 3756 | ac_x_includes=$ac_dir |
| 3757 | break |
| 3758 | fi |
| 3759 | done |
| 3760 | fi |
| 3761 | |
| 3762 | rm -f conftest.err conftest.$ac_ext |
| 3763 | fi # $ac_x_includes = no |
| 3764 | |
| 3765 | if test "$ac_x_libraries" = no; then |
| 3766 | # Check for the libraries. |
| 3767 | # See if we find them without any special options. |
| 3768 | # Don't add to $LIBS permanently. |
| 3769 | ac_save_LIBS=$LIBS |
| 3770 | LIBS="-lX11 $LIBS" |
| 3771 | cat >conftest.$ac_ext <<_ACEOF |
| 3772 | /* confdefs.h. */ |
| 3773 | _ACEOF |
| 3774 | cat confdefs.h >>conftest.$ac_ext |
| 3775 | cat >>conftest.$ac_ext <<_ACEOF |
| 3776 | /* end confdefs.h. */ |
| 3777 | #include <X11/Xlib.h> |
| 3778 | int |
| 3779 | main () |
| 3780 | { |
| 3781 | XrmInitialize () |
| 3782 | ; |
| 3783 | return 0; |
| 3784 | } |
| 3785 | _ACEOF |
| 3786 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3787 | if { (ac_try="$ac_link" |
| 3788 | case "(($ac_try" in |
| 3789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3790 | *) ac_try_echo=$ac_try;; |
| 3791 | esac |
| 3792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3793 | (eval "$ac_link") 2>conftest.er1 |
| 3794 | ac_status=$? |
| 3795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3796 | rm -f conftest.er1 |
| 3797 | cat conftest.err >&5 |
| 3798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3799 | (exit $ac_status); } && { |
| 3800 | test -z "$ac_cxx_werror_flag" || |
| 3801 | test ! -s conftest.err |
| 3802 | } && test -s conftest$ac_exeext && |
| 3803 | $as_test_x conftest$ac_exeext; then |
| 3804 | LIBS=$ac_save_LIBS |
| 3805 | # We can link X programs with no special library path. |
| 3806 | ac_x_libraries= |
| 3807 | else |
| 3808 | echo "$as_me: failed program was:" >&5 |
| 3809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3810 | |
| 3811 | LIBS=$ac_save_LIBS |
| 3812 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 3813 | do |
| 3814 | # Don't even attempt the hair of trying to link an X program! |
| 3815 | for ac_extension in a so sl; do |
| 3816 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 3817 | ac_x_libraries=$ac_dir |
| 3818 | break 2 |
| 3819 | fi |
| 3820 | done |
| 3821 | done |
| 3822 | fi |
| 3823 | |
| 3824 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3825 | conftest$ac_exeext conftest.$ac_ext |
| 3826 | fi # $ac_x_libraries = no |
| 3827 | |
| 3828 | case $ac_x_includes,$ac_x_libraries in #( |
| 3829 | no,* | *,no | *\'*) |
| 3830 | # Didn't find X, or a directory has "'" in its name. |
| 3831 | ac_cv_have_x="have_x=no";; #( |
| 3832 | *) |
| 3833 | # Record where we found X for the cache. |
| 3834 | ac_cv_have_x="have_x=yes\ |
| 3835 | ac_x_includes='$ac_x_includes'\ |
| 3836 | ac_x_libraries='$ac_x_libraries'" |
| 3837 | esac |
| 3838 | fi |
| 3839 | ;; #( |
| 3840 | *) have_x=yes;; |
| 3841 | esac |
| 3842 | eval "$ac_cv_have_x" |
| 3843 | fi # $with_x != no |
| 3844 | |
| 3845 | if test "$have_x" != yes; then |
| 3846 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
| 3847 | echo "${ECHO_T}$have_x" >&6; } |
| 3848 | no_x=yes |
| 3849 | else |
| 3850 | # If each of the values was on the command line, it overrides each guess. |
| 3851 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 3852 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 3853 | # Update the cache value to reflect the command line values. |
| 3854 | ac_cv_have_x="have_x=yes\ |
| 3855 | ac_x_includes='$x_includes'\ |
| 3856 | ac_x_libraries='$x_libraries'" |
| 3857 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 3858 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
| 3859 | fi |
| 3860 | |
| 3861 | if test "$no_x" = yes; then |
| 3862 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 3863 | |
| 3864 | cat >>confdefs.h <<\_ACEOF |
| 3865 | #define X_DISPLAY_MISSING 1 |
| 3866 | _ACEOF |
| 3867 | |
| 3868 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 3869 | else |
| 3870 | if test -n "$x_includes"; then |
| 3871 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 3872 | fi |
| 3873 | |
| 3874 | # It would also be nice to do this for all -L options, not just this one. |
| 3875 | if test -n "$x_libraries"; then |
| 3876 | X_LIBS="$X_LIBS -L$x_libraries" |
| 3877 | # For Solaris; some versions of Sun CC require a space after -R and |
| 3878 | # others require no space. Words are not sufficient . . . . |
| 3879 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 3880 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } |
| 3881 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 3882 | ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag |
| 3883 | ac_cxx_werror_flag=yes |
| 3884 | cat >conftest.$ac_ext <<_ACEOF |
| 3885 | /* confdefs.h. */ |
| 3886 | _ACEOF |
| 3887 | cat confdefs.h >>conftest.$ac_ext |
| 3888 | cat >>conftest.$ac_ext <<_ACEOF |
| 3889 | /* end confdefs.h. */ |
| 3890 | |
| 3891 | int |
| 3892 | main () |
| 3893 | { |
| 3894 | |
| 3895 | ; |
| 3896 | return 0; |
| 3897 | } |
| 3898 | _ACEOF |
| 3899 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3900 | if { (ac_try="$ac_link" |
| 3901 | case "(($ac_try" in |
| 3902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3903 | *) ac_try_echo=$ac_try;; |
| 3904 | esac |
| 3905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3906 | (eval "$ac_link") 2>conftest.er1 |
| 3907 | ac_status=$? |
| 3908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3909 | rm -f conftest.er1 |
| 3910 | cat conftest.err >&5 |
| 3911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3912 | (exit $ac_status); } && { |
| 3913 | test -z "$ac_cxx_werror_flag" || |
| 3914 | test ! -s conftest.err |
| 3915 | } && test -s conftest$ac_exeext && |
| 3916 | $as_test_x conftest$ac_exeext; then |
| 3917 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3918 | echo "${ECHO_T}no" >&6; } |
| 3919 | X_LIBS="$X_LIBS -R$x_libraries" |
| 3920 | else |
| 3921 | echo "$as_me: failed program was:" >&5 |
| 3922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3923 | |
| 3924 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 3925 | cat >conftest.$ac_ext <<_ACEOF |
| 3926 | /* confdefs.h. */ |
| 3927 | _ACEOF |
| 3928 | cat confdefs.h >>conftest.$ac_ext |
| 3929 | cat >>conftest.$ac_ext <<_ACEOF |
| 3930 | /* end confdefs.h. */ |
| 3931 | |
| 3932 | int |
| 3933 | main () |
| 3934 | { |
| 3935 | |
| 3936 | ; |
| 3937 | return 0; |
| 3938 | } |
| 3939 | _ACEOF |
| 3940 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3941 | if { (ac_try="$ac_link" |
| 3942 | case "(($ac_try" in |
| 3943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3944 | *) ac_try_echo=$ac_try;; |
| 3945 | esac |
| 3946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3947 | (eval "$ac_link") 2>conftest.er1 |
| 3948 | ac_status=$? |
| 3949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3950 | rm -f conftest.er1 |
| 3951 | cat conftest.err >&5 |
| 3952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3953 | (exit $ac_status); } && { |
| 3954 | test -z "$ac_cxx_werror_flag" || |
| 3955 | test ! -s conftest.err |
| 3956 | } && test -s conftest$ac_exeext && |
| 3957 | $as_test_x conftest$ac_exeext; then |
| 3958 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3959 | echo "${ECHO_T}yes" >&6; } |
| 3960 | X_LIBS="$X_LIBS -R $x_libraries" |
| 3961 | else |
| 3962 | echo "$as_me: failed program was:" >&5 |
| 3963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3964 | |
| 3965 | { echo "$as_me:$LINENO: result: neither works" >&5 |
| 3966 | echo "${ECHO_T}neither works" >&6; } |
| 3967 | fi |
| 3968 | |
| 3969 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3970 | conftest$ac_exeext conftest.$ac_ext |
| 3971 | fi |
| 3972 | |
| 3973 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3974 | conftest$ac_exeext conftest.$ac_ext |
| 3975 | ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag |
| 3976 | LIBS=$ac_xsave_LIBS |
| 3977 | fi |
| 3978 | |
| 3979 | # Check for system-dependent libraries X programs must link with. |
| 3980 | # Do this before checking for the system-independent R6 libraries |
| 3981 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 3982 | |
| 3983 | if test "$ISC" = yes; then |
| 3984 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 3985 | else |
| 3986 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 3987 | # libraries were built with DECnet support. And Karl Berry says |
| 3988 | # the Alpha needs dnet_stub (dnet does not exist). |
| 3989 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 3990 | cat >conftest.$ac_ext <<_ACEOF |
| 3991 | /* confdefs.h. */ |
| 3992 | _ACEOF |
| 3993 | cat confdefs.h >>conftest.$ac_ext |
| 3994 | cat >>conftest.$ac_ext <<_ACEOF |
| 3995 | /* end confdefs.h. */ |
| 3996 | |
| 3997 | /* Override any GCC internal prototype to avoid an error. |
| 3998 | Use char because int might match the return type of a GCC |
| 3999 | builtin and then its argument prototype would still apply. */ |
| 4000 | #ifdef __cplusplus |
| 4001 | extern "C" |
| 4002 | #endif |
| 4003 | char XOpenDisplay (); |
| 4004 | int |
| 4005 | main () |
| 4006 | { |
| 4007 | return XOpenDisplay (); |
| 4008 | ; |
| 4009 | return 0; |
| 4010 | } |
| 4011 | _ACEOF |
| 4012 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4013 | if { (ac_try="$ac_link" |
| 4014 | case "(($ac_try" in |
| 4015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4016 | *) ac_try_echo=$ac_try;; |
| 4017 | esac |
| 4018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4019 | (eval "$ac_link") 2>conftest.er1 |
| 4020 | ac_status=$? |
| 4021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4022 | rm -f conftest.er1 |
| 4023 | cat conftest.err >&5 |
| 4024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4025 | (exit $ac_status); } && { |
| 4026 | test -z "$ac_cxx_werror_flag" || |
| 4027 | test ! -s conftest.err |
| 4028 | } && test -s conftest$ac_exeext && |
| 4029 | $as_test_x conftest$ac_exeext; then |
| 4030 | : |
| 4031 | else |
| 4032 | echo "$as_me: failed program was:" >&5 |
| 4033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4034 | |
| 4035 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 4036 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } |
| 4037 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 4038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4039 | else |
| 4040 | ac_check_lib_save_LIBS=$LIBS |
| 4041 | LIBS="-ldnet $LIBS" |
| 4042 | cat >conftest.$ac_ext <<_ACEOF |
| 4043 | /* confdefs.h. */ |
| 4044 | _ACEOF |
| 4045 | cat confdefs.h >>conftest.$ac_ext |
| 4046 | cat >>conftest.$ac_ext <<_ACEOF |
| 4047 | /* end confdefs.h. */ |
| 4048 | |
| 4049 | /* Override any GCC internal prototype to avoid an error. |
| 4050 | Use char because int might match the return type of a GCC |
| 4051 | builtin and then its argument prototype would still apply. */ |
| 4052 | #ifdef __cplusplus |
| 4053 | extern "C" |
| 4054 | #endif |
| 4055 | char dnet_ntoa (); |
| 4056 | int |
| 4057 | main () |
| 4058 | { |
| 4059 | return dnet_ntoa (); |
| 4060 | ; |
| 4061 | return 0; |
| 4062 | } |
| 4063 | _ACEOF |
| 4064 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4065 | if { (ac_try="$ac_link" |
| 4066 | case "(($ac_try" in |
| 4067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4068 | *) ac_try_echo=$ac_try;; |
| 4069 | esac |
| 4070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4071 | (eval "$ac_link") 2>conftest.er1 |
| 4072 | ac_status=$? |
| 4073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4074 | rm -f conftest.er1 |
| 4075 | cat conftest.err >&5 |
| 4076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4077 | (exit $ac_status); } && { |
| 4078 | test -z "$ac_cxx_werror_flag" || |
| 4079 | test ! -s conftest.err |
| 4080 | } && test -s conftest$ac_exeext && |
| 4081 | $as_test_x conftest$ac_exeext; then |
| 4082 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 4083 | else |
| 4084 | echo "$as_me: failed program was:" >&5 |
| 4085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4086 | |
| 4087 | ac_cv_lib_dnet_dnet_ntoa=no |
| 4088 | fi |
| 4089 | |
| 4090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4091 | conftest$ac_exeext conftest.$ac_ext |
| 4092 | LIBS=$ac_check_lib_save_LIBS |
| 4093 | fi |
| 4094 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 4095 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| 4096 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
| 4097 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 4098 | fi |
| 4099 | |
| 4100 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 4101 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 4102 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } |
| 4103 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 4104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4105 | else |
| 4106 | ac_check_lib_save_LIBS=$LIBS |
| 4107 | LIBS="-ldnet_stub $LIBS" |
| 4108 | cat >conftest.$ac_ext <<_ACEOF |
| 4109 | /* confdefs.h. */ |
| 4110 | _ACEOF |
| 4111 | cat confdefs.h >>conftest.$ac_ext |
| 4112 | cat >>conftest.$ac_ext <<_ACEOF |
| 4113 | /* end confdefs.h. */ |
| 4114 | |
| 4115 | /* Override any GCC internal prototype to avoid an error. |
| 4116 | Use char because int might match the return type of a GCC |
| 4117 | builtin and then its argument prototype would still apply. */ |
| 4118 | #ifdef __cplusplus |
| 4119 | extern "C" |
| 4120 | #endif |
| 4121 | char dnet_ntoa (); |
| 4122 | int |
| 4123 | main () |
| 4124 | { |
| 4125 | return dnet_ntoa (); |
| 4126 | ; |
| 4127 | return 0; |
| 4128 | } |
| 4129 | _ACEOF |
| 4130 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4131 | if { (ac_try="$ac_link" |
| 4132 | case "(($ac_try" in |
| 4133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4134 | *) ac_try_echo=$ac_try;; |
| 4135 | esac |
| 4136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4137 | (eval "$ac_link") 2>conftest.er1 |
| 4138 | ac_status=$? |
| 4139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4140 | rm -f conftest.er1 |
| 4141 | cat conftest.err >&5 |
| 4142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4143 | (exit $ac_status); } && { |
| 4144 | test -z "$ac_cxx_werror_flag" || |
| 4145 | test ! -s conftest.err |
| 4146 | } && test -s conftest$ac_exeext && |
| 4147 | $as_test_x conftest$ac_exeext; then |
| 4148 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 4149 | else |
| 4150 | echo "$as_me: failed program was:" >&5 |
| 4151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4152 | |
| 4153 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
| 4154 | fi |
| 4155 | |
| 4156 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4157 | conftest$ac_exeext conftest.$ac_ext |
| 4158 | LIBS=$ac_check_lib_save_LIBS |
| 4159 | fi |
| 4160 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 4161 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| 4162 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
| 4163 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 4164 | fi |
| 4165 | |
| 4166 | fi |
| 4167 | fi |
| 4168 | |
| 4169 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4170 | conftest$ac_exeext conftest.$ac_ext |
| 4171 | LIBS="$ac_xsave_LIBS" |
| 4172 | |
| 4173 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 4174 | # to get the SysV transport functions. |
| 4175 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 4176 | # needs -lnsl. |
| 4177 | # The nsl library prevents programs from opening the X display |
| 4178 | # on Irix 5.2, according to T.E. Dickey. |
| 4179 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 4180 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 4181 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 4182 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
| 4183 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 4184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4185 | else |
| 4186 | cat >conftest.$ac_ext <<_ACEOF |
| 4187 | /* confdefs.h. */ |
| 4188 | _ACEOF |
| 4189 | cat confdefs.h >>conftest.$ac_ext |
| 4190 | cat >>conftest.$ac_ext <<_ACEOF |
| 4191 | /* end confdefs.h. */ |
| 4192 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 4193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4194 | #define gethostbyname innocuous_gethostbyname |
| 4195 | |
| 4196 | /* System header to define __stub macros and hopefully few prototypes, |
| 4197 | which can conflict with char gethostbyname (); below. |
| 4198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4199 | <limits.h> exists even on freestanding compilers. */ |
| 4200 | |
| 4201 | #ifdef __STDC__ |
| 4202 | # include <limits.h> |
| 4203 | #else |
| 4204 | # include <assert.h> |
| 4205 | #endif |
| 4206 | |
| 4207 | #undef gethostbyname |
| 4208 | |
| 4209 | /* Override any GCC internal prototype to avoid an error. |
| 4210 | Use char because int might match the return type of a GCC |
| 4211 | builtin and then its argument prototype would still apply. */ |
| 4212 | #ifdef __cplusplus |
| 4213 | extern "C" |
| 4214 | #endif |
| 4215 | char gethostbyname (); |
| 4216 | /* The GNU C library defines this for functions which it implements |
| 4217 | to always fail with ENOSYS. Some functions are actually named |
| 4218 | something starting with __ and the normal name is an alias. */ |
| 4219 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
| 4220 | choke me |
| 4221 | #endif |
| 4222 | |
| 4223 | int |
| 4224 | main () |
| 4225 | { |
| 4226 | return gethostbyname (); |
| 4227 | ; |
| 4228 | return 0; |
| 4229 | } |
| 4230 | _ACEOF |
| 4231 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4232 | if { (ac_try="$ac_link" |
| 4233 | case "(($ac_try" in |
| 4234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4235 | *) ac_try_echo=$ac_try;; |
| 4236 | esac |
| 4237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4238 | (eval "$ac_link") 2>conftest.er1 |
| 4239 | ac_status=$? |
| 4240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4241 | rm -f conftest.er1 |
| 4242 | cat conftest.err >&5 |
| 4243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4244 | (exit $ac_status); } && { |
| 4245 | test -z "$ac_cxx_werror_flag" || |
| 4246 | test ! -s conftest.err |
| 4247 | } && test -s conftest$ac_exeext && |
| 4248 | $as_test_x conftest$ac_exeext; then |
| 4249 | ac_cv_func_gethostbyname=yes |
| 4250 | else |
| 4251 | echo "$as_me: failed program was:" >&5 |
| 4252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4253 | |
| 4254 | ac_cv_func_gethostbyname=no |
| 4255 | fi |
| 4256 | |
| 4257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4258 | conftest$ac_exeext conftest.$ac_ext |
| 4259 | fi |
| 4260 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 4261 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
| 4262 | |
| 4263 | if test $ac_cv_func_gethostbyname = no; then |
| 4264 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 4265 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
| 4266 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4268 | else |
| 4269 | ac_check_lib_save_LIBS=$LIBS |
| 4270 | LIBS="-lnsl $LIBS" |
| 4271 | cat >conftest.$ac_ext <<_ACEOF |
| 4272 | /* confdefs.h. */ |
| 4273 | _ACEOF |
| 4274 | cat confdefs.h >>conftest.$ac_ext |
| 4275 | cat >>conftest.$ac_ext <<_ACEOF |
| 4276 | /* end confdefs.h. */ |
| 4277 | |
| 4278 | /* Override any GCC internal prototype to avoid an error. |
| 4279 | Use char because int might match the return type of a GCC |
| 4280 | builtin and then its argument prototype would still apply. */ |
| 4281 | #ifdef __cplusplus |
| 4282 | extern "C" |
| 4283 | #endif |
| 4284 | char gethostbyname (); |
| 4285 | int |
| 4286 | main () |
| 4287 | { |
| 4288 | return gethostbyname (); |
| 4289 | ; |
| 4290 | return 0; |
| 4291 | } |
| 4292 | _ACEOF |
| 4293 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4294 | if { (ac_try="$ac_link" |
| 4295 | case "(($ac_try" in |
| 4296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4297 | *) ac_try_echo=$ac_try;; |
| 4298 | esac |
| 4299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4300 | (eval "$ac_link") 2>conftest.er1 |
| 4301 | ac_status=$? |
| 4302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4303 | rm -f conftest.er1 |
| 4304 | cat conftest.err >&5 |
| 4305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4306 | (exit $ac_status); } && { |
| 4307 | test -z "$ac_cxx_werror_flag" || |
| 4308 | test ! -s conftest.err |
| 4309 | } && test -s conftest$ac_exeext && |
| 4310 | $as_test_x conftest$ac_exeext; then |
| 4311 | ac_cv_lib_nsl_gethostbyname=yes |
| 4312 | else |
| 4313 | echo "$as_me: failed program was:" >&5 |
| 4314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4315 | |
| 4316 | ac_cv_lib_nsl_gethostbyname=no |
| 4317 | fi |
| 4318 | |
| 4319 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4320 | conftest$ac_exeext conftest.$ac_ext |
| 4321 | LIBS=$ac_check_lib_save_LIBS |
| 4322 | fi |
| 4323 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 4324 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 4325 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 4326 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 4327 | fi |
| 4328 | |
| 4329 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 4330 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 4331 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } |
| 4332 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 4333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4334 | else |
| 4335 | ac_check_lib_save_LIBS=$LIBS |
| 4336 | LIBS="-lbsd $LIBS" |
| 4337 | cat >conftest.$ac_ext <<_ACEOF |
| 4338 | /* confdefs.h. */ |
| 4339 | _ACEOF |
| 4340 | cat confdefs.h >>conftest.$ac_ext |
| 4341 | cat >>conftest.$ac_ext <<_ACEOF |
| 4342 | /* end confdefs.h. */ |
| 4343 | |
| 4344 | /* Override any GCC internal prototype to avoid an error. |
| 4345 | Use char because int might match the return type of a GCC |
| 4346 | builtin and then its argument prototype would still apply. */ |
| 4347 | #ifdef __cplusplus |
| 4348 | extern "C" |
| 4349 | #endif |
| 4350 | char gethostbyname (); |
| 4351 | int |
| 4352 | main () |
| 4353 | { |
| 4354 | return gethostbyname (); |
| 4355 | ; |
| 4356 | return 0; |
| 4357 | } |
| 4358 | _ACEOF |
| 4359 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4360 | if { (ac_try="$ac_link" |
| 4361 | case "(($ac_try" in |
| 4362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4363 | *) ac_try_echo=$ac_try;; |
| 4364 | esac |
| 4365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4366 | (eval "$ac_link") 2>conftest.er1 |
| 4367 | ac_status=$? |
| 4368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4369 | rm -f conftest.er1 |
| 4370 | cat conftest.err >&5 |
| 4371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4372 | (exit $ac_status); } && { |
| 4373 | test -z "$ac_cxx_werror_flag" || |
| 4374 | test ! -s conftest.err |
| 4375 | } && test -s conftest$ac_exeext && |
| 4376 | $as_test_x conftest$ac_exeext; then |
| 4377 | ac_cv_lib_bsd_gethostbyname=yes |
| 4378 | else |
| 4379 | echo "$as_me: failed program was:" >&5 |
| 4380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4381 | |
| 4382 | ac_cv_lib_bsd_gethostbyname=no |
| 4383 | fi |
| 4384 | |
| 4385 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4386 | conftest$ac_exeext conftest.$ac_ext |
| 4387 | LIBS=$ac_check_lib_save_LIBS |
| 4388 | fi |
| 4389 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 4390 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } |
| 4391 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 4392 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 4393 | fi |
| 4394 | |
| 4395 | fi |
| 4396 | fi |
| 4397 | |
| 4398 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 4399 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 4400 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 4401 | # on later versions), says Simon Leinen: it contains gethostby* |
| 4402 | # variants that don't use the name server (or something). -lsocket |
| 4403 | # must be given before -lnsl if both are needed. We assume that |
| 4404 | # if connect needs -lnsl, so does gethostbyname. |
| 4405 | { echo "$as_me:$LINENO: checking for connect" >&5 |
| 4406 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } |
| 4407 | if test "${ac_cv_func_connect+set}" = set; then |
| 4408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4409 | else |
| 4410 | cat >conftest.$ac_ext <<_ACEOF |
| 4411 | /* confdefs.h. */ |
| 4412 | _ACEOF |
| 4413 | cat confdefs.h >>conftest.$ac_ext |
| 4414 | cat >>conftest.$ac_ext <<_ACEOF |
| 4415 | /* end confdefs.h. */ |
| 4416 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 4417 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4418 | #define connect innocuous_connect |
| 4419 | |
| 4420 | /* System header to define __stub macros and hopefully few prototypes, |
| 4421 | which can conflict with char connect (); below. |
| 4422 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4423 | <limits.h> exists even on freestanding compilers. */ |
| 4424 | |
| 4425 | #ifdef __STDC__ |
| 4426 | # include <limits.h> |
| 4427 | #else |
| 4428 | # include <assert.h> |
| 4429 | #endif |
| 4430 | |
| 4431 | #undef connect |
| 4432 | |
| 4433 | /* Override any GCC internal prototype to avoid an error. |
| 4434 | Use char because int might match the return type of a GCC |
| 4435 | builtin and then its argument prototype would still apply. */ |
| 4436 | #ifdef __cplusplus |
| 4437 | extern "C" |
| 4438 | #endif |
| 4439 | char connect (); |
| 4440 | /* The GNU C library defines this for functions which it implements |
| 4441 | to always fail with ENOSYS. Some functions are actually named |
| 4442 | something starting with __ and the normal name is an alias. */ |
| 4443 | #if defined __stub_connect || defined __stub___connect |
| 4444 | choke me |
| 4445 | #endif |
| 4446 | |
| 4447 | int |
| 4448 | main () |
| 4449 | { |
| 4450 | return connect (); |
| 4451 | ; |
| 4452 | return 0; |
| 4453 | } |
| 4454 | _ACEOF |
| 4455 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4456 | if { (ac_try="$ac_link" |
| 4457 | case "(($ac_try" in |
| 4458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4459 | *) ac_try_echo=$ac_try;; |
| 4460 | esac |
| 4461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4462 | (eval "$ac_link") 2>conftest.er1 |
| 4463 | ac_status=$? |
| 4464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4465 | rm -f conftest.er1 |
| 4466 | cat conftest.err >&5 |
| 4467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4468 | (exit $ac_status); } && { |
| 4469 | test -z "$ac_cxx_werror_flag" || |
| 4470 | test ! -s conftest.err |
| 4471 | } && test -s conftest$ac_exeext && |
| 4472 | $as_test_x conftest$ac_exeext; then |
| 4473 | ac_cv_func_connect=yes |
| 4474 | else |
| 4475 | echo "$as_me: failed program was:" >&5 |
| 4476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4477 | |
| 4478 | ac_cv_func_connect=no |
| 4479 | fi |
| 4480 | |
| 4481 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4482 | conftest$ac_exeext conftest.$ac_ext |
| 4483 | fi |
| 4484 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 4485 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } |
| 4486 | |
| 4487 | if test $ac_cv_func_connect = no; then |
| 4488 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 4489 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
| 4490 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 4491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4492 | else |
| 4493 | ac_check_lib_save_LIBS=$LIBS |
| 4494 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| 4495 | cat >conftest.$ac_ext <<_ACEOF |
| 4496 | /* confdefs.h. */ |
| 4497 | _ACEOF |
| 4498 | cat confdefs.h >>conftest.$ac_ext |
| 4499 | cat >>conftest.$ac_ext <<_ACEOF |
| 4500 | /* end confdefs.h. */ |
| 4501 | |
| 4502 | /* Override any GCC internal prototype to avoid an error. |
| 4503 | Use char because int might match the return type of a GCC |
| 4504 | builtin and then its argument prototype would still apply. */ |
| 4505 | #ifdef __cplusplus |
| 4506 | extern "C" |
| 4507 | #endif |
| 4508 | char connect (); |
| 4509 | int |
| 4510 | main () |
| 4511 | { |
| 4512 | return connect (); |
| 4513 | ; |
| 4514 | return 0; |
| 4515 | } |
| 4516 | _ACEOF |
| 4517 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4518 | if { (ac_try="$ac_link" |
| 4519 | case "(($ac_try" in |
| 4520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4521 | *) ac_try_echo=$ac_try;; |
| 4522 | esac |
| 4523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4524 | (eval "$ac_link") 2>conftest.er1 |
| 4525 | ac_status=$? |
| 4526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4527 | rm -f conftest.er1 |
| 4528 | cat conftest.err >&5 |
| 4529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4530 | (exit $ac_status); } && { |
| 4531 | test -z "$ac_cxx_werror_flag" || |
| 4532 | test ! -s conftest.err |
| 4533 | } && test -s conftest$ac_exeext && |
| 4534 | $as_test_x conftest$ac_exeext; then |
| 4535 | ac_cv_lib_socket_connect=yes |
| 4536 | else |
| 4537 | echo "$as_me: failed program was:" >&5 |
| 4538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4539 | |
| 4540 | ac_cv_lib_socket_connect=no |
| 4541 | fi |
| 4542 | |
| 4543 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4544 | conftest$ac_exeext conftest.$ac_ext |
| 4545 | LIBS=$ac_check_lib_save_LIBS |
| 4546 | fi |
| 4547 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 4548 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
| 4549 | if test $ac_cv_lib_socket_connect = yes; then |
| 4550 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 4551 | fi |
| 4552 | |
| 4553 | fi |
| 4554 | |
| 4555 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 4556 | { echo "$as_me:$LINENO: checking for remove" >&5 |
| 4557 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } |
| 4558 | if test "${ac_cv_func_remove+set}" = set; then |
| 4559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4560 | else |
| 4561 | cat >conftest.$ac_ext <<_ACEOF |
| 4562 | /* confdefs.h. */ |
| 4563 | _ACEOF |
| 4564 | cat confdefs.h >>conftest.$ac_ext |
| 4565 | cat >>conftest.$ac_ext <<_ACEOF |
| 4566 | /* end confdefs.h. */ |
| 4567 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 4568 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4569 | #define remove innocuous_remove |
| 4570 | |
| 4571 | /* System header to define __stub macros and hopefully few prototypes, |
| 4572 | which can conflict with char remove (); below. |
| 4573 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4574 | <limits.h> exists even on freestanding compilers. */ |
| 4575 | |
| 4576 | #ifdef __STDC__ |
| 4577 | # include <limits.h> |
| 4578 | #else |
| 4579 | # include <assert.h> |
| 4580 | #endif |
| 4581 | |
| 4582 | #undef remove |
| 4583 | |
| 4584 | /* Override any GCC internal prototype to avoid an error. |
| 4585 | Use char because int might match the return type of a GCC |
| 4586 | builtin and then its argument prototype would still apply. */ |
| 4587 | #ifdef __cplusplus |
| 4588 | extern "C" |
| 4589 | #endif |
| 4590 | char remove (); |
| 4591 | /* The GNU C library defines this for functions which it implements |
| 4592 | to always fail with ENOSYS. Some functions are actually named |
| 4593 | something starting with __ and the normal name is an alias. */ |
| 4594 | #if defined __stub_remove || defined __stub___remove |
| 4595 | choke me |
| 4596 | #endif |
| 4597 | |
| 4598 | int |
| 4599 | main () |
| 4600 | { |
| 4601 | return remove (); |
| 4602 | ; |
| 4603 | return 0; |
| 4604 | } |
| 4605 | _ACEOF |
| 4606 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4607 | if { (ac_try="$ac_link" |
| 4608 | case "(($ac_try" in |
| 4609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4610 | *) ac_try_echo=$ac_try;; |
| 4611 | esac |
| 4612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4613 | (eval "$ac_link") 2>conftest.er1 |
| 4614 | ac_status=$? |
| 4615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4616 | rm -f conftest.er1 |
| 4617 | cat conftest.err >&5 |
| 4618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4619 | (exit $ac_status); } && { |
| 4620 | test -z "$ac_cxx_werror_flag" || |
| 4621 | test ! -s conftest.err |
| 4622 | } && test -s conftest$ac_exeext && |
| 4623 | $as_test_x conftest$ac_exeext; then |
| 4624 | ac_cv_func_remove=yes |
| 4625 | else |
| 4626 | echo "$as_me: failed program was:" >&5 |
| 4627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4628 | |
| 4629 | ac_cv_func_remove=no |
| 4630 | fi |
| 4631 | |
| 4632 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4633 | conftest$ac_exeext conftest.$ac_ext |
| 4634 | fi |
| 4635 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 4636 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } |
| 4637 | |
| 4638 | if test $ac_cv_func_remove = no; then |
| 4639 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 4640 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } |
| 4641 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 4642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4643 | else |
| 4644 | ac_check_lib_save_LIBS=$LIBS |
| 4645 | LIBS="-lposix $LIBS" |
| 4646 | cat >conftest.$ac_ext <<_ACEOF |
| 4647 | /* confdefs.h. */ |
| 4648 | _ACEOF |
| 4649 | cat confdefs.h >>conftest.$ac_ext |
| 4650 | cat >>conftest.$ac_ext <<_ACEOF |
| 4651 | /* end confdefs.h. */ |
| 4652 | |
| 4653 | /* Override any GCC internal prototype to avoid an error. |
| 4654 | Use char because int might match the return type of a GCC |
| 4655 | builtin and then its argument prototype would still apply. */ |
| 4656 | #ifdef __cplusplus |
| 4657 | extern "C" |
| 4658 | #endif |
| 4659 | char remove (); |
| 4660 | int |
| 4661 | main () |
| 4662 | { |
| 4663 | return remove (); |
| 4664 | ; |
| 4665 | return 0; |
| 4666 | } |
| 4667 | _ACEOF |
| 4668 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4669 | if { (ac_try="$ac_link" |
| 4670 | case "(($ac_try" in |
| 4671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4672 | *) ac_try_echo=$ac_try;; |
| 4673 | esac |
| 4674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4675 | (eval "$ac_link") 2>conftest.er1 |
| 4676 | ac_status=$? |
| 4677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4678 | rm -f conftest.er1 |
| 4679 | cat conftest.err >&5 |
| 4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4681 | (exit $ac_status); } && { |
| 4682 | test -z "$ac_cxx_werror_flag" || |
| 4683 | test ! -s conftest.err |
| 4684 | } && test -s conftest$ac_exeext && |
| 4685 | $as_test_x conftest$ac_exeext; then |
| 4686 | ac_cv_lib_posix_remove=yes |
| 4687 | else |
| 4688 | echo "$as_me: failed program was:" >&5 |
| 4689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4690 | |
| 4691 | ac_cv_lib_posix_remove=no |
| 4692 | fi |
| 4693 | |
| 4694 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4695 | conftest$ac_exeext conftest.$ac_ext |
| 4696 | LIBS=$ac_check_lib_save_LIBS |
| 4697 | fi |
| 4698 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 4699 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } |
| 4700 | if test $ac_cv_lib_posix_remove = yes; then |
| 4701 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 4702 | fi |
| 4703 | |
| 4704 | fi |
| 4705 | |
| 4706 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 4707 | { echo "$as_me:$LINENO: checking for shmat" >&5 |
| 4708 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } |
| 4709 | if test "${ac_cv_func_shmat+set}" = set; then |
| 4710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4711 | else |
| 4712 | cat >conftest.$ac_ext <<_ACEOF |
| 4713 | /* confdefs.h. */ |
| 4714 | _ACEOF |
| 4715 | cat confdefs.h >>conftest.$ac_ext |
| 4716 | cat >>conftest.$ac_ext <<_ACEOF |
| 4717 | /* end confdefs.h. */ |
| 4718 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 4719 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4720 | #define shmat innocuous_shmat |
| 4721 | |
| 4722 | /* System header to define __stub macros and hopefully few prototypes, |
| 4723 | which can conflict with char shmat (); below. |
| 4724 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4725 | <limits.h> exists even on freestanding compilers. */ |
| 4726 | |
| 4727 | #ifdef __STDC__ |
| 4728 | # include <limits.h> |
| 4729 | #else |
| 4730 | # include <assert.h> |
| 4731 | #endif |
| 4732 | |
| 4733 | #undef shmat |
| 4734 | |
| 4735 | /* Override any GCC internal prototype to avoid an error. |
| 4736 | Use char because int might match the return type of a GCC |
| 4737 | builtin and then its argument prototype would still apply. */ |
| 4738 | #ifdef __cplusplus |
| 4739 | extern "C" |
| 4740 | #endif |
| 4741 | char shmat (); |
| 4742 | /* The GNU C library defines this for functions which it implements |
| 4743 | to always fail with ENOSYS. Some functions are actually named |
| 4744 | something starting with __ and the normal name is an alias. */ |
| 4745 | #if defined __stub_shmat || defined __stub___shmat |
| 4746 | choke me |
| 4747 | #endif |
| 4748 | |
| 4749 | int |
| 4750 | main () |
| 4751 | { |
| 4752 | return shmat (); |
| 4753 | ; |
| 4754 | return 0; |
| 4755 | } |
| 4756 | _ACEOF |
| 4757 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4758 | if { (ac_try="$ac_link" |
| 4759 | case "(($ac_try" in |
| 4760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4761 | *) ac_try_echo=$ac_try;; |
| 4762 | esac |
| 4763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4764 | (eval "$ac_link") 2>conftest.er1 |
| 4765 | ac_status=$? |
| 4766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4767 | rm -f conftest.er1 |
| 4768 | cat conftest.err >&5 |
| 4769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4770 | (exit $ac_status); } && { |
| 4771 | test -z "$ac_cxx_werror_flag" || |
| 4772 | test ! -s conftest.err |
| 4773 | } && test -s conftest$ac_exeext && |
| 4774 | $as_test_x conftest$ac_exeext; then |
| 4775 | ac_cv_func_shmat=yes |
| 4776 | else |
| 4777 | echo "$as_me: failed program was:" >&5 |
| 4778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4779 | |
| 4780 | ac_cv_func_shmat=no |
| 4781 | fi |
| 4782 | |
| 4783 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4784 | conftest$ac_exeext conftest.$ac_ext |
| 4785 | fi |
| 4786 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 4787 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } |
| 4788 | |
| 4789 | if test $ac_cv_func_shmat = no; then |
| 4790 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 4791 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } |
| 4792 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 4793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4794 | else |
| 4795 | ac_check_lib_save_LIBS=$LIBS |
| 4796 | LIBS="-lipc $LIBS" |
| 4797 | cat >conftest.$ac_ext <<_ACEOF |
| 4798 | /* confdefs.h. */ |
| 4799 | _ACEOF |
| 4800 | cat confdefs.h >>conftest.$ac_ext |
| 4801 | cat >>conftest.$ac_ext <<_ACEOF |
| 4802 | /* end confdefs.h. */ |
| 4803 | |
| 4804 | /* Override any GCC internal prototype to avoid an error. |
| 4805 | Use char because int might match the return type of a GCC |
| 4806 | builtin and then its argument prototype would still apply. */ |
| 4807 | #ifdef __cplusplus |
| 4808 | extern "C" |
| 4809 | #endif |
| 4810 | char shmat (); |
| 4811 | int |
| 4812 | main () |
| 4813 | { |
| 4814 | return shmat (); |
| 4815 | ; |
| 4816 | return 0; |
| 4817 | } |
| 4818 | _ACEOF |
| 4819 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4820 | if { (ac_try="$ac_link" |
| 4821 | case "(($ac_try" in |
| 4822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4823 | *) ac_try_echo=$ac_try;; |
| 4824 | esac |
| 4825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4826 | (eval "$ac_link") 2>conftest.er1 |
| 4827 | ac_status=$? |
| 4828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4829 | rm -f conftest.er1 |
| 4830 | cat conftest.err >&5 |
| 4831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4832 | (exit $ac_status); } && { |
| 4833 | test -z "$ac_cxx_werror_flag" || |
| 4834 | test ! -s conftest.err |
| 4835 | } && test -s conftest$ac_exeext && |
| 4836 | $as_test_x conftest$ac_exeext; then |
| 4837 | ac_cv_lib_ipc_shmat=yes |
| 4838 | else |
| 4839 | echo "$as_me: failed program was:" >&5 |
| 4840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4841 | |
| 4842 | ac_cv_lib_ipc_shmat=no |
| 4843 | fi |
| 4844 | |
| 4845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4846 | conftest$ac_exeext conftest.$ac_ext |
| 4847 | LIBS=$ac_check_lib_save_LIBS |
| 4848 | fi |
| 4849 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 4850 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } |
| 4851 | if test $ac_cv_lib_ipc_shmat = yes; then |
| 4852 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 4853 | fi |
| 4854 | |
| 4855 | fi |
| 4856 | fi |
| 4857 | |
| 4858 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 4859 | ac_save_LDFLAGS=$LDFLAGS |
| 4860 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 4861 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 4862 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 4863 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 4864 | # These have to be linked with before -lX11, unlike the other |
| 4865 | # libraries we check for below, so use a different variable. |
| 4866 | # John Interrante, Karl Berry |
| 4867 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 4868 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } |
| 4869 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 4870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4871 | else |
| 4872 | ac_check_lib_save_LIBS=$LIBS |
| 4873 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 4874 | cat >conftest.$ac_ext <<_ACEOF |
| 4875 | /* confdefs.h. */ |
| 4876 | _ACEOF |
| 4877 | cat confdefs.h >>conftest.$ac_ext |
| 4878 | cat >>conftest.$ac_ext <<_ACEOF |
| 4879 | /* end confdefs.h. */ |
| 4880 | |
| 4881 | /* Override any GCC internal prototype to avoid an error. |
| 4882 | Use char because int might match the return type of a GCC |
| 4883 | builtin and then its argument prototype would still apply. */ |
| 4884 | #ifdef __cplusplus |
| 4885 | extern "C" |
| 4886 | #endif |
| 4887 | char IceConnectionNumber (); |
| 4888 | int |
| 4889 | main () |
| 4890 | { |
| 4891 | return IceConnectionNumber (); |
| 4892 | ; |
| 4893 | return 0; |
| 4894 | } |
| 4895 | _ACEOF |
| 4896 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4897 | if { (ac_try="$ac_link" |
| 4898 | case "(($ac_try" in |
| 4899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4900 | *) ac_try_echo=$ac_try;; |
| 4901 | esac |
| 4902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4903 | (eval "$ac_link") 2>conftest.er1 |
| 4904 | ac_status=$? |
| 4905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4906 | rm -f conftest.er1 |
| 4907 | cat conftest.err >&5 |
| 4908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4909 | (exit $ac_status); } && { |
| 4910 | test -z "$ac_cxx_werror_flag" || |
| 4911 | test ! -s conftest.err |
| 4912 | } && test -s conftest$ac_exeext && |
| 4913 | $as_test_x conftest$ac_exeext; then |
| 4914 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 4915 | else |
| 4916 | echo "$as_me: failed program was:" >&5 |
| 4917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4918 | |
| 4919 | ac_cv_lib_ICE_IceConnectionNumber=no |
| 4920 | fi |
| 4921 | |
| 4922 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4923 | conftest$ac_exeext conftest.$ac_ext |
| 4924 | LIBS=$ac_check_lib_save_LIBS |
| 4925 | fi |
| 4926 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 4927 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| 4928 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
| 4929 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 4930 | fi |
| 4931 | |
| 4932 | LDFLAGS=$ac_save_LDFLAGS |
| 4933 | |
| 4934 | fi |
| 4935 | |
| 4936 | |
| 4937 | |
| 4938 | # Check whether --with-installed-zlib was given. |
| 4939 | if test "${with_installed_zlib+set}" = set; then |
| 4940 | withval=$with_installed_zlib; |
| 4941 | fi |
| 4942 | |
| 4943 | |
| 4944 | if test "$with_installed_zlib" = yes; then |
| 4945 | echo "using installed zlib" |
| 4946 | ZLIB_LIB=-lz |
| 4947 | else |
| 4948 | ZLIB_DIR='$(COMMON)/zlib' |
| 4949 | ZLIB_INCLUDE='-I$(COMMON)/zlib' |
| 4950 | ZLIB_LIB='$(COMMON)/zlib/libz.a' |
| 4951 | fi |
| 4952 | |
| 4953 | |
| 4954 | |
| 4955 | |
| 4956 | |
| 4957 | |
| 4958 | # Check whether --with-installed-jpeg was given. |
| 4959 | if test "${with_installed_jpeg+set}" = set; then |
| 4960 | withval=$with_installed_jpeg; |
| 4961 | fi |
| 4962 | |
| 4963 | |
| 4964 | if test "$with_installed_jpeg" = yes; then |
| 4965 | echo "using installed jpeg" |
| 4966 | JPEG_LIB=-ljpeg |
| 4967 | else |
| 4968 | JPEG_DIR='$(COMMON)/jpeg/build' |
| 4969 | JPEG_INCLUDE='-I$(COMMON)/jpeg' |
| 4970 | JPEG_LIB='$(COMMON)/jpeg/build/libjpeg.a' |
| 4971 | fi |
| 4972 | |
| 4973 | |
| 4974 | |
| 4975 | |
| 4976 | |
| 4977 | # Check whether --enable-vncconfig was given. |
| 4978 | if test "${enable_vncconfig+set}" = set; then |
| 4979 | enableval=$enable_vncconfig; |
| 4980 | fi |
| 4981 | |
| 4982 | if test "$enable_vncconfig" = no; then |
| 4983 | echo "vncconfig utility will not be built" |
| 4984 | VNCCONFIG_DIR= |
| 4985 | else |
| 4986 | VNCCONFIG_DIR='vncconfig' |
| 4987 | fi |
| 4988 | |
| 4989 | |
| 4990 | { echo "$as_me:$LINENO: checking for XTestGrabControl in -lXtst" >&5 |
| 4991 | echo $ECHO_N "checking for XTestGrabControl in -lXtst... $ECHO_C" >&6; } |
| 4992 | if test "${ac_cv_lib_Xtst_XTestGrabControl+set}" = set; then |
| 4993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4994 | else |
| 4995 | ac_check_lib_save_LIBS=$LIBS |
| 4996 | LIBS="-lXtst "$X_LIBS" -lXext -lX11 $LIBS" |
| 4997 | cat >conftest.$ac_ext <<_ACEOF |
| 4998 | /* confdefs.h. */ |
| 4999 | _ACEOF |
| 5000 | cat confdefs.h >>conftest.$ac_ext |
| 5001 | cat >>conftest.$ac_ext <<_ACEOF |
| 5002 | /* end confdefs.h. */ |
| 5003 | |
| 5004 | /* Override any GCC internal prototype to avoid an error. |
| 5005 | Use char because int might match the return type of a GCC |
| 5006 | builtin and then its argument prototype would still apply. */ |
| 5007 | #ifdef __cplusplus |
| 5008 | extern "C" |
| 5009 | #endif |
| 5010 | char XTestGrabControl (); |
| 5011 | int |
| 5012 | main () |
| 5013 | { |
| 5014 | return XTestGrabControl (); |
| 5015 | ; |
| 5016 | return 0; |
| 5017 | } |
| 5018 | _ACEOF |
| 5019 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5020 | if { (ac_try="$ac_link" |
| 5021 | case "(($ac_try" in |
| 5022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5023 | *) ac_try_echo=$ac_try;; |
| 5024 | esac |
| 5025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5026 | (eval "$ac_link") 2>conftest.er1 |
| 5027 | ac_status=$? |
| 5028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5029 | rm -f conftest.er1 |
| 5030 | cat conftest.err >&5 |
| 5031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5032 | (exit $ac_status); } && { |
| 5033 | test -z "$ac_cxx_werror_flag" || |
| 5034 | test ! -s conftest.err |
| 5035 | } && test -s conftest$ac_exeext && |
| 5036 | $as_test_x conftest$ac_exeext; then |
| 5037 | ac_cv_lib_Xtst_XTestGrabControl=yes |
| 5038 | else |
| 5039 | echo "$as_me: failed program was:" >&5 |
| 5040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5041 | |
| 5042 | ac_cv_lib_Xtst_XTestGrabControl=no |
| 5043 | fi |
| 5044 | |
| 5045 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5046 | conftest$ac_exeext conftest.$ac_ext |
| 5047 | LIBS=$ac_check_lib_save_LIBS |
| 5048 | fi |
| 5049 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestGrabControl" >&5 |
| 5050 | echo "${ECHO_T}$ac_cv_lib_Xtst_XTestGrabControl" >&6; } |
| 5051 | if test $ac_cv_lib_Xtst_XTestGrabControl = yes; then |
| 5052 | USE_XTEST=yes |
| 5053 | else |
| 5054 | USE_XTEST= |
| 5055 | fi |
| 5056 | |
| 5057 | if test "$USE_XTEST" = yes; then |
| 5058 | XTEST_DEFINE='-DHAVE_XTEST' |
| 5059 | XTEST_LIB=-lXtst |
| 5060 | else |
| 5061 | echo Warning: No XTest extension, building x0vncserver view-only |
| 5062 | XTEST_DEFINE= |
| 5063 | XTEST_LIB= |
| 5064 | fi |
| 5065 | |
| 5066 | |
| 5067 | |
| 5068 | if test "$USE_READDISPLAY" = yes; then |
| 5069 | READDISPLAY_DEFINE='-DHAVE_READDISPLAY' |
| 5070 | elif test "$USE_SUN_OVL" = yes; then |
| 5071 | READDISPLAY_DEFINE='-DHAVE_SUN_OVL' |
| 5072 | else |
| 5073 | READDISPLAY_DEFINE= |
| 5074 | fi |
| 5075 | |
| 5076 | |
| 5077 | |
| 5078 | ac_ext=c |
| 5079 | ac_cpp='$CPP $CPPFLAGS' |
| 5080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5083 | |
| 5084 | |
| 5085 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 5086 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
| 5087 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 5088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5089 | else |
| 5090 | cat >conftest.$ac_ext <<_ACEOF |
| 5091 | /* confdefs.h. */ |
| 5092 | _ACEOF |
| 5093 | cat confdefs.h >>conftest.$ac_ext |
| 5094 | cat >>conftest.$ac_ext <<_ACEOF |
| 5095 | /* end confdefs.h. */ |
| 5096 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 5097 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5098 | #define gethostbyname innocuous_gethostbyname |
| 5099 | |
| 5100 | /* System header to define __stub macros and hopefully few prototypes, |
| 5101 | which can conflict with char gethostbyname (); below. |
| 5102 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5103 | <limits.h> exists even on freestanding compilers. */ |
| 5104 | |
| 5105 | #ifdef __STDC__ |
| 5106 | # include <limits.h> |
| 5107 | #else |
| 5108 | # include <assert.h> |
| 5109 | #endif |
| 5110 | |
| 5111 | #undef gethostbyname |
| 5112 | |
| 5113 | /* Override any GCC internal prototype to avoid an error. |
| 5114 | Use char because int might match the return type of a GCC |
| 5115 | builtin and then its argument prototype would still apply. */ |
| 5116 | #ifdef __cplusplus |
| 5117 | extern "C" |
| 5118 | #endif |
| 5119 | char gethostbyname (); |
| 5120 | /* The GNU C library defines this for functions which it implements |
| 5121 | to always fail with ENOSYS. Some functions are actually named |
| 5122 | something starting with __ and the normal name is an alias. */ |
| 5123 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
| 5124 | choke me |
| 5125 | #endif |
| 5126 | |
| 5127 | int |
| 5128 | main () |
| 5129 | { |
| 5130 | return gethostbyname (); |
| 5131 | ; |
| 5132 | return 0; |
| 5133 | } |
| 5134 | _ACEOF |
| 5135 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5136 | if { (ac_try="$ac_link" |
| 5137 | case "(($ac_try" in |
| 5138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5139 | *) ac_try_echo=$ac_try;; |
| 5140 | esac |
| 5141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5142 | (eval "$ac_link") 2>conftest.er1 |
| 5143 | ac_status=$? |
| 5144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5145 | rm -f conftest.er1 |
| 5146 | cat conftest.err >&5 |
| 5147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5148 | (exit $ac_status); } && { |
| 5149 | test -z "$ac_c_werror_flag" || |
| 5150 | test ! -s conftest.err |
| 5151 | } && test -s conftest$ac_exeext && |
| 5152 | $as_test_x conftest$ac_exeext; then |
| 5153 | ac_cv_func_gethostbyname=yes |
| 5154 | else |
| 5155 | echo "$as_me: failed program was:" >&5 |
| 5156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5157 | |
| 5158 | ac_cv_func_gethostbyname=no |
| 5159 | fi |
| 5160 | |
| 5161 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5162 | conftest$ac_exeext conftest.$ac_ext |
| 5163 | fi |
| 5164 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 5165 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
| 5166 | if test $ac_cv_func_gethostbyname = yes; then |
| 5167 | INET_LIB_REQ= |
| 5168 | else |
| 5169 | INET_LIB_REQ=yes |
| 5170 | fi |
| 5171 | |
| 5172 | if test "$INET_LIB_REQ" = yes; then |
| 5173 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 5174 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } |
| 5175 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 5176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5177 | else |
| 5178 | ac_check_lib_save_LIBS=$LIBS |
| 5179 | LIBS="-lbsd $LIBS" |
| 5180 | cat >conftest.$ac_ext <<_ACEOF |
| 5181 | /* confdefs.h. */ |
| 5182 | _ACEOF |
| 5183 | cat confdefs.h >>conftest.$ac_ext |
| 5184 | cat >>conftest.$ac_ext <<_ACEOF |
| 5185 | /* end confdefs.h. */ |
| 5186 | |
| 5187 | /* Override any GCC internal prototype to avoid an error. |
| 5188 | Use char because int might match the return type of a GCC |
| 5189 | builtin and then its argument prototype would still apply. */ |
| 5190 | #ifdef __cplusplus |
| 5191 | extern "C" |
| 5192 | #endif |
| 5193 | char gethostbyname (); |
| 5194 | int |
| 5195 | main () |
| 5196 | { |
| 5197 | return gethostbyname (); |
| 5198 | ; |
| 5199 | return 0; |
| 5200 | } |
| 5201 | _ACEOF |
| 5202 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5203 | if { (ac_try="$ac_link" |
| 5204 | case "(($ac_try" in |
| 5205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5206 | *) ac_try_echo=$ac_try;; |
| 5207 | esac |
| 5208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5209 | (eval "$ac_link") 2>conftest.er1 |
| 5210 | ac_status=$? |
| 5211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5212 | rm -f conftest.er1 |
| 5213 | cat conftest.err >&5 |
| 5214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5215 | (exit $ac_status); } && { |
| 5216 | test -z "$ac_c_werror_flag" || |
| 5217 | test ! -s conftest.err |
| 5218 | } && test -s conftest$ac_exeext && |
| 5219 | $as_test_x conftest$ac_exeext; then |
| 5220 | ac_cv_lib_bsd_gethostbyname=yes |
| 5221 | else |
| 5222 | echo "$as_me: failed program was:" >&5 |
| 5223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5224 | |
| 5225 | ac_cv_lib_bsd_gethostbyname=no |
| 5226 | fi |
| 5227 | |
| 5228 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5229 | conftest$ac_exeext conftest.$ac_ext |
| 5230 | LIBS=$ac_check_lib_save_LIBS |
| 5231 | fi |
| 5232 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 5233 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } |
| 5234 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 5235 | INET_LIB=-lbsd |
| 5236 | else |
| 5237 | INET_LIB= |
| 5238 | fi |
| 5239 | |
| 5240 | fi |
| 5241 | ac_ext=cpp |
| 5242 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5243 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5244 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5245 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5246 | |
| 5247 | |
| 5248 | |
| 5249 | ac_aux_dir= |
| 5250 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 5251 | if test -f "$ac_dir/install-sh"; then |
| 5252 | ac_aux_dir=$ac_dir |
| 5253 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 5254 | break |
| 5255 | elif test -f "$ac_dir/install.sh"; then |
| 5256 | ac_aux_dir=$ac_dir |
| 5257 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 5258 | break |
| 5259 | elif test -f "$ac_dir/shtool"; then |
| 5260 | ac_aux_dir=$ac_dir |
| 5261 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 5262 | break |
| 5263 | fi |
| 5264 | done |
| 5265 | if test -z "$ac_aux_dir"; then |
| 5266 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 5267 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
| 5268 | { (exit 1); exit 1; }; } |
| 5269 | fi |
| 5270 | |
| 5271 | # These three variables are undocumented and unsupported, |
| 5272 | # and are intended to be withdrawn in a future Autoconf release. |
| 5273 | # They can cause serious problems if a builder's source tree is in a directory |
| 5274 | # whose full name contains unusual characters. |
| 5275 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 5276 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 5277 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 5278 | |
| 5279 | |
| 5280 | # Find a good install program. We prefer a C program (faster), |
| 5281 | # so one script is as good as another. But avoid the broken or |
| 5282 | # incompatible versions: |
| 5283 | # SysV /etc/install, /usr/sbin/install |
| 5284 | # SunOS /usr/etc/install |
| 5285 | # IRIX /sbin/install |
| 5286 | # AIX /bin/install |
| 5287 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5288 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5289 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5290 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5291 | # OS/2's system install, which has a completely different semantic |
| 5292 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5293 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 5294 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 5295 | if test -z "$INSTALL"; then |
| 5296 | if test "${ac_cv_path_install+set}" = set; then |
| 5297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5298 | else |
| 5299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5300 | for as_dir in $PATH |
| 5301 | do |
| 5302 | IFS=$as_save_IFS |
| 5303 | test -z "$as_dir" && as_dir=. |
| 5304 | # Account for people who put trailing slashes in PATH elements. |
| 5305 | case $as_dir/ in |
| 5306 | ./ | .// | /cC/* | \ |
| 5307 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5308 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 5309 | /usr/ucb/* ) ;; |
| 5310 | *) |
| 5311 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5312 | # Don't use installbsd from OSF since it installs stuff as root |
| 5313 | # by default. |
| 5314 | for ac_prog in ginstall scoinst install; do |
| 5315 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5316 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 5317 | if test $ac_prog = install && |
| 5318 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5319 | # AIX install. It has an incompatible calling convention. |
| 5320 | : |
| 5321 | elif test $ac_prog = install && |
| 5322 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5323 | # program-specific install script used by HP pwplus--don't use. |
| 5324 | : |
| 5325 | else |
| 5326 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5327 | break 3 |
| 5328 | fi |
| 5329 | fi |
| 5330 | done |
| 5331 | done |
| 5332 | ;; |
| 5333 | esac |
| 5334 | done |
| 5335 | IFS=$as_save_IFS |
| 5336 | |
| 5337 | |
| 5338 | fi |
| 5339 | if test "${ac_cv_path_install+set}" = set; then |
| 5340 | INSTALL=$ac_cv_path_install |
| 5341 | else |
| 5342 | # As a last resort, use the slow shell script. Don't cache a |
| 5343 | # value for INSTALL within a source directory, because that will |
| 5344 | # break other packages using the cache if that directory is |
| 5345 | # removed, or if the value is a relative name. |
| 5346 | INSTALL=$ac_install_sh |
| 5347 | fi |
| 5348 | fi |
| 5349 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5350 | echo "${ECHO_T}$INSTALL" >&6; } |
| 5351 | |
| 5352 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5353 | # It thinks the first close brace ends the variable substitution. |
| 5354 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5355 | |
| 5356 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5357 | |
| 5358 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5359 | |
| 5360 | |
| 5361 | MKINSTALLDIRS= |
| 5362 | if test -n "$ac_aux_dir"; then |
| 5363 | case "$ac_aux_dir" in |
| 5364 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5365 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5366 | esac |
| 5367 | fi |
| 5368 | if test -z "$MKINSTALLDIRS"; then |
| 5369 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5370 | fi |
| 5371 | |
| 5372 | |
| 5373 | |
| 5374 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 5375 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 5376 | # Check whether --enable-nls was given. |
| 5377 | if test "${enable_nls+set}" = set; then |
| 5378 | enableval=$enable_nls; USE_NLS=$enableval |
| 5379 | else |
| 5380 | USE_NLS=yes |
| 5381 | fi |
| 5382 | |
| 5383 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 5384 | echo "${ECHO_T}$USE_NLS" >&6; } |
| 5385 | |
| 5386 | |
| 5387 | |
| 5388 | |
| 5389 | |
| 5390 | |
| 5391 | # Prepare PATH_SEPARATOR. |
| 5392 | # The user is always right. |
| 5393 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5394 | echo "#! /bin/sh" >conf$$.sh |
| 5395 | echo "exit 0" >>conf$$.sh |
| 5396 | chmod +x conf$$.sh |
| 5397 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5398 | PATH_SEPARATOR=';' |
| 5399 | else |
| 5400 | PATH_SEPARATOR=: |
| 5401 | fi |
| 5402 | rm -f conf$$.sh |
| 5403 | fi |
| 5404 | |
| 5405 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5406 | # as systems may use methods other than mode bits to determine executability. |
| 5407 | cat >conf$$.file <<_ASEOF |
| 5408 | #! /bin/sh |
| 5409 | exit 0 |
| 5410 | _ASEOF |
| 5411 | chmod +x conf$$.file |
| 5412 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5413 | ac_executable_p="test -x" |
| 5414 | else |
| 5415 | ac_executable_p="test -f" |
| 5416 | fi |
| 5417 | rm -f conf$$.file |
| 5418 | |
| 5419 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5420 | set dummy msgfmt; ac_word=$2 |
| 5421 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5423 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 5424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5425 | else |
| 5426 | case "$MSGFMT" in |
| 5427 | [\\/]* | ?:[\\/]*) |
| 5428 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5429 | ;; |
| 5430 | *) |
| 5431 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5432 | for ac_dir in $PATH; do |
| 5433 | IFS="$ac_save_IFS" |
| 5434 | test -z "$ac_dir" && ac_dir=. |
| 5435 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5436 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5437 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5438 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5439 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5440 | break 2 |
| 5441 | fi |
| 5442 | fi |
| 5443 | done |
| 5444 | done |
| 5445 | IFS="$ac_save_IFS" |
| 5446 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5447 | ;; |
| 5448 | esac |
| 5449 | fi |
| 5450 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5451 | if test "$MSGFMT" != ":"; then |
| 5452 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 5453 | echo "${ECHO_T}$MSGFMT" >&6; } |
| 5454 | else |
| 5455 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5456 | echo "${ECHO_T}no" >&6; } |
| 5457 | fi |
| 5458 | |
| 5459 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5460 | set dummy gmsgfmt; ac_word=$2 |
| 5461 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5463 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 5464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5465 | else |
| 5466 | case $GMSGFMT in |
| 5467 | [\\/]* | ?:[\\/]*) |
| 5468 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5469 | ;; |
| 5470 | *) |
| 5471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5472 | for as_dir in $PATH |
| 5473 | do |
| 5474 | IFS=$as_save_IFS |
| 5475 | test -z "$as_dir" && as_dir=. |
| 5476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5477 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5478 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 5479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5480 | break 2 |
| 5481 | fi |
| 5482 | done |
| 5483 | done |
| 5484 | IFS=$as_save_IFS |
| 5485 | |
| 5486 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5487 | ;; |
| 5488 | esac |
| 5489 | fi |
| 5490 | GMSGFMT=$ac_cv_path_GMSGFMT |
| 5491 | if test -n "$GMSGFMT"; then |
| 5492 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 5493 | echo "${ECHO_T}$GMSGFMT" >&6; } |
| 5494 | else |
| 5495 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5496 | echo "${ECHO_T}no" >&6; } |
| 5497 | fi |
| 5498 | |
| 5499 | |
| 5500 | |
| 5501 | |
| 5502 | # Prepare PATH_SEPARATOR. |
| 5503 | # The user is always right. |
| 5504 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5505 | echo "#! /bin/sh" >conf$$.sh |
| 5506 | echo "exit 0" >>conf$$.sh |
| 5507 | chmod +x conf$$.sh |
| 5508 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5509 | PATH_SEPARATOR=';' |
| 5510 | else |
| 5511 | PATH_SEPARATOR=: |
| 5512 | fi |
| 5513 | rm -f conf$$.sh |
| 5514 | fi |
| 5515 | |
| 5516 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5517 | # as systems may use methods other than mode bits to determine executability. |
| 5518 | cat >conf$$.file <<_ASEOF |
| 5519 | #! /bin/sh |
| 5520 | exit 0 |
| 5521 | _ASEOF |
| 5522 | chmod +x conf$$.file |
| 5523 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5524 | ac_executable_p="test -x" |
| 5525 | else |
| 5526 | ac_executable_p="test -f" |
| 5527 | fi |
| 5528 | rm -f conf$$.file |
| 5529 | |
| 5530 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5531 | set dummy xgettext; ac_word=$2 |
| 5532 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5534 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 5535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5536 | else |
| 5537 | case "$XGETTEXT" in |
| 5538 | [\\/]* | ?:[\\/]*) |
| 5539 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5540 | ;; |
| 5541 | *) |
| 5542 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5543 | for ac_dir in $PATH; do |
| 5544 | IFS="$ac_save_IFS" |
| 5545 | test -z "$ac_dir" && ac_dir=. |
| 5546 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5547 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5548 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5549 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5550 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5551 | break 2 |
| 5552 | fi |
| 5553 | fi |
| 5554 | done |
| 5555 | done |
| 5556 | IFS="$ac_save_IFS" |
| 5557 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5558 | ;; |
| 5559 | esac |
| 5560 | fi |
| 5561 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5562 | if test "$XGETTEXT" != ":"; then |
| 5563 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 5564 | echo "${ECHO_T}$XGETTEXT" >&6; } |
| 5565 | else |
| 5566 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5567 | echo "${ECHO_T}no" >&6; } |
| 5568 | fi |
| 5569 | |
| 5570 | rm -f messages.po |
| 5571 | |
| 5572 | |
| 5573 | # Prepare PATH_SEPARATOR. |
| 5574 | # The user is always right. |
| 5575 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5576 | echo "#! /bin/sh" >conf$$.sh |
| 5577 | echo "exit 0" >>conf$$.sh |
| 5578 | chmod +x conf$$.sh |
| 5579 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5580 | PATH_SEPARATOR=';' |
| 5581 | else |
| 5582 | PATH_SEPARATOR=: |
| 5583 | fi |
| 5584 | rm -f conf$$.sh |
| 5585 | fi |
| 5586 | |
| 5587 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5588 | # as systems may use methods other than mode bits to determine executability. |
| 5589 | cat >conf$$.file <<_ASEOF |
| 5590 | #! /bin/sh |
| 5591 | exit 0 |
| 5592 | _ASEOF |
| 5593 | chmod +x conf$$.file |
| 5594 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5595 | ac_executable_p="test -x" |
| 5596 | else |
| 5597 | ac_executable_p="test -f" |
| 5598 | fi |
| 5599 | rm -f conf$$.file |
| 5600 | |
| 5601 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 5602 | set dummy msgmerge; ac_word=$2 |
| 5603 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5605 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 5606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5607 | else |
| 5608 | case "$MSGMERGE" in |
| 5609 | [\\/]* | ?:[\\/]*) |
| 5610 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 5611 | ;; |
| 5612 | *) |
| 5613 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5614 | for ac_dir in $PATH; do |
| 5615 | IFS="$ac_save_IFS" |
| 5616 | test -z "$ac_dir" && ac_dir=. |
| 5617 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5618 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5619 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 5620 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 5621 | break 2 |
| 5622 | fi |
| 5623 | fi |
| 5624 | done |
| 5625 | done |
| 5626 | IFS="$ac_save_IFS" |
| 5627 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 5628 | ;; |
| 5629 | esac |
| 5630 | fi |
| 5631 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 5632 | if test "$MSGMERGE" != ":"; then |
| 5633 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 5634 | echo "${ECHO_T}$MSGMERGE" >&6; } |
| 5635 | else |
| 5636 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5637 | echo "${ECHO_T}no" >&6; } |
| 5638 | fi |
| 5639 | |
| 5640 | |
| 5641 | if test "$GMSGFMT" != ":"; then |
| 5642 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 5643 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5644 | : ; |
| 5645 | else |
| 5646 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 5647 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 5648 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
| 5649 | GMSGFMT=":" |
| 5650 | fi |
| 5651 | fi |
| 5652 | |
| 5653 | if test "$XGETTEXT" != ":"; then |
| 5654 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5655 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5656 | : ; |
| 5657 | else |
| 5658 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 5659 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } |
| 5660 | XGETTEXT=":" |
| 5661 | fi |
| 5662 | rm -f messages.po |
| 5663 | fi |
| 5664 | |
| 5665 | ac_config_commands="$ac_config_commands default-1" |
| 5666 | |
| 5667 | |
| 5668 | # Make sure we can run config.sub. |
| 5669 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 5670 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 5671 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 5672 | { (exit 1); exit 1; }; } |
| 5673 | |
| 5674 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 5675 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 5676 | if test "${ac_cv_build+set}" = set; then |
| 5677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5678 | else |
| 5679 | ac_build_alias=$build_alias |
| 5680 | test "x$ac_build_alias" = x && |
| 5681 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 5682 | test "x$ac_build_alias" = x && |
| 5683 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 5684 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 5685 | { (exit 1); exit 1; }; } |
| 5686 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 5687 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 5688 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 5689 | { (exit 1); exit 1; }; } |
| 5690 | |
| 5691 | fi |
| 5692 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 5693 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 5694 | case $ac_cv_build in |
| 5695 | *-*-*) ;; |
| 5696 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 5697 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 5698 | { (exit 1); exit 1; }; };; |
| 5699 | esac |
| 5700 | build=$ac_cv_build |
| 5701 | ac_save_IFS=$IFS; IFS='-' |
| 5702 | set x $ac_cv_build |
| 5703 | shift |
| 5704 | build_cpu=$1 |
| 5705 | build_vendor=$2 |
| 5706 | shift; shift |
| 5707 | # Remember, the first character of IFS is used to create $*, |
| 5708 | # except with old shells: |
| 5709 | build_os=$* |
| 5710 | IFS=$ac_save_IFS |
| 5711 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 5712 | |
| 5713 | |
| 5714 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 5715 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 5716 | if test "${ac_cv_host+set}" = set; then |
| 5717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5718 | else |
| 5719 | if test "x$host_alias" = x; then |
| 5720 | ac_cv_host=$ac_cv_build |
| 5721 | else |
| 5722 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 5723 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 5724 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 5725 | { (exit 1); exit 1; }; } |
| 5726 | fi |
| 5727 | |
| 5728 | fi |
| 5729 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 5730 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 5731 | case $ac_cv_host in |
| 5732 | *-*-*) ;; |
| 5733 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 5734 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 5735 | { (exit 1); exit 1; }; };; |
| 5736 | esac |
| 5737 | host=$ac_cv_host |
| 5738 | ac_save_IFS=$IFS; IFS='-' |
| 5739 | set x $ac_cv_host |
| 5740 | shift |
| 5741 | host_cpu=$1 |
| 5742 | host_vendor=$2 |
| 5743 | shift; shift |
| 5744 | # Remember, the first character of IFS is used to create $*, |
| 5745 | # except with old shells: |
| 5746 | host_os=$* |
| 5747 | IFS=$ac_save_IFS |
| 5748 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 5749 | |
| 5750 | |
| 5751 | |
| 5752 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 5753 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
| 5754 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 5755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5756 | else |
| 5757 | ac_check_lib_save_LIBS=$LIBS |
| 5758 | LIBS="-lcposix $LIBS" |
| 5759 | cat >conftest.$ac_ext <<_ACEOF |
| 5760 | /* confdefs.h. */ |
| 5761 | _ACEOF |
| 5762 | cat confdefs.h >>conftest.$ac_ext |
| 5763 | cat >>conftest.$ac_ext <<_ACEOF |
| 5764 | /* end confdefs.h. */ |
| 5765 | |
| 5766 | /* Override any GCC internal prototype to avoid an error. |
| 5767 | Use char because int might match the return type of a GCC |
| 5768 | builtin and then its argument prototype would still apply. */ |
| 5769 | #ifdef __cplusplus |
| 5770 | extern "C" |
| 5771 | #endif |
| 5772 | char strerror (); |
| 5773 | int |
| 5774 | main () |
| 5775 | { |
| 5776 | return strerror (); |
| 5777 | ; |
| 5778 | return 0; |
| 5779 | } |
| 5780 | _ACEOF |
| 5781 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5782 | if { (ac_try="$ac_link" |
| 5783 | case "(($ac_try" in |
| 5784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5785 | *) ac_try_echo=$ac_try;; |
| 5786 | esac |
| 5787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5788 | (eval "$ac_link") 2>conftest.er1 |
| 5789 | ac_status=$? |
| 5790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5791 | rm -f conftest.er1 |
| 5792 | cat conftest.err >&5 |
| 5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5794 | (exit $ac_status); } && { |
| 5795 | test -z "$ac_cxx_werror_flag" || |
| 5796 | test ! -s conftest.err |
| 5797 | } && test -s conftest$ac_exeext && |
| 5798 | $as_test_x conftest$ac_exeext; then |
| 5799 | ac_cv_lib_cposix_strerror=yes |
| 5800 | else |
| 5801 | echo "$as_me: failed program was:" >&5 |
| 5802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5803 | |
| 5804 | ac_cv_lib_cposix_strerror=no |
| 5805 | fi |
| 5806 | |
| 5807 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5808 | conftest$ac_exeext conftest.$ac_ext |
| 5809 | LIBS=$ac_check_lib_save_LIBS |
| 5810 | fi |
| 5811 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 5812 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
| 5813 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 5814 | LIBS="$LIBS -lcposix" |
| 5815 | fi |
| 5816 | |
| 5817 | |
| 5818 | |
| 5819 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 5820 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 5821 | if test "${ac_cv_path_GREP+set}" = set; then |
| 5822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5823 | else |
| 5824 | # Extract the first word of "grep ggrep" to use in msg output |
| 5825 | if test -z "$GREP"; then |
| 5826 | set dummy grep ggrep; ac_prog_name=$2 |
| 5827 | if test "${ac_cv_path_GREP+set}" = set; then |
| 5828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5829 | else |
| 5830 | ac_path_GREP_found=false |
| 5831 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5833 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5834 | do |
| 5835 | IFS=$as_save_IFS |
| 5836 | test -z "$as_dir" && as_dir=. |
| 5837 | for ac_prog in grep ggrep; do |
| 5838 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5839 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5840 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 5841 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5842 | # Check for GNU $ac_path_GREP |
| 5843 | case `"$ac_path_GREP" --version 2>&1` in |
| 5844 | *GNU*) |
| 5845 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5846 | *) |
| 5847 | ac_count=0 |
| 5848 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 5849 | while : |
| 5850 | do |
| 5851 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5852 | mv "conftest.tmp" "conftest.in" |
| 5853 | cp "conftest.in" "conftest.nl" |
| 5854 | echo 'GREP' >> "conftest.nl" |
| 5855 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5856 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5857 | ac_count=`expr $ac_count + 1` |
| 5858 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5859 | # Best one so far, save it but keep looking for a better one |
| 5860 | ac_cv_path_GREP="$ac_path_GREP" |
| 5861 | ac_path_GREP_max=$ac_count |
| 5862 | fi |
| 5863 | # 10*(2^10) chars as input seems more than enough |
| 5864 | test $ac_count -gt 10 && break |
| 5865 | done |
| 5866 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5867 | esac |
| 5868 | |
| 5869 | |
| 5870 | $ac_path_GREP_found && break 3 |
| 5871 | done |
| 5872 | done |
| 5873 | |
| 5874 | done |
| 5875 | IFS=$as_save_IFS |
| 5876 | |
| 5877 | |
| 5878 | fi |
| 5879 | |
| 5880 | GREP="$ac_cv_path_GREP" |
| 5881 | if test -z "$GREP"; then |
| 5882 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 5883 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 5884 | { (exit 1); exit 1; }; } |
| 5885 | fi |
| 5886 | |
| 5887 | else |
| 5888 | ac_cv_path_GREP=$GREP |
| 5889 | fi |
| 5890 | |
| 5891 | |
| 5892 | fi |
| 5893 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 5894 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 5895 | GREP="$ac_cv_path_GREP" |
| 5896 | |
| 5897 | |
| 5898 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5899 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 5900 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 5901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5902 | else |
| 5903 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5904 | then ac_cv_path_EGREP="$GREP -E" |
| 5905 | else |
| 5906 | # Extract the first word of "egrep" to use in msg output |
| 5907 | if test -z "$EGREP"; then |
| 5908 | set dummy egrep; ac_prog_name=$2 |
| 5909 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 5910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5911 | else |
| 5912 | ac_path_EGREP_found=false |
| 5913 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5915 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5916 | do |
| 5917 | IFS=$as_save_IFS |
| 5918 | test -z "$as_dir" && as_dir=. |
| 5919 | for ac_prog in egrep; do |
| 5920 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5921 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5922 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 5923 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5924 | # Check for GNU $ac_path_EGREP |
| 5925 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5926 | *GNU*) |
| 5927 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5928 | *) |
| 5929 | ac_count=0 |
| 5930 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 5931 | while : |
| 5932 | do |
| 5933 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5934 | mv "conftest.tmp" "conftest.in" |
| 5935 | cp "conftest.in" "conftest.nl" |
| 5936 | echo 'EGREP' >> "conftest.nl" |
| 5937 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5938 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5939 | ac_count=`expr $ac_count + 1` |
| 5940 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5941 | # Best one so far, save it but keep looking for a better one |
| 5942 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5943 | ac_path_EGREP_max=$ac_count |
| 5944 | fi |
| 5945 | # 10*(2^10) chars as input seems more than enough |
| 5946 | test $ac_count -gt 10 && break |
| 5947 | done |
| 5948 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5949 | esac |
| 5950 | |
| 5951 | |
| 5952 | $ac_path_EGREP_found && break 3 |
| 5953 | done |
| 5954 | done |
| 5955 | |
| 5956 | done |
| 5957 | IFS=$as_save_IFS |
| 5958 | |
| 5959 | |
| 5960 | fi |
| 5961 | |
| 5962 | EGREP="$ac_cv_path_EGREP" |
| 5963 | if test -z "$EGREP"; then |
| 5964 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 5965 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 5966 | { (exit 1); exit 1; }; } |
| 5967 | fi |
| 5968 | |
| 5969 | else |
| 5970 | ac_cv_path_EGREP=$EGREP |
| 5971 | fi |
| 5972 | |
| 5973 | |
| 5974 | fi |
| 5975 | fi |
| 5976 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 5977 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 5978 | EGREP="$ac_cv_path_EGREP" |
| 5979 | |
| 5980 | |
| 5981 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5982 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 5983 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5985 | else |
| 5986 | cat >conftest.$ac_ext <<_ACEOF |
| 5987 | /* confdefs.h. */ |
| 5988 | _ACEOF |
| 5989 | cat confdefs.h >>conftest.$ac_ext |
| 5990 | cat >>conftest.$ac_ext <<_ACEOF |
| 5991 | /* end confdefs.h. */ |
| 5992 | #include <stdlib.h> |
| 5993 | #include <stdarg.h> |
| 5994 | #include <string.h> |
| 5995 | #include <float.h> |
| 5996 | |
| 5997 | int |
| 5998 | main () |
| 5999 | { |
| 6000 | |
| 6001 | ; |
| 6002 | return 0; |
| 6003 | } |
| 6004 | _ACEOF |
| 6005 | rm -f conftest.$ac_objext |
| 6006 | if { (ac_try="$ac_compile" |
| 6007 | case "(($ac_try" in |
| 6008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6009 | *) ac_try_echo=$ac_try;; |
| 6010 | esac |
| 6011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6012 | (eval "$ac_compile") 2>conftest.er1 |
| 6013 | ac_status=$? |
| 6014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6015 | rm -f conftest.er1 |
| 6016 | cat conftest.err >&5 |
| 6017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6018 | (exit $ac_status); } && { |
| 6019 | test -z "$ac_cxx_werror_flag" || |
| 6020 | test ! -s conftest.err |
| 6021 | } && test -s conftest.$ac_objext; then |
| 6022 | ac_cv_header_stdc=yes |
| 6023 | else |
| 6024 | echo "$as_me: failed program was:" >&5 |
| 6025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6026 | |
| 6027 | ac_cv_header_stdc=no |
| 6028 | fi |
| 6029 | |
| 6030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6031 | |
| 6032 | if test $ac_cv_header_stdc = yes; then |
| 6033 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6034 | cat >conftest.$ac_ext <<_ACEOF |
| 6035 | /* confdefs.h. */ |
| 6036 | _ACEOF |
| 6037 | cat confdefs.h >>conftest.$ac_ext |
| 6038 | cat >>conftest.$ac_ext <<_ACEOF |
| 6039 | /* end confdefs.h. */ |
| 6040 | #include <string.h> |
| 6041 | |
| 6042 | _ACEOF |
| 6043 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6044 | $EGREP "memchr" >/dev/null 2>&1; then |
| 6045 | : |
| 6046 | else |
| 6047 | ac_cv_header_stdc=no |
| 6048 | fi |
| 6049 | rm -f conftest* |
| 6050 | |
| 6051 | fi |
| 6052 | |
| 6053 | if test $ac_cv_header_stdc = yes; then |
| 6054 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6055 | cat >conftest.$ac_ext <<_ACEOF |
| 6056 | /* confdefs.h. */ |
| 6057 | _ACEOF |
| 6058 | cat confdefs.h >>conftest.$ac_ext |
| 6059 | cat >>conftest.$ac_ext <<_ACEOF |
| 6060 | /* end confdefs.h. */ |
| 6061 | #include <stdlib.h> |
| 6062 | |
| 6063 | _ACEOF |
| 6064 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6065 | $EGREP "free" >/dev/null 2>&1; then |
| 6066 | : |
| 6067 | else |
| 6068 | ac_cv_header_stdc=no |
| 6069 | fi |
| 6070 | rm -f conftest* |
| 6071 | |
| 6072 | fi |
| 6073 | |
| 6074 | if test $ac_cv_header_stdc = yes; then |
| 6075 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6076 | if test "$cross_compiling" = yes; then |
| 6077 | : |
| 6078 | else |
| 6079 | cat >conftest.$ac_ext <<_ACEOF |
| 6080 | /* confdefs.h. */ |
| 6081 | _ACEOF |
| 6082 | cat confdefs.h >>conftest.$ac_ext |
| 6083 | cat >>conftest.$ac_ext <<_ACEOF |
| 6084 | /* end confdefs.h. */ |
| 6085 | #include <ctype.h> |
| 6086 | #include <stdlib.h> |
| 6087 | #if ((' ' & 0x0FF) == 0x020) |
| 6088 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6089 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6090 | #else |
| 6091 | # define ISLOWER(c) \ |
| 6092 | (('a' <= (c) && (c) <= 'i') \ |
| 6093 | || ('j' <= (c) && (c) <= 'r') \ |
| 6094 | || ('s' <= (c) && (c) <= 'z')) |
| 6095 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6096 | #endif |
| 6097 | |
| 6098 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6099 | int |
| 6100 | main () |
| 6101 | { |
| 6102 | int i; |
| 6103 | for (i = 0; i < 256; i++) |
| 6104 | if (XOR (islower (i), ISLOWER (i)) |
| 6105 | || toupper (i) != TOUPPER (i)) |
| 6106 | return 2; |
| 6107 | return 0; |
| 6108 | } |
| 6109 | _ACEOF |
| 6110 | rm -f conftest$ac_exeext |
| 6111 | if { (ac_try="$ac_link" |
| 6112 | case "(($ac_try" in |
| 6113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6114 | *) ac_try_echo=$ac_try;; |
| 6115 | esac |
| 6116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6117 | (eval "$ac_link") 2>&5 |
| 6118 | ac_status=$? |
| 6119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6120 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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_try") 2>&5 |
| 6127 | ac_status=$? |
| 6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6129 | (exit $ac_status); }; }; then |
| 6130 | : |
| 6131 | else |
| 6132 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6133 | echo "$as_me: failed program was:" >&5 |
| 6134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6135 | |
| 6136 | ( exit $ac_status ) |
| 6137 | ac_cv_header_stdc=no |
| 6138 | fi |
| 6139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6140 | fi |
| 6141 | |
| 6142 | |
| 6143 | fi |
| 6144 | fi |
| 6145 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6146 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
| 6147 | if test $ac_cv_header_stdc = yes; then |
| 6148 | |
| 6149 | cat >>confdefs.h <<\_ACEOF |
| 6150 | #define STDC_HEADERS 1 |
| 6151 | _ACEOF |
| 6152 | |
| 6153 | fi |
| 6154 | |
| 6155 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 6156 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 6157 | if test "${ac_cv_c_const+set}" = set; then |
| 6158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6159 | else |
| 6160 | cat >conftest.$ac_ext <<_ACEOF |
| 6161 | /* confdefs.h. */ |
| 6162 | _ACEOF |
| 6163 | cat confdefs.h >>conftest.$ac_ext |
| 6164 | cat >>conftest.$ac_ext <<_ACEOF |
| 6165 | /* end confdefs.h. */ |
| 6166 | |
| 6167 | int |
| 6168 | main () |
| 6169 | { |
| 6170 | /* FIXME: Include the comments suggested by Paul. */ |
| 6171 | #ifndef __cplusplus |
| 6172 | /* Ultrix mips cc rejects this. */ |
| 6173 | typedef int charset[2]; |
| 6174 | const charset cs; |
| 6175 | /* SunOS 4.1.1 cc rejects this. */ |
| 6176 | char const *const *pcpcc; |
| 6177 | char **ppc; |
| 6178 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6179 | struct point {int x, y;}; |
| 6180 | static struct point const zero = {0,0}; |
| 6181 | /* AIX XL C 1.02.0.0 rejects this. |
| 6182 | It does not let you subtract one const X* pointer from another in |
| 6183 | an arm of an if-expression whose if-part is not a constant |
| 6184 | expression */ |
| 6185 | const char *g = "string"; |
| 6186 | pcpcc = &g + (g ? g-g : 0); |
| 6187 | /* HPUX 7.0 cc rejects these. */ |
| 6188 | ++pcpcc; |
| 6189 | ppc = (char**) pcpcc; |
| 6190 | pcpcc = (char const *const *) ppc; |
| 6191 | { /* SCO 3.2v4 cc rejects this. */ |
| 6192 | char *t; |
| 6193 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6194 | |
| 6195 | *t++ = 0; |
| 6196 | if (s) return 0; |
| 6197 | } |
| 6198 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6199 | int x[] = {25, 17}; |
| 6200 | const int *foo = &x[0]; |
| 6201 | ++foo; |
| 6202 | } |
| 6203 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6204 | typedef const int *iptr; |
| 6205 | iptr p = 0; |
| 6206 | ++p; |
| 6207 | } |
| 6208 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 6209 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6210 | struct s { int j; const int *ap[3]; }; |
| 6211 | struct s *b; b->j = 5; |
| 6212 | } |
| 6213 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6214 | const int foo = 10; |
| 6215 | if (!foo) return 0; |
| 6216 | } |
| 6217 | return !cs[0] && !zero.x; |
| 6218 | #endif |
| 6219 | |
| 6220 | ; |
| 6221 | return 0; |
| 6222 | } |
| 6223 | _ACEOF |
| 6224 | rm -f conftest.$ac_objext |
| 6225 | if { (ac_try="$ac_compile" |
| 6226 | case "(($ac_try" in |
| 6227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6228 | *) ac_try_echo=$ac_try;; |
| 6229 | esac |
| 6230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6231 | (eval "$ac_compile") 2>conftest.er1 |
| 6232 | ac_status=$? |
| 6233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6234 | rm -f conftest.er1 |
| 6235 | cat conftest.err >&5 |
| 6236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6237 | (exit $ac_status); } && { |
| 6238 | test -z "$ac_cxx_werror_flag" || |
| 6239 | test ! -s conftest.err |
| 6240 | } && test -s conftest.$ac_objext; then |
| 6241 | ac_cv_c_const=yes |
| 6242 | else |
| 6243 | echo "$as_me: failed program was:" >&5 |
| 6244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6245 | |
| 6246 | ac_cv_c_const=no |
| 6247 | fi |
| 6248 | |
| 6249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6250 | fi |
| 6251 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 6252 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 6253 | if test $ac_cv_c_const = no; then |
| 6254 | |
| 6255 | cat >>confdefs.h <<\_ACEOF |
| 6256 | #define const |
| 6257 | _ACEOF |
| 6258 | |
| 6259 | fi |
| 6260 | |
| 6261 | |
| 6262 | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 6263 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
| 6264 | if test "${bh_cv_c_signed+set}" = set; then |
| 6265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6266 | else |
| 6267 | cat >conftest.$ac_ext <<_ACEOF |
| 6268 | /* confdefs.h. */ |
| 6269 | _ACEOF |
| 6270 | cat confdefs.h >>conftest.$ac_ext |
| 6271 | cat >>conftest.$ac_ext <<_ACEOF |
| 6272 | /* end confdefs.h. */ |
| 6273 | |
| 6274 | int |
| 6275 | main () |
| 6276 | { |
| 6277 | signed char x; |
| 6278 | ; |
| 6279 | return 0; |
| 6280 | } |
| 6281 | _ACEOF |
| 6282 | rm -f conftest.$ac_objext |
| 6283 | if { (ac_try="$ac_compile" |
| 6284 | case "(($ac_try" in |
| 6285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6286 | *) ac_try_echo=$ac_try;; |
| 6287 | esac |
| 6288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6289 | (eval "$ac_compile") 2>conftest.er1 |
| 6290 | ac_status=$? |
| 6291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6292 | rm -f conftest.er1 |
| 6293 | cat conftest.err >&5 |
| 6294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6295 | (exit $ac_status); } && { |
| 6296 | test -z "$ac_cxx_werror_flag" || |
| 6297 | test ! -s conftest.err |
| 6298 | } && test -s conftest.$ac_objext; then |
| 6299 | bh_cv_c_signed=yes |
| 6300 | else |
| 6301 | echo "$as_me: failed program was:" >&5 |
| 6302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6303 | |
| 6304 | bh_cv_c_signed=no |
| 6305 | fi |
| 6306 | |
| 6307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6308 | fi |
| 6309 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 6310 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
| 6311 | if test $bh_cv_c_signed = no; then |
| 6312 | |
| 6313 | cat >>confdefs.h <<\_ACEOF |
| 6314 | #define signed |
| 6315 | _ACEOF |
| 6316 | |
| 6317 | fi |
| 6318 | |
| 6319 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 6320 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
| 6321 | if test "${ac_cv_c_inline+set}" = set; then |
| 6322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6323 | else |
| 6324 | ac_cv_c_inline=no |
| 6325 | for ac_kw in inline __inline__ __inline; do |
| 6326 | cat >conftest.$ac_ext <<_ACEOF |
| 6327 | /* confdefs.h. */ |
| 6328 | _ACEOF |
| 6329 | cat confdefs.h >>conftest.$ac_ext |
| 6330 | cat >>conftest.$ac_ext <<_ACEOF |
| 6331 | /* end confdefs.h. */ |
| 6332 | #ifndef __cplusplus |
| 6333 | typedef int foo_t; |
| 6334 | static $ac_kw foo_t static_foo () {return 0; } |
| 6335 | $ac_kw foo_t foo () {return 0; } |
| 6336 | #endif |
| 6337 | |
| 6338 | _ACEOF |
| 6339 | rm -f conftest.$ac_objext |
| 6340 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 6347 | ac_status=$? |
| 6348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6349 | rm -f conftest.er1 |
| 6350 | cat conftest.err >&5 |
| 6351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6352 | (exit $ac_status); } && { |
| 6353 | test -z "$ac_cxx_werror_flag" || |
| 6354 | test ! -s conftest.err |
| 6355 | } && test -s conftest.$ac_objext; then |
| 6356 | ac_cv_c_inline=$ac_kw |
| 6357 | else |
| 6358 | echo "$as_me: failed program was:" >&5 |
| 6359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6360 | |
| 6361 | |
| 6362 | fi |
| 6363 | |
| 6364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6365 | test "$ac_cv_c_inline" != no && break |
| 6366 | done |
| 6367 | |
| 6368 | fi |
| 6369 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 6370 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
| 6371 | |
| 6372 | |
| 6373 | case $ac_cv_c_inline in |
| 6374 | inline | yes) ;; |
| 6375 | *) |
| 6376 | case $ac_cv_c_inline in |
| 6377 | no) ac_val=;; |
| 6378 | *) ac_val=$ac_cv_c_inline;; |
| 6379 | esac |
| 6380 | cat >>confdefs.h <<_ACEOF |
| 6381 | #ifndef __cplusplus |
| 6382 | #define inline $ac_val |
| 6383 | #endif |
| 6384 | _ACEOF |
| 6385 | ;; |
| 6386 | esac |
| 6387 | |
| 6388 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6389 | |
| 6390 | |
| 6391 | |
| 6392 | |
| 6393 | |
| 6394 | |
| 6395 | |
| 6396 | |
| 6397 | |
| 6398 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6399 | inttypes.h stdint.h unistd.h |
| 6400 | do |
| 6401 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6402 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6403 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6404 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6406 | else |
| 6407 | cat >conftest.$ac_ext <<_ACEOF |
| 6408 | /* confdefs.h. */ |
| 6409 | _ACEOF |
| 6410 | cat confdefs.h >>conftest.$ac_ext |
| 6411 | cat >>conftest.$ac_ext <<_ACEOF |
| 6412 | /* end confdefs.h. */ |
| 6413 | $ac_includes_default |
| 6414 | |
| 6415 | #include <$ac_header> |
| 6416 | _ACEOF |
| 6417 | rm -f conftest.$ac_objext |
| 6418 | if { (ac_try="$ac_compile" |
| 6419 | case "(($ac_try" in |
| 6420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6421 | *) ac_try_echo=$ac_try;; |
| 6422 | esac |
| 6423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6424 | (eval "$ac_compile") 2>conftest.er1 |
| 6425 | ac_status=$? |
| 6426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6427 | rm -f conftest.er1 |
| 6428 | cat conftest.err >&5 |
| 6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6430 | (exit $ac_status); } && { |
| 6431 | test -z "$ac_cxx_werror_flag" || |
| 6432 | test ! -s conftest.err |
| 6433 | } && test -s conftest.$ac_objext; then |
| 6434 | eval "$as_ac_Header=yes" |
| 6435 | else |
| 6436 | echo "$as_me: failed program was:" >&5 |
| 6437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6438 | |
| 6439 | eval "$as_ac_Header=no" |
| 6440 | fi |
| 6441 | |
| 6442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6443 | fi |
| 6444 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6445 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6446 | echo "${ECHO_T}$ac_res" >&6; } |
| 6447 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6448 | cat >>confdefs.h <<_ACEOF |
| 6449 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6450 | _ACEOF |
| 6451 | |
| 6452 | fi |
| 6453 | |
| 6454 | done |
| 6455 | |
| 6456 | |
| 6457 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6458 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
| 6459 | if test "${ac_cv_type_off_t+set}" = set; then |
| 6460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6461 | else |
| 6462 | cat >conftest.$ac_ext <<_ACEOF |
| 6463 | /* confdefs.h. */ |
| 6464 | _ACEOF |
| 6465 | cat confdefs.h >>conftest.$ac_ext |
| 6466 | cat >>conftest.$ac_ext <<_ACEOF |
| 6467 | /* end confdefs.h. */ |
| 6468 | $ac_includes_default |
| 6469 | typedef off_t ac__type_new_; |
| 6470 | int |
| 6471 | main () |
| 6472 | { |
| 6473 | if ((ac__type_new_ *) 0) |
| 6474 | return 0; |
| 6475 | if (sizeof (ac__type_new_)) |
| 6476 | return 0; |
| 6477 | ; |
| 6478 | return 0; |
| 6479 | } |
| 6480 | _ACEOF |
| 6481 | rm -f conftest.$ac_objext |
| 6482 | if { (ac_try="$ac_compile" |
| 6483 | case "(($ac_try" in |
| 6484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6485 | *) ac_try_echo=$ac_try;; |
| 6486 | esac |
| 6487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6488 | (eval "$ac_compile") 2>conftest.er1 |
| 6489 | ac_status=$? |
| 6490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6491 | rm -f conftest.er1 |
| 6492 | cat conftest.err >&5 |
| 6493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6494 | (exit $ac_status); } && { |
| 6495 | test -z "$ac_cxx_werror_flag" || |
| 6496 | test ! -s conftest.err |
| 6497 | } && test -s conftest.$ac_objext; then |
| 6498 | ac_cv_type_off_t=yes |
| 6499 | else |
| 6500 | echo "$as_me: failed program was:" >&5 |
| 6501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6502 | |
| 6503 | ac_cv_type_off_t=no |
| 6504 | fi |
| 6505 | |
| 6506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6507 | fi |
| 6508 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6509 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6510 | if test $ac_cv_type_off_t = yes; then |
| 6511 | : |
| 6512 | else |
| 6513 | |
| 6514 | cat >>confdefs.h <<_ACEOF |
| 6515 | #define off_t long int |
| 6516 | _ACEOF |
| 6517 | |
| 6518 | fi |
| 6519 | |
| 6520 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6521 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 6522 | if test "${ac_cv_type_size_t+set}" = set; then |
| 6523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6524 | else |
| 6525 | cat >conftest.$ac_ext <<_ACEOF |
| 6526 | /* confdefs.h. */ |
| 6527 | _ACEOF |
| 6528 | cat confdefs.h >>conftest.$ac_ext |
| 6529 | cat >>conftest.$ac_ext <<_ACEOF |
| 6530 | /* end confdefs.h. */ |
| 6531 | $ac_includes_default |
| 6532 | typedef size_t ac__type_new_; |
| 6533 | int |
| 6534 | main () |
| 6535 | { |
| 6536 | if ((ac__type_new_ *) 0) |
| 6537 | return 0; |
| 6538 | if (sizeof (ac__type_new_)) |
| 6539 | return 0; |
| 6540 | ; |
| 6541 | return 0; |
| 6542 | } |
| 6543 | _ACEOF |
| 6544 | rm -f conftest.$ac_objext |
| 6545 | if { (ac_try="$ac_compile" |
| 6546 | case "(($ac_try" in |
| 6547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6548 | *) ac_try_echo=$ac_try;; |
| 6549 | esac |
| 6550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6551 | (eval "$ac_compile") 2>conftest.er1 |
| 6552 | ac_status=$? |
| 6553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6554 | rm -f conftest.er1 |
| 6555 | cat conftest.err >&5 |
| 6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6557 | (exit $ac_status); } && { |
| 6558 | test -z "$ac_cxx_werror_flag" || |
| 6559 | test ! -s conftest.err |
| 6560 | } && test -s conftest.$ac_objext; then |
| 6561 | ac_cv_type_size_t=yes |
| 6562 | else |
| 6563 | echo "$as_me: failed program was:" >&5 |
| 6564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6565 | |
| 6566 | ac_cv_type_size_t=no |
| 6567 | fi |
| 6568 | |
| 6569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6570 | fi |
| 6571 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6572 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 6573 | if test $ac_cv_type_size_t = yes; then |
| 6574 | : |
| 6575 | else |
| 6576 | |
| 6577 | cat >>confdefs.h <<_ACEOF |
| 6578 | #define size_t unsigned int |
| 6579 | _ACEOF |
| 6580 | |
| 6581 | fi |
| 6582 | |
| 6583 | |
| 6584 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 6585 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 6586 | if test "${ac_cv_type_long_long+set}" = set; then |
| 6587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6588 | else |
| 6589 | cat >conftest.$ac_ext <<_ACEOF |
| 6590 | /* confdefs.h. */ |
| 6591 | _ACEOF |
| 6592 | cat confdefs.h >>conftest.$ac_ext |
| 6593 | cat >>conftest.$ac_ext <<_ACEOF |
| 6594 | /* end confdefs.h. */ |
| 6595 | long long ll = 1LL; int i = 63; |
| 6596 | int |
| 6597 | main () |
| 6598 | { |
| 6599 | long long llmax = (long long) -1; |
| 6600 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 6601 | ; |
| 6602 | return 0; |
| 6603 | } |
| 6604 | _ACEOF |
| 6605 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6606 | if { (ac_try="$ac_link" |
| 6607 | case "(($ac_try" in |
| 6608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6609 | *) ac_try_echo=$ac_try;; |
| 6610 | esac |
| 6611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6612 | (eval "$ac_link") 2>conftest.er1 |
| 6613 | ac_status=$? |
| 6614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6615 | rm -f conftest.er1 |
| 6616 | cat conftest.err >&5 |
| 6617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6618 | (exit $ac_status); } && { |
| 6619 | test -z "$ac_cxx_werror_flag" || |
| 6620 | test ! -s conftest.err |
| 6621 | } && test -s conftest$ac_exeext && |
| 6622 | $as_test_x conftest$ac_exeext; then |
| 6623 | ac_cv_type_long_long=yes |
| 6624 | else |
| 6625 | echo "$as_me: failed program was:" >&5 |
| 6626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6627 | |
| 6628 | ac_cv_type_long_long=no |
| 6629 | fi |
| 6630 | |
| 6631 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6632 | conftest$ac_exeext conftest.$ac_ext |
| 6633 | fi |
| 6634 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 6635 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 6636 | if test $ac_cv_type_long_long = yes; then |
| 6637 | |
| 6638 | cat >>confdefs.h <<\_ACEOF |
| 6639 | #define HAVE_LONG_LONG 1 |
| 6640 | _ACEOF |
| 6641 | |
| 6642 | fi |
| 6643 | |
| 6644 | |
| 6645 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 6646 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 6647 | if test "${gt_cv_c_long_double+set}" = set; then |
| 6648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6649 | else |
| 6650 | if test "$GCC" = yes; then |
| 6651 | gt_cv_c_long_double=yes |
| 6652 | else |
| 6653 | cat >conftest.$ac_ext <<_ACEOF |
| 6654 | /* confdefs.h. */ |
| 6655 | _ACEOF |
| 6656 | cat confdefs.h >>conftest.$ac_ext |
| 6657 | cat >>conftest.$ac_ext <<_ACEOF |
| 6658 | /* end confdefs.h. */ |
| 6659 | |
| 6660 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6661 | long double foo = 0.0; |
| 6662 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6663 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6664 | |
| 6665 | int |
| 6666 | main () |
| 6667 | { |
| 6668 | |
| 6669 | ; |
| 6670 | return 0; |
| 6671 | } |
| 6672 | _ACEOF |
| 6673 | rm -f conftest.$ac_objext |
| 6674 | if { (ac_try="$ac_compile" |
| 6675 | case "(($ac_try" in |
| 6676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6677 | *) ac_try_echo=$ac_try;; |
| 6678 | esac |
| 6679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6680 | (eval "$ac_compile") 2>conftest.er1 |
| 6681 | ac_status=$? |
| 6682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6683 | rm -f conftest.er1 |
| 6684 | cat conftest.err >&5 |
| 6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6686 | (exit $ac_status); } && { |
| 6687 | test -z "$ac_cxx_werror_flag" || |
| 6688 | test ! -s conftest.err |
| 6689 | } && test -s conftest.$ac_objext; then |
| 6690 | gt_cv_c_long_double=yes |
| 6691 | else |
| 6692 | echo "$as_me: failed program was:" >&5 |
| 6693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6694 | |
| 6695 | gt_cv_c_long_double=no |
| 6696 | fi |
| 6697 | |
| 6698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6699 | fi |
| 6700 | fi |
| 6701 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 6702 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
| 6703 | if test $gt_cv_c_long_double = yes; then |
| 6704 | |
| 6705 | cat >>confdefs.h <<\_ACEOF |
| 6706 | #define HAVE_LONG_DOUBLE 1 |
| 6707 | _ACEOF |
| 6708 | |
| 6709 | fi |
| 6710 | |
| 6711 | |
| 6712 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 6713 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 6714 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 6715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6716 | else |
| 6717 | cat >conftest.$ac_ext <<_ACEOF |
| 6718 | /* confdefs.h. */ |
| 6719 | _ACEOF |
| 6720 | cat confdefs.h >>conftest.$ac_ext |
| 6721 | cat >>conftest.$ac_ext <<_ACEOF |
| 6722 | /* end confdefs.h. */ |
| 6723 | #include <stddef.h> |
| 6724 | wchar_t foo = (wchar_t)'\0'; |
| 6725 | int |
| 6726 | main () |
| 6727 | { |
| 6728 | |
| 6729 | ; |
| 6730 | return 0; |
| 6731 | } |
| 6732 | _ACEOF |
| 6733 | rm -f conftest.$ac_objext |
| 6734 | if { (ac_try="$ac_compile" |
| 6735 | case "(($ac_try" in |
| 6736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6737 | *) ac_try_echo=$ac_try;; |
| 6738 | esac |
| 6739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6740 | (eval "$ac_compile") 2>conftest.er1 |
| 6741 | ac_status=$? |
| 6742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6743 | rm -f conftest.er1 |
| 6744 | cat conftest.err >&5 |
| 6745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6746 | (exit $ac_status); } && { |
| 6747 | test -z "$ac_cxx_werror_flag" || |
| 6748 | test ! -s conftest.err |
| 6749 | } && test -s conftest.$ac_objext; then |
| 6750 | gt_cv_c_wchar_t=yes |
| 6751 | else |
| 6752 | echo "$as_me: failed program was:" >&5 |
| 6753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6754 | |
| 6755 | gt_cv_c_wchar_t=no |
| 6756 | fi |
| 6757 | |
| 6758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6759 | fi |
| 6760 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 6761 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
| 6762 | if test $gt_cv_c_wchar_t = yes; then |
| 6763 | |
| 6764 | cat >>confdefs.h <<\_ACEOF |
| 6765 | #define HAVE_WCHAR_T 1 |
| 6766 | _ACEOF |
| 6767 | |
| 6768 | fi |
| 6769 | |
| 6770 | |
| 6771 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 6772 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
| 6773 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 6774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6775 | else |
| 6776 | cat >conftest.$ac_ext <<_ACEOF |
| 6777 | /* confdefs.h. */ |
| 6778 | _ACEOF |
| 6779 | cat confdefs.h >>conftest.$ac_ext |
| 6780 | cat >>conftest.$ac_ext <<_ACEOF |
| 6781 | /* end confdefs.h. */ |
| 6782 | #include <wchar.h> |
| 6783 | wint_t foo = (wchar_t)'\0'; |
| 6784 | int |
| 6785 | main () |
| 6786 | { |
| 6787 | |
| 6788 | ; |
| 6789 | return 0; |
| 6790 | } |
| 6791 | _ACEOF |
| 6792 | rm -f conftest.$ac_objext |
| 6793 | if { (ac_try="$ac_compile" |
| 6794 | case "(($ac_try" in |
| 6795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6796 | *) ac_try_echo=$ac_try;; |
| 6797 | esac |
| 6798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6799 | (eval "$ac_compile") 2>conftest.er1 |
| 6800 | ac_status=$? |
| 6801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6802 | rm -f conftest.er1 |
| 6803 | cat conftest.err >&5 |
| 6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6805 | (exit $ac_status); } && { |
| 6806 | test -z "$ac_cxx_werror_flag" || |
| 6807 | test ! -s conftest.err |
| 6808 | } && test -s conftest.$ac_objext; then |
| 6809 | gt_cv_c_wint_t=yes |
| 6810 | else |
| 6811 | echo "$as_me: failed program was:" >&5 |
| 6812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6813 | |
| 6814 | gt_cv_c_wint_t=no |
| 6815 | fi |
| 6816 | |
| 6817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6818 | fi |
| 6819 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 6820 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
| 6821 | if test $gt_cv_c_wint_t = yes; then |
| 6822 | |
| 6823 | cat >>confdefs.h <<\_ACEOF |
| 6824 | #define HAVE_WINT_T 1 |
| 6825 | _ACEOF |
| 6826 | |
| 6827 | fi |
| 6828 | |
| 6829 | |
| 6830 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 6831 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
| 6832 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 6833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6834 | else |
| 6835 | cat >conftest.$ac_ext <<_ACEOF |
| 6836 | /* confdefs.h. */ |
| 6837 | _ACEOF |
| 6838 | cat confdefs.h >>conftest.$ac_ext |
| 6839 | cat >>conftest.$ac_ext <<_ACEOF |
| 6840 | /* end confdefs.h. */ |
| 6841 | #include <sys/types.h> |
| 6842 | #include <inttypes.h> |
| 6843 | int |
| 6844 | main () |
| 6845 | { |
| 6846 | uintmax_t i = (uintmax_t) -1; |
| 6847 | ; |
| 6848 | return 0; |
| 6849 | } |
| 6850 | _ACEOF |
| 6851 | rm -f conftest.$ac_objext |
| 6852 | if { (ac_try="$ac_compile" |
| 6853 | case "(($ac_try" in |
| 6854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6855 | *) ac_try_echo=$ac_try;; |
| 6856 | esac |
| 6857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6858 | (eval "$ac_compile") 2>conftest.er1 |
| 6859 | ac_status=$? |
| 6860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6861 | rm -f conftest.er1 |
| 6862 | cat conftest.err >&5 |
| 6863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6864 | (exit $ac_status); } && { |
| 6865 | test -z "$ac_cxx_werror_flag" || |
| 6866 | test ! -s conftest.err |
| 6867 | } && test -s conftest.$ac_objext; then |
| 6868 | jm_ac_cv_header_inttypes_h=yes |
| 6869 | else |
| 6870 | echo "$as_me: failed program was:" >&5 |
| 6871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6872 | |
| 6873 | jm_ac_cv_header_inttypes_h=no |
| 6874 | fi |
| 6875 | |
| 6876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6877 | fi |
| 6878 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 6879 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } |
| 6880 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6881 | |
| 6882 | cat >>confdefs.h <<_ACEOF |
| 6883 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6884 | _ACEOF |
| 6885 | |
| 6886 | fi |
| 6887 | |
| 6888 | |
| 6889 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 6890 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
| 6891 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 6892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6893 | else |
| 6894 | cat >conftest.$ac_ext <<_ACEOF |
| 6895 | /* confdefs.h. */ |
| 6896 | _ACEOF |
| 6897 | cat confdefs.h >>conftest.$ac_ext |
| 6898 | cat >>conftest.$ac_ext <<_ACEOF |
| 6899 | /* end confdefs.h. */ |
| 6900 | #include <sys/types.h> |
| 6901 | #include <stdint.h> |
| 6902 | int |
| 6903 | main () |
| 6904 | { |
| 6905 | uintmax_t i = (uintmax_t) -1; |
| 6906 | ; |
| 6907 | return 0; |
| 6908 | } |
| 6909 | _ACEOF |
| 6910 | rm -f conftest.$ac_objext |
| 6911 | if { (ac_try="$ac_compile" |
| 6912 | case "(($ac_try" in |
| 6913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6914 | *) ac_try_echo=$ac_try;; |
| 6915 | esac |
| 6916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6917 | (eval "$ac_compile") 2>conftest.er1 |
| 6918 | ac_status=$? |
| 6919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6920 | rm -f conftest.er1 |
| 6921 | cat conftest.err >&5 |
| 6922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6923 | (exit $ac_status); } && { |
| 6924 | test -z "$ac_cxx_werror_flag" || |
| 6925 | test ! -s conftest.err |
| 6926 | } && test -s conftest.$ac_objext; then |
| 6927 | jm_ac_cv_header_stdint_h=yes |
| 6928 | else |
| 6929 | echo "$as_me: failed program was:" >&5 |
| 6930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6931 | |
| 6932 | jm_ac_cv_header_stdint_h=no |
| 6933 | fi |
| 6934 | |
| 6935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6936 | fi |
| 6937 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 6938 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } |
| 6939 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6940 | |
| 6941 | cat >>confdefs.h <<_ACEOF |
| 6942 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6943 | _ACEOF |
| 6944 | |
| 6945 | fi |
| 6946 | |
| 6947 | |
| 6948 | |
| 6949 | |
| 6950 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 6951 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
| 6952 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 6953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6954 | else |
| 6955 | cat >conftest.$ac_ext <<_ACEOF |
| 6956 | /* confdefs.h. */ |
| 6957 | _ACEOF |
| 6958 | cat confdefs.h >>conftest.$ac_ext |
| 6959 | cat >>conftest.$ac_ext <<_ACEOF |
| 6960 | /* end confdefs.h. */ |
| 6961 | |
| 6962 | #include <stddef.h> |
| 6963 | #include <stdlib.h> |
| 6964 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6965 | #include <stdint.h> |
| 6966 | #endif |
| 6967 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6968 | #include <inttypes.h> |
| 6969 | #endif |
| 6970 | |
| 6971 | int |
| 6972 | main () |
| 6973 | { |
| 6974 | intmax_t x = -1; |
| 6975 | ; |
| 6976 | return 0; |
| 6977 | } |
| 6978 | _ACEOF |
| 6979 | rm -f conftest.$ac_objext |
| 6980 | if { (ac_try="$ac_compile" |
| 6981 | case "(($ac_try" in |
| 6982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6983 | *) ac_try_echo=$ac_try;; |
| 6984 | esac |
| 6985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6986 | (eval "$ac_compile") 2>conftest.er1 |
| 6987 | ac_status=$? |
| 6988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6989 | rm -f conftest.er1 |
| 6990 | cat conftest.err >&5 |
| 6991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6992 | (exit $ac_status); } && { |
| 6993 | test -z "$ac_cxx_werror_flag" || |
| 6994 | test ! -s conftest.err |
| 6995 | } && test -s conftest.$ac_objext; then |
| 6996 | gt_cv_c_intmax_t=yes |
| 6997 | else |
| 6998 | echo "$as_me: failed program was:" >&5 |
| 6999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7000 | |
| 7001 | gt_cv_c_intmax_t=no |
| 7002 | fi |
| 7003 | |
| 7004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7005 | fi |
| 7006 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 7007 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
| 7008 | if test $gt_cv_c_intmax_t = yes; then |
| 7009 | |
| 7010 | cat >>confdefs.h <<\_ACEOF |
| 7011 | #define HAVE_INTMAX_T 1 |
| 7012 | _ACEOF |
| 7013 | |
| 7014 | fi |
| 7015 | |
| 7016 | |
| 7017 | |
| 7018 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 7019 | echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } |
| 7020 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 7021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7022 | else |
| 7023 | |
| 7024 | if test "$cross_compiling" = yes; then |
| 7025 | |
| 7026 | cat >conftest.$ac_ext <<_ACEOF |
| 7027 | /* confdefs.h. */ |
| 7028 | _ACEOF |
| 7029 | cat confdefs.h >>conftest.$ac_ext |
| 7030 | cat >>conftest.$ac_ext <<_ACEOF |
| 7031 | /* end confdefs.h. */ |
| 7032 | |
| 7033 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 7034 | notposix |
| 7035 | #endif |
| 7036 | |
| 7037 | _ACEOF |
| 7038 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7039 | $EGREP "notposix" >/dev/null 2>&1; then |
| 7040 | gt_cv_func_printf_posix="guessing no" |
| 7041 | else |
| 7042 | gt_cv_func_printf_posix="guessing yes" |
| 7043 | fi |
| 7044 | rm -f conftest* |
| 7045 | |
| 7046 | |
| 7047 | else |
| 7048 | cat >conftest.$ac_ext <<_ACEOF |
| 7049 | /* confdefs.h. */ |
| 7050 | _ACEOF |
| 7051 | cat confdefs.h >>conftest.$ac_ext |
| 7052 | cat >>conftest.$ac_ext <<_ACEOF |
| 7053 | /* end confdefs.h. */ |
| 7054 | |
| 7055 | #include <stdio.h> |
| 7056 | #include <string.h> |
| 7057 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 7058 | dollar expansion (possibly an autoconf bug). */ |
| 7059 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 7060 | static char buf[100]; |
| 7061 | int main () |
| 7062 | { |
| 7063 | sprintf (buf, format, 33, 55); |
| 7064 | return (strcmp (buf, "55 33") != 0); |
| 7065 | } |
| 7066 | _ACEOF |
| 7067 | rm -f conftest$ac_exeext |
| 7068 | if { (ac_try="$ac_link" |
| 7069 | case "(($ac_try" in |
| 7070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7071 | *) ac_try_echo=$ac_try;; |
| 7072 | esac |
| 7073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7074 | (eval "$ac_link") 2>&5 |
| 7075 | ac_status=$? |
| 7076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7077 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7078 | { (case "(($ac_try" in |
| 7079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7080 | *) ac_try_echo=$ac_try;; |
| 7081 | esac |
| 7082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7083 | (eval "$ac_try") 2>&5 |
| 7084 | ac_status=$? |
| 7085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7086 | (exit $ac_status); }; }; then |
| 7087 | gt_cv_func_printf_posix=yes |
| 7088 | else |
| 7089 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7090 | echo "$as_me: failed program was:" >&5 |
| 7091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7092 | |
| 7093 | ( exit $ac_status ) |
| 7094 | gt_cv_func_printf_posix=no |
| 7095 | fi |
| 7096 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7097 | fi |
| 7098 | |
| 7099 | |
| 7100 | |
| 7101 | fi |
| 7102 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 7103 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
| 7104 | case $gt_cv_func_printf_posix in |
| 7105 | *yes) |
| 7106 | |
| 7107 | cat >>confdefs.h <<\_ACEOF |
| 7108 | #define HAVE_POSIX_PRINTF 1 |
| 7109 | _ACEOF |
| 7110 | |
| 7111 | ;; |
| 7112 | esac |
| 7113 | |
| 7114 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 7115 | # for constant arguments. Useless! |
| 7116 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 7117 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
| 7118 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 7119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7120 | else |
| 7121 | cat >conftest.$ac_ext <<_ACEOF |
| 7122 | /* confdefs.h. */ |
| 7123 | _ACEOF |
| 7124 | cat confdefs.h >>conftest.$ac_ext |
| 7125 | cat >>conftest.$ac_ext <<_ACEOF |
| 7126 | /* end confdefs.h. */ |
| 7127 | #include <alloca.h> |
| 7128 | int |
| 7129 | main () |
| 7130 | { |
| 7131 | char *p = (char *) alloca (2 * sizeof (int)); |
| 7132 | if (p) return 0; |
| 7133 | ; |
| 7134 | return 0; |
| 7135 | } |
| 7136 | _ACEOF |
| 7137 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7138 | if { (ac_try="$ac_link" |
| 7139 | case "(($ac_try" in |
| 7140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7141 | *) ac_try_echo=$ac_try;; |
| 7142 | esac |
| 7143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7144 | (eval "$ac_link") 2>conftest.er1 |
| 7145 | ac_status=$? |
| 7146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7147 | rm -f conftest.er1 |
| 7148 | cat conftest.err >&5 |
| 7149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7150 | (exit $ac_status); } && { |
| 7151 | test -z "$ac_cxx_werror_flag" || |
| 7152 | test ! -s conftest.err |
| 7153 | } && test -s conftest$ac_exeext && |
| 7154 | $as_test_x conftest$ac_exeext; then |
| 7155 | ac_cv_working_alloca_h=yes |
| 7156 | else |
| 7157 | echo "$as_me: failed program was:" >&5 |
| 7158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7159 | |
| 7160 | ac_cv_working_alloca_h=no |
| 7161 | fi |
| 7162 | |
| 7163 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7164 | conftest$ac_exeext conftest.$ac_ext |
| 7165 | fi |
| 7166 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 7167 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
| 7168 | if test $ac_cv_working_alloca_h = yes; then |
| 7169 | |
| 7170 | cat >>confdefs.h <<\_ACEOF |
| 7171 | #define HAVE_ALLOCA_H 1 |
| 7172 | _ACEOF |
| 7173 | |
| 7174 | fi |
| 7175 | |
| 7176 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 7177 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
| 7178 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 7179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7180 | else |
| 7181 | cat >conftest.$ac_ext <<_ACEOF |
| 7182 | /* confdefs.h. */ |
| 7183 | _ACEOF |
| 7184 | cat confdefs.h >>conftest.$ac_ext |
| 7185 | cat >>conftest.$ac_ext <<_ACEOF |
| 7186 | /* end confdefs.h. */ |
| 7187 | #ifdef __GNUC__ |
| 7188 | # define alloca __builtin_alloca |
| 7189 | #else |
| 7190 | # ifdef _MSC_VER |
| 7191 | # include <malloc.h> |
| 7192 | # define alloca _alloca |
| 7193 | # else |
| 7194 | # ifdef HAVE_ALLOCA_H |
| 7195 | # include <alloca.h> |
| 7196 | # else |
| 7197 | # ifdef _AIX |
| 7198 | #pragma alloca |
| 7199 | # else |
| 7200 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 7201 | char *alloca (); |
| 7202 | # endif |
| 7203 | # endif |
| 7204 | # endif |
| 7205 | # endif |
| 7206 | #endif |
| 7207 | |
| 7208 | int |
| 7209 | main () |
| 7210 | { |
| 7211 | char *p = (char *) alloca (1); |
| 7212 | if (p) return 0; |
| 7213 | ; |
| 7214 | return 0; |
| 7215 | } |
| 7216 | _ACEOF |
| 7217 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7218 | if { (ac_try="$ac_link" |
| 7219 | case "(($ac_try" in |
| 7220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7221 | *) ac_try_echo=$ac_try;; |
| 7222 | esac |
| 7223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7224 | (eval "$ac_link") 2>conftest.er1 |
| 7225 | ac_status=$? |
| 7226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7227 | rm -f conftest.er1 |
| 7228 | cat conftest.err >&5 |
| 7229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7230 | (exit $ac_status); } && { |
| 7231 | test -z "$ac_cxx_werror_flag" || |
| 7232 | test ! -s conftest.err |
| 7233 | } && test -s conftest$ac_exeext && |
| 7234 | $as_test_x conftest$ac_exeext; then |
| 7235 | ac_cv_func_alloca_works=yes |
| 7236 | else |
| 7237 | echo "$as_me: failed program was:" >&5 |
| 7238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7239 | |
| 7240 | ac_cv_func_alloca_works=no |
| 7241 | fi |
| 7242 | |
| 7243 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7244 | conftest$ac_exeext conftest.$ac_ext |
| 7245 | fi |
| 7246 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 7247 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
| 7248 | |
| 7249 | if test $ac_cv_func_alloca_works = yes; then |
| 7250 | |
| 7251 | cat >>confdefs.h <<\_ACEOF |
| 7252 | #define HAVE_ALLOCA 1 |
| 7253 | _ACEOF |
| 7254 | |
| 7255 | else |
| 7256 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 7257 | # that cause trouble. Some versions do not even contain alloca or |
| 7258 | # contain a buggy version. If you still want to use their alloca, |
| 7259 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 7260 | |
| 7261 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 7262 | |
| 7263 | cat >>confdefs.h <<\_ACEOF |
| 7264 | #define C_ALLOCA 1 |
| 7265 | _ACEOF |
| 7266 | |
| 7267 | |
| 7268 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 7269 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } |
| 7270 | if test "${ac_cv_os_cray+set}" = set; then |
| 7271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7272 | else |
| 7273 | cat >conftest.$ac_ext <<_ACEOF |
| 7274 | /* confdefs.h. */ |
| 7275 | _ACEOF |
| 7276 | cat confdefs.h >>conftest.$ac_ext |
| 7277 | cat >>conftest.$ac_ext <<_ACEOF |
| 7278 | /* end confdefs.h. */ |
| 7279 | #if defined CRAY && ! defined CRAY2 |
| 7280 | webecray |
| 7281 | #else |
| 7282 | wenotbecray |
| 7283 | #endif |
| 7284 | |
| 7285 | _ACEOF |
| 7286 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7287 | $EGREP "webecray" >/dev/null 2>&1; then |
| 7288 | ac_cv_os_cray=yes |
| 7289 | else |
| 7290 | ac_cv_os_cray=no |
| 7291 | fi |
| 7292 | rm -f conftest* |
| 7293 | |
| 7294 | fi |
| 7295 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 7296 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
| 7297 | if test $ac_cv_os_cray = yes; then |
| 7298 | for ac_func in _getb67 GETB67 getb67; do |
| 7299 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7300 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7301 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 7302 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7304 | else |
| 7305 | cat >conftest.$ac_ext <<_ACEOF |
| 7306 | /* confdefs.h. */ |
| 7307 | _ACEOF |
| 7308 | cat confdefs.h >>conftest.$ac_ext |
| 7309 | cat >>conftest.$ac_ext <<_ACEOF |
| 7310 | /* end confdefs.h. */ |
| 7311 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7312 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7313 | #define $ac_func innocuous_$ac_func |
| 7314 | |
| 7315 | /* System header to define __stub macros and hopefully few prototypes, |
| 7316 | which can conflict with char $ac_func (); below. |
| 7317 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7318 | <limits.h> exists even on freestanding compilers. */ |
| 7319 | |
| 7320 | #ifdef __STDC__ |
| 7321 | # include <limits.h> |
| 7322 | #else |
| 7323 | # include <assert.h> |
| 7324 | #endif |
| 7325 | |
| 7326 | #undef $ac_func |
| 7327 | |
| 7328 | /* Override any GCC internal prototype to avoid an error. |
| 7329 | Use char because int might match the return type of a GCC |
| 7330 | builtin and then its argument prototype would still apply. */ |
| 7331 | #ifdef __cplusplus |
| 7332 | extern "C" |
| 7333 | #endif |
| 7334 | char $ac_func (); |
| 7335 | /* The GNU C library defines this for functions which it implements |
| 7336 | to always fail with ENOSYS. Some functions are actually named |
| 7337 | something starting with __ and the normal name is an alias. */ |
| 7338 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 7339 | choke me |
| 7340 | #endif |
| 7341 | |
| 7342 | int |
| 7343 | main () |
| 7344 | { |
| 7345 | return $ac_func (); |
| 7346 | ; |
| 7347 | return 0; |
| 7348 | } |
| 7349 | _ACEOF |
| 7350 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7351 | if { (ac_try="$ac_link" |
| 7352 | case "(($ac_try" in |
| 7353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7354 | *) ac_try_echo=$ac_try;; |
| 7355 | esac |
| 7356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7357 | (eval "$ac_link") 2>conftest.er1 |
| 7358 | ac_status=$? |
| 7359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7360 | rm -f conftest.er1 |
| 7361 | cat conftest.err >&5 |
| 7362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7363 | (exit $ac_status); } && { |
| 7364 | test -z "$ac_cxx_werror_flag" || |
| 7365 | test ! -s conftest.err |
| 7366 | } && test -s conftest$ac_exeext && |
| 7367 | $as_test_x conftest$ac_exeext; then |
| 7368 | eval "$as_ac_var=yes" |
| 7369 | else |
| 7370 | echo "$as_me: failed program was:" >&5 |
| 7371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7372 | |
| 7373 | eval "$as_ac_var=no" |
| 7374 | fi |
| 7375 | |
| 7376 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7377 | conftest$ac_exeext conftest.$ac_ext |
| 7378 | fi |
| 7379 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 7380 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7381 | echo "${ECHO_T}$ac_res" >&6; } |
| 7382 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 7383 | |
| 7384 | cat >>confdefs.h <<_ACEOF |
| 7385 | #define CRAY_STACKSEG_END $ac_func |
| 7386 | _ACEOF |
| 7387 | |
| 7388 | break |
| 7389 | fi |
| 7390 | |
| 7391 | done |
| 7392 | fi |
| 7393 | |
| 7394 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 7395 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
| 7396 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 7397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7398 | else |
| 7399 | if test "$cross_compiling" = yes; then |
| 7400 | ac_cv_c_stack_direction=0 |
| 7401 | else |
| 7402 | cat >conftest.$ac_ext <<_ACEOF |
| 7403 | /* confdefs.h. */ |
| 7404 | _ACEOF |
| 7405 | cat confdefs.h >>conftest.$ac_ext |
| 7406 | cat >>conftest.$ac_ext <<_ACEOF |
| 7407 | /* end confdefs.h. */ |
| 7408 | $ac_includes_default |
| 7409 | int |
| 7410 | find_stack_direction () |
| 7411 | { |
| 7412 | static char *addr = 0; |
| 7413 | auto char dummy; |
| 7414 | if (addr == 0) |
| 7415 | { |
| 7416 | addr = &dummy; |
| 7417 | return find_stack_direction (); |
| 7418 | } |
| 7419 | else |
| 7420 | return (&dummy > addr) ? 1 : -1; |
| 7421 | } |
| 7422 | |
| 7423 | int |
| 7424 | main () |
| 7425 | { |
| 7426 | return find_stack_direction () < 0; |
| 7427 | } |
| 7428 | _ACEOF |
| 7429 | rm -f conftest$ac_exeext |
| 7430 | if { (ac_try="$ac_link" |
| 7431 | case "(($ac_try" in |
| 7432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7433 | *) ac_try_echo=$ac_try;; |
| 7434 | esac |
| 7435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7436 | (eval "$ac_link") 2>&5 |
| 7437 | ac_status=$? |
| 7438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7439 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7440 | { (case "(($ac_try" in |
| 7441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7442 | *) ac_try_echo=$ac_try;; |
| 7443 | esac |
| 7444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7445 | (eval "$ac_try") 2>&5 |
| 7446 | ac_status=$? |
| 7447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7448 | (exit $ac_status); }; }; then |
| 7449 | ac_cv_c_stack_direction=1 |
| 7450 | else |
| 7451 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7452 | echo "$as_me: failed program was:" >&5 |
| 7453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7454 | |
| 7455 | ( exit $ac_status ) |
| 7456 | ac_cv_c_stack_direction=-1 |
| 7457 | fi |
| 7458 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7459 | fi |
| 7460 | |
| 7461 | |
| 7462 | fi |
| 7463 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 7464 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
| 7465 | |
| 7466 | cat >>confdefs.h <<_ACEOF |
| 7467 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 7468 | _ACEOF |
| 7469 | |
| 7470 | |
| 7471 | fi |
| 7472 | |
| 7473 | |
| 7474 | |
| 7475 | for ac_header in stdlib.h unistd.h |
| 7476 | do |
| 7477 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7478 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7479 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7481 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7483 | fi |
| 7484 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7485 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7486 | echo "${ECHO_T}$ac_res" >&6; } |
| 7487 | else |
| 7488 | # Is the header compilable? |
| 7489 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7490 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 7491 | cat >conftest.$ac_ext <<_ACEOF |
| 7492 | /* confdefs.h. */ |
| 7493 | _ACEOF |
| 7494 | cat confdefs.h >>conftest.$ac_ext |
| 7495 | cat >>conftest.$ac_ext <<_ACEOF |
| 7496 | /* end confdefs.h. */ |
| 7497 | $ac_includes_default |
| 7498 | #include <$ac_header> |
| 7499 | _ACEOF |
| 7500 | rm -f conftest.$ac_objext |
| 7501 | if { (ac_try="$ac_compile" |
| 7502 | case "(($ac_try" in |
| 7503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7504 | *) ac_try_echo=$ac_try;; |
| 7505 | esac |
| 7506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7507 | (eval "$ac_compile") 2>conftest.er1 |
| 7508 | ac_status=$? |
| 7509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7510 | rm -f conftest.er1 |
| 7511 | cat conftest.err >&5 |
| 7512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7513 | (exit $ac_status); } && { |
| 7514 | test -z "$ac_cxx_werror_flag" || |
| 7515 | test ! -s conftest.err |
| 7516 | } && test -s conftest.$ac_objext; then |
| 7517 | ac_header_compiler=yes |
| 7518 | else |
| 7519 | echo "$as_me: failed program was:" >&5 |
| 7520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7521 | |
| 7522 | ac_header_compiler=no |
| 7523 | fi |
| 7524 | |
| 7525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7526 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7527 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7528 | |
| 7529 | # Is the header present? |
| 7530 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7531 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 7532 | cat >conftest.$ac_ext <<_ACEOF |
| 7533 | /* confdefs.h. */ |
| 7534 | _ACEOF |
| 7535 | cat confdefs.h >>conftest.$ac_ext |
| 7536 | cat >>conftest.$ac_ext <<_ACEOF |
| 7537 | /* end confdefs.h. */ |
| 7538 | #include <$ac_header> |
| 7539 | _ACEOF |
| 7540 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7541 | case "(($ac_try" in |
| 7542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7543 | *) ac_try_echo=$ac_try;; |
| 7544 | esac |
| 7545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7546 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7547 | ac_status=$? |
| 7548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7549 | rm -f conftest.er1 |
| 7550 | cat conftest.err >&5 |
| 7551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7552 | (exit $ac_status); } >/dev/null && { |
| 7553 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 7554 | test ! -s conftest.err |
| 7555 | }; then |
| 7556 | ac_header_preproc=yes |
| 7557 | else |
| 7558 | echo "$as_me: failed program was:" >&5 |
| 7559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7560 | |
| 7561 | ac_header_preproc=no |
| 7562 | fi |
| 7563 | |
| 7564 | rm -f conftest.err conftest.$ac_ext |
| 7565 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7566 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7567 | |
| 7568 | # So? What about this header? |
| 7569 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 7570 | yes:no: ) |
| 7571 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7572 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7573 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7574 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7575 | ac_header_preproc=yes |
| 7576 | ;; |
| 7577 | no:yes:* ) |
| 7578 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7579 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7580 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7581 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7582 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7583 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7584 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7585 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7586 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7587 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7588 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7589 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7590 | |
| 7591 | ;; |
| 7592 | esac |
| 7593 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7594 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7595 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7597 | else |
| 7598 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7599 | fi |
| 7600 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7601 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7602 | echo "${ECHO_T}$ac_res" >&6; } |
| 7603 | |
| 7604 | fi |
| 7605 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7606 | cat >>confdefs.h <<_ACEOF |
| 7607 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7608 | _ACEOF |
| 7609 | |
| 7610 | fi |
| 7611 | |
| 7612 | done |
| 7613 | |
| 7614 | |
| 7615 | for ac_func in getpagesize |
| 7616 | do |
| 7617 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7618 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7619 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 7620 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7622 | else |
| 7623 | cat >conftest.$ac_ext <<_ACEOF |
| 7624 | /* confdefs.h. */ |
| 7625 | _ACEOF |
| 7626 | cat confdefs.h >>conftest.$ac_ext |
| 7627 | cat >>conftest.$ac_ext <<_ACEOF |
| 7628 | /* end confdefs.h. */ |
| 7629 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7630 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7631 | #define $ac_func innocuous_$ac_func |
| 7632 | |
| 7633 | /* System header to define __stub macros and hopefully few prototypes, |
| 7634 | which can conflict with char $ac_func (); below. |
| 7635 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7636 | <limits.h> exists even on freestanding compilers. */ |
| 7637 | |
| 7638 | #ifdef __STDC__ |
| 7639 | # include <limits.h> |
| 7640 | #else |
| 7641 | # include <assert.h> |
| 7642 | #endif |
| 7643 | |
| 7644 | #undef $ac_func |
| 7645 | |
| 7646 | /* Override any GCC internal prototype to avoid an error. |
| 7647 | Use char because int might match the return type of a GCC |
| 7648 | builtin and then its argument prototype would still apply. */ |
| 7649 | #ifdef __cplusplus |
| 7650 | extern "C" |
| 7651 | #endif |
| 7652 | char $ac_func (); |
| 7653 | /* The GNU C library defines this for functions which it implements |
| 7654 | to always fail with ENOSYS. Some functions are actually named |
| 7655 | something starting with __ and the normal name is an alias. */ |
| 7656 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 7657 | choke me |
| 7658 | #endif |
| 7659 | |
| 7660 | int |
| 7661 | main () |
| 7662 | { |
| 7663 | return $ac_func (); |
| 7664 | ; |
| 7665 | return 0; |
| 7666 | } |
| 7667 | _ACEOF |
| 7668 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7669 | if { (ac_try="$ac_link" |
| 7670 | case "(($ac_try" in |
| 7671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7672 | *) ac_try_echo=$ac_try;; |
| 7673 | esac |
| 7674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7675 | (eval "$ac_link") 2>conftest.er1 |
| 7676 | ac_status=$? |
| 7677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7678 | rm -f conftest.er1 |
| 7679 | cat conftest.err >&5 |
| 7680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7681 | (exit $ac_status); } && { |
| 7682 | test -z "$ac_cxx_werror_flag" || |
| 7683 | test ! -s conftest.err |
| 7684 | } && test -s conftest$ac_exeext && |
| 7685 | $as_test_x conftest$ac_exeext; then |
| 7686 | eval "$as_ac_var=yes" |
| 7687 | else |
| 7688 | echo "$as_me: failed program was:" >&5 |
| 7689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7690 | |
| 7691 | eval "$as_ac_var=no" |
| 7692 | fi |
| 7693 | |
| 7694 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7695 | conftest$ac_exeext conftest.$ac_ext |
| 7696 | fi |
| 7697 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 7698 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7699 | echo "${ECHO_T}$ac_res" >&6; } |
| 7700 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 7701 | cat >>confdefs.h <<_ACEOF |
| 7702 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 7703 | _ACEOF |
| 7704 | |
| 7705 | fi |
| 7706 | done |
| 7707 | |
| 7708 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 7709 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 7710 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 7711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7712 | else |
| 7713 | if test "$cross_compiling" = yes; then |
| 7714 | ac_cv_func_mmap_fixed_mapped=no |
| 7715 | else |
| 7716 | cat >conftest.$ac_ext <<_ACEOF |
| 7717 | /* confdefs.h. */ |
| 7718 | _ACEOF |
| 7719 | cat confdefs.h >>conftest.$ac_ext |
| 7720 | cat >>conftest.$ac_ext <<_ACEOF |
| 7721 | /* end confdefs.h. */ |
| 7722 | $ac_includes_default |
| 7723 | /* malloc might have been renamed as rpl_malloc. */ |
| 7724 | #undef malloc |
| 7725 | |
| 7726 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7727 | Here is a matrix of mmap possibilities: |
| 7728 | mmap private not fixed |
| 7729 | mmap private fixed at somewhere currently unmapped |
| 7730 | mmap private fixed at somewhere already mapped |
| 7731 | mmap shared not fixed |
| 7732 | mmap shared fixed at somewhere currently unmapped |
| 7733 | mmap shared fixed at somewhere already mapped |
| 7734 | For private mappings, we should verify that changes cannot be read() |
| 7735 | back from the file, nor mmap's back from the file at a different |
| 7736 | address. (There have been systems where private was not correctly |
| 7737 | implemented like the infamous i386 svr4.0, and systems where the |
| 7738 | VM page cache was not coherent with the file system buffer cache |
| 7739 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7740 | For shared mappings, we should conversely verify that changes get |
| 7741 | propagated back to all the places they're supposed to be. |
| 7742 | |
| 7743 | Grep wants private fixed already mapped. |
| 7744 | The main things grep needs to know about mmap are: |
| 7745 | * does it exist and is it safe to write into the mmap'd area |
| 7746 | * how to use it (BSD variants) */ |
| 7747 | |
| 7748 | #include <fcntl.h> |
| 7749 | #include <sys/mman.h> |
| 7750 | |
| 7751 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
| 7752 | char *malloc (); |
| 7753 | #endif |
| 7754 | |
| 7755 | /* This mess was copied from the GNU getpagesize.h. */ |
| 7756 | #ifndef HAVE_GETPAGESIZE |
| 7757 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 7758 | # ifndef HAVE_SYS_PARAM_H |
| 7759 | # define HAVE_SYS_PARAM_H 1 |
| 7760 | # endif |
| 7761 | |
| 7762 | # ifdef _SC_PAGESIZE |
| 7763 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7764 | # else /* no _SC_PAGESIZE */ |
| 7765 | # ifdef HAVE_SYS_PARAM_H |
| 7766 | # include <sys/param.h> |
| 7767 | # ifdef EXEC_PAGESIZE |
| 7768 | # define getpagesize() EXEC_PAGESIZE |
| 7769 | # else /* no EXEC_PAGESIZE */ |
| 7770 | # ifdef NBPG |
| 7771 | # define getpagesize() NBPG * CLSIZE |
| 7772 | # ifndef CLSIZE |
| 7773 | # define CLSIZE 1 |
| 7774 | # endif /* no CLSIZE */ |
| 7775 | # else /* no NBPG */ |
| 7776 | # ifdef NBPC |
| 7777 | # define getpagesize() NBPC |
| 7778 | # else /* no NBPC */ |
| 7779 | # ifdef PAGESIZE |
| 7780 | # define getpagesize() PAGESIZE |
| 7781 | # endif /* PAGESIZE */ |
| 7782 | # endif /* no NBPC */ |
| 7783 | # endif /* no NBPG */ |
| 7784 | # endif /* no EXEC_PAGESIZE */ |
| 7785 | # else /* no HAVE_SYS_PARAM_H */ |
| 7786 | # define getpagesize() 8192 /* punt totally */ |
| 7787 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7788 | # endif /* no _SC_PAGESIZE */ |
| 7789 | |
| 7790 | #endif /* no HAVE_GETPAGESIZE */ |
| 7791 | |
| 7792 | int |
| 7793 | main () |
| 7794 | { |
| 7795 | char *data, *data2, *data3; |
| 7796 | int i, pagesize; |
| 7797 | int fd; |
| 7798 | |
| 7799 | pagesize = getpagesize (); |
| 7800 | |
| 7801 | /* First, make a file with some known garbage in it. */ |
| 7802 | data = (char *) malloc (pagesize); |
| 7803 | if (!data) |
| 7804 | return 1; |
| 7805 | for (i = 0; i < pagesize; ++i) |
| 7806 | *(data + i) = rand (); |
| 7807 | umask (0); |
| 7808 | fd = creat ("conftest.mmap", 0600); |
| 7809 | if (fd < 0) |
| 7810 | return 1; |
| 7811 | if (write (fd, data, pagesize) != pagesize) |
| 7812 | return 1; |
| 7813 | close (fd); |
| 7814 | |
| 7815 | /* Next, try to mmap the file at a fixed address which already has |
| 7816 | something else allocated at it. If we can, also make sure that |
| 7817 | we see the same garbage. */ |
| 7818 | fd = open ("conftest.mmap", O_RDWR); |
| 7819 | if (fd < 0) |
| 7820 | return 1; |
| 7821 | data2 = (char *) malloc (2 * pagesize); |
| 7822 | if (!data2) |
| 7823 | return 1; |
| 7824 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 7825 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7826 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 7827 | return 1; |
| 7828 | for (i = 0; i < pagesize; ++i) |
| 7829 | if (*(data + i) != *(data2 + i)) |
| 7830 | return 1; |
| 7831 | |
| 7832 | /* Finally, make sure that changes to the mapped area do not |
| 7833 | percolate back to the file as seen by read(). (This is a bug on |
| 7834 | some variants of i386 svr4.0.) */ |
| 7835 | for (i = 0; i < pagesize; ++i) |
| 7836 | *(data2 + i) = *(data2 + i) + 1; |
| 7837 | data3 = (char *) malloc (pagesize); |
| 7838 | if (!data3) |
| 7839 | return 1; |
| 7840 | if (read (fd, data3, pagesize) != pagesize) |
| 7841 | return 1; |
| 7842 | for (i = 0; i < pagesize; ++i) |
| 7843 | if (*(data + i) != *(data3 + i)) |
| 7844 | return 1; |
| 7845 | close (fd); |
| 7846 | return 0; |
| 7847 | } |
| 7848 | _ACEOF |
| 7849 | rm -f conftest$ac_exeext |
| 7850 | if { (ac_try="$ac_link" |
| 7851 | case "(($ac_try" in |
| 7852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7853 | *) ac_try_echo=$ac_try;; |
| 7854 | esac |
| 7855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7856 | (eval "$ac_link") 2>&5 |
| 7857 | ac_status=$? |
| 7858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7859 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7860 | { (case "(($ac_try" in |
| 7861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7862 | *) ac_try_echo=$ac_try;; |
| 7863 | esac |
| 7864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7865 | (eval "$ac_try") 2>&5 |
| 7866 | ac_status=$? |
| 7867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7868 | (exit $ac_status); }; }; then |
| 7869 | ac_cv_func_mmap_fixed_mapped=yes |
| 7870 | else |
| 7871 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7872 | echo "$as_me: failed program was:" >&5 |
| 7873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7874 | |
| 7875 | ( exit $ac_status ) |
| 7876 | ac_cv_func_mmap_fixed_mapped=no |
| 7877 | fi |
| 7878 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7879 | fi |
| 7880 | |
| 7881 | |
| 7882 | fi |
| 7883 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 7884 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
| 7885 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 7886 | |
| 7887 | cat >>confdefs.h <<\_ACEOF |
| 7888 | #define HAVE_MMAP 1 |
| 7889 | _ACEOF |
| 7890 | |
| 7891 | fi |
| 7892 | rm -f conftest.mmap |
| 7893 | |
| 7894 | |
| 7895 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 7896 | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } |
| 7897 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 7898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7899 | else |
| 7900 | cat >conftest.$ac_ext <<_ACEOF |
| 7901 | /* confdefs.h. */ |
| 7902 | _ACEOF |
| 7903 | cat confdefs.h >>conftest.$ac_ext |
| 7904 | cat >>conftest.$ac_ext <<_ACEOF |
| 7905 | /* end confdefs.h. */ |
| 7906 | |
| 7907 | #include <features.h> |
| 7908 | #ifdef __GNU_LIBRARY__ |
| 7909 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7910 | Lucky GNU user |
| 7911 | #endif |
| 7912 | #endif |
| 7913 | |
| 7914 | _ACEOF |
| 7915 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7916 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
| 7917 | ac_cv_gnu_library_2_1=yes |
| 7918 | else |
| 7919 | ac_cv_gnu_library_2_1=no |
| 7920 | fi |
| 7921 | rm -f conftest* |
| 7922 | |
| 7923 | |
| 7924 | |
| 7925 | fi |
| 7926 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 7927 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
| 7928 | |
| 7929 | GLIBC21="$ac_cv_gnu_library_2_1" |
| 7930 | |
| 7931 | |
| 7932 | |
| 7933 | |
| 7934 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 7935 | echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } |
| 7936 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 7937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7938 | else |
| 7939 | |
| 7940 | if test "$cross_compiling" = yes; then |
| 7941 | |
| 7942 | # Guess based on the CPU. |
| 7943 | case "$host_cpu" in |
| 7944 | alpha* | i3456786 | m68k | s390*) |
| 7945 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7946 | *) |
| 7947 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7948 | esac |
| 7949 | |
| 7950 | else |
| 7951 | cat >conftest.$ac_ext <<_ACEOF |
| 7952 | /* confdefs.h. */ |
| 7953 | _ACEOF |
| 7954 | cat confdefs.h >>conftest.$ac_ext |
| 7955 | cat >>conftest.$ac_ext <<_ACEOF |
| 7956 | /* end confdefs.h. */ |
| 7957 | |
| 7958 | #include <stdlib.h> |
| 7959 | #include <signal.h> |
| 7960 | |
| 7961 | static void |
| 7962 | #ifdef __cplusplus |
| 7963 | sigfpe_handler (int sig) |
| 7964 | #else |
| 7965 | sigfpe_handler (sig) int sig; |
| 7966 | #endif |
| 7967 | { |
| 7968 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7969 | exit (sig != SIGFPE); |
| 7970 | } |
| 7971 | |
| 7972 | int x = 1; |
| 7973 | int y = 0; |
| 7974 | int z; |
| 7975 | int nan; |
| 7976 | |
| 7977 | int main () |
| 7978 | { |
| 7979 | signal (SIGFPE, sigfpe_handler); |
| 7980 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7981 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7982 | signal (SIGTRAP, sigfpe_handler); |
| 7983 | #endif |
| 7984 | /* Linux/SPARC yields signal SIGILL. */ |
| 7985 | #if defined (__sparc__) && defined (__linux__) |
| 7986 | signal (SIGILL, sigfpe_handler); |
| 7987 | #endif |
| 7988 | |
| 7989 | z = x / y; |
| 7990 | nan = y / y; |
| 7991 | exit (1); |
| 7992 | } |
| 7993 | |
| 7994 | _ACEOF |
| 7995 | rm -f conftest$ac_exeext |
| 7996 | if { (ac_try="$ac_link" |
| 7997 | case "(($ac_try" in |
| 7998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7999 | *) ac_try_echo=$ac_try;; |
| 8000 | esac |
| 8001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8002 | (eval "$ac_link") 2>&5 |
| 8003 | ac_status=$? |
| 8004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8005 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8006 | { (case "(($ac_try" in |
| 8007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8008 | *) ac_try_echo=$ac_try;; |
| 8009 | esac |
| 8010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8011 | (eval "$ac_try") 2>&5 |
| 8012 | ac_status=$? |
| 8013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8014 | (exit $ac_status); }; }; then |
| 8015 | gt_cv_int_divbyzero_sigfpe=yes |
| 8016 | else |
| 8017 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8018 | echo "$as_me: failed program was:" >&5 |
| 8019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8020 | |
| 8021 | ( exit $ac_status ) |
| 8022 | gt_cv_int_divbyzero_sigfpe=no |
| 8023 | fi |
| 8024 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8025 | fi |
| 8026 | |
| 8027 | |
| 8028 | |
| 8029 | fi |
| 8030 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 8031 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
| 8032 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 8033 | *yes) value=1;; |
| 8034 | *) value=0;; |
| 8035 | esac |
| 8036 | |
| 8037 | cat >>confdefs.h <<_ACEOF |
| 8038 | #define INTDIV0_RAISES_SIGFPE $value |
| 8039 | _ACEOF |
| 8040 | |
| 8041 | |
| 8042 | |
| 8043 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 8044 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
| 8045 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 8046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8047 | else |
| 8048 | cat >conftest.$ac_ext <<_ACEOF |
| 8049 | /* confdefs.h. */ |
| 8050 | _ACEOF |
| 8051 | cat confdefs.h >>conftest.$ac_ext |
| 8052 | cat >>conftest.$ac_ext <<_ACEOF |
| 8053 | /* end confdefs.h. */ |
| 8054 | unsigned long long ull = 1ULL; int i = 63; |
| 8055 | int |
| 8056 | main () |
| 8057 | { |
| 8058 | unsigned long long ullmax = (unsigned long long) -1; |
| 8059 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 8060 | ; |
| 8061 | return 0; |
| 8062 | } |
| 8063 | _ACEOF |
| 8064 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8065 | if { (ac_try="$ac_link" |
| 8066 | case "(($ac_try" in |
| 8067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8068 | *) ac_try_echo=$ac_try;; |
| 8069 | esac |
| 8070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8071 | (eval "$ac_link") 2>conftest.er1 |
| 8072 | ac_status=$? |
| 8073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8074 | rm -f conftest.er1 |
| 8075 | cat conftest.err >&5 |
| 8076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8077 | (exit $ac_status); } && { |
| 8078 | test -z "$ac_cxx_werror_flag" || |
| 8079 | test ! -s conftest.err |
| 8080 | } && test -s conftest$ac_exeext && |
| 8081 | $as_test_x conftest$ac_exeext; then |
| 8082 | ac_cv_type_unsigned_long_long=yes |
| 8083 | else |
| 8084 | echo "$as_me: failed program was:" >&5 |
| 8085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8086 | |
| 8087 | ac_cv_type_unsigned_long_long=no |
| 8088 | fi |
| 8089 | |
| 8090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 8091 | conftest$ac_exeext conftest.$ac_ext |
| 8092 | fi |
| 8093 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 8094 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
| 8095 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 8096 | |
| 8097 | cat >>confdefs.h <<\_ACEOF |
| 8098 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 8099 | _ACEOF |
| 8100 | |
| 8101 | fi |
| 8102 | |
| 8103 | |
| 8104 | |
| 8105 | |
| 8106 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
| 8107 | |
| 8108 | test $ac_cv_type_unsigned_long_long = yes \ |
| 8109 | && ac_type='unsigned long long' \ |
| 8110 | || ac_type='unsigned long' |
| 8111 | |
| 8112 | cat >>confdefs.h <<_ACEOF |
| 8113 | #define uintmax_t $ac_type |
| 8114 | _ACEOF |
| 8115 | |
| 8116 | else |
| 8117 | |
| 8118 | cat >>confdefs.h <<\_ACEOF |
| 8119 | #define HAVE_UINTMAX_T 1 |
| 8120 | _ACEOF |
| 8121 | |
| 8122 | fi |
| 8123 | |
| 8124 | |
| 8125 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 8126 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
| 8127 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 8128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8129 | else |
| 8130 | |
| 8131 | cat >conftest.$ac_ext <<_ACEOF |
| 8132 | /* confdefs.h. */ |
| 8133 | _ACEOF |
| 8134 | cat confdefs.h >>conftest.$ac_ext |
| 8135 | cat >>conftest.$ac_ext <<_ACEOF |
| 8136 | /* end confdefs.h. */ |
| 8137 | #include <sys/types.h> |
| 8138 | #include <inttypes.h> |
| 8139 | int |
| 8140 | main () |
| 8141 | { |
| 8142 | |
| 8143 | ; |
| 8144 | return 0; |
| 8145 | } |
| 8146 | _ACEOF |
| 8147 | rm -f conftest.$ac_objext |
| 8148 | if { (ac_try="$ac_compile" |
| 8149 | case "(($ac_try" in |
| 8150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8151 | *) ac_try_echo=$ac_try;; |
| 8152 | esac |
| 8153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8154 | (eval "$ac_compile") 2>conftest.er1 |
| 8155 | ac_status=$? |
| 8156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8157 | rm -f conftest.er1 |
| 8158 | cat conftest.err >&5 |
| 8159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8160 | (exit $ac_status); } && { |
| 8161 | test -z "$ac_cxx_werror_flag" || |
| 8162 | test ! -s conftest.err |
| 8163 | } && test -s conftest.$ac_objext; then |
| 8164 | gt_cv_header_inttypes_h=yes |
| 8165 | else |
| 8166 | echo "$as_me: failed program was:" >&5 |
| 8167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8168 | |
| 8169 | gt_cv_header_inttypes_h=no |
| 8170 | fi |
| 8171 | |
| 8172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8173 | |
| 8174 | fi |
| 8175 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 8176 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } |
| 8177 | if test $gt_cv_header_inttypes_h = yes; then |
| 8178 | |
| 8179 | cat >>confdefs.h <<_ACEOF |
| 8180 | #define HAVE_INTTYPES_H 1 |
| 8181 | _ACEOF |
| 8182 | |
| 8183 | fi |
| 8184 | |
| 8185 | |
| 8186 | |
| 8187 | if test $gt_cv_header_inttypes_h = yes; then |
| 8188 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 8189 | echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } |
| 8190 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 8191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8192 | else |
| 8193 | |
| 8194 | cat >conftest.$ac_ext <<_ACEOF |
| 8195 | /* confdefs.h. */ |
| 8196 | _ACEOF |
| 8197 | cat confdefs.h >>conftest.$ac_ext |
| 8198 | cat >>conftest.$ac_ext <<_ACEOF |
| 8199 | /* end confdefs.h. */ |
| 8200 | #include <inttypes.h> |
| 8201 | #ifdef PRId32 |
| 8202 | char *p = PRId32; |
| 8203 | #endif |
| 8204 | |
| 8205 | int |
| 8206 | main () |
| 8207 | { |
| 8208 | |
| 8209 | ; |
| 8210 | return 0; |
| 8211 | } |
| 8212 | _ACEOF |
| 8213 | rm -f conftest.$ac_objext |
| 8214 | if { (ac_try="$ac_compile" |
| 8215 | case "(($ac_try" in |
| 8216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8217 | *) ac_try_echo=$ac_try;; |
| 8218 | esac |
| 8219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8220 | (eval "$ac_compile") 2>conftest.er1 |
| 8221 | ac_status=$? |
| 8222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8223 | rm -f conftest.er1 |
| 8224 | cat conftest.err >&5 |
| 8225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8226 | (exit $ac_status); } && { |
| 8227 | test -z "$ac_cxx_werror_flag" || |
| 8228 | test ! -s conftest.err |
| 8229 | } && test -s conftest.$ac_objext; then |
| 8230 | gt_cv_inttypes_pri_broken=no |
| 8231 | else |
| 8232 | echo "$as_me: failed program was:" >&5 |
| 8233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8234 | |
| 8235 | gt_cv_inttypes_pri_broken=yes |
| 8236 | fi |
| 8237 | |
| 8238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8239 | |
| 8240 | fi |
| 8241 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 8242 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
| 8243 | fi |
| 8244 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
| 8245 | |
| 8246 | cat >>confdefs.h <<_ACEOF |
| 8247 | #define PRI_MACROS_BROKEN 1 |
| 8248 | _ACEOF |
| 8249 | |
| 8250 | fi |
| 8251 | |
| 8252 | |
| 8253 | |
| 8254 | for ac_header in stdint.h |
| 8255 | do |
| 8256 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8257 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8258 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8259 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8260 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8262 | fi |
| 8263 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8264 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8265 | echo "${ECHO_T}$ac_res" >&6; } |
| 8266 | else |
| 8267 | # Is the header compilable? |
| 8268 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8269 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 8270 | cat >conftest.$ac_ext <<_ACEOF |
| 8271 | /* confdefs.h. */ |
| 8272 | _ACEOF |
| 8273 | cat confdefs.h >>conftest.$ac_ext |
| 8274 | cat >>conftest.$ac_ext <<_ACEOF |
| 8275 | /* end confdefs.h. */ |
| 8276 | $ac_includes_default |
| 8277 | #include <$ac_header> |
| 8278 | _ACEOF |
| 8279 | rm -f conftest.$ac_objext |
| 8280 | if { (ac_try="$ac_compile" |
| 8281 | case "(($ac_try" in |
| 8282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8283 | *) ac_try_echo=$ac_try;; |
| 8284 | esac |
| 8285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8286 | (eval "$ac_compile") 2>conftest.er1 |
| 8287 | ac_status=$? |
| 8288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8289 | rm -f conftest.er1 |
| 8290 | cat conftest.err >&5 |
| 8291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8292 | (exit $ac_status); } && { |
| 8293 | test -z "$ac_cxx_werror_flag" || |
| 8294 | test ! -s conftest.err |
| 8295 | } && test -s conftest.$ac_objext; then |
| 8296 | ac_header_compiler=yes |
| 8297 | else |
| 8298 | echo "$as_me: failed program was:" >&5 |
| 8299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8300 | |
| 8301 | ac_header_compiler=no |
| 8302 | fi |
| 8303 | |
| 8304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8305 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8306 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8307 | |
| 8308 | # Is the header present? |
| 8309 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8310 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 8311 | cat >conftest.$ac_ext <<_ACEOF |
| 8312 | /* confdefs.h. */ |
| 8313 | _ACEOF |
| 8314 | cat confdefs.h >>conftest.$ac_ext |
| 8315 | cat >>conftest.$ac_ext <<_ACEOF |
| 8316 | /* end confdefs.h. */ |
| 8317 | #include <$ac_header> |
| 8318 | _ACEOF |
| 8319 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8320 | case "(($ac_try" in |
| 8321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8322 | *) ac_try_echo=$ac_try;; |
| 8323 | esac |
| 8324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8325 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8326 | ac_status=$? |
| 8327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8328 | rm -f conftest.er1 |
| 8329 | cat conftest.err >&5 |
| 8330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8331 | (exit $ac_status); } >/dev/null && { |
| 8332 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 8333 | test ! -s conftest.err |
| 8334 | }; then |
| 8335 | ac_header_preproc=yes |
| 8336 | else |
| 8337 | echo "$as_me: failed program was:" >&5 |
| 8338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8339 | |
| 8340 | ac_header_preproc=no |
| 8341 | fi |
| 8342 | |
| 8343 | rm -f conftest.err conftest.$ac_ext |
| 8344 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8345 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8346 | |
| 8347 | # So? What about this header? |
| 8348 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 8349 | yes:no: ) |
| 8350 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8351 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8353 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8354 | ac_header_preproc=yes |
| 8355 | ;; |
| 8356 | no:yes:* ) |
| 8357 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8358 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8359 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8360 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8361 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8362 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8363 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8364 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8365 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8366 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8367 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8368 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8369 | |
| 8370 | ;; |
| 8371 | esac |
| 8372 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8374 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8376 | else |
| 8377 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8378 | fi |
| 8379 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8380 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8381 | echo "${ECHO_T}$ac_res" >&6; } |
| 8382 | |
| 8383 | fi |
| 8384 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8385 | cat >>confdefs.h <<_ACEOF |
| 8386 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8387 | _ACEOF |
| 8388 | |
| 8389 | fi |
| 8390 | |
| 8391 | done |
| 8392 | |
| 8393 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 8394 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
| 8395 | result= |
| 8396 | cat >conftest.$ac_ext <<_ACEOF |
| 8397 | /* confdefs.h. */ |
| 8398 | _ACEOF |
| 8399 | cat confdefs.h >>conftest.$ac_ext |
| 8400 | cat >>conftest.$ac_ext <<_ACEOF |
| 8401 | /* end confdefs.h. */ |
| 8402 | |
| 8403 | #include <limits.h> |
| 8404 | #if HAVE_STDINT_H |
| 8405 | #include <stdint.h> |
| 8406 | #endif |
| 8407 | #ifdef SIZE_MAX |
| 8408 | Found it |
| 8409 | #endif |
| 8410 | |
| 8411 | _ACEOF |
| 8412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8413 | $EGREP "Found it" >/dev/null 2>&1; then |
| 8414 | result=yes |
| 8415 | fi |
| 8416 | rm -f conftest* |
| 8417 | |
| 8418 | if test -z "$result"; then |
| 8419 | if test "$cross_compiling" = yes; then |
| 8420 | # Depending upon the size, compute the lo and hi bounds. |
| 8421 | cat >conftest.$ac_ext <<_ACEOF |
| 8422 | /* confdefs.h. */ |
| 8423 | _ACEOF |
| 8424 | cat confdefs.h >>conftest.$ac_ext |
| 8425 | cat >>conftest.$ac_ext <<_ACEOF |
| 8426 | /* end confdefs.h. */ |
| 8427 | #include <stddef.h> |
| 8428 | int |
| 8429 | main () |
| 8430 | { |
| 8431 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 8432 | test_array [0] = 0 |
| 8433 | |
| 8434 | ; |
| 8435 | return 0; |
| 8436 | } |
| 8437 | _ACEOF |
| 8438 | rm -f conftest.$ac_objext |
| 8439 | if { (ac_try="$ac_compile" |
| 8440 | case "(($ac_try" in |
| 8441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8442 | *) ac_try_echo=$ac_try;; |
| 8443 | esac |
| 8444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8445 | (eval "$ac_compile") 2>conftest.er1 |
| 8446 | ac_status=$? |
| 8447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8448 | rm -f conftest.er1 |
| 8449 | cat conftest.err >&5 |
| 8450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8451 | (exit $ac_status); } && { |
| 8452 | test -z "$ac_cxx_werror_flag" || |
| 8453 | test ! -s conftest.err |
| 8454 | } && test -s conftest.$ac_objext; then |
| 8455 | ac_lo=0 ac_mid=0 |
| 8456 | while :; do |
| 8457 | cat >conftest.$ac_ext <<_ACEOF |
| 8458 | /* confdefs.h. */ |
| 8459 | _ACEOF |
| 8460 | cat confdefs.h >>conftest.$ac_ext |
| 8461 | cat >>conftest.$ac_ext <<_ACEOF |
| 8462 | /* end confdefs.h. */ |
| 8463 | #include <stddef.h> |
| 8464 | int |
| 8465 | main () |
| 8466 | { |
| 8467 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 8468 | test_array [0] = 0 |
| 8469 | |
| 8470 | ; |
| 8471 | return 0; |
| 8472 | } |
| 8473 | _ACEOF |
| 8474 | rm -f conftest.$ac_objext |
| 8475 | if { (ac_try="$ac_compile" |
| 8476 | case "(($ac_try" in |
| 8477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8478 | *) ac_try_echo=$ac_try;; |
| 8479 | esac |
| 8480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8481 | (eval "$ac_compile") 2>conftest.er1 |
| 8482 | ac_status=$? |
| 8483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8484 | rm -f conftest.er1 |
| 8485 | cat conftest.err >&5 |
| 8486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8487 | (exit $ac_status); } && { |
| 8488 | test -z "$ac_cxx_werror_flag" || |
| 8489 | test ! -s conftest.err |
| 8490 | } && test -s conftest.$ac_objext; then |
| 8491 | ac_hi=$ac_mid; break |
| 8492 | else |
| 8493 | echo "$as_me: failed program was:" >&5 |
| 8494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8495 | |
| 8496 | ac_lo=`expr $ac_mid + 1` |
| 8497 | if test $ac_lo -le $ac_mid; then |
| 8498 | ac_lo= ac_hi= |
| 8499 | break |
| 8500 | fi |
| 8501 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8502 | fi |
| 8503 | |
| 8504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8505 | done |
| 8506 | else |
| 8507 | echo "$as_me: failed program was:" >&5 |
| 8508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8509 | |
| 8510 | cat >conftest.$ac_ext <<_ACEOF |
| 8511 | /* confdefs.h. */ |
| 8512 | _ACEOF |
| 8513 | cat confdefs.h >>conftest.$ac_ext |
| 8514 | cat >>conftest.$ac_ext <<_ACEOF |
| 8515 | /* end confdefs.h. */ |
| 8516 | #include <stddef.h> |
| 8517 | int |
| 8518 | main () |
| 8519 | { |
| 8520 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 8521 | test_array [0] = 0 |
| 8522 | |
| 8523 | ; |
| 8524 | return 0; |
| 8525 | } |
| 8526 | _ACEOF |
| 8527 | rm -f conftest.$ac_objext |
| 8528 | if { (ac_try="$ac_compile" |
| 8529 | case "(($ac_try" in |
| 8530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8531 | *) ac_try_echo=$ac_try;; |
| 8532 | esac |
| 8533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8534 | (eval "$ac_compile") 2>conftest.er1 |
| 8535 | ac_status=$? |
| 8536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8537 | rm -f conftest.er1 |
| 8538 | cat conftest.err >&5 |
| 8539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8540 | (exit $ac_status); } && { |
| 8541 | test -z "$ac_cxx_werror_flag" || |
| 8542 | test ! -s conftest.err |
| 8543 | } && test -s conftest.$ac_objext; then |
| 8544 | ac_hi=-1 ac_mid=-1 |
| 8545 | while :; do |
| 8546 | cat >conftest.$ac_ext <<_ACEOF |
| 8547 | /* confdefs.h. */ |
| 8548 | _ACEOF |
| 8549 | cat confdefs.h >>conftest.$ac_ext |
| 8550 | cat >>conftest.$ac_ext <<_ACEOF |
| 8551 | /* end confdefs.h. */ |
| 8552 | #include <stddef.h> |
| 8553 | int |
| 8554 | main () |
| 8555 | { |
| 8556 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 8557 | test_array [0] = 0 |
| 8558 | |
| 8559 | ; |
| 8560 | return 0; |
| 8561 | } |
| 8562 | _ACEOF |
| 8563 | rm -f conftest.$ac_objext |
| 8564 | if { (ac_try="$ac_compile" |
| 8565 | case "(($ac_try" in |
| 8566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8567 | *) ac_try_echo=$ac_try;; |
| 8568 | esac |
| 8569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8570 | (eval "$ac_compile") 2>conftest.er1 |
| 8571 | ac_status=$? |
| 8572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8573 | rm -f conftest.er1 |
| 8574 | cat conftest.err >&5 |
| 8575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8576 | (exit $ac_status); } && { |
| 8577 | test -z "$ac_cxx_werror_flag" || |
| 8578 | test ! -s conftest.err |
| 8579 | } && test -s conftest.$ac_objext; then |
| 8580 | ac_lo=$ac_mid; break |
| 8581 | else |
| 8582 | echo "$as_me: failed program was:" >&5 |
| 8583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8584 | |
| 8585 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8586 | if test $ac_mid -le $ac_hi; then |
| 8587 | ac_lo= ac_hi= |
| 8588 | break |
| 8589 | fi |
| 8590 | ac_mid=`expr 2 '*' $ac_mid` |
| 8591 | fi |
| 8592 | |
| 8593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8594 | done |
| 8595 | else |
| 8596 | echo "$as_me: failed program was:" >&5 |
| 8597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8598 | |
| 8599 | ac_lo= ac_hi= |
| 8600 | fi |
| 8601 | |
| 8602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8603 | fi |
| 8604 | |
| 8605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8606 | # Binary search between lo and hi bounds. |
| 8607 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8608 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8609 | cat >conftest.$ac_ext <<_ACEOF |
| 8610 | /* confdefs.h. */ |
| 8611 | _ACEOF |
| 8612 | cat confdefs.h >>conftest.$ac_ext |
| 8613 | cat >>conftest.$ac_ext <<_ACEOF |
| 8614 | /* end confdefs.h. */ |
| 8615 | #include <stddef.h> |
| 8616 | int |
| 8617 | main () |
| 8618 | { |
| 8619 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 8620 | test_array [0] = 0 |
| 8621 | |
| 8622 | ; |
| 8623 | return 0; |
| 8624 | } |
| 8625 | _ACEOF |
| 8626 | rm -f conftest.$ac_objext |
| 8627 | if { (ac_try="$ac_compile" |
| 8628 | case "(($ac_try" in |
| 8629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8630 | *) ac_try_echo=$ac_try;; |
| 8631 | esac |
| 8632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8633 | (eval "$ac_compile") 2>conftest.er1 |
| 8634 | ac_status=$? |
| 8635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8636 | rm -f conftest.er1 |
| 8637 | cat conftest.err >&5 |
| 8638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8639 | (exit $ac_status); } && { |
| 8640 | test -z "$ac_cxx_werror_flag" || |
| 8641 | test ! -s conftest.err |
| 8642 | } && test -s conftest.$ac_objext; then |
| 8643 | ac_hi=$ac_mid |
| 8644 | else |
| 8645 | echo "$as_me: failed program was:" >&5 |
| 8646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8647 | |
| 8648 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8649 | fi |
| 8650 | |
| 8651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8652 | done |
| 8653 | case $ac_lo in |
| 8654 | ?*) res_hi=$ac_lo;; |
| 8655 | '') result=? ;; |
| 8656 | esac |
| 8657 | else |
| 8658 | cat >conftest.$ac_ext <<_ACEOF |
| 8659 | /* confdefs.h. */ |
| 8660 | _ACEOF |
| 8661 | cat confdefs.h >>conftest.$ac_ext |
| 8662 | cat >>conftest.$ac_ext <<_ACEOF |
| 8663 | /* end confdefs.h. */ |
| 8664 | #include <stddef.h> |
| 8665 | static long int longval () { return ~(size_t)0 / 10; } |
| 8666 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
| 8667 | #include <stdio.h> |
| 8668 | #include <stdlib.h> |
| 8669 | int |
| 8670 | main () |
| 8671 | { |
| 8672 | |
| 8673 | FILE *f = fopen ("conftest.val", "w"); |
| 8674 | if (! f) |
| 8675 | return 1; |
| 8676 | if ((~(size_t)0 / 10) < 0) |
| 8677 | { |
| 8678 | long int i = longval (); |
| 8679 | if (i != (~(size_t)0 / 10)) |
| 8680 | return 1; |
| 8681 | fprintf (f, "%ld\n", i); |
| 8682 | } |
| 8683 | else |
| 8684 | { |
| 8685 | unsigned long int i = ulongval (); |
| 8686 | if (i != (~(size_t)0 / 10)) |
| 8687 | return 1; |
| 8688 | fprintf (f, "%lu\n", i); |
| 8689 | } |
| 8690 | return ferror (f) || fclose (f) != 0; |
| 8691 | |
| 8692 | ; |
| 8693 | return 0; |
| 8694 | } |
| 8695 | _ACEOF |
| 8696 | rm -f conftest$ac_exeext |
| 8697 | if { (ac_try="$ac_link" |
| 8698 | case "(($ac_try" in |
| 8699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8700 | *) ac_try_echo=$ac_try;; |
| 8701 | esac |
| 8702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8703 | (eval "$ac_link") 2>&5 |
| 8704 | ac_status=$? |
| 8705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8706 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8707 | { (case "(($ac_try" in |
| 8708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8709 | *) ac_try_echo=$ac_try;; |
| 8710 | esac |
| 8711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8712 | (eval "$ac_try") 2>&5 |
| 8713 | ac_status=$? |
| 8714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8715 | (exit $ac_status); }; }; then |
| 8716 | res_hi=`cat conftest.val` |
| 8717 | else |
| 8718 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8719 | echo "$as_me: failed program was:" >&5 |
| 8720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8721 | |
| 8722 | ( exit $ac_status ) |
| 8723 | result=? |
| 8724 | fi |
| 8725 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8726 | fi |
| 8727 | rm -f conftest.val |
| 8728 | |
| 8729 | if test "$cross_compiling" = yes; then |
| 8730 | # Depending upon the size, compute the lo and hi bounds. |
| 8731 | cat >conftest.$ac_ext <<_ACEOF |
| 8732 | /* confdefs.h. */ |
| 8733 | _ACEOF |
| 8734 | cat confdefs.h >>conftest.$ac_ext |
| 8735 | cat >>conftest.$ac_ext <<_ACEOF |
| 8736 | /* end confdefs.h. */ |
| 8737 | #include <stddef.h> |
| 8738 | int |
| 8739 | main () |
| 8740 | { |
| 8741 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 8742 | test_array [0] = 0 |
| 8743 | |
| 8744 | ; |
| 8745 | return 0; |
| 8746 | } |
| 8747 | _ACEOF |
| 8748 | rm -f conftest.$ac_objext |
| 8749 | if { (ac_try="$ac_compile" |
| 8750 | case "(($ac_try" in |
| 8751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8752 | *) ac_try_echo=$ac_try;; |
| 8753 | esac |
| 8754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8755 | (eval "$ac_compile") 2>conftest.er1 |
| 8756 | ac_status=$? |
| 8757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8758 | rm -f conftest.er1 |
| 8759 | cat conftest.err >&5 |
| 8760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8761 | (exit $ac_status); } && { |
| 8762 | test -z "$ac_cxx_werror_flag" || |
| 8763 | test ! -s conftest.err |
| 8764 | } && test -s conftest.$ac_objext; then |
| 8765 | ac_lo=0 ac_mid=0 |
| 8766 | while :; do |
| 8767 | cat >conftest.$ac_ext <<_ACEOF |
| 8768 | /* confdefs.h. */ |
| 8769 | _ACEOF |
| 8770 | cat confdefs.h >>conftest.$ac_ext |
| 8771 | cat >>conftest.$ac_ext <<_ACEOF |
| 8772 | /* end confdefs.h. */ |
| 8773 | #include <stddef.h> |
| 8774 | int |
| 8775 | main () |
| 8776 | { |
| 8777 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 8778 | test_array [0] = 0 |
| 8779 | |
| 8780 | ; |
| 8781 | return 0; |
| 8782 | } |
| 8783 | _ACEOF |
| 8784 | rm -f conftest.$ac_objext |
| 8785 | if { (ac_try="$ac_compile" |
| 8786 | case "(($ac_try" in |
| 8787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8788 | *) ac_try_echo=$ac_try;; |
| 8789 | esac |
| 8790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8791 | (eval "$ac_compile") 2>conftest.er1 |
| 8792 | ac_status=$? |
| 8793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8794 | rm -f conftest.er1 |
| 8795 | cat conftest.err >&5 |
| 8796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8797 | (exit $ac_status); } && { |
| 8798 | test -z "$ac_cxx_werror_flag" || |
| 8799 | test ! -s conftest.err |
| 8800 | } && test -s conftest.$ac_objext; then |
| 8801 | ac_hi=$ac_mid; break |
| 8802 | else |
| 8803 | echo "$as_me: failed program was:" >&5 |
| 8804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8805 | |
| 8806 | ac_lo=`expr $ac_mid + 1` |
| 8807 | if test $ac_lo -le $ac_mid; then |
| 8808 | ac_lo= ac_hi= |
| 8809 | break |
| 8810 | fi |
| 8811 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8812 | fi |
| 8813 | |
| 8814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8815 | done |
| 8816 | else |
| 8817 | echo "$as_me: failed program was:" >&5 |
| 8818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8819 | |
| 8820 | cat >conftest.$ac_ext <<_ACEOF |
| 8821 | /* confdefs.h. */ |
| 8822 | _ACEOF |
| 8823 | cat confdefs.h >>conftest.$ac_ext |
| 8824 | cat >>conftest.$ac_ext <<_ACEOF |
| 8825 | /* end confdefs.h. */ |
| 8826 | #include <stddef.h> |
| 8827 | int |
| 8828 | main () |
| 8829 | { |
| 8830 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 8831 | test_array [0] = 0 |
| 8832 | |
| 8833 | ; |
| 8834 | return 0; |
| 8835 | } |
| 8836 | _ACEOF |
| 8837 | rm -f conftest.$ac_objext |
| 8838 | if { (ac_try="$ac_compile" |
| 8839 | case "(($ac_try" in |
| 8840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8841 | *) ac_try_echo=$ac_try;; |
| 8842 | esac |
| 8843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8844 | (eval "$ac_compile") 2>conftest.er1 |
| 8845 | ac_status=$? |
| 8846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8847 | rm -f conftest.er1 |
| 8848 | cat conftest.err >&5 |
| 8849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8850 | (exit $ac_status); } && { |
| 8851 | test -z "$ac_cxx_werror_flag" || |
| 8852 | test ! -s conftest.err |
| 8853 | } && test -s conftest.$ac_objext; then |
| 8854 | ac_hi=-1 ac_mid=-1 |
| 8855 | while :; do |
| 8856 | cat >conftest.$ac_ext <<_ACEOF |
| 8857 | /* confdefs.h. */ |
| 8858 | _ACEOF |
| 8859 | cat confdefs.h >>conftest.$ac_ext |
| 8860 | cat >>conftest.$ac_ext <<_ACEOF |
| 8861 | /* end confdefs.h. */ |
| 8862 | #include <stddef.h> |
| 8863 | int |
| 8864 | main () |
| 8865 | { |
| 8866 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 8867 | test_array [0] = 0 |
| 8868 | |
| 8869 | ; |
| 8870 | return 0; |
| 8871 | } |
| 8872 | _ACEOF |
| 8873 | rm -f conftest.$ac_objext |
| 8874 | if { (ac_try="$ac_compile" |
| 8875 | case "(($ac_try" in |
| 8876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8877 | *) ac_try_echo=$ac_try;; |
| 8878 | esac |
| 8879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8880 | (eval "$ac_compile") 2>conftest.er1 |
| 8881 | ac_status=$? |
| 8882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8883 | rm -f conftest.er1 |
| 8884 | cat conftest.err >&5 |
| 8885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8886 | (exit $ac_status); } && { |
| 8887 | test -z "$ac_cxx_werror_flag" || |
| 8888 | test ! -s conftest.err |
| 8889 | } && test -s conftest.$ac_objext; then |
| 8890 | ac_lo=$ac_mid; break |
| 8891 | else |
| 8892 | echo "$as_me: failed program was:" >&5 |
| 8893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8894 | |
| 8895 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8896 | if test $ac_mid -le $ac_hi; then |
| 8897 | ac_lo= ac_hi= |
| 8898 | break |
| 8899 | fi |
| 8900 | ac_mid=`expr 2 '*' $ac_mid` |
| 8901 | fi |
| 8902 | |
| 8903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8904 | done |
| 8905 | else |
| 8906 | echo "$as_me: failed program was:" >&5 |
| 8907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8908 | |
| 8909 | ac_lo= ac_hi= |
| 8910 | fi |
| 8911 | |
| 8912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8913 | fi |
| 8914 | |
| 8915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8916 | # Binary search between lo and hi bounds. |
| 8917 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8918 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8919 | cat >conftest.$ac_ext <<_ACEOF |
| 8920 | /* confdefs.h. */ |
| 8921 | _ACEOF |
| 8922 | cat confdefs.h >>conftest.$ac_ext |
| 8923 | cat >>conftest.$ac_ext <<_ACEOF |
| 8924 | /* end confdefs.h. */ |
| 8925 | #include <stddef.h> |
| 8926 | int |
| 8927 | main () |
| 8928 | { |
| 8929 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 8930 | test_array [0] = 0 |
| 8931 | |
| 8932 | ; |
| 8933 | return 0; |
| 8934 | } |
| 8935 | _ACEOF |
| 8936 | rm -f conftest.$ac_objext |
| 8937 | if { (ac_try="$ac_compile" |
| 8938 | case "(($ac_try" in |
| 8939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8940 | *) ac_try_echo=$ac_try;; |
| 8941 | esac |
| 8942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8943 | (eval "$ac_compile") 2>conftest.er1 |
| 8944 | ac_status=$? |
| 8945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8946 | rm -f conftest.er1 |
| 8947 | cat conftest.err >&5 |
| 8948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8949 | (exit $ac_status); } && { |
| 8950 | test -z "$ac_cxx_werror_flag" || |
| 8951 | test ! -s conftest.err |
| 8952 | } && test -s conftest.$ac_objext; then |
| 8953 | ac_hi=$ac_mid |
| 8954 | else |
| 8955 | echo "$as_me: failed program was:" >&5 |
| 8956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8957 | |
| 8958 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8959 | fi |
| 8960 | |
| 8961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8962 | done |
| 8963 | case $ac_lo in |
| 8964 | ?*) res_lo=$ac_lo;; |
| 8965 | '') result=? ;; |
| 8966 | esac |
| 8967 | else |
| 8968 | cat >conftest.$ac_ext <<_ACEOF |
| 8969 | /* confdefs.h. */ |
| 8970 | _ACEOF |
| 8971 | cat confdefs.h >>conftest.$ac_ext |
| 8972 | cat >>conftest.$ac_ext <<_ACEOF |
| 8973 | /* end confdefs.h. */ |
| 8974 | #include <stddef.h> |
| 8975 | static long int longval () { return ~(size_t)0 % 10; } |
| 8976 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
| 8977 | #include <stdio.h> |
| 8978 | #include <stdlib.h> |
| 8979 | int |
| 8980 | main () |
| 8981 | { |
| 8982 | |
| 8983 | FILE *f = fopen ("conftest.val", "w"); |
| 8984 | if (! f) |
| 8985 | return 1; |
| 8986 | if ((~(size_t)0 % 10) < 0) |
| 8987 | { |
| 8988 | long int i = longval (); |
| 8989 | if (i != (~(size_t)0 % 10)) |
| 8990 | return 1; |
| 8991 | fprintf (f, "%ld\n", i); |
| 8992 | } |
| 8993 | else |
| 8994 | { |
| 8995 | unsigned long int i = ulongval (); |
| 8996 | if (i != (~(size_t)0 % 10)) |
| 8997 | return 1; |
| 8998 | fprintf (f, "%lu\n", i); |
| 8999 | } |
| 9000 | return ferror (f) || fclose (f) != 0; |
| 9001 | |
| 9002 | ; |
| 9003 | return 0; |
| 9004 | } |
| 9005 | _ACEOF |
| 9006 | rm -f conftest$ac_exeext |
| 9007 | if { (ac_try="$ac_link" |
| 9008 | case "(($ac_try" in |
| 9009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9010 | *) ac_try_echo=$ac_try;; |
| 9011 | esac |
| 9012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9013 | (eval "$ac_link") 2>&5 |
| 9014 | ac_status=$? |
| 9015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9016 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9017 | { (case "(($ac_try" in |
| 9018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9019 | *) ac_try_echo=$ac_try;; |
| 9020 | esac |
| 9021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9022 | (eval "$ac_try") 2>&5 |
| 9023 | ac_status=$? |
| 9024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9025 | (exit $ac_status); }; }; then |
| 9026 | res_lo=`cat conftest.val` |
| 9027 | else |
| 9028 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9029 | echo "$as_me: failed program was:" >&5 |
| 9030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9031 | |
| 9032 | ( exit $ac_status ) |
| 9033 | result=? |
| 9034 | fi |
| 9035 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 9036 | fi |
| 9037 | rm -f conftest.val |
| 9038 | |
| 9039 | if test "$cross_compiling" = yes; then |
| 9040 | # Depending upon the size, compute the lo and hi bounds. |
| 9041 | cat >conftest.$ac_ext <<_ACEOF |
| 9042 | /* confdefs.h. */ |
| 9043 | _ACEOF |
| 9044 | cat confdefs.h >>conftest.$ac_ext |
| 9045 | cat >>conftest.$ac_ext <<_ACEOF |
| 9046 | /* end confdefs.h. */ |
| 9047 | #include <stddef.h> |
| 9048 | int |
| 9049 | main () |
| 9050 | { |
| 9051 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 9052 | test_array [0] = 0 |
| 9053 | |
| 9054 | ; |
| 9055 | return 0; |
| 9056 | } |
| 9057 | _ACEOF |
| 9058 | rm -f conftest.$ac_objext |
| 9059 | if { (ac_try="$ac_compile" |
| 9060 | case "(($ac_try" in |
| 9061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9062 | *) ac_try_echo=$ac_try;; |
| 9063 | esac |
| 9064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9065 | (eval "$ac_compile") 2>conftest.er1 |
| 9066 | ac_status=$? |
| 9067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9068 | rm -f conftest.er1 |
| 9069 | cat conftest.err >&5 |
| 9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9071 | (exit $ac_status); } && { |
| 9072 | test -z "$ac_cxx_werror_flag" || |
| 9073 | test ! -s conftest.err |
| 9074 | } && test -s conftest.$ac_objext; then |
| 9075 | ac_lo=0 ac_mid=0 |
| 9076 | while :; do |
| 9077 | cat >conftest.$ac_ext <<_ACEOF |
| 9078 | /* confdefs.h. */ |
| 9079 | _ACEOF |
| 9080 | cat confdefs.h >>conftest.$ac_ext |
| 9081 | cat >>conftest.$ac_ext <<_ACEOF |
| 9082 | /* end confdefs.h. */ |
| 9083 | #include <stddef.h> |
| 9084 | int |
| 9085 | main () |
| 9086 | { |
| 9087 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 9088 | test_array [0] = 0 |
| 9089 | |
| 9090 | ; |
| 9091 | return 0; |
| 9092 | } |
| 9093 | _ACEOF |
| 9094 | rm -f conftest.$ac_objext |
| 9095 | if { (ac_try="$ac_compile" |
| 9096 | case "(($ac_try" in |
| 9097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9098 | *) ac_try_echo=$ac_try;; |
| 9099 | esac |
| 9100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9101 | (eval "$ac_compile") 2>conftest.er1 |
| 9102 | ac_status=$? |
| 9103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9104 | rm -f conftest.er1 |
| 9105 | cat conftest.err >&5 |
| 9106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9107 | (exit $ac_status); } && { |
| 9108 | test -z "$ac_cxx_werror_flag" || |
| 9109 | test ! -s conftest.err |
| 9110 | } && test -s conftest.$ac_objext; then |
| 9111 | ac_hi=$ac_mid; break |
| 9112 | else |
| 9113 | echo "$as_me: failed program was:" >&5 |
| 9114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9115 | |
| 9116 | ac_lo=`expr $ac_mid + 1` |
| 9117 | if test $ac_lo -le $ac_mid; then |
| 9118 | ac_lo= ac_hi= |
| 9119 | break |
| 9120 | fi |
| 9121 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9122 | fi |
| 9123 | |
| 9124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9125 | done |
| 9126 | else |
| 9127 | echo "$as_me: failed program was:" >&5 |
| 9128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9129 | |
| 9130 | cat >conftest.$ac_ext <<_ACEOF |
| 9131 | /* confdefs.h. */ |
| 9132 | _ACEOF |
| 9133 | cat confdefs.h >>conftest.$ac_ext |
| 9134 | cat >>conftest.$ac_ext <<_ACEOF |
| 9135 | /* end confdefs.h. */ |
| 9136 | #include <stddef.h> |
| 9137 | int |
| 9138 | main () |
| 9139 | { |
| 9140 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 9141 | test_array [0] = 0 |
| 9142 | |
| 9143 | ; |
| 9144 | return 0; |
| 9145 | } |
| 9146 | _ACEOF |
| 9147 | rm -f conftest.$ac_objext |
| 9148 | if { (ac_try="$ac_compile" |
| 9149 | case "(($ac_try" in |
| 9150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9151 | *) ac_try_echo=$ac_try;; |
| 9152 | esac |
| 9153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9154 | (eval "$ac_compile") 2>conftest.er1 |
| 9155 | ac_status=$? |
| 9156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9157 | rm -f conftest.er1 |
| 9158 | cat conftest.err >&5 |
| 9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9160 | (exit $ac_status); } && { |
| 9161 | test -z "$ac_cxx_werror_flag" || |
| 9162 | test ! -s conftest.err |
| 9163 | } && test -s conftest.$ac_objext; then |
| 9164 | ac_hi=-1 ac_mid=-1 |
| 9165 | while :; do |
| 9166 | cat >conftest.$ac_ext <<_ACEOF |
| 9167 | /* confdefs.h. */ |
| 9168 | _ACEOF |
| 9169 | cat confdefs.h >>conftest.$ac_ext |
| 9170 | cat >>conftest.$ac_ext <<_ACEOF |
| 9171 | /* end confdefs.h. */ |
| 9172 | #include <stddef.h> |
| 9173 | int |
| 9174 | main () |
| 9175 | { |
| 9176 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 9177 | test_array [0] = 0 |
| 9178 | |
| 9179 | ; |
| 9180 | return 0; |
| 9181 | } |
| 9182 | _ACEOF |
| 9183 | rm -f conftest.$ac_objext |
| 9184 | if { (ac_try="$ac_compile" |
| 9185 | case "(($ac_try" in |
| 9186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9187 | *) ac_try_echo=$ac_try;; |
| 9188 | esac |
| 9189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9190 | (eval "$ac_compile") 2>conftest.er1 |
| 9191 | ac_status=$? |
| 9192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9193 | rm -f conftest.er1 |
| 9194 | cat conftest.err >&5 |
| 9195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9196 | (exit $ac_status); } && { |
| 9197 | test -z "$ac_cxx_werror_flag" || |
| 9198 | test ! -s conftest.err |
| 9199 | } && test -s conftest.$ac_objext; then |
| 9200 | ac_lo=$ac_mid; break |
| 9201 | else |
| 9202 | echo "$as_me: failed program was:" >&5 |
| 9203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9204 | |
| 9205 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9206 | if test $ac_mid -le $ac_hi; then |
| 9207 | ac_lo= ac_hi= |
| 9208 | break |
| 9209 | fi |
| 9210 | ac_mid=`expr 2 '*' $ac_mid` |
| 9211 | fi |
| 9212 | |
| 9213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9214 | done |
| 9215 | else |
| 9216 | echo "$as_me: failed program was:" >&5 |
| 9217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9218 | |
| 9219 | ac_lo= ac_hi= |
| 9220 | fi |
| 9221 | |
| 9222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9223 | fi |
| 9224 | |
| 9225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9226 | # Binary search between lo and hi bounds. |
| 9227 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9228 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9229 | cat >conftest.$ac_ext <<_ACEOF |
| 9230 | /* confdefs.h. */ |
| 9231 | _ACEOF |
| 9232 | cat confdefs.h >>conftest.$ac_ext |
| 9233 | cat >>conftest.$ac_ext <<_ACEOF |
| 9234 | /* end confdefs.h. */ |
| 9235 | #include <stddef.h> |
| 9236 | int |
| 9237 | main () |
| 9238 | { |
| 9239 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 9240 | test_array [0] = 0 |
| 9241 | |
| 9242 | ; |
| 9243 | return 0; |
| 9244 | } |
| 9245 | _ACEOF |
| 9246 | rm -f conftest.$ac_objext |
| 9247 | if { (ac_try="$ac_compile" |
| 9248 | case "(($ac_try" in |
| 9249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9250 | *) ac_try_echo=$ac_try;; |
| 9251 | esac |
| 9252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9253 | (eval "$ac_compile") 2>conftest.er1 |
| 9254 | ac_status=$? |
| 9255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9256 | rm -f conftest.er1 |
| 9257 | cat conftest.err >&5 |
| 9258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9259 | (exit $ac_status); } && { |
| 9260 | test -z "$ac_cxx_werror_flag" || |
| 9261 | test ! -s conftest.err |
| 9262 | } && test -s conftest.$ac_objext; then |
| 9263 | ac_hi=$ac_mid |
| 9264 | else |
| 9265 | echo "$as_me: failed program was:" >&5 |
| 9266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9267 | |
| 9268 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9269 | fi |
| 9270 | |
| 9271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9272 | done |
| 9273 | case $ac_lo in |
| 9274 | ?*) fits_in_uint=$ac_lo;; |
| 9275 | '') result=? ;; |
| 9276 | esac |
| 9277 | else |
| 9278 | cat >conftest.$ac_ext <<_ACEOF |
| 9279 | /* confdefs.h. */ |
| 9280 | _ACEOF |
| 9281 | cat confdefs.h >>conftest.$ac_ext |
| 9282 | cat >>conftest.$ac_ext <<_ACEOF |
| 9283 | /* end confdefs.h. */ |
| 9284 | #include <stddef.h> |
| 9285 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 9286 | static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 9287 | #include <stdio.h> |
| 9288 | #include <stdlib.h> |
| 9289 | int |
| 9290 | main () |
| 9291 | { |
| 9292 | |
| 9293 | FILE *f = fopen ("conftest.val", "w"); |
| 9294 | if (! f) |
| 9295 | return 1; |
| 9296 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 9297 | { |
| 9298 | long int i = longval (); |
| 9299 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
| 9300 | return 1; |
| 9301 | fprintf (f, "%ld\n", i); |
| 9302 | } |
| 9303 | else |
| 9304 | { |
| 9305 | unsigned long int i = ulongval (); |
| 9306 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
| 9307 | return 1; |
| 9308 | fprintf (f, "%lu\n", i); |
| 9309 | } |
| 9310 | return ferror (f) || fclose (f) != 0; |
| 9311 | |
| 9312 | ; |
| 9313 | return 0; |
| 9314 | } |
| 9315 | _ACEOF |
| 9316 | rm -f conftest$ac_exeext |
| 9317 | if { (ac_try="$ac_link" |
| 9318 | case "(($ac_try" in |
| 9319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9320 | *) ac_try_echo=$ac_try;; |
| 9321 | esac |
| 9322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9323 | (eval "$ac_link") 2>&5 |
| 9324 | ac_status=$? |
| 9325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9326 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9327 | { (case "(($ac_try" in |
| 9328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9329 | *) ac_try_echo=$ac_try;; |
| 9330 | esac |
| 9331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9332 | (eval "$ac_try") 2>&5 |
| 9333 | ac_status=$? |
| 9334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9335 | (exit $ac_status); }; }; then |
| 9336 | fits_in_uint=`cat conftest.val` |
| 9337 | else |
| 9338 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9339 | echo "$as_me: failed program was:" >&5 |
| 9340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9341 | |
| 9342 | ( exit $ac_status ) |
| 9343 | result=? |
| 9344 | fi |
| 9345 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 9346 | fi |
| 9347 | rm -f conftest.val |
| 9348 | |
| 9349 | if test "$fits_in_uint" = 1; then |
| 9350 | cat >conftest.$ac_ext <<_ACEOF |
| 9351 | /* confdefs.h. */ |
| 9352 | _ACEOF |
| 9353 | cat confdefs.h >>conftest.$ac_ext |
| 9354 | cat >>conftest.$ac_ext <<_ACEOF |
| 9355 | /* end confdefs.h. */ |
| 9356 | #include <stddef.h> |
| 9357 | extern size_t foo; |
| 9358 | extern unsigned long foo; |
| 9359 | |
| 9360 | int |
| 9361 | main () |
| 9362 | { |
| 9363 | |
| 9364 | ; |
| 9365 | return 0; |
| 9366 | } |
| 9367 | _ACEOF |
| 9368 | rm -f conftest.$ac_objext |
| 9369 | if { (ac_try="$ac_compile" |
| 9370 | case "(($ac_try" in |
| 9371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9372 | *) ac_try_echo=$ac_try;; |
| 9373 | esac |
| 9374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9375 | (eval "$ac_compile") 2>conftest.er1 |
| 9376 | ac_status=$? |
| 9377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9378 | rm -f conftest.er1 |
| 9379 | cat conftest.err >&5 |
| 9380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9381 | (exit $ac_status); } && { |
| 9382 | test -z "$ac_cxx_werror_flag" || |
| 9383 | test ! -s conftest.err |
| 9384 | } && test -s conftest.$ac_objext; then |
| 9385 | fits_in_uint=0 |
| 9386 | else |
| 9387 | echo "$as_me: failed program was:" >&5 |
| 9388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9389 | |
| 9390 | |
| 9391 | fi |
| 9392 | |
| 9393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9394 | fi |
| 9395 | if test -z "$result"; then |
| 9396 | if test "$fits_in_uint" = 1; then |
| 9397 | result="$res_hi$res_lo"U |
| 9398 | else |
| 9399 | result="$res_hi$res_lo"UL |
| 9400 | fi |
| 9401 | else |
| 9402 | result='~(size_t)0' |
| 9403 | fi |
| 9404 | fi |
| 9405 | { echo "$as_me:$LINENO: result: $result" >&5 |
| 9406 | echo "${ECHO_T}$result" >&6; } |
| 9407 | if test "$result" != yes; then |
| 9408 | |
| 9409 | cat >>confdefs.h <<_ACEOF |
| 9410 | #define SIZE_MAX $result |
| 9411 | _ACEOF |
| 9412 | |
| 9413 | fi |
| 9414 | |
| 9415 | |
| 9416 | |
| 9417 | |
| 9418 | for ac_header in stdint.h |
| 9419 | do |
| 9420 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9421 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9422 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9424 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9426 | fi |
| 9427 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9428 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9429 | echo "${ECHO_T}$ac_res" >&6; } |
| 9430 | else |
| 9431 | # Is the header compilable? |
| 9432 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9433 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9434 | cat >conftest.$ac_ext <<_ACEOF |
| 9435 | /* confdefs.h. */ |
| 9436 | _ACEOF |
| 9437 | cat confdefs.h >>conftest.$ac_ext |
| 9438 | cat >>conftest.$ac_ext <<_ACEOF |
| 9439 | /* end confdefs.h. */ |
| 9440 | $ac_includes_default |
| 9441 | #include <$ac_header> |
| 9442 | _ACEOF |
| 9443 | rm -f conftest.$ac_objext |
| 9444 | if { (ac_try="$ac_compile" |
| 9445 | case "(($ac_try" in |
| 9446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9447 | *) ac_try_echo=$ac_try;; |
| 9448 | esac |
| 9449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9450 | (eval "$ac_compile") 2>conftest.er1 |
| 9451 | ac_status=$? |
| 9452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9453 | rm -f conftest.er1 |
| 9454 | cat conftest.err >&5 |
| 9455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9456 | (exit $ac_status); } && { |
| 9457 | test -z "$ac_cxx_werror_flag" || |
| 9458 | test ! -s conftest.err |
| 9459 | } && test -s conftest.$ac_objext; then |
| 9460 | ac_header_compiler=yes |
| 9461 | else |
| 9462 | echo "$as_me: failed program was:" >&5 |
| 9463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9464 | |
| 9465 | ac_header_compiler=no |
| 9466 | fi |
| 9467 | |
| 9468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9469 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9470 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9471 | |
| 9472 | # Is the header present? |
| 9473 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9474 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9475 | cat >conftest.$ac_ext <<_ACEOF |
| 9476 | /* confdefs.h. */ |
| 9477 | _ACEOF |
| 9478 | cat confdefs.h >>conftest.$ac_ext |
| 9479 | cat >>conftest.$ac_ext <<_ACEOF |
| 9480 | /* end confdefs.h. */ |
| 9481 | #include <$ac_header> |
| 9482 | _ACEOF |
| 9483 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9484 | case "(($ac_try" in |
| 9485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9486 | *) ac_try_echo=$ac_try;; |
| 9487 | esac |
| 9488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9489 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9490 | ac_status=$? |
| 9491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9492 | rm -f conftest.er1 |
| 9493 | cat conftest.err >&5 |
| 9494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9495 | (exit $ac_status); } >/dev/null && { |
| 9496 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 9497 | test ! -s conftest.err |
| 9498 | }; then |
| 9499 | ac_header_preproc=yes |
| 9500 | else |
| 9501 | echo "$as_me: failed program was:" >&5 |
| 9502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9503 | |
| 9504 | ac_header_preproc=no |
| 9505 | fi |
| 9506 | |
| 9507 | rm -f conftest.err conftest.$ac_ext |
| 9508 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9509 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9510 | |
| 9511 | # So? What about this header? |
| 9512 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 9513 | yes:no: ) |
| 9514 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9515 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9516 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9517 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9518 | ac_header_preproc=yes |
| 9519 | ;; |
| 9520 | no:yes:* ) |
| 9521 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9522 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9523 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9524 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9525 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9526 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9527 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9528 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9529 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9530 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9531 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9532 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9533 | |
| 9534 | ;; |
| 9535 | esac |
| 9536 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9538 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9540 | else |
| 9541 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9542 | fi |
| 9543 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9544 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9545 | echo "${ECHO_T}$ac_res" >&6; } |
| 9546 | |
| 9547 | fi |
| 9548 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9549 | cat >>confdefs.h <<_ACEOF |
| 9550 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9551 | _ACEOF |
| 9552 | |
| 9553 | fi |
| 9554 | |
| 9555 | done |
| 9556 | |
| 9557 | |
| 9558 | |
| 9559 | if test "X$prefix" = "XNONE"; then |
| 9560 | acl_final_prefix="$ac_default_prefix" |
| 9561 | else |
| 9562 | acl_final_prefix="$prefix" |
| 9563 | fi |
| 9564 | if test "X$exec_prefix" = "XNONE"; then |
| 9565 | acl_final_exec_prefix='${prefix}' |
| 9566 | else |
| 9567 | acl_final_exec_prefix="$exec_prefix" |
| 9568 | fi |
| 9569 | acl_save_prefix="$prefix" |
| 9570 | prefix="$acl_final_prefix" |
| 9571 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 9572 | prefix="$acl_save_prefix" |
| 9573 | |
| 9574 | |
| 9575 | # Check whether --with-gnu-ld was given. |
| 9576 | if test "${with_gnu_ld+set}" = set; then |
| 9577 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 9578 | else |
| 9579 | with_gnu_ld=no |
| 9580 | fi |
| 9581 | |
| 9582 | # Prepare PATH_SEPARATOR. |
| 9583 | # The user is always right. |
| 9584 | if test "${PATH_SEPARATOR+set}" != set; then |
| 9585 | echo "#! /bin/sh" >conf$$.sh |
| 9586 | echo "exit 0" >>conf$$.sh |
| 9587 | chmod +x conf$$.sh |
| 9588 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 9589 | PATH_SEPARATOR=';' |
| 9590 | else |
| 9591 | PATH_SEPARATOR=: |
| 9592 | fi |
| 9593 | rm -f conf$$.sh |
| 9594 | fi |
| 9595 | ac_prog=ld |
| 9596 | if test "$GCC" = yes; then |
| 9597 | # Check if gcc -print-prog-name=ld gives a path. |
| 9598 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 9599 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } |
| 9600 | case $host in |
| 9601 | *-*-mingw*) |
| 9602 | # gcc leaves a trailing carriage return which upsets mingw |
| 9603 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 9604 | *) |
| 9605 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 9606 | esac |
| 9607 | case $ac_prog in |
| 9608 | # Accept absolute paths. |
| 9609 | [\\/]* | [A-Za-z]:[\\/]*) |
| 9610 | re_direlt='/[^/][^/]*/\.\./' |
| 9611 | # Canonicalize the path of ld |
| 9612 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 9613 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 9614 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 9615 | done |
| 9616 | test -z "$LD" && LD="$ac_prog" |
| 9617 | ;; |
| 9618 | "") |
| 9619 | # If it fails, then pretend we aren't using GCC. |
| 9620 | ac_prog=ld |
| 9621 | ;; |
| 9622 | *) |
| 9623 | # If it is relative, then search for the first ld in PATH. |
| 9624 | with_gnu_ld=unknown |
| 9625 | ;; |
| 9626 | esac |
| 9627 | elif test "$with_gnu_ld" = yes; then |
| 9628 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 9629 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
| 9630 | else |
| 9631 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 9632 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
| 9633 | fi |
| 9634 | if test "${acl_cv_path_LD+set}" = set; then |
| 9635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9636 | else |
| 9637 | if test -z "$LD"; then |
| 9638 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 9639 | for ac_dir in $PATH; do |
| 9640 | test -z "$ac_dir" && ac_dir=. |
| 9641 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9642 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 9643 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9644 | # but apparently some GNU ld's only accept -v. |
| 9645 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9646 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 9647 | *GNU* | *'with BFD'*) |
| 9648 | test "$with_gnu_ld" != no && break ;; |
| 9649 | *) |
| 9650 | test "$with_gnu_ld" != yes && break ;; |
| 9651 | esac |
| 9652 | fi |
| 9653 | done |
| 9654 | IFS="$ac_save_ifs" |
| 9655 | else |
| 9656 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9657 | fi |
| 9658 | fi |
| 9659 | |
| 9660 | LD="$acl_cv_path_LD" |
| 9661 | if test -n "$LD"; then |
| 9662 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 9663 | echo "${ECHO_T}$LD" >&6; } |
| 9664 | else |
| 9665 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9666 | echo "${ECHO_T}no" >&6; } |
| 9667 | fi |
| 9668 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9669 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9670 | { (exit 1); exit 1; }; } |
| 9671 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9672 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
| 9673 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 9674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9675 | else |
| 9676 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9677 | case `$LD -v 2>&1 </dev/null` in |
| 9678 | *GNU* | *'with BFD'*) |
| 9679 | acl_cv_prog_gnu_ld=yes ;; |
| 9680 | *) |
| 9681 | acl_cv_prog_gnu_ld=no ;; |
| 9682 | esac |
| 9683 | fi |
| 9684 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 9685 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
| 9686 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 9687 | |
| 9688 | |
| 9689 | |
| 9690 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 9691 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } |
| 9692 | if test "${acl_cv_rpath+set}" = set; then |
| 9693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9694 | else |
| 9695 | |
| 9696 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 9697 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 9698 | . ./conftest.sh |
| 9699 | rm -f ./conftest.sh |
| 9700 | acl_cv_rpath=done |
| 9701 | |
| 9702 | fi |
| 9703 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 9704 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
| 9705 | wl="$acl_cv_wl" |
| 9706 | libext="$acl_cv_libext" |
| 9707 | shlibext="$acl_cv_shlibext" |
| 9708 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 9709 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 9710 | hardcode_direct="$acl_cv_hardcode_direct" |
| 9711 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 9712 | # Check whether --enable-rpath was given. |
| 9713 | if test "${enable_rpath+set}" = set; then |
| 9714 | enableval=$enable_rpath; : |
| 9715 | else |
| 9716 | enable_rpath=yes |
| 9717 | fi |
| 9718 | |
| 9719 | |
| 9720 | |
| 9721 | |
| 9722 | |
| 9723 | |
| 9724 | |
| 9725 | |
| 9726 | use_additional=yes |
| 9727 | |
| 9728 | acl_save_prefix="$prefix" |
| 9729 | prefix="$acl_final_prefix" |
| 9730 | acl_save_exec_prefix="$exec_prefix" |
| 9731 | exec_prefix="$acl_final_exec_prefix" |
| 9732 | |
| 9733 | eval additional_includedir=\"$includedir\" |
| 9734 | eval additional_libdir=\"$libdir\" |
| 9735 | |
| 9736 | exec_prefix="$acl_save_exec_prefix" |
| 9737 | prefix="$acl_save_prefix" |
| 9738 | |
| 9739 | |
| 9740 | # Check whether --with-libiconv-prefix was given. |
| 9741 | if test "${with_libiconv_prefix+set}" = set; then |
| 9742 | withval=$with_libiconv_prefix; |
| 9743 | if test "X$withval" = "Xno"; then |
| 9744 | use_additional=no |
| 9745 | else |
| 9746 | if test "X$withval" = "X"; then |
| 9747 | |
| 9748 | acl_save_prefix="$prefix" |
| 9749 | prefix="$acl_final_prefix" |
| 9750 | acl_save_exec_prefix="$exec_prefix" |
| 9751 | exec_prefix="$acl_final_exec_prefix" |
| 9752 | |
| 9753 | eval additional_includedir=\"$includedir\" |
| 9754 | eval additional_libdir=\"$libdir\" |
| 9755 | |
| 9756 | exec_prefix="$acl_save_exec_prefix" |
| 9757 | prefix="$acl_save_prefix" |
| 9758 | |
| 9759 | else |
| 9760 | additional_includedir="$withval/include" |
| 9761 | additional_libdir="$withval/lib" |
| 9762 | fi |
| 9763 | fi |
| 9764 | |
| 9765 | fi |
| 9766 | |
| 9767 | LIBICONV= |
| 9768 | LTLIBICONV= |
| 9769 | INCICONV= |
| 9770 | rpathdirs= |
| 9771 | ltrpathdirs= |
| 9772 | names_already_handled= |
| 9773 | names_next_round='iconv ' |
| 9774 | while test -n "$names_next_round"; do |
| 9775 | names_this_round="$names_next_round" |
| 9776 | names_next_round= |
| 9777 | for name in $names_this_round; do |
| 9778 | already_handled= |
| 9779 | for n in $names_already_handled; do |
| 9780 | if test "$n" = "$name"; then |
| 9781 | already_handled=yes |
| 9782 | break |
| 9783 | fi |
| 9784 | done |
| 9785 | if test -z "$already_handled"; then |
| 9786 | names_already_handled="$names_already_handled $name" |
| 9787 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 9788 | eval value=\"\$HAVE_LIB$uppername\" |
| 9789 | if test -n "$value"; then |
| 9790 | if test "$value" = yes; then |
| 9791 | eval value=\"\$LIB$uppername\" |
| 9792 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 9793 | eval value=\"\$LTLIB$uppername\" |
| 9794 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 9795 | else |
| 9796 | : |
| 9797 | fi |
| 9798 | else |
| 9799 | found_dir= |
| 9800 | found_la= |
| 9801 | found_so= |
| 9802 | found_a= |
| 9803 | if test $use_additional = yes; then |
| 9804 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 9805 | found_dir="$additional_libdir" |
| 9806 | found_so="$additional_libdir/lib$name.$shlibext" |
| 9807 | if test -f "$additional_libdir/lib$name.la"; then |
| 9808 | found_la="$additional_libdir/lib$name.la" |
| 9809 | fi |
| 9810 | else |
| 9811 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 9812 | found_dir="$additional_libdir" |
| 9813 | found_a="$additional_libdir/lib$name.$libext" |
| 9814 | if test -f "$additional_libdir/lib$name.la"; then |
| 9815 | found_la="$additional_libdir/lib$name.la" |
| 9816 | fi |
| 9817 | fi |
| 9818 | fi |
| 9819 | fi |
| 9820 | if test "X$found_dir" = "X"; then |
| 9821 | for x in $LDFLAGS $LTLIBICONV; do |
| 9822 | |
| 9823 | acl_save_prefix="$prefix" |
| 9824 | prefix="$acl_final_prefix" |
| 9825 | acl_save_exec_prefix="$exec_prefix" |
| 9826 | exec_prefix="$acl_final_exec_prefix" |
| 9827 | eval x=\"$x\" |
| 9828 | exec_prefix="$acl_save_exec_prefix" |
| 9829 | prefix="$acl_save_prefix" |
| 9830 | |
| 9831 | case "$x" in |
| 9832 | -L*) |
| 9833 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 9834 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 9835 | found_dir="$dir" |
| 9836 | found_so="$dir/lib$name.$shlibext" |
| 9837 | if test -f "$dir/lib$name.la"; then |
| 9838 | found_la="$dir/lib$name.la" |
| 9839 | fi |
| 9840 | else |
| 9841 | if test -f "$dir/lib$name.$libext"; then |
| 9842 | found_dir="$dir" |
| 9843 | found_a="$dir/lib$name.$libext" |
| 9844 | if test -f "$dir/lib$name.la"; then |
| 9845 | found_la="$dir/lib$name.la" |
| 9846 | fi |
| 9847 | fi |
| 9848 | fi |
| 9849 | ;; |
| 9850 | esac |
| 9851 | if test "X$found_dir" != "X"; then |
| 9852 | break |
| 9853 | fi |
| 9854 | done |
| 9855 | fi |
| 9856 | if test "X$found_dir" != "X"; then |
| 9857 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 9858 | if test "X$found_so" != "X"; then |
| 9859 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 9860 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9861 | else |
| 9862 | haveit= |
| 9863 | for x in $ltrpathdirs; do |
| 9864 | if test "X$x" = "X$found_dir"; then |
| 9865 | haveit=yes |
| 9866 | break |
| 9867 | fi |
| 9868 | done |
| 9869 | if test -z "$haveit"; then |
| 9870 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 9871 | fi |
| 9872 | if test "$hardcode_direct" = yes; then |
| 9873 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9874 | else |
| 9875 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 9876 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9877 | haveit= |
| 9878 | for x in $rpathdirs; do |
| 9879 | if test "X$x" = "X$found_dir"; then |
| 9880 | haveit=yes |
| 9881 | break |
| 9882 | fi |
| 9883 | done |
| 9884 | if test -z "$haveit"; then |
| 9885 | rpathdirs="$rpathdirs $found_dir" |
| 9886 | fi |
| 9887 | else |
| 9888 | haveit= |
| 9889 | for x in $LDFLAGS $LIBICONV; do |
| 9890 | |
| 9891 | acl_save_prefix="$prefix" |
| 9892 | prefix="$acl_final_prefix" |
| 9893 | acl_save_exec_prefix="$exec_prefix" |
| 9894 | exec_prefix="$acl_final_exec_prefix" |
| 9895 | eval x=\"$x\" |
| 9896 | exec_prefix="$acl_save_exec_prefix" |
| 9897 | prefix="$acl_save_prefix" |
| 9898 | |
| 9899 | if test "X$x" = "X-L$found_dir"; then |
| 9900 | haveit=yes |
| 9901 | break |
| 9902 | fi |
| 9903 | done |
| 9904 | if test -z "$haveit"; then |
| 9905 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 9906 | fi |
| 9907 | if test "$hardcode_minus_L" != no; then |
| 9908 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9909 | else |
| 9910 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9911 | fi |
| 9912 | fi |
| 9913 | fi |
| 9914 | fi |
| 9915 | else |
| 9916 | if test "X$found_a" != "X"; then |
| 9917 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 9918 | else |
| 9919 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 9920 | fi |
| 9921 | fi |
| 9922 | additional_includedir= |
| 9923 | case "$found_dir" in |
| 9924 | */lib | */lib/) |
| 9925 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9926 | additional_includedir="$basedir/include" |
| 9927 | ;; |
| 9928 | esac |
| 9929 | if test "X$additional_includedir" != "X"; then |
| 9930 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9931 | haveit= |
| 9932 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9933 | if test -n "$GCC"; then |
| 9934 | case $host_os in |
| 9935 | linux*) haveit=yes;; |
| 9936 | esac |
| 9937 | fi |
| 9938 | fi |
| 9939 | if test -z "$haveit"; then |
| 9940 | for x in $CPPFLAGS $INCICONV; do |
| 9941 | |
| 9942 | acl_save_prefix="$prefix" |
| 9943 | prefix="$acl_final_prefix" |
| 9944 | acl_save_exec_prefix="$exec_prefix" |
| 9945 | exec_prefix="$acl_final_exec_prefix" |
| 9946 | eval x=\"$x\" |
| 9947 | exec_prefix="$acl_save_exec_prefix" |
| 9948 | prefix="$acl_save_prefix" |
| 9949 | |
| 9950 | if test "X$x" = "X-I$additional_includedir"; then |
| 9951 | haveit=yes |
| 9952 | break |
| 9953 | fi |
| 9954 | done |
| 9955 | if test -z "$haveit"; then |
| 9956 | if test -d "$additional_includedir"; then |
| 9957 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 9958 | fi |
| 9959 | fi |
| 9960 | fi |
| 9961 | fi |
| 9962 | fi |
| 9963 | if test -n "$found_la"; then |
| 9964 | save_libdir="$libdir" |
| 9965 | case "$found_la" in |
| 9966 | */* | *\\*) . "$found_la" ;; |
| 9967 | *) . "./$found_la" ;; |
| 9968 | esac |
| 9969 | libdir="$save_libdir" |
| 9970 | for dep in $dependency_libs; do |
| 9971 | case "$dep" in |
| 9972 | -L*) |
| 9973 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9974 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9975 | haveit= |
| 9976 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9977 | if test -n "$GCC"; then |
| 9978 | case $host_os in |
| 9979 | linux*) haveit=yes;; |
| 9980 | esac |
| 9981 | fi |
| 9982 | fi |
| 9983 | if test -z "$haveit"; then |
| 9984 | haveit= |
| 9985 | for x in $LDFLAGS $LIBICONV; do |
| 9986 | |
| 9987 | acl_save_prefix="$prefix" |
| 9988 | prefix="$acl_final_prefix" |
| 9989 | acl_save_exec_prefix="$exec_prefix" |
| 9990 | exec_prefix="$acl_final_exec_prefix" |
| 9991 | eval x=\"$x\" |
| 9992 | exec_prefix="$acl_save_exec_prefix" |
| 9993 | prefix="$acl_save_prefix" |
| 9994 | |
| 9995 | if test "X$x" = "X-L$additional_libdir"; then |
| 9996 | haveit=yes |
| 9997 | break |
| 9998 | fi |
| 9999 | done |
| 10000 | if test -z "$haveit"; then |
| 10001 | if test -d "$additional_libdir"; then |
| 10002 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 10003 | fi |
| 10004 | fi |
| 10005 | haveit= |
| 10006 | for x in $LDFLAGS $LTLIBICONV; do |
| 10007 | |
| 10008 | acl_save_prefix="$prefix" |
| 10009 | prefix="$acl_final_prefix" |
| 10010 | acl_save_exec_prefix="$exec_prefix" |
| 10011 | exec_prefix="$acl_final_exec_prefix" |
| 10012 | eval x=\"$x\" |
| 10013 | exec_prefix="$acl_save_exec_prefix" |
| 10014 | prefix="$acl_save_prefix" |
| 10015 | |
| 10016 | if test "X$x" = "X-L$additional_libdir"; then |
| 10017 | haveit=yes |
| 10018 | break |
| 10019 | fi |
| 10020 | done |
| 10021 | if test -z "$haveit"; then |
| 10022 | if test -d "$additional_libdir"; then |
| 10023 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 10024 | fi |
| 10025 | fi |
| 10026 | fi |
| 10027 | fi |
| 10028 | ;; |
| 10029 | -R*) |
| 10030 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 10031 | if test "$enable_rpath" != no; then |
| 10032 | haveit= |
| 10033 | for x in $rpathdirs; do |
| 10034 | if test "X$x" = "X$dir"; then |
| 10035 | haveit=yes |
| 10036 | break |
| 10037 | fi |
| 10038 | done |
| 10039 | if test -z "$haveit"; then |
| 10040 | rpathdirs="$rpathdirs $dir" |
| 10041 | fi |
| 10042 | haveit= |
| 10043 | for x in $ltrpathdirs; do |
| 10044 | if test "X$x" = "X$dir"; then |
| 10045 | haveit=yes |
| 10046 | break |
| 10047 | fi |
| 10048 | done |
| 10049 | if test -z "$haveit"; then |
| 10050 | ltrpathdirs="$ltrpathdirs $dir" |
| 10051 | fi |
| 10052 | fi |
| 10053 | ;; |
| 10054 | -l*) |
| 10055 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 10056 | ;; |
| 10057 | *.la) |
| 10058 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 10059 | ;; |
| 10060 | *) |
| 10061 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 10062 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 10063 | ;; |
| 10064 | esac |
| 10065 | done |
| 10066 | fi |
| 10067 | else |
| 10068 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 10069 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 10070 | fi |
| 10071 | fi |
| 10072 | fi |
| 10073 | done |
| 10074 | done |
| 10075 | if test "X$rpathdirs" != "X"; then |
| 10076 | if test -n "$hardcode_libdir_separator"; then |
| 10077 | alldirs= |
| 10078 | for found_dir in $rpathdirs; do |
| 10079 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 10080 | done |
| 10081 | acl_save_libdir="$libdir" |
| 10082 | libdir="$alldirs" |
| 10083 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10084 | libdir="$acl_save_libdir" |
| 10085 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 10086 | else |
| 10087 | for found_dir in $rpathdirs; do |
| 10088 | acl_save_libdir="$libdir" |
| 10089 | libdir="$found_dir" |
| 10090 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10091 | libdir="$acl_save_libdir" |
| 10092 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 10093 | done |
| 10094 | fi |
| 10095 | fi |
| 10096 | if test "X$ltrpathdirs" != "X"; then |
| 10097 | for found_dir in $ltrpathdirs; do |
| 10098 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 10099 | done |
| 10100 | fi |
| 10101 | |
| 10102 | |
| 10103 | |
| 10104 | |
| 10105 | |
| 10106 | |
| 10107 | |
| 10108 | |
| 10109 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 10110 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
| 10111 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 10112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10113 | else |
| 10114 | cat >conftest.$ac_ext <<_ACEOF |
| 10115 | /* confdefs.h. */ |
| 10116 | _ACEOF |
| 10117 | cat confdefs.h >>conftest.$ac_ext |
| 10118 | cat >>conftest.$ac_ext <<_ACEOF |
| 10119 | /* end confdefs.h. */ |
| 10120 | $ac_includes_default |
| 10121 | typedef ptrdiff_t ac__type_new_; |
| 10122 | int |
| 10123 | main () |
| 10124 | { |
| 10125 | if ((ac__type_new_ *) 0) |
| 10126 | return 0; |
| 10127 | if (sizeof (ac__type_new_)) |
| 10128 | return 0; |
| 10129 | ; |
| 10130 | return 0; |
| 10131 | } |
| 10132 | _ACEOF |
| 10133 | rm -f conftest.$ac_objext |
| 10134 | if { (ac_try="$ac_compile" |
| 10135 | case "(($ac_try" in |
| 10136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10137 | *) ac_try_echo=$ac_try;; |
| 10138 | esac |
| 10139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10140 | (eval "$ac_compile") 2>conftest.er1 |
| 10141 | ac_status=$? |
| 10142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10143 | rm -f conftest.er1 |
| 10144 | cat conftest.err >&5 |
| 10145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10146 | (exit $ac_status); } && { |
| 10147 | test -z "$ac_cxx_werror_flag" || |
| 10148 | test ! -s conftest.err |
| 10149 | } && test -s conftest.$ac_objext; then |
| 10150 | ac_cv_type_ptrdiff_t=yes |
| 10151 | else |
| 10152 | echo "$as_me: failed program was:" >&5 |
| 10153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10154 | |
| 10155 | ac_cv_type_ptrdiff_t=no |
| 10156 | fi |
| 10157 | |
| 10158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10159 | fi |
| 10160 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 10161 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
| 10162 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 10163 | : |
| 10164 | else |
| 10165 | |
| 10166 | cat >>confdefs.h <<\_ACEOF |
| 10167 | #define ptrdiff_t long |
| 10168 | _ACEOF |
| 10169 | |
| 10170 | |
| 10171 | fi |
| 10172 | |
| 10173 | |
| 10174 | |
| 10175 | |
| 10176 | |
| 10177 | |
| 10178 | |
| 10179 | |
| 10180 | |
| 10181 | |
| 10182 | |
| 10183 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
| 10184 | stdlib.h string.h unistd.h sys/param.h |
| 10185 | do |
| 10186 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10187 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10188 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10190 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10192 | fi |
| 10193 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10194 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10195 | echo "${ECHO_T}$ac_res" >&6; } |
| 10196 | else |
| 10197 | # Is the header compilable? |
| 10198 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10199 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 10200 | cat >conftest.$ac_ext <<_ACEOF |
| 10201 | /* confdefs.h. */ |
| 10202 | _ACEOF |
| 10203 | cat confdefs.h >>conftest.$ac_ext |
| 10204 | cat >>conftest.$ac_ext <<_ACEOF |
| 10205 | /* end confdefs.h. */ |
| 10206 | $ac_includes_default |
| 10207 | #include <$ac_header> |
| 10208 | _ACEOF |
| 10209 | rm -f conftest.$ac_objext |
| 10210 | if { (ac_try="$ac_compile" |
| 10211 | case "(($ac_try" in |
| 10212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10213 | *) ac_try_echo=$ac_try;; |
| 10214 | esac |
| 10215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10216 | (eval "$ac_compile") 2>conftest.er1 |
| 10217 | ac_status=$? |
| 10218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10219 | rm -f conftest.er1 |
| 10220 | cat conftest.err >&5 |
| 10221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10222 | (exit $ac_status); } && { |
| 10223 | test -z "$ac_cxx_werror_flag" || |
| 10224 | test ! -s conftest.err |
| 10225 | } && test -s conftest.$ac_objext; then |
| 10226 | ac_header_compiler=yes |
| 10227 | else |
| 10228 | echo "$as_me: failed program was:" >&5 |
| 10229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10230 | |
| 10231 | ac_header_compiler=no |
| 10232 | fi |
| 10233 | |
| 10234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10235 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10236 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10237 | |
| 10238 | # Is the header present? |
| 10239 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10240 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 10241 | cat >conftest.$ac_ext <<_ACEOF |
| 10242 | /* confdefs.h. */ |
| 10243 | _ACEOF |
| 10244 | cat confdefs.h >>conftest.$ac_ext |
| 10245 | cat >>conftest.$ac_ext <<_ACEOF |
| 10246 | /* end confdefs.h. */ |
| 10247 | #include <$ac_header> |
| 10248 | _ACEOF |
| 10249 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10250 | case "(($ac_try" in |
| 10251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10252 | *) ac_try_echo=$ac_try;; |
| 10253 | esac |
| 10254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10255 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10256 | ac_status=$? |
| 10257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10258 | rm -f conftest.er1 |
| 10259 | cat conftest.err >&5 |
| 10260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10261 | (exit $ac_status); } >/dev/null && { |
| 10262 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 10263 | test ! -s conftest.err |
| 10264 | }; then |
| 10265 | ac_header_preproc=yes |
| 10266 | else |
| 10267 | echo "$as_me: failed program was:" >&5 |
| 10268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10269 | |
| 10270 | ac_header_preproc=no |
| 10271 | fi |
| 10272 | |
| 10273 | rm -f conftest.err conftest.$ac_ext |
| 10274 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10275 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 10276 | |
| 10277 | # So? What about this header? |
| 10278 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 10279 | yes:no: ) |
| 10280 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10281 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10282 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10283 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10284 | ac_header_preproc=yes |
| 10285 | ;; |
| 10286 | no:yes:* ) |
| 10287 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10288 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10289 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10290 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10291 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10292 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10293 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10294 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10295 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10296 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10297 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10298 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10299 | |
| 10300 | ;; |
| 10301 | esac |
| 10302 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10304 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10306 | else |
| 10307 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10308 | fi |
| 10309 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10310 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10311 | echo "${ECHO_T}$ac_res" >&6; } |
| 10312 | |
| 10313 | fi |
| 10314 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10315 | cat >>confdefs.h <<_ACEOF |
| 10316 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10317 | _ACEOF |
| 10318 | |
| 10319 | fi |
| 10320 | |
| 10321 | done |
| 10322 | |
| 10323 | |
| 10324 | |
| 10325 | |
| 10326 | |
| 10327 | |
| 10328 | |
| 10329 | |
| 10330 | |
| 10331 | |
| 10332 | |
| 10333 | |
| 10334 | |
| 10335 | |
| 10336 | |
| 10337 | |
| 10338 | |
| 10339 | |
| 10340 | |
| 10341 | |
| 10342 | |
| 10343 | |
| 10344 | |
| 10345 | |
| 10346 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 10347 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 10348 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 10349 | __fsetlocking |
| 10350 | do |
| 10351 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10352 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10353 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10354 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10356 | else |
| 10357 | cat >conftest.$ac_ext <<_ACEOF |
| 10358 | /* confdefs.h. */ |
| 10359 | _ACEOF |
| 10360 | cat confdefs.h >>conftest.$ac_ext |
| 10361 | cat >>conftest.$ac_ext <<_ACEOF |
| 10362 | /* end confdefs.h. */ |
| 10363 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10364 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10365 | #define $ac_func innocuous_$ac_func |
| 10366 | |
| 10367 | /* System header to define __stub macros and hopefully few prototypes, |
| 10368 | which can conflict with char $ac_func (); below. |
| 10369 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10370 | <limits.h> exists even on freestanding compilers. */ |
| 10371 | |
| 10372 | #ifdef __STDC__ |
| 10373 | # include <limits.h> |
| 10374 | #else |
| 10375 | # include <assert.h> |
| 10376 | #endif |
| 10377 | |
| 10378 | #undef $ac_func |
| 10379 | |
| 10380 | /* Override any GCC internal prototype to avoid an error. |
| 10381 | Use char because int might match the return type of a GCC |
| 10382 | builtin and then its argument prototype would still apply. */ |
| 10383 | #ifdef __cplusplus |
| 10384 | extern "C" |
| 10385 | #endif |
| 10386 | char $ac_func (); |
| 10387 | /* The GNU C library defines this for functions which it implements |
| 10388 | to always fail with ENOSYS. Some functions are actually named |
| 10389 | something starting with __ and the normal name is an alias. */ |
| 10390 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10391 | choke me |
| 10392 | #endif |
| 10393 | |
| 10394 | int |
| 10395 | main () |
| 10396 | { |
| 10397 | return $ac_func (); |
| 10398 | ; |
| 10399 | return 0; |
| 10400 | } |
| 10401 | _ACEOF |
| 10402 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10403 | if { (ac_try="$ac_link" |
| 10404 | case "(($ac_try" in |
| 10405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10406 | *) ac_try_echo=$ac_try;; |
| 10407 | esac |
| 10408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10409 | (eval "$ac_link") 2>conftest.er1 |
| 10410 | ac_status=$? |
| 10411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10412 | rm -f conftest.er1 |
| 10413 | cat conftest.err >&5 |
| 10414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10415 | (exit $ac_status); } && { |
| 10416 | test -z "$ac_cxx_werror_flag" || |
| 10417 | test ! -s conftest.err |
| 10418 | } && test -s conftest$ac_exeext && |
| 10419 | $as_test_x conftest$ac_exeext; then |
| 10420 | eval "$as_ac_var=yes" |
| 10421 | else |
| 10422 | echo "$as_me: failed program was:" >&5 |
| 10423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10424 | |
| 10425 | eval "$as_ac_var=no" |
| 10426 | fi |
| 10427 | |
| 10428 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10429 | conftest$ac_exeext conftest.$ac_ext |
| 10430 | fi |
| 10431 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10432 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10433 | echo "${ECHO_T}$ac_res" >&6; } |
| 10434 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10435 | cat >>confdefs.h <<_ACEOF |
| 10436 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10437 | _ACEOF |
| 10438 | |
| 10439 | fi |
| 10440 | done |
| 10441 | |
| 10442 | |
| 10443 | |
| 10444 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 10445 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
| 10446 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 10447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10448 | else |
| 10449 | cat >conftest.$ac_ext <<_ACEOF |
| 10450 | /* confdefs.h. */ |
| 10451 | _ACEOF |
| 10452 | cat confdefs.h >>conftest.$ac_ext |
| 10453 | cat >>conftest.$ac_ext <<_ACEOF |
| 10454 | /* end confdefs.h. */ |
| 10455 | #include <stdio.h> |
| 10456 | int |
| 10457 | main () |
| 10458 | { |
| 10459 | |
| 10460 | #ifndef _snprintf |
| 10461 | char *p = (char *) _snprintf; |
| 10462 | #endif |
| 10463 | |
| 10464 | ; |
| 10465 | return 0; |
| 10466 | } |
| 10467 | _ACEOF |
| 10468 | rm -f conftest.$ac_objext |
| 10469 | if { (ac_try="$ac_compile" |
| 10470 | case "(($ac_try" in |
| 10471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10472 | *) ac_try_echo=$ac_try;; |
| 10473 | esac |
| 10474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10475 | (eval "$ac_compile") 2>conftest.er1 |
| 10476 | ac_status=$? |
| 10477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10478 | rm -f conftest.er1 |
| 10479 | cat conftest.err >&5 |
| 10480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10481 | (exit $ac_status); } && { |
| 10482 | test -z "$ac_cxx_werror_flag" || |
| 10483 | test ! -s conftest.err |
| 10484 | } && test -s conftest.$ac_objext; then |
| 10485 | ac_cv_have_decl__snprintf=yes |
| 10486 | else |
| 10487 | echo "$as_me: failed program was:" >&5 |
| 10488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10489 | |
| 10490 | ac_cv_have_decl__snprintf=no |
| 10491 | fi |
| 10492 | |
| 10493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10494 | fi |
| 10495 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 10496 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
| 10497 | if test $ac_cv_have_decl__snprintf = yes; then |
| 10498 | gt_value=1 |
| 10499 | else |
| 10500 | gt_value=0 |
| 10501 | fi |
| 10502 | |
| 10503 | cat >>confdefs.h <<_ACEOF |
| 10504 | #define HAVE_DECL__SNPRINTF $gt_value |
| 10505 | _ACEOF |
| 10506 | |
| 10507 | |
| 10508 | |
| 10509 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 10510 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
| 10511 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 10512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10513 | else |
| 10514 | cat >conftest.$ac_ext <<_ACEOF |
| 10515 | /* confdefs.h. */ |
| 10516 | _ACEOF |
| 10517 | cat confdefs.h >>conftest.$ac_ext |
| 10518 | cat >>conftest.$ac_ext <<_ACEOF |
| 10519 | /* end confdefs.h. */ |
| 10520 | #include <stdio.h> |
| 10521 | int |
| 10522 | main () |
| 10523 | { |
| 10524 | |
| 10525 | #ifndef _snwprintf |
| 10526 | char *p = (char *) _snwprintf; |
| 10527 | #endif |
| 10528 | |
| 10529 | ; |
| 10530 | return 0; |
| 10531 | } |
| 10532 | _ACEOF |
| 10533 | rm -f conftest.$ac_objext |
| 10534 | if { (ac_try="$ac_compile" |
| 10535 | case "(($ac_try" in |
| 10536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10537 | *) ac_try_echo=$ac_try;; |
| 10538 | esac |
| 10539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10540 | (eval "$ac_compile") 2>conftest.er1 |
| 10541 | ac_status=$? |
| 10542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10543 | rm -f conftest.er1 |
| 10544 | cat conftest.err >&5 |
| 10545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10546 | (exit $ac_status); } && { |
| 10547 | test -z "$ac_cxx_werror_flag" || |
| 10548 | test ! -s conftest.err |
| 10549 | } && test -s conftest.$ac_objext; then |
| 10550 | ac_cv_have_decl__snwprintf=yes |
| 10551 | else |
| 10552 | echo "$as_me: failed program was:" >&5 |
| 10553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10554 | |
| 10555 | ac_cv_have_decl__snwprintf=no |
| 10556 | fi |
| 10557 | |
| 10558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10559 | fi |
| 10560 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 10561 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
| 10562 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 10563 | gt_value=1 |
| 10564 | else |
| 10565 | gt_value=0 |
| 10566 | fi |
| 10567 | |
| 10568 | cat >>confdefs.h <<_ACEOF |
| 10569 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 10570 | _ACEOF |
| 10571 | |
| 10572 | |
| 10573 | |
| 10574 | |
| 10575 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 10576 | echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } |
| 10577 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 10578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10579 | else |
| 10580 | cat >conftest.$ac_ext <<_ACEOF |
| 10581 | /* confdefs.h. */ |
| 10582 | _ACEOF |
| 10583 | cat confdefs.h >>conftest.$ac_ext |
| 10584 | cat >>conftest.$ac_ext <<_ACEOF |
| 10585 | /* end confdefs.h. */ |
| 10586 | #include <stdio.h> |
| 10587 | int |
| 10588 | main () |
| 10589 | { |
| 10590 | |
| 10591 | #ifndef feof_unlocked |
| 10592 | char *p = (char *) feof_unlocked; |
| 10593 | #endif |
| 10594 | |
| 10595 | ; |
| 10596 | return 0; |
| 10597 | } |
| 10598 | _ACEOF |
| 10599 | rm -f conftest.$ac_objext |
| 10600 | if { (ac_try="$ac_compile" |
| 10601 | case "(($ac_try" in |
| 10602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10603 | *) ac_try_echo=$ac_try;; |
| 10604 | esac |
| 10605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10606 | (eval "$ac_compile") 2>conftest.er1 |
| 10607 | ac_status=$? |
| 10608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10609 | rm -f conftest.er1 |
| 10610 | cat conftest.err >&5 |
| 10611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10612 | (exit $ac_status); } && { |
| 10613 | test -z "$ac_cxx_werror_flag" || |
| 10614 | test ! -s conftest.err |
| 10615 | } && test -s conftest.$ac_objext; then |
| 10616 | ac_cv_have_decl_feof_unlocked=yes |
| 10617 | else |
| 10618 | echo "$as_me: failed program was:" >&5 |
| 10619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10620 | |
| 10621 | ac_cv_have_decl_feof_unlocked=no |
| 10622 | fi |
| 10623 | |
| 10624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10625 | fi |
| 10626 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 10627 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } |
| 10628 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 10629 | gt_value=1 |
| 10630 | else |
| 10631 | gt_value=0 |
| 10632 | fi |
| 10633 | |
| 10634 | cat >>confdefs.h <<_ACEOF |
| 10635 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 10636 | _ACEOF |
| 10637 | |
| 10638 | |
| 10639 | |
| 10640 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 10641 | echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } |
| 10642 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 10643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10644 | else |
| 10645 | cat >conftest.$ac_ext <<_ACEOF |
| 10646 | /* confdefs.h. */ |
| 10647 | _ACEOF |
| 10648 | cat confdefs.h >>conftest.$ac_ext |
| 10649 | cat >>conftest.$ac_ext <<_ACEOF |
| 10650 | /* end confdefs.h. */ |
| 10651 | #include <stdio.h> |
| 10652 | int |
| 10653 | main () |
| 10654 | { |
| 10655 | |
| 10656 | #ifndef fgets_unlocked |
| 10657 | char *p = (char *) fgets_unlocked; |
| 10658 | #endif |
| 10659 | |
| 10660 | ; |
| 10661 | return 0; |
| 10662 | } |
| 10663 | _ACEOF |
| 10664 | rm -f conftest.$ac_objext |
| 10665 | if { (ac_try="$ac_compile" |
| 10666 | case "(($ac_try" in |
| 10667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10668 | *) ac_try_echo=$ac_try;; |
| 10669 | esac |
| 10670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10671 | (eval "$ac_compile") 2>conftest.er1 |
| 10672 | ac_status=$? |
| 10673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10674 | rm -f conftest.er1 |
| 10675 | cat conftest.err >&5 |
| 10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10677 | (exit $ac_status); } && { |
| 10678 | test -z "$ac_cxx_werror_flag" || |
| 10679 | test ! -s conftest.err |
| 10680 | } && test -s conftest.$ac_objext; then |
| 10681 | ac_cv_have_decl_fgets_unlocked=yes |
| 10682 | else |
| 10683 | echo "$as_me: failed program was:" >&5 |
| 10684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10685 | |
| 10686 | ac_cv_have_decl_fgets_unlocked=no |
| 10687 | fi |
| 10688 | |
| 10689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10690 | fi |
| 10691 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 10692 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } |
| 10693 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 10694 | gt_value=1 |
| 10695 | else |
| 10696 | gt_value=0 |
| 10697 | fi |
| 10698 | |
| 10699 | cat >>confdefs.h <<_ACEOF |
| 10700 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 10701 | _ACEOF |
| 10702 | |
| 10703 | |
| 10704 | |
| 10705 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 10706 | echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } |
| 10707 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 10708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10709 | else |
| 10710 | cat >conftest.$ac_ext <<_ACEOF |
| 10711 | /* confdefs.h. */ |
| 10712 | _ACEOF |
| 10713 | cat confdefs.h >>conftest.$ac_ext |
| 10714 | cat >>conftest.$ac_ext <<_ACEOF |
| 10715 | /* end confdefs.h. */ |
| 10716 | #include <stdio.h> |
| 10717 | int |
| 10718 | main () |
| 10719 | { |
| 10720 | |
| 10721 | #ifndef getc_unlocked |
| 10722 | char *p = (char *) getc_unlocked; |
| 10723 | #endif |
| 10724 | |
| 10725 | ; |
| 10726 | return 0; |
| 10727 | } |
| 10728 | _ACEOF |
| 10729 | rm -f conftest.$ac_objext |
| 10730 | if { (ac_try="$ac_compile" |
| 10731 | case "(($ac_try" in |
| 10732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10733 | *) ac_try_echo=$ac_try;; |
| 10734 | esac |
| 10735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10736 | (eval "$ac_compile") 2>conftest.er1 |
| 10737 | ac_status=$? |
| 10738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10739 | rm -f conftest.er1 |
| 10740 | cat conftest.err >&5 |
| 10741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10742 | (exit $ac_status); } && { |
| 10743 | test -z "$ac_cxx_werror_flag" || |
| 10744 | test ! -s conftest.err |
| 10745 | } && test -s conftest.$ac_objext; then |
| 10746 | ac_cv_have_decl_getc_unlocked=yes |
| 10747 | else |
| 10748 | echo "$as_me: failed program was:" >&5 |
| 10749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10750 | |
| 10751 | ac_cv_have_decl_getc_unlocked=no |
| 10752 | fi |
| 10753 | |
| 10754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10755 | fi |
| 10756 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 10757 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
| 10758 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 10759 | gt_value=1 |
| 10760 | else |
| 10761 | gt_value=0 |
| 10762 | fi |
| 10763 | |
| 10764 | cat >>confdefs.h <<_ACEOF |
| 10765 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 10766 | _ACEOF |
| 10767 | |
| 10768 | |
| 10769 | |
| 10770 | case $gt_cv_func_printf_posix in |
| 10771 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 10772 | *) HAVE_POSIX_PRINTF=0 ;; |
| 10773 | esac |
| 10774 | |
| 10775 | if test "$ac_cv_func_asprintf" = yes; then |
| 10776 | HAVE_ASPRINTF=1 |
| 10777 | else |
| 10778 | HAVE_ASPRINTF=0 |
| 10779 | fi |
| 10780 | |
| 10781 | if test "$ac_cv_func_snprintf" = yes; then |
| 10782 | HAVE_SNPRINTF=1 |
| 10783 | else |
| 10784 | HAVE_SNPRINTF=0 |
| 10785 | fi |
| 10786 | |
| 10787 | if test "$ac_cv_func_wprintf" = yes; then |
| 10788 | HAVE_WPRINTF=1 |
| 10789 | else |
| 10790 | HAVE_WPRINTF=0 |
| 10791 | fi |
| 10792 | |
| 10793 | |
| 10794 | |
| 10795 | |
| 10796 | |
| 10797 | |
| 10798 | |
| 10799 | am_save_CPPFLAGS="$CPPFLAGS" |
| 10800 | |
| 10801 | for element in $INCICONV; do |
| 10802 | haveit= |
| 10803 | for x in $CPPFLAGS; do |
| 10804 | |
| 10805 | acl_save_prefix="$prefix" |
| 10806 | prefix="$acl_final_prefix" |
| 10807 | acl_save_exec_prefix="$exec_prefix" |
| 10808 | exec_prefix="$acl_final_exec_prefix" |
| 10809 | eval x=\"$x\" |
| 10810 | exec_prefix="$acl_save_exec_prefix" |
| 10811 | prefix="$acl_save_prefix" |
| 10812 | |
| 10813 | if test "X$x" = "X$element"; then |
| 10814 | haveit=yes |
| 10815 | break |
| 10816 | fi |
| 10817 | done |
| 10818 | if test -z "$haveit"; then |
| 10819 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10820 | fi |
| 10821 | done |
| 10822 | |
| 10823 | |
| 10824 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 10825 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
| 10826 | if test "${am_cv_func_iconv+set}" = set; then |
| 10827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10828 | else |
| 10829 | |
| 10830 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 10831 | am_cv_lib_iconv=no |
| 10832 | cat >conftest.$ac_ext <<_ACEOF |
| 10833 | /* confdefs.h. */ |
| 10834 | _ACEOF |
| 10835 | cat confdefs.h >>conftest.$ac_ext |
| 10836 | cat >>conftest.$ac_ext <<_ACEOF |
| 10837 | /* end confdefs.h. */ |
| 10838 | #include <stdlib.h> |
| 10839 | #include <iconv.h> |
| 10840 | int |
| 10841 | main () |
| 10842 | { |
| 10843 | iconv_t cd = iconv_open("",""); |
| 10844 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10845 | iconv_close(cd); |
| 10846 | ; |
| 10847 | return 0; |
| 10848 | } |
| 10849 | _ACEOF |
| 10850 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10851 | if { (ac_try="$ac_link" |
| 10852 | case "(($ac_try" in |
| 10853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10854 | *) ac_try_echo=$ac_try;; |
| 10855 | esac |
| 10856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10857 | (eval "$ac_link") 2>conftest.er1 |
| 10858 | ac_status=$? |
| 10859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10860 | rm -f conftest.er1 |
| 10861 | cat conftest.err >&5 |
| 10862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10863 | (exit $ac_status); } && { |
| 10864 | test -z "$ac_cxx_werror_flag" || |
| 10865 | test ! -s conftest.err |
| 10866 | } && test -s conftest$ac_exeext && |
| 10867 | $as_test_x conftest$ac_exeext; then |
| 10868 | am_cv_func_iconv=yes |
| 10869 | else |
| 10870 | echo "$as_me: failed program was:" >&5 |
| 10871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10872 | |
| 10873 | |
| 10874 | fi |
| 10875 | |
| 10876 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10877 | conftest$ac_exeext conftest.$ac_ext |
| 10878 | if test "$am_cv_func_iconv" != yes; then |
| 10879 | am_save_LIBS="$LIBS" |
| 10880 | LIBS="$LIBS $LIBICONV" |
| 10881 | cat >conftest.$ac_ext <<_ACEOF |
| 10882 | /* confdefs.h. */ |
| 10883 | _ACEOF |
| 10884 | cat confdefs.h >>conftest.$ac_ext |
| 10885 | cat >>conftest.$ac_ext <<_ACEOF |
| 10886 | /* end confdefs.h. */ |
| 10887 | #include <stdlib.h> |
| 10888 | #include <iconv.h> |
| 10889 | int |
| 10890 | main () |
| 10891 | { |
| 10892 | iconv_t cd = iconv_open("",""); |
| 10893 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10894 | iconv_close(cd); |
| 10895 | ; |
| 10896 | return 0; |
| 10897 | } |
| 10898 | _ACEOF |
| 10899 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10900 | if { (ac_try="$ac_link" |
| 10901 | case "(($ac_try" in |
| 10902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10903 | *) ac_try_echo=$ac_try;; |
| 10904 | esac |
| 10905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10906 | (eval "$ac_link") 2>conftest.er1 |
| 10907 | ac_status=$? |
| 10908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10909 | rm -f conftest.er1 |
| 10910 | cat conftest.err >&5 |
| 10911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10912 | (exit $ac_status); } && { |
| 10913 | test -z "$ac_cxx_werror_flag" || |
| 10914 | test ! -s conftest.err |
| 10915 | } && test -s conftest$ac_exeext && |
| 10916 | $as_test_x conftest$ac_exeext; then |
| 10917 | am_cv_lib_iconv=yes |
| 10918 | am_cv_func_iconv=yes |
| 10919 | else |
| 10920 | echo "$as_me: failed program was:" >&5 |
| 10921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10922 | |
| 10923 | |
| 10924 | fi |
| 10925 | |
| 10926 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10927 | conftest$ac_exeext conftest.$ac_ext |
| 10928 | LIBS="$am_save_LIBS" |
| 10929 | fi |
| 10930 | |
| 10931 | fi |
| 10932 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 10933 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
| 10934 | if test "$am_cv_func_iconv" = yes; then |
| 10935 | |
| 10936 | cat >>confdefs.h <<\_ACEOF |
| 10937 | #define HAVE_ICONV 1 |
| 10938 | _ACEOF |
| 10939 | |
| 10940 | fi |
| 10941 | if test "$am_cv_lib_iconv" = yes; then |
| 10942 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 10943 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 10944 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 10945 | echo "${ECHO_T}$LIBICONV" >&6; } |
| 10946 | else |
| 10947 | CPPFLAGS="$am_save_CPPFLAGS" |
| 10948 | LIBICONV= |
| 10949 | LTLIBICONV= |
| 10950 | fi |
| 10951 | |
| 10952 | |
| 10953 | |
| 10954 | if test "$am_cv_func_iconv" = yes; then |
| 10955 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 10956 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
| 10957 | if test "${am_cv_proto_iconv+set}" = set; then |
| 10958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10959 | else |
| 10960 | |
| 10961 | cat >conftest.$ac_ext <<_ACEOF |
| 10962 | /* confdefs.h. */ |
| 10963 | _ACEOF |
| 10964 | cat confdefs.h >>conftest.$ac_ext |
| 10965 | cat >>conftest.$ac_ext <<_ACEOF |
| 10966 | /* end confdefs.h. */ |
| 10967 | |
| 10968 | #include <stdlib.h> |
| 10969 | #include <iconv.h> |
| 10970 | extern |
| 10971 | #ifdef __cplusplus |
| 10972 | "C" |
| 10973 | #endif |
| 10974 | #if defined(__STDC__) || defined(__cplusplus) |
| 10975 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 10976 | #else |
| 10977 | size_t iconv(); |
| 10978 | #endif |
| 10979 | |
| 10980 | int |
| 10981 | main () |
| 10982 | { |
| 10983 | |
| 10984 | ; |
| 10985 | return 0; |
| 10986 | } |
| 10987 | _ACEOF |
| 10988 | rm -f conftest.$ac_objext |
| 10989 | if { (ac_try="$ac_compile" |
| 10990 | case "(($ac_try" in |
| 10991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10992 | *) ac_try_echo=$ac_try;; |
| 10993 | esac |
| 10994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10995 | (eval "$ac_compile") 2>conftest.er1 |
| 10996 | ac_status=$? |
| 10997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10998 | rm -f conftest.er1 |
| 10999 | cat conftest.err >&5 |
| 11000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11001 | (exit $ac_status); } && { |
| 11002 | test -z "$ac_cxx_werror_flag" || |
| 11003 | test ! -s conftest.err |
| 11004 | } && test -s conftest.$ac_objext; then |
| 11005 | am_cv_proto_iconv_arg1="" |
| 11006 | else |
| 11007 | echo "$as_me: failed program was:" >&5 |
| 11008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11009 | |
| 11010 | am_cv_proto_iconv_arg1="const" |
| 11011 | fi |
| 11012 | |
| 11013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11014 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
| 11015 | fi |
| 11016 | |
| 11017 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
| 11018 | { echo "$as_me:$LINENO: result: ${ac_t:- |
| 11019 | }$am_cv_proto_iconv" >&5 |
| 11020 | echo "${ECHO_T}${ac_t:- |
| 11021 | }$am_cv_proto_iconv" >&6; } |
| 11022 | |
| 11023 | cat >>confdefs.h <<_ACEOF |
| 11024 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
| 11025 | _ACEOF |
| 11026 | |
| 11027 | fi |
| 11028 | |
| 11029 | |
| 11030 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 11031 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } |
| 11032 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 11033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11034 | else |
| 11035 | cat >conftest.$ac_ext <<_ACEOF |
| 11036 | /* confdefs.h. */ |
| 11037 | _ACEOF |
| 11038 | cat confdefs.h >>conftest.$ac_ext |
| 11039 | cat >>conftest.$ac_ext <<_ACEOF |
| 11040 | /* end confdefs.h. */ |
| 11041 | #include <langinfo.h> |
| 11042 | int |
| 11043 | main () |
| 11044 | { |
| 11045 | char* cs = nl_langinfo(CODESET); |
| 11046 | ; |
| 11047 | return 0; |
| 11048 | } |
| 11049 | _ACEOF |
| 11050 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11051 | if { (ac_try="$ac_link" |
| 11052 | case "(($ac_try" in |
| 11053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11054 | *) ac_try_echo=$ac_try;; |
| 11055 | esac |
| 11056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11057 | (eval "$ac_link") 2>conftest.er1 |
| 11058 | ac_status=$? |
| 11059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11060 | rm -f conftest.er1 |
| 11061 | cat conftest.err >&5 |
| 11062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11063 | (exit $ac_status); } && { |
| 11064 | test -z "$ac_cxx_werror_flag" || |
| 11065 | test ! -s conftest.err |
| 11066 | } && test -s conftest$ac_exeext && |
| 11067 | $as_test_x conftest$ac_exeext; then |
| 11068 | am_cv_langinfo_codeset=yes |
| 11069 | else |
| 11070 | echo "$as_me: failed program was:" >&5 |
| 11071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11072 | |
| 11073 | am_cv_langinfo_codeset=no |
| 11074 | fi |
| 11075 | |
| 11076 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11077 | conftest$ac_exeext conftest.$ac_ext |
| 11078 | |
| 11079 | fi |
| 11080 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 11081 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
| 11082 | if test $am_cv_langinfo_codeset = yes; then |
| 11083 | |
| 11084 | cat >>confdefs.h <<\_ACEOF |
| 11085 | #define HAVE_LANGINFO_CODESET 1 |
| 11086 | _ACEOF |
| 11087 | |
| 11088 | fi |
| 11089 | |
| 11090 | if test $ac_cv_header_locale_h = yes; then |
| 11091 | |
| 11092 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 11093 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
| 11094 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 11095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11096 | else |
| 11097 | cat >conftest.$ac_ext <<_ACEOF |
| 11098 | /* confdefs.h. */ |
| 11099 | _ACEOF |
| 11100 | cat confdefs.h >>conftest.$ac_ext |
| 11101 | cat >>conftest.$ac_ext <<_ACEOF |
| 11102 | /* end confdefs.h. */ |
| 11103 | #include <locale.h> |
| 11104 | int |
| 11105 | main () |
| 11106 | { |
| 11107 | return LC_MESSAGES |
| 11108 | ; |
| 11109 | return 0; |
| 11110 | } |
| 11111 | _ACEOF |
| 11112 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11113 | if { (ac_try="$ac_link" |
| 11114 | case "(($ac_try" in |
| 11115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11116 | *) ac_try_echo=$ac_try;; |
| 11117 | esac |
| 11118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11119 | (eval "$ac_link") 2>conftest.er1 |
| 11120 | ac_status=$? |
| 11121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11122 | rm -f conftest.er1 |
| 11123 | cat conftest.err >&5 |
| 11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11125 | (exit $ac_status); } && { |
| 11126 | test -z "$ac_cxx_werror_flag" || |
| 11127 | test ! -s conftest.err |
| 11128 | } && test -s conftest$ac_exeext && |
| 11129 | $as_test_x conftest$ac_exeext; then |
| 11130 | am_cv_val_LC_MESSAGES=yes |
| 11131 | else |
| 11132 | echo "$as_me: failed program was:" >&5 |
| 11133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11134 | |
| 11135 | am_cv_val_LC_MESSAGES=no |
| 11136 | fi |
| 11137 | |
| 11138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11139 | conftest$ac_exeext conftest.$ac_ext |
| 11140 | fi |
| 11141 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 11142 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } |
| 11143 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 11144 | |
| 11145 | cat >>confdefs.h <<\_ACEOF |
| 11146 | #define HAVE_LC_MESSAGES 1 |
| 11147 | _ACEOF |
| 11148 | |
| 11149 | fi |
| 11150 | |
| 11151 | fi |
| 11152 | |
| 11153 | for ac_prog in bison |
| 11154 | do |
| 11155 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11156 | set dummy $ac_prog; ac_word=$2 |
| 11157 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 11159 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 11160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11161 | else |
| 11162 | if test -n "$INTLBISON"; then |
| 11163 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 11164 | else |
| 11165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11166 | for as_dir in $PATH |
| 11167 | do |
| 11168 | IFS=$as_save_IFS |
| 11169 | test -z "$as_dir" && as_dir=. |
| 11170 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11172 | ac_cv_prog_INTLBISON="$ac_prog" |
| 11173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11174 | break 2 |
| 11175 | fi |
| 11176 | done |
| 11177 | done |
| 11178 | IFS=$as_save_IFS |
| 11179 | |
| 11180 | fi |
| 11181 | fi |
| 11182 | INTLBISON=$ac_cv_prog_INTLBISON |
| 11183 | if test -n "$INTLBISON"; then |
| 11184 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 11185 | echo "${ECHO_T}$INTLBISON" >&6; } |
| 11186 | else |
| 11187 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11188 | echo "${ECHO_T}no" >&6; } |
| 11189 | fi |
| 11190 | |
| 11191 | |
| 11192 | test -n "$INTLBISON" && break |
| 11193 | done |
| 11194 | |
| 11195 | if test -z "$INTLBISON"; then |
| 11196 | ac_verc_fail=yes |
| 11197 | else |
| 11198 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 11199 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
| 11200 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 11201 | case $ac_prog_version in |
| 11202 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 11203 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 11204 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 11205 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 11206 | esac |
| 11207 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 11208 | echo "${ECHO_T}$ac_prog_version" >&6; } |
| 11209 | fi |
| 11210 | if test $ac_verc_fail = yes; then |
| 11211 | INTLBISON=: |
| 11212 | fi |
| 11213 | |
| 11214 | |
| 11215 | |
| 11216 | |
| 11217 | |
| 11218 | |
| 11219 | |
| 11220 | |
| 11221 | |
| 11222 | |
| 11223 | |
| 11224 | |
| 11225 | |
| 11226 | |
| 11227 | |
| 11228 | |
| 11229 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 11230 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 11231 | # Check whether --enable-nls was given. |
| 11232 | if test "${enable_nls+set}" = set; then |
| 11233 | enableval=$enable_nls; USE_NLS=$enableval |
| 11234 | else |
| 11235 | USE_NLS=yes |
| 11236 | fi |
| 11237 | |
| 11238 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 11239 | echo "${ECHO_T}$USE_NLS" >&6; } |
| 11240 | |
| 11241 | |
| 11242 | |
| 11243 | |
| 11244 | BUILD_INCLUDED_LIBINTL=no |
| 11245 | USE_INCLUDED_LIBINTL=no |
| 11246 | |
| 11247 | LIBINTL= |
| 11248 | LTLIBINTL= |
| 11249 | POSUB= |
| 11250 | |
| 11251 | if test "$USE_NLS" = "yes"; then |
| 11252 | gt_use_preinstalled_gnugettext=no |
| 11253 | |
| 11254 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 11255 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } |
| 11256 | |
| 11257 | # Check whether --with-included-gettext was given. |
| 11258 | if test "${with_included_gettext+set}" = set; then |
| 11259 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
| 11260 | else |
| 11261 | nls_cv_force_use_gnu_gettext=no |
| 11262 | fi |
| 11263 | |
| 11264 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 11265 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
| 11266 | |
| 11267 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 11268 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
| 11269 | |
| 11270 | |
| 11271 | |
| 11272 | |
| 11273 | |
| 11274 | |
| 11275 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 11276 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } |
| 11277 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 11278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11279 | else |
| 11280 | cat >conftest.$ac_ext <<_ACEOF |
| 11281 | /* confdefs.h. */ |
| 11282 | _ACEOF |
| 11283 | cat confdefs.h >>conftest.$ac_ext |
| 11284 | cat >>conftest.$ac_ext <<_ACEOF |
| 11285 | /* end confdefs.h. */ |
| 11286 | #include <libintl.h> |
| 11287 | extern int _nl_msg_cat_cntr; |
| 11288 | extern int *_nl_domain_bindings; |
| 11289 | int |
| 11290 | main () |
| 11291 | { |
| 11292 | bindtextdomain ("", ""); |
| 11293 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 11294 | ; |
| 11295 | return 0; |
| 11296 | } |
| 11297 | _ACEOF |
| 11298 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11299 | if { (ac_try="$ac_link" |
| 11300 | case "(($ac_try" in |
| 11301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11302 | *) ac_try_echo=$ac_try;; |
| 11303 | esac |
| 11304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11305 | (eval "$ac_link") 2>conftest.er1 |
| 11306 | ac_status=$? |
| 11307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11308 | rm -f conftest.er1 |
| 11309 | cat conftest.err >&5 |
| 11310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11311 | (exit $ac_status); } && { |
| 11312 | test -z "$ac_cxx_werror_flag" || |
| 11313 | test ! -s conftest.err |
| 11314 | } && test -s conftest$ac_exeext && |
| 11315 | $as_test_x conftest$ac_exeext; then |
| 11316 | gt_cv_func_gnugettext1_libc=yes |
| 11317 | else |
| 11318 | echo "$as_me: failed program was:" >&5 |
| 11319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11320 | |
| 11321 | gt_cv_func_gnugettext1_libc=no |
| 11322 | fi |
| 11323 | |
| 11324 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11325 | conftest$ac_exeext conftest.$ac_ext |
| 11326 | fi |
| 11327 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 11328 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
| 11329 | |
| 11330 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
| 11331 | |
| 11332 | |
| 11333 | |
| 11334 | use_additional=yes |
| 11335 | |
| 11336 | acl_save_prefix="$prefix" |
| 11337 | prefix="$acl_final_prefix" |
| 11338 | acl_save_exec_prefix="$exec_prefix" |
| 11339 | exec_prefix="$acl_final_exec_prefix" |
| 11340 | |
| 11341 | eval additional_includedir=\"$includedir\" |
| 11342 | eval additional_libdir=\"$libdir\" |
| 11343 | |
| 11344 | exec_prefix="$acl_save_exec_prefix" |
| 11345 | prefix="$acl_save_prefix" |
| 11346 | |
| 11347 | |
| 11348 | # Check whether --with-libintl-prefix was given. |
| 11349 | if test "${with_libintl_prefix+set}" = set; then |
| 11350 | withval=$with_libintl_prefix; |
| 11351 | if test "X$withval" = "Xno"; then |
| 11352 | use_additional=no |
| 11353 | else |
| 11354 | if test "X$withval" = "X"; then |
| 11355 | |
| 11356 | acl_save_prefix="$prefix" |
| 11357 | prefix="$acl_final_prefix" |
| 11358 | acl_save_exec_prefix="$exec_prefix" |
| 11359 | exec_prefix="$acl_final_exec_prefix" |
| 11360 | |
| 11361 | eval additional_includedir=\"$includedir\" |
| 11362 | eval additional_libdir=\"$libdir\" |
| 11363 | |
| 11364 | exec_prefix="$acl_save_exec_prefix" |
| 11365 | prefix="$acl_save_prefix" |
| 11366 | |
| 11367 | else |
| 11368 | additional_includedir="$withval/include" |
| 11369 | additional_libdir="$withval/lib" |
| 11370 | fi |
| 11371 | fi |
| 11372 | |
| 11373 | fi |
| 11374 | |
| 11375 | LIBINTL= |
| 11376 | LTLIBINTL= |
| 11377 | INCINTL= |
| 11378 | rpathdirs= |
| 11379 | ltrpathdirs= |
| 11380 | names_already_handled= |
| 11381 | names_next_round='intl ' |
| 11382 | while test -n "$names_next_round"; do |
| 11383 | names_this_round="$names_next_round" |
| 11384 | names_next_round= |
| 11385 | for name in $names_this_round; do |
| 11386 | already_handled= |
| 11387 | for n in $names_already_handled; do |
| 11388 | if test "$n" = "$name"; then |
| 11389 | already_handled=yes |
| 11390 | break |
| 11391 | fi |
| 11392 | done |
| 11393 | if test -z "$already_handled"; then |
| 11394 | names_already_handled="$names_already_handled $name" |
| 11395 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 11396 | eval value=\"\$HAVE_LIB$uppername\" |
| 11397 | if test -n "$value"; then |
| 11398 | if test "$value" = yes; then |
| 11399 | eval value=\"\$LIB$uppername\" |
| 11400 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 11401 | eval value=\"\$LTLIB$uppername\" |
| 11402 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 11403 | else |
| 11404 | : |
| 11405 | fi |
| 11406 | else |
| 11407 | found_dir= |
| 11408 | found_la= |
| 11409 | found_so= |
| 11410 | found_a= |
| 11411 | if test $use_additional = yes; then |
| 11412 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 11413 | found_dir="$additional_libdir" |
| 11414 | found_so="$additional_libdir/lib$name.$shlibext" |
| 11415 | if test -f "$additional_libdir/lib$name.la"; then |
| 11416 | found_la="$additional_libdir/lib$name.la" |
| 11417 | fi |
| 11418 | else |
| 11419 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 11420 | found_dir="$additional_libdir" |
| 11421 | found_a="$additional_libdir/lib$name.$libext" |
| 11422 | if test -f "$additional_libdir/lib$name.la"; then |
| 11423 | found_la="$additional_libdir/lib$name.la" |
| 11424 | fi |
| 11425 | fi |
| 11426 | fi |
| 11427 | fi |
| 11428 | if test "X$found_dir" = "X"; then |
| 11429 | for x in $LDFLAGS $LTLIBINTL; do |
| 11430 | |
| 11431 | acl_save_prefix="$prefix" |
| 11432 | prefix="$acl_final_prefix" |
| 11433 | acl_save_exec_prefix="$exec_prefix" |
| 11434 | exec_prefix="$acl_final_exec_prefix" |
| 11435 | eval x=\"$x\" |
| 11436 | exec_prefix="$acl_save_exec_prefix" |
| 11437 | prefix="$acl_save_prefix" |
| 11438 | |
| 11439 | case "$x" in |
| 11440 | -L*) |
| 11441 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 11442 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 11443 | found_dir="$dir" |
| 11444 | found_so="$dir/lib$name.$shlibext" |
| 11445 | if test -f "$dir/lib$name.la"; then |
| 11446 | found_la="$dir/lib$name.la" |
| 11447 | fi |
| 11448 | else |
| 11449 | if test -f "$dir/lib$name.$libext"; then |
| 11450 | found_dir="$dir" |
| 11451 | found_a="$dir/lib$name.$libext" |
| 11452 | if test -f "$dir/lib$name.la"; then |
| 11453 | found_la="$dir/lib$name.la" |
| 11454 | fi |
| 11455 | fi |
| 11456 | fi |
| 11457 | ;; |
| 11458 | esac |
| 11459 | if test "X$found_dir" != "X"; then |
| 11460 | break |
| 11461 | fi |
| 11462 | done |
| 11463 | fi |
| 11464 | if test "X$found_dir" != "X"; then |
| 11465 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 11466 | if test "X$found_so" != "X"; then |
| 11467 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 11468 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11469 | else |
| 11470 | haveit= |
| 11471 | for x in $ltrpathdirs; do |
| 11472 | if test "X$x" = "X$found_dir"; then |
| 11473 | haveit=yes |
| 11474 | break |
| 11475 | fi |
| 11476 | done |
| 11477 | if test -z "$haveit"; then |
| 11478 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 11479 | fi |
| 11480 | if test "$hardcode_direct" = yes; then |
| 11481 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11482 | else |
| 11483 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 11484 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11485 | haveit= |
| 11486 | for x in $rpathdirs; do |
| 11487 | if test "X$x" = "X$found_dir"; then |
| 11488 | haveit=yes |
| 11489 | break |
| 11490 | fi |
| 11491 | done |
| 11492 | if test -z "$haveit"; then |
| 11493 | rpathdirs="$rpathdirs $found_dir" |
| 11494 | fi |
| 11495 | else |
| 11496 | haveit= |
| 11497 | for x in $LDFLAGS $LIBINTL; do |
| 11498 | |
| 11499 | acl_save_prefix="$prefix" |
| 11500 | prefix="$acl_final_prefix" |
| 11501 | acl_save_exec_prefix="$exec_prefix" |
| 11502 | exec_prefix="$acl_final_exec_prefix" |
| 11503 | eval x=\"$x\" |
| 11504 | exec_prefix="$acl_save_exec_prefix" |
| 11505 | prefix="$acl_save_prefix" |
| 11506 | |
| 11507 | if test "X$x" = "X-L$found_dir"; then |
| 11508 | haveit=yes |
| 11509 | break |
| 11510 | fi |
| 11511 | done |
| 11512 | if test -z "$haveit"; then |
| 11513 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 11514 | fi |
| 11515 | if test "$hardcode_minus_L" != no; then |
| 11516 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11517 | else |
| 11518 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11519 | fi |
| 11520 | fi |
| 11521 | fi |
| 11522 | fi |
| 11523 | else |
| 11524 | if test "X$found_a" != "X"; then |
| 11525 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 11526 | else |
| 11527 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 11528 | fi |
| 11529 | fi |
| 11530 | additional_includedir= |
| 11531 | case "$found_dir" in |
| 11532 | */lib | */lib/) |
| 11533 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 11534 | additional_includedir="$basedir/include" |
| 11535 | ;; |
| 11536 | esac |
| 11537 | if test "X$additional_includedir" != "X"; then |
| 11538 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11539 | haveit= |
| 11540 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11541 | if test -n "$GCC"; then |
| 11542 | case $host_os in |
| 11543 | linux*) haveit=yes;; |
| 11544 | esac |
| 11545 | fi |
| 11546 | fi |
| 11547 | if test -z "$haveit"; then |
| 11548 | for x in $CPPFLAGS $INCINTL; do |
| 11549 | |
| 11550 | acl_save_prefix="$prefix" |
| 11551 | prefix="$acl_final_prefix" |
| 11552 | acl_save_exec_prefix="$exec_prefix" |
| 11553 | exec_prefix="$acl_final_exec_prefix" |
| 11554 | eval x=\"$x\" |
| 11555 | exec_prefix="$acl_save_exec_prefix" |
| 11556 | prefix="$acl_save_prefix" |
| 11557 | |
| 11558 | if test "X$x" = "X-I$additional_includedir"; then |
| 11559 | haveit=yes |
| 11560 | break |
| 11561 | fi |
| 11562 | done |
| 11563 | if test -z "$haveit"; then |
| 11564 | if test -d "$additional_includedir"; then |
| 11565 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 11566 | fi |
| 11567 | fi |
| 11568 | fi |
| 11569 | fi |
| 11570 | fi |
| 11571 | if test -n "$found_la"; then |
| 11572 | save_libdir="$libdir" |
| 11573 | case "$found_la" in |
| 11574 | */* | *\\*) . "$found_la" ;; |
| 11575 | *) . "./$found_la" ;; |
| 11576 | esac |
| 11577 | libdir="$save_libdir" |
| 11578 | for dep in $dependency_libs; do |
| 11579 | case "$dep" in |
| 11580 | -L*) |
| 11581 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 11582 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 11583 | haveit= |
| 11584 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 11585 | if test -n "$GCC"; then |
| 11586 | case $host_os in |
| 11587 | linux*) haveit=yes;; |
| 11588 | esac |
| 11589 | fi |
| 11590 | fi |
| 11591 | if test -z "$haveit"; then |
| 11592 | haveit= |
| 11593 | for x in $LDFLAGS $LIBINTL; do |
| 11594 | |
| 11595 | acl_save_prefix="$prefix" |
| 11596 | prefix="$acl_final_prefix" |
| 11597 | acl_save_exec_prefix="$exec_prefix" |
| 11598 | exec_prefix="$acl_final_exec_prefix" |
| 11599 | eval x=\"$x\" |
| 11600 | exec_prefix="$acl_save_exec_prefix" |
| 11601 | prefix="$acl_save_prefix" |
| 11602 | |
| 11603 | if test "X$x" = "X-L$additional_libdir"; then |
| 11604 | haveit=yes |
| 11605 | break |
| 11606 | fi |
| 11607 | done |
| 11608 | if test -z "$haveit"; then |
| 11609 | if test -d "$additional_libdir"; then |
| 11610 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 11611 | fi |
| 11612 | fi |
| 11613 | haveit= |
| 11614 | for x in $LDFLAGS $LTLIBINTL; do |
| 11615 | |
| 11616 | acl_save_prefix="$prefix" |
| 11617 | prefix="$acl_final_prefix" |
| 11618 | acl_save_exec_prefix="$exec_prefix" |
| 11619 | exec_prefix="$acl_final_exec_prefix" |
| 11620 | eval x=\"$x\" |
| 11621 | exec_prefix="$acl_save_exec_prefix" |
| 11622 | prefix="$acl_save_prefix" |
| 11623 | |
| 11624 | if test "X$x" = "X-L$additional_libdir"; then |
| 11625 | haveit=yes |
| 11626 | break |
| 11627 | fi |
| 11628 | done |
| 11629 | if test -z "$haveit"; then |
| 11630 | if test -d "$additional_libdir"; then |
| 11631 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 11632 | fi |
| 11633 | fi |
| 11634 | fi |
| 11635 | fi |
| 11636 | ;; |
| 11637 | -R*) |
| 11638 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11639 | if test "$enable_rpath" != no; then |
| 11640 | haveit= |
| 11641 | for x in $rpathdirs; do |
| 11642 | if test "X$x" = "X$dir"; then |
| 11643 | haveit=yes |
| 11644 | break |
| 11645 | fi |
| 11646 | done |
| 11647 | if test -z "$haveit"; then |
| 11648 | rpathdirs="$rpathdirs $dir" |
| 11649 | fi |
| 11650 | haveit= |
| 11651 | for x in $ltrpathdirs; do |
| 11652 | if test "X$x" = "X$dir"; then |
| 11653 | haveit=yes |
| 11654 | break |
| 11655 | fi |
| 11656 | done |
| 11657 | if test -z "$haveit"; then |
| 11658 | ltrpathdirs="$ltrpathdirs $dir" |
| 11659 | fi |
| 11660 | fi |
| 11661 | ;; |
| 11662 | -l*) |
| 11663 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11664 | ;; |
| 11665 | *.la) |
| 11666 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11667 | ;; |
| 11668 | *) |
| 11669 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 11670 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 11671 | ;; |
| 11672 | esac |
| 11673 | done |
| 11674 | fi |
| 11675 | else |
| 11676 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11677 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 11678 | fi |
| 11679 | fi |
| 11680 | fi |
| 11681 | done |
| 11682 | done |
| 11683 | if test "X$rpathdirs" != "X"; then |
| 11684 | if test -n "$hardcode_libdir_separator"; then |
| 11685 | alldirs= |
| 11686 | for found_dir in $rpathdirs; do |
| 11687 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 11688 | done |
| 11689 | acl_save_libdir="$libdir" |
| 11690 | libdir="$alldirs" |
| 11691 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11692 | libdir="$acl_save_libdir" |
| 11693 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11694 | else |
| 11695 | for found_dir in $rpathdirs; do |
| 11696 | acl_save_libdir="$libdir" |
| 11697 | libdir="$found_dir" |
| 11698 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11699 | libdir="$acl_save_libdir" |
| 11700 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11701 | done |
| 11702 | fi |
| 11703 | fi |
| 11704 | if test "X$ltrpathdirs" != "X"; then |
| 11705 | for found_dir in $ltrpathdirs; do |
| 11706 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 11707 | done |
| 11708 | fi |
| 11709 | |
| 11710 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 11711 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } |
| 11712 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 11713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11714 | else |
| 11715 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 11716 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 11717 | gt_save_LIBS="$LIBS" |
| 11718 | LIBS="$LIBS $LIBINTL" |
| 11719 | cat >conftest.$ac_ext <<_ACEOF |
| 11720 | /* confdefs.h. */ |
| 11721 | _ACEOF |
| 11722 | cat confdefs.h >>conftest.$ac_ext |
| 11723 | cat >>conftest.$ac_ext <<_ACEOF |
| 11724 | /* end confdefs.h. */ |
| 11725 | #include <libintl.h> |
| 11726 | extern int _nl_msg_cat_cntr; |
| 11727 | extern |
| 11728 | #ifdef __cplusplus |
| 11729 | "C" |
| 11730 | #endif |
| 11731 | const char *_nl_expand_alias (); |
| 11732 | int |
| 11733 | main () |
| 11734 | { |
| 11735 | bindtextdomain ("", ""); |
| 11736 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
| 11737 | ; |
| 11738 | return 0; |
| 11739 | } |
| 11740 | _ACEOF |
| 11741 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11742 | if { (ac_try="$ac_link" |
| 11743 | case "(($ac_try" in |
| 11744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11745 | *) ac_try_echo=$ac_try;; |
| 11746 | esac |
| 11747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11748 | (eval "$ac_link") 2>conftest.er1 |
| 11749 | ac_status=$? |
| 11750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11751 | rm -f conftest.er1 |
| 11752 | cat conftest.err >&5 |
| 11753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11754 | (exit $ac_status); } && { |
| 11755 | test -z "$ac_cxx_werror_flag" || |
| 11756 | test ! -s conftest.err |
| 11757 | } && test -s conftest$ac_exeext && |
| 11758 | $as_test_x conftest$ac_exeext; then |
| 11759 | gt_cv_func_gnugettext1_libintl=yes |
| 11760 | else |
| 11761 | echo "$as_me: failed program was:" >&5 |
| 11762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11763 | |
| 11764 | gt_cv_func_gnugettext1_libintl=no |
| 11765 | fi |
| 11766 | |
| 11767 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11768 | conftest$ac_exeext conftest.$ac_ext |
| 11769 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 11770 | LIBS="$LIBS $LIBICONV" |
| 11771 | cat >conftest.$ac_ext <<_ACEOF |
| 11772 | /* confdefs.h. */ |
| 11773 | _ACEOF |
| 11774 | cat confdefs.h >>conftest.$ac_ext |
| 11775 | cat >>conftest.$ac_ext <<_ACEOF |
| 11776 | /* end confdefs.h. */ |
| 11777 | #include <libintl.h> |
| 11778 | extern int _nl_msg_cat_cntr; |
| 11779 | extern |
| 11780 | #ifdef __cplusplus |
| 11781 | "C" |
| 11782 | #endif |
| 11783 | const char *_nl_expand_alias (); |
| 11784 | int |
| 11785 | main () |
| 11786 | { |
| 11787 | bindtextdomain ("", ""); |
| 11788 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
| 11789 | ; |
| 11790 | return 0; |
| 11791 | } |
| 11792 | _ACEOF |
| 11793 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11794 | if { (ac_try="$ac_link" |
| 11795 | case "(($ac_try" in |
| 11796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11797 | *) ac_try_echo=$ac_try;; |
| 11798 | esac |
| 11799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11800 | (eval "$ac_link") 2>conftest.er1 |
| 11801 | ac_status=$? |
| 11802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11803 | rm -f conftest.er1 |
| 11804 | cat conftest.err >&5 |
| 11805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11806 | (exit $ac_status); } && { |
| 11807 | test -z "$ac_cxx_werror_flag" || |
| 11808 | test ! -s conftest.err |
| 11809 | } && test -s conftest$ac_exeext && |
| 11810 | $as_test_x conftest$ac_exeext; then |
| 11811 | LIBINTL="$LIBINTL $LIBICONV" |
| 11812 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 11813 | gt_cv_func_gnugettext1_libintl=yes |
| 11814 | |
| 11815 | else |
| 11816 | echo "$as_me: failed program was:" >&5 |
| 11817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11818 | |
| 11819 | |
| 11820 | fi |
| 11821 | |
| 11822 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11823 | conftest$ac_exeext conftest.$ac_ext |
| 11824 | fi |
| 11825 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 11826 | LIBS="$gt_save_LIBS" |
| 11827 | fi |
| 11828 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 11829 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
| 11830 | fi |
| 11831 | |
| 11832 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 11833 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
| 11834 | && test "$PACKAGE" != gettext-runtime \ |
| 11835 | && test "$PACKAGE" != gettext-tools; }; then |
| 11836 | gt_use_preinstalled_gnugettext=yes |
| 11837 | else |
| 11838 | LIBINTL= |
| 11839 | LTLIBINTL= |
| 11840 | INCINTL= |
| 11841 | fi |
| 11842 | |
| 11843 | |
| 11844 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 11845 | nls_cv_use_gnu_gettext=yes |
| 11846 | fi |
| 11847 | fi |
| 11848 | |
| 11849 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11850 | BUILD_INCLUDED_LIBINTL=yes |
| 11851 | USE_INCLUDED_LIBINTL=yes |
| 11852 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 11853 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 11854 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
| 11855 | fi |
| 11856 | |
| 11857 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11858 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11859 | CATOBJEXT=.gmo |
| 11860 | fi |
| 11861 | |
| 11862 | |
| 11863 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11864 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11865 | |
| 11866 | cat >>confdefs.h <<\_ACEOF |
| 11867 | #define ENABLE_NLS 1 |
| 11868 | _ACEOF |
| 11869 | |
| 11870 | else |
| 11871 | USE_NLS=no |
| 11872 | fi |
| 11873 | fi |
| 11874 | |
| 11875 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 11876 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 11877 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 11878 | echo "${ECHO_T}$USE_NLS" >&6; } |
| 11879 | if test "$USE_NLS" = "yes"; then |
| 11880 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 11881 | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } |
| 11882 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 11883 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 11884 | gt_source="external libintl" |
| 11885 | else |
| 11886 | gt_source="libc" |
| 11887 | fi |
| 11888 | else |
| 11889 | gt_source="included intl directory" |
| 11890 | fi |
| 11891 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 11892 | echo "${ECHO_T}$gt_source" >&6; } |
| 11893 | fi |
| 11894 | |
| 11895 | if test "$USE_NLS" = "yes"; then |
| 11896 | |
| 11897 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 11898 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 11899 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 11900 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 11901 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 11902 | echo "${ECHO_T}$LIBINTL" >&6; } |
| 11903 | |
| 11904 | for element in $INCINTL; do |
| 11905 | haveit= |
| 11906 | for x in $CPPFLAGS; do |
| 11907 | |
| 11908 | acl_save_prefix="$prefix" |
| 11909 | prefix="$acl_final_prefix" |
| 11910 | acl_save_exec_prefix="$exec_prefix" |
| 11911 | exec_prefix="$acl_final_exec_prefix" |
| 11912 | eval x=\"$x\" |
| 11913 | exec_prefix="$acl_save_exec_prefix" |
| 11914 | prefix="$acl_save_prefix" |
| 11915 | |
| 11916 | if test "X$x" = "X$element"; then |
| 11917 | haveit=yes |
| 11918 | break |
| 11919 | fi |
| 11920 | done |
| 11921 | if test -z "$haveit"; then |
| 11922 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11923 | fi |
| 11924 | done |
| 11925 | |
| 11926 | fi |
| 11927 | |
| 11928 | |
| 11929 | cat >>confdefs.h <<\_ACEOF |
| 11930 | #define HAVE_GETTEXT 1 |
| 11931 | _ACEOF |
| 11932 | |
| 11933 | |
| 11934 | cat >>confdefs.h <<\_ACEOF |
| 11935 | #define HAVE_DCGETTEXT 1 |
| 11936 | _ACEOF |
| 11937 | |
| 11938 | fi |
| 11939 | |
| 11940 | POSUB=po |
| 11941 | fi |
| 11942 | |
| 11943 | |
| 11944 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
| 11945 | BUILD_INCLUDED_LIBINTL=yes |
| 11946 | fi |
| 11947 | |
| 11948 | |
| 11949 | |
| 11950 | |
| 11951 | |
| 11952 | nls_cv_header_intl= |
| 11953 | nls_cv_header_libgt= |
| 11954 | |
| 11955 | DATADIRNAME=share |
| 11956 | |
| 11957 | |
| 11958 | INSTOBJEXT=.mo |
| 11959 | |
| 11960 | |
| 11961 | GENCAT=gencat |
| 11962 | |
| 11963 | |
| 11964 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 11965 | INTLOBJS="\$(GETTOBJS)" |
| 11966 | fi |
| 11967 | |
| 11968 | |
| 11969 | INTL_LIBTOOL_SUFFIX_PREFIX= |
| 11970 | |
| 11971 | |
| 11972 | |
| 11973 | INTLLIBS="$LIBINTL" |
| 11974 | |
| 11975 | |
| 11976 | |
| 11977 | |
| 11978 | |
| 11979 | |
| 11980 | |
| 11981 | BOILERPLATE=boilerplate.mk |
| 11982 | |
| 11983 | if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then |
| 11984 | if sh -c "vncmkdepend" >/dev/null 2>&1; then |
| 11985 | BOILERPLATE="$BOILERPLATE:depend.mk" |
| 11986 | fi |
| 11987 | fi |
| 11988 | |
| 11989 | ac_config_files="$ac_config_files Makefile:common.mk:Makefile.in:$BOILERPLATE tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE intl/Makefile po/Makefile.in" |
| 11990 | |
| 11991 | cat >confcache <<\_ACEOF |
| 11992 | # This file is a shell script that caches the results of configure |
| 11993 | # tests run on this system so they can be shared between configure |
| 11994 | # scripts and configure runs, see configure's option --config-cache. |
| 11995 | # It is not useful on other systems. If it contains results you don't |
| 11996 | # want to keep, you may remove or edit it. |
| 11997 | # |
| 11998 | # config.status only pays attention to the cache file if you give it |
| 11999 | # the --recheck option to rerun configure. |
| 12000 | # |
| 12001 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 12002 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 12003 | # following values. |
| 12004 | |
| 12005 | _ACEOF |
| 12006 | |
| 12007 | # The following way of writing the cache mishandles newlines in values, |
| 12008 | # but we know of no workaround that is simple, portable, and efficient. |
| 12009 | # So, we kill variables containing newlines. |
| 12010 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 12011 | # and sets the high bit in the cache file unless we assign to the vars. |
| 12012 | ( |
| 12013 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 12014 | eval ac_val=\$$ac_var |
| 12015 | case $ac_val in #( |
| 12016 | *${as_nl}*) |
| 12017 | case $ac_var in #( |
| 12018 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 12019 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 12020 | esac |
| 12021 | case $ac_var in #( |
| 12022 | _ | IFS | as_nl) ;; #( |
| 12023 | *) $as_unset $ac_var ;; |
| 12024 | esac ;; |
| 12025 | esac |
| 12026 | done |
| 12027 | |
| 12028 | (set) 2>&1 | |
| 12029 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 12030 | *${as_nl}ac_space=\ *) |
| 12031 | # `set' does not quote correctly, so add quotes (double-quote |
| 12032 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 12033 | sed -n \ |
| 12034 | "s/'/'\\\\''/g; |
| 12035 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 12036 | ;; #( |
| 12037 | *) |
| 12038 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 12039 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 12040 | ;; |
| 12041 | esac | |
| 12042 | sort |
| 12043 | ) | |
| 12044 | sed ' |
| 12045 | /^ac_cv_env_/b end |
| 12046 | t clear |
| 12047 | :clear |
| 12048 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 12049 | t end |
| 12050 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 12051 | :end' >>confcache |
| 12052 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 12053 | if test -w "$cache_file"; then |
| 12054 | test "x$cache_file" != "x/dev/null" && |
| 12055 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 12056 | echo "$as_me: updating cache $cache_file" >&6;} |
| 12057 | cat confcache >$cache_file |
| 12058 | else |
| 12059 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 12060 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 12061 | fi |
| 12062 | fi |
| 12063 | rm -f confcache |
| 12064 | |
| 12065 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 12066 | # Let make expand exec_prefix. |
| 12067 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 12068 | |
| 12069 | # Transform confdefs.h into DEFS. |
| 12070 | # Protect against shell expansion while executing Makefile rules. |
| 12071 | # Protect against Makefile macro expansion. |
| 12072 | # |
| 12073 | # If the first sed substitution is executed (which looks for macros that |
| 12074 | # take arguments), then branch to the quote section. Otherwise, |
| 12075 | # look for a macro that doesn't take arguments. |
| 12076 | ac_script=' |
| 12077 | t clear |
| 12078 | :clear |
| 12079 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 12080 | t quote |
| 12081 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 12082 | t quote |
| 12083 | b any |
| 12084 | :quote |
| 12085 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 12086 | s/\[/\\&/g |
| 12087 | s/\]/\\&/g |
| 12088 | s/\$/$$/g |
| 12089 | H |
| 12090 | :any |
| 12091 | ${ |
| 12092 | g |
| 12093 | s/^\n// |
| 12094 | s/\n/ /g |
| 12095 | p |
| 12096 | } |
| 12097 | ' |
| 12098 | DEFS=`sed -n "$ac_script" confdefs.h` |
| 12099 | |
| 12100 | |
| 12101 | ac_libobjs= |
| 12102 | ac_ltlibobjs= |
| 12103 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 12104 | # 1. Remove the extension, and $U if already installed. |
| 12105 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 12106 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 12107 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 12108 | # will be set to the directory where LIBOBJS objects are built. |
| 12109 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 12110 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
| 12111 | done |
| 12112 | LIBOBJS=$ac_libobjs |
| 12113 | |
| 12114 | LTLIBOBJS=$ac_ltlibobjs |
| 12115 | |
| 12116 | |
| 12117 | |
| 12118 | : ${CONFIG_STATUS=./config.status} |
| 12119 | ac_clean_files_save=$ac_clean_files |
| 12120 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 12121 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 12122 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 12123 | cat >$CONFIG_STATUS <<_ACEOF |
| 12124 | #! $SHELL |
| 12125 | # Generated by $as_me. |
| 12126 | # Run this file to recreate the current configuration. |
| 12127 | # Compiler output produced by configure, useful for debugging |
| 12128 | # configure, is in config.log if it exists. |
| 12129 | |
| 12130 | debug=false |
| 12131 | ac_cs_recheck=false |
| 12132 | ac_cs_silent=false |
| 12133 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 12134 | _ACEOF |
| 12135 | |
| 12136 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12137 | ## --------------------- ## |
| 12138 | ## M4sh Initialization. ## |
| 12139 | ## --------------------- ## |
| 12140 | |
| 12141 | # Be more Bourne compatible |
| 12142 | DUALCASE=1; export DUALCASE # for MKS sh |
| 12143 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 12144 | emulate sh |
| 12145 | NULLCMD=: |
| 12146 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 12147 | # is contrary to our usage. Disable this feature. |
| 12148 | alias -g '${1+"$@"}'='"$@"' |
| 12149 | setopt NO_GLOB_SUBST |
| 12150 | else |
| 12151 | case `(set -o) 2>/dev/null` in |
| 12152 | *posix*) set -o posix ;; |
| 12153 | esac |
| 12154 | |
| 12155 | fi |
| 12156 | |
| 12157 | |
| 12158 | |
| 12159 | |
| 12160 | # PATH needs CR |
| 12161 | # Avoid depending upon Character Ranges. |
| 12162 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12163 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 12164 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 12165 | as_cr_digits='0123456789' |
| 12166 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 12167 | |
| 12168 | # The user is always right. |
| 12169 | if test "${PATH_SEPARATOR+set}" != set; then |
| 12170 | echo "#! /bin/sh" >conf$$.sh |
| 12171 | echo "exit 0" >>conf$$.sh |
| 12172 | chmod +x conf$$.sh |
| 12173 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 12174 | PATH_SEPARATOR=';' |
| 12175 | else |
| 12176 | PATH_SEPARATOR=: |
| 12177 | fi |
| 12178 | rm -f conf$$.sh |
| 12179 | fi |
| 12180 | |
| 12181 | # Support unset when possible. |
| 12182 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 12183 | as_unset=unset |
| 12184 | else |
| 12185 | as_unset=false |
| 12186 | fi |
| 12187 | |
| 12188 | |
| 12189 | # IFS |
| 12190 | # We need space, tab and new line, in precisely that order. Quoting is |
| 12191 | # there to prevent editors from complaining about space-tab. |
| 12192 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 12193 | # splitting by setting IFS to empty value.) |
| 12194 | as_nl=' |
| 12195 | ' |
| 12196 | IFS=" "" $as_nl" |
| 12197 | |
| 12198 | # Find who we are. Look in the path if we contain no directory separator. |
| 12199 | case $0 in |
| 12200 | *[\\/]* ) as_myself=$0 ;; |
| 12201 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12202 | for as_dir in $PATH |
| 12203 | do |
| 12204 | IFS=$as_save_IFS |
| 12205 | test -z "$as_dir" && as_dir=. |
| 12206 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 12207 | done |
| 12208 | IFS=$as_save_IFS |
| 12209 | |
| 12210 | ;; |
| 12211 | esac |
| 12212 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 12213 | # in which case we are not to be found in the path. |
| 12214 | if test "x$as_myself" = x; then |
| 12215 | as_myself=$0 |
| 12216 | fi |
| 12217 | if test ! -f "$as_myself"; then |
| 12218 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 12219 | { (exit 1); exit 1; } |
| 12220 | fi |
| 12221 | |
| 12222 | # Work around bugs in pre-3.0 UWIN ksh. |
| 12223 | for as_var in ENV MAIL MAILPATH |
| 12224 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 12225 | done |
| 12226 | PS1='$ ' |
| 12227 | PS2='> ' |
| 12228 | PS4='+ ' |
| 12229 | |
| 12230 | # NLS nuisances. |
| 12231 | for as_var in \ |
| 12232 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 12233 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 12234 | LC_TELEPHONE LC_TIME |
| 12235 | do |
| 12236 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 12237 | eval $as_var=C; export $as_var |
| 12238 | else |
| 12239 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 12240 | fi |
| 12241 | done |
| 12242 | |
| 12243 | # Required to use basename. |
| 12244 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 12245 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 12246 | as_expr=expr |
| 12247 | else |
| 12248 | as_expr=false |
| 12249 | fi |
| 12250 | |
| 12251 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 12252 | as_basename=basename |
| 12253 | else |
| 12254 | as_basename=false |
| 12255 | fi |
| 12256 | |
| 12257 | |
| 12258 | # Name of the executable. |
| 12259 | as_me=`$as_basename -- "$0" || |
| 12260 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 12261 | X"$0" : 'X\(//\)$' \| \ |
| 12262 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 12263 | echo X/"$0" | |
| 12264 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 12265 | s//\1/ |
| 12266 | q |
| 12267 | } |
| 12268 | /^X\/\(\/\/\)$/{ |
| 12269 | s//\1/ |
| 12270 | q |
| 12271 | } |
| 12272 | /^X\/\(\/\).*/{ |
| 12273 | s//\1/ |
| 12274 | q |
| 12275 | } |
| 12276 | s/.*/./; q'` |
| 12277 | |
| 12278 | # CDPATH. |
| 12279 | $as_unset CDPATH |
| 12280 | |
| 12281 | |
| 12282 | |
| 12283 | as_lineno_1=$LINENO |
| 12284 | as_lineno_2=$LINENO |
| 12285 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 12286 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 12287 | |
| 12288 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 12289 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 12290 | # line-number line after each line using $LINENO; the second 'sed' |
| 12291 | # does the real work. The second script uses 'N' to pair each |
| 12292 | # line-number line with the line containing $LINENO, and appends |
| 12293 | # trailing '-' during substitution so that $LINENO is not a special |
| 12294 | # case at line end. |
| 12295 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 12296 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 12297 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 12298 | sed -n ' |
| 12299 | p |
| 12300 | /[$]LINENO/= |
| 12301 | ' <$as_myself | |
| 12302 | sed ' |
| 12303 | s/[$]LINENO.*/&-/ |
| 12304 | t lineno |
| 12305 | b |
| 12306 | :lineno |
| 12307 | N |
| 12308 | :loop |
| 12309 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 12310 | t loop |
| 12311 | s/-\n.*// |
| 12312 | ' >$as_me.lineno && |
| 12313 | chmod +x "$as_me.lineno" || |
| 12314 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 12315 | { (exit 1); exit 1; }; } |
| 12316 | |
| 12317 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 12318 | # (the dirname of $[0] is not the place where we might find the |
| 12319 | # original and so on. Autoconf is especially sensitive to this). |
| 12320 | . "./$as_me.lineno" |
| 12321 | # Exit status is that of the last command. |
| 12322 | exit |
| 12323 | } |
| 12324 | |
| 12325 | |
| 12326 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 12327 | as_dirname=dirname |
| 12328 | else |
| 12329 | as_dirname=false |
| 12330 | fi |
| 12331 | |
| 12332 | ECHO_C= ECHO_N= ECHO_T= |
| 12333 | case `echo -n x` in |
| 12334 | -n*) |
| 12335 | case `echo 'x\c'` in |
| 12336 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 12337 | *) ECHO_C='\c';; |
| 12338 | esac;; |
| 12339 | *) |
| 12340 | ECHO_N='-n';; |
| 12341 | esac |
| 12342 | |
| 12343 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 12344 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 12345 | as_expr=expr |
| 12346 | else |
| 12347 | as_expr=false |
| 12348 | fi |
| 12349 | |
| 12350 | rm -f conf$$ conf$$.exe conf$$.file |
| 12351 | if test -d conf$$.dir; then |
| 12352 | rm -f conf$$.dir/conf$$.file |
| 12353 | else |
| 12354 | rm -f conf$$.dir |
| 12355 | mkdir conf$$.dir |
| 12356 | fi |
| 12357 | echo >conf$$.file |
| 12358 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 12359 | as_ln_s='ln -s' |
| 12360 | # ... but there are two gotchas: |
| 12361 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 12362 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 12363 | # In both cases, we have to default to `cp -p'. |
| 12364 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 12365 | as_ln_s='cp -p' |
| 12366 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 12367 | as_ln_s=ln |
| 12368 | else |
| 12369 | as_ln_s='cp -p' |
| 12370 | fi |
| 12371 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 12372 | rmdir conf$$.dir 2>/dev/null |
| 12373 | |
| 12374 | if mkdir -p . 2>/dev/null; then |
| 12375 | as_mkdir_p=: |
| 12376 | else |
| 12377 | test -d ./-p && rmdir ./-p |
| 12378 | as_mkdir_p=false |
| 12379 | fi |
| 12380 | |
| 12381 | if test -x / >/dev/null 2>&1; then |
| 12382 | as_test_x='test -x' |
| 12383 | else |
| 12384 | if ls -dL / >/dev/null 2>&1; then |
| 12385 | as_ls_L_option=L |
| 12386 | else |
| 12387 | as_ls_L_option= |
| 12388 | fi |
| 12389 | as_test_x=' |
| 12390 | eval sh -c '\'' |
| 12391 | if test -d "$1"; then |
| 12392 | test -d "$1/."; |
| 12393 | else |
| 12394 | case $1 in |
| 12395 | -*)set "./$1";; |
| 12396 | esac; |
| 12397 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 12398 | ???[sx]*):;;*)false;;esac;fi |
| 12399 | '\'' sh |
| 12400 | ' |
| 12401 | fi |
| 12402 | as_executable_p=$as_test_x |
| 12403 | |
| 12404 | # Sed expression to map a string onto a valid CPP name. |
| 12405 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 12406 | |
| 12407 | # Sed expression to map a string onto a valid variable name. |
| 12408 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 12409 | |
| 12410 | |
| 12411 | exec 6>&1 |
| 12412 | |
| 12413 | # Save the log message, to keep $[0] and so on meaningful, and to |
| 12414 | # report actual input values of CONFIG_FILES etc. instead of their |
| 12415 | # values after options handling. |
| 12416 | ac_log=" |
| 12417 | This file was extended by $as_me, which was |
| 12418 | generated by GNU Autoconf 2.61. Invocation command line was |
| 12419 | |
| 12420 | CONFIG_FILES = $CONFIG_FILES |
| 12421 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 12422 | CONFIG_LINKS = $CONFIG_LINKS |
| 12423 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 12424 | $ $0 $@ |
| 12425 | |
| 12426 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 12427 | " |
| 12428 | |
| 12429 | _ACEOF |
| 12430 | |
| 12431 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12432 | # Files that config.status was made for. |
| 12433 | config_files="$ac_config_files" |
| 12434 | config_commands="$ac_config_commands" |
| 12435 | |
| 12436 | _ACEOF |
| 12437 | |
| 12438 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12439 | ac_cs_usage="\ |
| 12440 | \`$as_me' instantiates files from templates according to the |
| 12441 | current configuration. |
| 12442 | |
| 12443 | Usage: $0 [OPTIONS] [FILE]... |
| 12444 | |
| 12445 | -h, --help print this help, then exit |
| 12446 | -V, --version print version number and configuration settings, then exit |
| 12447 | -q, --quiet do not print progress messages |
| 12448 | -d, --debug don't remove temporary files |
| 12449 | --recheck update $as_me by reconfiguring in the same conditions |
| 12450 | --file=FILE[:TEMPLATE] |
| 12451 | instantiate the configuration file FILE |
| 12452 | |
| 12453 | Configuration files: |
| 12454 | $config_files |
| 12455 | |
| 12456 | Configuration commands: |
| 12457 | $config_commands |
| 12458 | |
| 12459 | Report bugs to <bug-autoconf@gnu.org>." |
| 12460 | |
| 12461 | _ACEOF |
| 12462 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12463 | ac_cs_version="\\ |
| 12464 | config.status |
| 12465 | configured by $0, generated by GNU Autoconf 2.61, |
| 12466 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
| 12467 | |
| 12468 | Copyright (C) 2006 Free Software Foundation, Inc. |
| 12469 | This config.status script is free software; the Free Software Foundation |
| 12470 | gives unlimited permission to copy, distribute and modify it." |
| 12471 | |
| 12472 | ac_pwd='$ac_pwd' |
| 12473 | srcdir='$srcdir' |
| 12474 | INSTALL='$INSTALL' |
| 12475 | _ACEOF |
| 12476 | |
| 12477 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12478 | # If no file are specified by the user, then we need to provide default |
| 12479 | # value. By we need to know if files were specified by the user. |
| 12480 | ac_need_defaults=: |
| 12481 | while test $# != 0 |
| 12482 | do |
| 12483 | case $1 in |
| 12484 | --*=*) |
| 12485 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12486 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 12487 | ac_shift=: |
| 12488 | ;; |
| 12489 | *) |
| 12490 | ac_option=$1 |
| 12491 | ac_optarg=$2 |
| 12492 | ac_shift=shift |
| 12493 | ;; |
| 12494 | esac |
| 12495 | |
| 12496 | case $ac_option in |
| 12497 | # Handling of the options. |
| 12498 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 12499 | ac_cs_recheck=: ;; |
| 12500 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 12501 | echo "$ac_cs_version"; exit ;; |
| 12502 | --debug | --debu | --deb | --de | --d | -d ) |
| 12503 | debug=: ;; |
| 12504 | --file | --fil | --fi | --f ) |
| 12505 | $ac_shift |
| 12506 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 12507 | ac_need_defaults=false;; |
| 12508 | --he | --h | --help | --hel | -h ) |
| 12509 | echo "$ac_cs_usage"; exit ;; |
| 12510 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12511 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12512 | ac_cs_silent=: ;; |
| 12513 | |
| 12514 | # This is an error. |
| 12515 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 12516 | Try \`$0 --help' for more information." >&2 |
| 12517 | { (exit 1); exit 1; }; } ;; |
| 12518 | |
| 12519 | *) ac_config_targets="$ac_config_targets $1" |
| 12520 | ac_need_defaults=false ;; |
| 12521 | |
| 12522 | esac |
| 12523 | shift |
| 12524 | done |
| 12525 | |
| 12526 | ac_configure_extra_args= |
| 12527 | |
| 12528 | if $ac_cs_silent; then |
| 12529 | exec 6>/dev/null |
| 12530 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12531 | fi |
| 12532 | |
| 12533 | _ACEOF |
| 12534 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12535 | if \$ac_cs_recheck; then |
| 12536 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 12537 | CONFIG_SHELL=$SHELL |
| 12538 | export CONFIG_SHELL |
| 12539 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 12540 | fi |
| 12541 | |
| 12542 | _ACEOF |
| 12543 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12544 | exec 5>>config.log |
| 12545 | { |
| 12546 | echo |
| 12547 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12548 | ## Running $as_me. ## |
| 12549 | _ASBOX |
| 12550 | echo "$ac_log" |
| 12551 | } >&5 |
| 12552 | |
| 12553 | _ACEOF |
| 12554 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12555 | # |
| 12556 | # INIT-COMMANDS |
| 12557 | # |
| 12558 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 12559 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
| 12560 | # from automake. |
| 12561 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
| 12562 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 12563 | LINGUAS="${LINGUAS-%UNSET%}" |
| 12564 | |
| 12565 | |
| 12566 | _ACEOF |
| 12567 | |
| 12568 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12569 | |
| 12570 | # Handling of arguments. |
| 12571 | for ac_config_target in $ac_config_targets |
| 12572 | do |
| 12573 | case $ac_config_target in |
| 12574 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 12575 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:common.mk:Makefile.in:$BOILERPLATE" ;; |
| 12576 | "tx/Makefile") CONFIG_FILES="$CONFIG_FILES tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE" ;; |
| 12577 | "x0vncserver/Makefile") CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE" ;; |
| 12578 | "vncviewer/Makefile") CONFIG_FILES="$CONFIG_FILES vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE" ;; |
| 12579 | "vncconfig/Makefile") CONFIG_FILES="$CONFIG_FILES vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE" ;; |
| 12580 | "vncpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE" ;; |
| 12581 | "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; |
| 12582 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
| 12583 | |
| 12584 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 12585 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 12586 | { (exit 1); exit 1; }; };; |
| 12587 | esac |
| 12588 | done |
| 12589 | |
| 12590 | |
| 12591 | # If the user did not use the arguments to specify the items to instantiate, |
| 12592 | # then the envvar interface is used. Set only those that are not. |
| 12593 | # We use the long form for the default assignment because of an extremely |
| 12594 | # bizarre bug on SunOS 4.1.3. |
| 12595 | if $ac_need_defaults; then |
| 12596 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 12597 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 12598 | fi |
| 12599 | |
| 12600 | # Have a temporary directory for convenience. Make it in the build tree |
| 12601 | # simply because there is no reason against having it here, and in addition, |
| 12602 | # creating and moving files from /tmp can sometimes cause problems. |
| 12603 | # Hook for its removal unless debugging. |
| 12604 | # Note that there is a small window in which the directory will not be cleaned: |
| 12605 | # after its creation but before its name has been assigned to `$tmp'. |
| 12606 | $debug || |
| 12607 | { |
| 12608 | tmp= |
| 12609 | trap 'exit_status=$? |
| 12610 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 12611 | ' 0 |
| 12612 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 12613 | } |
| 12614 | # Create a (secure) tmp directory for tmp files. |
| 12615 | |
| 12616 | { |
| 12617 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 12618 | test -n "$tmp" && test -d "$tmp" |
| 12619 | } || |
| 12620 | { |
| 12621 | tmp=./conf$$-$RANDOM |
| 12622 | (umask 077 && mkdir "$tmp") |
| 12623 | } || |
| 12624 | { |
| 12625 | echo "$me: cannot create a temporary directory in ." >&2 |
| 12626 | { (exit 1); exit 1; } |
| 12627 | } |
| 12628 | |
| 12629 | # |
| 12630 | # Set up the sed scripts for CONFIG_FILES section. |
| 12631 | # |
| 12632 | |
| 12633 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 12634 | # This happens for instance when ./config.status config.h |
| 12635 | if test -n "$CONFIG_FILES"; then |
| 12636 | |
| 12637 | _ACEOF |
| 12638 | |
| 12639 | |
| 12640 | |
| 12641 | ac_delim='%!_!# ' |
| 12642 | for ac_last_try in false false false false false :; do |
| 12643 | cat >conf$$subs.sed <<_ACEOF |
| 12644 | SHELL!$SHELL$ac_delim |
| 12645 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 12646 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 12647 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 12648 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 12649 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 12650 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 12651 | exec_prefix!$exec_prefix$ac_delim |
| 12652 | prefix!$prefix$ac_delim |
| 12653 | program_transform_name!$program_transform_name$ac_delim |
| 12654 | bindir!$bindir$ac_delim |
| 12655 | sbindir!$sbindir$ac_delim |
| 12656 | libexecdir!$libexecdir$ac_delim |
| 12657 | datarootdir!$datarootdir$ac_delim |
| 12658 | datadir!$datadir$ac_delim |
| 12659 | sysconfdir!$sysconfdir$ac_delim |
| 12660 | sharedstatedir!$sharedstatedir$ac_delim |
| 12661 | localstatedir!$localstatedir$ac_delim |
| 12662 | includedir!$includedir$ac_delim |
| 12663 | oldincludedir!$oldincludedir$ac_delim |
| 12664 | docdir!$docdir$ac_delim |
| 12665 | infodir!$infodir$ac_delim |
| 12666 | htmldir!$htmldir$ac_delim |
| 12667 | dvidir!$dvidir$ac_delim |
| 12668 | pdfdir!$pdfdir$ac_delim |
| 12669 | psdir!$psdir$ac_delim |
| 12670 | libdir!$libdir$ac_delim |
| 12671 | localedir!$localedir$ac_delim |
| 12672 | mandir!$mandir$ac_delim |
| 12673 | DEFS!$DEFS$ac_delim |
| 12674 | ECHO_C!$ECHO_C$ac_delim |
| 12675 | ECHO_N!$ECHO_N$ac_delim |
| 12676 | ECHO_T!$ECHO_T$ac_delim |
| 12677 | LIBS!$LIBS$ac_delim |
| 12678 | build_alias!$build_alias$ac_delim |
| 12679 | host_alias!$host_alias$ac_delim |
| 12680 | target_alias!$target_alias$ac_delim |
| 12681 | PACKAGE!$PACKAGE$ac_delim |
| 12682 | VERSION!$VERSION$ac_delim |
| 12683 | CC!$CC$ac_delim |
| 12684 | CFLAGS!$CFLAGS$ac_delim |
| 12685 | LDFLAGS!$LDFLAGS$ac_delim |
| 12686 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 12687 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 12688 | EXEEXT!$EXEEXT$ac_delim |
| 12689 | OBJEXT!$OBJEXT$ac_delim |
| 12690 | CXX!$CXX$ac_delim |
| 12691 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 12692 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 12693 | RANLIB!$RANLIB$ac_delim |
| 12694 | SET_MAKE!$SET_MAKE$ac_delim |
| 12695 | MITSHM_DEFINE!$MITSHM_DEFINE$ac_delim |
| 12696 | CL_LIB!$CL_LIB$ac_delim |
| 12697 | DMEDIA_LIB!$DMEDIA_LIB$ac_delim |
| 12698 | XMKMF!$XMKMF$ac_delim |
| 12699 | CXXCPP!$CXXCPP$ac_delim |
| 12700 | X_CFLAGS!$X_CFLAGS$ac_delim |
| 12701 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
| 12702 | X_LIBS!$X_LIBS$ac_delim |
| 12703 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
| 12704 | ZLIB_DIR!$ZLIB_DIR$ac_delim |
| 12705 | ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim |
| 12706 | ZLIB_LIB!$ZLIB_LIB$ac_delim |
| 12707 | JPEG_DIR!$JPEG_DIR$ac_delim |
| 12708 | JPEG_INCLUDE!$JPEG_INCLUDE$ac_delim |
| 12709 | JPEG_LIB!$JPEG_LIB$ac_delim |
| 12710 | VNCCONFIG_DIR!$VNCCONFIG_DIR$ac_delim |
| 12711 | XTEST_DEFINE!$XTEST_DEFINE$ac_delim |
| 12712 | XTEST_LIB!$XTEST_LIB$ac_delim |
| 12713 | READDISPLAY_DEFINE!$READDISPLAY_DEFINE$ac_delim |
| 12714 | INET_LIB!$INET_LIB$ac_delim |
| 12715 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 12716 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 12717 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 12718 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
| 12719 | USE_NLS!$USE_NLS$ac_delim |
| 12720 | MSGFMT!$MSGFMT$ac_delim |
| 12721 | GMSGFMT!$GMSGFMT$ac_delim |
| 12722 | XGETTEXT!$XGETTEXT$ac_delim |
| 12723 | MSGMERGE!$MSGMERGE$ac_delim |
| 12724 | build!$build$ac_delim |
| 12725 | build_cpu!$build_cpu$ac_delim |
| 12726 | build_vendor!$build_vendor$ac_delim |
| 12727 | build_os!$build_os$ac_delim |
| 12728 | host!$host$ac_delim |
| 12729 | host_cpu!$host_cpu$ac_delim |
| 12730 | host_vendor!$host_vendor$ac_delim |
| 12731 | host_os!$host_os$ac_delim |
| 12732 | GREP!$GREP$ac_delim |
| 12733 | EGREP!$EGREP$ac_delim |
| 12734 | ALLOCA!$ALLOCA$ac_delim |
| 12735 | GLIBC21!$GLIBC21$ac_delim |
| 12736 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim |
| 12737 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim |
| 12738 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim |
| 12739 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim |
| 12740 | LIBICONV!$LIBICONV$ac_delim |
| 12741 | _ACEOF |
| 12742 | |
| 12743 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 12744 | break |
| 12745 | elif $ac_last_try; then |
| 12746 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 12747 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 12748 | { (exit 1); exit 1; }; } |
| 12749 | else |
| 12750 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12751 | fi |
| 12752 | done |
| 12753 | |
| 12754 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 12755 | if test -n "$ac_eof"; then |
| 12756 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 12757 | ac_eof=`expr $ac_eof + 1` |
| 12758 | fi |
| 12759 | |
| 12760 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12761 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 12762 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 12763 | _ACEOF |
| 12764 | sed ' |
| 12765 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 12766 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 12767 | :n |
| 12768 | t n |
| 12769 | s/'"$ac_delim"'$/,g/; t |
| 12770 | s/$/\\/; p |
| 12771 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 12772 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 12773 | rm -f conf$$subs.sed |
| 12774 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12775 | CEOF$ac_eof |
| 12776 | _ACEOF |
| 12777 | |
| 12778 | |
| 12779 | ac_delim='%!_!# ' |
| 12780 | for ac_last_try in false false false false false :; do |
| 12781 | cat >conf$$subs.sed <<_ACEOF |
| 12782 | LTLIBICONV!$LTLIBICONV$ac_delim |
| 12783 | INTLBISON!$INTLBISON$ac_delim |
| 12784 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim |
| 12785 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim |
| 12786 | CATOBJEXT!$CATOBJEXT$ac_delim |
| 12787 | DATADIRNAME!$DATADIRNAME$ac_delim |
| 12788 | INSTOBJEXT!$INSTOBJEXT$ac_delim |
| 12789 | GENCAT!$GENCAT$ac_delim |
| 12790 | INTLOBJS!$INTLOBJS$ac_delim |
| 12791 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim |
| 12792 | INTLLIBS!$INTLLIBS$ac_delim |
| 12793 | LIBINTL!$LIBINTL$ac_delim |
| 12794 | LTLIBINTL!$LTLIBINTL$ac_delim |
| 12795 | POSUB!$POSUB$ac_delim |
| 12796 | LIBOBJS!$LIBOBJS$ac_delim |
| 12797 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 12798 | _ACEOF |
| 12799 | |
| 12800 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then |
| 12801 | break |
| 12802 | elif $ac_last_try; then |
| 12803 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 12804 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 12805 | { (exit 1); exit 1; }; } |
| 12806 | else |
| 12807 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12808 | fi |
| 12809 | done |
| 12810 | |
| 12811 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 12812 | if test -n "$ac_eof"; then |
| 12813 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 12814 | ac_eof=`expr $ac_eof + 1` |
| 12815 | fi |
| 12816 | |
| 12817 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12818 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 12819 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 12820 | _ACEOF |
| 12821 | sed ' |
| 12822 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 12823 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 12824 | :n |
| 12825 | t n |
| 12826 | s/'"$ac_delim"'$/,g/; t |
| 12827 | s/$/\\/; p |
| 12828 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 12829 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 12830 | rm -f conf$$subs.sed |
| 12831 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12832 | :end |
| 12833 | s/|#_!!_#|//g |
| 12834 | CEOF$ac_eof |
| 12835 | _ACEOF |
| 12836 | |
| 12837 | |
| 12838 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 12839 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 12840 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12841 | # (actually we leave an empty line to preserve line numbers). |
| 12842 | if test "x$srcdir" = x.; then |
| 12843 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 12844 | s/:*\$(srcdir):*/:/ |
| 12845 | s/:*\${srcdir}:*/:/ |
| 12846 | s/:*@srcdir@:*/:/ |
| 12847 | s/^\([^=]*=[ ]*\):*/\1/ |
| 12848 | s/:*$// |
| 12849 | s/^[^=]*=[ ]*$// |
| 12850 | }' |
| 12851 | fi |
| 12852 | |
| 12853 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12854 | fi # test -n "$CONFIG_FILES" |
| 12855 | |
| 12856 | |
| 12857 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 12858 | do |
| 12859 | case $ac_tag in |
| 12860 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12861 | esac |
| 12862 | case $ac_mode$ac_tag in |
| 12863 | :[FHL]*:*);; |
| 12864 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 12865 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 12866 | { (exit 1); exit 1; }; };; |
| 12867 | :[FH]-) ac_tag=-:-;; |
| 12868 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12869 | esac |
| 12870 | ac_save_IFS=$IFS |
| 12871 | IFS=: |
| 12872 | set x $ac_tag |
| 12873 | IFS=$ac_save_IFS |
| 12874 | shift |
| 12875 | ac_file=$1 |
| 12876 | shift |
| 12877 | |
| 12878 | case $ac_mode in |
| 12879 | :L) ac_source=$1;; |
| 12880 | :[FH]) |
| 12881 | ac_file_inputs= |
| 12882 | for ac_f |
| 12883 | do |
| 12884 | case $ac_f in |
| 12885 | -) ac_f="$tmp/stdin";; |
| 12886 | *) # Look for the file first in the build tree, then in the source tree |
| 12887 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12888 | # because $ac_f cannot contain `:'. |
| 12889 | test -f "$ac_f" || |
| 12890 | case $ac_f in |
| 12891 | [\\/$]*) false;; |
| 12892 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12893 | esac || |
| 12894 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 12895 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 12896 | { (exit 1); exit 1; }; };; |
| 12897 | esac |
| 12898 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 12899 | done |
| 12900 | |
| 12901 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12902 | # use $as_me), people would be surprised to read: |
| 12903 | # /* config.h. Generated by config.status. */ |
| 12904 | configure_input="Generated from "`IFS=: |
| 12905 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 12906 | if test x"$ac_file" != x-; then |
| 12907 | configure_input="$ac_file. $configure_input" |
| 12908 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 12909 | echo "$as_me: creating $ac_file" >&6;} |
| 12910 | fi |
| 12911 | |
| 12912 | case $ac_tag in |
| 12913 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 12914 | esac |
| 12915 | ;; |
| 12916 | esac |
| 12917 | |
| 12918 | ac_dir=`$as_dirname -- "$ac_file" || |
| 12919 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12920 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12921 | X"$ac_file" : 'X\(//\)$' \| \ |
| 12922 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 12923 | echo X"$ac_file" | |
| 12924 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12925 | s//\1/ |
| 12926 | q |
| 12927 | } |
| 12928 | /^X\(\/\/\)[^/].*/{ |
| 12929 | s//\1/ |
| 12930 | q |
| 12931 | } |
| 12932 | /^X\(\/\/\)$/{ |
| 12933 | s//\1/ |
| 12934 | q |
| 12935 | } |
| 12936 | /^X\(\/\).*/{ |
| 12937 | s//\1/ |
| 12938 | q |
| 12939 | } |
| 12940 | s/.*/./; q'` |
| 12941 | { as_dir="$ac_dir" |
| 12942 | case $as_dir in #( |
| 12943 | -*) as_dir=./$as_dir;; |
| 12944 | esac |
| 12945 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 12946 | as_dirs= |
| 12947 | while :; do |
| 12948 | case $as_dir in #( |
| 12949 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 12950 | *) as_qdir=$as_dir;; |
| 12951 | esac |
| 12952 | as_dirs="'$as_qdir' $as_dirs" |
| 12953 | as_dir=`$as_dirname -- "$as_dir" || |
| 12954 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12955 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12956 | X"$as_dir" : 'X\(//\)$' \| \ |
| 12957 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 12958 | echo X"$as_dir" | |
| 12959 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12960 | s//\1/ |
| 12961 | q |
| 12962 | } |
| 12963 | /^X\(\/\/\)[^/].*/{ |
| 12964 | s//\1/ |
| 12965 | q |
| 12966 | } |
| 12967 | /^X\(\/\/\)$/{ |
| 12968 | s//\1/ |
| 12969 | q |
| 12970 | } |
| 12971 | /^X\(\/\).*/{ |
| 12972 | s//\1/ |
| 12973 | q |
| 12974 | } |
| 12975 | s/.*/./; q'` |
| 12976 | test -d "$as_dir" && break |
| 12977 | done |
| 12978 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 12979 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 12980 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 12981 | { (exit 1); exit 1; }; }; } |
| 12982 | ac_builddir=. |
| 12983 | |
| 12984 | case "$ac_dir" in |
| 12985 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12986 | *) |
| 12987 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 12988 | # A ".." for each directory in $ac_dir_suffix. |
| 12989 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 12990 | case $ac_top_builddir_sub in |
| 12991 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12992 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12993 | esac ;; |
| 12994 | esac |
| 12995 | ac_abs_top_builddir=$ac_pwd |
| 12996 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12997 | # for backward compatibility: |
| 12998 | ac_top_builddir=$ac_top_build_prefix |
| 12999 | |
| 13000 | case $srcdir in |
| 13001 | .) # We are building in place. |
| 13002 | ac_srcdir=. |
| 13003 | ac_top_srcdir=$ac_top_builddir_sub |
| 13004 | ac_abs_top_srcdir=$ac_pwd ;; |
| 13005 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 13006 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 13007 | ac_top_srcdir=$srcdir |
| 13008 | ac_abs_top_srcdir=$srcdir ;; |
| 13009 | *) # Relative name. |
| 13010 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 13011 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 13012 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 13013 | esac |
| 13014 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 13015 | |
| 13016 | |
| 13017 | case $ac_mode in |
| 13018 | :F) |
| 13019 | # |
| 13020 | # CONFIG_FILE |
| 13021 | # |
| 13022 | |
| 13023 | case $INSTALL in |
| 13024 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 13025 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 13026 | esac |
| 13027 | _ACEOF |
| 13028 | |
| 13029 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13030 | # If the template does not know about datarootdir, expand it. |
| 13031 | # FIXME: This hack should be removed a few years after 2.60. |
| 13032 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 13033 | |
| 13034 | case `sed -n '/datarootdir/ { |
| 13035 | p |
| 13036 | q |
| 13037 | } |
| 13038 | /@datadir@/p |
| 13039 | /@docdir@/p |
| 13040 | /@infodir@/p |
| 13041 | /@localedir@/p |
| 13042 | /@mandir@/p |
| 13043 | ' $ac_file_inputs` in |
| 13044 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 13045 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 13046 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 13047 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 13048 | _ACEOF |
| 13049 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13050 | ac_datarootdir_hack=' |
| 13051 | s&@datadir@&$datadir&g |
| 13052 | s&@docdir@&$docdir&g |
| 13053 | s&@infodir@&$infodir&g |
| 13054 | s&@localedir@&$localedir&g |
| 13055 | s&@mandir@&$mandir&g |
| 13056 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 13057 | esac |
| 13058 | _ACEOF |
| 13059 | |
| 13060 | # Neutralize VPATH when `$srcdir' = `.'. |
| 13061 | # Shell code in configure.ac might set extrasub. |
| 13062 | # FIXME: do we really want to maintain this feature? |
| 13063 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13064 | sed "$ac_vpsub |
| 13065 | $extrasub |
| 13066 | _ACEOF |
| 13067 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13068 | :t |
| 13069 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 13070 | s&@configure_input@&$configure_input&;t t |
| 13071 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 13072 | s&@srcdir@&$ac_srcdir&;t t |
| 13073 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 13074 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 13075 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 13076 | s&@builddir@&$ac_builddir&;t t |
| 13077 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 13078 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 13079 | s&@INSTALL@&$ac_INSTALL&;t t |
| 13080 | $ac_datarootdir_hack |
| 13081 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
| 13082 | |
| 13083 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 13084 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 13085 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 13086 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 13087 | which seems to be undefined. Please make sure it is defined." >&5 |
| 13088 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 13089 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 13090 | |
| 13091 | rm -f "$tmp/stdin" |
| 13092 | case $ac_file in |
| 13093 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 13094 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 13095 | esac |
| 13096 | ;; |
| 13097 | |
| 13098 | |
| 13099 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 13100 | echo "$as_me: executing $ac_file commands" >&6;} |
| 13101 | ;; |
| 13102 | esac |
| 13103 | |
| 13104 | |
| 13105 | case $ac_file$ac_mode in |
| 13106 | "default-1":C) |
| 13107 | for ac_file in $CONFIG_FILES; do |
| 13108 | # Support "outfile[:infile[:infile...]]" |
| 13109 | case "$ac_file" in |
| 13110 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 13111 | esac |
| 13112 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 13113 | case "$ac_file" in */Makefile.in) |
| 13114 | # Adjust a relative srcdir. |
| 13115 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 13116 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 13117 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 13118 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 13119 | # In autoconf-2.50 it is called $srcdir. |
| 13120 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 13121 | case "$ac_given_srcdir" in |
| 13122 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 13123 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 13124 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 13125 | esac |
| 13126 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 13127 | rm -f "$ac_dir/POTFILES" |
| 13128 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 13129 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 13130 | POMAKEFILEDEPS="POTFILES.in" |
| 13131 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
| 13132 | # on $ac_dir but don't depend on user-specified configuration |
| 13133 | # parameters. |
| 13134 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 13135 | # The LINGUAS file contains the set of available languages. |
| 13136 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
| 13137 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 13138 | fi |
| 13139 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 13140 | # Hide the ALL_LINGUAS assigment from automake. |
| 13141 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 13142 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 13143 | else |
| 13144 | # The set of available languages was given in configure.in. |
| 13145 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
| 13146 | fi |
| 13147 | # Compute POFILES |
| 13148 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 13149 | # Compute UPDATEPOFILES |
| 13150 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 13151 | # Compute DUMMYPOFILES |
| 13152 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 13153 | # Compute GMOFILES |
| 13154 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
| 13155 | case "$ac_given_srcdir" in |
| 13156 | .) srcdirpre= ;; |
| 13157 | *) srcdirpre='$(srcdir)/' ;; |
| 13158 | esac |
| 13159 | POFILES= |
| 13160 | UPDATEPOFILES= |
| 13161 | DUMMYPOFILES= |
| 13162 | GMOFILES= |
| 13163 | for lang in $ALL_LINGUAS; do |
| 13164 | POFILES="$POFILES $srcdirpre$lang.po" |
| 13165 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 13166 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 13167 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 13168 | done |
| 13169 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 13170 | # environment variable. |
| 13171 | INST_LINGUAS= |
| 13172 | if test -n "$ALL_LINGUAS"; then |
| 13173 | for presentlang in $ALL_LINGUAS; do |
| 13174 | useit=no |
| 13175 | if test "%UNSET%" != "$LINGUAS"; then |
| 13176 | desiredlanguages="$LINGUAS" |
| 13177 | else |
| 13178 | desiredlanguages="$ALL_LINGUAS" |
| 13179 | fi |
| 13180 | for desiredlang in $desiredlanguages; do |
| 13181 | # Use the presentlang catalog if desiredlang is |
| 13182 | # a. equal to presentlang, or |
| 13183 | # b. a variant of presentlang (because in this case, |
| 13184 | # presentlang can be used as a fallback for messages |
| 13185 | # which are not translated in the desiredlang catalog). |
| 13186 | case "$desiredlang" in |
| 13187 | "$presentlang"*) useit=yes;; |
| 13188 | esac |
| 13189 | done |
| 13190 | if test $useit = yes; then |
| 13191 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 13192 | fi |
| 13193 | done |
| 13194 | fi |
| 13195 | CATALOGS= |
| 13196 | if test -n "$INST_LINGUAS"; then |
| 13197 | for lang in $INST_LINGUAS; do |
| 13198 | CATALOGS="$CATALOGS $lang.gmo" |
| 13199 | done |
| 13200 | fi |
| 13201 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 13202 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 13203 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 13204 | if test -f "$f"; then |
| 13205 | case "$f" in |
| 13206 | *.orig | *.bak | *~) ;; |
| 13207 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 13208 | esac |
| 13209 | fi |
| 13210 | done |
| 13211 | fi |
| 13212 | ;; |
| 13213 | esac |
| 13214 | done ;; |
| 13215 | |
| 13216 | esac |
| 13217 | done # for ac_tag |
| 13218 | |
| 13219 | |
| 13220 | { (exit 0); exit 0; } |
| 13221 | _ACEOF |
| 13222 | chmod +x $CONFIG_STATUS |
| 13223 | ac_clean_files=$ac_clean_files_save |
| 13224 | |
| 13225 | |
| 13226 | # configure is writing to config.log, and then calls config.status. |
| 13227 | # config.status does its own redirection, appending to config.log. |
| 13228 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 13229 | # by configure, so config.status won't be able to write to it; its |
| 13230 | # output is simply discarded. So we exec the FD to /dev/null, |
| 13231 | # effectively closing config.log, so it can be properly (re)opened and |
| 13232 | # appended to by config.status. When coming back to configure, we |
| 13233 | # need to make the FD available again. |
| 13234 | if test "$no_create" != yes; then |
| 13235 | ac_cs_success=: |
| 13236 | ac_config_status_args= |
| 13237 | test "$silent" = yes && |
| 13238 | ac_config_status_args="$ac_config_status_args --quiet" |
| 13239 | exec 5>/dev/null |
| 13240 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 13241 | exec 5>>config.log |
| 13242 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 13243 | # would make configure fail if this is the last instruction. |
| 13244 | $ac_cs_success || { (exit 1); exit 1; } |
| 13245 | fi |
| 13246 | |