1 #! /bin/sh 2 # From configure.in Id: configure.in,v 1.142 2006/04/01 06:36:40 psmith Exp . 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.65 for GNU make 3.81. 5 # 6 # Report bugs to <bug-make (at] gnu.org>. 7 # 8 # 9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 11 # Inc. 12 # 13 # 14 # This configure script is free software; the Free Software Foundation 15 # gives unlimited permission to copy, distribute and modify it. 16 ## -------------------- ## 17 ## M4sh Initialization. ## 18 ## -------------------- ## 19 20 # Be more Bourne compatible 21 DUALCASE=1; export DUALCASE # for MKS sh 22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 37 38 39 as_nl=' 40 ' 41 export as_nl 42 # Printing a long string crashes Solaris 7 /usr/bin/printf. 43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 46 # Prefer a ksh shell builtin over an external printf program on Solaris, 47 # but without wasting forks for bash or zsh. 48 if test -z "$BASH_VERSION$ZSH_VERSION" \ 49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='print -r --' 51 as_echo_n='print -rn --' 52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='printf %s\n' 54 as_echo_n='printf %s' 55 else 56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 58 as_echo_n='/usr/ucb/echo -n' 59 else 60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 61 as_echo_n_body='eval 62 arg=$1; 63 case $arg in #( 64 *"$as_nl"*) 65 expr "X$arg" : "X\\(.*\\)$as_nl"; 66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 67 esac; 68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 69 ' 70 export as_echo_n_body 71 as_echo_n='sh -c $as_echo_n_body as_echo' 72 fi 73 export as_echo_body 74 as_echo='sh -c $as_echo_body as_echo' 75 fi 76 77 # The user is always right. 78 if test "${PATH_SEPARATOR+set}" != set; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # IFS 88 # We need space, tab and new line, in precisely that order. Quoting is 89 # there to prevent editors from complaining about space-tab. 90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 91 # splitting by setting IFS to empty value.) 92 IFS=" "" $as_nl" 93 94 # Find who we are. Look in the path if we contain no directory separator. 95 case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98 for as_dir in $PATH 99 do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104 IFS=$as_save_IFS 105 106 ;; 107 esac 108 # We did not find ourselves, most probably we were run as `sh COMMAND' 109 # in which case we are not to be found in the path. 110 if test "x$as_myself" = x; then 111 as_myself=$0 112 fi 113 if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116 fi 117 118 # Unset variables that we do not need and which cause bugs (e.g. in 119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120 # suppresses any "Segmentation fault" message there. '((' could 121 # trigger a bug in pdksh 5.2.14. 122 for as_var in BASH_ENV ENV MAIL MAILPATH 123 do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125 done 126 PS1='$ ' 127 PS2='> ' 128 PS4='+ ' 129 130 # NLS nuisances. 131 LC_ALL=C 132 export LC_ALL 133 LANGUAGE=C 134 export LANGUAGE 135 136 # CDPATH. 137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139 if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147 else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153 esac 154 fi 155 " 156 as_required="as_fn_return () { (exit \$1); } 157 as_fn_success () { as_fn_return 0; } 158 as_fn_failure () { as_fn_return 1; } 159 as_fn_ret_success () { return 0; } 160 as_fn_ret_failure () { return 1; } 161 162 exitcode=0 163 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169 else 170 exitcode=1; echo positional parameters were not saved. 171 fi 172 test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180 else 181 as_have_required=no 182 fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185 else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187 as_found=false 188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189 do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203 fi 204 fi 205 done;; 206 esac 207 as_found=false 208 done 209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212 fi; } 213 IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 BASH_ENV=/dev/null 221 ENV=/dev/null 222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 223 export CONFIG_SHELL 224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 225 fi 226 227 if test x$as_have_required = xno; then : 228 $as_echo "$0: This script requires a shell more modern than all" 229 $as_echo "$0: the shells that I found on your system." 230 if test x${ZSH_VERSION+set} = xset ; then 231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 232 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 233 else 234 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and bug-make (at] gnu.org 235 $0: about your system, including any error possibly output 236 $0: before this message. Then install a modern shell, or 237 $0: manually run the script under such a shell if you do 238 $0: have one." 239 fi 240 exit 1 241 fi 242 fi 243 fi 244 SHELL=${CONFIG_SHELL-/bin/sh} 245 export SHELL 246 # Unset more variables known to interfere with behavior of common tools. 247 CLICOLOR_FORCE= GREP_OPTIONS= 248 unset CLICOLOR_FORCE GREP_OPTIONS 249 250 ## --------------------- ## 251 ## M4sh Shell Functions. ## 252 ## --------------------- ## 253 # as_fn_unset VAR 254 # --------------- 255 # Portably unset VAR. 256 as_fn_unset () 257 { 258 { eval $1=; unset $1;} 259 } 260 as_unset=as_fn_unset 261 262 # as_fn_set_status STATUS 263 # ----------------------- 264 # Set $? to STATUS, without forking. 265 as_fn_set_status () 266 { 267 return $1 268 } # as_fn_set_status 269 270 # as_fn_exit STATUS 271 # ----------------- 272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 273 as_fn_exit () 274 { 275 set +e 276 as_fn_set_status $1 277 exit $1 278 } # as_fn_exit 279 280 # as_fn_mkdir_p 281 # ------------- 282 # Create "$as_dir" as a directory, including parents if necessary. 283 as_fn_mkdir_p () 284 { 285 286 case $as_dir in #( 287 -*) as_dir=./$as_dir;; 288 esac 289 test -d "$as_dir" || eval $as_mkdir_p || { 290 as_dirs= 291 while :; do 292 case $as_dir in #( 293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 294 *) as_qdir=$as_dir;; 295 esac 296 as_dirs="'$as_qdir' $as_dirs" 297 as_dir=`$as_dirname -- "$as_dir" || 298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 299 X"$as_dir" : 'X\(//\)[^/]' \| \ 300 X"$as_dir" : 'X\(//\)$' \| \ 301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 302 $as_echo X"$as_dir" | 303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)[^/].*/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\).*/{ 316 s//\1/ 317 q 318 } 319 s/.*/./; q'` 320 test -d "$as_dir" && break 321 done 322 test -z "$as_dirs" || eval "mkdir $as_dirs" 323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 324 325 326 } # as_fn_mkdir_p 327 # as_fn_append VAR VALUE 328 # ---------------------- 329 # Append the text in VALUE to the end of the definition contained in VAR. Take 330 # advantage of any shell optimizations that allow amortized linear growth over 331 # repeated appends, instead of the typical quadratic growth present in naive 332 # implementations. 333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 334 eval 'as_fn_append () 335 { 336 eval $1+=\$2 337 }' 338 else 339 as_fn_append () 340 { 341 eval $1=\$$1\$2 342 } 343 fi # as_fn_append 344 345 # as_fn_arith ARG... 346 # ------------------ 347 # Perform arithmetic evaluation on the ARGs, and store the result in the 348 # global $as_val. Take advantage of shells that can avoid forks. The arguments 349 # must be portable across $(()) and expr. 350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 351 eval 'as_fn_arith () 352 { 353 as_val=$(( $* )) 354 }' 355 else 356 as_fn_arith () 357 { 358 as_val=`expr "$@" || test $? -eq 1` 359 } 360 fi # as_fn_arith 361 362 363 # as_fn_error ERROR [LINENO LOG_FD] 364 # --------------------------------- 365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 367 # script with status $?, using 1 if that was 0. 368 as_fn_error () 369 { 370 as_status=$?; test $as_status -eq 0 && as_status=1 371 if test "$3"; then 372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 374 fi 375 $as_echo "$as_me: error: $1" >&2 376 as_fn_exit $as_status 377 } # as_fn_error 378 379 if expr a : '\(a\)' >/dev/null 2>&1 && 380 test "X`expr 00001 : '.*\(...\)'`" = X001; then 381 as_expr=expr 382 else 383 as_expr=false 384 fi 385 386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 387 as_basename=basename 388 else 389 as_basename=false 390 fi 391 392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 393 as_dirname=dirname 394 else 395 as_dirname=false 396 fi 397 398 as_me=`$as_basename -- "$0" || 399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 400 X"$0" : 'X\(//\)$' \| \ 401 X"$0" : 'X\(/\)' \| . 2>/dev/null || 402 $as_echo X/"$0" | 403 sed '/^.*\/\([^/][^/]*\)\/*$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\/\)$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\).*/{ 412 s//\1/ 413 q 414 } 415 s/.*/./; q'` 416 417 # Avoid depending upon Character Ranges. 418 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 421 as_cr_digits='0123456789' 422 as_cr_alnum=$as_cr_Letters$as_cr_digits 423 424 425 as_lineno_1=$LINENO as_lineno_1a=$LINENO 426 as_lineno_2=$LINENO as_lineno_2a=$LINENO 427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430 sed -n ' 431 p 432 /[$]LINENO/= 433 ' <$as_myself | 434 sed ' 435 s/[$]LINENO.*/&-/ 436 t lineno 437 b 438 :lineno 439 N 440 :loop 441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442 t loop 443 s/-\n.*// 444 ' >$as_me.lineno && 445 chmod +x "$as_me.lineno" || 446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447 448 # Don't try to exec as it changes $[0], causing all sort of problems 449 # (the dirname of $[0] is not the place where we might find the 450 # original and so on. Autoconf is especially sensitive to this). 451 . "./$as_me.lineno" 452 # Exit status is that of the last command. 453 exit 454 } 455 456 ECHO_C= ECHO_N= ECHO_T= 457 case `echo -n x` in #((((( 458 -n*) 459 case `echo 'xy\c'` in 460 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 461 xy) ECHO_C='\c';; 462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 463 ECHO_T=' ';; 464 esac;; 465 *) 466 ECHO_N='-n';; 467 esac 468 469 rm -f conf$$ conf$$.exe conf$$.file 470 if test -d conf$$.dir; then 471 rm -f conf$$.dir/conf$$.file 472 else 473 rm -f conf$$.dir 474 mkdir conf$$.dir 2>/dev/null 475 fi 476 if (echo >conf$$.file) 2>/dev/null; then 477 if ln -s conf$$.file conf$$ 2>/dev/null; then 478 as_ln_s='ln -s' 479 # ... but there are two gotchas: 480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 482 # In both cases, we have to default to `cp -p'. 483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 484 as_ln_s='cp -p' 485 elif ln conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s=ln 487 else 488 as_ln_s='cp -p' 489 fi 490 else 491 as_ln_s='cp -p' 492 fi 493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 494 rmdir conf$$.dir 2>/dev/null 495 496 if mkdir -p . 2>/dev/null; then 497 as_mkdir_p='mkdir -p "$as_dir"' 498 else 499 test -d ./-p && rmdir ./-p 500 as_mkdir_p=false 501 fi 502 503 if test -x / >/dev/null 2>&1; then 504 as_test_x='test -x' 505 else 506 if ls -dL / >/dev/null 2>&1; then 507 as_ls_L_option=L 508 else 509 as_ls_L_option= 510 fi 511 as_test_x=' 512 eval sh -c '\'' 513 if test -d "$1"; then 514 test -d "$1/."; 515 else 516 case $1 in #( 517 -*)set "./$1";; 518 esac; 519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 520 ???[sx]*):;;*)false;;esac;fi 521 '\'' sh 522 ' 523 fi 524 as_executable_p=$as_test_x 525 526 # Sed expression to map a string onto a valid CPP name. 527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528 529 # Sed expression to map a string onto a valid variable name. 530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531 532 533 test -n "$DJDIR" || exec 7<&0 </dev/null 534 exec 6>&1 535 536 # Name of the host. 537 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 538 # so uname gets run too. 539 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 540 541 # 542 # Initializations. 543 # 544 ac_default_prefix=/usr/local 545 ac_clean_files= 546 ac_config_libobj_dir=. 547 LIBOBJS= 548 cross_compiling=no 549 subdirs= 550 MFLAGS= 551 MAKEFLAGS= 552 553 # Identity of this package. 554 PACKAGE_NAME='GNU make' 555 PACKAGE_TARNAME='make' 556 PACKAGE_VERSION='3.81' 557 PACKAGE_STRING='GNU make 3.81' 558 PACKAGE_BUGREPORT='bug-make@gnu.org' 559 PACKAGE_URL='http://www.gnu.org/software/make/' 560 561 ac_unique_file="vpath.c" 562 # Factoring default headers for most tests. 563 ac_includes_default="\ 564 #include <stdio.h> 565 #ifdef HAVE_SYS_TYPES_H 566 # include <sys/types.h> 567 #endif 568 #ifdef HAVE_SYS_STAT_H 569 # include <sys/stat.h> 570 #endif 571 #ifdef STDC_HEADERS 572 # include <stdlib.h> 573 # include <stddef.h> 574 #else 575 # ifdef HAVE_STDLIB_H 576 # include <stdlib.h> 577 # endif 578 #endif 579 #ifdef HAVE_STRING_H 580 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 581 # include <memory.h> 582 # endif 583 # include <string.h> 584 #endif 585 #ifdef HAVE_STRINGS_H 586 # include <strings.h> 587 #endif 588 #ifdef HAVE_INTTYPES_H 589 # include <inttypes.h> 590 #endif 591 #ifdef HAVE_STDINT_H 592 # include <stdint.h> 593 #endif 594 #ifdef HAVE_UNISTD_H 595 # include <unistd.h> 596 #endif" 597 598 ac_subst_vars='LTLIBOBJS 599 WINDOWSENV_FALSE 600 WINDOWSENV_TRUE 601 MAKE_HOST 602 USE_LOCAL_GLOB_FALSE 603 USE_LOCAL_GLOB_TRUE 604 GLOBLIB 605 GLOBINC 606 USE_CUSTOMS_FALSE 607 USE_CUSTOMS_TRUE 608 REMOTE 609 GETLOADAVG_LIBS 610 KMEM_GROUP 611 NEED_SETGID 612 LIBOBJS 613 ALLOCA 614 POSUB 615 LTLIBINTL 616 LIBINTL 617 INTLLIBS 618 LTLIBICONV 619 LIBICONV 620 MSGMERGE 621 XGETTEXT 622 GMSGFMT 623 MSGFMT 624 USE_NLS 625 MKINSTALLDIRS 626 ANSI2KNR 627 U 628 EGREP 629 GREP 630 host_os 631 host_vendor 632 host_cpu 633 host 634 build_os 635 build_vendor 636 build_cpu 637 build 638 PERL 639 AR 640 CPP 641 RANLIB 642 am__fastdepCC_FALSE 643 am__fastdepCC_TRUE 644 CCDEPMODE 645 AMDEPBACKSLASH 646 AMDEP_FALSE 647 AMDEP_TRUE 648 am__quote 649 am__include 650 DEPDIR 651 OBJEXT 652 EXEEXT 653 ac_ct_CC 654 CPPFLAGS 655 LDFLAGS 656 CFLAGS 657 CC 658 am__untar 659 am__tar 660 AMTAR 661 am__leading_dot 662 SET_MAKE 663 AWK 664 mkdir_p 665 INSTALL_STRIP_PROGRAM 666 STRIP 667 install_sh 668 MAKEINFO 669 AUTOHEADER 670 AUTOMAKE 671 AUTOCONF 672 ACLOCAL 673 VERSION 674 PACKAGE 675 CYGPATH_W 676 INSTALL_DATA 677 INSTALL_SCRIPT 678 INSTALL_PROGRAM 679 target_alias 680 host_alias 681 build_alias 682 LIBS 683 ECHO_T 684 ECHO_N 685 ECHO_C 686 DEFS 687 mandir 688 localedir 689 libdir 690 psdir 691 pdfdir 692 dvidir 693 htmldir 694 infodir 695 docdir 696 oldincludedir 697 includedir 698 localstatedir 699 sharedstatedir 700 sysconfdir 701 datadir 702 datarootdir 703 libexecdir 704 sbindir 705 bindir 706 program_transform_name 707 prefix 708 exec_prefix 709 PACKAGE_URL 710 PACKAGE_BUGREPORT 711 PACKAGE_STRING 712 PACKAGE_VERSION 713 PACKAGE_TARNAME 714 PACKAGE_NAME 715 PATH_SEPARATOR 716 SHELL' 717 ac_subst_files='MAINT_MAKEFILE' 718 ac_user_opts=' 719 enable_option_checking 720 enable_dependency_tracking 721 enable_nls 722 with_gnu_ld 723 enable_rpath 724 with_libiconv_prefix 725 with_libintl_prefix 726 enable_largefile 727 with_customs 728 enable_case_insensitive_file_system 729 enable_job_server 730 with_dmalloc 731 ' 732 ac_precious_vars='build_alias 733 host_alias 734 target_alias 735 CC 736 CFLAGS 737 LDFLAGS 738 LIBS 739 CPPFLAGS 740 CPP' 741 742 743 # Initialize some variables set by options. 744 ac_init_help= 745 ac_init_version=false 746 ac_unrecognized_opts= 747 ac_unrecognized_sep= 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_TARNAME}' 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_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 847 # Reject names that are not valid shell variable names. 848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 849 as_fn_error "invalid feature name: $ac_useropt" 850 ac_useropt_orig=$ac_useropt 851 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 852 case $ac_user_opts in 853 *" 854 "enable_$ac_useropt" 855 "*) ;; 856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 857 ac_unrecognized_sep=', ';; 858 esac 859 eval enable_$ac_useropt=no ;; 860 861 -docdir | --docdir | --docdi | --doc | --do) 862 ac_prev=docdir ;; 863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 864 docdir=$ac_optarg ;; 865 866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 867 ac_prev=dvidir ;; 868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 869 dvidir=$ac_optarg ;; 870 871 -enable-* | --enable-*) 872 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 873 # Reject names that are not valid shell variable names. 874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 875 as_fn_error "invalid feature name: $ac_useropt" 876 ac_useropt_orig=$ac_useropt 877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 878 case $ac_user_opts in 879 *" 880 "enable_$ac_useropt" 881 "*) ;; 882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 883 ac_unrecognized_sep=', ';; 884 esac 885 eval enable_$ac_useropt=\$ac_optarg ;; 886 887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 889 | --exec | --exe | --ex) 890 ac_prev=exec_prefix ;; 891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 893 | --exec=* | --exe=* | --ex=*) 894 exec_prefix=$ac_optarg ;; 895 896 -gas | --gas | --ga | --g) 897 # Obsolete; use --with-gas. 898 with_gas=yes ;; 899 900 -help | --help | --hel | --he | -h) 901 ac_init_help=long ;; 902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 903 ac_init_help=recursive ;; 904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 905 ac_init_help=short ;; 906 907 -host | --host | --hos | --ho) 908 ac_prev=host_alias ;; 909 -host=* | --host=* | --hos=* | --ho=*) 910 host_alias=$ac_optarg ;; 911 912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 913 ac_prev=htmldir ;; 914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 915 | --ht=*) 916 htmldir=$ac_optarg ;; 917 918 -includedir | --includedir | --includedi | --included | --include \ 919 | --includ | --inclu | --incl | --inc) 920 ac_prev=includedir ;; 921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 922 | --includ=* | --inclu=* | --incl=* | --inc=*) 923 includedir=$ac_optarg ;; 924 925 -infodir | --infodir | --infodi | --infod | --info | --inf) 926 ac_prev=infodir ;; 927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 928 infodir=$ac_optarg ;; 929 930 -libdir | --libdir | --libdi | --libd) 931 ac_prev=libdir ;; 932 -libdir=* | --libdir=* | --libdi=* | --libd=*) 933 libdir=$ac_optarg ;; 934 935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 936 | --libexe | --libex | --libe) 937 ac_prev=libexecdir ;; 938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 939 | --libexe=* | --libex=* | --libe=*) 940 libexecdir=$ac_optarg ;; 941 942 -localedir | --localedir | --localedi | --localed | --locale) 943 ac_prev=localedir ;; 944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 945 localedir=$ac_optarg ;; 946 947 -localstatedir | --localstatedir | --localstatedi | --localstated \ 948 | --localstate | --localstat | --localsta | --localst | --locals) 949 ac_prev=localstatedir ;; 950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 952 localstatedir=$ac_optarg ;; 953 954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 955 ac_prev=mandir ;; 956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 957 mandir=$ac_optarg ;; 958 959 -nfp | --nfp | --nf) 960 # Obsolete; use --without-fp. 961 with_fp=no ;; 962 963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 964 | --no-cr | --no-c | -n) 965 no_create=yes ;; 966 967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 969 no_recursion=yes ;; 970 971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 973 | --oldin | --oldi | --old | --ol | --o) 974 ac_prev=oldincludedir ;; 975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 978 oldincludedir=$ac_optarg ;; 979 980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 981 ac_prev=prefix ;; 982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 983 prefix=$ac_optarg ;; 984 985 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 986 | --program-pre | --program-pr | --program-p) 987 ac_prev=program_prefix ;; 988 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 990 program_prefix=$ac_optarg ;; 991 992 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 993 | --program-suf | --program-su | --program-s) 994 ac_prev=program_suffix ;; 995 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 997 program_suffix=$ac_optarg ;; 998 999 -program-transform-name | --program-transform-name \ 1000 | --program-transform-nam | --program-transform-na \ 1001 | --program-transform-n | --program-transform- \ 1002 | --program-transform | --program-transfor \ 1003 | --program-transfo | --program-transf \ 1004 | --program-trans | --program-tran \ 1005 | --progr-tra | --program-tr | --program-t) 1006 ac_prev=program_transform_name ;; 1007 -program-transform-name=* | --program-transform-name=* \ 1008 | --program-transform-nam=* | --program-transform-na=* \ 1009 | --program-transform-n=* | --program-transform-=* \ 1010 | --program-transform=* | --program-transfor=* \ 1011 | --program-transfo=* | --program-transf=* \ 1012 | --program-trans=* | --program-tran=* \ 1013 | --progr-tra=* | --program-tr=* | --program-t=*) 1014 program_transform_name=$ac_optarg ;; 1015 1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1017 ac_prev=pdfdir ;; 1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1019 pdfdir=$ac_optarg ;; 1020 1021 -psdir | --psdir | --psdi | --psd | --ps) 1022 ac_prev=psdir ;; 1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1024 psdir=$ac_optarg ;; 1025 1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1027 | -silent | --silent | --silen | --sile | --sil) 1028 silent=yes ;; 1029 1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1031 ac_prev=sbindir ;; 1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1033 | --sbi=* | --sb=*) 1034 sbindir=$ac_optarg ;; 1035 1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1038 | --sharedst | --shareds | --shared | --share | --shar \ 1039 | --sha | --sh) 1040 ac_prev=sharedstatedir ;; 1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1044 | --sha=* | --sh=*) 1045 sharedstatedir=$ac_optarg ;; 1046 1047 -site | --site | --sit) 1048 ac_prev=site ;; 1049 -site=* | --site=* | --sit=*) 1050 site=$ac_optarg ;; 1051 1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1053 ac_prev=srcdir ;; 1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1055 srcdir=$ac_optarg ;; 1056 1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1058 | --syscon | --sysco | --sysc | --sys | --sy) 1059 ac_prev=sysconfdir ;; 1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1062 sysconfdir=$ac_optarg ;; 1063 1064 -target | --target | --targe | --targ | --tar | --ta | --t) 1065 ac_prev=target_alias ;; 1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1067 target_alias=$ac_optarg ;; 1068 1069 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1070 verbose=yes ;; 1071 1072 -version | --version | --versio | --versi | --vers | -V) 1073 ac_init_version=: ;; 1074 1075 -with-* | --with-*) 1076 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1077 # Reject names that are not valid shell variable names. 1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1079 as_fn_error "invalid package name: $ac_useropt" 1080 ac_useropt_orig=$ac_useropt 1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1082 case $ac_user_opts in 1083 *" 1084 "with_$ac_useropt" 1085 "*) ;; 1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1087 ac_unrecognized_sep=', ';; 1088 esac 1089 eval with_$ac_useropt=\$ac_optarg ;; 1090 1091 -without-* | --without-*) 1092 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1093 # Reject names that are not valid shell variable names. 1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1095 as_fn_error "invalid package name: $ac_useropt" 1096 ac_useropt_orig=$ac_useropt 1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1098 case $ac_user_opts in 1099 *" 1100 "with_$ac_useropt" 1101 "*) ;; 1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1103 ac_unrecognized_sep=', ';; 1104 esac 1105 eval with_$ac_useropt=no ;; 1106 1107 --x) 1108 # Obsolete; use --with-x. 1109 with_x=yes ;; 1110 1111 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1112 | --x-incl | --x-inc | --x-in | --x-i) 1113 ac_prev=x_includes ;; 1114 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1115 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1116 x_includes=$ac_optarg ;; 1117 1118 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1119 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1120 ac_prev=x_libraries ;; 1121 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1122 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1123 x_libraries=$ac_optarg ;; 1124 1125 -*) as_fn_error "unrecognized option: \`$ac_option' 1126 Try \`$0 --help' for more information." 1127 ;; 1128 1129 *=*) 1130 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1131 # Reject names that are not valid shell variable names. 1132 case $ac_envvar in #( 1133 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1134 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1135 esac 1136 eval $ac_envvar=\$ac_optarg 1137 export $ac_envvar ;; 1138 1139 *) 1140 # FIXME: should be removed in autoconf 3.0. 1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1144 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1145 ;; 1146 1147 esac 1148 done 1149 1150 if test -n "$ac_prev"; then 1151 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1152 as_fn_error "missing argument to $ac_option" 1153 fi 1154 1155 if test -n "$ac_unrecognized_opts"; then 1156 case $enable_option_checking in 1157 no) ;; 1158 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1160 esac 1161 fi 1162 1163 # Check all directory arguments for consistency. 1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1165 datadir sysconfdir sharedstatedir localstatedir includedir \ 1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1167 libdir localedir mandir 1168 do 1169 eval ac_val=\$$ac_var 1170 # Remove trailing slashes. 1171 case $ac_val in 1172 */ ) 1173 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1174 eval $ac_var=\$ac_val;; 1175 esac 1176 # Be sure to have absolute directory names. 1177 case $ac_val in 1178 [\\/$]* | ?:[\\/]* ) continue;; 1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1180 esac 1181 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1182 done 1183 1184 # There might be people who depend on the old broken behavior: `$host' 1185 # used to hold the argument of --host etc. 1186 # FIXME: To remove some day. 1187 build=$build_alias 1188 host=$host_alias 1189 target=$target_alias 1190 1191 # FIXME: To remove some day. 1192 if test "x$host_alias" != x; then 1193 if test "x$build_alias" = x; then 1194 cross_compiling=maybe 1195 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1196 If a cross compiler is detected then cross compile mode will be used." >&2 1197 elif test "x$build_alias" != "x$host_alias"; then 1198 cross_compiling=yes 1199 fi 1200 fi 1201 1202 ac_tool_prefix= 1203 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1204 1205 test "$silent" = yes && exec 6>/dev/null 1206 1207 1208 ac_pwd=`pwd` && test -n "$ac_pwd" && 1209 ac_ls_di=`ls -di .` && 1210 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1211 as_fn_error "working directory cannot be determined" 1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1213 as_fn_error "pwd does not report name of working directory" 1214 1215 1216 # Find the source files, if location was not specified. 1217 if test -z "$srcdir"; then 1218 ac_srcdir_defaulted=yes 1219 # Try the directory containing this script, then the parent directory. 1220 ac_confdir=`$as_dirname -- "$as_myself" || 1221 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1222 X"$as_myself" : 'X\(//\)[^/]' \| \ 1223 X"$as_myself" : 'X\(//\)$' \| \ 1224 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1225 $as_echo X"$as_myself" | 1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1227 s//\1/ 1228 q 1229 } 1230 /^X\(\/\/\)[^/].*/{ 1231 s//\1/ 1232 q 1233 } 1234 /^X\(\/\/\)$/{ 1235 s//\1/ 1236 q 1237 } 1238 /^X\(\/\).*/{ 1239 s//\1/ 1240 q 1241 } 1242 s/.*/./; q'` 1243 srcdir=$ac_confdir 1244 if test ! -r "$srcdir/$ac_unique_file"; then 1245 srcdir=.. 1246 fi 1247 else 1248 ac_srcdir_defaulted=no 1249 fi 1250 if test ! -r "$srcdir/$ac_unique_file"; then 1251 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1252 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1253 fi 1254 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1255 ac_abs_confdir=`( 1256 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1257 pwd)` 1258 # When building in place, set srcdir=. 1259 if test "$ac_abs_confdir" = "$ac_pwd"; then 1260 srcdir=. 1261 fi 1262 # Remove unnecessary trailing slashes from srcdir. 1263 # Double slashes in file names in object file debugging info 1264 # mess up M-x gdb in Emacs. 1265 case $srcdir in 1266 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1267 esac 1268 for ac_var in $ac_precious_vars; do 1269 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1270 eval ac_env_${ac_var}_value=\$${ac_var} 1271 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1272 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1273 done 1274 1275 # 1276 # Report the --help message. 1277 # 1278 if test "$ac_init_help" = "long"; then 1279 # Omit some internal or obsolete options to make the list less imposing. 1280 # This message is too long to be a string in the A/UX 3.1 sh. 1281 cat <<_ACEOF 1282 \`configure' configures GNU make 3.81 to adapt to many kinds of systems. 1283 1284 Usage: $0 [OPTION]... [VAR=VALUE]... 1285 1286 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1287 VAR=VALUE. See below for descriptions of some of the useful variables. 1288 1289 Defaults for the options are specified in brackets. 1290 1291 Configuration: 1292 -h, --help display this help and exit 1293 --help=short display options specific to this package 1294 --help=recursive display the short help of all the included packages 1295 -V, --version display version information and exit 1296 -q, --quiet, --silent do not print \`checking...' messages 1297 --cache-file=FILE cache test results in FILE [disabled] 1298 -C, --config-cache alias for \`--cache-file=config.cache' 1299 -n, --no-create do not create output files 1300 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1301 1302 Installation directories: 1303 --prefix=PREFIX install architecture-independent files in PREFIX 1304 [$ac_default_prefix] 1305 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1306 [PREFIX] 1307 1308 By default, \`make install' will install all the files in 1309 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1310 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1311 for instance \`--prefix=\$HOME'. 1312 1313 For better control, use the options below. 1314 1315 Fine tuning of the installation directories: 1316 --bindir=DIR user executables [EPREFIX/bin] 1317 --sbindir=DIR system admin executables [EPREFIX/sbin] 1318 --libexecdir=DIR program executables [EPREFIX/libexec] 1319 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1320 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1321 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1322 --libdir=DIR object code libraries [EPREFIX/lib] 1323 --includedir=DIR C header files [PREFIX/include] 1324 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1325 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1326 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1327 --infodir=DIR info documentation [DATAROOTDIR/info] 1328 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1329 --mandir=DIR man documentation [DATAROOTDIR/man] 1330 --docdir=DIR documentation root [DATAROOTDIR/doc/make] 1331 --htmldir=DIR html documentation [DOCDIR] 1332 --dvidir=DIR dvi documentation [DOCDIR] 1333 --pdfdir=DIR pdf documentation [DOCDIR] 1334 --psdir=DIR ps documentation [DOCDIR] 1335 _ACEOF 1336 1337 cat <<\_ACEOF 1338 1339 Program names: 1340 --program-prefix=PREFIX prepend PREFIX to installed program names 1341 --program-suffix=SUFFIX append SUFFIX to installed program names 1342 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1343 1344 System types: 1345 --build=BUILD configure for building on BUILD [guessed] 1346 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1347 _ACEOF 1348 fi 1349 1350 if test -n "$ac_init_help"; then 1351 case $ac_init_help in 1352 short | recursive ) echo "Configuration of GNU make 3.81:";; 1353 esac 1354 cat <<\_ACEOF 1355 1356 Optional Features: 1357 --disable-option-checking ignore unrecognized --enable/--with options 1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1360 --disable-dependency-tracking speeds up one-time build 1361 --enable-dependency-tracking do not reject slow dependency extractors 1362 --disable-nls do not use Native Language Support 1363 --disable-rpath do not hardcode runtime library paths 1364 --disable-largefile omit support for large files 1365 --enable-case-insensitive-file-system 1366 enable case insensitive file system support 1367 --disable-job-server disallow recursive make communication during -jN 1368 1369 Optional Packages: 1370 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1371 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1372 --with-gnu-ld assume the C compiler uses GNU ld default=no 1373 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1374 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1375 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1376 --without-libintl-prefix don't search for libintl in includedir and libdir 1377 --with-customs=DIR enable remote jobs via Customs--see README.customs 1378 --with-dmalloc use dmalloc, as in 1379 http://www.dmalloc.com/dmalloc.tar.gz 1380 1381 Some influential environment variables: 1382 CC C compiler command 1383 CFLAGS C compiler flags 1384 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1385 nonstandard directory <lib dir> 1386 LIBS libraries to pass to the linker, e.g. -l<library> 1387 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1388 you have headers in a nonstandard directory <include dir> 1389 CPP C preprocessor 1390 1391 Use these variables to override the choices made by `configure' or to help 1392 it to find libraries and programs with nonstandard names/locations. 1393 1394 Report bugs to <bug-make@gnu.org>. 1395 GNU make home page: <http://www.gnu.org/software/make/>. 1396 General help using GNU software: <http://www.gnu.org/gethelp/>. 1397 _ACEOF 1398 ac_status=$? 1399 fi 1400 1401 if test "$ac_init_help" = "recursive"; then 1402 # If there are subdirs, report their specific --help. 1403 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1404 test -d "$ac_dir" || 1405 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1406 continue 1407 ac_builddir=. 1408 1409 case "$ac_dir" in 1410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1411 *) 1412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1413 # A ".." for each directory in $ac_dir_suffix. 1414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1415 case $ac_top_builddir_sub in 1416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1418 esac ;; 1419 esac 1420 ac_abs_top_builddir=$ac_pwd 1421 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1422 # for backward compatibility: 1423 ac_top_builddir=$ac_top_build_prefix 1424 1425 case $srcdir in 1426 .) # We are building in place. 1427 ac_srcdir=. 1428 ac_top_srcdir=$ac_top_builddir_sub 1429 ac_abs_top_srcdir=$ac_pwd ;; 1430 [\\/]* | ?:[\\/]* ) # Absolute name. 1431 ac_srcdir=$srcdir$ac_dir_suffix; 1432 ac_top_srcdir=$srcdir 1433 ac_abs_top_srcdir=$srcdir ;; 1434 *) # Relative name. 1435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1436 ac_top_srcdir=$ac_top_build_prefix$srcdir 1437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1438 esac 1439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1440 1441 cd "$ac_dir" || { ac_status=$?; continue; } 1442 # Check for guested configure. 1443 if test -f "$ac_srcdir/configure.gnu"; then 1444 echo && 1445 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1446 elif test -f "$ac_srcdir/configure"; then 1447 echo && 1448 $SHELL "$ac_srcdir/configure" --help=recursive 1449 else 1450 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1451 fi || ac_status=$? 1452 cd "$ac_pwd" || { ac_status=$?; break; } 1453 done 1454 fi 1455 1456 test -n "$ac_init_help" && exit $ac_status 1457 if $ac_init_version; then 1458 cat <<\_ACEOF 1459 GNU make configure 3.81 1460 generated by GNU Autoconf 2.65 1461 1462 Copyright (C) 2009 Free Software Foundation, Inc. 1463 This configure script is free software; the Free Software Foundation 1464 gives unlimited permission to copy, distribute and modify it. 1465 _ACEOF 1466 exit 1467 fi 1468 1469 ## ------------------------ ## 1470 ## Autoconf initialization. ## 1471 ## ------------------------ ## 1472 1473 # ac_fn_c_try_compile LINENO 1474 # -------------------------- 1475 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1476 ac_fn_c_try_compile () 1477 { 1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1479 rm -f conftest.$ac_objext 1480 if { { ac_try="$ac_compile" 1481 case "(($ac_try" in 1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1483 *) ac_try_echo=$ac_try;; 1484 esac 1485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1486 $as_echo "$ac_try_echo"; } >&5 1487 (eval "$ac_compile") 2>conftest.err 1488 ac_status=$? 1489 if test -s conftest.err; then 1490 grep -v '^ *+' conftest.err >conftest.er1 1491 cat conftest.er1 >&5 1492 mv -f conftest.er1 conftest.err 1493 fi 1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1495 test $ac_status = 0; } && { 1496 test -z "$ac_c_werror_flag" || 1497 test ! -s conftest.err 1498 } && test -s conftest.$ac_objext; then : 1499 ac_retval=0 1500 else 1501 $as_echo "$as_me: failed program was:" >&5 1502 sed 's/^/| /' conftest.$ac_ext >&5 1503 1504 ac_retval=1 1505 fi 1506 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1507 as_fn_set_status $ac_retval 1508 1509 } # ac_fn_c_try_compile 1510 1511 # ac_fn_c_try_cpp LINENO 1512 # ---------------------- 1513 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1514 ac_fn_c_try_cpp () 1515 { 1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1517 if { { ac_try="$ac_cpp conftest.$ac_ext" 1518 case "(($ac_try" in 1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1520 *) ac_try_echo=$ac_try;; 1521 esac 1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1523 $as_echo "$ac_try_echo"; } >&5 1524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1525 ac_status=$? 1526 if test -s conftest.err; then 1527 grep -v '^ *+' conftest.err >conftest.er1 1528 cat conftest.er1 >&5 1529 mv -f conftest.er1 conftest.err 1530 fi 1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1532 test $ac_status = 0; } >/dev/null && { 1533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1534 test ! -s conftest.err 1535 }; then : 1536 ac_retval=0 1537 else 1538 $as_echo "$as_me: failed program was:" >&5 1539 sed 's/^/| /' conftest.$ac_ext >&5 1540 1541 ac_retval=1 1542 fi 1543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1544 as_fn_set_status $ac_retval 1545 1546 } # ac_fn_c_try_cpp 1547 1548 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1549 # ------------------------------------------------------- 1550 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1551 # the include files in INCLUDES and setting the cache variable VAR 1552 # accordingly. 1553 ac_fn_c_check_header_mongrel () 1554 { 1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1556 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1558 $as_echo_n "checking for $2... " >&6; } 1559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1560 $as_echo_n "(cached) " >&6 1561 fi 1562 eval ac_res=\$$3 1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1564 $as_echo "$ac_res" >&6; } 1565 else 1566 # Is the header compilable? 1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1568 $as_echo_n "checking $2 usability... " >&6; } 1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1570 /* end confdefs.h. */ 1571 $4 1572 #include <$2> 1573 _ACEOF 1574 if ac_fn_c_try_compile "$LINENO"; then : 1575 ac_header_compiler=yes 1576 else 1577 ac_header_compiler=no 1578 fi 1579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1581 $as_echo "$ac_header_compiler" >&6; } 1582 1583 # Is the header present? 1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1585 $as_echo_n "checking $2 presence... " >&6; } 1586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1587 /* end confdefs.h. */ 1588 #include <$2> 1589 _ACEOF 1590 if ac_fn_c_try_cpp "$LINENO"; then : 1591 ac_header_preproc=yes 1592 else 1593 ac_header_preproc=no 1594 fi 1595 rm -f conftest.err conftest.$ac_ext 1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1597 $as_echo "$ac_header_preproc" >&6; } 1598 1599 # So? What about this header? 1600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1601 yes:no: ) 1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1603 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1605 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1606 ;; 1607 no:yes:* ) 1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1609 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1611 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1613 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1615 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1617 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1618 ( cat <<\_ASBOX 1619 ## ------------------------------- ## 1620 ## Report this to bug-make (at] gnu.org ## 1621 ## ------------------------------- ## 1622 _ASBOX 1623 ) | sed "s/^/$as_me: WARNING: /" >&2 1624 ;; 1625 esac 1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1627 $as_echo_n "checking for $2... " >&6; } 1628 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1629 $as_echo_n "(cached) " >&6 1630 else 1631 eval "$3=\$ac_header_compiler" 1632 fi 1633 eval ac_res=\$$3 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1635 $as_echo "$ac_res" >&6; } 1636 fi 1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1638 1639 } # ac_fn_c_check_header_mongrel 1640 1641 # ac_fn_c_try_run LINENO 1642 # ---------------------- 1643 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1644 # that executables *can* be run. 1645 ac_fn_c_try_run () 1646 { 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 if { { ac_try="$ac_link" 1649 case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652 esac 1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654 $as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_link") 2>&5 1656 ac_status=$? 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1659 { { case "(($ac_try" in 1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1661 *) ac_try_echo=$ac_try;; 1662 esac 1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1664 $as_echo "$ac_try_echo"; } >&5 1665 (eval "$ac_try") 2>&5 1666 ac_status=$? 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; }; }; then : 1669 ac_retval=0 1670 else 1671 $as_echo "$as_me: program exited with status $ac_status" >&5 1672 $as_echo "$as_me: failed program was:" >&5 1673 sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=$ac_status 1676 fi 1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1678 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1679 as_fn_set_status $ac_retval 1680 1681 } # ac_fn_c_try_run 1682 1683 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1684 # ------------------------------------------------------- 1685 # Tests whether HEADER exists and can be compiled using the include files in 1686 # INCLUDES, setting the cache variable VAR accordingly. 1687 ac_fn_c_check_header_compile () 1688 { 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1691 $as_echo_n "checking for $2... " >&6; } 1692 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1693 $as_echo_n "(cached) " >&6 1694 else 1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1696 /* end confdefs.h. */ 1697 $4 1698 #include <$2> 1699 _ACEOF 1700 if ac_fn_c_try_compile "$LINENO"; then : 1701 eval "$3=yes" 1702 else 1703 eval "$3=no" 1704 fi 1705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1706 fi 1707 eval ac_res=\$$3 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1709 $as_echo "$ac_res" >&6; } 1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1711 1712 } # ac_fn_c_check_header_compile 1713 1714 # ac_fn_c_try_link LINENO 1715 # ----------------------- 1716 # Try to link conftest.$ac_ext, and return whether this succeeded. 1717 ac_fn_c_try_link () 1718 { 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 rm -f conftest.$ac_objext conftest$ac_exeext 1721 if { { ac_try="$ac_link" 1722 case "(($ac_try" in 1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1724 *) ac_try_echo=$ac_try;; 1725 esac 1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1727 $as_echo "$ac_try_echo"; } >&5 1728 (eval "$ac_link") 2>conftest.err 1729 ac_status=$? 1730 if test -s conftest.err; then 1731 grep -v '^ *+' conftest.err >conftest.er1 1732 cat conftest.er1 >&5 1733 mv -f conftest.er1 conftest.err 1734 fi 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; } && { 1737 test -z "$ac_c_werror_flag" || 1738 test ! -s conftest.err 1739 } && test -s conftest$ac_exeext && { 1740 test "$cross_compiling" = yes || 1741 $as_test_x conftest$ac_exeext 1742 }; then : 1743 ac_retval=0 1744 else 1745 $as_echo "$as_me: failed program was:" >&5 1746 sed 's/^/| /' conftest.$ac_ext >&5 1747 1748 ac_retval=1 1749 fi 1750 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1751 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1752 # interfere with the next link command; also delete a directory that is 1753 # left behind by Apple's compiler. We do this before executing the actions. 1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1756 as_fn_set_status $ac_retval 1757 1758 } # ac_fn_c_try_link 1759 1760 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1761 # ------------------------------------------- 1762 # Tests whether TYPE exists after having included INCLUDES, setting cache 1763 # variable VAR accordingly. 1764 ac_fn_c_check_type () 1765 { 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1768 $as_echo_n "checking for $2... " >&6; } 1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1770 $as_echo_n "(cached) " >&6 1771 else 1772 eval "$3=no" 1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1774 /* end confdefs.h. */ 1775 $4 1776 int 1777 main () 1778 { 1779 if (sizeof ($2)) 1780 return 0; 1781 ; 1782 return 0; 1783 } 1784 _ACEOF 1785 if ac_fn_c_try_compile "$LINENO"; then : 1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1787 /* end confdefs.h. */ 1788 $4 1789 int 1790 main () 1791 { 1792 if (sizeof (($2))) 1793 return 0; 1794 ; 1795 return 0; 1796 } 1797 _ACEOF 1798 if ac_fn_c_try_compile "$LINENO"; then : 1799 1800 else 1801 eval "$3=yes" 1802 fi 1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1804 fi 1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1806 fi 1807 eval ac_res=\$$3 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1809 $as_echo "$ac_res" >&6; } 1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1811 1812 } # ac_fn_c_check_type 1813 1814 # ac_fn_c_check_func LINENO FUNC VAR 1815 # ---------------------------------- 1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1817 ac_fn_c_check_func () 1818 { 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1821 $as_echo_n "checking for $2... " >&6; } 1822 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1823 $as_echo_n "(cached) " >&6 1824 else 1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1826 /* end confdefs.h. */ 1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1829 #define $2 innocuous_$2 1830 1831 /* System header to define __stub macros and hopefully few prototypes, 1832 which can conflict with char $2 (); below. 1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1834 <limits.h> exists even on freestanding compilers. */ 1835 1836 #ifdef __STDC__ 1837 # include <limits.h> 1838 #else 1839 # include <assert.h> 1840 #endif 1841 1842 #undef $2 1843 1844 /* Override any GCC internal prototype to avoid an error. 1845 Use char because int might match the return type of a GCC 1846 builtin and then its argument prototype would still apply. */ 1847 #ifdef __cplusplus 1848 extern "C" 1849 #endif 1850 char $2 (); 1851 /* The GNU C library defines this for functions which it implements 1852 to always fail with ENOSYS. Some functions are actually named 1853 something starting with __ and the normal name is an alias. */ 1854 #if defined __stub_$2 || defined __stub___$2 1855 choke me 1856 #endif 1857 1858 int 1859 main () 1860 { 1861 return $2 (); 1862 ; 1863 return 0; 1864 } 1865 _ACEOF 1866 if ac_fn_c_try_link "$LINENO"; then : 1867 eval "$3=yes" 1868 else 1869 eval "$3=no" 1870 fi 1871 rm -f core conftest.err conftest.$ac_objext \ 1872 conftest$ac_exeext conftest.$ac_ext 1873 fi 1874 eval ac_res=\$$3 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1876 $as_echo "$ac_res" >&6; } 1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1878 1879 } # ac_fn_c_check_func 1880 1881 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1882 # ---------------------------------------------------- 1883 # Tries to find if the field MEMBER exists in type AGGR, after including 1884 # INCLUDES, setting cache variable VAR accordingly. 1885 ac_fn_c_check_member () 1886 { 1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1889 $as_echo_n "checking for $2.$3... " >&6; } 1890 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 1891 $as_echo_n "(cached) " >&6 1892 else 1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1894 /* end confdefs.h. */ 1895 $5 1896 int 1897 main () 1898 { 1899 static $2 ac_aggr; 1900 if (ac_aggr.$3) 1901 return 0; 1902 ; 1903 return 0; 1904 } 1905 _ACEOF 1906 if ac_fn_c_try_compile "$LINENO"; then : 1907 eval "$4=yes" 1908 else 1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910 /* end confdefs.h. */ 1911 $5 1912 int 1913 main () 1914 { 1915 static $2 ac_aggr; 1916 if (sizeof ac_aggr.$3) 1917 return 0; 1918 ; 1919 return 0; 1920 } 1921 _ACEOF 1922 if ac_fn_c_try_compile "$LINENO"; then : 1923 eval "$4=yes" 1924 else 1925 eval "$4=no" 1926 fi 1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1928 fi 1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1930 fi 1931 eval ac_res=\$$4 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1933 $as_echo "$ac_res" >&6; } 1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1935 1936 } # ac_fn_c_check_member 1937 1938 # ac_fn_c_check_decl LINENO SYMBOL VAR 1939 # ------------------------------------ 1940 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1941 ac_fn_c_check_decl () 1942 { 1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1945 $as_echo_n "checking whether $2 is declared... " >&6; } 1946 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1947 $as_echo_n "(cached) " >&6 1948 else 1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1950 /* end confdefs.h. */ 1951 $4 1952 int 1953 main () 1954 { 1955 #ifndef $2 1956 (void) $2; 1957 #endif 1958 1959 ; 1960 return 0; 1961 } 1962 _ACEOF 1963 if ac_fn_c_try_compile "$LINENO"; then : 1964 eval "$3=yes" 1965 else 1966 eval "$3=no" 1967 fi 1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1969 fi 1970 eval ac_res=\$$3 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1972 $as_echo "$ac_res" >&6; } 1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1974 1975 } # ac_fn_c_check_decl 1976 cat >config.log <<_ACEOF 1977 This file contains any messages produced by compilers while 1978 running configure, to aid debugging if configure makes a mistake. 1979 1980 It was created by GNU make $as_me 3.81, which was 1981 generated by GNU Autoconf 2.65. Invocation command line was 1982 1983 $ $0 $@ 1984 1985 _ACEOF 1986 exec 5>>config.log 1987 { 1988 cat <<_ASUNAME 1989 ## --------- ## 1990 ## Platform. ## 1991 ## --------- ## 1992 1993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1994 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1995 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1996 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1997 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1998 1999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2001 2002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2005 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2009 2010 _ASUNAME 2011 2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2013 for as_dir in $PATH 2014 do 2015 IFS=$as_save_IFS 2016 test -z "$as_dir" && as_dir=. 2017 $as_echo "PATH: $as_dir" 2018 done 2019 IFS=$as_save_IFS 2020 2021 } >&5 2022 2023 cat >&5 <<_ACEOF 2024 2025 2026 ## ----------- ## 2027 ## Core tests. ## 2028 ## ----------- ## 2029 2030 _ACEOF 2031 2032 2033 # Keep a trace of the command line. 2034 # Strip out --no-create and --no-recursion so they do not pile up. 2035 # Strip out --silent because we don't want to record it for future runs. 2036 # Also quote any args containing shell meta-characters. 2037 # Make two passes to allow for proper duplicate-argument suppression. 2038 ac_configure_args= 2039 ac_configure_args0= 2040 ac_configure_args1= 2041 ac_must_keep_next=false 2042 for ac_pass in 1 2 2043 do 2044 for ac_arg 2045 do 2046 case $ac_arg in 2047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2049 | -silent | --silent | --silen | --sile | --sil) 2050 continue ;; 2051 *\'*) 2052 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2053 esac 2054 case $ac_pass in 2055 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2056 2) 2057 as_fn_append ac_configure_args1 " '$ac_arg'" 2058 if test $ac_must_keep_next = true; then 2059 ac_must_keep_next=false # Got value, back to normal. 2060 else 2061 case $ac_arg in 2062 *=* | --config-cache | -C | -disable-* | --disable-* \ 2063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2065 | -with-* | --with-* | -without-* | --without-* | --x) 2066 case "$ac_configure_args0 " in 2067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2068 esac 2069 ;; 2070 -* ) ac_must_keep_next=true ;; 2071 esac 2072 fi 2073 as_fn_append ac_configure_args " '$ac_arg'" 2074 ;; 2075 esac 2076 done 2077 done 2078 { ac_configure_args0=; unset ac_configure_args0;} 2079 { ac_configure_args1=; unset ac_configure_args1;} 2080 2081 # When interrupted or exit'd, cleanup temporary files, and complete 2082 # config.log. We remove comments because anyway the quotes in there 2083 # would cause problems or look ugly. 2084 # WARNING: Use '\'' to represent an apostrophe within the trap. 2085 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2086 trap 'exit_status=$? 2087 # Save into config.log some information that might help in debugging. 2088 { 2089 echo 2090 2091 cat <<\_ASBOX 2092 ## ---------------- ## 2093 ## Cache variables. ## 2094 ## ---------------- ## 2095 _ASBOX 2096 echo 2097 # The following way of writing the cache mishandles newlines in values, 2098 ( 2099 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2100 eval ac_val=\$$ac_var 2101 case $ac_val in #( 2102 *${as_nl}*) 2103 case $ac_var in #( 2104 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2105 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2106 esac 2107 case $ac_var in #( 2108 _ | IFS | as_nl) ;; #( 2109 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2110 *) { eval $ac_var=; unset $ac_var;} ;; 2111 esac ;; 2112 esac 2113 done 2114 (set) 2>&1 | 2115 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2116 *${as_nl}ac_space=\ *) 2117 sed -n \ 2118 "s/'\''/'\''\\\\'\'''\''/g; 2119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2120 ;; #( 2121 *) 2122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2123 ;; 2124 esac | 2125 sort 2126 ) 2127 echo 2128 2129 cat <<\_ASBOX 2130 ## ----------------- ## 2131 ## Output variables. ## 2132 ## ----------------- ## 2133 _ASBOX 2134 echo 2135 for ac_var in $ac_subst_vars 2136 do 2137 eval ac_val=\$$ac_var 2138 case $ac_val in 2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2140 esac 2141 $as_echo "$ac_var='\''$ac_val'\''" 2142 done | sort 2143 echo 2144 2145 if test -n "$ac_subst_files"; then 2146 cat <<\_ASBOX 2147 ## ------------------- ## 2148 ## File substitutions. ## 2149 ## ------------------- ## 2150 _ASBOX 2151 echo 2152 for ac_var in $ac_subst_files 2153 do 2154 eval ac_val=\$$ac_var 2155 case $ac_val in 2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2157 esac 2158 $as_echo "$ac_var='\''$ac_val'\''" 2159 done | sort 2160 echo 2161 fi 2162 2163 if test -s confdefs.h; then 2164 cat <<\_ASBOX 2165 ## ----------- ## 2166 ## confdefs.h. ## 2167 ## ----------- ## 2168 _ASBOX 2169 echo 2170 cat confdefs.h 2171 echo 2172 fi 2173 test "$ac_signal" != 0 && 2174 $as_echo "$as_me: caught signal $ac_signal" 2175 $as_echo "$as_me: exit $exit_status" 2176 } >&5 2177 rm -f core *.core core.conftest.* && 2178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2179 exit $exit_status 2180 ' 0 2181 for ac_signal in 1 2 13 15; do 2182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2183 done 2184 ac_signal=0 2185 2186 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2187 rm -f -r conftest* confdefs.h 2188 2189 $as_echo "/* confdefs.h */" > confdefs.h 2190 2191 # Predefined preprocessor variables. 2192 2193 cat >>confdefs.h <<_ACEOF 2194 #define PACKAGE_NAME "$PACKAGE_NAME" 2195 _ACEOF 2196 2197 cat >>confdefs.h <<_ACEOF 2198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2199 _ACEOF 2200 2201 cat >>confdefs.h <<_ACEOF 2202 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2203 _ACEOF 2204 2205 cat >>confdefs.h <<_ACEOF 2206 #define PACKAGE_STRING "$PACKAGE_STRING" 2207 _ACEOF 2208 2209 cat >>confdefs.h <<_ACEOF 2210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2211 _ACEOF 2212 2213 cat >>confdefs.h <<_ACEOF 2214 #define PACKAGE_URL "$PACKAGE_URL" 2215 _ACEOF 2216 2217 2218 # Let the site file select an alternate cache file if it wants to. 2219 # Prefer an explicitly selected file to automatically selected ones. 2220 ac_site_file1=NONE 2221 ac_site_file2=NONE 2222 if test -n "$CONFIG_SITE"; then 2223 ac_site_file1=$CONFIG_SITE 2224 elif test "x$prefix" != xNONE; then 2225 ac_site_file1=$prefix/share/config.site 2226 ac_site_file2=$prefix/etc/config.site 2227 else 2228 ac_site_file1=$ac_default_prefix/share/config.site 2229 ac_site_file2=$ac_default_prefix/etc/config.site 2230 fi 2231 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2232 do 2233 test "x$ac_site_file" = xNONE && continue 2234 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2236 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2237 sed 's/^/| /' "$ac_site_file" >&5 2238 . "$ac_site_file" 2239 fi 2240 done 2241 2242 if test -r "$cache_file"; then 2243 # Some versions of bash will fail to source /dev/null (special files 2244 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2245 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2247 $as_echo "$as_me: loading cache $cache_file" >&6;} 2248 case $cache_file in 2249 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2250 *) . "./$cache_file";; 2251 esac 2252 fi 2253 else 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2255 $as_echo "$as_me: creating cache $cache_file" >&6;} 2256 >$cache_file 2257 fi 2258 2259 # Check that the precious variables saved in the cache have kept the same 2260 # value. 2261 ac_cache_corrupted=false 2262 for ac_var in $ac_precious_vars; do 2263 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2264 eval ac_new_set=\$ac_env_${ac_var}_set 2265 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2266 eval ac_new_val=\$ac_env_${ac_var}_value 2267 case $ac_old_set,$ac_new_set in 2268 set,) 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2270 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2271 ac_cache_corrupted=: ;; 2272 ,set) 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2274 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2275 ac_cache_corrupted=: ;; 2276 ,);; 2277 *) 2278 if test "x$ac_old_val" != "x$ac_new_val"; then 2279 # differences in whitespace do not lead to failure. 2280 ac_old_val_w=`echo x $ac_old_val` 2281 ac_new_val_w=`echo x $ac_new_val` 2282 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2284 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2285 ac_cache_corrupted=: 2286 else 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2288 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2289 eval $ac_var=\$ac_old_val 2290 fi 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2292 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2294 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2295 fi;; 2296 esac 2297 # Pass precious variables to config.status. 2298 if test "$ac_new_set" = set; then 2299 case $ac_new_val in 2300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2301 *) ac_arg=$ac_var=$ac_new_val ;; 2302 esac 2303 case " $ac_configure_args " in 2304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2305 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2306 esac 2307 fi 2308 done 2309 if $ac_cache_corrupted; then 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2313 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2314 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2315 fi 2316 ## -------------------- ## 2317 ## Main body of script. ## 2318 ## -------------------- ## 2319 2320 ac_ext=c 2321 ac_cpp='$CPP $CPPFLAGS' 2322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2324 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2325 2326 2327 2328 2329 2330 2331 # Autoconf setup 2332 ac_aux_dir= 2333 for ac_dir in config "$srcdir"/config; do 2334 for ac_t in install-sh install.sh shtool; do 2335 if test -f "$ac_dir/$ac_t"; then 2336 ac_aux_dir=$ac_dir 2337 ac_install_sh="$ac_aux_dir/$ac_t -c" 2338 break 2 2339 fi 2340 done 2341 done 2342 if test -z "$ac_aux_dir"; then 2343 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2344 fi 2345 2346 # These three variables are undocumented and unsupported, 2347 # and are intended to be withdrawn in a future Autoconf release. 2348 # They can cause serious problems if a builder's source tree is in a directory 2349 # whose full name contains unusual characters. 2350 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2351 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2352 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2353 2354 2355 2356 ac_config_headers="$ac_config_headers config.h" 2357 2358 2359 # Automake setup 2360 am__api_version="1.9" 2361 # Find a good install program. We prefer a C program (faster), 2362 # so one script is as good as another. But avoid the broken or 2363 # incompatible versions: 2364 # SysV /etc/install, /usr/sbin/install 2365 # SunOS /usr/etc/install 2366 # IRIX /sbin/install 2367 # AIX /bin/install 2368 # AmigaOS /C/install, which installs bootblocks on floppy discs 2369 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2370 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2371 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2372 # OS/2's system install, which has a completely different semantic 2373 # ./install, which can be erroneously created by make from ./install.sh. 2374 # Reject install programs that cannot install multiple files. 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2376 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2377 if test -z "$INSTALL"; then 2378 if test "${ac_cv_path_install+set}" = set; then : 2379 $as_echo_n "(cached) " >&6 2380 else 2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2382 for as_dir in $PATH 2383 do 2384 IFS=$as_save_IFS 2385 test -z "$as_dir" && as_dir=. 2386 # Account for people who put trailing slashes in PATH elements. 2387 case $as_dir/ in #(( 2388 ./ | .// | /[cC]/* | \ 2389 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2390 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2391 /usr/ucb/* ) ;; 2392 *) 2393 # OSF1 and SCO ODT 3.0 have their own names for install. 2394 # Don't use installbsd from OSF since it installs stuff as root 2395 # by default. 2396 for ac_prog in ginstall scoinst install; do 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2399 if test $ac_prog = install && 2400 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2401 # AIX install. It has an incompatible calling convention. 2402 : 2403 elif test $ac_prog = install && 2404 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2405 # program-specific install script used by HP pwplus--don't use. 2406 : 2407 else 2408 rm -rf conftest.one conftest.two conftest.dir 2409 echo one > conftest.one 2410 echo two > conftest.two 2411 mkdir conftest.dir 2412 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2413 test -s conftest.one && test -s conftest.two && 2414 test -s conftest.dir/conftest.one && 2415 test -s conftest.dir/conftest.two 2416 then 2417 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2418 break 3 2419 fi 2420 fi 2421 fi 2422 done 2423 done 2424 ;; 2425 esac 2426 2427 done 2428 IFS=$as_save_IFS 2429 2430 rm -rf conftest.one conftest.two conftest.dir 2431 2432 fi 2433 if test "${ac_cv_path_install+set}" = set; then 2434 INSTALL=$ac_cv_path_install 2435 else 2436 # As a last resort, use the slow shell script. Don't cache a 2437 # value for INSTALL within a source directory, because that will 2438 # break other packages using the cache if that directory is 2439 # removed, or if the value is a relative name. 2440 INSTALL=$ac_install_sh 2441 fi 2442 fi 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2444 $as_echo "$INSTALL" >&6; } 2445 2446 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2447 # It thinks the first close brace ends the variable substitution. 2448 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2449 2450 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2451 2452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2453 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2455 $as_echo_n "checking whether build environment is sane... " >&6; } 2456 # Just in case 2457 sleep 1 2458 echo timestamp > conftest.file 2459 # Do `set' in a subshell so we don't clobber the current shell's 2460 # arguments. Must try -L first in case configure is actually a 2461 # symlink; some systems play weird games with the mod time of symlinks 2462 # (eg FreeBSD returns the mod time of the symlink's containing 2463 # directory). 2464 if ( 2465 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2466 if test "$*" = "X"; then 2467 # -L didn't work. 2468 set X `ls -t $srcdir/configure conftest.file` 2469 fi 2470 rm -f conftest.file 2471 if test "$*" != "X $srcdir/configure conftest.file" \ 2472 && test "$*" != "X conftest.file $srcdir/configure"; then 2473 2474 # If neither matched, then we have a broken ls. This can happen 2475 # if, for instance, CONFIG_SHELL is bash and it inherits a 2476 # broken ls alias from the environment. This has actually 2477 # happened. Such a system could not be considered "sane". 2478 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2479 alias in your environment" "$LINENO" 5 2480 fi 2481 2482 test "$2" = conftest.file 2483 ) 2484 then 2485 # Ok. 2486 : 2487 else 2488 as_fn_error "newly created file is older than distributed files! 2489 Check your system clock" "$LINENO" 5 2490 fi 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2492 $as_echo "yes" >&6; } 2493 test "$program_prefix" != NONE && 2494 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2495 # Use a double $ so make ignores it. 2496 test "$program_suffix" != NONE && 2497 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2498 # Double any \ or $. 2499 # By default was `s,x,x', remove it if useless. 2500 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2501 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2502 2503 # expand $ac_aux_dir to an absolute path 2504 am_aux_dir=`cd $ac_aux_dir && pwd` 2505 2506 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2507 # Use eval to expand $SHELL 2508 if eval "$MISSING --run true"; then 2509 am_missing_run="$MISSING --run " 2510 else 2511 am_missing_run= 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2513 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2514 fi 2515 2516 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2517 # We used to keeping the `.' as first argument, in order to 2518 # allow $(mkdir_p) to be used without argument. As in 2519 # $(mkdir_p) $(somedir) 2520 # where $(somedir) is conditionally defined. However this is wrong 2521 # for two reasons: 2522 # 1. if the package is installed by a user who cannot write `.' 2523 # make install will fail, 2524 # 2. the above comment should most certainly read 2525 # $(mkdir_p) $(DESTDIR)$(somedir) 2526 # so it does not work when $(somedir) is undefined and 2527 # $(DESTDIR) is not. 2528 # To support the latter case, we have to write 2529 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2530 # so the `.' trick is pointless. 2531 mkdir_p='mkdir -p --' 2532 else 2533 # On NextStep and OpenStep, the `mkdir' command does not 2534 # recognize any option. It will interpret all options as 2535 # directories to create, and then abort because `.' already 2536 # exists. 2537 for d in ./-p ./--version; 2538 do 2539 test -d $d && rmdir $d 2540 done 2541 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2542 if test -f "$ac_aux_dir/mkinstalldirs"; then 2543 mkdir_p='$(mkinstalldirs)' 2544 else 2545 mkdir_p='$(install_sh) -d' 2546 fi 2547 fi 2548 2549 for ac_prog in gawk mawk nawk awk 2550 do 2551 # Extract the first word of "$ac_prog", so it can be a program name with args. 2552 set dummy $ac_prog; ac_word=$2 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2554 $as_echo_n "checking for $ac_word... " >&6; } 2555 if test "${ac_cv_prog_AWK+set}" = set; then : 2556 $as_echo_n "(cached) " >&6 2557 else 2558 if test -n "$AWK"; then 2559 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2560 else 2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2562 for as_dir in $PATH 2563 do 2564 IFS=$as_save_IFS 2565 test -z "$as_dir" && as_dir=. 2566 for ac_exec_ext in '' $ac_executable_extensions; do 2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2568 ac_cv_prog_AWK="$ac_prog" 2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2570 break 2 2571 fi 2572 done 2573 done 2574 IFS=$as_save_IFS 2575 2576 fi 2577 fi 2578 AWK=$ac_cv_prog_AWK 2579 if test -n "$AWK"; then 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2581 $as_echo "$AWK" >&6; } 2582 else 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2584 $as_echo "no" >&6; } 2585 fi 2586 2587 2588 test -n "$AWK" && break 2589 done 2590 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2592 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2593 set x ${MAKE-make} 2594 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2595 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2596 $as_echo_n "(cached) " >&6 2597 else 2598 cat >conftest.make <<\_ACEOF 2599 SHELL = /bin/sh 2600 all: 2601 @echo '@@@%%%=$(MAKE)=@@@%%%' 2602 _ACEOF 2603 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2604 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2605 *@@@%%%=?*=@@@%%%*) 2606 eval ac_cv_prog_make_${ac_make}_set=yes;; 2607 *) 2608 eval ac_cv_prog_make_${ac_make}_set=no;; 2609 esac 2610 rm -f conftest.make 2611 fi 2612 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2614 $as_echo "yes" >&6; } 2615 SET_MAKE= 2616 else 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2618 $as_echo "no" >&6; } 2619 SET_MAKE="MAKE=${MAKE-make}" 2620 fi 2621 2622 rm -rf .tst 2>/dev/null 2623 mkdir .tst 2>/dev/null 2624 if test -d .tst; then 2625 am__leading_dot=. 2626 else 2627 am__leading_dot=_ 2628 fi 2629 rmdir .tst 2>/dev/null 2630 2631 # test to see if srcdir already configured 2632 if test "`cd $srcdir && pwd`" != "`pwd`" && 2633 test -f $srcdir/config.status; then 2634 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2635 fi 2636 2637 # test whether we have cygpath 2638 if test -z "$CYGPATH_W"; then 2639 if (cygpath --version) >/dev/null 2>/dev/null; then 2640 CYGPATH_W='cygpath -w' 2641 else 2642 CYGPATH_W=echo 2643 fi 2644 fi 2645 2646 2647 # Define the identity of the package. 2648 PACKAGE='make' 2649 VERSION='3.81' 2650 2651 2652 cat >>confdefs.h <<_ACEOF 2653 #define PACKAGE "$PACKAGE" 2654 _ACEOF 2655 2656 2657 cat >>confdefs.h <<_ACEOF 2658 #define VERSION "$VERSION" 2659 _ACEOF 2660 2661 # Some tools Automake needs. 2662 2663 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2664 2665 2666 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2667 2668 2669 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2670 2671 2672 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2673 2674 2675 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2676 2677 install_sh=${install_sh-"$am_aux_dir/install-sh"} 2678 2679 # Installed binaries are usually stripped using `strip' when the user 2680 # run `make install-strip'. However `strip' might not be the right 2681 # tool to use in cross-compilation environments, therefore Automake 2682 # will honor the `STRIP' environment variable to overrule this program. 2683 if test "$cross_compiling" != no; then 2684 if test -n "$ac_tool_prefix"; then 2685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2686 set dummy ${ac_tool_prefix}strip; ac_word=$2 2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2688 $as_echo_n "checking for $ac_word... " >&6; } 2689 if test "${ac_cv_prog_STRIP+set}" = set; then : 2690 $as_echo_n "(cached) " >&6 2691 else 2692 if test -n "$STRIP"; then 2693 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2694 else 2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2696 for as_dir in $PATH 2697 do 2698 IFS=$as_save_IFS 2699 test -z "$as_dir" && as_dir=. 2700 for ac_exec_ext in '' $ac_executable_extensions; do 2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2702 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2704 break 2 2705 fi 2706 done 2707 done 2708 IFS=$as_save_IFS 2709 2710 fi 2711 fi 2712 STRIP=$ac_cv_prog_STRIP 2713 if test -n "$STRIP"; then 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2715 $as_echo "$STRIP" >&6; } 2716 else 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2718 $as_echo "no" >&6; } 2719 fi 2720 2721 2722 fi 2723 if test -z "$ac_cv_prog_STRIP"; then 2724 ac_ct_STRIP=$STRIP 2725 # Extract the first word of "strip", so it can be a program name with args. 2726 set dummy strip; ac_word=$2 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2728 $as_echo_n "checking for $ac_word... " >&6; } 2729 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2730 $as_echo_n "(cached) " >&6 2731 else 2732 if test -n "$ac_ct_STRIP"; then 2733 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2734 else 2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2736 for as_dir in $PATH 2737 do 2738 IFS=$as_save_IFS 2739 test -z "$as_dir" && as_dir=. 2740 for ac_exec_ext in '' $ac_executable_extensions; do 2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2742 ac_cv_prog_ac_ct_STRIP="strip" 2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2744 break 2 2745 fi 2746 done 2747 done 2748 IFS=$as_save_IFS 2749 2750 fi 2751 fi 2752 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2753 if test -n "$ac_ct_STRIP"; then 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2755 $as_echo "$ac_ct_STRIP" >&6; } 2756 else 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2758 $as_echo "no" >&6; } 2759 fi 2760 2761 if test "x$ac_ct_STRIP" = x; then 2762 STRIP=":" 2763 else 2764 case $cross_compiling:$ac_tool_warned in 2765 yes:) 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2768 ac_tool_warned=yes ;; 2769 esac 2770 STRIP=$ac_ct_STRIP 2771 fi 2772 else 2773 STRIP="$ac_cv_prog_STRIP" 2774 fi 2775 2776 fi 2777 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2778 2779 # We need awk for the "check" target. The system "awk" is bad on 2780 # some platforms. 2781 # Always define AMTAR for backward compatibility. 2782 2783 AMTAR=${AMTAR-"${am_missing_run}tar"} 2784 2785 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2786 2787 2788 2789 2790 2791 2792 # Checks for programs. 2793 ac_ext=c 2794 ac_cpp='$CPP $CPPFLAGS' 2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2798 if test -n "$ac_tool_prefix"; then 2799 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2800 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2802 $as_echo_n "checking for $ac_word... " >&6; } 2803 if test "${ac_cv_prog_CC+set}" = set; then : 2804 $as_echo_n "(cached) " >&6 2805 else 2806 if test -n "$CC"; then 2807 ac_cv_prog_CC="$CC" # Let the user override the test. 2808 else 2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2810 for as_dir in $PATH 2811 do 2812 IFS=$as_save_IFS 2813 test -z "$as_dir" && as_dir=. 2814 for ac_exec_ext in '' $ac_executable_extensions; do 2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2816 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2818 break 2 2819 fi 2820 done 2821 done 2822 IFS=$as_save_IFS 2823 2824 fi 2825 fi 2826 CC=$ac_cv_prog_CC 2827 if test -n "$CC"; then 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2829 $as_echo "$CC" >&6; } 2830 else 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2832 $as_echo "no" >&6; } 2833 fi 2834 2835 2836 fi 2837 if test -z "$ac_cv_prog_CC"; then 2838 ac_ct_CC=$CC 2839 # Extract the first word of "gcc", so it can be a program name with args. 2840 set dummy gcc; ac_word=$2 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2842 $as_echo_n "checking for $ac_word... " >&6; } 2843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2844 $as_echo_n "(cached) " >&6 2845 else 2846 if test -n "$ac_ct_CC"; then 2847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2848 else 2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2850 for as_dir in $PATH 2851 do 2852 IFS=$as_save_IFS 2853 test -z "$as_dir" && as_dir=. 2854 for ac_exec_ext in '' $ac_executable_extensions; do 2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2856 ac_cv_prog_ac_ct_CC="gcc" 2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2858 break 2 2859 fi 2860 done 2861 done 2862 IFS=$as_save_IFS 2863 2864 fi 2865 fi 2866 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2867 if test -n "$ac_ct_CC"; then 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2869 $as_echo "$ac_ct_CC" >&6; } 2870 else 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2872 $as_echo "no" >&6; } 2873 fi 2874 2875 if test "x$ac_ct_CC" = x; then 2876 CC="" 2877 else 2878 case $cross_compiling:$ac_tool_warned in 2879 yes:) 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2882 ac_tool_warned=yes ;; 2883 esac 2884 CC=$ac_ct_CC 2885 fi 2886 else 2887 CC="$ac_cv_prog_CC" 2888 fi 2889 2890 if test -z "$CC"; then 2891 if test -n "$ac_tool_prefix"; then 2892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2893 set dummy ${ac_tool_prefix}cc; ac_word=$2 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2895 $as_echo_n "checking for $ac_word... " >&6; } 2896 if test "${ac_cv_prog_CC+set}" = set; then : 2897 $as_echo_n "(cached) " >&6 2898 else 2899 if test -n "$CC"; then 2900 ac_cv_prog_CC="$CC" # Let the user override the test. 2901 else 2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903 for as_dir in $PATH 2904 do 2905 IFS=$as_save_IFS 2906 test -z "$as_dir" && as_dir=. 2907 for ac_exec_ext in '' $ac_executable_extensions; do 2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2909 ac_cv_prog_CC="${ac_tool_prefix}cc" 2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2911 break 2 2912 fi 2913 done 2914 done 2915 IFS=$as_save_IFS 2916 2917 fi 2918 fi 2919 CC=$ac_cv_prog_CC 2920 if test -n "$CC"; then 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2922 $as_echo "$CC" >&6; } 2923 else 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2925 $as_echo "no" >&6; } 2926 fi 2927 2928 2929 fi 2930 fi 2931 if test -z "$CC"; then 2932 # Extract the first word of "cc", so it can be a program name with args. 2933 set dummy cc; ac_word=$2 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2935 $as_echo_n "checking for $ac_word... " >&6; } 2936 if test "${ac_cv_prog_CC+set}" = set; then : 2937 $as_echo_n "(cached) " >&6 2938 else 2939 if test -n "$CC"; then 2940 ac_cv_prog_CC="$CC" # Let the user override the test. 2941 else 2942 ac_prog_rejected=no 2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2944 for as_dir in $PATH 2945 do 2946 IFS=$as_save_IFS 2947 test -z "$as_dir" && as_dir=. 2948 for ac_exec_ext in '' $ac_executable_extensions; do 2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2951 ac_prog_rejected=yes 2952 continue 2953 fi 2954 ac_cv_prog_CC="cc" 2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2956 break 2 2957 fi 2958 done 2959 done 2960 IFS=$as_save_IFS 2961 2962 if test $ac_prog_rejected = yes; then 2963 # We found a bogon in the path, so make sure we never use it. 2964 set dummy $ac_cv_prog_CC 2965 shift 2966 if test $# != 0; then 2967 # We chose a different compiler from the bogus one. 2968 # However, it has the same basename, so the bogon will be chosen 2969 # first if we set CC to just the basename; use the full file name. 2970 shift 2971 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2972 fi 2973 fi 2974 fi 2975 fi 2976 CC=$ac_cv_prog_CC 2977 if test -n "$CC"; then 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2979 $as_echo "$CC" >&6; } 2980 else 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2982 $as_echo "no" >&6; } 2983 fi 2984 2985 2986 fi 2987 if test -z "$CC"; then 2988 if test -n "$ac_tool_prefix"; then 2989 for ac_prog in cl.exe 2990 do 2991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2994 $as_echo_n "checking for $ac_word... " >&6; } 2995 if test "${ac_cv_prog_CC+set}" = set; then : 2996 $as_echo_n "(cached) " >&6 2997 else 2998 if test -n "$CC"; then 2999 ac_cv_prog_CC="$CC" # Let the user override the test. 3000 else 3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3002 for as_dir in $PATH 3003 do 3004 IFS=$as_save_IFS 3005 test -z "$as_dir" && as_dir=. 3006 for ac_exec_ext in '' $ac_executable_extensions; do 3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3008 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3010 break 2 3011 fi 3012 done 3013 done 3014 IFS=$as_save_IFS 3015 3016 fi 3017 fi 3018 CC=$ac_cv_prog_CC 3019 if test -n "$CC"; then 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3021 $as_echo "$CC" >&6; } 3022 else 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3024 $as_echo "no" >&6; } 3025 fi 3026 3027 3028 test -n "$CC" && break 3029 done 3030 fi 3031 if test -z "$CC"; then 3032 ac_ct_CC=$CC 3033 for ac_prog in cl.exe 3034 do 3035 # Extract the first word of "$ac_prog", so it can be a program name with args. 3036 set dummy $ac_prog; ac_word=$2 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3038 $as_echo_n "checking for $ac_word... " >&6; } 3039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3040 $as_echo_n "(cached) " >&6 3041 else 3042 if test -n "$ac_ct_CC"; then 3043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3044 else 3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3046 for as_dir in $PATH 3047 do 3048 IFS=$as_save_IFS 3049 test -z "$as_dir" && as_dir=. 3050 for ac_exec_ext in '' $ac_executable_extensions; do 3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3052 ac_cv_prog_ac_ct_CC="$ac_prog" 3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3054 break 2 3055 fi 3056 done 3057 done 3058 IFS=$as_save_IFS 3059 3060 fi 3061 fi 3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3063 if test -n "$ac_ct_CC"; then 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3065 $as_echo "$ac_ct_CC" >&6; } 3066 else 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3068 $as_echo "no" >&6; } 3069 fi 3070 3071 3072 test -n "$ac_ct_CC" && break 3073 done 3074 3075 if test "x$ac_ct_CC" = x; then 3076 CC="" 3077 else 3078 case $cross_compiling:$ac_tool_warned in 3079 yes:) 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3082 ac_tool_warned=yes ;; 3083 esac 3084 CC=$ac_ct_CC 3085 fi 3086 fi 3087 3088 fi 3089 3090 3091 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3093 as_fn_error "no acceptable C compiler found in \$PATH 3094 See \`config.log' for more details." "$LINENO" 5; } 3095 3096 # Provide some information about the compiler. 3097 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3098 set X $ac_compile 3099 ac_compiler=$2 3100 for ac_option in --version -v -V -qversion; do 3101 { { ac_try="$ac_compiler $ac_option >&5" 3102 case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105 esac 3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3107 $as_echo "$ac_try_echo"; } >&5 3108 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3109 ac_status=$? 3110 if test -s conftest.err; then 3111 sed '10a\ 3112 ... rest of stderr output deleted ... 3113 10q' conftest.err >conftest.er1 3114 cat conftest.er1 >&5 3115 fi 3116 rm -f conftest.er1 conftest.err 3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3118 test $ac_status = 0; } 3119 done 3120 3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3122 /* end confdefs.h. */ 3123 3124 int 3125 main () 3126 { 3127 3128 ; 3129 return 0; 3130 } 3131 _ACEOF 3132 ac_clean_files_save=$ac_clean_files 3133 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3134 # Try to create an executable without -o first, disregard a.out. 3135 # It will help us diagnose broken compilers, and finding out an intuition 3136 # of exeext. 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3138 $as_echo_n "checking whether the C compiler works... " >&6; } 3139 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3140 3141 # The possible output files: 3142 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3143 3144 ac_rmfiles= 3145 for ac_file in $ac_files 3146 do 3147 case $ac_file in 3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3149 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3150 esac 3151 done 3152 rm -f $ac_rmfiles 3153 3154 if { { ac_try="$ac_link_default" 3155 case "(($ac_try" in 3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3157 *) ac_try_echo=$ac_try;; 3158 esac 3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3160 $as_echo "$ac_try_echo"; } >&5 3161 (eval "$ac_link_default") 2>&5 3162 ac_status=$? 3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3164 test $ac_status = 0; }; then : 3165 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3166 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3167 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3168 # so that the user can short-circuit this test for compilers unknown to 3169 # Autoconf. 3170 for ac_file in $ac_files '' 3171 do 3172 test -f "$ac_file" || continue 3173 case $ac_file in 3174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3175 ;; 3176 [ab].out ) 3177 # We found the default executable, but exeext='' is most 3178 # certainly right. 3179 break;; 3180 *.* ) 3181 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3182 then :; else 3183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3184 fi 3185 # We set ac_cv_exeext here because the later test for it is not 3186 # safe: cross compilers may not add the suffix if given an `-o' 3187 # argument, so we may need to know it at that point already. 3188 # Even if this section looks crufty: it has the advantage of 3189 # actually working. 3190 break;; 3191 * ) 3192 break;; 3193 esac 3194 done 3195 test "$ac_cv_exeext" = no && ac_cv_exeext= 3196 3197 else 3198 ac_file='' 3199 fi 3200 if test -z "$ac_file"; then : 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3202 $as_echo "no" >&6; } 3203 $as_echo "$as_me: failed program was:" >&5 3204 sed 's/^/| /' conftest.$ac_ext >&5 3205 3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3208 { as_fn_set_status 77 3209 as_fn_error "C compiler cannot create executables 3210 See \`config.log' for more details." "$LINENO" 5; }; } 3211 else 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3213 $as_echo "yes" >&6; } 3214 fi 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3216 $as_echo_n "checking for C compiler default output file name... " >&6; } 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3218 $as_echo "$ac_file" >&6; } 3219 ac_exeext=$ac_cv_exeext 3220 3221 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3222 ac_clean_files=$ac_clean_files_save 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3224 $as_echo_n "checking for suffix of executables... " >&6; } 3225 if { { ac_try="$ac_link" 3226 case "(($ac_try" in 3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3228 *) ac_try_echo=$ac_try;; 3229 esac 3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3231 $as_echo "$ac_try_echo"; } >&5 3232 (eval "$ac_link") 2>&5 3233 ac_status=$? 3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3235 test $ac_status = 0; }; then : 3236 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3237 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3238 # work properly (i.e., refer to `conftest.exe'), while it won't with 3239 # `rm'. 3240 for ac_file in conftest.exe conftest conftest.*; do 3241 test -f "$ac_file" || continue 3242 case $ac_file in 3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3244 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3245 break;; 3246 * ) break;; 3247 esac 3248 done 3249 else 3250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3252 as_fn_error "cannot compute suffix of executables: cannot compile and link 3253 See \`config.log' for more details." "$LINENO" 5; } 3254 fi 3255 rm -f conftest conftest$ac_cv_exeext 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3257 $as_echo "$ac_cv_exeext" >&6; } 3258 3259 rm -f conftest.$ac_ext 3260 EXEEXT=$ac_cv_exeext 3261 ac_exeext=$EXEEXT 3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3263 /* end confdefs.h. */ 3264 #include <stdio.h> 3265 int 3266 main () 3267 { 3268 FILE *f = fopen ("conftest.out", "w"); 3269 return ferror (f) || fclose (f) != 0; 3270 3271 ; 3272 return 0; 3273 } 3274 _ACEOF 3275 ac_clean_files="$ac_clean_files conftest.out" 3276 # Check that the compiler produces executables we can run. If not, either 3277 # the compiler is broken, or we cross compile. 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3279 $as_echo_n "checking whether we are cross compiling... " >&6; } 3280 if test "$cross_compiling" != yes; then 3281 { { ac_try="$ac_link" 3282 case "(($ac_try" in 3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3284 *) ac_try_echo=$ac_try;; 3285 esac 3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3287 $as_echo "$ac_try_echo"; } >&5 3288 (eval "$ac_link") 2>&5 3289 ac_status=$? 3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3291 test $ac_status = 0; } 3292 if { ac_try='./conftest$ac_cv_exeext' 3293 { { case "(($ac_try" in 3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3295 *) ac_try_echo=$ac_try;; 3296 esac 3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3298 $as_echo "$ac_try_echo"; } >&5 3299 (eval "$ac_try") 2>&5 3300 ac_status=$? 3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3302 test $ac_status = 0; }; }; then 3303 cross_compiling=no 3304 else 3305 if test "$cross_compiling" = maybe; then 3306 cross_compiling=yes 3307 else 3308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3310 as_fn_error "cannot run C compiled programs. 3311 If you meant to cross compile, use \`--host'. 3312 See \`config.log' for more details." "$LINENO" 5; } 3313 fi 3314 fi 3315 fi 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3317 $as_echo "$cross_compiling" >&6; } 3318 3319 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3320 ac_clean_files=$ac_clean_files_save 3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3322 $as_echo_n "checking for suffix of object files... " >&6; } 3323 if test "${ac_cv_objext+set}" = set; then : 3324 $as_echo_n "(cached) " >&6 3325 else 3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3327 /* end confdefs.h. */ 3328 3329 int 3330 main () 3331 { 3332 3333 ; 3334 return 0; 3335 } 3336 _ACEOF 3337 rm -f conftest.o conftest.obj 3338 if { { ac_try="$ac_compile" 3339 case "(($ac_try" in 3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3341 *) ac_try_echo=$ac_try;; 3342 esac 3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3344 $as_echo "$ac_try_echo"; } >&5 3345 (eval "$ac_compile") 2>&5 3346 ac_status=$? 3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3348 test $ac_status = 0; }; then : 3349 for ac_file in conftest.o conftest.obj conftest.*; do 3350 test -f "$ac_file" || continue; 3351 case $ac_file in 3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3353 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3354 break;; 3355 esac 3356 done 3357 else 3358 $as_echo "$as_me: failed program was:" >&5 3359 sed 's/^/| /' conftest.$ac_ext >&5 3360 3361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3363 as_fn_error "cannot compute suffix of object files: cannot compile 3364 See \`config.log' for more details." "$LINENO" 5; } 3365 fi 3366 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3367 fi 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3369 $as_echo "$ac_cv_objext" >&6; } 3370 OBJEXT=$ac_cv_objext 3371 ac_objext=$OBJEXT 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3373 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3374 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3375 $as_echo_n "(cached) " >&6 3376 else 3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3378 /* end confdefs.h. */ 3379 3380 int 3381 main () 3382 { 3383 #ifndef __GNUC__ 3384 choke me 3385 #endif 3386 3387 ; 3388 return 0; 3389 } 3390 _ACEOF 3391 if ac_fn_c_try_compile "$LINENO"; then : 3392 ac_compiler_gnu=yes 3393 else 3394 ac_compiler_gnu=no 3395 fi 3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3397 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3398 3399 fi 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3401 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3402 if test $ac_compiler_gnu = yes; then 3403 GCC=yes 3404 else 3405 GCC= 3406 fi 3407 ac_test_CFLAGS=${CFLAGS+set} 3408 ac_save_CFLAGS=$CFLAGS 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3410 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3411 if test "${ac_cv_prog_cc_g+set}" = set; then : 3412 $as_echo_n "(cached) " >&6 3413 else 3414 ac_save_c_werror_flag=$ac_c_werror_flag 3415 ac_c_werror_flag=yes 3416 ac_cv_prog_cc_g=no 3417 CFLAGS="-g" 3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3419 /* end confdefs.h. */ 3420 3421 int 3422 main () 3423 { 3424 3425 ; 3426 return 0; 3427 } 3428 _ACEOF 3429 if ac_fn_c_try_compile "$LINENO"; then : 3430 ac_cv_prog_cc_g=yes 3431 else 3432 CFLAGS="" 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3434 /* end confdefs.h. */ 3435 3436 int 3437 main () 3438 { 3439 3440 ; 3441 return 0; 3442 } 3443 _ACEOF 3444 if ac_fn_c_try_compile "$LINENO"; then : 3445 3446 else 3447 ac_c_werror_flag=$ac_save_c_werror_flag 3448 CFLAGS="-g" 3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3450 /* end confdefs.h. */ 3451 3452 int 3453 main () 3454 { 3455 3456 ; 3457 return 0; 3458 } 3459 _ACEOF 3460 if ac_fn_c_try_compile "$LINENO"; then : 3461 ac_cv_prog_cc_g=yes 3462 fi 3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3464 fi 3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3466 fi 3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3468 ac_c_werror_flag=$ac_save_c_werror_flag 3469 fi 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3471 $as_echo "$ac_cv_prog_cc_g" >&6; } 3472 if test "$ac_test_CFLAGS" = set; then 3473 CFLAGS=$ac_save_CFLAGS 3474 elif test $ac_cv_prog_cc_g = yes; then 3475 if test "$GCC" = yes; then 3476 CFLAGS="-g -O2" 3477 else 3478 CFLAGS="-g" 3479 fi 3480 else 3481 if test "$GCC" = yes; then 3482 CFLAGS="-O2" 3483 else 3484 CFLAGS= 3485 fi 3486 fi 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3488 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3489 if test "${ac_cv_prog_cc_c89+set}" = set; then : 3490 $as_echo_n "(cached) " >&6 3491 else 3492 ac_cv_prog_cc_c89=no 3493 ac_save_CC=$CC 3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3495 /* end confdefs.h. */ 3496 #include <stdarg.h> 3497 #include <stdio.h> 3498 #include <sys/types.h> 3499 #include <sys/stat.h> 3500 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3501 struct buf { int x; }; 3502 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3503 static char *e (p, i) 3504 char **p; 3505 int i; 3506 { 3507 return p[i]; 3508 } 3509 static char *f (char * (*g) (char **, int), char **p, ...) 3510 { 3511 char *s; 3512 va_list v; 3513 va_start (v,p); 3514 s = g (p, va_arg (v,int)); 3515 va_end (v); 3516 return s; 3517 } 3518 3519 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3520 function prototypes and stuff, but not '\xHH' hex character constants. 3521 These don't provoke an error unfortunately, instead are silently treated 3522 as 'x'. The following induces an error, until -std is added to get 3523 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3524 array size at least. It's necessary to write '\x00'==0 to get something 3525 that's true only with -std. */ 3526 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3527 3528 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3529 inside strings and character constants. */ 3530 #define FOO(x) 'x' 3531 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3532 3533 int test (int i, double x); 3534 struct s1 {int (*f) (int a);}; 3535 struct s2 {int (*f) (double a);}; 3536 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3537 int argc; 3538 char **argv; 3539 int 3540 main () 3541 { 3542 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3543 ; 3544 return 0; 3545 } 3546 _ACEOF 3547 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3548 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3549 do 3550 CC="$ac_save_CC $ac_arg" 3551 if ac_fn_c_try_compile "$LINENO"; then : 3552 ac_cv_prog_cc_c89=$ac_arg 3553 fi 3554 rm -f core conftest.err conftest.$ac_objext 3555 test "x$ac_cv_prog_cc_c89" != "xno" && break 3556 done 3557 rm -f conftest.$ac_ext 3558 CC=$ac_save_CC 3559 3560 fi 3561 # AC_CACHE_VAL 3562 case "x$ac_cv_prog_cc_c89" in 3563 x) 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3565 $as_echo "none needed" >&6; } ;; 3566 xno) 3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3568 $as_echo "unsupported" >&6; } ;; 3569 *) 3570 CC="$CC $ac_cv_prog_cc_c89" 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3572 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3573 esac 3574 if test "x$ac_cv_prog_cc_c89" != xno; then : 3575 3576 fi 3577 3578 ac_ext=c 3579 ac_cpp='$CPP $CPPFLAGS' 3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3583 DEPDIR="${am__leading_dot}deps" 3584 3585 ac_config_commands="$ac_config_commands depfiles" 3586 3587 3588 am_make=${MAKE-make} 3589 cat > confinc << 'END' 3590 am__doit: 3591 @echo done 3592 .PHONY: am__doit 3593 END 3594 # If we don't find an include directive, just comment out the code. 3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3596 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3597 am__include="#" 3598 am__quote= 3599 _am_result=none 3600 # First try GNU make style include. 3601 echo "include confinc" > confmf 3602 # We grep out `Entering directory' and `Leaving directory' 3603 # messages which can occur if `w' ends up in MAKEFLAGS. 3604 # In particular we don't look at `^make:' because GNU make might 3605 # be invoked under some other name (usually "gmake"), in which 3606 # case it prints its new name instead of `make'. 3607 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3608 am__include=include 3609 am__quote= 3610 _am_result=GNU 3611 fi 3612 # Now try BSD make style include. 3613 if test "$am__include" = "#"; then 3614 echo '.include "confinc"' > confmf 3615 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3616 am__include=.include 3617 am__quote="\"" 3618 _am_result=BSD 3619 fi 3620 fi 3621 3622 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3624 $as_echo "$_am_result" >&6; } 3625 rm -f confinc confmf 3626 3627 # Check whether --enable-dependency-tracking was given. 3628 if test "${enable_dependency_tracking+set}" = set; then : 3629 enableval=$enable_dependency_tracking; 3630 fi 3631 3632 if test "x$enable_dependency_tracking" != xno; then 3633 am_depcomp="$ac_aux_dir/depcomp" 3634 AMDEPBACKSLASH='\' 3635 fi 3636 3637 3638 if test "x$enable_dependency_tracking" != xno; then 3639 AMDEP_TRUE= 3640 AMDEP_FALSE='#' 3641 else 3642 AMDEP_TRUE='#' 3643 AMDEP_FALSE= 3644 fi 3645 3646 3647 3648 3649 depcc="$CC" am_compiler_list= 3650 3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3652 $as_echo_n "checking dependency style of $depcc... " >&6; } 3653 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3654 $as_echo_n "(cached) " >&6 3655 else 3656 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3657 # We make a subdir and do the tests there. Otherwise we can end up 3658 # making bogus files that we don't know about and never remove. For 3659 # instance it was reported that on HP-UX the gcc test will end up 3660 # making a dummy file named `D' -- because `-MD' means `put the output 3661 # in D'. 3662 mkdir conftest.dir 3663 # Copy depcomp to subdir because otherwise we won't find it if we're 3664 # using a relative directory. 3665 cp "$am_depcomp" conftest.dir 3666 cd conftest.dir 3667 # We will build objects and dependencies in a subdirectory because 3668 # it helps to detect inapplicable dependency modes. For instance 3669 # both Tru64's cc and ICC support -MD to output dependencies as a 3670 # side effect of compilation, but ICC will put the dependencies in 3671 # the current directory while Tru64 will put them in the object 3672 # directory. 3673 mkdir sub 3674 3675 am_cv_CC_dependencies_compiler_type=none 3676 if test "$am_compiler_list" = ""; then 3677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3678 fi 3679 for depmode in $am_compiler_list; do 3680 # Setup a source with many dependencies, because some compilers 3681 # like to wrap large dependency lists on column 80 (with \), and 3682 # we should not choose a depcomp mode which is confused by this. 3683 # 3684 # We need to recreate these files for each test, as the compiler may 3685 # overwrite some of them when testing with obscure command lines. 3686 # This happens at least with the AIX C compiler. 3687 : > sub/conftest.c 3688 for i in 1 2 3 4 5 6; do 3689 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3690 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3691 # Solaris 8's {/usr,}/bin/sh. 3692 touch sub/conftst$i.h 3693 done 3694 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3695 3696 case $depmode in 3697 nosideeffect) 3698 # after this tag, mechanisms are not by side-effect, so they'll 3699 # only be used when explicitly requested 3700 if test "x$enable_dependency_tracking" = xyes; then 3701 continue 3702 else 3703 break 3704 fi 3705 ;; 3706 none) break ;; 3707 esac 3708 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3709 # mode. It turns out that the SunPro C++ compiler does not properly 3710 # handle `-M -o', and we need to detect this. 3711 if depmode=$depmode \ 3712 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3714 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3715 >/dev/null 2>conftest.err && 3716 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3717 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3718 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3719 # icc doesn't choke on unknown options, it will just issue warnings 3720 # or remarks (even with -Werror). So we grep stderr for any message 3721 # that says an option was ignored or not supported. 3722 # When given -MP, icc 7.0 and 7.1 complain thusly: 3723 # icc: Command line warning: ignoring option '-M'; no argument required 3724 # The diagnosis changed in icc 8.0: 3725 # icc: Command line remark: option '-MP' not supported 3726 if (grep 'ignoring option' conftest.err || 3727 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3728 am_cv_CC_dependencies_compiler_type=$depmode 3729 break 3730 fi 3731 fi 3732 done 3733 3734 cd .. 3735 rm -rf conftest.dir 3736 else 3737 am_cv_CC_dependencies_compiler_type=none 3738 fi 3739 3740 fi 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3742 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3743 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3744 3745 3746 3747 if 3748 test "x$enable_dependency_tracking" != xno \ 3749 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3750 am__fastdepCC_TRUE= 3751 am__fastdepCC_FALSE='#' 3752 else 3753 am__fastdepCC_TRUE='#' 3754 am__fastdepCC_FALSE= 3755 fi 3756 3757 3758 3759 if test -n "$ac_tool_prefix"; then 3760 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3761 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3763 $as_echo_n "checking for $ac_word... " >&6; } 3764 if test "${ac_cv_prog_RANLIB+set}" = set; then : 3765 $as_echo_n "(cached) " >&6 3766 else 3767 if test -n "$RANLIB"; then 3768 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3769 else 3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3771 for as_dir in $PATH 3772 do 3773 IFS=$as_save_IFS 3774 test -z "$as_dir" && as_dir=. 3775 for ac_exec_ext in '' $ac_executable_extensions; do 3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3777 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3779 break 2 3780 fi 3781 done 3782 done 3783 IFS=$as_save_IFS 3784 3785 fi 3786 fi 3787 RANLIB=$ac_cv_prog_RANLIB 3788 if test -n "$RANLIB"; then 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3790 $as_echo "$RANLIB" >&6; } 3791 else 3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3793 $as_echo "no" >&6; } 3794 fi 3795 3796 3797 fi 3798 if test -z "$ac_cv_prog_RANLIB"; then 3799 ac_ct_RANLIB=$RANLIB 3800 # Extract the first word of "ranlib", so it can be a program name with args. 3801 set dummy ranlib; ac_word=$2 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3803 $as_echo_n "checking for $ac_word... " >&6; } 3804 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 3805 $as_echo_n "(cached) " >&6 3806 else 3807 if test -n "$ac_ct_RANLIB"; then 3808 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3809 else 3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3811 for as_dir in $PATH 3812 do 3813 IFS=$as_save_IFS 3814 test -z "$as_dir" && as_dir=. 3815 for ac_exec_ext in '' $ac_executable_extensions; do 3816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3817 ac_cv_prog_ac_ct_RANLIB="ranlib" 3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3819 break 2 3820 fi 3821 done 3822 done 3823 IFS=$as_save_IFS 3824 3825 fi 3826 fi 3827 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3828 if test -n "$ac_ct_RANLIB"; then 3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3830 $as_echo "$ac_ct_RANLIB" >&6; } 3831 else 3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3833 $as_echo "no" >&6; } 3834 fi 3835 3836 if test "x$ac_ct_RANLIB" = x; then 3837 RANLIB=":" 3838 else 3839 case $cross_compiling:$ac_tool_warned in 3840 yes:) 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3843 ac_tool_warned=yes ;; 3844 esac 3845 RANLIB=$ac_ct_RANLIB 3846 fi 3847 else 3848 RANLIB="$ac_cv_prog_RANLIB" 3849 fi 3850 3851 ac_ext=c 3852 ac_cpp='$CPP $CPPFLAGS' 3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3857 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3858 # On Suns, sometimes $CPP names a directory. 3859 if test -n "$CPP" && test -d "$CPP"; then 3860 CPP= 3861 fi 3862 if test -z "$CPP"; then 3863 if test "${ac_cv_prog_CPP+set}" = set; then : 3864 $as_echo_n "(cached) " >&6 3865 else 3866 # Double quotes because CPP needs to be expanded 3867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3868 do 3869 ac_preproc_ok=false 3870 for ac_c_preproc_warn_flag in '' yes 3871 do 3872 # Use a header file that comes with gcc, so configuring glibc 3873 # with a fresh cross-compiler works. 3874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3875 # <limits.h> exists even on freestanding compilers. 3876 # On the NeXT, cc -E runs the code through the compiler's parser, 3877 # not just through cpp. "Syntax error" is here to catch this case. 3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3879 /* end confdefs.h. */ 3880 #ifdef __STDC__ 3881 # include <limits.h> 3882 #else 3883 # include <assert.h> 3884 #endif 3885 Syntax error 3886 _ACEOF 3887 if ac_fn_c_try_cpp "$LINENO"; then : 3888 3889 else 3890 # Broken: fails on valid input. 3891 continue 3892 fi 3893 rm -f conftest.err conftest.$ac_ext 3894 3895 # OK, works on sane cases. Now check whether nonexistent headers 3896 # can be detected and how. 3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898 /* end confdefs.h. */ 3899 #include <ac_nonexistent.h> 3900 _ACEOF 3901 if ac_fn_c_try_cpp "$LINENO"; then : 3902 # Broken: success on invalid input. 3903 continue 3904 else 3905 # Passes both tests. 3906 ac_preproc_ok=: 3907 break 3908 fi 3909 rm -f conftest.err conftest.$ac_ext 3910 3911 done 3912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3913 rm -f conftest.err conftest.$ac_ext 3914 if $ac_preproc_ok; then : 3915 break 3916 fi 3917 3918 done 3919 ac_cv_prog_CPP=$CPP 3920 3921 fi 3922 CPP=$ac_cv_prog_CPP 3923 else 3924 ac_cv_prog_CPP=$CPP 3925 fi 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3927 $as_echo "$CPP" >&6; } 3928 ac_preproc_ok=false 3929 for ac_c_preproc_warn_flag in '' yes 3930 do 3931 # Use a header file that comes with gcc, so configuring glibc 3932 # with a fresh cross-compiler works. 3933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3934 # <limits.h> exists even on freestanding compilers. 3935 # On the NeXT, cc -E runs the code through the compiler's parser, 3936 # not just through cpp. "Syntax error" is here to catch this case. 3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938 /* end confdefs.h. */ 3939 #ifdef __STDC__ 3940 # include <limits.h> 3941 #else 3942 # include <assert.h> 3943 #endif 3944 Syntax error 3945 _ACEOF 3946 if ac_fn_c_try_cpp "$LINENO"; then : 3947 3948 else 3949 # Broken: fails on valid input. 3950 continue 3951 fi 3952 rm -f conftest.err conftest.$ac_ext 3953 3954 # OK, works on sane cases. Now check whether nonexistent headers 3955 # can be detected and how. 3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3957 /* end confdefs.h. */ 3958 #include <ac_nonexistent.h> 3959 _ACEOF 3960 if ac_fn_c_try_cpp "$LINENO"; then : 3961 # Broken: success on invalid input. 3962 continue 3963 else 3964 # Passes both tests. 3965 ac_preproc_ok=: 3966 break 3967 fi 3968 rm -f conftest.err conftest.$ac_ext 3969 3970 done 3971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3972 rm -f conftest.err conftest.$ac_ext 3973 if $ac_preproc_ok; then : 3974 3975 else 3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3978 as_fn_error "C preprocessor \"$CPP\" fails sanity check 3979 See \`config.log' for more details." "$LINENO" 5; } 3980 fi 3981 3982 ac_ext=c 3983 ac_cpp='$CPP $CPPFLAGS' 3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3987 3988 # Extract the first word of "ar", so it can be a program name with args. 3989 set dummy ar; ac_word=$2 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3991 $as_echo_n "checking for $ac_word... " >&6; } 3992 if test "${ac_cv_prog_AR+set}" = set; then : 3993 $as_echo_n "(cached) " >&6 3994 else 3995 if test -n "$AR"; then 3996 ac_cv_prog_AR="$AR" # Let the user override the test. 3997 else 3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3999 for as_dir in $PATH 4000 do 4001 IFS=$as_save_IFS 4002 test -z "$as_dir" && as_dir=. 4003 for ac_exec_ext in '' $ac_executable_extensions; do 4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4005 ac_cv_prog_AR="ar" 4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4007 break 2 4008 fi 4009 done 4010 done 4011 IFS=$as_save_IFS 4012 4013 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 4014 fi 4015 fi 4016 AR=$ac_cv_prog_AR 4017 if test -n "$AR"; then 4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4019 $as_echo "$AR" >&6; } 4020 else 4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4022 $as_echo "no" >&6; } 4023 fi 4024 4025 4026 # Perl is needed for the test suite (only) 4027 # Extract the first word of "perl", so it can be a program name with args. 4028 set dummy perl; ac_word=$2 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4030 $as_echo_n "checking for $ac_word... " >&6; } 4031 if test "${ac_cv_prog_PERL+set}" = set; then : 4032 $as_echo_n "(cached) " >&6 4033 else 4034 if test -n "$PERL"; then 4035 ac_cv_prog_PERL="$PERL" # Let the user override the test. 4036 else 4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4038 for as_dir in $PATH 4039 do 4040 IFS=$as_save_IFS 4041 test -z "$as_dir" && as_dir=. 4042 for ac_exec_ext in '' $ac_executable_extensions; do 4043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4044 ac_cv_prog_PERL="perl" 4045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4046 break 2 4047 fi 4048 done 4049 done 4050 IFS=$as_save_IFS 4051 4052 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl" 4053 fi 4054 fi 4055 PERL=$ac_cv_prog_PERL 4056 if test -n "$PERL"; then 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 4058 $as_echo "$PERL" >&6; } 4059 else 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4061 $as_echo "no" >&6; } 4062 fi 4063 4064 4065 4066 # Specialized system macros 4067 # Make sure we can run config.sub. 4068 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4069 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4070 4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4072 $as_echo_n "checking build system type... " >&6; } 4073 if test "${ac_cv_build+set}" = set; then : 4074 $as_echo_n "(cached) " >&6 4075 else 4076 ac_build_alias=$build_alias 4077 test "x$ac_build_alias" = x && 4078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4079 test "x$ac_build_alias" = x && 4080 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4082 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4083 4084 fi 4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4086 $as_echo "$ac_cv_build" >&6; } 4087 case $ac_cv_build in 4088 *-*-*) ;; 4089 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4090 esac 4091 build=$ac_cv_build 4092 ac_save_IFS=$IFS; IFS='-' 4093 set x $ac_cv_build 4094 shift 4095 build_cpu=$1 4096 build_vendor=$2 4097 shift; shift 4098 # Remember, the first character of IFS is used to create $*, 4099 # except with old shells: 4100 build_os=$* 4101 IFS=$ac_save_IFS 4102 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4103 4104 4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4106 $as_echo_n "checking host system type... " >&6; } 4107 if test "${ac_cv_host+set}" = set; then : 4108 $as_echo_n "(cached) " >&6 4109 else 4110 if test "x$host_alias" = x; then 4111 ac_cv_host=$ac_cv_build 4112 else 4113 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4114 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4115 fi 4116 4117 fi 4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4119 $as_echo "$ac_cv_host" >&6; } 4120 case $ac_cv_host in 4121 *-*-*) ;; 4122 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 4123 esac 4124 host=$ac_cv_host 4125 ac_save_IFS=$IFS; IFS='-' 4126 set x $ac_cv_host 4127 shift 4128 host_cpu=$1 4129 host_vendor=$2 4130 shift; shift 4131 # Remember, the first character of IFS is used to create $*, 4132 # except with old shells: 4133 host_os=$* 4134 IFS=$ac_save_IFS 4135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4136 4137 4138 4139 4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4141 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4142 if test "${ac_cv_path_GREP+set}" = set; then : 4143 $as_echo_n "(cached) " >&6 4144 else 4145 if test -z "$GREP"; then 4146 ac_path_GREP_found=false 4147 # Loop through the user's path and test for each of PROGNAME-LIST 4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4149 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4150 do 4151 IFS=$as_save_IFS 4152 test -z "$as_dir" && as_dir=. 4153 for ac_prog in grep ggrep; do 4154 for ac_exec_ext in '' $ac_executable_extensions; do 4155 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4156 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4157 # Check for GNU ac_path_GREP and select it if it is found. 4158 # Check for GNU $ac_path_GREP 4159 case `"$ac_path_GREP" --version 2>&1` in 4160 *GNU*) 4161 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4162 *) 4163 ac_count=0 4164 $as_echo_n 0123456789 >"conftest.in" 4165 while : 4166 do 4167 cat "conftest.in" "conftest.in" >"conftest.tmp" 4168 mv "conftest.tmp" "conftest.in" 4169 cp "conftest.in" "conftest.nl" 4170 $as_echo 'GREP' >> "conftest.nl" 4171 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4173 as_fn_arith $ac_count + 1 && ac_count=$as_val 4174 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4175 # Best one so far, save it but keep looking for a better one 4176 ac_cv_path_GREP="$ac_path_GREP" 4177 ac_path_GREP_max=$ac_count 4178 fi 4179 # 10*(2^10) chars as input seems more than enough 4180 test $ac_count -gt 10 && break 4181 done 4182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4183 esac 4184 4185 $ac_path_GREP_found && break 3 4186 done 4187 done 4188 done 4189 IFS=$as_save_IFS 4190 if test -z "$ac_cv_path_GREP"; then 4191 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4192 fi 4193 else 4194 ac_cv_path_GREP=$GREP 4195 fi 4196 4197 fi 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4199 $as_echo "$ac_cv_path_GREP" >&6; } 4200 GREP="$ac_cv_path_GREP" 4201 4202 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4204 $as_echo_n "checking for egrep... " >&6; } 4205 if test "${ac_cv_path_EGREP+set}" = set; then : 4206 $as_echo_n "(cached) " >&6 4207 else 4208 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4209 then ac_cv_path_EGREP="$GREP -E" 4210 else 4211 if test -z "$EGREP"; then 4212 ac_path_EGREP_found=false 4213 # Loop through the user's path and test for each of PROGNAME-LIST 4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4216 do 4217 IFS=$as_save_IFS 4218 test -z "$as_dir" && as_dir=. 4219 for ac_prog in egrep; do 4220 for ac_exec_ext in '' $ac_executable_extensions; do 4221 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4222 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4223 # Check for GNU ac_path_EGREP and select it if it is found. 4224 # Check for GNU $ac_path_EGREP 4225 case `"$ac_path_EGREP" --version 2>&1` in 4226 *GNU*) 4227 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4228 *) 4229 ac_count=0 4230 $as_echo_n 0123456789 >"conftest.in" 4231 while : 4232 do 4233 cat "conftest.in" "conftest.in" >"conftest.tmp" 4234 mv "conftest.tmp" "conftest.in" 4235 cp "conftest.in" "conftest.nl" 4236 $as_echo 'EGREP' >> "conftest.nl" 4237 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4239 as_fn_arith $ac_count + 1 && ac_count=$as_val 4240 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4241 # Best one so far, save it but keep looking for a better one 4242 ac_cv_path_EGREP="$ac_path_EGREP" 4243 ac_path_EGREP_max=$ac_count 4244 fi 4245 # 10*(2^10) chars as input seems more than enough 4246 test $ac_count -gt 10 && break 4247 done 4248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4249 esac 4250 4251 $ac_path_EGREP_found && break 3 4252 done 4253 done 4254 done 4255 IFS=$as_save_IFS 4256 if test -z "$ac_cv_path_EGREP"; then 4257 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4258 fi 4259 else 4260 ac_cv_path_EGREP=$EGREP 4261 fi 4262 4263 fi 4264 fi 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4266 $as_echo "$ac_cv_path_EGREP" >&6; } 4267 EGREP="$ac_cv_path_EGREP" 4268 4269 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4271 $as_echo_n "checking for ANSI C header files... " >&6; } 4272 if test "${ac_cv_header_stdc+set}" = set; then : 4273 $as_echo_n "(cached) " >&6 4274 else 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276 /* end confdefs.h. */ 4277 #include <stdlib.h> 4278 #include <stdarg.h> 4279 #include <string.h> 4280 #include <float.h> 4281 4282 int 4283 main () 4284 { 4285 4286 ; 4287 return 0; 4288 } 4289 _ACEOF 4290 if ac_fn_c_try_compile "$LINENO"; then : 4291 ac_cv_header_stdc=yes 4292 else 4293 ac_cv_header_stdc=no 4294 fi 4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4296 4297 if test $ac_cv_header_stdc = yes; then 4298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300 /* end confdefs.h. */ 4301 #include <string.h> 4302 4303 _ACEOF 4304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4305 $EGREP "memchr" >/dev/null 2>&1; then : 4306 4307 else 4308 ac_cv_header_stdc=no 4309 fi 4310 rm -f conftest* 4311 4312 fi 4313 4314 if test $ac_cv_header_stdc = yes; then 4315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4317 /* end confdefs.h. */ 4318 #include <stdlib.h> 4319 4320 _ACEOF 4321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4322 $EGREP "free" >/dev/null 2>&1; then : 4323 4324 else 4325 ac_cv_header_stdc=no 4326 fi 4327 rm -f conftest* 4328 4329 fi 4330 4331 if test $ac_cv_header_stdc = yes; then 4332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4333 if test "$cross_compiling" = yes; then : 4334 : 4335 else 4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337 /* end confdefs.h. */ 4338 #include <ctype.h> 4339 #include <stdlib.h> 4340 #if ((' ' & 0x0FF) == 0x020) 4341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4343 #else 4344 # define ISLOWER(c) \ 4345 (('a' <= (c) && (c) <= 'i') \ 4346 || ('j' <= (c) && (c) <= 'r') \ 4347 || ('s' <= (c) && (c) <= 'z')) 4348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4349 #endif 4350 4351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4352 int 4353 main () 4354 { 4355 int i; 4356 for (i = 0; i < 256; i++) 4357 if (XOR (islower (i), ISLOWER (i)) 4358 || toupper (i) != TOUPPER (i)) 4359 return 2; 4360 return 0; 4361 } 4362 _ACEOF 4363 if ac_fn_c_try_run "$LINENO"; then : 4364 4365 else 4366 ac_cv_header_stdc=no 4367 fi 4368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4369 conftest.$ac_objext conftest.beam conftest.$ac_ext 4370 fi 4371 4372 fi 4373 fi 4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4375 $as_echo "$ac_cv_header_stdc" >&6; } 4376 if test $ac_cv_header_stdc = yes; then 4377 4378 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4379 4380 fi 4381 4382 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4383 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4384 inttypes.h stdint.h unistd.h 4385 do : 4386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4387 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4388 " 4389 eval as_val=\$$as_ac_Header 4390 if test "x$as_val" = x""yes; then : 4391 cat >>confdefs.h <<_ACEOF 4392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4393 _ACEOF 4394 4395 fi 4396 4397 done 4398 4399 4400 4401 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4402 if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4403 MINIX=yes 4404 else 4405 MINIX= 4406 fi 4407 4408 4409 if test "$MINIX" = yes; then 4410 4411 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4412 4413 4414 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4415 4416 4417 $as_echo "#define _MINIX 1" >>confdefs.h 4418 4419 fi 4420 4421 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4423 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4424 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4425 $as_echo_n "(cached) " >&6 4426 else 4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4428 /* end confdefs.h. */ 4429 4430 # define __EXTENSIONS__ 1 4431 $ac_includes_default 4432 int 4433 main () 4434 { 4435 4436 ; 4437 return 0; 4438 } 4439 _ACEOF 4440 if ac_fn_c_try_compile "$LINENO"; then : 4441 ac_cv_safe_to_define___extensions__=yes 4442 else 4443 ac_cv_safe_to_define___extensions__=no 4444 fi 4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4446 fi 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4448 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4449 test $ac_cv_safe_to_define___extensions__ = yes && 4450 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4451 4452 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4453 4454 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4455 4456 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4457 4458 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4459 4460 4461 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 4463 $as_echo_n "checking for library containing strerror... " >&6; } 4464 if test "${ac_cv_search_strerror+set}" = set; then : 4465 $as_echo_n "(cached) " >&6 4466 else 4467 ac_func_search_save_LIBS=$LIBS 4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4469 /* end confdefs.h. */ 4470 4471 /* Override any GCC internal prototype to avoid an error. 4472 Use char because int might match the return type of a GCC 4473 builtin and then its argument prototype would still apply. */ 4474 #ifdef __cplusplus 4475 extern "C" 4476 #endif 4477 char strerror (); 4478 int 4479 main () 4480 { 4481 return strerror (); 4482 ; 4483 return 0; 4484 } 4485 _ACEOF 4486 for ac_lib in '' cposix; do 4487 if test -z "$ac_lib"; then 4488 ac_res="none required" 4489 else 4490 ac_res=-l$ac_lib 4491 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4492 fi 4493 if ac_fn_c_try_link "$LINENO"; then : 4494 ac_cv_search_strerror=$ac_res 4495 fi 4496 rm -f core conftest.err conftest.$ac_objext \ 4497 conftest$ac_exeext 4498 if test "${ac_cv_search_strerror+set}" = set; then : 4499 break 4500 fi 4501 done 4502 if test "${ac_cv_search_strerror+set}" = set; then : 4503 4504 else 4505 ac_cv_search_strerror=no 4506 fi 4507 rm conftest.$ac_ext 4508 LIBS=$ac_func_search_save_LIBS 4509 fi 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 4511 $as_echo "$ac_cv_search_strerror" >&6; } 4512 ac_res=$ac_cv_search_strerror 4513 if test "$ac_res" != no; then : 4514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4515 4516 fi 4517 4518 4519 4520 # Needed for ansi2knr 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 4522 $as_echo_n "checking for function prototypes... " >&6; } 4523 if test "$ac_cv_prog_cc_c89" != no; then 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4525 $as_echo "yes" >&6; } 4526 4527 $as_echo "#define PROTOTYPES 1" >>confdefs.h 4528 4529 4530 $as_echo "#define __PROTOTYPES 1" >>confdefs.h 4531 4532 else 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4534 $as_echo "no" >&6; } 4535 fi 4536 4537 4538 if test "$ac_cv_prog_cc_stdc" != no; then 4539 U= ANSI2KNR= 4540 else 4541 U=_ ANSI2KNR=./ansi2knr 4542 fi 4543 # Ensure some checks needed by ansi2knr itself. 4544 4545 for ac_header in string.h 4546 do : 4547 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 4548 if test "x$ac_cv_header_string_h" = x""yes; then : 4549 cat >>confdefs.h <<_ACEOF 4550 #define HAVE_STRING_H 1 4551 _ACEOF 4552 4553 fi 4554 4555 done 4556 4557 4558 4559 # Enable gettext, in "external" mode. 4560 4561 4562 4563 MKINSTALLDIRS= 4564 if test -n "$ac_aux_dir"; then 4565 case "$ac_aux_dir" in 4566 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 4567 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 4568 esac 4569 fi 4570 if test -z "$MKINSTALLDIRS"; then 4571 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 4572 fi 4573 4574 4575 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 4577 $as_echo_n "checking whether NLS is requested... " >&6; } 4578 # Check whether --enable-nls was given. 4579 if test "${enable_nls+set}" = set; then : 4580 enableval=$enable_nls; USE_NLS=$enableval 4581 else 4582 USE_NLS=yes 4583 fi 4584 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 4586 $as_echo "$USE_NLS" >&6; } 4587 4588 4589 4590 4591 4592 4593 # Prepare PATH_SEPARATOR. 4594 # The user is always right. 4595 if test "${PATH_SEPARATOR+set}" != set; then 4596 echo "#! /bin/sh" >conf$$.sh 4597 echo "exit 0" >>conf$$.sh 4598 chmod +x conf$$.sh 4599 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4600 PATH_SEPARATOR=';' 4601 else 4602 PATH_SEPARATOR=: 4603 fi 4604 rm -f conf$$.sh 4605 fi 4606 4607 # Find out how to test for executable files. Don't use a zero-byte file, 4608 # as systems may use methods other than mode bits to determine executability. 4609 cat >conf$$.file <<_ASEOF 4610 #! /bin/sh 4611 exit 0 4612 _ASEOF 4613 chmod +x conf$$.file 4614 if test -x conf$$.file >/dev/null 2>&1; then 4615 ac_executable_p="test -x" 4616 else 4617 ac_executable_p="test -f" 4618 fi 4619 rm -f conf$$.file 4620 4621 # Extract the first word of "msgfmt", so it can be a program name with args. 4622 set dummy msgfmt; ac_word=$2 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4624 $as_echo_n "checking for $ac_word... " >&6; } 4625 if test "${ac_cv_path_MSGFMT+set}" = set; then : 4626 $as_echo_n "(cached) " >&6 4627 else 4628 case "$MSGFMT" in 4629 [\\/]* | ?:[\\/]*) 4630 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4631 ;; 4632 *) 4633 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4634 for ac_dir in $PATH; do 4635 IFS="$ac_save_IFS" 4636 test -z "$ac_dir" && ac_dir=. 4637 for ac_exec_ext in '' $ac_executable_extensions; do 4638 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4639 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 4640 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4641 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 4642 break 2 4643 fi 4644 fi 4645 done 4646 done 4647 IFS="$ac_save_IFS" 4648 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 4649 ;; 4650 esac 4651 fi 4652 MSGFMT="$ac_cv_path_MSGFMT" 4653 if test "$MSGFMT" != ":"; then 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 4655 $as_echo "$MSGFMT" >&6; } 4656 else 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4658 $as_echo "no" >&6; } 4659 fi 4660 4661 # Extract the first word of "gmsgfmt", so it can be a program name with args. 4662 set dummy gmsgfmt; ac_word=$2 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4664 $as_echo_n "checking for $ac_word... " >&6; } 4665 if test "${ac_cv_path_GMSGFMT+set}" = set; then : 4666 $as_echo_n "(cached) " >&6 4667 else 4668 case $GMSGFMT in 4669 [\\/]* | ?:[\\/]*) 4670 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4671 ;; 4672 *) 4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4674 for as_dir in $PATH 4675 do 4676 IFS=$as_save_IFS 4677 test -z "$as_dir" && as_dir=. 4678 for ac_exec_ext in '' $ac_executable_extensions; do 4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4680 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4682 break 2 4683 fi 4684 done 4685 done 4686 IFS=$as_save_IFS 4687 4688 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4689 ;; 4690 esac 4691 fi 4692 GMSGFMT=$ac_cv_path_GMSGFMT 4693 if test -n "$GMSGFMT"; then 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 4695 $as_echo "$GMSGFMT" >&6; } 4696 else 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4698 $as_echo "no" >&6; } 4699 fi 4700 4701 4702 4703 4704 # Prepare PATH_SEPARATOR. 4705 # The user is always right. 4706 if test "${PATH_SEPARATOR+set}" != set; then 4707 echo "#! /bin/sh" >conf$$.sh 4708 echo "exit 0" >>conf$$.sh 4709 chmod +x conf$$.sh 4710 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4711 PATH_SEPARATOR=';' 4712 else 4713 PATH_SEPARATOR=: 4714 fi 4715 rm -f conf$$.sh 4716 fi 4717 4718 # Find out how to test for executable files. Don't use a zero-byte file, 4719 # as systems may use methods other than mode bits to determine executability. 4720 cat >conf$$.file <<_ASEOF 4721 #! /bin/sh 4722 exit 0 4723 _ASEOF 4724 chmod +x conf$$.file 4725 if test -x conf$$.file >/dev/null 2>&1; then 4726 ac_executable_p="test -x" 4727 else 4728 ac_executable_p="test -f" 4729 fi 4730 rm -f conf$$.file 4731 4732 # Extract the first word of "xgettext", so it can be a program name with args. 4733 set dummy xgettext; ac_word=$2 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4735 $as_echo_n "checking for $ac_word... " >&6; } 4736 if test "${ac_cv_path_XGETTEXT+set}" = set; then : 4737 $as_echo_n "(cached) " >&6 4738 else 4739 case "$XGETTEXT" in 4740 [\\/]* | ?:[\\/]*) 4741 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4742 ;; 4743 *) 4744 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4745 for ac_dir in $PATH; do 4746 IFS="$ac_save_IFS" 4747 test -z "$ac_dir" && ac_dir=. 4748 for ac_exec_ext in '' $ac_executable_extensions; do 4749 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4750 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4751 (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 4752 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 4753 break 2 4754 fi 4755 fi 4756 done 4757 done 4758 IFS="$ac_save_IFS" 4759 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 4760 ;; 4761 esac 4762 fi 4763 XGETTEXT="$ac_cv_path_XGETTEXT" 4764 if test "$XGETTEXT" != ":"; then 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 4766 $as_echo "$XGETTEXT" >&6; } 4767 else 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4769 $as_echo "no" >&6; } 4770 fi 4771 4772 rm -f messages.po 4773 4774 4775 # Prepare PATH_SEPARATOR. 4776 # The user is always right. 4777 if test "${PATH_SEPARATOR+set}" != set; then 4778 echo "#! /bin/sh" >conf$$.sh 4779 echo "exit 0" >>conf$$.sh 4780 chmod +x conf$$.sh 4781 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4782 PATH_SEPARATOR=';' 4783 else 4784 PATH_SEPARATOR=: 4785 fi 4786 rm -f conf$$.sh 4787 fi 4788 4789 # Find out how to test for executable files. Don't use a zero-byte file, 4790 # as systems may use methods other than mode bits to determine executability. 4791 cat >conf$$.file <<_ASEOF 4792 #! /bin/sh 4793 exit 0 4794 _ASEOF 4795 chmod +x conf$$.file 4796 if test -x conf$$.file >/dev/null 2>&1; then 4797 ac_executable_p="test -x" 4798 else 4799 ac_executable_p="test -f" 4800 fi 4801 rm -f conf$$.file 4802 4803 # Extract the first word of "msgmerge", so it can be a program name with args. 4804 set dummy msgmerge; ac_word=$2 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4806 $as_echo_n "checking for $ac_word... " >&6; } 4807 if test "${ac_cv_path_MSGMERGE+set}" = set; then : 4808 $as_echo_n "(cached) " >&6 4809 else 4810 case "$MSGMERGE" in 4811 [\\/]* | ?:[\\/]*) 4812 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 4813 ;; 4814 *) 4815 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4816 for ac_dir in $PATH; do 4817 IFS="$ac_save_IFS" 4818 test -z "$ac_dir" && ac_dir=. 4819 for ac_exec_ext in '' $ac_executable_extensions; do 4820 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4821 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 4822 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 4823 break 2 4824 fi 4825 fi 4826 done 4827 done 4828 IFS="$ac_save_IFS" 4829 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 4830 ;; 4831 esac 4832 fi 4833 MSGMERGE="$ac_cv_path_MSGMERGE" 4834 if test "$MSGMERGE" != ":"; then 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 4836 $as_echo "$MSGMERGE" >&6; } 4837 else 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4839 $as_echo "no" >&6; } 4840 fi 4841 4842 4843 if test "$GMSGFMT" != ":"; then 4844 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 4845 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4846 : ; 4847 else 4848 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 4850 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 4851 GMSGFMT=":" 4852 fi 4853 fi 4854 4855 if test "$XGETTEXT" != ":"; then 4856 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4857 (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 4858 : ; 4859 else 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 4861 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 4862 XGETTEXT=":" 4863 fi 4864 rm -f messages.po 4865 fi 4866 4867 ac_config_commands="$ac_config_commands default-1" 4868 4869 4870 4871 if test "X$prefix" = "XNONE"; then 4872 acl_final_prefix="$ac_default_prefix" 4873 else 4874 acl_final_prefix="$prefix" 4875 fi 4876 if test "X$exec_prefix" = "XNONE"; then 4877 acl_final_exec_prefix='${prefix}' 4878 else 4879 acl_final_exec_prefix="$exec_prefix" 4880 fi 4881 acl_save_prefix="$prefix" 4882 prefix="$acl_final_prefix" 4883 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 4884 prefix="$acl_save_prefix" 4885 4886 4887 # Check whether --with-gnu-ld was given. 4888 if test "${with_gnu_ld+set}" = set; then : 4889 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4890 else 4891 with_gnu_ld=no 4892 fi 4893 4894 # Prepare PATH_SEPARATOR. 4895 # The user is always right. 4896 if test "${PATH_SEPARATOR+set}" != set; then 4897 echo "#! /bin/sh" >conf$$.sh 4898 echo "exit 0" >>conf$$.sh 4899 chmod +x conf$$.sh 4900 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4901 PATH_SEPARATOR=';' 4902 else 4903 PATH_SEPARATOR=: 4904 fi 4905 rm -f conf$$.sh 4906 fi 4907 ac_prog=ld 4908 if test "$GCC" = yes; then 4909 # Check if gcc -print-prog-name=ld gives a path. 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 4911 $as_echo_n "checking for ld used by GCC... " >&6; } 4912 case $host in 4913 *-*-mingw*) 4914 # gcc leaves a trailing carriage return which upsets mingw 4915 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4916 *) 4917 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4918 esac 4919 case $ac_prog in 4920 # Accept absolute paths. 4921 [\\/]* | [A-Za-z]:[\\/]*) 4922 re_direlt='/[^/][^/]*/\.\./' 4923 # Canonicalize the path of ld 4924 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 4925 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4926 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 4927 done 4928 test -z "$LD" && LD="$ac_prog" 4929 ;; 4930 "") 4931 # If it fails, then pretend we aren't using GCC. 4932 ac_prog=ld 4933 ;; 4934 *) 4935 # If it is relative, then search for the first ld in PATH. 4936 with_gnu_ld=unknown 4937 ;; 4938 esac 4939 elif test "$with_gnu_ld" = yes; then 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4941 $as_echo_n "checking for GNU ld... " >&6; } 4942 else 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4944 $as_echo_n "checking for non-GNU ld... " >&6; } 4945 fi 4946 if test "${acl_cv_path_LD+set}" = set; then : 4947 $as_echo_n "(cached) " >&6 4948 else 4949 if test -z "$LD"; then 4950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 4951 for ac_dir in $PATH; do 4952 test -z "$ac_dir" && ac_dir=. 4953 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4954 acl_cv_path_LD="$ac_dir/$ac_prog" 4955 # Check to see if the program is GNU ld. I'd rather use --version, 4956 # but apparently some GNU ld's only accept -v. 4957 # Break only if it was the GNU/non-GNU ld that we prefer. 4958 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 4959 *GNU* | *'with BFD'*) 4960 test "$with_gnu_ld" != no && break ;; 4961 *) 4962 test "$with_gnu_ld" != yes && break ;; 4963 esac 4964 fi 4965 done 4966 IFS="$ac_save_ifs" 4967 else 4968 acl_cv_path_LD="$LD" # Let the user override the test with a path. 4969 fi 4970 fi 4971 4972 LD="$acl_cv_path_LD" 4973 if test -n "$LD"; then 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4975 $as_echo "$LD" >&6; } 4976 else 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4978 $as_echo "no" >&6; } 4979 fi 4980 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4982 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4983 if test "${acl_cv_prog_gnu_ld+set}" = set; then : 4984 $as_echo_n "(cached) " >&6 4985 else 4986 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4987 case `$LD -v 2>&1 </dev/null` in 4988 *GNU* | *'with BFD'*) 4989 acl_cv_prog_gnu_ld=yes ;; 4990 *) 4991 acl_cv_prog_gnu_ld=no ;; 4992 esac 4993 fi 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 4995 $as_echo "$acl_cv_prog_gnu_ld" >&6; } 4996 with_gnu_ld=$acl_cv_prog_gnu_ld 4997 4998 4999 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 5001 $as_echo_n "checking for shared library run path origin... " >&6; } 5002 if test "${acl_cv_rpath+set}" = set; then : 5003 $as_echo_n "(cached) " >&6 5004 else 5005 5006 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 5007 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 5008 . ./conftest.sh 5009 rm -f ./conftest.sh 5010 acl_cv_rpath=done 5011 5012 fi 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 5014 $as_echo "$acl_cv_rpath" >&6; } 5015 wl="$acl_cv_wl" 5016 libext="$acl_cv_libext" 5017 shlibext="$acl_cv_shlibext" 5018 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 5019 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 5020 hardcode_direct="$acl_cv_hardcode_direct" 5021 hardcode_minus_L="$acl_cv_hardcode_minus_L" 5022 # Check whether --enable-rpath was given. 5023 if test "${enable_rpath+set}" = set; then : 5024 enableval=$enable_rpath; : 5025 else 5026 enable_rpath=yes 5027 fi 5028 5029 5030 5031 5032 5033 5034 5035 5036 use_additional=yes 5037 5038 acl_save_prefix="$prefix" 5039 prefix="$acl_final_prefix" 5040 acl_save_exec_prefix="$exec_prefix" 5041 exec_prefix="$acl_final_exec_prefix" 5042 5043 eval additional_includedir=\"$includedir\" 5044 eval additional_libdir=\"$libdir\" 5045 5046 exec_prefix="$acl_save_exec_prefix" 5047 prefix="$acl_save_prefix" 5048 5049 5050 # Check whether --with-libiconv-prefix was given. 5051 if test "${with_libiconv_prefix+set}" = set; then : 5052 withval=$with_libiconv_prefix; 5053 if test "X$withval" = "Xno"; then 5054 use_additional=no 5055 else 5056 if test "X$withval" = "X"; then 5057 5058 acl_save_prefix="$prefix" 5059 prefix="$acl_final_prefix" 5060 acl_save_exec_prefix="$exec_prefix" 5061 exec_prefix="$acl_final_exec_prefix" 5062 5063 eval additional_includedir=\"$includedir\" 5064 eval additional_libdir=\"$libdir\" 5065 5066 exec_prefix="$acl_save_exec_prefix" 5067 prefix="$acl_save_prefix" 5068 5069 else 5070 additional_includedir="$withval/include" 5071 additional_libdir="$withval/lib" 5072 fi 5073 fi 5074 5075 fi 5076 5077 LIBICONV= 5078 LTLIBICONV= 5079 INCICONV= 5080 rpathdirs= 5081 ltrpathdirs= 5082 names_already_handled= 5083 names_next_round='iconv ' 5084 while test -n "$names_next_round"; do 5085 names_this_round="$names_next_round" 5086 names_next_round= 5087 for name in $names_this_round; do 5088 already_handled= 5089 for n in $names_already_handled; do 5090 if test "$n" = "$name"; then 5091 already_handled=yes 5092 break 5093 fi 5094 done 5095 if test -z "$already_handled"; then 5096 names_already_handled="$names_already_handled $name" 5097 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 5098 eval value=\"\$HAVE_LIB$uppername\" 5099 if test -n "$value"; then 5100 if test "$value" = yes; then 5101 eval value=\"\$LIB$uppername\" 5102 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 5103 eval value=\"\$LTLIB$uppername\" 5104 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 5105 else 5106 : 5107 fi 5108 else 5109 found_dir= 5110 found_la= 5111 found_so= 5112 found_a= 5113 if test $use_additional = yes; then 5114 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 5115 found_dir="$additional_libdir" 5116 found_so="$additional_libdir/lib$name.$shlibext" 5117 if test -f "$additional_libdir/lib$name.la"; then 5118 found_la="$additional_libdir/lib$name.la" 5119 fi 5120 else 5121 if test -f "$additional_libdir/lib$name.$libext"; then 5122 found_dir="$additional_libdir" 5123 found_a="$additional_libdir/lib$name.$libext" 5124 if test -f "$additional_libdir/lib$name.la"; then 5125 found_la="$additional_libdir/lib$name.la" 5126 fi 5127 fi 5128 fi 5129 fi 5130 if test "X$found_dir" = "X"; then 5131 for x in $LDFLAGS $LTLIBICONV; do 5132 5133 acl_save_prefix="$prefix" 5134 prefix="$acl_final_prefix" 5135 acl_save_exec_prefix="$exec_prefix" 5136 exec_prefix="$acl_final_exec_prefix" 5137 eval x=\"$x\" 5138 exec_prefix="$acl_save_exec_prefix" 5139 prefix="$acl_save_prefix" 5140 5141 case "$x" in 5142 -L*) 5143 dir=`echo "X$x" | sed -e 's/^X-L//'` 5144 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 5145 found_dir="$dir" 5146 found_so="$dir/lib$name.$shlibext" 5147 if test -f "$dir/lib$name.la"; then 5148 found_la="$dir/lib$name.la" 5149 fi 5150 else 5151 if test -f "$dir/lib$name.$libext"; then 5152 found_dir="$dir" 5153 found_a="$dir/lib$name.$libext" 5154 if test -f "$dir/lib$name.la"; then 5155 found_la="$dir/lib$name.la" 5156 fi 5157 fi 5158 fi 5159 ;; 5160 esac 5161 if test "X$found_dir" != "X"; then 5162 break 5163 fi 5164 done 5165 fi 5166 if test "X$found_dir" != "X"; then 5167 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 5168 if test "X$found_so" != "X"; then 5169 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 5170 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5171 else 5172 haveit= 5173 for x in $ltrpathdirs; do 5174 if test "X$x" = "X$found_dir"; then 5175 haveit=yes 5176 break 5177 fi 5178 done 5179 if test -z "$haveit"; then 5180 ltrpathdirs="$ltrpathdirs $found_dir" 5181 fi 5182 if test "$hardcode_direct" = yes; then 5183 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5184 else 5185 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 5186 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5187 haveit= 5188 for x in $rpathdirs; do 5189 if test "X$x" = "X$found_dir"; then 5190 haveit=yes 5191 break 5192 fi 5193 done 5194 if test -z "$haveit"; then 5195 rpathdirs="$rpathdirs $found_dir" 5196 fi 5197 else 5198 haveit= 5199 for x in $LDFLAGS $LIBICONV; do 5200 5201 acl_save_prefix="$prefix" 5202 prefix="$acl_final_prefix" 5203 acl_save_exec_prefix="$exec_prefix" 5204 exec_prefix="$acl_final_exec_prefix" 5205 eval x=\"$x\" 5206 exec_prefix="$acl_save_exec_prefix" 5207 prefix="$acl_save_prefix" 5208 5209 if test "X$x" = "X-L$found_dir"; then 5210 haveit=yes 5211 break 5212 fi 5213 done 5214 if test -z "$haveit"; then 5215 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 5216 fi 5217 if test "$hardcode_minus_L" != no; then 5218 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5219 else 5220 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 5221 fi 5222 fi 5223 fi 5224 fi 5225 else 5226 if test "X$found_a" != "X"; then 5227 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 5228 else 5229 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 5230 fi 5231 fi 5232 additional_includedir= 5233 case "$found_dir" in 5234 */lib | */lib/) 5235 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 5236 additional_includedir="$basedir/include" 5237 ;; 5238 esac 5239 if test "X$additional_includedir" != "X"; then 5240 if test "X$additional_includedir" != "X/usr/include"; then 5241 haveit= 5242 if test "X$additional_includedir" = "X/usr/local/include"; then 5243 if test -n "$GCC"; then 5244 case $host_os in 5245 linux*) haveit=yes;; 5246 esac 5247 fi 5248 fi 5249 if test -z "$haveit"; then 5250 for x in $CPPFLAGS $INCICONV; do 5251 5252 acl_save_prefix="$prefix" 5253 prefix="$acl_final_prefix" 5254 acl_save_exec_prefix="$exec_prefix" 5255 exec_prefix="$acl_final_exec_prefix" 5256 eval x=\"$x\" 5257 exec_prefix="$acl_save_exec_prefix" 5258 prefix="$acl_save_prefix" 5259 5260 if test "X$x" = "X-I$additional_includedir"; then 5261 haveit=yes 5262 break 5263 fi 5264 done 5265 if test -z "$haveit"; then 5266 if test -d "$additional_includedir"; then 5267 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 5268 fi 5269 fi 5270 fi 5271 fi 5272 fi 5273 if test -n "$found_la"; then 5274 save_libdir="$libdir" 5275 case "$found_la" in 5276 */* | *\\*) . "$found_la" ;; 5277 *) . "./$found_la" ;; 5278 esac 5279 libdir="$save_libdir" 5280 for dep in $dependency_libs; do 5281 case "$dep" in 5282 -L*) 5283 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 5284 if test "X$additional_libdir" != "X/usr/lib"; then 5285 haveit= 5286 if test "X$additional_libdir" = "X/usr/local/lib"; then 5287 if test -n "$GCC"; then 5288 case $host_os in 5289 linux*) haveit=yes;; 5290 esac 5291 fi 5292 fi 5293 if test -z "$haveit"; then 5294 haveit= 5295 for x in $LDFLAGS $LIBICONV; do 5296 5297 acl_save_prefix="$prefix" 5298 prefix="$acl_final_prefix" 5299 acl_save_exec_prefix="$exec_prefix" 5300 exec_prefix="$acl_final_exec_prefix" 5301 eval x=\"$x\" 5302 exec_prefix="$acl_save_exec_prefix" 5303 prefix="$acl_save_prefix" 5304 5305 if test "X$x" = "X-L$additional_libdir"; then 5306 haveit=yes 5307 break 5308 fi 5309 done 5310 if test -z "$haveit"; then 5311 if test -d "$additional_libdir"; then 5312 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 5313 fi 5314 fi 5315 haveit= 5316 for x in $LDFLAGS $LTLIBICONV; do 5317 5318 acl_save_prefix="$prefix" 5319 prefix="$acl_final_prefix" 5320 acl_save_exec_prefix="$exec_prefix" 5321 exec_prefix="$acl_final_exec_prefix" 5322 eval x=\"$x\" 5323 exec_prefix="$acl_save_exec_prefix" 5324 prefix="$acl_save_prefix" 5325 5326 if test "X$x" = "X-L$additional_libdir"; then 5327 haveit=yes 5328 break 5329 fi 5330 done 5331 if test -z "$haveit"; then 5332 if test -d "$additional_libdir"; then 5333 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 5334 fi 5335 fi 5336 fi 5337 fi 5338 ;; 5339 -R*) 5340 dir=`echo "X$dep" | sed -e 's/^X-R//'` 5341 if test "$enable_rpath" != no; then 5342 haveit= 5343 for x in $rpathdirs; do 5344 if test "X$x" = "X$dir"; then 5345 haveit=yes 5346 break 5347 fi 5348 done 5349 if test -z "$haveit"; then 5350 rpathdirs="$rpathdirs $dir" 5351 fi 5352 haveit= 5353 for x in $ltrpathdirs; do 5354 if test "X$x" = "X$dir"; then 5355 haveit=yes 5356 break 5357 fi 5358 done 5359 if test -z "$haveit"; then 5360 ltrpathdirs="$ltrpathdirs $dir" 5361 fi 5362 fi 5363 ;; 5364 -l*) 5365 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 5366 ;; 5367 *.la) 5368 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 5369 ;; 5370 *) 5371 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 5372 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 5373 ;; 5374 esac 5375 done 5376 fi 5377 else 5378 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 5379 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 5380 fi 5381 fi 5382 fi 5383 done 5384 done 5385 if test "X$rpathdirs" != "X"; then 5386 if test -n "$hardcode_libdir_separator"; then 5387 alldirs= 5388 for found_dir in $rpathdirs; do 5389 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 5390 done 5391 acl_save_libdir="$libdir" 5392 libdir="$alldirs" 5393 eval flag=\"$hardcode_libdir_flag_spec\" 5394 libdir="$acl_save_libdir" 5395 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 5396 else 5397 for found_dir in $rpathdirs; do 5398 acl_save_libdir="$libdir" 5399 libdir="$found_dir" 5400 eval flag=\"$hardcode_libdir_flag_spec\" 5401 libdir="$acl_save_libdir" 5402 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 5403 done 5404 fi 5405 fi 5406 if test "X$ltrpathdirs" != "X"; then 5407 for found_dir in $ltrpathdirs; do 5408 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 5409 done 5410 fi 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 5430 $as_echo_n "checking whether NLS is requested... " >&6; } 5431 # Check whether --enable-nls was given. 5432 if test "${enable_nls+set}" = set; then : 5433 enableval=$enable_nls; USE_NLS=$enableval 5434 else 5435 USE_NLS=yes 5436 fi 5437 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5439 $as_echo "$USE_NLS" >&6; } 5440 5441 5442 5443 5444 LIBINTL= 5445 LTLIBINTL= 5446 POSUB= 5447 5448 if test "$USE_NLS" = "yes"; then 5449 gt_use_preinstalled_gnugettext=no 5450 5451 5452 5453 5454 5455 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 5457 $as_echo_n "checking for GNU gettext in libc... " >&6; } 5458 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then : 5459 $as_echo_n "(cached) " >&6 5460 else 5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462 /* end confdefs.h. */ 5463 #include <libintl.h> 5464 extern int _nl_msg_cat_cntr; 5465 extern int *_nl_domain_bindings; 5466 int 5467 main () 5468 { 5469 bindtextdomain ("", ""); 5470 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 5471 ; 5472 return 0; 5473 } 5474 _ACEOF 5475 if ac_fn_c_try_link "$LINENO"; then : 5476 gt_cv_func_gnugettext1_libc=yes 5477 else 5478 gt_cv_func_gnugettext1_libc=no 5479 fi 5480 rm -f core conftest.err conftest.$ac_objext \ 5481 conftest$ac_exeext conftest.$ac_ext 5482 fi 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 5484 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } 5485 5486 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 5487 5488 5489 5490 5491 5492 am_save_CPPFLAGS="$CPPFLAGS" 5493 5494 for element in $INCICONV; do 5495 haveit= 5496 for x in $CPPFLAGS; do 5497 5498 acl_save_prefix="$prefix" 5499 prefix="$acl_final_prefix" 5500 acl_save_exec_prefix="$exec_prefix" 5501 exec_prefix="$acl_final_exec_prefix" 5502 eval x=\"$x\" 5503 exec_prefix="$acl_save_exec_prefix" 5504 prefix="$acl_save_prefix" 5505 5506 if test "X$x" = "X$element"; then 5507 haveit=yes 5508 break 5509 fi 5510 done 5511 if test -z "$haveit"; then 5512 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 5513 fi 5514 done 5515 5516 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 5518 $as_echo_n "checking for iconv... " >&6; } 5519 if test "${am_cv_func_iconv+set}" = set; then : 5520 $as_echo_n "(cached) " >&6 5521 else 5522 5523 am_cv_func_iconv="no, consider installing GNU libiconv" 5524 am_cv_lib_iconv=no 5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5526 /* end confdefs.h. */ 5527 #include <stdlib.h> 5528 #include <iconv.h> 5529 int 5530 main () 5531 { 5532 iconv_t cd = iconv_open("",""); 5533 iconv(cd,NULL,NULL,NULL,NULL); 5534 iconv_close(cd); 5535 ; 5536 return 0; 5537 } 5538 _ACEOF 5539 if ac_fn_c_try_link "$LINENO"; then : 5540 am_cv_func_iconv=yes 5541 fi 5542 rm -f core conftest.err conftest.$ac_objext \ 5543 conftest$ac_exeext conftest.$ac_ext 5544 if test "$am_cv_func_iconv" != yes; then 5545 am_save_LIBS="$LIBS" 5546 LIBS="$LIBS $LIBICONV" 5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548 /* end confdefs.h. */ 5549 #include <stdlib.h> 5550 #include <iconv.h> 5551 int 5552 main () 5553 { 5554 iconv_t cd = iconv_open("",""); 5555 iconv(cd,NULL,NULL,NULL,NULL); 5556 iconv_close(cd); 5557 ; 5558 return 0; 5559 } 5560 _ACEOF 5561 if ac_fn_c_try_link "$LINENO"; then : 5562 am_cv_lib_iconv=yes 5563 am_cv_func_iconv=yes 5564 fi 5565 rm -f core conftest.err conftest.$ac_objext \ 5566 conftest$ac_exeext conftest.$ac_ext 5567 LIBS="$am_save_LIBS" 5568 fi 5569 5570 fi 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 5572 $as_echo "$am_cv_func_iconv" >&6; } 5573 if test "$am_cv_func_iconv" = yes; then 5574 5575 $as_echo "#define HAVE_ICONV 1" >>confdefs.h 5576 5577 fi 5578 if test "$am_cv_lib_iconv" = yes; then 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 5580 $as_echo_n "checking how to link with libiconv... " >&6; } 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 5582 $as_echo "$LIBICONV" >&6; } 5583 else 5584 CPPFLAGS="$am_save_CPPFLAGS" 5585 LIBICONV= 5586 LTLIBICONV= 5587 fi 5588 5589 5590 5591 5592 5593 5594 use_additional=yes 5595 5596 acl_save_prefix="$prefix" 5597 prefix="$acl_final_prefix" 5598 acl_save_exec_prefix="$exec_prefix" 5599 exec_prefix="$acl_final_exec_prefix" 5600 5601 eval additional_includedir=\"$includedir\" 5602 eval additional_libdir=\"$libdir\" 5603 5604 exec_prefix="$acl_save_exec_prefix" 5605 prefix="$acl_save_prefix" 5606 5607 5608 # Check whether --with-libintl-prefix was given. 5609 if test "${with_libintl_prefix+set}" = set; then : 5610 withval=$with_libintl_prefix; 5611 if test "X$withval" = "Xno"; then 5612 use_additional=no 5613 else 5614 if test "X$withval" = "X"; then 5615 5616 acl_save_prefix="$prefix" 5617 prefix="$acl_final_prefix" 5618 acl_save_exec_prefix="$exec_prefix" 5619 exec_prefix="$acl_final_exec_prefix" 5620 5621 eval additional_includedir=\"$includedir\" 5622 eval additional_libdir=\"$libdir\" 5623 5624 exec_prefix="$acl_save_exec_prefix" 5625 prefix="$acl_save_prefix" 5626 5627 else 5628 additional_includedir="$withval/include" 5629 additional_libdir="$withval/lib" 5630 fi 5631 fi 5632 5633 fi 5634 5635 LIBINTL= 5636 LTLIBINTL= 5637 INCINTL= 5638 rpathdirs= 5639 ltrpathdirs= 5640 names_already_handled= 5641 names_next_round='intl ' 5642 while test -n "$names_next_round"; do 5643 names_this_round="$names_next_round" 5644 names_next_round= 5645 for name in $names_this_round; do 5646 already_handled= 5647 for n in $names_already_handled; do 5648 if test "$n" = "$name"; then 5649 already_handled=yes 5650 break 5651 fi 5652 done 5653 if test -z "$already_handled"; then 5654 names_already_handled="$names_already_handled $name" 5655 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 5656 eval value=\"\$HAVE_LIB$uppername\" 5657 if test -n "$value"; then 5658 if test "$value" = yes; then 5659 eval value=\"\$LIB$uppername\" 5660 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 5661 eval value=\"\$LTLIB$uppername\" 5662 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 5663 else 5664 : 5665 fi 5666 else 5667 found_dir= 5668 found_la= 5669 found_so= 5670 found_a= 5671 if test $use_additional = yes; then 5672 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 5673 found_dir="$additional_libdir" 5674 found_so="$additional_libdir/lib$name.$shlibext" 5675 if test -f "$additional_libdir/lib$name.la"; then 5676 found_la="$additional_libdir/lib$name.la" 5677 fi 5678 else 5679 if test -f "$additional_libdir/lib$name.$libext"; then 5680 found_dir="$additional_libdir" 5681 found_a="$additional_libdir/lib$name.$libext" 5682 if test -f "$additional_libdir/lib$name.la"; then 5683 found_la="$additional_libdir/lib$name.la" 5684 fi 5685 fi 5686 fi 5687 fi 5688 if test "X$found_dir" = "X"; then 5689 for x in $LDFLAGS $LTLIBINTL; do 5690 5691 acl_save_prefix="$prefix" 5692 prefix="$acl_final_prefix" 5693 acl_save_exec_prefix="$exec_prefix" 5694 exec_prefix="$acl_final_exec_prefix" 5695 eval x=\"$x\" 5696 exec_prefix="$acl_save_exec_prefix" 5697 prefix="$acl_save_prefix" 5698 5699 case "$x" in 5700 -L*) 5701 dir=`echo "X$x" | sed -e 's/^X-L//'` 5702 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 5703 found_dir="$dir" 5704 found_so="$dir/lib$name.$shlibext" 5705 if test -f "$dir/lib$name.la"; then 5706 found_la="$dir/lib$name.la" 5707 fi 5708 else 5709 if test -f "$dir/lib$name.$libext"; then 5710 found_dir="$dir" 5711 found_a="$dir/lib$name.$libext" 5712 if test -f "$dir/lib$name.la"; then 5713 found_la="$dir/lib$name.la" 5714 fi 5715 fi 5716 fi 5717 ;; 5718 esac 5719 if test "X$found_dir" != "X"; then 5720 break 5721 fi 5722 done 5723 fi 5724 if test "X$found_dir" != "X"; then 5725 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 5726 if test "X$found_so" != "X"; then 5727 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 5728 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5729 else 5730 haveit= 5731 for x in $ltrpathdirs; do 5732 if test "X$x" = "X$found_dir"; then 5733 haveit=yes 5734 break 5735 fi 5736 done 5737 if test -z "$haveit"; then 5738 ltrpathdirs="$ltrpathdirs $found_dir" 5739 fi 5740 if test "$hardcode_direct" = yes; then 5741 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5742 else 5743 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 5744 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5745 haveit= 5746 for x in $rpathdirs; do 5747 if test "X$x" = "X$found_dir"; then 5748 haveit=yes 5749 break 5750 fi 5751 done 5752 if test -z "$haveit"; then 5753 rpathdirs="$rpathdirs $found_dir" 5754 fi 5755 else 5756 haveit= 5757 for x in $LDFLAGS $LIBINTL; do 5758 5759 acl_save_prefix="$prefix" 5760 prefix="$acl_final_prefix" 5761 acl_save_exec_prefix="$exec_prefix" 5762 exec_prefix="$acl_final_exec_prefix" 5763 eval x=\"$x\" 5764 exec_prefix="$acl_save_exec_prefix" 5765 prefix="$acl_save_prefix" 5766 5767 if test "X$x" = "X-L$found_dir"; then 5768 haveit=yes 5769 break 5770 fi 5771 done 5772 if test -z "$haveit"; then 5773 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 5774 fi 5775 if test "$hardcode_minus_L" != no; then 5776 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5777 else 5778 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 5779 fi 5780 fi 5781 fi 5782 fi 5783 else 5784 if test "X$found_a" != "X"; then 5785 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 5786 else 5787 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 5788 fi 5789 fi 5790 additional_includedir= 5791 case "$found_dir" in 5792 */lib | */lib/) 5793 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 5794 additional_includedir="$basedir/include" 5795 ;; 5796 esac 5797 if test "X$additional_includedir" != "X"; then 5798 if test "X$additional_includedir" != "X/usr/include"; then 5799 haveit= 5800 if test "X$additional_includedir" = "X/usr/local/include"; then 5801 if test -n "$GCC"; then 5802 case $host_os in 5803 linux*) haveit=yes;; 5804 esac 5805 fi 5806 fi 5807 if test -z "$haveit"; then 5808 for x in $CPPFLAGS $INCINTL; do 5809 5810 acl_save_prefix="$prefix" 5811 prefix="$acl_final_prefix" 5812 acl_save_exec_prefix="$exec_prefix" 5813 exec_prefix="$acl_final_exec_prefix" 5814 eval x=\"$x\" 5815 exec_prefix="$acl_save_exec_prefix" 5816 prefix="$acl_save_prefix" 5817 5818 if test "X$x" = "X-I$additional_includedir"; then 5819 haveit=yes 5820 break 5821 fi 5822 done 5823 if test -z "$haveit"; then 5824 if test -d "$additional_includedir"; then 5825 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 5826 fi 5827 fi 5828 fi 5829 fi 5830 fi 5831 if test -n "$found_la"; then 5832 save_libdir="$libdir" 5833 case "$found_la" in 5834 */* | *\\*) . "$found_la" ;; 5835 *) . "./$found_la" ;; 5836 esac 5837 libdir="$save_libdir" 5838 for dep in $dependency_libs; do 5839 case "$dep" in 5840 -L*) 5841 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 5842 if test "X$additional_libdir" != "X/usr/lib"; then 5843 haveit= 5844 if test "X$additional_libdir" = "X/usr/local/lib"; then 5845 if test -n "$GCC"; then 5846 case $host_os in 5847 linux*) haveit=yes;; 5848 esac 5849 fi 5850 fi 5851 if test -z "$haveit"; then 5852 haveit= 5853 for x in $LDFLAGS $LIBINTL; do 5854 5855 acl_save_prefix="$prefix" 5856 prefix="$acl_final_prefix" 5857 acl_save_exec_prefix="$exec_prefix" 5858 exec_prefix="$acl_final_exec_prefix" 5859 eval x=\"$x\" 5860 exec_prefix="$acl_save_exec_prefix" 5861 prefix="$acl_save_prefix" 5862 5863 if test "X$x" = "X-L$additional_libdir"; then 5864 haveit=yes 5865 break 5866 fi 5867 done 5868 if test -z "$haveit"; then 5869 if test -d "$additional_libdir"; then 5870 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 5871 fi 5872 fi 5873 haveit= 5874 for x in $LDFLAGS $LTLIBINTL; do 5875 5876 acl_save_prefix="$prefix" 5877 prefix="$acl_final_prefix" 5878 acl_save_exec_prefix="$exec_prefix" 5879 exec_prefix="$acl_final_exec_prefix" 5880 eval x=\"$x\" 5881 exec_prefix="$acl_save_exec_prefix" 5882 prefix="$acl_save_prefix" 5883 5884 if test "X$x" = "X-L$additional_libdir"; then 5885 haveit=yes 5886 break 5887 fi 5888 done 5889 if test -z "$haveit"; then 5890 if test -d "$additional_libdir"; then 5891 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 5892 fi 5893 fi 5894 fi 5895 fi 5896 ;; 5897 -R*) 5898 dir=`echo "X$dep" | sed -e 's/^X-R//'` 5899 if test "$enable_rpath" != no; then 5900 haveit= 5901 for x in $rpathdirs; do 5902 if test "X$x" = "X$dir"; then 5903 haveit=yes 5904 break 5905 fi 5906 done 5907 if test -z "$haveit"; then 5908 rpathdirs="$rpathdirs $dir" 5909 fi 5910 haveit= 5911 for x in $ltrpathdirs; do 5912 if test "X$x" = "X$dir"; then 5913 haveit=yes 5914 break 5915 fi 5916 done 5917 if test -z "$haveit"; then 5918 ltrpathdirs="$ltrpathdirs $dir" 5919 fi 5920 fi 5921 ;; 5922 -l*) 5923 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 5924 ;; 5925 *.la) 5926 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 5927 ;; 5928 *) 5929 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 5930 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 5931 ;; 5932 esac 5933 done 5934 fi 5935 else 5936 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 5937 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 5938 fi 5939 fi 5940 fi 5941 done 5942 done 5943 if test "X$rpathdirs" != "X"; then 5944 if test -n "$hardcode_libdir_separator"; then 5945 alldirs= 5946 for found_dir in $rpathdirs; do 5947 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 5948 done 5949 acl_save_libdir="$libdir" 5950 libdir="$alldirs" 5951 eval flag=\"$hardcode_libdir_flag_spec\" 5952 libdir="$acl_save_libdir" 5953 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 5954 else 5955 for found_dir in $rpathdirs; do 5956 acl_save_libdir="$libdir" 5957 libdir="$found_dir" 5958 eval flag=\"$hardcode_libdir_flag_spec\" 5959 libdir="$acl_save_libdir" 5960 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 5961 done 5962 fi 5963 fi 5964 if test "X$ltrpathdirs" != "X"; then 5965 for found_dir in $ltrpathdirs; do 5966 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 5967 done 5968 fi 5969 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 5971 $as_echo_n "checking for GNU gettext in libintl... " >&6; } 5972 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then : 5973 $as_echo_n "(cached) " >&6 5974 else 5975 gt_save_CPPFLAGS="$CPPFLAGS" 5976 CPPFLAGS="$CPPFLAGS $INCINTL" 5977 gt_save_LIBS="$LIBS" 5978 LIBS="$LIBS $LIBINTL" 5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5980 /* end confdefs.h. */ 5981 #include <libintl.h> 5982 extern int _nl_msg_cat_cntr; 5983 extern 5984 #ifdef __cplusplus 5985 "C" 5986 #endif 5987 const char *_nl_expand_alias (); 5988 int 5989 main () 5990 { 5991 bindtextdomain ("", ""); 5992 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 5993 ; 5994 return 0; 5995 } 5996 _ACEOF 5997 if ac_fn_c_try_link "$LINENO"; then : 5998 gt_cv_func_gnugettext1_libintl=yes 5999 else 6000 gt_cv_func_gnugettext1_libintl=no 6001 fi 6002 rm -f core conftest.err conftest.$ac_objext \ 6003 conftest$ac_exeext conftest.$ac_ext 6004 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 6005 LIBS="$LIBS $LIBICONV" 6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6007 /* end confdefs.h. */ 6008 #include <libintl.h> 6009 extern int _nl_msg_cat_cntr; 6010 extern 6011 #ifdef __cplusplus 6012 "C" 6013 #endif 6014 const char *_nl_expand_alias (); 6015 int 6016 main () 6017 { 6018 bindtextdomain ("", ""); 6019 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 6020 ; 6021 return 0; 6022 } 6023 _ACEOF 6024 if ac_fn_c_try_link "$LINENO"; then : 6025 LIBINTL="$LIBINTL $LIBICONV" 6026 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 6027 gt_cv_func_gnugettext1_libintl=yes 6028 6029 fi 6030 rm -f core conftest.err conftest.$ac_objext \ 6031 conftest$ac_exeext conftest.$ac_ext 6032 fi 6033 CPPFLAGS="$gt_save_CPPFLAGS" 6034 LIBS="$gt_save_LIBS" 6035 fi 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 6037 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } 6038 fi 6039 6040 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 6041 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 6042 && test "$PACKAGE" != gettext-runtime \ 6043 && test "$PACKAGE" != gettext-tools; }; then 6044 gt_use_preinstalled_gnugettext=yes 6045 else 6046 LIBINTL= 6047 LTLIBINTL= 6048 INCINTL= 6049 fi 6050 6051 6052 6053 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 6054 || test "$nls_cv_use_gnu_gettext" = "yes"; then 6055 6056 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 6057 6058 else 6059 USE_NLS=no 6060 fi 6061 fi 6062 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 6064 $as_echo_n "checking whether to use NLS... " >&6; } 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 6066 $as_echo "$USE_NLS" >&6; } 6067 if test "$USE_NLS" = "yes"; then 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 6069 $as_echo_n "checking where the gettext function comes from... " >&6; } 6070 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 6071 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 6072 gt_source="external libintl" 6073 else 6074 gt_source="libc" 6075 fi 6076 else 6077 gt_source="included intl directory" 6078 fi 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 6080 $as_echo "$gt_source" >&6; } 6081 fi 6082 6083 if test "$USE_NLS" = "yes"; then 6084 6085 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 6086 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 6088 $as_echo_n "checking how to link with libintl... " >&6; } 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 6090 $as_echo "$LIBINTL" >&6; } 6091 6092 for element in $INCINTL; do 6093 haveit= 6094 for x in $CPPFLAGS; do 6095 6096 acl_save_prefix="$prefix" 6097 prefix="$acl_final_prefix" 6098 acl_save_exec_prefix="$exec_prefix" 6099 exec_prefix="$acl_final_exec_prefix" 6100 eval x=\"$x\" 6101 exec_prefix="$acl_save_exec_prefix" 6102 prefix="$acl_save_prefix" 6103 6104 if test "X$x" = "X$element"; then 6105 haveit=yes 6106 break 6107 fi 6108 done 6109 if test -z "$haveit"; then 6110 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 6111 fi 6112 done 6113 6114 fi 6115 6116 6117 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 6118 6119 6120 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 6121 6122 fi 6123 6124 POSUB=po 6125 fi 6126 6127 6128 6129 INTLLIBS="$LIBINTL" 6130 6131 6132 6133 6134 6135 6136 6137 # This test must come as early as possible after the compiler configuration 6138 # tests, because the choice of the file model can (in principle) affect 6139 # whether functions and headers are available, whether they work, etc. 6140 # Check whether --enable-largefile was given. 6141 if test "${enable_largefile+set}" = set; then : 6142 enableval=$enable_largefile; 6143 fi 6144 6145 if test "$enable_largefile" != no; then 6146 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6148 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6149 if test "${ac_cv_sys_largefile_CC+set}" = set; then : 6150 $as_echo_n "(cached) " >&6 6151 else 6152 ac_cv_sys_largefile_CC=no 6153 if test "$GCC" != yes; then 6154 ac_save_CC=$CC 6155 while :; do 6156 # IRIX 6.2 and later do not support large files by default, 6157 # so use the C compiler's -n32 option if that helps. 6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6159 /* end confdefs.h. */ 6160 #include <sys/types.h> 6161 /* Check that off_t can represent 2**63 - 1 correctly. 6162 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6163 since some C++ compilers masquerading as C compilers 6164 incorrectly reject 9223372036854775807. */ 6165 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6167 && LARGE_OFF_T % 2147483647 == 1) 6168 ? 1 : -1]; 6169 int 6170 main () 6171 { 6172 6173 ; 6174 return 0; 6175 } 6176 _ACEOF 6177 if ac_fn_c_try_compile "$LINENO"; then : 6178 break 6179 fi 6180 rm -f core conftest.err conftest.$ac_objext 6181 CC="$CC -n32" 6182 if ac_fn_c_try_compile "$LINENO"; then : 6183 ac_cv_sys_largefile_CC=' -n32'; break 6184 fi 6185 rm -f core conftest.err conftest.$ac_objext 6186 break 6187 done 6188 CC=$ac_save_CC 6189 rm -f conftest.$ac_ext 6190 fi 6191 fi 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6193 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 6194 if test "$ac_cv_sys_largefile_CC" != no; then 6195 CC=$CC$ac_cv_sys_largefile_CC 6196 fi 6197 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6199 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6200 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 6201 $as_echo_n "(cached) " >&6 6202 else 6203 while :; do 6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6205 /* end confdefs.h. */ 6206 #include <sys/types.h> 6207 /* Check that off_t can represent 2**63 - 1 correctly. 6208 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6209 since some C++ compilers masquerading as C compilers 6210 incorrectly reject 9223372036854775807. */ 6211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6213 && LARGE_OFF_T % 2147483647 == 1) 6214 ? 1 : -1]; 6215 int 6216 main () 6217 { 6218 6219 ; 6220 return 0; 6221 } 6222 _ACEOF 6223 if ac_fn_c_try_compile "$LINENO"; then : 6224 ac_cv_sys_file_offset_bits=no; break 6225 fi 6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6228 /* end confdefs.h. */ 6229 #define _FILE_OFFSET_BITS 64 6230 #include <sys/types.h> 6231 /* Check that off_t can represent 2**63 - 1 correctly. 6232 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6233 since some C++ compilers masquerading as C compilers 6234 incorrectly reject 9223372036854775807. */ 6235 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6237 && LARGE_OFF_T % 2147483647 == 1) 6238 ? 1 : -1]; 6239 int 6240 main () 6241 { 6242 6243 ; 6244 return 0; 6245 } 6246 _ACEOF 6247 if ac_fn_c_try_compile "$LINENO"; then : 6248 ac_cv_sys_file_offset_bits=64; break 6249 fi 6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6251 ac_cv_sys_file_offset_bits=unknown 6252 break 6253 done 6254 fi 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6256 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6257 case $ac_cv_sys_file_offset_bits in #( 6258 no | unknown) ;; 6259 *) 6260 cat >>confdefs.h <<_ACEOF 6261 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6262 _ACEOF 6263 ;; 6264 esac 6265 rm -rf conftest* 6266 if test $ac_cv_sys_file_offset_bits = unknown; then 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6268 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6269 if test "${ac_cv_sys_large_files+set}" = set; then : 6270 $as_echo_n "(cached) " >&6 6271 else 6272 while :; do 6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6274 /* end confdefs.h. */ 6275 #include <sys/types.h> 6276 /* Check that off_t can represent 2**63 - 1 correctly. 6277 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6278 since some C++ compilers masquerading as C compilers 6279 incorrectly reject 9223372036854775807. */ 6280 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6281 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6282 && LARGE_OFF_T % 2147483647 == 1) 6283 ? 1 : -1]; 6284 int 6285 main () 6286 { 6287 6288 ; 6289 return 0; 6290 } 6291 _ACEOF 6292 if ac_fn_c_try_compile "$LINENO"; then : 6293 ac_cv_sys_large_files=no; break 6294 fi 6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6297 /* end confdefs.h. */ 6298 #define _LARGE_FILES 1 6299 #include <sys/types.h> 6300 /* Check that off_t can represent 2**63 - 1 correctly. 6301 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6302 since some C++ compilers masquerading as C compilers 6303 incorrectly reject 9223372036854775807. */ 6304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6306 && LARGE_OFF_T % 2147483647 == 1) 6307 ? 1 : -1]; 6308 int 6309 main () 6310 { 6311 6312 ; 6313 return 0; 6314 } 6315 _ACEOF 6316 if ac_fn_c_try_compile "$LINENO"; then : 6317 ac_cv_sys_large_files=1; break 6318 fi 6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6320 ac_cv_sys_large_files=unknown 6321 break 6322 done 6323 fi 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6325 $as_echo "$ac_cv_sys_large_files" >&6; } 6326 case $ac_cv_sys_large_files in #( 6327 no | unknown) ;; 6328 *) 6329 cat >>confdefs.h <<_ACEOF 6330 #define _LARGE_FILES $ac_cv_sys_large_files 6331 _ACEOF 6332 ;; 6333 esac 6334 rm -rf conftest* 6335 fi 6336 fi 6337 6338 6339 # Checks for libraries. 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5 6341 $as_echo_n "checking for library containing getpwnam... " >&6; } 6342 if test "${ac_cv_search_getpwnam+set}" = set; then : 6343 $as_echo_n "(cached) " >&6 6344 else 6345 ac_func_search_save_LIBS=$LIBS 6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6347 /* end confdefs.h. */ 6348 6349 /* Override any GCC internal prototype to avoid an error. 6350 Use char because int might match the return type of a GCC 6351 builtin and then its argument prototype would still apply. */ 6352 #ifdef __cplusplus 6353 extern "C" 6354 #endif 6355 char getpwnam (); 6356 int 6357 main () 6358 { 6359 return getpwnam (); 6360 ; 6361 return 0; 6362 } 6363 _ACEOF 6364 for ac_lib in '' sun; do 6365 if test -z "$ac_lib"; then 6366 ac_res="none required" 6367 else 6368 ac_res=-l$ac_lib 6369 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6370 fi 6371 if ac_fn_c_try_link "$LINENO"; then : 6372 ac_cv_search_getpwnam=$ac_res 6373 fi 6374 rm -f core conftest.err conftest.$ac_objext \ 6375 conftest$ac_exeext 6376 if test "${ac_cv_search_getpwnam+set}" = set; then : 6377 break 6378 fi 6379 done 6380 if test "${ac_cv_search_getpwnam+set}" = set; then : 6381 6382 else 6383 ac_cv_search_getpwnam=no 6384 fi 6385 rm conftest.$ac_ext 6386 LIBS=$ac_func_search_save_LIBS 6387 fi 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5 6389 $as_echo "$ac_cv_search_getpwnam" >&6; } 6390 ac_res=$ac_cv_search_getpwnam 6391 if test "$ac_res" != no; then : 6392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6393 6394 fi 6395 6396 6397 # Checks for header files. 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6399 $as_echo_n "checking for ANSI C header files... " >&6; } 6400 if test "${ac_cv_header_stdc+set}" = set; then : 6401 $as_echo_n "(cached) " >&6 6402 else 6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6404 /* end confdefs.h. */ 6405 #include <stdlib.h> 6406 #include <stdarg.h> 6407 #include <string.h> 6408 #include <float.h> 6409 6410 int 6411 main () 6412 { 6413 6414 ; 6415 return 0; 6416 } 6417 _ACEOF 6418 if ac_fn_c_try_compile "$LINENO"; then : 6419 ac_cv_header_stdc=yes 6420 else 6421 ac_cv_header_stdc=no 6422 fi 6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6424 6425 if test $ac_cv_header_stdc = yes; then 6426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6428 /* end confdefs.h. */ 6429 #include <string.h> 6430 6431 _ACEOF 6432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6433 $EGREP "memchr" >/dev/null 2>&1; then : 6434 6435 else 6436 ac_cv_header_stdc=no 6437 fi 6438 rm -f conftest* 6439 6440 fi 6441 6442 if test $ac_cv_header_stdc = yes; then 6443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445 /* end confdefs.h. */ 6446 #include <stdlib.h> 6447 6448 _ACEOF 6449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6450 $EGREP "free" >/dev/null 2>&1; then : 6451 6452 else 6453 ac_cv_header_stdc=no 6454 fi 6455 rm -f conftest* 6456 6457 fi 6458 6459 if test $ac_cv_header_stdc = yes; then 6460 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6461 if test "$cross_compiling" = yes; then : 6462 : 6463 else 6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465 /* end confdefs.h. */ 6466 #include <ctype.h> 6467 #include <stdlib.h> 6468 #if ((' ' & 0x0FF) == 0x020) 6469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6471 #else 6472 # define ISLOWER(c) \ 6473 (('a' <= (c) && (c) <= 'i') \ 6474 || ('j' <= (c) && (c) <= 'r') \ 6475 || ('s' <= (c) && (c) <= 'z')) 6476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6477 #endif 6478 6479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6480 int 6481 main () 6482 { 6483 int i; 6484 for (i = 0; i < 256; i++) 6485 if (XOR (islower (i), ISLOWER (i)) 6486 || toupper (i) != TOUPPER (i)) 6487 return 2; 6488 return 0; 6489 } 6490 _ACEOF 6491 if ac_fn_c_try_run "$LINENO"; then : 6492 6493 else 6494 ac_cv_header_stdc=no 6495 fi 6496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6497 conftest.$ac_objext conftest.beam conftest.$ac_ext 6498 fi 6499 6500 fi 6501 fi 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6503 $as_echo "$ac_cv_header_stdc" >&6; } 6504 if test $ac_cv_header_stdc = yes; then 6505 6506 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 6507 6508 fi 6509 6510 ac_header_dirent=no 6511 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 6512 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 6514 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 6515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 6516 $as_echo_n "(cached) " >&6 6517 else 6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6519 /* end confdefs.h. */ 6520 #include <sys/types.h> 6521 #include <$ac_hdr> 6522 6523 int 6524 main () 6525 { 6526 if ((DIR *) 0) 6527 return 0; 6528 ; 6529 return 0; 6530 } 6531 _ACEOF 6532 if ac_fn_c_try_compile "$LINENO"; then : 6533 eval "$as_ac_Header=yes" 6534 else 6535 eval "$as_ac_Header=no" 6536 fi 6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6538 fi 6539 eval ac_res=\$$as_ac_Header 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6541 $as_echo "$ac_res" >&6; } 6542 eval as_val=\$$as_ac_Header 6543 if test "x$as_val" = x""yes; then : 6544 cat >>confdefs.h <<_ACEOF 6545 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 6546 _ACEOF 6547 6548 ac_header_dirent=$ac_hdr; break 6549 fi 6550 6551 done 6552 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 6553 if test $ac_header_dirent = dirent.h; then 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 6555 $as_echo_n "checking for library containing opendir... " >&6; } 6556 if test "${ac_cv_search_opendir+set}" = set; then : 6557 $as_echo_n "(cached) " >&6 6558 else 6559 ac_func_search_save_LIBS=$LIBS 6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6561 /* end confdefs.h. */ 6562 6563 /* Override any GCC internal prototype to avoid an error. 6564 Use char because int might match the return type of a GCC 6565 builtin and then its argument prototype would still apply. */ 6566 #ifdef __cplusplus 6567 extern "C" 6568 #endif 6569 char opendir (); 6570 int 6571 main () 6572 { 6573 return opendir (); 6574 ; 6575 return 0; 6576 } 6577 _ACEOF 6578 for ac_lib in '' dir; do 6579 if test -z "$ac_lib"; then 6580 ac_res="none required" 6581 else 6582 ac_res=-l$ac_lib 6583 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6584 fi 6585 if ac_fn_c_try_link "$LINENO"; then : 6586 ac_cv_search_opendir=$ac_res 6587 fi 6588 rm -f core conftest.err conftest.$ac_objext \ 6589 conftest$ac_exeext 6590 if test "${ac_cv_search_opendir+set}" = set; then : 6591 break 6592 fi 6593 done 6594 if test "${ac_cv_search_opendir+set}" = set; then : 6595 6596 else 6597 ac_cv_search_opendir=no 6598 fi 6599 rm conftest.$ac_ext 6600 LIBS=$ac_func_search_save_LIBS 6601 fi 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 6603 $as_echo "$ac_cv_search_opendir" >&6; } 6604 ac_res=$ac_cv_search_opendir 6605 if test "$ac_res" != no; then : 6606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6607 6608 fi 6609 6610 else 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 6612 $as_echo_n "checking for library containing opendir... " >&6; } 6613 if test "${ac_cv_search_opendir+set}" = set; then : 6614 $as_echo_n "(cached) " >&6 6615 else 6616 ac_func_search_save_LIBS=$LIBS 6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6618 /* end confdefs.h. */ 6619 6620 /* Override any GCC internal prototype to avoid an error. 6621 Use char because int might match the return type of a GCC 6622 builtin and then its argument prototype would still apply. */ 6623 #ifdef __cplusplus 6624 extern "C" 6625 #endif 6626 char opendir (); 6627 int 6628 main () 6629 { 6630 return opendir (); 6631 ; 6632 return 0; 6633 } 6634 _ACEOF 6635 for ac_lib in '' x; do 6636 if test -z "$ac_lib"; then 6637 ac_res="none required" 6638 else 6639 ac_res=-l$ac_lib 6640 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6641 fi 6642 if ac_fn_c_try_link "$LINENO"; then : 6643 ac_cv_search_opendir=$ac_res 6644 fi 6645 rm -f core conftest.err conftest.$ac_objext \ 6646 conftest$ac_exeext 6647 if test "${ac_cv_search_opendir+set}" = set; then : 6648 break 6649 fi 6650 done 6651 if test "${ac_cv_search_opendir+set}" = set; then : 6652 6653 else 6654 ac_cv_search_opendir=no 6655 fi 6656 rm conftest.$ac_ext 6657 LIBS=$ac_func_search_save_LIBS 6658 fi 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 6660 $as_echo "$ac_cv_search_opendir" >&6; } 6661 ac_res=$ac_cv_search_opendir 6662 if test "$ac_res" != no; then : 6663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6664 6665 fi 6666 6667 fi 6668 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 6670 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 6671 if test "${ac_cv_header_stat_broken+set}" = set; then : 6672 $as_echo_n "(cached) " >&6 6673 else 6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6675 /* end confdefs.h. */ 6676 #include <sys/types.h> 6677 #include <sys/stat.h> 6678 6679 #if defined S_ISBLK && defined S_IFDIR 6680 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 6681 #endif 6682 6683 #if defined S_ISBLK && defined S_IFCHR 6684 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 6685 #endif 6686 6687 #if defined S_ISLNK && defined S_IFREG 6688 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 6689 #endif 6690 6691 #if defined S_ISSOCK && defined S_IFREG 6692 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 6693 #endif 6694 6695 _ACEOF 6696 if ac_fn_c_try_compile "$LINENO"; then : 6697 ac_cv_header_stat_broken=no 6698 else 6699 ac_cv_header_stat_broken=yes 6700 fi 6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6702 fi 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 6704 $as_echo "$ac_cv_header_stat_broken" >&6; } 6705 if test $ac_cv_header_stat_broken = yes; then 6706 6707 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 6708 6709 fi 6710 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 6712 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 6713 if test "${ac_cv_header_time+set}" = set; then : 6714 $as_echo_n "(cached) " >&6 6715 else 6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6717 /* end confdefs.h. */ 6718 #include <sys/types.h> 6719 #include <sys/time.h> 6720 #include <time.h> 6721 6722 int 6723 main () 6724 { 6725 if ((struct tm *) 0) 6726 return 0; 6727 ; 6728 return 0; 6729 } 6730 _ACEOF 6731 if ac_fn_c_try_compile "$LINENO"; then : 6732 ac_cv_header_time=yes 6733 else 6734 ac_cv_header_time=no 6735 fi 6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6737 fi 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 6739 $as_echo "$ac_cv_header_time" >&6; } 6740 if test $ac_cv_header_time = yes; then 6741 6742 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 6743 6744 fi 6745 6746 for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \ 6747 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h 6748 do : 6749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6750 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6751 eval as_val=\$$as_ac_Header 6752 if test "x$as_val" = x""yes; then : 6753 cat >>confdefs.h <<_ACEOF 6754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6755 _ACEOF 6756 6757 fi 6758 6759 done 6760 6761 6762 # Set a flag if we have an ANSI C compiler 6763 if test "$ac_cv_prog_cc_stdc" != no; then 6764 6765 $as_echo "#define HAVE_ANSI_COMPILER 1" >>confdefs.h 6766 6767 fi 6768 6769 6770 # Determine what kind of variadic function calls we support 6771 for ac_header in stdarg.h varargs.h 6772 do : 6773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6774 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6775 eval as_val=\$$as_ac_Header 6776 if test "x$as_val" = x""yes; then : 6777 cat >>confdefs.h <<_ACEOF 6778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6779 _ACEOF 6780 break 6781 fi 6782 6783 done 6784 6785 6786 if test "x$CC" != xcc; then 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 6788 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 6789 else 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 6791 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } 6792 fi 6793 set dummy $CC; ac_cc=`$as_echo "$2" | 6794 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 6795 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 6796 $as_echo_n "(cached) " >&6 6797 else 6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6799 /* end confdefs.h. */ 6800 6801 int 6802 main () 6803 { 6804 6805 ; 6806 return 0; 6807 } 6808 _ACEOF 6809 # Make sure it works both with $CC and with simple cc. 6810 # We do the test twice because some compilers refuse to overwrite an 6811 # existing .o file with -o, though they will create one. 6812 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 6813 rm -f conftest2.* 6814 if { { case "(($ac_try" in 6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6816 *) ac_try_echo=$ac_try;; 6817 esac 6818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6819 $as_echo "$ac_try_echo"; } >&5 6820 (eval "$ac_try") 2>&5 6821 ac_status=$? 6822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6823 test $ac_status = 0; } && 6824 test -f conftest2.$ac_objext && { { case "(($ac_try" in 6825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6826 *) ac_try_echo=$ac_try;; 6827 esac 6828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6829 $as_echo "$ac_try_echo"; } >&5 6830 (eval "$ac_try") 2>&5 6831 ac_status=$? 6832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6833 test $ac_status = 0; }; 6834 then 6835 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 6836 if test "x$CC" != xcc; then 6837 # Test first that cc exists at all. 6838 if { ac_try='cc -c conftest.$ac_ext >&5' 6839 { { case "(($ac_try" in 6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6841 *) ac_try_echo=$ac_try;; 6842 esac 6843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6844 $as_echo "$ac_try_echo"; } >&5 6845 (eval "$ac_try") 2>&5 6846 ac_status=$? 6847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6848 test $ac_status = 0; }; }; then 6849 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 6850 rm -f conftest2.* 6851 if { { case "(($ac_try" in 6852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6853 *) ac_try_echo=$ac_try;; 6854 esac 6855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6856 $as_echo "$ac_try_echo"; } >&5 6857 (eval "$ac_try") 2>&5 6858 ac_status=$? 6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6860 test $ac_status = 0; } && 6861 test -f conftest2.$ac_objext && { { case "(($ac_try" in 6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6863 *) ac_try_echo=$ac_try;; 6864 esac 6865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6866 $as_echo "$ac_try_echo"; } >&5 6867 (eval "$ac_try") 2>&5 6868 ac_status=$? 6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6870 test $ac_status = 0; }; 6871 then 6872 # cc works too. 6873 : 6874 else 6875 # cc exists but doesn't like -o. 6876 eval ac_cv_prog_cc_${ac_cc}_c_o=no 6877 fi 6878 fi 6879 fi 6880 else 6881 eval ac_cv_prog_cc_${ac_cc}_c_o=no 6882 fi 6883 rm -f core conftest* 6884 6885 fi 6886 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6888 $as_echo "yes" >&6; } 6889 else 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6891 $as_echo "no" >&6; } 6892 6893 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 6894 6895 fi 6896 6897 # FIXME: we rely on the cache variable name because 6898 # there is no other way. 6899 set dummy $CC 6900 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 6901 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 6902 # Losing compiler, so override with the script. 6903 # FIXME: It is wrong to rewrite CC. 6904 # But if we don't then we get into trouble of one sort or another. 6905 # A longer-term fix would be to have automake use am__CC in this case, 6906 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6907 CC="$am_aux_dir/compile $CC" 6908 fi 6909 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 6911 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 6912 if test "${ac_cv_c_const+set}" = set; then : 6913 $as_echo_n "(cached) " >&6 6914 else 6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6916 /* end confdefs.h. */ 6917 6918 int 6919 main () 6920 { 6921 /* FIXME: Include the comments suggested by Paul. */ 6922 #ifndef __cplusplus 6923 /* Ultrix mips cc rejects this. */ 6924 typedef int charset[2]; 6925 const charset cs; 6926 /* SunOS 4.1.1 cc rejects this. */ 6927 char const *const *pcpcc; 6928 char **ppc; 6929 /* NEC SVR4.0.2 mips cc rejects this. */ 6930 struct point {int x, y;}; 6931 static struct point const zero = {0,0}; 6932 /* AIX XL C 1.02.0.0 rejects this. 6933 It does not let you subtract one const X* pointer from another in 6934 an arm of an if-expression whose if-part is not a constant 6935 expression */ 6936 const char *g = "string"; 6937 pcpcc = &g + (g ? g-g : 0); 6938 /* HPUX 7.0 cc rejects these. */ 6939 ++pcpcc; 6940 ppc = (char**) pcpcc; 6941 pcpcc = (char const *const *) ppc; 6942 { /* SCO 3.2v4 cc rejects this. */ 6943 char *t; 6944 char const *s = 0 ? (char *) 0 : (char const *) 0; 6945 6946 *t++ = 0; 6947 if (s) return 0; 6948 } 6949 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6950 int x[] = {25, 17}; 6951 const int *foo = &x[0]; 6952 ++foo; 6953 } 6954 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6955 typedef const int *iptr; 6956 iptr p = 0; 6957 ++p; 6958 } 6959 { /* AIX XL C 1.02.0.0 rejects this saying 6960 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6961 struct s { int j; const int *ap[3]; }; 6962 struct s *b; b->j = 5; 6963 } 6964 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6965 const int foo = 10; 6966 if (!foo) return 0; 6967 } 6968 return !cs[0] && !zero.x; 6969 #endif 6970 6971 ; 6972 return 0; 6973 } 6974 _ACEOF 6975 if ac_fn_c_try_compile "$LINENO"; then : 6976 ac_cv_c_const=yes 6977 else 6978 ac_cv_c_const=no 6979 fi 6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6981 fi 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 6983 $as_echo "$ac_cv_c_const" >&6; } 6984 if test $ac_cv_c_const = no; then 6985 6986 $as_echo "#define const /**/" >>confdefs.h 6987 6988 fi 6989 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 6991 $as_echo_n "checking return type of signal handlers... " >&6; } 6992 if test "${ac_cv_type_signal+set}" = set; then : 6993 $as_echo_n "(cached) " >&6 6994 else 6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996 /* end confdefs.h. */ 6997 #include <sys/types.h> 6998 #include <signal.h> 6999 7000 int 7001 main () 7002 { 7003 return *(signal (0, 0)) (0) == 1; 7004 ; 7005 return 0; 7006 } 7007 _ACEOF 7008 if ac_fn_c_try_compile "$LINENO"; then : 7009 ac_cv_type_signal=int 7010 else 7011 ac_cv_type_signal=void 7012 fi 7013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7014 fi 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 7016 $as_echo "$ac_cv_type_signal" >&6; } 7017 7018 cat >>confdefs.h <<_ACEOF 7019 #define RETSIGTYPE $ac_cv_type_signal 7020 _ACEOF 7021 7022 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 7024 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } 7025 if test "${ac_cv_type_uid_t+set}" = set; then : 7026 $as_echo_n "(cached) " >&6 7027 else 7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7029 /* end confdefs.h. */ 7030 #include <sys/types.h> 7031 7032 _ACEOF 7033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7034 $EGREP "uid_t" >/dev/null 2>&1; then : 7035 ac_cv_type_uid_t=yes 7036 else 7037 ac_cv_type_uid_t=no 7038 fi 7039 rm -f conftest* 7040 7041 fi 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 7043 $as_echo "$ac_cv_type_uid_t" >&6; } 7044 if test $ac_cv_type_uid_t = no; then 7045 7046 $as_echo "#define uid_t int" >>confdefs.h 7047 7048 7049 $as_echo "#define gid_t int" >>confdefs.h 7050 7051 fi 7052 7053 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 7054 if test "x$ac_cv_type_pid_t" = x""yes; then : 7055 7056 else 7057 7058 cat >>confdefs.h <<_ACEOF 7059 #define pid_t int 7060 _ACEOF 7061 7062 fi 7063 7064 7065 # Find some definition for uintmax_t 7066 7067 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 7068 if test "x$ac_cv_type_uintmax_t" = x""yes; then : 7069 7070 else 7071 7072 uintmax_t="unsigned long" 7073 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" 7074 if test "x$ac_cv_type_unsigned_long_long" = x""yes; then : 7075 uintmax_t="unsigned long long" 7076 fi 7077 7078 7079 cat >>confdefs.h <<_ACEOF 7080 #define uintmax_t $uintmax_t 7081 _ACEOF 7082 7083 fi 7084 7085 7086 # Find out whether our struct stat returns nanosecond resolution timestamps. 7087 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat.st_mtim" >&5 7089 $as_echo_n "checking for nanoseconds field of struct stat.st_mtim... " >&6; } 7090 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then : 7091 $as_echo_n "(cached) " >&6 7092 else 7093 ac_save_CPPFLAGS="$CPPFLAGS" 7094 ac_cv_struct_st_mtim_nsec=no 7095 # tv_nsec -- the usual case 7096 # _tv_nsec -- Solaris 2.6, if 7097 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1 7098 # && !defined __EXTENSIONS__) 7099 # st__tim.tv_nsec -- UnixWare 2.1.2 7100 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do 7101 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val" 7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7103 /* end confdefs.h. */ 7104 #include <sys/types.h> 7105 #include <sys/stat.h> 7106 7107 int 7108 main () 7109 { 7110 struct stat s; s.st_mtim.ST_MTIM_NSEC; 7111 ; 7112 return 0; 7113 } 7114 _ACEOF 7115 if ac_fn_c_try_compile "$LINENO"; then : 7116 ac_cv_struct_st_mtim_nsec=$ac_val; break 7117 fi 7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7119 done 7120 CPPFLAGS="$ac_save_CPPFLAGS" 7121 7122 fi 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5 7124 $as_echo "$ac_cv_struct_st_mtim_nsec" >&6; } 7125 7126 if test $ac_cv_struct_st_mtim_nsec != no; then 7127 7128 cat >>confdefs.h <<_ACEOF 7129 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec 7130 _ACEOF 7131 7132 fi 7133 7134 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5 7136 $as_echo_n "checking whether to use high resolution file timestamps... " >&6; } 7137 if test "${make_cv_file_timestamp_hi_res+set}" = set; then : 7138 $as_echo_n "(cached) " >&6 7139 else 7140 7141 make_cv_file_timestamp_hi_res=no 7142 if test "$ac_cv_struct_st_mtim_nsec" != no; then 7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7144 /* end confdefs.h. */ 7145 7146 # if HAVE_INTTYPES_H 7147 # include <inttypes.h> 7148 # endif 7149 int 7150 main () 7151 { 7152 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1]; 7153 ; 7154 return 0; 7155 } 7156 _ACEOF 7157 if ac_fn_c_try_compile "$LINENO"; then : 7158 make_cv_file_timestamp_hi_res=yes 7159 fi 7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7161 fi 7162 fi 7163 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5 7165 $as_echo "$make_cv_file_timestamp_hi_res" >&6; } 7166 if test "$make_cv_file_timestamp_hi_res" = yes; then 7167 val=1 7168 else 7169 val=0 7170 fi 7171 7172 cat >>confdefs.h <<_ACEOF 7173 #define FILE_TIMESTAMP_HI_RES $val 7174 _ACEOF 7175 7176 7177 if test "$make_cv_file_timestamp_hi_res" = yes; then 7178 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. 7179 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 7181 $as_echo_n "checking for library containing clock_gettime... " >&6; } 7182 if test "${ac_cv_search_clock_gettime+set}" = set; then : 7183 $as_echo_n "(cached) " >&6 7184 else 7185 ac_func_search_save_LIBS=$LIBS 7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187 /* end confdefs.h. */ 7188 7189 /* Override any GCC internal prototype to avoid an error. 7190 Use char because int might match the return type of a GCC 7191 builtin and then its argument prototype would still apply. */ 7192 #ifdef __cplusplus 7193 extern "C" 7194 #endif 7195 char clock_gettime (); 7196 int 7197 main () 7198 { 7199 return clock_gettime (); 7200 ; 7201 return 0; 7202 } 7203 _ACEOF 7204 for ac_lib in '' rt posix4; do 7205 if test -z "$ac_lib"; then 7206 ac_res="none required" 7207 else 7208 ac_res=-l$ac_lib 7209 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7210 fi 7211 if ac_fn_c_try_link "$LINENO"; then : 7212 ac_cv_search_clock_gettime=$ac_res 7213 fi 7214 rm -f core conftest.err conftest.$ac_objext \ 7215 conftest$ac_exeext 7216 if test "${ac_cv_search_clock_gettime+set}" = set; then : 7217 break 7218 fi 7219 done 7220 if test "${ac_cv_search_clock_gettime+set}" = set; then : 7221 7222 else 7223 ac_cv_search_clock_gettime=no 7224 fi 7225 rm conftest.$ac_ext 7226 LIBS=$ac_func_search_save_LIBS 7227 fi 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 7229 $as_echo "$ac_cv_search_clock_gettime" >&6; } 7230 ac_res=$ac_cv_search_clock_gettime 7231 if test "$ac_res" != no; then : 7232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7233 7234 fi 7235 7236 if test "$ac_cv_search_clock_gettime" != no; then 7237 7238 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 7239 7240 fi 7241 fi 7242 7243 # Check for DOS-style pathnames. 7244 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5 7246 $as_echo_n "checking whether system uses MSDOS-style paths... " >&6; } 7247 if test "${ac_cv_dos_paths+set}" = set; then : 7248 $as_echo_n "(cached) " >&6 7249 else 7250 7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7252 /* end confdefs.h. */ 7253 7254 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ 7255 neither MSDOS nor Windows nor OS2 7256 #endif 7257 7258 _ACEOF 7259 if ac_fn_c_try_compile "$LINENO"; then : 7260 ac_cv_dos_paths=yes 7261 else 7262 ac_cv_dos_paths=no 7263 fi 7264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7265 7266 fi 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5 7268 $as_echo "$ac_cv_dos_paths" >&6; } 7269 7270 if test x"$ac_cv_dos_paths" = xyes; then 7271 7272 cat >>confdefs.h <<_ACEOF 7273 #define HAVE_DOS_PATHS 1 7274 _ACEOF 7275 7276 fi 7277 7278 7279 # See if we have a standard version of gettimeofday(). Since actual 7280 # implementations can differ, just make sure we have the most common 7281 # one. 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5 7283 $as_echo_n "checking for standard gettimeofday... " >&6; } 7284 if test "${ac_cv_func_gettimeofday+set}" = set; then : 7285 $as_echo_n "(cached) " >&6 7286 else 7287 ac_cv_func_gettimeofday=no 7288 if test "$cross_compiling" = yes; then : 7289 ac_cv_func_gettimeofday="no (cross-compiling)" 7290 else 7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7292 /* end confdefs.h. */ 7293 #include <sys/time.h> 7294 int main () 7295 { 7296 struct timeval t; t.tv_sec = -1; t.tv_usec = -1; 7297 exit (gettimeofday (&t, 0) != 0 7298 || t.tv_sec < 0 || t.tv_usec < 0); 7299 } 7300 _ACEOF 7301 if ac_fn_c_try_run "$LINENO"; then : 7302 ac_cv_func_gettimeofday=yes 7303 else 7304 ac_cv_func_gettimeofday=no 7305 fi 7306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7307 conftest.$ac_objext conftest.beam conftest.$ac_ext 7308 fi 7309 7310 fi 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5 7312 $as_echo "$ac_cv_func_gettimeofday" >&6; } 7313 if test "$ac_cv_func_gettimeofday" = yes; then 7314 7315 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 7316 7317 fi 7318 7319 for ac_func in memcpy memmove strchr strdup mkstemp mktemp fdopen \ 7320 bsd_signal dup2 getcwd realpath sigsetmask sigaction \ 7321 getgroups seteuid setegid setlinebuf setreuid setregid \ 7322 getrlimit setrlimit setvbuf pipe strerror strsignal \ 7323 lstat readlink atexit 7324 do : 7325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7327 eval as_val=\$$as_ac_var 7328 if test "x$as_val" = x""yes; then : 7329 cat >>confdefs.h <<_ACEOF 7330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7331 _ACEOF 7332 7333 fi 7334 done 7335 7336 7337 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then : 7338 $as_echo_n "(cached) " >&6 7339 else 7340 ac_cv_func_setvbuf_reversed=no 7341 fi 7342 7343 7344 7345 # strcoll() is used by the GNU glob library 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5 7347 $as_echo_n "checking for working strcoll... " >&6; } 7348 if test "${ac_cv_func_strcoll_works+set}" = set; then : 7349 $as_echo_n "(cached) " >&6 7350 else 7351 if test "$cross_compiling" = yes; then : 7352 ac_cv_func_strcoll_works=no 7353 else 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7355 /* end confdefs.h. */ 7356 $ac_includes_default 7357 int 7358 main () 7359 { 7360 return (strcoll ("abc", "def") >= 0 || 7361 strcoll ("ABC", "DEF") >= 0 || 7362 strcoll ("123", "456") >= 0) 7363 ; 7364 return 0; 7365 } 7366 _ACEOF 7367 if ac_fn_c_try_run "$LINENO"; then : 7368 ac_cv_func_strcoll_works=yes 7369 else 7370 ac_cv_func_strcoll_works=no 7371 fi 7372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7373 conftest.$ac_objext conftest.beam conftest.$ac_ext 7374 fi 7375 7376 fi 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5 7378 $as_echo "$ac_cv_func_strcoll_works" >&6; } 7379 if test $ac_cv_func_strcoll_works = yes; then 7380 7381 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h 7382 7383 fi 7384 7385 7386 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7387 # for constant arguments. Useless! 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 7389 $as_echo_n "checking for working alloca.h... " >&6; } 7390 if test "${ac_cv_working_alloca_h+set}" = set; then : 7391 $as_echo_n "(cached) " >&6 7392 else 7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7394 /* end confdefs.h. */ 7395 #include <alloca.h> 7396 int 7397 main () 7398 { 7399 char *p = (char *) alloca (2 * sizeof (int)); 7400 if (p) return 0; 7401 ; 7402 return 0; 7403 } 7404 _ACEOF 7405 if ac_fn_c_try_link "$LINENO"; then : 7406 ac_cv_working_alloca_h=yes 7407 else 7408 ac_cv_working_alloca_h=no 7409 fi 7410 rm -f core conftest.err conftest.$ac_objext \ 7411 conftest$ac_exeext conftest.$ac_ext 7412 fi 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 7414 $as_echo "$ac_cv_working_alloca_h" >&6; } 7415 if test $ac_cv_working_alloca_h = yes; then 7416 7417 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 7418