1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552exec 7<&0 </dev/null 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570SHELL=${CONFIG_SHELL-/bin/sh} 571 572# Identity of this package. 573PACKAGE_NAME= 574PACKAGE_TARNAME= 575PACKAGE_VERSION= 576PACKAGE_STRING= 577PACKAGE_BUGREPORT= 578 579ac_unique_file="buffer.c" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='SHELL 617PATH_SEPARATOR 618PACKAGE_NAME 619PACKAGE_TARNAME 620PACKAGE_VERSION 621PACKAGE_STRING 622PACKAGE_BUGREPORT 623exec_prefix 624prefix 625program_transform_name 626bindir 627sbindir 628libexecdir 629datarootdir 630datadir 631sysconfdir 632sharedstatedir 633localstatedir 634includedir 635oldincludedir 636docdir 637infodir 638htmldir 639dvidir 640pdfdir 641psdir 642libdir 643localedir 644mandir 645DEFS 646ECHO_C 647ECHO_N 648ECHO_T 649LIBS 650build_alias 651host_alias 652target_alias 653CC 654CFLAGS 655LDFLAGS 656CPPFLAGS 657ac_ct_CC 658EXEEXT 659OBJEXT 660CPP 661GREP 662EGREP 663INSTALL_PROGRAM 664INSTALL_SCRIPT 665INSTALL_DATA 666LN_S 667INSTALL_INFO 668build 669build_cpu 670build_vendor 671build_os 672host 673host_cpu 674host_vendor 675host_os 676target 677target_cpu 678target_vendor 679target_os 680XMKMF 681X_CFLAGS 682X_PRE_LIBS 683X_LIBS 684X_EXTRA_LIBS 685FLOPPYD 686BINFLOPPYD 687extraincludedir 688extralibdir 689MACHDEPLIBS 690SHLIB 691HOST_ID 692LIBOBJS 693LTLIBOBJS' 694ac_subst_files='' 695 ac_precious_vars='build_alias 696host_alias 697target_alias 698CC 699CFLAGS 700LDFLAGS 701LIBS 702CPPFLAGS 703CPP 704XMKMF' 705 706 707# Initialize some variables set by options. 708ac_init_help= 709ac_init_version=false 710# The variables have the same names as the options, with 711# dashes changed to underlines. 712cache_file=/dev/null 713exec_prefix=NONE 714no_create= 715no_recursion= 716prefix=NONE 717program_prefix=NONE 718program_suffix=NONE 719program_transform_name=s,x,x, 720silent= 721site= 722srcdir= 723verbose= 724x_includes=NONE 725x_libraries=NONE 726 727# Installation directory options. 728# These are left unexpanded so users can "make install exec_prefix=/foo" 729# and all the variables that are supposed to be based on exec_prefix 730# by default will actually change. 731# Use braces instead of parens because sh, perl, etc. also accept them. 732# (The list follows the same order as the GNU Coding Standards.) 733bindir='${exec_prefix}/bin' 734sbindir='${exec_prefix}/sbin' 735libexecdir='${exec_prefix}/libexec' 736datarootdir='${prefix}/share' 737datadir='${datarootdir}' 738sysconfdir='${prefix}/etc' 739sharedstatedir='${prefix}/com' 740localstatedir='${prefix}/var' 741includedir='${prefix}/include' 742oldincludedir='/usr/include' 743docdir='${datarootdir}/doc/${PACKAGE}' 744infodir='${datarootdir}/info' 745htmldir='${docdir}' 746dvidir='${docdir}' 747pdfdir='${docdir}' 748psdir='${docdir}' 749libdir='${exec_prefix}/lib' 750localedir='${datarootdir}/locale' 751mandir='${datarootdir}/man' 752 753ac_prev= 754ac_dashdash= 755for ac_option 756do 757 # If the previous option needs an argument, assign it. 758 if test -n "$ac_prev"; then 759 eval $ac_prev=\$ac_option 760 ac_prev= 761 continue 762 fi 763 764 case $ac_option in 765 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 766 *) ac_optarg=yes ;; 767 esac 768 769 # Accept the important Cygnus configure options, so we can diagnose typos. 770 771 case $ac_dashdash$ac_option in 772 --) 773 ac_dashdash=yes ;; 774 775 -bindir | --bindir | --bindi | --bind | --bin | --bi) 776 ac_prev=bindir ;; 777 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 778 bindir=$ac_optarg ;; 779 780 -build | --build | --buil | --bui | --bu) 781 ac_prev=build_alias ;; 782 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 783 build_alias=$ac_optarg ;; 784 785 -cache-file | --cache-file | --cache-fil | --cache-fi \ 786 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 787 ac_prev=cache_file ;; 788 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 789 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 790 cache_file=$ac_optarg ;; 791 792 --config-cache | -C) 793 cache_file=config.cache ;; 794 795 -datadir | --datadir | --datadi | --datad) 796 ac_prev=datadir ;; 797 -datadir=* | --datadir=* | --datadi=* | --datad=*) 798 datadir=$ac_optarg ;; 799 800 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 801 | --dataroo | --dataro | --datar) 802 ac_prev=datarootdir ;; 803 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 804 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 805 datarootdir=$ac_optarg ;; 806 807 -disable-* | --disable-*) 808 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 809 # Reject names that are not valid shell variable names. 810 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 811 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 812 { (exit 1); exit 1; }; } 813 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 814 eval enable_$ac_feature=no ;; 815 816 -docdir | --docdir | --docdi | --doc | --do) 817 ac_prev=docdir ;; 818 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 819 docdir=$ac_optarg ;; 820 821 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 822 ac_prev=dvidir ;; 823 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 824 dvidir=$ac_optarg ;; 825 826 -enable-* | --enable-*) 827 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 828 # Reject names that are not valid shell variable names. 829 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 831 { (exit 1); exit 1; }; } 832 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 833 eval enable_$ac_feature=\$ac_optarg ;; 834 835 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 836 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 837 | --exec | --exe | --ex) 838 ac_prev=exec_prefix ;; 839 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 840 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 841 | --exec=* | --exe=* | --ex=*) 842 exec_prefix=$ac_optarg ;; 843 844 -gas | --gas | --ga | --g) 845 # Obsolete; use --with-gas. 846 with_gas=yes ;; 847 848 -help | --help | --hel | --he | -h) 849 ac_init_help=long ;; 850 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 851 ac_init_help=recursive ;; 852 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 853 ac_init_help=short ;; 854 855 -host | --host | --hos | --ho) 856 ac_prev=host_alias ;; 857 -host=* | --host=* | --hos=* | --ho=*) 858 host_alias=$ac_optarg ;; 859 860 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 861 ac_prev=htmldir ;; 862 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 863 | --ht=*) 864 htmldir=$ac_optarg ;; 865 866 -includedir | --includedir | --includedi | --included | --include \ 867 | --includ | --inclu | --incl | --inc) 868 ac_prev=includedir ;; 869 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 870 | --includ=* | --inclu=* | --incl=* | --inc=*) 871 includedir=$ac_optarg ;; 872 873 -infodir | --infodir | --infodi | --infod | --info | --inf) 874 ac_prev=infodir ;; 875 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 876 infodir=$ac_optarg ;; 877 878 -libdir | --libdir | --libdi | --libd) 879 ac_prev=libdir ;; 880 -libdir=* | --libdir=* | --libdi=* | --libd=*) 881 libdir=$ac_optarg ;; 882 883 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 884 | --libexe | --libex | --libe) 885 ac_prev=libexecdir ;; 886 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 887 | --libexe=* | --libex=* | --libe=*) 888 libexecdir=$ac_optarg ;; 889 890 -localedir | --localedir | --localedi | --localed | --locale) 891 ac_prev=localedir ;; 892 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 893 localedir=$ac_optarg ;; 894 895 -localstatedir | --localstatedir | --localstatedi | --localstated \ 896 | --localstate | --localstat | --localsta | --localst | --locals) 897 ac_prev=localstatedir ;; 898 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 899 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 900 localstatedir=$ac_optarg ;; 901 902 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 903 ac_prev=mandir ;; 904 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 905 mandir=$ac_optarg ;; 906 907 -nfp | --nfp | --nf) 908 # Obsolete; use --without-fp. 909 with_fp=no ;; 910 911 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 912 | --no-cr | --no-c | -n) 913 no_create=yes ;; 914 915 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 916 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 917 no_recursion=yes ;; 918 919 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 920 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 921 | --oldin | --oldi | --old | --ol | --o) 922 ac_prev=oldincludedir ;; 923 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 924 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 925 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 926 oldincludedir=$ac_optarg ;; 927 928 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 929 ac_prev=prefix ;; 930 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 931 prefix=$ac_optarg ;; 932 933 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 934 | --program-pre | --program-pr | --program-p) 935 ac_prev=program_prefix ;; 936 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 937 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 938 program_prefix=$ac_optarg ;; 939 940 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 941 | --program-suf | --program-su | --program-s) 942 ac_prev=program_suffix ;; 943 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 944 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 945 program_suffix=$ac_optarg ;; 946 947 -program-transform-name | --program-transform-name \ 948 | --program-transform-nam | --program-transform-na \ 949 | --program-transform-n | --program-transform- \ 950 | --program-transform | --program-transfor \ 951 | --program-transfo | --program-transf \ 952 | --program-trans | --program-tran \ 953 | --progr-tra | --program-tr | --program-t) 954 ac_prev=program_transform_name ;; 955 -program-transform-name=* | --program-transform-name=* \ 956 | --program-transform-nam=* | --program-transform-na=* \ 957 | --program-transform-n=* | --program-transform-=* \ 958 | --program-transform=* | --program-transfor=* \ 959 | --program-transfo=* | --program-transf=* \ 960 | --program-trans=* | --program-tran=* \ 961 | --progr-tra=* | --program-tr=* | --program-t=*) 962 program_transform_name=$ac_optarg ;; 963 964 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 965 ac_prev=pdfdir ;; 966 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 967 pdfdir=$ac_optarg ;; 968 969 -psdir | --psdir | --psdi | --psd | --ps) 970 ac_prev=psdir ;; 971 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 972 psdir=$ac_optarg ;; 973 974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 975 | -silent | --silent | --silen | --sile | --sil) 976 silent=yes ;; 977 978 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 979 ac_prev=sbindir ;; 980 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 981 | --sbi=* | --sb=*) 982 sbindir=$ac_optarg ;; 983 984 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 985 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 986 | --sharedst | --shareds | --shared | --share | --shar \ 987 | --sha | --sh) 988 ac_prev=sharedstatedir ;; 989 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 990 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 991 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 992 | --sha=* | --sh=*) 993 sharedstatedir=$ac_optarg ;; 994 995 -site | --site | --sit) 996 ac_prev=site ;; 997 -site=* | --site=* | --sit=*) 998 site=$ac_optarg ;; 999 1000 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1001 ac_prev=srcdir ;; 1002 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1003 srcdir=$ac_optarg ;; 1004 1005 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1006 | --syscon | --sysco | --sysc | --sys | --sy) 1007 ac_prev=sysconfdir ;; 1008 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1009 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1010 sysconfdir=$ac_optarg ;; 1011 1012 -target | --target | --targe | --targ | --tar | --ta | --t) 1013 ac_prev=target_alias ;; 1014 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1015 target_alias=$ac_optarg ;; 1016 1017 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1018 verbose=yes ;; 1019 1020 -version | --version | --versio | --versi | --vers | -V) 1021 ac_init_version=: ;; 1022 1023 -with-* | --with-*) 1024 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1027 { echo "$as_me: error: invalid package name: $ac_package" >&2 1028 { (exit 1); exit 1; }; } 1029 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1030 eval with_$ac_package=\$ac_optarg ;; 1031 1032 -without-* | --without-*) 1033 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1034 # Reject names that are not valid shell variable names. 1035 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1036 { echo "$as_me: error: invalid package name: $ac_package" >&2 1037 { (exit 1); exit 1; }; } 1038 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1039 eval with_$ac_package=no ;; 1040 1041 --x) 1042 # Obsolete; use --with-x. 1043 with_x=yes ;; 1044 1045 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1046 | --x-incl | --x-inc | --x-in | --x-i) 1047 ac_prev=x_includes ;; 1048 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1049 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1050 x_includes=$ac_optarg ;; 1051 1052 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1053 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1054 ac_prev=x_libraries ;; 1055 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1056 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1057 x_libraries=$ac_optarg ;; 1058 1059 -*) { echo "$as_me: error: unrecognized option: $ac_option 1060Try \`$0 --help' for more information." >&2 1061 { (exit 1); exit 1; }; } 1062 ;; 1063 1064 *=*) 1065 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1066 # Reject names that are not valid shell variable names. 1067 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1068 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1069 { (exit 1); exit 1; }; } 1070 eval $ac_envvar=\$ac_optarg 1071 export $ac_envvar ;; 1072 1073 *) 1074 # FIXME: should be removed in autoconf 3.0. 1075 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1076 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1077 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1078 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1079 ;; 1080 1081 esac 1082done 1083 1084if test -n "$ac_prev"; then 1085 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1086 { echo "$as_me: error: missing argument to $ac_option" >&2 1087 { (exit 1); exit 1; }; } 1088fi 1089 1090# Be sure to have absolute directory names. 1091for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1092 datadir sysconfdir sharedstatedir localstatedir includedir \ 1093 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1094 libdir localedir mandir 1095do 1096 eval ac_val=\$$ac_var 1097 case $ac_val in 1098 [\\/$]* | ?:[\\/]* ) continue;; 1099 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1100 esac 1101 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1102 { (exit 1); exit 1; }; } 1103done 1104 1105# There might be people who depend on the old broken behavior: `$host' 1106# used to hold the argument of --host etc. 1107# FIXME: To remove some day. 1108build=$build_alias 1109host=$host_alias 1110target=$target_alias 1111 1112# FIXME: To remove some day. 1113if test "x$host_alias" != x; then 1114 if test "x$build_alias" = x; then 1115 cross_compiling=maybe 1116 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1117 If a cross compiler is detected then cross compile mode will be used." >&2 1118 elif test "x$build_alias" != "x$host_alias"; then 1119 cross_compiling=yes 1120 fi 1121fi 1122 1123ac_tool_prefix= 1124test -n "$host_alias" && ac_tool_prefix=$host_alias- 1125 1126test "$silent" = yes && exec 6>/dev/null 1127 1128 1129ac_pwd=`pwd` && test -n "$ac_pwd" && 1130ac_ls_di=`ls -di .` && 1131ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1132 { echo "$as_me: error: Working directory cannot be determined" >&2 1133 { (exit 1); exit 1; }; } 1134test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1135 { echo "$as_me: error: pwd does not report name of working directory" >&2 1136 { (exit 1); exit 1; }; } 1137 1138 1139# Find the source files, if location was not specified. 1140if test -z "$srcdir"; then 1141 ac_srcdir_defaulted=yes 1142 # Try the directory containing this script, then the parent directory. 1143 ac_confdir=`$as_dirname -- "$0" || 1144$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1145 X"$0" : 'X\(//\)[^/]' \| \ 1146 X"$0" : 'X\(//\)$' \| \ 1147 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1148echo X"$0" | 1149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1150 s//\1/ 1151 q 1152 } 1153 /^X\(\/\/\)[^/].*/{ 1154 s//\1/ 1155 q 1156 } 1157 /^X\(\/\/\)$/{ 1158 s//\1/ 1159 q 1160 } 1161 /^X\(\/\).*/{ 1162 s//\1/ 1163 q 1164 } 1165 s/.*/./; q'` 1166 srcdir=$ac_confdir 1167 if test ! -r "$srcdir/$ac_unique_file"; then 1168 srcdir=.. 1169 fi 1170else 1171 ac_srcdir_defaulted=no 1172fi 1173if test ! -r "$srcdir/$ac_unique_file"; then 1174 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1175 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1176 { (exit 1); exit 1; }; } 1177fi 1178ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1179ac_abs_confdir=`( 1180 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1181 { (exit 1); exit 1; }; } 1182 pwd)` 1183# When building in place, set srcdir=. 1184if test "$ac_abs_confdir" = "$ac_pwd"; then 1185 srcdir=. 1186fi 1187# Remove unnecessary trailing slashes from srcdir. 1188# Double slashes in file names in object file debugging info 1189# mess up M-x gdb in Emacs. 1190case $srcdir in 1191*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1192esac 1193for ac_var in $ac_precious_vars; do 1194 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1195 eval ac_env_${ac_var}_value=\$${ac_var} 1196 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1197 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1198done 1199 1200# 1201# Report the --help message. 1202# 1203if test "$ac_init_help" = "long"; then 1204 # Omit some internal or obsolete options to make the list less imposing. 1205 # This message is too long to be a string in the A/UX 3.1 sh. 1206 cat <<_ACEOF 1207\`configure' configures this package to adapt to many kinds of systems. 1208 1209Usage: $0 [OPTION]... [VAR=VALUE]... 1210 1211To assign environment variables (e.g., CC, CFLAGS...), specify them as 1212VAR=VALUE. See below for descriptions of some of the useful variables. 1213 1214Defaults for the options are specified in brackets. 1215 1216Configuration: 1217 -h, --help display this help and exit 1218 --help=short display options specific to this package 1219 --help=recursive display the short help of all the included packages 1220 -V, --version display version information and exit 1221 -q, --quiet, --silent do not print \`checking...' messages 1222 --cache-file=FILE cache test results in FILE [disabled] 1223 -C, --config-cache alias for \`--cache-file=config.cache' 1224 -n, --no-create do not create output files 1225 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1226 1227Installation directories: 1228 --prefix=PREFIX install architecture-independent files in PREFIX 1229 [$ac_default_prefix] 1230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1231 [PREFIX] 1232 1233By default, \`make install' will install all the files in 1234\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1235an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1236for instance \`--prefix=\$HOME'. 1237 1238For better control, use the options below. 1239 1240Fine tuning of the installation directories: 1241 --bindir=DIR user executables [EPREFIX/bin] 1242 --sbindir=DIR system admin executables [EPREFIX/sbin] 1243 --libexecdir=DIR program executables [EPREFIX/libexec] 1244 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1245 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1246 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1247 --libdir=DIR object code libraries [EPREFIX/lib] 1248 --includedir=DIR C header files [PREFIX/include] 1249 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1250 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1251 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1252 --infodir=DIR info documentation [DATAROOTDIR/info] 1253 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1254 --mandir=DIR man documentation [DATAROOTDIR/man] 1255 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1256 --htmldir=DIR html documentation [DOCDIR] 1257 --dvidir=DIR dvi documentation [DOCDIR] 1258 --pdfdir=DIR pdf documentation [DOCDIR] 1259 --psdir=DIR ps documentation [DOCDIR] 1260_ACEOF 1261 1262 cat <<\_ACEOF 1263 1264X features: 1265 --x-includes=DIR X include files are in DIR 1266 --x-libraries=DIR X library files are in DIR 1267 1268System types: 1269 --build=BUILD configure for building on BUILD [guessed] 1270 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1271 --target=TARGET configure for building compilers for TARGET [HOST] 1272_ACEOF 1273fi 1274 1275if test -n "$ac_init_help"; then 1276 1277 cat <<\_ACEOF 1278 1279Optional Features: 1280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1282 --enable-xdf support for OS/2 extended density format disks 1283 --enable-vold compatibility with Solaris' vold 1284 --enable-new-vold compatibility with Solaris' vold, new version 1285 --enable-debug debuging messages 1286 --enable-raw-term raw terminal (readkey behaviour, default) 1287 --enable-floppyd floppy daemon support 1288 1289Optional Packages: 1290 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1291 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1292 --with-x use the X Window System 1293 1294Some influential environment variables: 1295 CC C compiler command 1296 CFLAGS C compiler flags 1297 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1298 nonstandard directory <lib dir> 1299 LIBS libraries to pass to the linker, e.g. -l<library> 1300 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1301 you have headers in a nonstandard directory <include dir> 1302 CPP C preprocessor 1303 XMKMF Path to xmkmf, Makefile generator for X Window System 1304 1305Use these variables to override the choices made by `configure' or to help 1306it to find libraries and programs with nonstandard names/locations. 1307 1308_ACEOF 1309ac_status=$? 1310fi 1311 1312if test "$ac_init_help" = "recursive"; then 1313 # If there are subdirs, report their specific --help. 1314 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1315 test -d "$ac_dir" || continue 1316 ac_builddir=. 1317 1318case "$ac_dir" in 1319.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1320*) 1321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1322 # A ".." for each directory in $ac_dir_suffix. 1323 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1324 case $ac_top_builddir_sub in 1325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1327 esac ;; 1328esac 1329ac_abs_top_builddir=$ac_pwd 1330ac_abs_builddir=$ac_pwd$ac_dir_suffix 1331# for backward compatibility: 1332ac_top_builddir=$ac_top_build_prefix 1333 1334case $srcdir in 1335 .) # We are building in place. 1336 ac_srcdir=. 1337 ac_top_srcdir=$ac_top_builddir_sub 1338 ac_abs_top_srcdir=$ac_pwd ;; 1339 [\\/]* | ?:[\\/]* ) # Absolute name. 1340 ac_srcdir=$srcdir$ac_dir_suffix; 1341 ac_top_srcdir=$srcdir 1342 ac_abs_top_srcdir=$srcdir ;; 1343 *) # Relative name. 1344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1345 ac_top_srcdir=$ac_top_build_prefix$srcdir 1346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1347esac 1348ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1349 1350 cd "$ac_dir" || { ac_status=$?; continue; } 1351 # Check for guested configure. 1352 if test -f "$ac_srcdir/configure.gnu"; then 1353 echo && 1354 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1355 elif test -f "$ac_srcdir/configure"; then 1356 echo && 1357 $SHELL "$ac_srcdir/configure" --help=recursive 1358 else 1359 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1360 fi || ac_status=$? 1361 cd "$ac_pwd" || { ac_status=$?; break; } 1362 done 1363fi 1364 1365test -n "$ac_init_help" && exit $ac_status 1366if $ac_init_version; then 1367 cat <<\_ACEOF 1368configure 1369generated by GNU Autoconf 2.61 1370 1371Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13722002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1373This configure script is free software; the Free Software Foundation 1374gives unlimited permission to copy, distribute and modify it. 1375_ACEOF 1376 exit 1377fi 1378cat >config.log <<_ACEOF 1379This file contains any messages produced by compilers while 1380running configure, to aid debugging if configure makes a mistake. 1381 1382It was created by $as_me, which was 1383generated by GNU Autoconf 2.61. Invocation command line was 1384 1385 $ $0 $@ 1386 1387_ACEOF 1388exec 5>>config.log 1389{ 1390cat <<_ASUNAME 1391## --------- ## 1392## Platform. ## 1393## --------- ## 1394 1395hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1396uname -m = `(uname -m) 2>/dev/null || echo unknown` 1397uname -r = `(uname -r) 2>/dev/null || echo unknown` 1398uname -s = `(uname -s) 2>/dev/null || echo unknown` 1399uname -v = `(uname -v) 2>/dev/null || echo unknown` 1400 1401/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1402/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1403 1404/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1405/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1406/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1407/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1408/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1409/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1410/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1411 1412_ASUNAME 1413 1414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1415for as_dir in $PATH 1416do 1417 IFS=$as_save_IFS 1418 test -z "$as_dir" && as_dir=. 1419 echo "PATH: $as_dir" 1420done 1421IFS=$as_save_IFS 1422 1423} >&5 1424 1425cat >&5 <<_ACEOF 1426 1427 1428## ----------- ## 1429## Core tests. ## 1430## ----------- ## 1431 1432_ACEOF 1433 1434 1435# Keep a trace of the command line. 1436# Strip out --no-create and --no-recursion so they do not pile up. 1437# Strip out --silent because we don't want to record it for future runs. 1438# Also quote any args containing shell meta-characters. 1439# Make two passes to allow for proper duplicate-argument suppression. 1440ac_configure_args= 1441ac_configure_args0= 1442ac_configure_args1= 1443ac_must_keep_next=false 1444for ac_pass in 1 2 1445do 1446 for ac_arg 1447 do 1448 case $ac_arg in 1449 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1451 | -silent | --silent | --silen | --sile | --sil) 1452 continue ;; 1453 *\'*) 1454 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1455 esac 1456 case $ac_pass in 1457 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1458 2) 1459 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1460 if test $ac_must_keep_next = true; then 1461 ac_must_keep_next=false # Got value, back to normal. 1462 else 1463 case $ac_arg in 1464 *=* | --config-cache | -C | -disable-* | --disable-* \ 1465 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1466 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1467 | -with-* | --with-* | -without-* | --without-* | --x) 1468 case "$ac_configure_args0 " in 1469 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1470 esac 1471 ;; 1472 -* ) ac_must_keep_next=true ;; 1473 esac 1474 fi 1475 ac_configure_args="$ac_configure_args '$ac_arg'" 1476 ;; 1477 esac 1478 done 1479done 1480$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1481$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1482 1483# When interrupted or exit'd, cleanup temporary files, and complete 1484# config.log. We remove comments because anyway the quotes in there 1485# would cause problems or look ugly. 1486# WARNING: Use '\'' to represent an apostrophe within the trap. 1487# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1488trap 'exit_status=$? 1489 # Save into config.log some information that might help in debugging. 1490 { 1491 echo 1492 1493 cat <<\_ASBOX 1494## ---------------- ## 1495## Cache variables. ## 1496## ---------------- ## 1497_ASBOX 1498 echo 1499 # The following way of writing the cache mishandles newlines in values, 1500( 1501 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1502 eval ac_val=\$$ac_var 1503 case $ac_val in #( 1504 *${as_nl}*) 1505 case $ac_var in #( 1506 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1507echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1508 esac 1509 case $ac_var in #( 1510 _ | IFS | as_nl) ;; #( 1511 *) $as_unset $ac_var ;; 1512 esac ;; 1513 esac 1514 done 1515 (set) 2>&1 | 1516 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1517 *${as_nl}ac_space=\ *) 1518 sed -n \ 1519 "s/'\''/'\''\\\\'\'''\''/g; 1520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1521 ;; #( 1522 *) 1523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1524 ;; 1525 esac | 1526 sort 1527) 1528 echo 1529 1530 cat <<\_ASBOX 1531## ----------------- ## 1532## Output variables. ## 1533## ----------------- ## 1534_ASBOX 1535 echo 1536 for ac_var in $ac_subst_vars 1537 do 1538 eval ac_val=\$$ac_var 1539 case $ac_val in 1540 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1541 esac 1542 echo "$ac_var='\''$ac_val'\''" 1543 done | sort 1544 echo 1545 1546 if test -n "$ac_subst_files"; then 1547 cat <<\_ASBOX 1548## ------------------- ## 1549## File substitutions. ## 1550## ------------------- ## 1551_ASBOX 1552 echo 1553 for ac_var in $ac_subst_files 1554 do 1555 eval ac_val=\$$ac_var 1556 case $ac_val in 1557 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1558 esac 1559 echo "$ac_var='\''$ac_val'\''" 1560 done | sort 1561 echo 1562 fi 1563 1564 if test -s confdefs.h; then 1565 cat <<\_ASBOX 1566## ----------- ## 1567## confdefs.h. ## 1568## ----------- ## 1569_ASBOX 1570 echo 1571 cat confdefs.h 1572 echo 1573 fi 1574 test "$ac_signal" != 0 && 1575 echo "$as_me: caught signal $ac_signal" 1576 echo "$as_me: exit $exit_status" 1577 } >&5 1578 rm -f core *.core core.conftest.* && 1579 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1580 exit $exit_status 1581' 0 1582for ac_signal in 1 2 13 15; do 1583 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1584done 1585ac_signal=0 1586 1587# confdefs.h avoids OS command line length limits that DEFS can exceed. 1588rm -f -r conftest* confdefs.h 1589 1590# Predefined preprocessor variables. 1591 1592cat >>confdefs.h <<_ACEOF 1593#define PACKAGE_NAME "$PACKAGE_NAME" 1594_ACEOF 1595 1596 1597cat >>confdefs.h <<_ACEOF 1598#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1599_ACEOF 1600 1601 1602cat >>confdefs.h <<_ACEOF 1603#define PACKAGE_VERSION "$PACKAGE_VERSION" 1604_ACEOF 1605 1606 1607cat >>confdefs.h <<_ACEOF 1608#define PACKAGE_STRING "$PACKAGE_STRING" 1609_ACEOF 1610 1611 1612cat >>confdefs.h <<_ACEOF 1613#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1614_ACEOF 1615 1616 1617# Let the site file select an alternate cache file if it wants to. 1618# Prefer explicitly selected file to automatically selected ones. 1619if test -n "$CONFIG_SITE"; then 1620 set x "$CONFIG_SITE" 1621elif test "x$prefix" != xNONE; then 1622 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1623else 1624 set x "$ac_default_prefix/share/config.site" \ 1625 "$ac_default_prefix/etc/config.site" 1626fi 1627shift 1628for ac_site_file 1629do 1630 if test -r "$ac_site_file"; then 1631 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1632echo "$as_me: loading site script $ac_site_file" >&6;} 1633 sed 's/^/| /' "$ac_site_file" >&5 1634 . "$ac_site_file" 1635 fi 1636done 1637 1638if test -r "$cache_file"; then 1639 # Some versions of bash will fail to source /dev/null (special 1640 # files actually), so we avoid doing that. 1641 if test -f "$cache_file"; then 1642 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1643echo "$as_me: loading cache $cache_file" >&6;} 1644 case $cache_file in 1645 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1646 *) . "./$cache_file";; 1647 esac 1648 fi 1649else 1650 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1651echo "$as_me: creating cache $cache_file" >&6;} 1652 >$cache_file 1653fi 1654 1655# Check that the precious variables saved in the cache have kept the same 1656# value. 1657ac_cache_corrupted=false 1658for ac_var in $ac_precious_vars; do 1659 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1660 eval ac_new_set=\$ac_env_${ac_var}_set 1661 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1662 eval ac_new_val=\$ac_env_${ac_var}_value 1663 case $ac_old_set,$ac_new_set in 1664 set,) 1665 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1666echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1667 ac_cache_corrupted=: ;; 1668 ,set) 1669 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1670echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1671 ac_cache_corrupted=: ;; 1672 ,);; 1673 *) 1674 if test "x$ac_old_val" != "x$ac_new_val"; then 1675 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1676echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1677 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1678echo "$as_me: former value: $ac_old_val" >&2;} 1679 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1680echo "$as_me: current value: $ac_new_val" >&2;} 1681 ac_cache_corrupted=: 1682 fi;; 1683 esac 1684 # Pass precious variables to config.status. 1685 if test "$ac_new_set" = set; then 1686 case $ac_new_val in 1687 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1688 *) ac_arg=$ac_var=$ac_new_val ;; 1689 esac 1690 case " $ac_configure_args " in 1691 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1692 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1693 esac 1694 fi 1695done 1696if $ac_cache_corrupted; then 1697 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1698echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1699 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1700echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1701 { (exit 1); exit 1; }; } 1702fi 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720ac_ext=c 1721ac_cpp='$CPP $CPPFLAGS' 1722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1724ac_compiler_gnu=$ac_cv_c_compiler_gnu 1725 1726 1727 1728ac_config_headers="$ac_config_headers config.h" 1729 1730 1731ac_ext=c 1732ac_cpp='$CPP $CPPFLAGS' 1733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1735ac_compiler_gnu=$ac_cv_c_compiler_gnu 1736if test -n "$ac_tool_prefix"; then 1737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1738set dummy ${ac_tool_prefix}gcc; ac_word=$2 1739{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1741if test "${ac_cv_prog_CC+set}" = set; then 1742 echo $ECHO_N "(cached) $ECHO_C" >&6 1743else 1744 if test -n "$CC"; then 1745 ac_cv_prog_CC="$CC" # Let the user override the test. 1746else 1747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1748for as_dir in $PATH 1749do 1750 IFS=$as_save_IFS 1751 test -z "$as_dir" && as_dir=. 1752 for ac_exec_ext in '' $ac_executable_extensions; do 1753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1754 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1756 break 2 1757 fi 1758done 1759done 1760IFS=$as_save_IFS 1761 1762fi 1763fi 1764CC=$ac_cv_prog_CC 1765if test -n "$CC"; then 1766 { echo "$as_me:$LINENO: result: $CC" >&5 1767echo "${ECHO_T}$CC" >&6; } 1768else 1769 { echo "$as_me:$LINENO: result: no" >&5 1770echo "${ECHO_T}no" >&6; } 1771fi 1772 1773 1774fi 1775if test -z "$ac_cv_prog_CC"; then 1776 ac_ct_CC=$CC 1777 # Extract the first word of "gcc", so it can be a program name with args. 1778set dummy gcc; ac_word=$2 1779{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1781if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1782 echo $ECHO_N "(cached) $ECHO_C" >&6 1783else 1784 if test -n "$ac_ct_CC"; then 1785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1786else 1787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1788for as_dir in $PATH 1789do 1790 IFS=$as_save_IFS 1791 test -z "$as_dir" && as_dir=. 1792 for ac_exec_ext in '' $ac_executable_extensions; do 1793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1794 ac_cv_prog_ac_ct_CC="gcc" 1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1796 break 2 1797 fi 1798done 1799done 1800IFS=$as_save_IFS 1801 1802fi 1803fi 1804ac_ct_CC=$ac_cv_prog_ac_ct_CC 1805if test -n "$ac_ct_CC"; then 1806 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1807echo "${ECHO_T}$ac_ct_CC" >&6; } 1808else 1809 { echo "$as_me:$LINENO: result: no" >&5 1810echo "${ECHO_T}no" >&6; } 1811fi 1812 1813 if test "x$ac_ct_CC" = x; then 1814 CC="" 1815 else 1816 case $cross_compiling:$ac_tool_warned in 1817yes:) 1818{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1819whose name does not start with the host triplet. If you think this 1820configuration is useful to you, please write to autoconf@gnu.org." >&5 1821echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1822whose name does not start with the host triplet. If you think this 1823configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1824ac_tool_warned=yes ;; 1825esac 1826 CC=$ac_ct_CC 1827 fi 1828else 1829 CC="$ac_cv_prog_CC" 1830fi 1831 1832if test -z "$CC"; then 1833 if test -n "$ac_tool_prefix"; then 1834 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1835set dummy ${ac_tool_prefix}cc; ac_word=$2 1836{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1838if test "${ac_cv_prog_CC+set}" = set; then 1839 echo $ECHO_N "(cached) $ECHO_C" >&6 1840else 1841 if test -n "$CC"; then 1842 ac_cv_prog_CC="$CC" # Let the user override the test. 1843else 1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1845for as_dir in $PATH 1846do 1847 IFS=$as_save_IFS 1848 test -z "$as_dir" && as_dir=. 1849 for ac_exec_ext in '' $ac_executable_extensions; do 1850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1851 ac_cv_prog_CC="${ac_tool_prefix}cc" 1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1853 break 2 1854 fi 1855done 1856done 1857IFS=$as_save_IFS 1858 1859fi 1860fi 1861CC=$ac_cv_prog_CC 1862if test -n "$CC"; then 1863 { echo "$as_me:$LINENO: result: $CC" >&5 1864echo "${ECHO_T}$CC" >&6; } 1865else 1866 { echo "$as_me:$LINENO: result: no" >&5 1867echo "${ECHO_T}no" >&6; } 1868fi 1869 1870 1871 fi 1872fi 1873if test -z "$CC"; then 1874 # Extract the first word of "cc", so it can be a program name with args. 1875set dummy cc; ac_word=$2 1876{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1878if test "${ac_cv_prog_CC+set}" = set; then 1879 echo $ECHO_N "(cached) $ECHO_C" >&6 1880else 1881 if test -n "$CC"; then 1882 ac_cv_prog_CC="$CC" # Let the user override the test. 1883else 1884 ac_prog_rejected=no 1885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1886for as_dir in $PATH 1887do 1888 IFS=$as_save_IFS 1889 test -z "$as_dir" && as_dir=. 1890 for ac_exec_ext in '' $ac_executable_extensions; do 1891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1892 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1893 ac_prog_rejected=yes 1894 continue 1895 fi 1896 ac_cv_prog_CC="cc" 1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1898 break 2 1899 fi 1900done 1901done 1902IFS=$as_save_IFS 1903 1904if test $ac_prog_rejected = yes; then 1905 # We found a bogon in the path, so make sure we never use it. 1906 set dummy $ac_cv_prog_CC 1907 shift 1908 if test $# != 0; then 1909 # We chose a different compiler from the bogus one. 1910 # However, it has the same basename, so the bogon will be chosen 1911 # first if we set CC to just the basename; use the full file name. 1912 shift 1913 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1914 fi 1915fi 1916fi 1917fi 1918CC=$ac_cv_prog_CC 1919if test -n "$CC"; then 1920 { echo "$as_me:$LINENO: result: $CC" >&5 1921echo "${ECHO_T}$CC" >&6; } 1922else 1923 { echo "$as_me:$LINENO: result: no" >&5 1924echo "${ECHO_T}no" >&6; } 1925fi 1926 1927 1928fi 1929if test -z "$CC"; then 1930 if test -n "$ac_tool_prefix"; then 1931 for ac_prog in cl.exe 1932 do 1933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1934set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1935{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1937if test "${ac_cv_prog_CC+set}" = set; then 1938 echo $ECHO_N "(cached) $ECHO_C" >&6 1939else 1940 if test -n "$CC"; then 1941 ac_cv_prog_CC="$CC" # Let the user override the test. 1942else 1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1944for as_dir in $PATH 1945do 1946 IFS=$as_save_IFS 1947 test -z "$as_dir" && as_dir=. 1948 for ac_exec_ext in '' $ac_executable_extensions; do 1949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1950 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1952 break 2 1953 fi 1954done 1955done 1956IFS=$as_save_IFS 1957 1958fi 1959fi 1960CC=$ac_cv_prog_CC 1961if test -n "$CC"; then 1962 { echo "$as_me:$LINENO: result: $CC" >&5 1963echo "${ECHO_T}$CC" >&6; } 1964else 1965 { echo "$as_me:$LINENO: result: no" >&5 1966echo "${ECHO_T}no" >&6; } 1967fi 1968 1969 1970 test -n "$CC" && break 1971 done 1972fi 1973if test -z "$CC"; then 1974 ac_ct_CC=$CC 1975 for ac_prog in cl.exe 1976do 1977 # Extract the first word of "$ac_prog", so it can be a program name with args. 1978set dummy $ac_prog; ac_word=$2 1979{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1981if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1982 echo $ECHO_N "(cached) $ECHO_C" >&6 1983else 1984 if test -n "$ac_ct_CC"; then 1985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1986else 1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1988for as_dir in $PATH 1989do 1990 IFS=$as_save_IFS 1991 test -z "$as_dir" && as_dir=. 1992 for ac_exec_ext in '' $ac_executable_extensions; do 1993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1994 ac_cv_prog_ac_ct_CC="$ac_prog" 1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1996 break 2 1997 fi 1998done 1999done 2000IFS=$as_save_IFS 2001 2002fi 2003fi 2004ac_ct_CC=$ac_cv_prog_ac_ct_CC 2005if test -n "$ac_ct_CC"; then 2006 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2007echo "${ECHO_T}$ac_ct_CC" >&6; } 2008else 2009 { echo "$as_me:$LINENO: result: no" >&5 2010echo "${ECHO_T}no" >&6; } 2011fi 2012 2013 2014 test -n "$ac_ct_CC" && break 2015done 2016 2017 if test "x$ac_ct_CC" = x; then 2018 CC="" 2019 else 2020 case $cross_compiling:$ac_tool_warned in 2021yes:) 2022{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2023whose name does not start with the host triplet. If you think this 2024configuration is useful to you, please write to autoconf@gnu.org." >&5 2025echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2026whose name does not start with the host triplet. If you think this 2027configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2028ac_tool_warned=yes ;; 2029esac 2030 CC=$ac_ct_CC 2031 fi 2032fi 2033 2034fi 2035 2036 2037test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2038See \`config.log' for more details." >&5 2039echo "$as_me: error: no acceptable C compiler found in \$PATH 2040See \`config.log' for more details." >&2;} 2041 { (exit 1); exit 1; }; } 2042 2043# Provide some information about the compiler. 2044echo "$as_me:$LINENO: checking for C compiler version" >&5 2045ac_compiler=`set X $ac_compile; echo $2` 2046{ (ac_try="$ac_compiler --version >&5" 2047case "(($ac_try" in 2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2049 *) ac_try_echo=$ac_try;; 2050esac 2051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2052 (eval "$ac_compiler --version >&5") 2>&5 2053 ac_status=$? 2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2055 (exit $ac_status); } 2056{ (ac_try="$ac_compiler -v >&5" 2057case "(($ac_try" in 2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2059 *) ac_try_echo=$ac_try;; 2060esac 2061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2062 (eval "$ac_compiler -v >&5") 2>&5 2063 ac_status=$? 2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2065 (exit $ac_status); } 2066{ (ac_try="$ac_compiler -V >&5" 2067case "(($ac_try" in 2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2069 *) ac_try_echo=$ac_try;; 2070esac 2071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2072 (eval "$ac_compiler -V >&5") 2>&5 2073 ac_status=$? 2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2075 (exit $ac_status); } 2076 2077cat >conftest.$ac_ext <<_ACEOF 2078/* confdefs.h. */ 2079_ACEOF 2080cat confdefs.h >>conftest.$ac_ext 2081cat >>conftest.$ac_ext <<_ACEOF 2082/* end confdefs.h. */ 2083 2084int 2085main () 2086{ 2087 2088 ; 2089 return 0; 2090} 2091_ACEOF 2092ac_clean_files_save=$ac_clean_files 2093ac_clean_files="$ac_clean_files a.out a.exe b.out" 2094# Try to create an executable without -o first, disregard a.out. 2095# It will help us diagnose broken compilers, and finding out an intuition 2096# of exeext. 2097{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2098echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2099ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2100# 2101# List of possible output files, starting from the most likely. 2102# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2103# only as a last resort. b.out is created by i960 compilers. 2104ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2105# 2106# The IRIX 6 linker writes into existing files which may not be 2107# executable, retaining their permissions. Remove them first so a 2108# subsequent execution test works. 2109ac_rmfiles= 2110for ac_file in $ac_files 2111do 2112 case $ac_file in 2113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2114 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2115 esac 2116done 2117rm -f $ac_rmfiles 2118 2119if { (ac_try="$ac_link_default" 2120case "(($ac_try" in 2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2122 *) ac_try_echo=$ac_try;; 2123esac 2124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2125 (eval "$ac_link_default") 2>&5 2126 ac_status=$? 2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2128 (exit $ac_status); }; then 2129 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2130# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2131# in a Makefile. We should not override ac_cv_exeext if it was cached, 2132# so that the user can short-circuit this test for compilers unknown to 2133# Autoconf. 2134for ac_file in $ac_files '' 2135do 2136 test -f "$ac_file" || continue 2137 case $ac_file in 2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2139 ;; 2140 [ab].out ) 2141 # We found the default executable, but exeext='' is most 2142 # certainly right. 2143 break;; 2144 *.* ) 2145 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2146 then :; else 2147 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2148 fi 2149 # We set ac_cv_exeext here because the later test for it is not 2150 # safe: cross compilers may not add the suffix if given an `-o' 2151 # argument, so we may need to know it at that point already. 2152 # Even if this section looks crufty: it has the advantage of 2153 # actually working. 2154 break;; 2155 * ) 2156 break;; 2157 esac 2158done 2159test "$ac_cv_exeext" = no && ac_cv_exeext= 2160 2161else 2162 ac_file='' 2163fi 2164 2165{ echo "$as_me:$LINENO: result: $ac_file" >&5 2166echo "${ECHO_T}$ac_file" >&6; } 2167if test -z "$ac_file"; then 2168 echo "$as_me: failed program was:" >&5 2169sed 's/^/| /' conftest.$ac_ext >&5 2170 2171{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2172See \`config.log' for more details." >&5 2173echo "$as_me: error: C compiler cannot create executables 2174See \`config.log' for more details." >&2;} 2175 { (exit 77); exit 77; }; } 2176fi 2177 2178ac_exeext=$ac_cv_exeext 2179 2180# Check that the compiler produces executables we can run. If not, either 2181# the compiler is broken, or we cross compile. 2182{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2183echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2184# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2185# If not cross compiling, check that we can run a simple program. 2186if test "$cross_compiling" != yes; then 2187 if { ac_try='./$ac_file' 2188 { (case "(($ac_try" in 2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2190 *) ac_try_echo=$ac_try;; 2191esac 2192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2193 (eval "$ac_try") 2>&5 2194 ac_status=$? 2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2196 (exit $ac_status); }; }; then 2197 cross_compiling=no 2198 else 2199 if test "$cross_compiling" = maybe; then 2200 cross_compiling=yes 2201 else 2202 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2203If you meant to cross compile, use \`--host'. 2204See \`config.log' for more details." >&5 2205echo "$as_me: error: cannot run C compiled programs. 2206If you meant to cross compile, use \`--host'. 2207See \`config.log' for more details." >&2;} 2208 { (exit 1); exit 1; }; } 2209 fi 2210 fi 2211fi 2212{ echo "$as_me:$LINENO: result: yes" >&5 2213echo "${ECHO_T}yes" >&6; } 2214 2215rm -f a.out a.exe conftest$ac_cv_exeext b.out 2216ac_clean_files=$ac_clean_files_save 2217# Check that the compiler produces executables we can run. If not, either 2218# the compiler is broken, or we cross compile. 2219{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2220echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2221{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2222echo "${ECHO_T}$cross_compiling" >&6; } 2223 2224{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2225echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2226if { (ac_try="$ac_link" 2227case "(($ac_try" in 2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2229 *) ac_try_echo=$ac_try;; 2230esac 2231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2232 (eval "$ac_link") 2>&5 2233 ac_status=$? 2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2235 (exit $ac_status); }; then 2236 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2237# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2238# work properly (i.e., refer to `conftest.exe'), while it won't with 2239# `rm'. 2240for ac_file in conftest.exe conftest conftest.*; do 2241 test -f "$ac_file" || continue 2242 case $ac_file in 2243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2244 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2245 break;; 2246 * ) break;; 2247 esac 2248done 2249else 2250 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2251See \`config.log' for more details." >&5 2252echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2253See \`config.log' for more details." >&2;} 2254 { (exit 1); exit 1; }; } 2255fi 2256 2257rm -f conftest$ac_cv_exeext 2258{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2259echo "${ECHO_T}$ac_cv_exeext" >&6; } 2260 2261rm -f conftest.$ac_ext 2262EXEEXT=$ac_cv_exeext 2263ac_exeext=$EXEEXT 2264{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2265echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2266if test "${ac_cv_objext+set}" = set; then 2267 echo $ECHO_N "(cached) $ECHO_C" >&6 2268else 2269 cat >conftest.$ac_ext <<_ACEOF 2270/* confdefs.h. */ 2271_ACEOF 2272cat confdefs.h >>conftest.$ac_ext 2273cat >>conftest.$ac_ext <<_ACEOF 2274/* end confdefs.h. */ 2275 2276int 2277main () 2278{ 2279 2280 ; 2281 return 0; 2282} 2283_ACEOF 2284rm -f conftest.o conftest.obj 2285if { (ac_try="$ac_compile" 2286case "(($ac_try" in 2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2288 *) ac_try_echo=$ac_try;; 2289esac 2290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2291 (eval "$ac_compile") 2>&5 2292 ac_status=$? 2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2294 (exit $ac_status); }; then 2295 for ac_file in conftest.o conftest.obj conftest.*; do 2296 test -f "$ac_file" || continue; 2297 case $ac_file in 2298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2299 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2300 break;; 2301 esac 2302done 2303else 2304 echo "$as_me: failed program was:" >&5 2305sed 's/^/| /' conftest.$ac_ext >&5 2306 2307{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2308See \`config.log' for more details." >&5 2309echo "$as_me: error: cannot compute suffix of object files: cannot compile 2310See \`config.log' for more details." >&2;} 2311 { (exit 1); exit 1; }; } 2312fi 2313 2314rm -f conftest.$ac_cv_objext conftest.$ac_ext 2315fi 2316{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2317echo "${ECHO_T}$ac_cv_objext" >&6; } 2318OBJEXT=$ac_cv_objext 2319ac_objext=$OBJEXT 2320{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2321echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2322if test "${ac_cv_c_compiler_gnu+set}" = set; then 2323 echo $ECHO_N "(cached) $ECHO_C" >&6 2324else 2325 cat >conftest.$ac_ext <<_ACEOF 2326/* confdefs.h. */ 2327_ACEOF 2328cat confdefs.h >>conftest.$ac_ext 2329cat >>conftest.$ac_ext <<_ACEOF 2330/* end confdefs.h. */ 2331 2332int 2333main () 2334{ 2335#ifndef __GNUC__ 2336 choke me 2337#endif 2338 2339 ; 2340 return 0; 2341} 2342_ACEOF 2343rm -f conftest.$ac_objext 2344if { (ac_try="$ac_compile" 2345case "(($ac_try" in 2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2347 *) ac_try_echo=$ac_try;; 2348esac 2349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2350 (eval "$ac_compile") 2>conftest.er1 2351 ac_status=$? 2352 grep -v '^ *+' conftest.er1 >conftest.err 2353 rm -f conftest.er1 2354 cat conftest.err >&5 2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2356 (exit $ac_status); } && { 2357 test -z "$ac_c_werror_flag" || 2358 test ! -s conftest.err 2359 } && test -s conftest.$ac_objext; then 2360 ac_compiler_gnu=yes 2361else 2362 echo "$as_me: failed program was:" >&5 2363sed 's/^/| /' conftest.$ac_ext >&5 2364 2365 ac_compiler_gnu=no 2366fi 2367 2368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2369ac_cv_c_compiler_gnu=$ac_compiler_gnu 2370 2371fi 2372{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2373echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2374GCC=`test $ac_compiler_gnu = yes && echo yes` 2375ac_test_CFLAGS=${CFLAGS+set} 2376ac_save_CFLAGS=$CFLAGS 2377{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2378echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2379if test "${ac_cv_prog_cc_g+set}" = set; then 2380 echo $ECHO_N "(cached) $ECHO_C" >&6 2381else 2382 ac_save_c_werror_flag=$ac_c_werror_flag 2383 ac_c_werror_flag=yes 2384 ac_cv_prog_cc_g=no 2385 CFLAGS="-g" 2386 cat >conftest.$ac_ext <<_ACEOF 2387/* confdefs.h. */ 2388_ACEOF 2389cat confdefs.h >>conftest.$ac_ext 2390cat >>conftest.$ac_ext <<_ACEOF 2391/* end confdefs.h. */ 2392 2393int 2394main () 2395{ 2396 2397 ; 2398 return 0; 2399} 2400_ACEOF 2401rm -f conftest.$ac_objext 2402if { (ac_try="$ac_compile" 2403case "(($ac_try" in 2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2405 *) ac_try_echo=$ac_try;; 2406esac 2407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2408 (eval "$ac_compile") 2>conftest.er1 2409 ac_status=$? 2410 grep -v '^ *+' conftest.er1 >conftest.err 2411 rm -f conftest.er1 2412 cat conftest.err >&5 2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2414 (exit $ac_status); } && { 2415 test -z "$ac_c_werror_flag" || 2416 test ! -s conftest.err 2417 } && test -s conftest.$ac_objext; then 2418 ac_cv_prog_cc_g=yes 2419else 2420 echo "$as_me: failed program was:" >&5 2421sed 's/^/| /' conftest.$ac_ext >&5 2422 2423 CFLAGS="" 2424 cat >conftest.$ac_ext <<_ACEOF 2425/* confdefs.h. */ 2426_ACEOF 2427cat confdefs.h >>conftest.$ac_ext 2428cat >>conftest.$ac_ext <<_ACEOF 2429/* end confdefs.h. */ 2430 2431int 2432main () 2433{ 2434 2435 ; 2436 return 0; 2437} 2438_ACEOF 2439rm -f conftest.$ac_objext 2440if { (ac_try="$ac_compile" 2441case "(($ac_try" in 2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2443 *) ac_try_echo=$ac_try;; 2444esac 2445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2446 (eval "$ac_compile") 2>conftest.er1 2447 ac_status=$? 2448 grep -v '^ *+' conftest.er1 >conftest.err 2449 rm -f conftest.er1 2450 cat conftest.err >&5 2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2452 (exit $ac_status); } && { 2453 test -z "$ac_c_werror_flag" || 2454 test ! -s conftest.err 2455 } && test -s conftest.$ac_objext; then 2456 : 2457else 2458 echo "$as_me: failed program was:" >&5 2459sed 's/^/| /' conftest.$ac_ext >&5 2460 2461 ac_c_werror_flag=$ac_save_c_werror_flag 2462 CFLAGS="-g" 2463 cat >conftest.$ac_ext <<_ACEOF 2464/* confdefs.h. */ 2465_ACEOF 2466cat confdefs.h >>conftest.$ac_ext 2467cat >>conftest.$ac_ext <<_ACEOF 2468/* end confdefs.h. */ 2469 2470int 2471main () 2472{ 2473 2474 ; 2475 return 0; 2476} 2477_ACEOF 2478rm -f conftest.$ac_objext 2479if { (ac_try="$ac_compile" 2480case "(($ac_try" in 2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2482 *) ac_try_echo=$ac_try;; 2483esac 2484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2485 (eval "$ac_compile") 2>conftest.er1 2486 ac_status=$? 2487 grep -v '^ *+' conftest.er1 >conftest.err 2488 rm -f conftest.er1 2489 cat conftest.err >&5 2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2491 (exit $ac_status); } && { 2492 test -z "$ac_c_werror_flag" || 2493 test ! -s conftest.err 2494 } && test -s conftest.$ac_objext; then 2495 ac_cv_prog_cc_g=yes 2496else 2497 echo "$as_me: failed program was:" >&5 2498sed 's/^/| /' conftest.$ac_ext >&5 2499 2500 2501fi 2502 2503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2504fi 2505 2506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2507fi 2508 2509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2510 ac_c_werror_flag=$ac_save_c_werror_flag 2511fi 2512{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2513echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2514if test "$ac_test_CFLAGS" = set; then 2515 CFLAGS=$ac_save_CFLAGS 2516elif test $ac_cv_prog_cc_g = yes; then 2517 if test "$GCC" = yes; then 2518 CFLAGS="-g -O2" 2519 else 2520 CFLAGS="-g" 2521 fi 2522else 2523 if test "$GCC" = yes; then 2524 CFLAGS="-O2" 2525 else 2526 CFLAGS= 2527 fi 2528fi 2529{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2530echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2531if test "${ac_cv_prog_cc_c89+set}" = set; then 2532 echo $ECHO_N "(cached) $ECHO_C" >&6 2533else 2534 ac_cv_prog_cc_c89=no 2535ac_save_CC=$CC 2536cat >conftest.$ac_ext <<_ACEOF 2537/* confdefs.h. */ 2538_ACEOF 2539cat confdefs.h >>conftest.$ac_ext 2540cat >>conftest.$ac_ext <<_ACEOF 2541/* end confdefs.h. */ 2542#include <stdarg.h> 2543#include <stdio.h> 2544#include <sys/types.h> 2545#include <sys/stat.h> 2546/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2547struct buf { int x; }; 2548FILE * (*rcsopen) (struct buf *, struct stat *, int); 2549static char *e (p, i) 2550 char **p; 2551 int i; 2552{ 2553 return p[i]; 2554} 2555static char *f (char * (*g) (char **, int), char **p, ...) 2556{ 2557 char *s; 2558 va_list v; 2559 va_start (v,p); 2560 s = g (p, va_arg (v,int)); 2561 va_end (v); 2562 return s; 2563} 2564 2565/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2566 function prototypes and stuff, but not '\xHH' hex character constants. 2567 These don't provoke an error unfortunately, instead are silently treated 2568 as 'x'. The following induces an error, until -std is added to get 2569 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2570 array size at least. It's necessary to write '\x00'==0 to get something 2571 that's true only with -std. */ 2572int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2573 2574/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2575 inside strings and character constants. */ 2576#define FOO(x) 'x' 2577int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2578 2579int test (int i, double x); 2580struct s1 {int (*f) (int a);}; 2581struct s2 {int (*f) (double a);}; 2582int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2583int argc; 2584char **argv; 2585int 2586main () 2587{ 2588return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2589 ; 2590 return 0; 2591} 2592_ACEOF 2593for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2594 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2595do 2596 CC="$ac_save_CC $ac_arg" 2597 rm -f conftest.$ac_objext 2598if { (ac_try="$ac_compile" 2599case "(($ac_try" in 2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2601 *) ac_try_echo=$ac_try;; 2602esac 2603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2604 (eval "$ac_compile") 2>conftest.er1 2605 ac_status=$? 2606 grep -v '^ *+' conftest.er1 >conftest.err 2607 rm -f conftest.er1 2608 cat conftest.err >&5 2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2610 (exit $ac_status); } && { 2611 test -z "$ac_c_werror_flag" || 2612 test ! -s conftest.err 2613 } && test -s conftest.$ac_objext; then 2614 ac_cv_prog_cc_c89=$ac_arg 2615else 2616 echo "$as_me: failed program was:" >&5 2617sed 's/^/| /' conftest.$ac_ext >&5 2618 2619 2620fi 2621 2622rm -f core conftest.err conftest.$ac_objext 2623 test "x$ac_cv_prog_cc_c89" != "xno" && break 2624done 2625rm -f conftest.$ac_ext 2626CC=$ac_save_CC 2627 2628fi 2629# AC_CACHE_VAL 2630case "x$ac_cv_prog_cc_c89" in 2631 x) 2632 { echo "$as_me:$LINENO: result: none needed" >&5 2633echo "${ECHO_T}none needed" >&6; } ;; 2634 xno) 2635 { echo "$as_me:$LINENO: result: unsupported" >&5 2636echo "${ECHO_T}unsupported" >&6; } ;; 2637 *) 2638 CC="$CC $ac_cv_prog_cc_c89" 2639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2640echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2641esac 2642 2643 2644ac_ext=c 2645ac_cpp='$CPP $CPPFLAGS' 2646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2648ac_compiler_gnu=$ac_cv_c_compiler_gnu 2649 2650 2651ac_ext=c 2652ac_cpp='$CPP $CPPFLAGS' 2653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2655ac_compiler_gnu=$ac_cv_c_compiler_gnu 2656{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2657echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 2658# On Suns, sometimes $CPP names a directory. 2659if test -n "$CPP" && test -d "$CPP"; then 2660 CPP= 2661fi 2662if test -z "$CPP"; then 2663 if test "${ac_cv_prog_CPP+set}" = set; then 2664 echo $ECHO_N "(cached) $ECHO_C" >&6 2665else 2666 # Double quotes because CPP needs to be expanded 2667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2668 do 2669 ac_preproc_ok=false 2670for ac_c_preproc_warn_flag in '' yes 2671do 2672 # Use a header file that comes with gcc, so configuring glibc 2673 # with a fresh cross-compiler works. 2674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2675 # <limits.h> exists even on freestanding compilers. 2676 # On the NeXT, cc -E runs the code through the compiler's parser, 2677 # not just through cpp. "Syntax error" is here to catch this case. 2678 cat >conftest.$ac_ext <<_ACEOF 2679/* confdefs.h. */ 2680_ACEOF 2681cat confdefs.h >>conftest.$ac_ext 2682cat >>conftest.$ac_ext <<_ACEOF 2683/* end confdefs.h. */ 2684#ifdef __STDC__ 2685# include <limits.h> 2686#else 2687# include <assert.h> 2688#endif 2689 Syntax error 2690_ACEOF 2691if { (ac_try="$ac_cpp conftest.$ac_ext" 2692case "(($ac_try" in 2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2694 *) ac_try_echo=$ac_try;; 2695esac 2696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2698 ac_status=$? 2699 grep -v '^ *+' conftest.er1 >conftest.err 2700 rm -f conftest.er1 2701 cat conftest.err >&5 2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2703 (exit $ac_status); } >/dev/null && { 2704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2705 test ! -s conftest.err 2706 }; then 2707 : 2708else 2709 echo "$as_me: failed program was:" >&5 2710sed 's/^/| /' conftest.$ac_ext >&5 2711 2712 # Broken: fails on valid input. 2713continue 2714fi 2715 2716rm -f conftest.err conftest.$ac_ext 2717 2718 # OK, works on sane cases. Now check whether nonexistent headers 2719 # can be detected and how. 2720 cat >conftest.$ac_ext <<_ACEOF 2721/* confdefs.h. */ 2722_ACEOF 2723cat confdefs.h >>conftest.$ac_ext 2724cat >>conftest.$ac_ext <<_ACEOF 2725/* end confdefs.h. */ 2726#include <ac_nonexistent.h> 2727_ACEOF 2728if { (ac_try="$ac_cpp conftest.$ac_ext" 2729case "(($ac_try" in 2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2731 *) ac_try_echo=$ac_try;; 2732esac 2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2735 ac_status=$? 2736 grep -v '^ *+' conftest.er1 >conftest.err 2737 rm -f conftest.er1 2738 cat conftest.err >&5 2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2740 (exit $ac_status); } >/dev/null && { 2741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2742 test ! -s conftest.err 2743 }; then 2744 # Broken: success on invalid input. 2745continue 2746else 2747 echo "$as_me: failed program was:" >&5 2748sed 's/^/| /' conftest.$ac_ext >&5 2749 2750 # Passes both tests. 2751ac_preproc_ok=: 2752break 2753fi 2754 2755rm -f conftest.err conftest.$ac_ext 2756 2757done 2758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2759rm -f conftest.err conftest.$ac_ext 2760if $ac_preproc_ok; then 2761 break 2762fi 2763 2764 done 2765 ac_cv_prog_CPP=$CPP 2766 2767fi 2768 CPP=$ac_cv_prog_CPP 2769else 2770 ac_cv_prog_CPP=$CPP 2771fi 2772{ echo "$as_me:$LINENO: result: $CPP" >&5 2773echo "${ECHO_T}$CPP" >&6; } 2774ac_preproc_ok=false 2775for ac_c_preproc_warn_flag in '' yes 2776do 2777 # Use a header file that comes with gcc, so configuring glibc 2778 # with a fresh cross-compiler works. 2779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2780 # <limits.h> exists even on freestanding compilers. 2781 # On the NeXT, cc -E runs the code through the compiler's parser, 2782 # not just through cpp. "Syntax error" is here to catch this case. 2783 cat >conftest.$ac_ext <<_ACEOF 2784/* confdefs.h. */ 2785_ACEOF 2786cat confdefs.h >>conftest.$ac_ext 2787cat >>conftest.$ac_ext <<_ACEOF 2788/* end confdefs.h. */ 2789#ifdef __STDC__ 2790# include <limits.h> 2791#else 2792# include <assert.h> 2793#endif 2794 Syntax error 2795_ACEOF 2796if { (ac_try="$ac_cpp conftest.$ac_ext" 2797case "(($ac_try" in 2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2799 *) ac_try_echo=$ac_try;; 2800esac 2801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2803 ac_status=$? 2804 grep -v '^ *+' conftest.er1 >conftest.err 2805 rm -f conftest.er1 2806 cat conftest.err >&5 2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2808 (exit $ac_status); } >/dev/null && { 2809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2810 test ! -s conftest.err 2811 }; then 2812 : 2813else 2814 echo "$as_me: failed program was:" >&5 2815sed 's/^/| /' conftest.$ac_ext >&5 2816 2817 # Broken: fails on valid input. 2818continue 2819fi 2820 2821rm -f conftest.err conftest.$ac_ext 2822 2823 # OK, works on sane cases. Now check whether nonexistent headers 2824 # can be detected and how. 2825 cat >conftest.$ac_ext <<_ACEOF 2826/* confdefs.h. */ 2827_ACEOF 2828cat confdefs.h >>conftest.$ac_ext 2829cat >>conftest.$ac_ext <<_ACEOF 2830/* end confdefs.h. */ 2831#include <ac_nonexistent.h> 2832_ACEOF 2833if { (ac_try="$ac_cpp conftest.$ac_ext" 2834case "(($ac_try" in 2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2836 *) ac_try_echo=$ac_try;; 2837esac 2838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2840 ac_status=$? 2841 grep -v '^ *+' conftest.er1 >conftest.err 2842 rm -f conftest.er1 2843 cat conftest.err >&5 2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2845 (exit $ac_status); } >/dev/null && { 2846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2847 test ! -s conftest.err 2848 }; then 2849 # Broken: success on invalid input. 2850continue 2851else 2852 echo "$as_me: failed program was:" >&5 2853sed 's/^/| /' conftest.$ac_ext >&5 2854 2855 # Passes both tests. 2856ac_preproc_ok=: 2857break 2858fi 2859 2860rm -f conftest.err conftest.$ac_ext 2861 2862done 2863# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2864rm -f conftest.err conftest.$ac_ext 2865if $ac_preproc_ok; then 2866 : 2867else 2868 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2869See \`config.log' for more details." >&5 2870echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2871See \`config.log' for more details." >&2;} 2872 { (exit 1); exit 1; }; } 2873fi 2874 2875ac_ext=c 2876ac_cpp='$CPP $CPPFLAGS' 2877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2879ac_compiler_gnu=$ac_cv_c_compiler_gnu 2880 2881 2882{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 2883echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 2884if test "${ac_cv_path_GREP+set}" = set; then 2885 echo $ECHO_N "(cached) $ECHO_C" >&6 2886else 2887 # Extract the first word of "grep ggrep" to use in msg output 2888if test -z "$GREP"; then 2889set dummy grep ggrep; ac_prog_name=$2 2890if test "${ac_cv_path_GREP+set}" = set; then 2891 echo $ECHO_N "(cached) $ECHO_C" >&6 2892else 2893 ac_path_GREP_found=false 2894# Loop through the user's path and test for each of PROGNAME-LIST 2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 2897do 2898 IFS=$as_save_IFS 2899 test -z "$as_dir" && as_dir=. 2900 for ac_prog in grep ggrep; do 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 2903 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 2904 # Check for GNU ac_path_GREP and select it if it is found. 2905 # Check for GNU $ac_path_GREP 2906case `"$ac_path_GREP" --version 2>&1` in 2907*GNU*) 2908 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 2909*) 2910 ac_count=0 2911 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 2912 while : 2913 do 2914 cat "conftest.in" "conftest.in" >"conftest.tmp" 2915 mv "conftest.tmp" "conftest.in" 2916 cp "conftest.in" "conftest.nl" 2917 echo 'GREP' >> "conftest.nl" 2918 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 2919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2920 ac_count=`expr $ac_count + 1` 2921 if test $ac_count -gt ${ac_path_GREP_max-0}; then 2922 # Best one so far, save it but keep looking for a better one 2923 ac_cv_path_GREP="$ac_path_GREP" 2924 ac_path_GREP_max=$ac_count 2925 fi 2926 # 10*(2^10) chars as input seems more than enough 2927 test $ac_count -gt 10 && break 2928 done 2929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 2930esac 2931 2932 2933 $ac_path_GREP_found && break 3 2934 done 2935done 2936 2937done 2938IFS=$as_save_IFS 2939 2940 2941fi 2942 2943GREP="$ac_cv_path_GREP" 2944if test -z "$GREP"; then 2945 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 2946echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 2947 { (exit 1); exit 1; }; } 2948fi 2949 2950else 2951 ac_cv_path_GREP=$GREP 2952fi 2953 2954 2955fi 2956{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 2957echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 2958 GREP="$ac_cv_path_GREP" 2959 2960 2961{ echo "$as_me:$LINENO: checking for egrep" >&5 2962echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 2963if test "${ac_cv_path_EGREP+set}" = set; then 2964 echo $ECHO_N "(cached) $ECHO_C" >&6 2965else 2966 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 2967 then ac_cv_path_EGREP="$GREP -E" 2968 else 2969 # Extract the first word of "egrep" to use in msg output 2970if test -z "$EGREP"; then 2971set dummy egrep; ac_prog_name=$2 2972if test "${ac_cv_path_EGREP+set}" = set; then 2973 echo $ECHO_N "(cached) $ECHO_C" >&6 2974else 2975 ac_path_EGREP_found=false 2976# Loop through the user's path and test for each of PROGNAME-LIST 2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 2979do 2980 IFS=$as_save_IFS 2981 test -z "$as_dir" && as_dir=. 2982 for ac_prog in egrep; do 2983 for ac_exec_ext in '' $ac_executable_extensions; do 2984 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 2985 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 2986 # Check for GNU ac_path_EGREP and select it if it is found. 2987 # Check for GNU $ac_path_EGREP 2988case `"$ac_path_EGREP" --version 2>&1` in 2989*GNU*) 2990 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 2991*) 2992 ac_count=0 2993 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 2994 while : 2995 do 2996 cat "conftest.in" "conftest.in" >"conftest.tmp" 2997 mv "conftest.tmp" "conftest.in" 2998 cp "conftest.in" "conftest.nl" 2999 echo 'EGREP' >> "conftest.nl" 3000 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3002 ac_count=`expr $ac_count + 1` 3003 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3004 # Best one so far, save it but keep looking for a better one 3005 ac_cv_path_EGREP="$ac_path_EGREP" 3006 ac_path_EGREP_max=$ac_count 3007 fi 3008 # 10*(2^10) chars as input seems more than enough 3009 test $ac_count -gt 10 && break 3010 done 3011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3012esac 3013 3014 3015 $ac_path_EGREP_found && break 3 3016 done 3017done 3018 3019done 3020IFS=$as_save_IFS 3021 3022 3023fi 3024 3025EGREP="$ac_cv_path_EGREP" 3026if test -z "$EGREP"; then 3027 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3028echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3029 { (exit 1); exit 1; }; } 3030fi 3031 3032else 3033 ac_cv_path_EGREP=$EGREP 3034fi 3035 3036 3037 fi 3038fi 3039{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3040echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3041 EGREP="$ac_cv_path_EGREP" 3042 3043 3044if test $ac_cv_c_compiler_gnu = yes; then 3045 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 3046echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } 3047if test "${ac_cv_prog_gcc_traditional+set}" = set; then 3048 echo $ECHO_N "(cached) $ECHO_C" >&6 3049else 3050 ac_pattern="Autoconf.*'x'" 3051 cat >conftest.$ac_ext <<_ACEOF 3052/* confdefs.h. */ 3053_ACEOF 3054cat confdefs.h >>conftest.$ac_ext 3055cat >>conftest.$ac_ext <<_ACEOF 3056/* end confdefs.h. */ 3057#include <sgtty.h> 3058Autoconf TIOCGETP 3059_ACEOF 3060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3061 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3062 ac_cv_prog_gcc_traditional=yes 3063else 3064 ac_cv_prog_gcc_traditional=no 3065fi 3066rm -f conftest* 3067 3068 3069 if test $ac_cv_prog_gcc_traditional = no; then 3070 cat >conftest.$ac_ext <<_ACEOF 3071/* confdefs.h. */ 3072_ACEOF 3073cat confdefs.h >>conftest.$ac_ext 3074cat >>conftest.$ac_ext <<_ACEOF 3075/* end confdefs.h. */ 3076#include <termio.h> 3077Autoconf TCGETA 3078_ACEOF 3079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3080 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3081 ac_cv_prog_gcc_traditional=yes 3082fi 3083rm -f conftest* 3084 3085 fi 3086fi 3087{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 3088echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } 3089 if test $ac_cv_prog_gcc_traditional = yes; then 3090 CC="$CC -traditional" 3091 fi 3092fi 3093 3094ac_aux_dir= 3095for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3096 if test -f "$ac_dir/install-sh"; then 3097 ac_aux_dir=$ac_dir 3098 ac_install_sh="$ac_aux_dir/install-sh -c" 3099 break 3100 elif test -f "$ac_dir/install.sh"; then 3101 ac_aux_dir=$ac_dir 3102 ac_install_sh="$ac_aux_dir/install.sh -c" 3103 break 3104 elif test -f "$ac_dir/shtool"; then 3105 ac_aux_dir=$ac_dir 3106 ac_install_sh="$ac_aux_dir/shtool install -c" 3107 break 3108 fi 3109done 3110if test -z "$ac_aux_dir"; then 3111 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 3112echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 3113 { (exit 1); exit 1; }; } 3114fi 3115 3116# These three variables are undocumented and unsupported, 3117# and are intended to be withdrawn in a future Autoconf release. 3118# They can cause serious problems if a builder's source tree is in a directory 3119# whose full name contains unusual characters. 3120ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3121ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3122ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3123 3124 3125# Find a good install program. We prefer a C program (faster), 3126# so one script is as good as another. But avoid the broken or 3127# incompatible versions: 3128# SysV /etc/install, /usr/sbin/install 3129# SunOS /usr/etc/install 3130# IRIX /sbin/install 3131# AIX /bin/install 3132# AmigaOS /C/install, which installs bootblocks on floppy discs 3133# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3134# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3135# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3136# OS/2's system install, which has a completely different semantic 3137# ./install, which can be erroneously created by make from ./install.sh. 3138{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3139echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3140if test -z "$INSTALL"; then 3141if test "${ac_cv_path_install+set}" = set; then 3142 echo $ECHO_N "(cached) $ECHO_C" >&6 3143else 3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH 3146do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 # Account for people who put trailing slashes in PATH elements. 3150case $as_dir/ in 3151 ./ | .// | /cC/* | \ 3152 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3153 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3154 /usr/ucb/* ) ;; 3155 *) 3156 # OSF1 and SCO ODT 3.0 have their own names for install. 3157 # Don't use installbsd from OSF since it installs stuff as root 3158 # by default. 3159 for ac_prog in ginstall scoinst install; do 3160 for ac_exec_ext in '' $ac_executable_extensions; do 3161 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3162 if test $ac_prog = install && 3163 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3164 # AIX install. It has an incompatible calling convention. 3165 : 3166 elif test $ac_prog = install && 3167 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3168 # program-specific install script used by HP pwplus--don't use. 3169 : 3170 else 3171 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3172 break 3 3173 fi 3174 fi 3175 done 3176 done 3177 ;; 3178esac 3179done 3180IFS=$as_save_IFS 3181 3182 3183fi 3184 if test "${ac_cv_path_install+set}" = set; then 3185 INSTALL=$ac_cv_path_install 3186 else 3187 # As a last resort, use the slow shell script. Don't cache a 3188 # value for INSTALL within a source directory, because that will 3189 # break other packages using the cache if that directory is 3190 # removed, or if the value is a relative name. 3191 INSTALL=$ac_install_sh 3192 fi 3193fi 3194{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3195echo "${ECHO_T}$INSTALL" >&6; } 3196 3197# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3198# It thinks the first close brace ends the variable substitution. 3199test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3200 3201test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3202 3203test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3204 3205{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 3206echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 3207LN_S=$as_ln_s 3208if test "$LN_S" = "ln -s"; then 3209 { echo "$as_me:$LINENO: result: yes" >&5 3210echo "${ECHO_T}yes" >&6; } 3211else 3212 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3213echo "${ECHO_T}no, using $LN_S" >&6; } 3214fi 3215 3216 3217# Extract the first word of "install-info", so it can be a program name with args. 3218set dummy install-info; ac_word=$2 3219{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3221if test "${ac_cv_path_INSTALL_INFO+set}" = set; then 3222 echo $ECHO_N "(cached) $ECHO_C" >&6 3223else 3224 case $INSTALL_INFO in 3225 [\\/]* | ?:[\\/]*) 3226 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 3227 ;; 3228 *) 3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3230for as_dir in $PATH 3231do 3232 IFS=$as_save_IFS 3233 test -z "$as_dir" && as_dir=. 3234 for ac_exec_ext in '' $ac_executable_extensions; do 3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3236 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 3237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3238 break 2 3239 fi 3240done 3241done 3242IFS=$as_save_IFS 3243 3244 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="""" 3245 ;; 3246esac 3247fi 3248INSTALL_INFO=$ac_cv_path_INSTALL_INFO 3249if test -n "$INSTALL_INFO"; then 3250 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 3251echo "${ECHO_T}$INSTALL_INFO" >&6; } 3252else 3253 { echo "$as_me:$LINENO: result: no" >&5 3254echo "${ECHO_T}no" >&6; } 3255fi 3256 3257 3258 3259 3260{ echo "$as_me:$LINENO: checking for AIX" >&5 3261echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } 3262cat >conftest.$ac_ext <<_ACEOF 3263/* confdefs.h. */ 3264_ACEOF 3265cat confdefs.h >>conftest.$ac_ext 3266cat >>conftest.$ac_ext <<_ACEOF 3267/* end confdefs.h. */ 3268#ifdef _AIX 3269 yes 3270#endif 3271 3272_ACEOF 3273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3274 $EGREP "yes" >/dev/null 2>&1; then 3275 { echo "$as_me:$LINENO: result: yes" >&5 3276echo "${ECHO_T}yes" >&6; } 3277cat >>confdefs.h <<\_ACEOF 3278#define _ALL_SOURCE 1 3279_ACEOF 3280 3281else 3282 { echo "$as_me:$LINENO: result: no" >&5 3283echo "${ECHO_T}no" >&6; } 3284fi 3285rm -f conftest* 3286 3287 3288{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3289echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3290if test "${ac_cv_search_strerror+set}" = set; then 3291 echo $ECHO_N "(cached) $ECHO_C" >&6 3292else 3293 ac_func_search_save_LIBS=$LIBS 3294cat >conftest.$ac_ext <<_ACEOF 3295/* confdefs.h. */ 3296_ACEOF 3297cat confdefs.h >>conftest.$ac_ext 3298cat >>conftest.$ac_ext <<_ACEOF 3299/* end confdefs.h. */ 3300 3301/* Override any GCC internal prototype to avoid an error. 3302 Use char because int might match the return type of a GCC 3303 builtin and then its argument prototype would still apply. */ 3304#ifdef __cplusplus 3305extern "C" 3306#endif 3307char strerror (); 3308int 3309main () 3310{ 3311return strerror (); 3312 ; 3313 return 0; 3314} 3315_ACEOF 3316for ac_lib in '' cposix; do 3317 if test -z "$ac_lib"; then 3318 ac_res="none required" 3319 else 3320 ac_res=-l$ac_lib 3321 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3322 fi 3323 rm -f conftest.$ac_objext conftest$ac_exeext 3324if { (ac_try="$ac_link" 3325case "(($ac_try" in 3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3327 *) ac_try_echo=$ac_try;; 3328esac 3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3330 (eval "$ac_link") 2>conftest.er1 3331 ac_status=$? 3332 grep -v '^ *+' conftest.er1 >conftest.err 3333 rm -f conftest.er1 3334 cat conftest.err >&5 3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3336 (exit $ac_status); } && { 3337 test -z "$ac_c_werror_flag" || 3338 test ! -s conftest.err 3339 } && test -s conftest$ac_exeext && 3340 $as_test_x conftest$ac_exeext; then 3341 ac_cv_search_strerror=$ac_res 3342else 3343 echo "$as_me: failed program was:" >&5 3344sed 's/^/| /' conftest.$ac_ext >&5 3345 3346 3347fi 3348 3349rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3350 conftest$ac_exeext 3351 if test "${ac_cv_search_strerror+set}" = set; then 3352 break 3353fi 3354done 3355if test "${ac_cv_search_strerror+set}" = set; then 3356 : 3357else 3358 ac_cv_search_strerror=no 3359fi 3360rm conftest.$ac_ext 3361LIBS=$ac_func_search_save_LIBS 3362fi 3363{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3364echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 3365ac_res=$ac_cv_search_strerror 3366if test "$ac_res" != no; then 3367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3368 3369fi 3370 3371{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3372echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3373if test "${ac_cv_header_stdc+set}" = set; then 3374 echo $ECHO_N "(cached) $ECHO_C" >&6 3375else 3376 cat >conftest.$ac_ext <<_ACEOF 3377/* confdefs.h. */ 3378_ACEOF 3379cat confdefs.h >>conftest.$ac_ext 3380cat >>conftest.$ac_ext <<_ACEOF 3381/* end confdefs.h. */ 3382#include <stdlib.h> 3383#include <stdarg.h> 3384#include <string.h> 3385#include <float.h> 3386 3387int 3388main () 3389{ 3390 3391 ; 3392 return 0; 3393} 3394_ACEOF 3395rm -f conftest.$ac_objext 3396if { (ac_try="$ac_compile" 3397case "(($ac_try" in 3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3399 *) ac_try_echo=$ac_try;; 3400esac 3401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3402 (eval "$ac_compile") 2>conftest.er1 3403 ac_status=$? 3404 grep -v '^ *+' conftest.er1 >conftest.err 3405 rm -f conftest.er1 3406 cat conftest.err >&5 3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3408 (exit $ac_status); } && { 3409 test -z "$ac_c_werror_flag" || 3410 test ! -s conftest.err 3411 } && test -s conftest.$ac_objext; then 3412 ac_cv_header_stdc=yes 3413else 3414 echo "$as_me: failed program was:" >&5 3415sed 's/^/| /' conftest.$ac_ext >&5 3416 3417 ac_cv_header_stdc=no 3418fi 3419 3420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3421 3422if test $ac_cv_header_stdc = yes; then 3423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3424 cat >conftest.$ac_ext <<_ACEOF 3425/* confdefs.h. */ 3426_ACEOF 3427cat confdefs.h >>conftest.$ac_ext 3428cat >>conftest.$ac_ext <<_ACEOF 3429/* end confdefs.h. */ 3430#include <string.h> 3431 3432_ACEOF 3433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3434 $EGREP "memchr" >/dev/null 2>&1; then 3435 : 3436else 3437 ac_cv_header_stdc=no 3438fi 3439rm -f conftest* 3440 3441fi 3442 3443if test $ac_cv_header_stdc = yes; then 3444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3445 cat >conftest.$ac_ext <<_ACEOF 3446/* confdefs.h. */ 3447_ACEOF 3448cat confdefs.h >>conftest.$ac_ext 3449cat >>conftest.$ac_ext <<_ACEOF 3450/* end confdefs.h. */ 3451#include <stdlib.h> 3452 3453_ACEOF 3454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3455 $EGREP "free" >/dev/null 2>&1; then 3456 : 3457else 3458 ac_cv_header_stdc=no 3459fi 3460rm -f conftest* 3461 3462fi 3463 3464if test $ac_cv_header_stdc = yes; then 3465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3466 if test "$cross_compiling" = yes; then 3467 : 3468else 3469 cat >conftest.$ac_ext <<_ACEOF 3470/* confdefs.h. */ 3471_ACEOF 3472cat confdefs.h >>conftest.$ac_ext 3473cat >>conftest.$ac_ext <<_ACEOF 3474/* end confdefs.h. */ 3475#include <ctype.h> 3476#include <stdlib.h> 3477#if ((' ' & 0x0FF) == 0x020) 3478# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3479# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3480#else 3481# define ISLOWER(c) \ 3482 (('a' <= (c) && (c) <= 'i') \ 3483 || ('j' <= (c) && (c) <= 'r') \ 3484 || ('s' <= (c) && (c) <= 'z')) 3485# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3486#endif 3487 3488#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3489int 3490main () 3491{ 3492 int i; 3493 for (i = 0; i < 256; i++) 3494 if (XOR (islower (i), ISLOWER (i)) 3495 || toupper (i) != TOUPPER (i)) 3496 return 2; 3497 return 0; 3498} 3499_ACEOF 3500rm -f conftest$ac_exeext 3501if { (ac_try="$ac_link" 3502case "(($ac_try" in 3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3504 *) ac_try_echo=$ac_try;; 3505esac 3506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3507 (eval "$ac_link") 2>&5 3508 ac_status=$? 3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3511 { (case "(($ac_try" in 3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3513 *) ac_try_echo=$ac_try;; 3514esac 3515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3516 (eval "$ac_try") 2>&5 3517 ac_status=$? 3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3519 (exit $ac_status); }; }; then 3520 : 3521else 3522 echo "$as_me: program exited with status $ac_status" >&5 3523echo "$as_me: failed program was:" >&5 3524sed 's/^/| /' conftest.$ac_ext >&5 3525 3526( exit $ac_status ) 3527ac_cv_header_stdc=no 3528fi 3529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3530fi 3531 3532 3533fi 3534fi 3535{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3536echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3537if test $ac_cv_header_stdc = yes; then 3538 3539cat >>confdefs.h <<\_ACEOF 3540#define STDC_HEADERS 1 3541_ACEOF 3542 3543fi 3544 3545# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3556 inttypes.h stdint.h unistd.h 3557do 3558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3559{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3562 echo $ECHO_N "(cached) $ECHO_C" >&6 3563else 3564 cat >conftest.$ac_ext <<_ACEOF 3565/* confdefs.h. */ 3566_ACEOF 3567cat confdefs.h >>conftest.$ac_ext 3568cat >>conftest.$ac_ext <<_ACEOF 3569/* end confdefs.h. */ 3570$ac_includes_default 3571 3572#include <$ac_header> 3573_ACEOF 3574rm -f conftest.$ac_objext 3575if { (ac_try="$ac_compile" 3576case "(($ac_try" in 3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3578 *) ac_try_echo=$ac_try;; 3579esac 3580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3581 (eval "$ac_compile") 2>conftest.er1 3582 ac_status=$? 3583 grep -v '^ *+' conftest.er1 >conftest.err 3584 rm -f conftest.er1 3585 cat conftest.err >&5 3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3587 (exit $ac_status); } && { 3588 test -z "$ac_c_werror_flag" || 3589 test ! -s conftest.err 3590 } && test -s conftest.$ac_objext; then 3591 eval "$as_ac_Header=yes" 3592else 3593 echo "$as_me: failed program was:" >&5 3594sed 's/^/| /' conftest.$ac_ext >&5 3595 3596 eval "$as_ac_Header=no" 3597fi 3598 3599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3600fi 3601ac_res=`eval echo '${'$as_ac_Header'}'` 3602 { echo "$as_me:$LINENO: result: $ac_res" >&5 3603echo "${ECHO_T}$ac_res" >&6; } 3604if test `eval echo '${'$as_ac_Header'}'` = yes; then 3605 cat >>confdefs.h <<_ACEOF 3606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3607_ACEOF 3608 3609fi 3610 3611done 3612 3613 3614if test "${ac_cv_header_minix_config_h+set}" = set; then 3615 { echo "$as_me:$LINENO: checking for minix/config.h" >&5 3616echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } 3617if test "${ac_cv_header_minix_config_h+set}" = set; then 3618 echo $ECHO_N "(cached) $ECHO_C" >&6 3619fi 3620{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3621echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } 3622else 3623 # Is the header compilable? 3624{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3625echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; } 3626cat >conftest.$ac_ext <<_ACEOF 3627/* confdefs.h. */ 3628_ACEOF 3629cat confdefs.h >>conftest.$ac_ext 3630cat >>conftest.$ac_ext <<_ACEOF 3631/* end confdefs.h. */ 3632$ac_includes_default 3633#include <minix/config.h> 3634_ACEOF 3635rm -f conftest.$ac_objext 3636if { (ac_try="$ac_compile" 3637case "(($ac_try" in 3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3639 *) ac_try_echo=$ac_try;; 3640esac 3641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3642 (eval "$ac_compile") 2>conftest.er1 3643 ac_status=$? 3644 grep -v '^ *+' conftest.er1 >conftest.err 3645 rm -f conftest.er1 3646 cat conftest.err >&5 3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3648 (exit $ac_status); } && { 3649 test -z "$ac_c_werror_flag" || 3650 test ! -s conftest.err 3651 } && test -s conftest.$ac_objext; then 3652 ac_header_compiler=yes 3653else 3654 echo "$as_me: failed program was:" >&5 3655sed 's/^/| /' conftest.$ac_ext >&5 3656 3657 ac_header_compiler=no 3658fi 3659 3660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3662echo "${ECHO_T}$ac_header_compiler" >&6; } 3663 3664# Is the header present? 3665{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3666echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; } 3667cat >conftest.$ac_ext <<_ACEOF 3668/* confdefs.h. */ 3669_ACEOF 3670cat confdefs.h >>conftest.$ac_ext 3671cat >>conftest.$ac_ext <<_ACEOF 3672/* end confdefs.h. */ 3673#include <minix/config.h> 3674_ACEOF 3675if { (ac_try="$ac_cpp conftest.$ac_ext" 3676case "(($ac_try" in 3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3678 *) ac_try_echo=$ac_try;; 3679esac 3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3682 ac_status=$? 3683 grep -v '^ *+' conftest.er1 >conftest.err 3684 rm -f conftest.er1 3685 cat conftest.err >&5 3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3687 (exit $ac_status); } >/dev/null && { 3688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3689 test ! -s conftest.err 3690 }; then 3691 ac_header_preproc=yes 3692else 3693 echo "$as_me: failed program was:" >&5 3694sed 's/^/| /' conftest.$ac_ext >&5 3695 3696 ac_header_preproc=no 3697fi 3698 3699rm -f conftest.err conftest.$ac_ext 3700{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3701echo "${ECHO_T}$ac_header_preproc" >&6; } 3702 3703# So? What about this header? 3704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3705 yes:no: ) 3706 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3707echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3708 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3709echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3710 ac_header_preproc=yes 3711 ;; 3712 no:yes:* ) 3713 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3714echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3715 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3716echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3717 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3718echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3719 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3720echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3721 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3722echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3723 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3724echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3725 3726 ;; 3727esac 3728{ echo "$as_me:$LINENO: checking for minix/config.h" >&5 3729echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } 3730if test "${ac_cv_header_minix_config_h+set}" = set; then 3731 echo $ECHO_N "(cached) $ECHO_C" >&6 3732else 3733 ac_cv_header_minix_config_h=$ac_header_preproc 3734fi 3735{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3736echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } 3737 3738fi 3739if test $ac_cv_header_minix_config_h = yes; then 3740 MINIX=yes 3741else 3742 MINIX= 3743fi 3744 3745 3746if test "$MINIX" = yes; then 3747 3748cat >>confdefs.h <<\_ACEOF 3749#define _POSIX_SOURCE 1 3750_ACEOF 3751 3752 3753cat >>confdefs.h <<\_ACEOF 3754#define _POSIX_1_SOURCE 2 3755_ACEOF 3756 3757 3758cat >>confdefs.h <<\_ACEOF 3759#define _MINIX 1 3760_ACEOF 3761 3762fi 3763 3764# Make sure we can run config.sub. 3765$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3766 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3767echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3768 { (exit 1); exit 1; }; } 3769 3770{ echo "$as_me:$LINENO: checking build system type" >&5 3771echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3772if test "${ac_cv_build+set}" = set; then 3773 echo $ECHO_N "(cached) $ECHO_C" >&6 3774else 3775 ac_build_alias=$build_alias 3776test "x$ac_build_alias" = x && 3777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3778test "x$ac_build_alias" = x && 3779 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3780echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3781 { (exit 1); exit 1; }; } 3782ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3783 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3784echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3785 { (exit 1); exit 1; }; } 3786 3787fi 3788{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3789echo "${ECHO_T}$ac_cv_build" >&6; } 3790case $ac_cv_build in 3791*-*-*) ;; 3792*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3793echo "$as_me: error: invalid value of canonical build" >&2;} 3794 { (exit 1); exit 1; }; };; 3795esac 3796build=$ac_cv_build 3797ac_save_IFS=$IFS; IFS='-' 3798set x $ac_cv_build 3799shift 3800build_cpu=$1 3801build_vendor=$2 3802shift; shift 3803# Remember, the first character of IFS is used to create $*, 3804# except with old shells: 3805build_os=$* 3806IFS=$ac_save_IFS 3807case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3808 3809 3810{ echo "$as_me:$LINENO: checking host system type" >&5 3811echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3812if test "${ac_cv_host+set}" = set; then 3813 echo $ECHO_N "(cached) $ECHO_C" >&6 3814else 3815 if test "x$host_alias" = x; then 3816 ac_cv_host=$ac_cv_build 3817else 3818 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3819 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3820echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3821 { (exit 1); exit 1; }; } 3822fi 3823 3824fi 3825{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3826echo "${ECHO_T}$ac_cv_host" >&6; } 3827case $ac_cv_host in 3828*-*-*) ;; 3829*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3830echo "$as_me: error: invalid value of canonical host" >&2;} 3831 { (exit 1); exit 1; }; };; 3832esac 3833host=$ac_cv_host 3834ac_save_IFS=$IFS; IFS='-' 3835set x $ac_cv_host 3836shift 3837host_cpu=$1 3838host_vendor=$2 3839shift; shift 3840# Remember, the first character of IFS is used to create $*, 3841# except with old shells: 3842host_os=$* 3843IFS=$ac_save_IFS 3844case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3845 3846 3847{ echo "$as_me:$LINENO: checking target system type" >&5 3848echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3849if test "${ac_cv_target+set}" = set; then 3850 echo $ECHO_N "(cached) $ECHO_C" >&6 3851else 3852 if test "x$target_alias" = x; then 3853 ac_cv_target=$ac_cv_host 3854else 3855 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3856 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3857echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3858 { (exit 1); exit 1; }; } 3859fi 3860 3861fi 3862{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3863echo "${ECHO_T}$ac_cv_target" >&6; } 3864case $ac_cv_target in 3865*-*-*) ;; 3866*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3867echo "$as_me: error: invalid value of canonical target" >&2;} 3868 { (exit 1); exit 1; }; };; 3869esac 3870target=$ac_cv_target 3871ac_save_IFS=$IFS; IFS='-' 3872set x $ac_cv_target 3873shift 3874target_cpu=$1 3875target_vendor=$2 3876shift; shift 3877# Remember, the first character of IFS is used to create $*, 3878# except with old shells: 3879target_os=$* 3880IFS=$ac_save_IFS 3881case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3882 3883 3884# The aliases save the names the user supplied, while $host etc. 3885# will get canonicalized. 3886test -n "$target_alias" && 3887 test "$program_prefix$program_suffix$program_transform_name" = \ 3888 NONENONEs,x,x, && 3889 program_prefix=${target_alias}- 3890 3891{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3892echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 3893if test "${ac_cv_c_const+set}" = set; then 3894 echo $ECHO_N "(cached) $ECHO_C" >&6 3895else 3896 cat >conftest.$ac_ext <<_ACEOF 3897/* confdefs.h. */ 3898_ACEOF 3899cat confdefs.h >>conftest.$ac_ext 3900cat >>conftest.$ac_ext <<_ACEOF 3901/* end confdefs.h. */ 3902 3903int 3904main () 3905{ 3906/* FIXME: Include the comments suggested by Paul. */ 3907#ifndef __cplusplus 3908 /* Ultrix mips cc rejects this. */ 3909 typedef int charset[2]; 3910 const charset cs; 3911 /* SunOS 4.1.1 cc rejects this. */ 3912 char const *const *pcpcc; 3913 char **ppc; 3914 /* NEC SVR4.0.2 mips cc rejects this. */ 3915 struct point {int x, y;}; 3916 static struct point const zero = {0,0}; 3917 /* AIX XL C 1.02.0.0 rejects this. 3918 It does not let you subtract one const X* pointer from another in 3919 an arm of an if-expression whose if-part is not a constant 3920 expression */ 3921 const char *g = "string"; 3922 pcpcc = &g + (g ? g-g : 0); 3923 /* HPUX 7.0 cc rejects these. */ 3924 ++pcpcc; 3925 ppc = (char**) pcpcc; 3926 pcpcc = (char const *const *) ppc; 3927 { /* SCO 3.2v4 cc rejects this. */ 3928 char *t; 3929 char const *s = 0 ? (char *) 0 : (char const *) 0; 3930 3931 *t++ = 0; 3932 if (s) return 0; 3933 } 3934 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3935 int x[] = {25, 17}; 3936 const int *foo = &x[0]; 3937 ++foo; 3938 } 3939 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3940 typedef const int *iptr; 3941 iptr p = 0; 3942 ++p; 3943 } 3944 { /* AIX XL C 1.02.0.0 rejects this saying 3945 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3946 struct s { int j; const int *ap[3]; }; 3947 struct s *b; b->j = 5; 3948 } 3949 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3950 const int foo = 10; 3951 if (!foo) return 0; 3952 } 3953 return !cs[0] && !zero.x; 3954#endif 3955 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960rm -f conftest.$ac_objext 3961if { (ac_try="$ac_compile" 3962case "(($ac_try" in 3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3964 *) ac_try_echo=$ac_try;; 3965esac 3966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3967 (eval "$ac_compile") 2>conftest.er1 3968 ac_status=$? 3969 grep -v '^ *+' conftest.er1 >conftest.err 3970 rm -f conftest.er1 3971 cat conftest.err >&5 3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3973 (exit $ac_status); } && { 3974 test -z "$ac_c_werror_flag" || 3975 test ! -s conftest.err 3976 } && test -s conftest.$ac_objext; then 3977 ac_cv_c_const=yes 3978else 3979 echo "$as_me: failed program was:" >&5 3980sed 's/^/| /' conftest.$ac_ext >&5 3981 3982 ac_cv_c_const=no 3983fi 3984 3985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3986fi 3987{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3988echo "${ECHO_T}$ac_cv_c_const" >&6; } 3989if test $ac_cv_c_const = no; then 3990 3991cat >>confdefs.h <<\_ACEOF 3992#define const 3993_ACEOF 3994 3995fi 3996 3997{ echo "$as_me:$LINENO: checking for inline" >&5 3998echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 3999if test "${ac_cv_c_inline+set}" = set; then 4000 echo $ECHO_N "(cached) $ECHO_C" >&6 4001else 4002 ac_cv_c_inline=no 4003for ac_kw in inline __inline__ __inline; do 4004 cat >conftest.$ac_ext <<_ACEOF 4005/* confdefs.h. */ 4006_ACEOF 4007cat confdefs.h >>conftest.$ac_ext 4008cat >>conftest.$ac_ext <<_ACEOF 4009/* end confdefs.h. */ 4010#ifndef __cplusplus 4011typedef int foo_t; 4012static $ac_kw foo_t static_foo () {return 0; } 4013$ac_kw foo_t foo () {return 0; } 4014#endif 4015 4016_ACEOF 4017rm -f conftest.$ac_objext 4018if { (ac_try="$ac_compile" 4019case "(($ac_try" in 4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4021 *) ac_try_echo=$ac_try;; 4022esac 4023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4024 (eval "$ac_compile") 2>conftest.er1 4025 ac_status=$? 4026 grep -v '^ *+' conftest.er1 >conftest.err 4027 rm -f conftest.er1 4028 cat conftest.err >&5 4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4030 (exit $ac_status); } && { 4031 test -z "$ac_c_werror_flag" || 4032 test ! -s conftest.err 4033 } && test -s conftest.$ac_objext; then 4034 ac_cv_c_inline=$ac_kw 4035else 4036 echo "$as_me: failed program was:" >&5 4037sed 's/^/| /' conftest.$ac_ext >&5 4038 4039 4040fi 4041 4042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4043 test "$ac_cv_c_inline" != no && break 4044done 4045 4046fi 4047{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4048echo "${ECHO_T}$ac_cv_c_inline" >&6; } 4049 4050 4051case $ac_cv_c_inline in 4052 inline | yes) ;; 4053 *) 4054 case $ac_cv_c_inline in 4055 no) ac_val=;; 4056 *) ac_val=$ac_cv_c_inline;; 4057 esac 4058 cat >>confdefs.h <<_ACEOF 4059#ifndef __cplusplus 4060#define inline $ac_val 4061#endif 4062_ACEOF 4063 ;; 4064esac 4065 4066 4067 4068# Check whether --enable-xdf was given. 4069if test "${enable_xdf+set}" = set; then 4070 enableval=$enable_xdf; if test x$enableval = xyes; then 4071 4072cat >>confdefs.h <<\_ACEOF 4073#define USE_XDF 1 4074_ACEOF 4075 4076fi 4077else 4078 4079cat >>confdefs.h <<\_ACEOF 4080#define USE_XDF 1 4081_ACEOF 4082 4083fi 4084 4085 4086 4087# Check whether --enable-vold was given. 4088if test "${enable_vold+set}" = set; then 4089 enableval=$enable_vold; if test x$enableval = xyes; then 4090 4091cat >>confdefs.h <<\_ACEOF 4092#define USING_VOLD 1 4093_ACEOF 4094 4095fi 4096fi 4097 4098 4099 4100# Check whether --enable-new-vold was given. 4101if test "${enable_new_vold+set}" = set; then 4102 enableval=$enable_new_vold; newVold=x$enableval 4103if test x$enableval = xyes; then 4104 4105cat >>confdefs.h <<\_ACEOF 4106#define USING_NEW_VOLD 1 4107_ACEOF 4108 4109fi 4110fi 4111 4112 4113 4114# Check whether --enable-debug was given. 4115if test "${enable_debug+set}" = set; then 4116 enableval=$enable_debug; if test x$enableval = xyes; then 4117 4118cat >>confdefs.h <<\_ACEOF 4119#define DEBUG 1 4120_ACEOF 4121 4122fi 4123fi 4124 4125 4126 4127# Check whether --enable-raw_term was given. 4128if test "${enable_raw_term+set}" = set; then 4129 enableval=$enable_raw_term; if test x$enableval = xyes; then 4130 4131cat >>confdefs.h <<\_ACEOF 4132#define USE_RAWTERM 1 4133_ACEOF 4134 4135fi 4136else 4137 4138cat >>confdefs.h <<\_ACEOF 4139#define USE_RAWTERM 1 4140_ACEOF 4141 4142fi 4143 4144 4145 4146 4147 4148{ echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5 4149echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; } 4150if test "${ac_cv_lib_sun_getpwnam+set}" = set; then 4151 echo $ECHO_N "(cached) $ECHO_C" >&6 4152else 4153 ac_check_lib_save_LIBS=$LIBS 4154LIBS="-lsun $LIBS" 4155cat >conftest.$ac_ext <<_ACEOF 4156/* confdefs.h. */ 4157_ACEOF 4158cat confdefs.h >>conftest.$ac_ext 4159cat >>conftest.$ac_ext <<_ACEOF 4160/* end confdefs.h. */ 4161 4162/* Override any GCC internal prototype to avoid an error. 4163 Use char because int might match the return type of a GCC 4164 builtin and then its argument prototype would still apply. */ 4165#ifdef __cplusplus 4166extern "C" 4167#endif 4168char getpwnam (); 4169int 4170main () 4171{ 4172return getpwnam (); 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177rm -f conftest.$ac_objext conftest$ac_exeext 4178if { (ac_try="$ac_link" 4179case "(($ac_try" in 4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4181 *) ac_try_echo=$ac_try;; 4182esac 4183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4184 (eval "$ac_link") 2>conftest.er1 4185 ac_status=$? 4186 grep -v '^ *+' conftest.er1 >conftest.err 4187 rm -f conftest.er1 4188 cat conftest.err >&5 4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4190 (exit $ac_status); } && { 4191 test -z "$ac_c_werror_flag" || 4192 test ! -s conftest.err 4193 } && test -s conftest$ac_exeext && 4194 $as_test_x conftest$ac_exeext; then 4195 ac_cv_lib_sun_getpwnam=yes 4196else 4197 echo "$as_me: failed program was:" >&5 4198sed 's/^/| /' conftest.$ac_ext >&5 4199 4200 ac_cv_lib_sun_getpwnam=no 4201fi 4202 4203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4204 conftest$ac_exeext conftest.$ac_ext 4205LIBS=$ac_check_lib_save_LIBS 4206fi 4207{ echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5 4208echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; } 4209if test $ac_cv_lib_sun_getpwnam = yes; then 4210 cat >>confdefs.h <<_ACEOF 4211#define HAVE_LIBSUN 1 4212_ACEOF 4213 4214 LIBS="-lsun $LIBS" 4215 4216fi 4217 4218 4219{ echo "$as_me:$LINENO: checking for cam_open_device in -lcam" >&5 4220echo $ECHO_N "checking for cam_open_device in -lcam... $ECHO_C" >&6; } 4221if test "${ac_cv_lib_cam_cam_open_device+set}" = set; then 4222 echo $ECHO_N "(cached) $ECHO_C" >&6 4223else 4224 ac_check_lib_save_LIBS=$LIBS 4225LIBS="-lcam $LIBS" 4226cat >conftest.$ac_ext <<_ACEOF 4227/* confdefs.h. */ 4228_ACEOF 4229cat confdefs.h >>conftest.$ac_ext 4230cat >>conftest.$ac_ext <<_ACEOF 4231/* end confdefs.h. */ 4232 4233/* Override any GCC internal prototype to avoid an error. 4234 Use char because int might match the return type of a GCC 4235 builtin and then its argument prototype would still apply. */ 4236#ifdef __cplusplus 4237extern "C" 4238#endif 4239char cam_open_device (); 4240int 4241main () 4242{ 4243return cam_open_device (); 4244 ; 4245 return 0; 4246} 4247_ACEOF 4248rm -f conftest.$ac_objext conftest$ac_exeext 4249if { (ac_try="$ac_link" 4250case "(($ac_try" in 4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4252 *) ac_try_echo=$ac_try;; 4253esac 4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4255 (eval "$ac_link") 2>conftest.er1 4256 ac_status=$? 4257 grep -v '^ *+' conftest.er1 >conftest.err 4258 rm -f conftest.er1 4259 cat conftest.err >&5 4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4261 (exit $ac_status); } && { 4262 test -z "$ac_c_werror_flag" || 4263 test ! -s conftest.err 4264 } && test -s conftest$ac_exeext && 4265 $as_test_x conftest$ac_exeext; then 4266 ac_cv_lib_cam_cam_open_device=yes 4267else 4268 echo "$as_me: failed program was:" >&5 4269sed 's/^/| /' conftest.$ac_ext >&5 4270 4271 ac_cv_lib_cam_cam_open_device=no 4272fi 4273 4274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4275 conftest$ac_exeext conftest.$ac_ext 4276LIBS=$ac_check_lib_save_LIBS 4277fi 4278{ echo "$as_me:$LINENO: result: $ac_cv_lib_cam_cam_open_device" >&5 4279echo "${ECHO_T}$ac_cv_lib_cam_cam_open_device" >&6; } 4280if test $ac_cv_lib_cam_cam_open_device = yes; then 4281 cat >>confdefs.h <<_ACEOF 4282#define HAVE_LIBCAM 1 4283_ACEOF 4284 4285 LIBS="-lcam $LIBS" 4286 4287fi 4288 4289 4290{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4291echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4292if test "${ac_cv_header_stdc+set}" = set; then 4293 echo $ECHO_N "(cached) $ECHO_C" >&6 4294else 4295 cat >conftest.$ac_ext <<_ACEOF 4296/* confdefs.h. */ 4297_ACEOF 4298cat confdefs.h >>conftest.$ac_ext 4299cat >>conftest.$ac_ext <<_ACEOF 4300/* end confdefs.h. */ 4301#include <stdlib.h> 4302#include <stdarg.h> 4303#include <string.h> 4304#include <float.h> 4305 4306int 4307main () 4308{ 4309 4310 ; 4311 return 0; 4312} 4313_ACEOF 4314rm -f conftest.$ac_objext 4315if { (ac_try="$ac_compile" 4316case "(($ac_try" in 4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4318 *) ac_try_echo=$ac_try;; 4319esac 4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4321 (eval "$ac_compile") 2>conftest.er1 4322 ac_status=$? 4323 grep -v '^ *+' conftest.er1 >conftest.err 4324 rm -f conftest.er1 4325 cat conftest.err >&5 4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4327 (exit $ac_status); } && { 4328 test -z "$ac_c_werror_flag" || 4329 test ! -s conftest.err 4330 } && test -s conftest.$ac_objext; then 4331 ac_cv_header_stdc=yes 4332else 4333 echo "$as_me: failed program was:" >&5 4334sed 's/^/| /' conftest.$ac_ext >&5 4335 4336 ac_cv_header_stdc=no 4337fi 4338 4339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4340 4341if test $ac_cv_header_stdc = yes; then 4342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4343 cat >conftest.$ac_ext <<_ACEOF 4344/* confdefs.h. */ 4345_ACEOF 4346cat confdefs.h >>conftest.$ac_ext 4347cat >>conftest.$ac_ext <<_ACEOF 4348/* end confdefs.h. */ 4349#include <string.h> 4350 4351_ACEOF 4352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4353 $EGREP "memchr" >/dev/null 2>&1; then 4354 : 4355else 4356 ac_cv_header_stdc=no 4357fi 4358rm -f conftest* 4359 4360fi 4361 4362if test $ac_cv_header_stdc = yes; then 4363 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4364 cat >conftest.$ac_ext <<_ACEOF 4365/* confdefs.h. */ 4366_ACEOF 4367cat confdefs.h >>conftest.$ac_ext 4368cat >>conftest.$ac_ext <<_ACEOF 4369/* end confdefs.h. */ 4370#include <stdlib.h> 4371 4372_ACEOF 4373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4374 $EGREP "free" >/dev/null 2>&1; then 4375 : 4376else 4377 ac_cv_header_stdc=no 4378fi 4379rm -f conftest* 4380 4381fi 4382 4383if test $ac_cv_header_stdc = yes; then 4384 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4385 if test "$cross_compiling" = yes; then 4386 : 4387else 4388 cat >conftest.$ac_ext <<_ACEOF 4389/* confdefs.h. */ 4390_ACEOF 4391cat confdefs.h >>conftest.$ac_ext 4392cat >>conftest.$ac_ext <<_ACEOF 4393/* end confdefs.h. */ 4394#include <ctype.h> 4395#include <stdlib.h> 4396#if ((' ' & 0x0FF) == 0x020) 4397# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4398# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4399#else 4400# define ISLOWER(c) \ 4401 (('a' <= (c) && (c) <= 'i') \ 4402 || ('j' <= (c) && (c) <= 'r') \ 4403 || ('s' <= (c) && (c) <= 'z')) 4404# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4405#endif 4406 4407#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4408int 4409main () 4410{ 4411 int i; 4412 for (i = 0; i < 256; i++) 4413 if (XOR (islower (i), ISLOWER (i)) 4414 || toupper (i) != TOUPPER (i)) 4415 return 2; 4416 return 0; 4417} 4418_ACEOF 4419rm -f conftest$ac_exeext 4420if { (ac_try="$ac_link" 4421case "(($ac_try" in 4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4423 *) ac_try_echo=$ac_try;; 4424esac 4425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4426 (eval "$ac_link") 2>&5 4427 ac_status=$? 4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4430 { (case "(($ac_try" in 4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4432 *) ac_try_echo=$ac_try;; 4433esac 4434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4435 (eval "$ac_try") 2>&5 4436 ac_status=$? 4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4438 (exit $ac_status); }; }; then 4439 : 4440else 4441 echo "$as_me: program exited with status $ac_status" >&5 4442echo "$as_me: failed program was:" >&5 4443sed 's/^/| /' conftest.$ac_ext >&5 4444 4445( exit $ac_status ) 4446ac_cv_header_stdc=no 4447fi 4448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4449fi 4450 4451 4452fi 4453fi 4454{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4455echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4456if test $ac_cv_header_stdc = yes; then 4457 4458cat >>confdefs.h <<\_ACEOF 4459#define STDC_HEADERS 1 4460_ACEOF 4461 4462fi 4463 4464{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 4465echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 4466if test "${ac_cv_header_sys_wait_h+set}" = set; then 4467 echo $ECHO_N "(cached) $ECHO_C" >&6 4468else 4469 cat >conftest.$ac_ext <<_ACEOF 4470/* confdefs.h. */ 4471_ACEOF 4472cat confdefs.h >>conftest.$ac_ext 4473cat >>conftest.$ac_ext <<_ACEOF 4474/* end confdefs.h. */ 4475#include <sys/types.h> 4476#include <sys/wait.h> 4477#ifndef WEXITSTATUS 4478# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4479#endif 4480#ifndef WIFEXITED 4481# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4482#endif 4483 4484int 4485main () 4486{ 4487 int s; 4488 wait (&s); 4489 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4490 ; 4491 return 0; 4492} 4493_ACEOF 4494rm -f conftest.$ac_objext 4495if { (ac_try="$ac_compile" 4496case "(($ac_try" in 4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4498 *) ac_try_echo=$ac_try;; 4499esac 4500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4501 (eval "$ac_compile") 2>conftest.er1 4502 ac_status=$? 4503 grep -v '^ *+' conftest.er1 >conftest.err 4504 rm -f conftest.er1 4505 cat conftest.err >&5 4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4507 (exit $ac_status); } && { 4508 test -z "$ac_c_werror_flag" || 4509 test ! -s conftest.err 4510 } && test -s conftest.$ac_objext; then 4511 ac_cv_header_sys_wait_h=yes 4512else 4513 echo "$as_me: failed program was:" >&5 4514sed 's/^/| /' conftest.$ac_ext >&5 4515 4516 ac_cv_header_sys_wait_h=no 4517fi 4518 4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4520fi 4521{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 4522echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 4523if test $ac_cv_header_sys_wait_h = yes; then 4524 4525cat >>confdefs.h <<\_ACEOF 4526#define HAVE_SYS_WAIT_H 1 4527_ACEOF 4528 4529fi 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560for ac_header in getopt.h sys/stat.h stdlib.h unistd.h linux/unistd.h \ 4561libc.h fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h strings.h string.h \ 4562sys/param.h memory.h malloc.h signal.h sys/signal.h utime.h sgtty.h \ 4563sys/floppy.h mntent.h sys/sysmacros.h netinet/in.h assert.h \ 4564iconv.h wctype.h wchar.h locale.h 4565do 4566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4568 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4571 echo $ECHO_N "(cached) $ECHO_C" >&6 4572fi 4573ac_res=`eval echo '${'$as_ac_Header'}'` 4574 { echo "$as_me:$LINENO: result: $ac_res" >&5 4575echo "${ECHO_T}$ac_res" >&6; } 4576else 4577 # Is the header compilable? 4578{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4580cat >conftest.$ac_ext <<_ACEOF 4581/* confdefs.h. */ 4582_ACEOF 4583cat confdefs.h >>conftest.$ac_ext 4584cat >>conftest.$ac_ext <<_ACEOF 4585/* end confdefs.h. */ 4586$ac_includes_default 4587#include <$ac_header> 4588_ACEOF 4589rm -f conftest.$ac_objext 4590if { (ac_try="$ac_compile" 4591case "(($ac_try" in 4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4593 *) ac_try_echo=$ac_try;; 4594esac 4595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4596 (eval "$ac_compile") 2>conftest.er1 4597 ac_status=$? 4598 grep -v '^ *+' conftest.er1 >conftest.err 4599 rm -f conftest.er1 4600 cat conftest.err >&5 4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4602 (exit $ac_status); } && { 4603 test -z "$ac_c_werror_flag" || 4604 test ! -s conftest.err 4605 } && test -s conftest.$ac_objext; then 4606 ac_header_compiler=yes 4607else 4608 echo "$as_me: failed program was:" >&5 4609sed 's/^/| /' conftest.$ac_ext >&5 4610 4611 ac_header_compiler=no 4612fi 4613 4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4616echo "${ECHO_T}$ac_header_compiler" >&6; } 4617 4618# Is the header present? 4619{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4621cat >conftest.$ac_ext <<_ACEOF 4622/* confdefs.h. */ 4623_ACEOF 4624cat confdefs.h >>conftest.$ac_ext 4625cat >>conftest.$ac_ext <<_ACEOF 4626/* end confdefs.h. */ 4627#include <$ac_header> 4628_ACEOF 4629if { (ac_try="$ac_cpp conftest.$ac_ext" 4630case "(($ac_try" in 4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4632 *) ac_try_echo=$ac_try;; 4633esac 4634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4636 ac_status=$? 4637 grep -v '^ *+' conftest.er1 >conftest.err 4638 rm -f conftest.er1 4639 cat conftest.err >&5 4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4641 (exit $ac_status); } >/dev/null && { 4642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4643 test ! -s conftest.err 4644 }; then 4645 ac_header_preproc=yes 4646else 4647 echo "$as_me: failed program was:" >&5 4648sed 's/^/| /' conftest.$ac_ext >&5 4649 4650 ac_header_preproc=no 4651fi 4652 4653rm -f conftest.err conftest.$ac_ext 4654{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4655echo "${ECHO_T}$ac_header_preproc" >&6; } 4656 4657# So? What about this header? 4658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4659 yes:no: ) 4660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4664 ac_header_preproc=yes 4665 ;; 4666 no:yes:* ) 4667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4670echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4674echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4679 4680 ;; 4681esac 4682{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4685 echo $ECHO_N "(cached) $ECHO_C" >&6 4686else 4687 eval "$as_ac_Header=\$ac_header_preproc" 4688fi 4689ac_res=`eval echo '${'$as_ac_Header'}'` 4690 { echo "$as_me:$LINENO: result: $ac_res" >&5 4691echo "${ECHO_T}$ac_res" >&6; } 4692 4693fi 4694if test `eval echo '${'$as_ac_Header'}'` = yes; then 4695 cat >>confdefs.h <<_ACEOF 4696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4697_ACEOF 4698 4699fi 4700 4701done 4702 4703 4704 4705for ac_header in termio.h sys/termio.h 4706do 4707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4709 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4712 echo $ECHO_N "(cached) $ECHO_C" >&6 4713fi 4714ac_res=`eval echo '${'$as_ac_Header'}'` 4715 { echo "$as_me:$LINENO: result: $ac_res" >&5 4716echo "${ECHO_T}$ac_res" >&6; } 4717else 4718 # Is the header compilable? 4719{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4721cat >conftest.$ac_ext <<_ACEOF 4722/* confdefs.h. */ 4723_ACEOF 4724cat confdefs.h >>conftest.$ac_ext 4725cat >>conftest.$ac_ext <<_ACEOF 4726/* end confdefs.h. */ 4727$ac_includes_default 4728#include <$ac_header> 4729_ACEOF 4730rm -f conftest.$ac_objext 4731if { (ac_try="$ac_compile" 4732case "(($ac_try" in 4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4734 *) ac_try_echo=$ac_try;; 4735esac 4736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4737 (eval "$ac_compile") 2>conftest.er1 4738 ac_status=$? 4739 grep -v '^ *+' conftest.er1 >conftest.err 4740 rm -f conftest.er1 4741 cat conftest.err >&5 4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4743 (exit $ac_status); } && { 4744 test -z "$ac_c_werror_flag" || 4745 test ! -s conftest.err 4746 } && test -s conftest.$ac_objext; then 4747 ac_header_compiler=yes 4748else 4749 echo "$as_me: failed program was:" >&5 4750sed 's/^/| /' conftest.$ac_ext >&5 4751 4752 ac_header_compiler=no 4753fi 4754 4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4756{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4757echo "${ECHO_T}$ac_header_compiler" >&6; } 4758 4759# Is the header present? 4760{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4762cat >conftest.$ac_ext <<_ACEOF 4763/* confdefs.h. */ 4764_ACEOF 4765cat confdefs.h >>conftest.$ac_ext 4766cat >>conftest.$ac_ext <<_ACEOF 4767/* end confdefs.h. */ 4768#include <$ac_header> 4769_ACEOF 4770if { (ac_try="$ac_cpp conftest.$ac_ext" 4771case "(($ac_try" in 4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4773 *) ac_try_echo=$ac_try;; 4774esac 4775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4777 ac_status=$? 4778 grep -v '^ *+' conftest.er1 >conftest.err 4779 rm -f conftest.er1 4780 cat conftest.err >&5 4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4782 (exit $ac_status); } >/dev/null && { 4783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4784 test ! -s conftest.err 4785 }; then 4786 ac_header_preproc=yes 4787else 4788 echo "$as_me: failed program was:" >&5 4789sed 's/^/| /' conftest.$ac_ext >&5 4790 4791 ac_header_preproc=no 4792fi 4793 4794rm -f conftest.err conftest.$ac_ext 4795{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4796echo "${ECHO_T}$ac_header_preproc" >&6; } 4797 4798# So? What about this header? 4799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4800 yes:no: ) 4801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4802echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4804echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4805 ac_header_preproc=yes 4806 ;; 4807 no:yes:* ) 4808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4811echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4813echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4815echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4819echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4820 4821 ;; 4822esac 4823{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4826 echo $ECHO_N "(cached) $ECHO_C" >&6 4827else 4828 eval "$as_ac_Header=\$ac_header_preproc" 4829fi 4830ac_res=`eval echo '${'$as_ac_Header'}'` 4831 { echo "$as_me:$LINENO: result: $ac_res" >&5 4832echo "${ECHO_T}$ac_res" >&6; } 4833 4834fi 4835if test `eval echo '${'$as_ac_Header'}'` = yes; then 4836 cat >>confdefs.h <<_ACEOF 4837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4838_ACEOF 4839 break 4840fi 4841 4842done 4843 4844 4845 4846for ac_header in termios.h sys/termios.h 4847do 4848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4850 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4853 echo $ECHO_N "(cached) $ECHO_C" >&6 4854fi 4855ac_res=`eval echo '${'$as_ac_Header'}'` 4856 { echo "$as_me:$LINENO: result: $ac_res" >&5 4857echo "${ECHO_T}$ac_res" >&6; } 4858else 4859 # Is the header compilable? 4860{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4861echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4862cat >conftest.$ac_ext <<_ACEOF 4863/* confdefs.h. */ 4864_ACEOF 4865cat confdefs.h >>conftest.$ac_ext 4866cat >>conftest.$ac_ext <<_ACEOF 4867/* end confdefs.h. */ 4868$ac_includes_default 4869#include <$ac_header> 4870_ACEOF 4871rm -f conftest.$ac_objext 4872if { (ac_try="$ac_compile" 4873case "(($ac_try" in 4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4875 *) ac_try_echo=$ac_try;; 4876esac 4877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4878 (eval "$ac_compile") 2>conftest.er1 4879 ac_status=$? 4880 grep -v '^ *+' conftest.er1 >conftest.err 4881 rm -f conftest.er1 4882 cat conftest.err >&5 4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4884 (exit $ac_status); } && { 4885 test -z "$ac_c_werror_flag" || 4886 test ! -s conftest.err 4887 } && test -s conftest.$ac_objext; then 4888 ac_header_compiler=yes 4889else 4890 echo "$as_me: failed program was:" >&5 4891sed 's/^/| /' conftest.$ac_ext >&5 4892 4893 ac_header_compiler=no 4894fi 4895 4896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4898echo "${ECHO_T}$ac_header_compiler" >&6; } 4899 4900# Is the header present? 4901{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4903cat >conftest.$ac_ext <<_ACEOF 4904/* confdefs.h. */ 4905_ACEOF 4906cat confdefs.h >>conftest.$ac_ext 4907cat >>conftest.$ac_ext <<_ACEOF 4908/* end confdefs.h. */ 4909#include <$ac_header> 4910_ACEOF 4911if { (ac_try="$ac_cpp conftest.$ac_ext" 4912case "(($ac_try" in 4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4914 *) ac_try_echo=$ac_try;; 4915esac 4916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4918 ac_status=$? 4919 grep -v '^ *+' conftest.er1 >conftest.err 4920 rm -f conftest.er1 4921 cat conftest.err >&5 4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4923 (exit $ac_status); } >/dev/null && { 4924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4925 test ! -s conftest.err 4926 }; then 4927 ac_header_preproc=yes 4928else 4929 echo "$as_me: failed program was:" >&5 4930sed 's/^/| /' conftest.$ac_ext >&5 4931 4932 ac_header_preproc=no 4933fi 4934 4935rm -f conftest.err conftest.$ac_ext 4936{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4937echo "${ECHO_T}$ac_header_preproc" >&6; } 4938 4939# So? What about this header? 4940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4941 yes:no: ) 4942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4945echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4946 ac_header_preproc=yes 4947 ;; 4948 no:yes:* ) 4949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4950echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4952echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4954echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4956echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4958echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4960echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4961 4962 ;; 4963esac 4964{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4967 echo $ECHO_N "(cached) $ECHO_C" >&6 4968else 4969 eval "$as_ac_Header=\$ac_header_preproc" 4970fi 4971ac_res=`eval echo '${'$as_ac_Header'}'` 4972 { echo "$as_me:$LINENO: result: $ac_res" >&5 4973echo "${ECHO_T}$ac_res" >&6; } 4974 4975fi 4976if test `eval echo '${'$as_ac_Header'}'` = yes; then 4977 cat >>confdefs.h <<_ACEOF 4978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4979_ACEOF 4980 break 4981fi 4982 4983done 4984 4985 4986 4987{ echo "$as_me:$LINENO: checking whether llseek declared in unistd.h" >&5 4988echo $ECHO_N "checking whether llseek declared in unistd.h... $ECHO_C" >&6; } 4989if test "${mtools_cv_have_llseek_prototype+set}" = set; then 4990 echo $ECHO_N "(cached) $ECHO_C" >&6 4991else 4992 cat >conftest.$ac_ext <<_ACEOF 4993/* confdefs.h. */ 4994_ACEOF 4995cat confdefs.h >>conftest.$ac_ext 4996cat >>conftest.$ac_ext <<_ACEOF 4997/* end confdefs.h. */ 4998#include <unistd.h> 4999int 5000main () 5001{ 5002extern int llseek(int); 5003 ; 5004 return 0; 5005} 5006_ACEOF 5007rm -f conftest.$ac_objext 5008if { (ac_try="$ac_compile" 5009case "(($ac_try" in 5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5011 *) ac_try_echo=$ac_try;; 5012esac 5013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5014 (eval "$ac_compile") 2>conftest.er1 5015 ac_status=$? 5016 grep -v '^ *+' conftest.er1 >conftest.err 5017 rm -f conftest.er1 5018 cat conftest.err >&5 5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5020 (exit $ac_status); } && { 5021 test -z "$ac_c_werror_flag" || 5022 test ! -s conftest.err 5023 } && test -s conftest.$ac_objext; then 5024 mtools_cv_have_llseek_prototype=no 5025else 5026 echo "$as_me: failed program was:" >&5 5027sed 's/^/| /' conftest.$ac_ext >&5 5028 5029 mtools_cv_have_llseek_prototype=yes 5030fi 5031 5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5033fi 5034 5035{ echo "$as_me:$LINENO: result: $mtools_cv_have_llseek_prototype" >&5 5036echo "${ECHO_T}$mtools_cv_have_llseek_prototype" >&6; } 5037if test "$mtools_cv_have_llseek_prototype" = yes; then 5038 5039cat >>confdefs.h <<\_ACEOF 5040#define HAVE_LLSEEK_PROTOTYPE 1 5041_ACEOF 5042 5043fi 5044 5045{ echo "$as_me:$LINENO: checking whether lseek64 declared in unistd.h" >&5 5046echo $ECHO_N "checking whether lseek64 declared in unistd.h... $ECHO_C" >&6; } 5047if test "${mtools_cv_have_lseek64_prototype+set}" = set; then 5048 echo $ECHO_N "(cached) $ECHO_C" >&6 5049else 5050 cat >conftest.$ac_ext <<_ACEOF 5051/* confdefs.h. */ 5052_ACEOF 5053cat confdefs.h >>conftest.$ac_ext 5054cat >>conftest.$ac_ext <<_ACEOF 5055/* end confdefs.h. */ 5056 5057#include "sysincludes.h" 5058#include <unistd.h> 5059 5060int 5061main () 5062{ 5063extern int lseek64(int); 5064 ; 5065 return 0; 5066} 5067_ACEOF 5068rm -f conftest.$ac_objext 5069if { (ac_try="$ac_compile" 5070case "(($ac_try" in 5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5072 *) ac_try_echo=$ac_try;; 5073esac 5074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5075 (eval "$ac_compile") 2>conftest.er1 5076 ac_status=$? 5077 grep -v '^ *+' conftest.er1 >conftest.err 5078 rm -f conftest.er1 5079 cat conftest.err >&5 5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5081 (exit $ac_status); } && { 5082 test -z "$ac_c_werror_flag" || 5083 test ! -s conftest.err 5084 } && test -s conftest.$ac_objext; then 5085 mtools_cv_have_lseek64_prototype=no 5086else 5087 echo "$as_me: failed program was:" >&5 5088sed 's/^/| /' conftest.$ac_ext >&5 5089 5090 mtools_cv_have_lseek64_prototype=yes 5091fi 5092 5093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5094fi 5095 5096{ echo "$as_me:$LINENO: result: $mtools_cv_have_lseek64_prototype" >&5 5097echo "${ECHO_T}$mtools_cv_have_lseek64_prototype" >&6; } 5098if test "$mtools_cv_have_lseek64_prototype" = yes; then 5099 5100cat >>confdefs.h <<\_ACEOF 5101#define HAVE_LSEEK64_PROTOTYPE 1 5102_ACEOF 5103 5104fi 5105 5106 5107 5108for ac_func in htons 5109do 5110as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5111{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5112echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5113if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5114 echo $ECHO_N "(cached) $ECHO_C" >&6 5115else 5116 cat >conftest.$ac_ext <<_ACEOF 5117/* confdefs.h. */ 5118_ACEOF 5119cat confdefs.h >>conftest.$ac_ext 5120cat >>conftest.$ac_ext <<_ACEOF 5121/* end confdefs.h. */ 5122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5123 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5124#define $ac_func innocuous_$ac_func 5125 5126/* System header to define __stub macros and hopefully few prototypes, 5127 which can conflict with char $ac_func (); below. 5128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5129 <limits.h> exists even on freestanding compilers. */ 5130 5131#ifdef __STDC__ 5132# include <limits.h> 5133#else 5134# include <assert.h> 5135#endif 5136 5137#undef $ac_func 5138 5139/* Override any GCC internal prototype to avoid an error. 5140 Use char because int might match the return type of a GCC 5141 builtin and then its argument prototype would still apply. */ 5142#ifdef __cplusplus 5143extern "C" 5144#endif 5145char $ac_func (); 5146/* The GNU C library defines this for functions which it implements 5147 to always fail with ENOSYS. Some functions are actually named 5148 something starting with __ and the normal name is an alias. */ 5149#if defined __stub_$ac_func || defined __stub___$ac_func 5150choke me 5151#endif 5152 5153int 5154main () 5155{ 5156return $ac_func (); 5157 ; 5158 return 0; 5159} 5160_ACEOF 5161rm -f conftest.$ac_objext conftest$ac_exeext 5162if { (ac_try="$ac_link" 5163case "(($ac_try" in 5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5165 *) ac_try_echo=$ac_try;; 5166esac 5167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5168 (eval "$ac_link") 2>conftest.er1 5169 ac_status=$? 5170 grep -v '^ *+' conftest.er1 >conftest.err 5171 rm -f conftest.er1 5172 cat conftest.err >&5 5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5174 (exit $ac_status); } && { 5175 test -z "$ac_c_werror_flag" || 5176 test ! -s conftest.err 5177 } && test -s conftest$ac_exeext && 5178 $as_test_x conftest$ac_exeext; then 5179 eval "$as_ac_var=yes" 5180else 5181 echo "$as_me: failed program was:" >&5 5182sed 's/^/| /' conftest.$ac_ext >&5 5183 5184 eval "$as_ac_var=no" 5185fi 5186 5187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5188 conftest$ac_exeext conftest.$ac_ext 5189fi 5190ac_res=`eval echo '${'$as_ac_var'}'` 5191 { echo "$as_me:$LINENO: result: $ac_res" >&5 5192echo "${ECHO_T}$ac_res" >&6; } 5193if test `eval echo '${'$as_ac_var'}'` = yes; then 5194 cat >>confdefs.h <<_ACEOF 5195#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5196_ACEOF 5197 5198fi 5199done 5200 5201 5202 5203{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5204echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 5205if test "${ac_cv_c_const+set}" = set; then 5206 echo $ECHO_N "(cached) $ECHO_C" >&6 5207else 5208 cat >conftest.$ac_ext <<_ACEOF 5209/* confdefs.h. */ 5210_ACEOF 5211cat confdefs.h >>conftest.$ac_ext 5212cat >>conftest.$ac_ext <<_ACEOF 5213/* end confdefs.h. */ 5214 5215int 5216main () 5217{ 5218/* FIXME: Include the comments suggested by Paul. */ 5219#ifndef __cplusplus 5220 /* Ultrix mips cc rejects this. */ 5221 typedef int charset[2]; 5222 const charset cs; 5223 /* SunOS 4.1.1 cc rejects this. */ 5224 char const *const *pcpcc; 5225 char **ppc; 5226 /* NEC SVR4.0.2 mips cc rejects this. */ 5227 struct point {int x, y;}; 5228 static struct point const zero = {0,0}; 5229 /* AIX XL C 1.02.0.0 rejects this. 5230 It does not let you subtract one const X* pointer from another in 5231 an arm of an if-expression whose if-part is not a constant 5232 expression */ 5233 const char *g = "string"; 5234 pcpcc = &g + (g ? g-g : 0); 5235 /* HPUX 7.0 cc rejects these. */ 5236 ++pcpcc; 5237 ppc = (char**) pcpcc; 5238 pcpcc = (char const *const *) ppc; 5239 { /* SCO 3.2v4 cc rejects this. */ 5240 char *t; 5241 char const *s = 0 ? (char *) 0 : (char const *) 0; 5242 5243 *t++ = 0; 5244 if (s) return 0; 5245 } 5246 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5247 int x[] = {25, 17}; 5248 const int *foo = &x[0]; 5249 ++foo; 5250 } 5251 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5252 typedef const int *iptr; 5253 iptr p = 0; 5254 ++p; 5255 } 5256 { /* AIX XL C 1.02.0.0 rejects this saying 5257 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5258 struct s { int j; const int *ap[3]; }; 5259 struct s *b; b->j = 5; 5260 } 5261 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5262 const int foo = 10; 5263 if (!foo) return 0; 5264 } 5265 return !cs[0] && !zero.x; 5266#endif 5267 5268 ; 5269 return 0; 5270} 5271_ACEOF 5272rm -f conftest.$ac_objext 5273if { (ac_try="$ac_compile" 5274case "(($ac_try" in 5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5276 *) ac_try_echo=$ac_try;; 5277esac 5278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5279 (eval "$ac_compile") 2>conftest.er1 5280 ac_status=$? 5281 grep -v '^ *+' conftest.er1 >conftest.err 5282 rm -f conftest.er1 5283 cat conftest.err >&5 5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5285 (exit $ac_status); } && { 5286 test -z "$ac_c_werror_flag" || 5287 test ! -s conftest.err 5288 } && test -s conftest.$ac_objext; then 5289 ac_cv_c_const=yes 5290else 5291 echo "$as_me: failed program was:" >&5 5292sed 's/^/| /' conftest.$ac_ext >&5 5293 5294 ac_cv_c_const=no 5295fi 5296 5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5298fi 5299{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5300echo "${ECHO_T}$ac_cv_c_const" >&6; } 5301if test $ac_cv_c_const = no; then 5302 5303cat >>confdefs.h <<\_ACEOF 5304#define const 5305_ACEOF 5306 5307fi 5308 5309{ echo "$as_me:$LINENO: checking for inline" >&5 5310echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 5311if test "${ac_cv_c_inline+set}" = set; then 5312 echo $ECHO_N "(cached) $ECHO_C" >&6 5313else 5314 ac_cv_c_inline=no 5315for ac_kw in inline __inline__ __inline; do 5316 cat >conftest.$ac_ext <<_ACEOF 5317/* confdefs.h. */ 5318_ACEOF 5319cat confdefs.h >>conftest.$ac_ext 5320cat >>conftest.$ac_ext <<_ACEOF 5321/* end confdefs.h. */ 5322#ifndef __cplusplus 5323typedef int foo_t; 5324static $ac_kw foo_t static_foo () {return 0; } 5325$ac_kw foo_t foo () {return 0; } 5326#endif 5327 5328_ACEOF 5329rm -f conftest.$ac_objext 5330if { (ac_try="$ac_compile" 5331case "(($ac_try" in 5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5333 *) ac_try_echo=$ac_try;; 5334esac 5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5336 (eval "$ac_compile") 2>conftest.er1 5337 ac_status=$? 5338 grep -v '^ *+' conftest.er1 >conftest.err 5339 rm -f conftest.er1 5340 cat conftest.err >&5 5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5342 (exit $ac_status); } && { 5343 test -z "$ac_c_werror_flag" || 5344 test ! -s conftest.err 5345 } && test -s conftest.$ac_objext; then 5346 ac_cv_c_inline=$ac_kw 5347else 5348 echo "$as_me: failed program was:" >&5 5349sed 's/^/| /' conftest.$ac_ext >&5 5350 5351 5352fi 5353 5354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5355 test "$ac_cv_c_inline" != no && break 5356done 5357 5358fi 5359{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5360echo "${ECHO_T}$ac_cv_c_inline" >&6; } 5361 5362 5363case $ac_cv_c_inline in 5364 inline | yes) ;; 5365 *) 5366 case $ac_cv_c_inline in 5367 no) ac_val=;; 5368 *) ac_val=$ac_cv_c_inline;; 5369 esac 5370 cat >>confdefs.h <<_ACEOF 5371#ifndef __cplusplus 5372#define inline $ac_val 5373#endif 5374_ACEOF 5375 ;; 5376esac 5377 5378{ echo "$as_me:$LINENO: checking for size_t" >&5 5379echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 5380if test "${ac_cv_type_size_t+set}" = set; then 5381 echo $ECHO_N "(cached) $ECHO_C" >&6 5382else 5383 cat >conftest.$ac_ext <<_ACEOF 5384/* confdefs.h. */ 5385_ACEOF 5386cat confdefs.h >>conftest.$ac_ext 5387cat >>conftest.$ac_ext <<_ACEOF 5388/* end confdefs.h. */ 5389$ac_includes_default 5390typedef size_t ac__type_new_; 5391int 5392main () 5393{ 5394if ((ac__type_new_ *) 0) 5395 return 0; 5396if (sizeof (ac__type_new_)) 5397 return 0; 5398 ; 5399 return 0; 5400} 5401_ACEOF 5402rm -f conftest.$ac_objext 5403if { (ac_try="$ac_compile" 5404case "(($ac_try" in 5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5406 *) ac_try_echo=$ac_try;; 5407esac 5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5409 (eval "$ac_compile") 2>conftest.er1 5410 ac_status=$? 5411 grep -v '^ *+' conftest.er1 >conftest.err 5412 rm -f conftest.er1 5413 cat conftest.err >&5 5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5415 (exit $ac_status); } && { 5416 test -z "$ac_c_werror_flag" || 5417 test ! -s conftest.err 5418 } && test -s conftest.$ac_objext; then 5419 ac_cv_type_size_t=yes 5420else 5421 echo "$as_me: failed program was:" >&5 5422sed 's/^/| /' conftest.$ac_ext >&5 5423 5424 ac_cv_type_size_t=no 5425fi 5426 5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5428fi 5429{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5430echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 5431if test $ac_cv_type_size_t = yes; then 5432 : 5433else 5434 5435cat >>confdefs.h <<_ACEOF 5436#define size_t unsigned int 5437_ACEOF 5438 5439fi 5440 5441{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 5442echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 5443if test "${ac_cv_header_time+set}" = set; then 5444 echo $ECHO_N "(cached) $ECHO_C" >&6 5445else 5446 cat >conftest.$ac_ext <<_ACEOF 5447/* confdefs.h. */ 5448_ACEOF 5449cat confdefs.h >>conftest.$ac_ext 5450cat >>conftest.$ac_ext <<_ACEOF 5451/* end confdefs.h. */ 5452#include <sys/types.h> 5453#include <sys/time.h> 5454#include <time.h> 5455 5456int 5457main () 5458{ 5459if ((struct tm *) 0) 5460return 0; 5461 ; 5462 return 0; 5463} 5464_ACEOF 5465rm -f conftest.$ac_objext 5466if { (ac_try="$ac_compile" 5467case "(($ac_try" in 5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5469 *) ac_try_echo=$ac_try;; 5470esac 5471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5472 (eval "$ac_compile") 2>conftest.er1 5473 ac_status=$? 5474 grep -v '^ *+' conftest.er1 >conftest.err 5475 rm -f conftest.er1 5476 cat conftest.err >&5 5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5478 (exit $ac_status); } && { 5479 test -z "$ac_c_werror_flag" || 5480 test ! -s conftest.err 5481 } && test -s conftest.$ac_objext; then 5482 ac_cv_header_time=yes 5483else 5484 echo "$as_me: failed program was:" >&5 5485sed 's/^/| /' conftest.$ac_ext >&5 5486 5487 ac_cv_header_time=no 5488fi 5489 5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5491fi 5492{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 5493echo "${ECHO_T}$ac_cv_header_time" >&6; } 5494if test $ac_cv_header_time = yes; then 5495 5496cat >>confdefs.h <<\_ACEOF 5497#define TIME_WITH_SYS_TIME 1 5498_ACEOF 5499 5500fi 5501 5502{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 5503echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 5504if test "${ac_cv_struct_tm+set}" = set; then 5505 echo $ECHO_N "(cached) $ECHO_C" >&6 5506else 5507 cat >conftest.$ac_ext <<_ACEOF 5508/* confdefs.h. */ 5509_ACEOF 5510cat confdefs.h >>conftest.$ac_ext 5511cat >>conftest.$ac_ext <<_ACEOF 5512/* end confdefs.h. */ 5513#include <sys/types.h> 5514#include <time.h> 5515 5516int 5517main () 5518{ 5519struct tm tm; 5520 int *p = &tm.tm_sec; 5521 return !p; 5522 ; 5523 return 0; 5524} 5525_ACEOF 5526rm -f conftest.$ac_objext 5527if { (ac_try="$ac_compile" 5528case "(($ac_try" in 5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5530 *) ac_try_echo=$ac_try;; 5531esac 5532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5533 (eval "$ac_compile") 2>conftest.er1 5534 ac_status=$? 5535 grep -v '^ *+' conftest.er1 >conftest.err 5536 rm -f conftest.er1 5537 cat conftest.err >&5 5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5539 (exit $ac_status); } && { 5540 test -z "$ac_c_werror_flag" || 5541 test ! -s conftest.err 5542 } && test -s conftest.$ac_objext; then 5543 ac_cv_struct_tm=time.h 5544else 5545 echo "$as_me: failed program was:" >&5 5546sed 's/^/| /' conftest.$ac_ext >&5 5547 5548 ac_cv_struct_tm=sys/time.h 5549fi 5550 5551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5552fi 5553{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 5554echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 5555if test $ac_cv_struct_tm = sys/time.h; then 5556 5557cat >>confdefs.h <<\_ACEOF 5558#define TM_IN_SYS_TIME 1 5559_ACEOF 5560 5561fi 5562 5563 5564 5565{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 5566echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 5567if test "${ac_cv_type_signal+set}" = set; then 5568 echo $ECHO_N "(cached) $ECHO_C" >&6 5569else 5570 cat >conftest.$ac_ext <<_ACEOF 5571/* confdefs.h. */ 5572_ACEOF 5573cat confdefs.h >>conftest.$ac_ext 5574cat >>conftest.$ac_ext <<_ACEOF 5575/* end confdefs.h. */ 5576#include <sys/types.h> 5577#include <signal.h> 5578 5579int 5580main () 5581{ 5582return *(signal (0, 0)) (0) == 1; 5583 ; 5584 return 0; 5585} 5586_ACEOF 5587rm -f conftest.$ac_objext 5588if { (ac_try="$ac_compile" 5589case "(($ac_try" in 5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5591 *) ac_try_echo=$ac_try;; 5592esac 5593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5594 (eval "$ac_compile") 2>conftest.er1 5595 ac_status=$? 5596 grep -v '^ *+' conftest.er1 >conftest.err 5597 rm -f conftest.er1 5598 cat conftest.err >&5 5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5600 (exit $ac_status); } && { 5601 test -z "$ac_c_werror_flag" || 5602 test ! -s conftest.err 5603 } && test -s conftest.$ac_objext; then 5604 ac_cv_type_signal=int 5605else 5606 echo "$as_me: failed program was:" >&5 5607sed 's/^/| /' conftest.$ac_ext >&5 5608 5609 ac_cv_type_signal=void 5610fi 5611 5612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5613fi 5614{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 5615echo "${ECHO_T}$ac_cv_type_signal" >&6; } 5616 5617cat >>confdefs.h <<_ACEOF 5618#define RETSIGTYPE $ac_cv_type_signal 5619_ACEOF 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664for ac_func in strerror random srandom strchr strrchr lockf flock \ 5665strcasecmp strncasecmp strnlen atexit on_exit getpass memmove \ 5666strdup strcspn strspn strtoul strtol memcpy strpbrk memset setenv \ 5667seteuid setresuid setpgrp \ 5668tcsetattr tcflush basename fchdir media_oldaliases llseek lseek64 \ 5669snprintf stat64 setlocale \ 5670wcsdup wcscasecmp wcsnlen putwc \ 5671getuserid getgroupid 5672do 5673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5674{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5677 echo $ECHO_N "(cached) $ECHO_C" >&6 5678else 5679 cat >conftest.$ac_ext <<_ACEOF 5680/* confdefs.h. */ 5681_ACEOF 5682cat confdefs.h >>conftest.$ac_ext 5683cat >>conftest.$ac_ext <<_ACEOF 5684/* end confdefs.h. */ 5685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5686 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5687#define $ac_func innocuous_$ac_func 5688 5689/* System header to define __stub macros and hopefully few prototypes, 5690 which can conflict with char $ac_func (); below. 5691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5692 <limits.h> exists even on freestanding compilers. */ 5693 5694#ifdef __STDC__ 5695# include <limits.h> 5696#else 5697# include <assert.h> 5698#endif 5699 5700#undef $ac_func 5701 5702/* Override any GCC internal prototype to avoid an error. 5703 Use char because int might match the return type of a GCC 5704 builtin and then its argument prototype would still apply. */ 5705#ifdef __cplusplus 5706extern "C" 5707#endif 5708char $ac_func (); 5709/* The GNU C library defines this for functions which it implements 5710 to always fail with ENOSYS. Some functions are actually named 5711 something starting with __ and the normal name is an alias. */ 5712#if defined __stub_$ac_func || defined __stub___$ac_func 5713choke me 5714#endif 5715 5716int 5717main () 5718{ 5719return $ac_func (); 5720 ; 5721 return 0; 5722} 5723_ACEOF 5724rm -f conftest.$ac_objext conftest$ac_exeext 5725if { (ac_try="$ac_link" 5726case "(($ac_try" in 5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5728 *) ac_try_echo=$ac_try;; 5729esac 5730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5731 (eval "$ac_link") 2>conftest.er1 5732 ac_status=$? 5733 grep -v '^ *+' conftest.er1 >conftest.err 5734 rm -f conftest.er1 5735 cat conftest.err >&5 5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5737 (exit $ac_status); } && { 5738 test -z "$ac_c_werror_flag" || 5739 test ! -s conftest.err 5740 } && test -s conftest$ac_exeext && 5741 $as_test_x conftest$ac_exeext; then 5742 eval "$as_ac_var=yes" 5743else 5744 echo "$as_me: failed program was:" >&5 5745sed 's/^/| /' conftest.$ac_ext >&5 5746 5747 eval "$as_ac_var=no" 5748fi 5749 5750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5751 conftest$ac_exeext conftest.$ac_ext 5752fi 5753ac_res=`eval echo '${'$as_ac_var'}'` 5754 { echo "$as_me:$LINENO: result: $ac_res" >&5 5755echo "${ECHO_T}$ac_res" >&6; } 5756if test `eval echo '${'$as_ac_var'}'` = yes; then 5757 cat >>confdefs.h <<_ACEOF 5758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5759_ACEOF 5760 5761fi 5762done 5763 5764{ echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 5765echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; } 5766if test "${ac_cv_func_setpgrp_void+set}" = set; then 5767 echo $ECHO_N "(cached) $ECHO_C" >&6 5768else 5769 if test "$cross_compiling" = yes; then 5770 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 5771echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} 5772 { (exit 1); exit 1; }; } 5773else 5774 cat >conftest.$ac_ext <<_ACEOF 5775/* confdefs.h. */ 5776_ACEOF 5777cat confdefs.h >>conftest.$ac_ext 5778cat >>conftest.$ac_ext <<_ACEOF 5779/* end confdefs.h. */ 5780$ac_includes_default 5781int 5782main () 5783{ 5784/* If this system has a BSD-style setpgrp which takes arguments, 5785 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 5786 exit successfully. */ 5787 return setpgrp (1,1) != -1; 5788 ; 5789 return 0; 5790} 5791_ACEOF 5792rm -f conftest$ac_exeext 5793if { (ac_try="$ac_link" 5794case "(($ac_try" in 5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5796 *) ac_try_echo=$ac_try;; 5797esac 5798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5799 (eval "$ac_link") 2>&5 5800 ac_status=$? 5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5803 { (case "(($ac_try" in 5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5805 *) ac_try_echo=$ac_try;; 5806esac 5807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5808 (eval "$ac_try") 2>&5 5809 ac_status=$? 5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5811 (exit $ac_status); }; }; then 5812 ac_cv_func_setpgrp_void=no 5813else 5814 echo "$as_me: program exited with status $ac_status" >&5 5815echo "$as_me: failed program was:" >&5 5816sed 's/^/| /' conftest.$ac_ext >&5 5817 5818( exit $ac_status ) 5819ac_cv_func_setpgrp_void=yes 5820fi 5821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5822fi 5823 5824 5825fi 5826{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 5827echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; } 5828if test $ac_cv_func_setpgrp_void = yes; then 5829 5830cat >>confdefs.h <<\_ACEOF 5831#define SETPGRP_VOID 1 5832_ACEOF 5833 5834fi 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846{ echo "$as_me:$LINENO: checking for 64-bit off_t" >&5 5847echo $ECHO_N "checking for 64-bit off_t... $ECHO_C" >&6; } 5848if test "${sfs_cv_off_t_64+set}" = set; then 5849 echo $ECHO_N "(cached) $ECHO_C" >&6 5850else 5851 cat >conftest.$ac_ext <<_ACEOF 5852/* confdefs.h. */ 5853_ACEOF 5854cat confdefs.h >>conftest.$ac_ext 5855cat >>conftest.$ac_ext <<_ACEOF 5856/* end confdefs.h. */ 5857 5858#include <unistd.h> 5859#include <sys/types.h> 5860 5861int 5862main () 5863{ 5864 5865switch (0) case 0: case (sizeof (off_t) <= 4):; 5866 5867 ; 5868 return 0; 5869} 5870_ACEOF 5871rm -f conftest.$ac_objext 5872if { (ac_try="$ac_compile" 5873case "(($ac_try" in 5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5875 *) ac_try_echo=$ac_try;; 5876esac 5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5878 (eval "$ac_compile") 2>conftest.er1 5879 ac_status=$? 5880 grep -v '^ *+' conftest.er1 >conftest.err 5881 rm -f conftest.er1 5882 cat conftest.err >&5 5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5884 (exit $ac_status); } && { 5885 test -z "$ac_c_werror_flag" || 5886 test ! -s conftest.err 5887 } && test -s conftest.$ac_objext; then 5888 sfs_cv_off_t_64=no 5889else 5890 echo "$as_me: failed program was:" >&5 5891sed 's/^/| /' conftest.$ac_ext >&5 5892 5893 sfs_cv_off_t_64=yes 5894fi 5895 5896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5897fi 5898{ echo "$as_me:$LINENO: result: $sfs_cv_off_t_64" >&5 5899echo "${ECHO_T}$sfs_cv_off_t_64" >&6; } 5900if test $sfs_cv_off_t_64 = yes; then 5901 5902cat >>confdefs.h <<\_ACEOF 5903#define HAVE_OFF_T_64 1 5904_ACEOF 5905 5906fi 5907 5908{ echo "$as_me:$LINENO: checking whether ${CC} supports loff_t type" >&5 5909echo $ECHO_N "checking whether ${CC} supports loff_t type... $ECHO_C" >&6; } 5910if test "${ice_cv_have_loff_t+set}" = set; then 5911 echo $ECHO_N "(cached) $ECHO_C" >&6 5912else 5913 5914cat >conftest.$ac_ext <<_ACEOF 5915/* confdefs.h. */ 5916_ACEOF 5917cat confdefs.h >>conftest.$ac_ext 5918cat >>conftest.$ac_ext <<_ACEOF 5919/* end confdefs.h. */ 5920#include <sys/types.h> 5921int 5922main () 5923{ 5924loff_t a; 5925 ; 5926 return 0; 5927} 5928_ACEOF 5929rm -f conftest.$ac_objext 5930if { (ac_try="$ac_compile" 5931case "(($ac_try" in 5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5933 *) ac_try_echo=$ac_try;; 5934esac 5935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5936 (eval "$ac_compile") 2>conftest.er1 5937 ac_status=$? 5938 grep -v '^ *+' conftest.er1 >conftest.err 5939 rm -f conftest.er1 5940 cat conftest.err >&5 5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5942 (exit $ac_status); } && { 5943 test -z "$ac_c_werror_flag" || 5944 test ! -s conftest.err 5945 } && test -s conftest.$ac_objext; then 5946 ice_cv_have_loff_t=yes 5947else 5948 echo "$as_me: failed program was:" >&5 5949sed 's/^/| /' conftest.$ac_ext >&5 5950 5951 ice_cv_have_loff_t=no 5952fi 5953 5954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5955 5956fi 5957 5958{ echo "$as_me:$LINENO: result: $ice_cv_have_loff_t" >&5 5959echo "${ECHO_T}$ice_cv_have_loff_t" >&6; } 5960if test "$ice_cv_have_loff_t" = yes; then 5961 5962cat >>confdefs.h <<\_ACEOF 5963#define HAVE_LOFF_T 1 5964_ACEOF 5965 5966fi 5967 5968 5969{ echo "$as_me:$LINENO: checking whether ${CC} supports offset_t type" >&5 5970echo $ECHO_N "checking whether ${CC} supports offset_t type... $ECHO_C" >&6; } 5971if test "${ice_cv_have_offset_t+set}" = set; then 5972 echo $ECHO_N "(cached) $ECHO_C" >&6 5973else 5974 5975cat >conftest.$ac_ext <<_ACEOF 5976/* confdefs.h. */ 5977_ACEOF 5978cat confdefs.h >>conftest.$ac_ext 5979cat >>conftest.$ac_ext <<_ACEOF 5980/* end confdefs.h. */ 5981#include <sys/types.h> 5982int 5983main () 5984{ 5985offset_t a; 5986 ; 5987 return 0; 5988} 5989_ACEOF 5990rm -f conftest.$ac_objext 5991if { (ac_try="$ac_compile" 5992case "(($ac_try" in 5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5994 *) ac_try_echo=$ac_try;; 5995esac 5996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5997 (eval "$ac_compile") 2>conftest.er1 5998 ac_status=$? 5999 grep -v '^ *+' conftest.er1 >conftest.err 6000 rm -f conftest.er1 6001 cat conftest.err >&5 6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6003 (exit $ac_status); } && { 6004 test -z "$ac_c_werror_flag" || 6005 test ! -s conftest.err 6006 } && test -s conftest.$ac_objext; then 6007 ice_cv_have_offset_t=yes 6008else 6009 echo "$as_me: failed program was:" >&5 6010sed 's/^/| /' conftest.$ac_ext >&5 6011 6012 ice_cv_have_offset_t=no 6013fi 6014 6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6016 6017fi 6018 6019{ echo "$as_me:$LINENO: result: $ice_cv_have_offset_t" >&5 6020echo "${ECHO_T}$ice_cv_have_offset_t" >&6; } 6021if test "$ice_cv_have_offset_t" = yes; then 6022 6023cat >>confdefs.h <<\_ACEOF 6024#define HAVE_OFFSET_T 1 6025_ACEOF 6026 6027fi 6028 6029 6030{ echo "$as_me:$LINENO: checking whether ${CC} supports long long type" >&5 6031echo $ECHO_N "checking whether ${CC} supports long long type... $ECHO_C" >&6; } 6032if test "${ice_cv_have_long_long+set}" = set; then 6033 echo $ECHO_N "(cached) $ECHO_C" >&6 6034else 6035 6036cat >conftest.$ac_ext <<_ACEOF 6037/* confdefs.h. */ 6038_ACEOF 6039cat confdefs.h >>conftest.$ac_ext 6040cat >>conftest.$ac_ext <<_ACEOF 6041/* end confdefs.h. */ 6042 6043int 6044main () 6045{ 6046long long a; 6047 ; 6048 return 0; 6049} 6050_ACEOF 6051rm -f conftest.$ac_objext 6052if { (ac_try="$ac_compile" 6053case "(($ac_try" in 6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6055 *) ac_try_echo=$ac_try;; 6056esac 6057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6058 (eval "$ac_compile") 2>conftest.er1 6059 ac_status=$? 6060 grep -v '^ *+' conftest.er1 >conftest.err 6061 rm -f conftest.er1 6062 cat conftest.err >&5 6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6064 (exit $ac_status); } && { 6065 test -z "$ac_c_werror_flag" || 6066 test ! -s conftest.err 6067 } && test -s conftest.$ac_objext; then 6068 ice_cv_have_long_long=yes 6069else 6070 echo "$as_me: failed program was:" >&5 6071sed 's/^/| /' conftest.$ac_ext >&5 6072 6073 ice_cv_have_long_long=no 6074fi 6075 6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6077 6078fi 6079 6080{ echo "$as_me:$LINENO: result: $ice_cv_have_long_long" >&5 6081echo "${ECHO_T}$ice_cv_have_long_long" >&6; } 6082if test "$ice_cv_have_long_long" = yes; then 6083 6084cat >>confdefs.h <<\_ACEOF 6085#define HAVE_LONG_LONG 1 6086_ACEOF 6087 6088fi 6089 6090 6091 6092 6093 6094for ac_func in utimes utime 6095do 6096as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6097{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6098echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6099if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6100 echo $ECHO_N "(cached) $ECHO_C" >&6 6101else 6102 cat >conftest.$ac_ext <<_ACEOF 6103/* confdefs.h. */ 6104_ACEOF 6105cat confdefs.h >>conftest.$ac_ext 6106cat >>conftest.$ac_ext <<_ACEOF 6107/* end confdefs.h. */ 6108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6109 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6110#define $ac_func innocuous_$ac_func 6111 6112/* System header to define __stub macros and hopefully few prototypes, 6113 which can conflict with char $ac_func (); below. 6114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6115 <limits.h> exists even on freestanding compilers. */ 6116 6117#ifdef __STDC__ 6118# include <limits.h> 6119#else 6120# include <assert.h> 6121#endif 6122 6123#undef $ac_func 6124 6125/* Override any GCC internal prototype to avoid an error. 6126 Use char because int might match the return type of a GCC 6127 builtin and then its argument prototype would still apply. */ 6128#ifdef __cplusplus 6129extern "C" 6130#endif 6131char $ac_func (); 6132/* The GNU C library defines this for functions which it implements 6133 to always fail with ENOSYS. Some functions are actually named 6134 something starting with __ and the normal name is an alias. */ 6135#if defined __stub_$ac_func || defined __stub___$ac_func 6136choke me 6137#endif 6138 6139int 6140main () 6141{ 6142return $ac_func (); 6143 ; 6144 return 0; 6145} 6146_ACEOF 6147rm -f conftest.$ac_objext conftest$ac_exeext 6148if { (ac_try="$ac_link" 6149case "(($ac_try" in 6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6151 *) ac_try_echo=$ac_try;; 6152esac 6153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6154 (eval "$ac_link") 2>conftest.er1 6155 ac_status=$? 6156 grep -v '^ *+' conftest.er1 >conftest.err 6157 rm -f conftest.er1 6158 cat conftest.err >&5 6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6160 (exit $ac_status); } && { 6161 test -z "$ac_c_werror_flag" || 6162 test ! -s conftest.err 6163 } && test -s conftest$ac_exeext && 6164 $as_test_x conftest$ac_exeext; then 6165 eval "$as_ac_var=yes" 6166else 6167 echo "$as_me: failed program was:" >&5 6168sed 's/^/| /' conftest.$ac_ext >&5 6169 6170 eval "$as_ac_var=no" 6171fi 6172 6173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6174 conftest$ac_exeext conftest.$ac_ext 6175fi 6176ac_res=`eval echo '${'$as_ac_var'}'` 6177 { echo "$as_me:$LINENO: result: $ac_res" >&5 6178echo "${ECHO_T}$ac_res" >&6; } 6179if test `eval echo '${'$as_ac_var'}'` = yes; then 6180 cat >>confdefs.h <<_ACEOF 6181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6182_ACEOF 6183 break 6184fi 6185done 6186 6187 6188 6189for ac_func in tzset gettimeofday 6190do 6191as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6192{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6194if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6195 echo $ECHO_N "(cached) $ECHO_C" >&6 6196else 6197 cat >conftest.$ac_ext <<_ACEOF 6198/* confdefs.h. */ 6199_ACEOF 6200cat confdefs.h >>conftest.$ac_ext 6201cat >>conftest.$ac_ext <<_ACEOF 6202/* end confdefs.h. */ 6203/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6204 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6205#define $ac_func innocuous_$ac_func 6206 6207/* System header to define __stub macros and hopefully few prototypes, 6208 which can conflict with char $ac_func (); below. 6209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6210 <limits.h> exists even on freestanding compilers. */ 6211 6212#ifdef __STDC__ 6213# include <limits.h> 6214#else 6215# include <assert.h> 6216#endif 6217 6218#undef $ac_func 6219 6220/* Override any GCC internal prototype to avoid an error. 6221 Use char because int might match the return type of a GCC 6222 builtin and then its argument prototype would still apply. */ 6223#ifdef __cplusplus 6224extern "C" 6225#endif 6226char $ac_func (); 6227/* The GNU C library defines this for functions which it implements 6228 to always fail with ENOSYS. Some functions are actually named 6229 something starting with __ and the normal name is an alias. */ 6230#if defined __stub_$ac_func || defined __stub___$ac_func 6231choke me 6232#endif 6233 6234int 6235main () 6236{ 6237return $ac_func (); 6238 ; 6239 return 0; 6240} 6241_ACEOF 6242rm -f conftest.$ac_objext conftest$ac_exeext 6243if { (ac_try="$ac_link" 6244case "(($ac_try" in 6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6246 *) ac_try_echo=$ac_try;; 6247esac 6248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6249 (eval "$ac_link") 2>conftest.er1 6250 ac_status=$? 6251 grep -v '^ *+' conftest.er1 >conftest.err 6252 rm -f conftest.er1 6253 cat conftest.err >&5 6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6255 (exit $ac_status); } && { 6256 test -z "$ac_c_werror_flag" || 6257 test ! -s conftest.err 6258 } && test -s conftest$ac_exeext && 6259 $as_test_x conftest$ac_exeext; then 6260 eval "$as_ac_var=yes" 6261else 6262 echo "$as_me: failed program was:" >&5 6263sed 's/^/| /' conftest.$ac_ext >&5 6264 6265 eval "$as_ac_var=no" 6266fi 6267 6268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6269 conftest$ac_exeext conftest.$ac_ext 6270fi 6271ac_res=`eval echo '${'$as_ac_var'}'` 6272 { echo "$as_me:$LINENO: result: $ac_res" >&5 6273echo "${ECHO_T}$ac_res" >&6; } 6274if test `eval echo '${'$as_ac_var'}'` = yes; then 6275 cat >>confdefs.h <<_ACEOF 6276#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6277_ACEOF 6278 6279fi 6280done 6281 6282 6283 6284{ echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5 6285echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; } 6286if test "${cf_cv_dcl_sys_errlist+set}" = set; then 6287 echo $ECHO_N "(cached) $ECHO_C" >&6 6288else 6289 6290 cat >conftest.$ac_ext <<_ACEOF 6291/* confdefs.h. */ 6292_ACEOF 6293cat confdefs.h >>conftest.$ac_ext 6294cat >>conftest.$ac_ext <<_ACEOF 6295/* end confdefs.h. */ 6296 6297#include <stdio.h> 6298#include <sys/types.h> 6299#include <errno.h> 6300int 6301main () 6302{ 6303char *c = (char *) *sys_errlist 6304 ; 6305 return 0; 6306} 6307_ACEOF 6308rm -f conftest.$ac_objext 6309if { (ac_try="$ac_compile" 6310case "(($ac_try" in 6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6312 *) ac_try_echo=$ac_try;; 6313esac 6314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6315 (eval "$ac_compile") 2>conftest.er1 6316 ac_status=$? 6317 grep -v '^ *+' conftest.er1 >conftest.err 6318 rm -f conftest.er1 6319 cat conftest.err >&5 6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6321 (exit $ac_status); } && { 6322 test -z "$ac_c_werror_flag" || 6323 test ! -s conftest.err 6324 } && test -s conftest.$ac_objext; then 6325 cf_cv_dcl_sys_errlist=yes 6326else 6327 echo "$as_me: failed program was:" >&5 6328sed 's/^/| /' conftest.$ac_ext >&5 6329 6330 cf_cv_dcl_sys_errlist=no 6331fi 6332 6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6334fi 6335 6336{ echo "$as_me:$LINENO: result: $cf_cv_dcl_sys_errlist" >&5 6337echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6; } 6338test $cf_cv_dcl_sys_errlist = no || 6339cat >>confdefs.h <<\_ACEOF 6340#define DECL_SYS_ERRLIST 1 6341_ACEOF 6342 6343 6344 6345 6346host_os0=`echo $host_os | sed 's/-/_/g'` 6347host_os1=`echo $host_os0 | sed 's/\./_/g'` 6348host_os2=`echo $host_os0 | sed 's/^\([^.]*\)\..*$/\1/g'` 6349host_os3=`echo $host_os2 | sed 's/^\([^0-9]*\)[0-9]*$/\1/g'` 6350host_cpu1=`echo $host_cpu | sed 's/\./_/g'` 6351host_vendor1=`echo $host_vendor | sed 's/\./_/g'` 6352HOST_ID="-DCPU_$host_cpu1 -DVENDOR_$host_vendor1 -DOS_$host_os1" 6353if [ $host_os1 != $host_os2 ] ; then 6354 HOST_ID="$HOST_ID -DOS_$host_os2" 6355fi 6356if [ $host_os1 != $host_os3 ] && [ $host_os2 != $host_os3 ] ; then 6357 HOST_ID="$HOST_ID -DOS_$host_os3" 6358fi 6359 6360my_host_os=`echo $host_os1 $host_os2 $host_os3 | sort -u` 6361objs=`echo $srcdir/*.c | sed 's/\.c$/.o/' ` 6362if [ "X$GCC" = "Xyes" ] ; then 6363 if [ "$host_cpu" = i486 ] ; then 6364 CFLAGS="$CFLAGS -m486" 6365 fi 6366 Wall=-Wall 6367 if [ "$host_os3" = sunos ] ; then 6368 Wall="" 6369 fi 6370 if [ "$host_os3" = ultrix ] ; then 6371 Wall="" 6372 fi 6373 if [ "$host_os3" = linux ] ; then 6374 CFLAGS="$CFLAGS -fno-strength-reduce" 6375 fi 6376 if [ "$host_os3" = aux ] ; then 6377 CFLAGS="$CFLAGS -ZP" 6378 MACHDEPLIBS="-lposix -UTIL" 6379 fi 6380 case "${host}" in 6381 arm*-*-linux) CFLAGS="$CFLAGS -mstructure-size-boundary=8";; 6382 esac 6383 CFLAGS="$CFLAGS $Wall" 6384else 6385 if [ $host_os3 = hpux ] ; then 6386 CPPFLAGS="$CPPFLAGS -Ae" 6387 fi 6388 6389 if [ $host_os3 = xenix ] ; then 6390 CFLAGS="$CFLAGS -M2e" 6391 fi 6392fi 6393 6394if [ $host_os3 = hpux ] ; then 6395 LDFLAGS="$LDFLAGS -z" 6396fi 6397 6398 6399if [ $host_vendor = linux ] ; then 6400 LDFLAGS="$LDFLAGS -z" 6401fi 6402 6403if [ $host_os3 = xenix ] ; then 6404 LDFLAGS="$LDFLAGS -M2e -i -f 5000" 6405fi 6406 6407if [ $host_os2 = sysv4 ] ; then 6408 SHLIB="-lc -L/usr/ucblib -lucb" 6409else 6410 SHLIB="" 6411fi 6412 6413if [ $host_os3 = isc ] ; then 6414 CFLAGS="$CFLAGS -D_SYSV3" 6415 SHLIB="-lc_s" 6416fi 6417 6418if [ $host_os3 = solaris -a x$newVold = xxyes ] ; then 6419 SHLIB="$SHLIB -s -lvolmgt" 6420fi 6421 6422if [ $host_os3 = nextstep ] ; then 6423 CFLAGS="$CFLAGS -DBSD" 6424 SHLIB="" 6425fi 6426 6427if [ -d /usr/5lib ] ; then 6428 extralibdir=-L/usr/5lib 6429fi 6430 6431 6432 6433{ echo "$as_me:$LINENO: checking for X" >&5 6434echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6435 6436 6437# Check whether --with-x was given. 6438if test "${with_x+set}" = set; then 6439 withval=$with_x; 6440fi 6441 6442# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6443if test "x$with_x" = xno; then 6444 # The user explicitly disabled X. 6445 have_x=disabled 6446else 6447 case $x_includes,$x_libraries in #( 6448 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 6449echo "$as_me: error: Cannot use X directory names containing '" >&2;} 6450 { (exit 1); exit 1; }; };; #( 6451 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 6452 echo $ECHO_N "(cached) $ECHO_C" >&6 6453else 6454 # One or both of the vars are not set, and there is no cached value. 6455ac_x_includes=no ac_x_libraries=no 6456rm -f -r conftest.dir 6457if mkdir conftest.dir; then 6458 cd conftest.dir 6459 cat >Imakefile <<'_ACEOF' 6460incroot: 6461 @echo incroot='${INCROOT}' 6462usrlibdir: 6463 @echo usrlibdir='${USRLIBDIR}' 6464libdir: 6465 @echo libdir='${LIBDIR}' 6466_ACEOF 6467 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 6468 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6469 for ac_var in incroot usrlibdir libdir; do 6470 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 6471 done 6472 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 6473 for ac_extension in a so sl; do 6474 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 6475 test -f "$ac_im_libdir/libX11.$ac_extension"; then 6476 ac_im_usrlibdir=$ac_im_libdir; break 6477 fi 6478 done 6479 # Screen out bogus values from the imake configuration. They are 6480 # bogus both because they are the default anyway, and because 6481 # using them would break gcc on systems where it needs fixed includes. 6482 case $ac_im_incroot in 6483 /usr/include) ac_x_includes= ;; 6484 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6485 esac 6486 case $ac_im_usrlibdir in 6487 /usr/lib | /lib) ;; 6488 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6489 esac 6490 fi 6491 cd .. 6492 rm -f -r conftest.dir 6493fi 6494 6495# Standard set of common directories for X headers. 6496# Check X11 before X11Rn because it is often a symlink to the current release. 6497ac_x_header_dirs=' 6498/usr/X11/include 6499/usr/X11R6/include 6500/usr/X11R5/include 6501/usr/X11R4/include 6502 6503/usr/include/X11 6504/usr/include/X11R6 6505/usr/include/X11R5 6506/usr/include/X11R4 6507 6508/usr/local/X11/include 6509/usr/local/X11R6/include 6510/usr/local/X11R5/include 6511/usr/local/X11R4/include 6512 6513/usr/local/include/X11 6514/usr/local/include/X11R6 6515/usr/local/include/X11R5 6516/usr/local/include/X11R4 6517 6518/usr/X386/include 6519/usr/x386/include 6520/usr/XFree86/include/X11 6521 6522/usr/include 6523/usr/local/include 6524/usr/unsupported/include 6525/usr/athena/include 6526/usr/local/x11r5/include 6527/usr/lpp/Xamples/include 6528 6529/usr/openwin/include 6530/usr/openwin/share/include' 6531 6532if test "$ac_x_includes" = no; then 6533 # Guess where to find include files, by looking for Xlib.h. 6534 # First, try using that file with no special directory specified. 6535 cat >conftest.$ac_ext <<_ACEOF 6536/* confdefs.h. */ 6537_ACEOF 6538cat confdefs.h >>conftest.$ac_ext 6539cat >>conftest.$ac_ext <<_ACEOF 6540/* end confdefs.h. */ 6541#include <X11/Xlib.h> 6542_ACEOF 6543if { (ac_try="$ac_cpp conftest.$ac_ext" 6544case "(($ac_try" in 6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6546 *) ac_try_echo=$ac_try;; 6547esac 6548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6550 ac_status=$? 6551 grep -v '^ *+' conftest.er1 >conftest.err 6552 rm -f conftest.er1 6553 cat conftest.err >&5 6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6555 (exit $ac_status); } >/dev/null && { 6556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6557 test ! -s conftest.err 6558 }; then 6559 # We can compile using X headers with no special include directory. 6560ac_x_includes= 6561else 6562 echo "$as_me: failed program was:" >&5 6563sed 's/^/| /' conftest.$ac_ext >&5 6564 6565 for ac_dir in $ac_x_header_dirs; do 6566 if test -r "$ac_dir/X11/Xlib.h"; then 6567 ac_x_includes=$ac_dir 6568 break 6569 fi 6570done 6571fi 6572 6573rm -f conftest.err conftest.$ac_ext 6574fi # $ac_x_includes = no 6575 6576if test "$ac_x_libraries" = no; then 6577 # Check for the libraries. 6578 # See if we find them without any special options. 6579 # Don't add to $LIBS permanently. 6580 ac_save_LIBS=$LIBS 6581 LIBS="-lX11 $LIBS" 6582 cat >conftest.$ac_ext <<_ACEOF 6583/* confdefs.h. */ 6584_ACEOF 6585cat confdefs.h >>conftest.$ac_ext 6586cat >>conftest.$ac_ext <<_ACEOF 6587/* end confdefs.h. */ 6588#include <X11/Xlib.h> 6589int 6590main () 6591{ 6592XrmInitialize () 6593 ; 6594 return 0; 6595} 6596_ACEOF 6597rm -f conftest.$ac_objext conftest$ac_exeext 6598if { (ac_try="$ac_link" 6599case "(($ac_try" in 6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6601 *) ac_try_echo=$ac_try;; 6602esac 6603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6604 (eval "$ac_link") 2>conftest.er1 6605 ac_status=$? 6606 grep -v '^ *+' conftest.er1 >conftest.err 6607 rm -f conftest.er1 6608 cat conftest.err >&5 6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6610 (exit $ac_status); } && { 6611 test -z "$ac_c_werror_flag" || 6612 test ! -s conftest.err 6613 } && test -s conftest$ac_exeext && 6614 $as_test_x conftest$ac_exeext; then 6615 LIBS=$ac_save_LIBS 6616# We can link X programs with no special library path. 6617ac_x_libraries= 6618else 6619 echo "$as_me: failed program was:" >&5 6620sed 's/^/| /' conftest.$ac_ext >&5 6621 6622 LIBS=$ac_save_LIBS 6623for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6624do 6625 # Don't even attempt the hair of trying to link an X program! 6626 for ac_extension in a so sl; do 6627 if test -r "$ac_dir/libX11.$ac_extension"; then 6628 ac_x_libraries=$ac_dir 6629 break 2 6630 fi 6631 done 6632done 6633fi 6634 6635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6636 conftest$ac_exeext conftest.$ac_ext 6637fi # $ac_x_libraries = no 6638 6639case $ac_x_includes,$ac_x_libraries in #( 6640 no,* | *,no | *\'*) 6641 # Didn't find X, or a directory has "'" in its name. 6642 ac_cv_have_x="have_x=no";; #( 6643 *) 6644 # Record where we found X for the cache. 6645 ac_cv_have_x="have_x=yes\ 6646 ac_x_includes='$ac_x_includes'\ 6647 ac_x_libraries='$ac_x_libraries'" 6648esac 6649fi 6650;; #( 6651 *) have_x=yes;; 6652 esac 6653 eval "$ac_cv_have_x" 6654fi # $with_x != no 6655 6656if test "$have_x" != yes; then 6657 { echo "$as_me:$LINENO: result: $have_x" >&5 6658echo "${ECHO_T}$have_x" >&6; } 6659 no_x=yes 6660else 6661 # If each of the values was on the command line, it overrides each guess. 6662 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6663 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6664 # Update the cache value to reflect the command line values. 6665 ac_cv_have_x="have_x=yes\ 6666 ac_x_includes='$x_includes'\ 6667 ac_x_libraries='$x_libraries'" 6668 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 6669echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 6670fi 6671 6672if test "$no_x" = yes; then 6673 # Not all programs may use this symbol, but it does not hurt to define it. 6674 6675cat >>confdefs.h <<\_ACEOF 6676#define X_DISPLAY_MISSING 1 6677_ACEOF 6678 6679 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 6680else 6681 if test -n "$x_includes"; then 6682 X_CFLAGS="$X_CFLAGS -I$x_includes" 6683 fi 6684 6685 # It would also be nice to do this for all -L options, not just this one. 6686 if test -n "$x_libraries"; then 6687 X_LIBS="$X_LIBS -L$x_libraries" 6688 # For Solaris; some versions of Sun CC require a space after -R and 6689 # others require no space. Words are not sufficient . . . . 6690 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 6691echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 6692 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 6693 ac_xsave_c_werror_flag=$ac_c_werror_flag 6694 ac_c_werror_flag=yes 6695 cat >conftest.$ac_ext <<_ACEOF 6696/* confdefs.h. */ 6697_ACEOF 6698cat confdefs.h >>conftest.$ac_ext 6699cat >>conftest.$ac_ext <<_ACEOF 6700/* end confdefs.h. */ 6701 6702int 6703main () 6704{ 6705 6706 ; 6707 return 0; 6708} 6709_ACEOF 6710rm -f conftest.$ac_objext conftest$ac_exeext 6711if { (ac_try="$ac_link" 6712case "(($ac_try" in 6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6714 *) ac_try_echo=$ac_try;; 6715esac 6716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6717 (eval "$ac_link") 2>conftest.er1 6718 ac_status=$? 6719 grep -v '^ *+' conftest.er1 >conftest.err 6720 rm -f conftest.er1 6721 cat conftest.err >&5 6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6723 (exit $ac_status); } && { 6724 test -z "$ac_c_werror_flag" || 6725 test ! -s conftest.err 6726 } && test -s conftest$ac_exeext && 6727 $as_test_x conftest$ac_exeext; then 6728 { echo "$as_me:$LINENO: result: no" >&5 6729echo "${ECHO_T}no" >&6; } 6730 X_LIBS="$X_LIBS -R$x_libraries" 6731else 6732 echo "$as_me: failed program was:" >&5 6733sed 's/^/| /' conftest.$ac_ext >&5 6734 6735 LIBS="$ac_xsave_LIBS -R $x_libraries" 6736 cat >conftest.$ac_ext <<_ACEOF 6737/* confdefs.h. */ 6738_ACEOF 6739cat confdefs.h >>conftest.$ac_ext 6740cat >>conftest.$ac_ext <<_ACEOF 6741/* end confdefs.h. */ 6742 6743int 6744main () 6745{ 6746 6747 ; 6748 return 0; 6749} 6750_ACEOF 6751rm -f conftest.$ac_objext conftest$ac_exeext 6752if { (ac_try="$ac_link" 6753case "(($ac_try" in 6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6755 *) ac_try_echo=$ac_try;; 6756esac 6757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6758 (eval "$ac_link") 2>conftest.er1 6759 ac_status=$? 6760 grep -v '^ *+' conftest.er1 >conftest.err 6761 rm -f conftest.er1 6762 cat conftest.err >&5 6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6764 (exit $ac_status); } && { 6765 test -z "$ac_c_werror_flag" || 6766 test ! -s conftest.err 6767 } && test -s conftest$ac_exeext && 6768 $as_test_x conftest$ac_exeext; then 6769 { echo "$as_me:$LINENO: result: yes" >&5 6770echo "${ECHO_T}yes" >&6; } 6771 X_LIBS="$X_LIBS -R $x_libraries" 6772else 6773 echo "$as_me: failed program was:" >&5 6774sed 's/^/| /' conftest.$ac_ext >&5 6775 6776 { echo "$as_me:$LINENO: result: neither works" >&5 6777echo "${ECHO_T}neither works" >&6; } 6778fi 6779 6780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6781 conftest$ac_exeext conftest.$ac_ext 6782fi 6783 6784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6785 conftest$ac_exeext conftest.$ac_ext 6786 ac_c_werror_flag=$ac_xsave_c_werror_flag 6787 LIBS=$ac_xsave_LIBS 6788 fi 6789 6790 # Check for system-dependent libraries X programs must link with. 6791 # Do this before checking for the system-independent R6 libraries 6792 # (-lICE), since we may need -lsocket or whatever for X linking. 6793 6794 if test "$ISC" = yes; then 6795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 6796 else 6797 # Martyn Johnson says this is needed for Ultrix, if the X 6798 # libraries were built with DECnet support. And Karl Berry says 6799 # the Alpha needs dnet_stub (dnet does not exist). 6800 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6801 cat >conftest.$ac_ext <<_ACEOF 6802/* confdefs.h. */ 6803_ACEOF 6804cat confdefs.h >>conftest.$ac_ext 6805cat >>conftest.$ac_ext <<_ACEOF 6806/* end confdefs.h. */ 6807 6808/* Override any GCC internal prototype to avoid an error. 6809 Use char because int might match the return type of a GCC 6810 builtin and then its argument prototype would still apply. */ 6811#ifdef __cplusplus 6812extern "C" 6813#endif 6814char XOpenDisplay (); 6815int 6816main () 6817{ 6818return XOpenDisplay (); 6819 ; 6820 return 0; 6821} 6822_ACEOF 6823rm -f conftest.$ac_objext conftest$ac_exeext 6824if { (ac_try="$ac_link" 6825case "(($ac_try" in 6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6827 *) ac_try_echo=$ac_try;; 6828esac 6829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6830 (eval "$ac_link") 2>conftest.er1 6831 ac_status=$? 6832 grep -v '^ *+' conftest.er1 >conftest.err 6833 rm -f conftest.er1 6834 cat conftest.err >&5 6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6836 (exit $ac_status); } && { 6837 test -z "$ac_c_werror_flag" || 6838 test ! -s conftest.err 6839 } && test -s conftest$ac_exeext && 6840 $as_test_x conftest$ac_exeext; then 6841 : 6842else 6843 echo "$as_me: failed program was:" >&5 6844sed 's/^/| /' conftest.$ac_ext >&5 6845 6846 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 6847echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 6848if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 6849 echo $ECHO_N "(cached) $ECHO_C" >&6 6850else 6851 ac_check_lib_save_LIBS=$LIBS 6852LIBS="-ldnet $LIBS" 6853cat >conftest.$ac_ext <<_ACEOF 6854/* confdefs.h. */ 6855_ACEOF 6856cat confdefs.h >>conftest.$ac_ext 6857cat >>conftest.$ac_ext <<_ACEOF 6858/* end confdefs.h. */ 6859 6860/* Override any GCC internal prototype to avoid an error. 6861 Use char because int might match the return type of a GCC 6862 builtin and then its argument prototype would still apply. */ 6863#ifdef __cplusplus 6864extern "C" 6865#endif 6866char dnet_ntoa (); 6867int 6868main () 6869{ 6870return dnet_ntoa (); 6871 ; 6872 return 0; 6873} 6874_ACEOF 6875rm -f conftest.$ac_objext conftest$ac_exeext 6876if { (ac_try="$ac_link" 6877case "(($ac_try" in 6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6879 *) ac_try_echo=$ac_try;; 6880esac 6881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6882 (eval "$ac_link") 2>conftest.er1 6883 ac_status=$? 6884 grep -v '^ *+' conftest.er1 >conftest.err 6885 rm -f conftest.er1 6886 cat conftest.err >&5 6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6888 (exit $ac_status); } && { 6889 test -z "$ac_c_werror_flag" || 6890 test ! -s conftest.err 6891 } && test -s conftest$ac_exeext && 6892 $as_test_x conftest$ac_exeext; then 6893 ac_cv_lib_dnet_dnet_ntoa=yes 6894else 6895 echo "$as_me: failed program was:" >&5 6896sed 's/^/| /' conftest.$ac_ext >&5 6897 6898 ac_cv_lib_dnet_dnet_ntoa=no 6899fi 6900 6901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6902 conftest$ac_exeext conftest.$ac_ext 6903LIBS=$ac_check_lib_save_LIBS 6904fi 6905{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6906echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 6907if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 6908 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6909fi 6910 6911 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6912 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 6913echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 6914if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 6915 echo $ECHO_N "(cached) $ECHO_C" >&6 6916else 6917 ac_check_lib_save_LIBS=$LIBS 6918LIBS="-ldnet_stub $LIBS" 6919cat >conftest.$ac_ext <<_ACEOF 6920/* confdefs.h. */ 6921_ACEOF 6922cat confdefs.h >>conftest.$ac_ext 6923cat >>conftest.$ac_ext <<_ACEOF 6924/* end confdefs.h. */ 6925 6926/* Override any GCC internal prototype to avoid an error. 6927 Use char because int might match the return type of a GCC 6928 builtin and then its argument prototype would still apply. */ 6929#ifdef __cplusplus 6930extern "C" 6931#endif 6932char dnet_ntoa (); 6933int 6934main () 6935{ 6936return dnet_ntoa (); 6937 ; 6938 return 0; 6939} 6940_ACEOF 6941rm -f conftest.$ac_objext conftest$ac_exeext 6942if { (ac_try="$ac_link" 6943case "(($ac_try" in 6944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6945 *) ac_try_echo=$ac_try;; 6946esac 6947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6948 (eval "$ac_link") 2>conftest.er1 6949 ac_status=$? 6950 grep -v '^ *+' conftest.er1 >conftest.err 6951 rm -f conftest.er1 6952 cat conftest.err >&5 6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6954 (exit $ac_status); } && { 6955 test -z "$ac_c_werror_flag" || 6956 test ! -s conftest.err 6957 } && test -s conftest$ac_exeext && 6958 $as_test_x conftest$ac_exeext; then 6959 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6960else 6961 echo "$as_me: failed program was:" >&5 6962sed 's/^/| /' conftest.$ac_ext >&5 6963 6964 ac_cv_lib_dnet_stub_dnet_ntoa=no 6965fi 6966 6967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6968 conftest$ac_exeext conftest.$ac_ext 6969LIBS=$ac_check_lib_save_LIBS 6970fi 6971{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6972echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 6973if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 6974 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6975fi 6976 6977 fi 6978fi 6979 6980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6981 conftest$ac_exeext conftest.$ac_ext 6982 LIBS="$ac_xsave_LIBS" 6983 6984 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6985 # to get the SysV transport functions. 6986 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6987 # needs -lnsl. 6988 # The nsl library prevents programs from opening the X display 6989 # on Irix 5.2, according to T.E. Dickey. 6990 # The functions gethostbyname, getservbyname, and inet_addr are 6991 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6992 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 6993echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 6994if test "${ac_cv_func_gethostbyname+set}" = set; then 6995 echo $ECHO_N "(cached) $ECHO_C" >&6 6996else 6997 cat >conftest.$ac_ext <<_ACEOF 6998/* confdefs.h. */ 6999_ACEOF 7000cat confdefs.h >>conftest.$ac_ext 7001cat >>conftest.$ac_ext <<_ACEOF 7002/* end confdefs.h. */ 7003/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 7004 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7005#define gethostbyname innocuous_gethostbyname 7006 7007/* System header to define __stub macros and hopefully few prototypes, 7008 which can conflict with char gethostbyname (); below. 7009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7010 <limits.h> exists even on freestanding compilers. */ 7011 7012#ifdef __STDC__ 7013# include <limits.h> 7014#else 7015# include <assert.h> 7016#endif 7017 7018#undef gethostbyname 7019 7020/* Override any GCC internal prototype to avoid an error. 7021 Use char because int might match the return type of a GCC 7022 builtin and then its argument prototype would still apply. */ 7023#ifdef __cplusplus 7024extern "C" 7025#endif 7026char gethostbyname (); 7027/* The GNU C library defines this for functions which it implements 7028 to always fail with ENOSYS. Some functions are actually named 7029 something starting with __ and the normal name is an alias. */ 7030#if defined __stub_gethostbyname || defined __stub___gethostbyname 7031choke me 7032#endif 7033 7034int 7035main () 7036{ 7037return gethostbyname (); 7038 ; 7039 return 0; 7040} 7041_ACEOF 7042rm -f conftest.$ac_objext conftest$ac_exeext 7043if { (ac_try="$ac_link" 7044case "(($ac_try" in 7045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7046 *) ac_try_echo=$ac_try;; 7047esac 7048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7049 (eval "$ac_link") 2>conftest.er1 7050 ac_status=$? 7051 grep -v '^ *+' conftest.er1 >conftest.err 7052 rm -f conftest.er1 7053 cat conftest.err >&5 7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7055 (exit $ac_status); } && { 7056 test -z "$ac_c_werror_flag" || 7057 test ! -s conftest.err 7058 } && test -s conftest$ac_exeext && 7059 $as_test_x conftest$ac_exeext; then 7060 ac_cv_func_gethostbyname=yes 7061else 7062 echo "$as_me: failed program was:" >&5 7063sed 's/^/| /' conftest.$ac_ext >&5 7064 7065 ac_cv_func_gethostbyname=no 7066fi 7067 7068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7069 conftest$ac_exeext conftest.$ac_ext 7070fi 7071{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 7072echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 7073 7074 if test $ac_cv_func_gethostbyname = no; then 7075 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 7076echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 7077if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 7078 echo $ECHO_N "(cached) $ECHO_C" >&6 7079else 7080 ac_check_lib_save_LIBS=$LIBS 7081LIBS="-lnsl $LIBS" 7082cat >conftest.$ac_ext <<_ACEOF 7083/* confdefs.h. */ 7084_ACEOF 7085cat confdefs.h >>conftest.$ac_ext 7086cat >>conftest.$ac_ext <<_ACEOF 7087/* end confdefs.h. */ 7088 7089/* Override any GCC internal prototype to avoid an error. 7090 Use char because int might match the return type of a GCC 7091 builtin and then its argument prototype would still apply. */ 7092#ifdef __cplusplus 7093extern "C" 7094#endif 7095char gethostbyname (); 7096int 7097main () 7098{ 7099return gethostbyname (); 7100 ; 7101 return 0; 7102} 7103_ACEOF 7104rm -f conftest.$ac_objext conftest$ac_exeext 7105if { (ac_try="$ac_link" 7106case "(($ac_try" in 7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7108 *) ac_try_echo=$ac_try;; 7109esac 7110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7111 (eval "$ac_link") 2>conftest.er1 7112 ac_status=$? 7113 grep -v '^ *+' conftest.er1 >conftest.err 7114 rm -f conftest.er1 7115 cat conftest.err >&5 7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7117 (exit $ac_status); } && { 7118 test -z "$ac_c_werror_flag" || 7119 test ! -s conftest.err 7120 } && test -s conftest$ac_exeext && 7121 $as_test_x conftest$ac_exeext; then 7122 ac_cv_lib_nsl_gethostbyname=yes 7123else 7124 echo "$as_me: failed program was:" >&5 7125sed 's/^/| /' conftest.$ac_ext >&5 7126 7127 ac_cv_lib_nsl_gethostbyname=no 7128fi 7129 7130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7131 conftest$ac_exeext conftest.$ac_ext 7132LIBS=$ac_check_lib_save_LIBS 7133fi 7134{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 7135echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 7136if test $ac_cv_lib_nsl_gethostbyname = yes; then 7137 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 7138fi 7139 7140 if test $ac_cv_lib_nsl_gethostbyname = no; then 7141 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 7142echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 7143if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 7144 echo $ECHO_N "(cached) $ECHO_C" >&6 7145else 7146 ac_check_lib_save_LIBS=$LIBS 7147LIBS="-lbsd $LIBS" 7148cat >conftest.$ac_ext <<_ACEOF 7149/* confdefs.h. */ 7150_ACEOF 7151cat confdefs.h >>conftest.$ac_ext 7152cat >>conftest.$ac_ext <<_ACEOF 7153/* end confdefs.h. */ 7154 7155/* Override any GCC internal prototype to avoid an error. 7156 Use char because int might match the return type of a GCC 7157 builtin and then its argument prototype would still apply. */ 7158#ifdef __cplusplus 7159extern "C" 7160#endif 7161char gethostbyname (); 7162int 7163main () 7164{ 7165return gethostbyname (); 7166 ; 7167 return 0; 7168} 7169_ACEOF 7170rm -f conftest.$ac_objext conftest$ac_exeext 7171if { (ac_try="$ac_link" 7172case "(($ac_try" in 7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7174 *) ac_try_echo=$ac_try;; 7175esac 7176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7177 (eval "$ac_link") 2>conftest.er1 7178 ac_status=$? 7179 grep -v '^ *+' conftest.er1 >conftest.err 7180 rm -f conftest.er1 7181 cat conftest.err >&5 7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7183 (exit $ac_status); } && { 7184 test -z "$ac_c_werror_flag" || 7185 test ! -s conftest.err 7186 } && test -s conftest$ac_exeext && 7187 $as_test_x conftest$ac_exeext; then 7188 ac_cv_lib_bsd_gethostbyname=yes 7189else 7190 echo "$as_me: failed program was:" >&5 7191sed 's/^/| /' conftest.$ac_ext >&5 7192 7193 ac_cv_lib_bsd_gethostbyname=no 7194fi 7195 7196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7197 conftest$ac_exeext conftest.$ac_ext 7198LIBS=$ac_check_lib_save_LIBS 7199fi 7200{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 7201echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 7202if test $ac_cv_lib_bsd_gethostbyname = yes; then 7203 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 7204fi 7205 7206 fi 7207 fi 7208 7209 # lieder@skyler.mavd.honeywell.com says without -lsocket, 7210 # socket/setsockopt and other routines are undefined under SCO ODT 7211 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 7212 # on later versions), says Simon Leinen: it contains gethostby* 7213 # variants that don't use the name server (or something). -lsocket 7214 # must be given before -lnsl if both are needed. We assume that 7215 # if connect needs -lnsl, so does gethostbyname. 7216 { echo "$as_me:$LINENO: checking for connect" >&5 7217echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 7218if test "${ac_cv_func_connect+set}" = set; then 7219 echo $ECHO_N "(cached) $ECHO_C" >&6 7220else 7221 cat >conftest.$ac_ext <<_ACEOF 7222/* confdefs.h. */ 7223_ACEOF 7224cat confdefs.h >>conftest.$ac_ext 7225cat >>conftest.$ac_ext <<_ACEOF 7226/* end confdefs.h. */ 7227/* Define connect to an innocuous variant, in case <limits.h> declares connect. 7228 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7229#define connect innocuous_connect 7230 7231/* System header to define __stub macros and hopefully few prototypes, 7232 which can conflict with char connect (); below. 7233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7234 <limits.h> exists even on freestanding compilers. */ 7235 7236#ifdef __STDC__ 7237# include <limits.h> 7238#else 7239# include <assert.h> 7240#endif 7241 7242#undef connect 7243 7244/* Override any GCC internal prototype to avoid an error. 7245 Use char because int might match the return type of a GCC 7246 builtin and then its argument prototype would still apply. */ 7247#ifdef __cplusplus 7248extern "C" 7249#endif 7250char connect (); 7251/* The GNU C library defines this for functions which it implements 7252 to always fail with ENOSYS. Some functions are actually named 7253 something starting with __ and the normal name is an alias. */ 7254#if defined __stub_connect || defined __stub___connect 7255choke me 7256#endif 7257 7258int 7259main () 7260{ 7261return connect (); 7262 ; 7263 return 0; 7264} 7265_ACEOF 7266rm -f conftest.$ac_objext conftest$ac_exeext 7267if { (ac_try="$ac_link" 7268case "(($ac_try" in 7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7270 *) ac_try_echo=$ac_try;; 7271esac 7272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7273 (eval "$ac_link") 2>conftest.er1 7274 ac_status=$? 7275 grep -v '^ *+' conftest.er1 >conftest.err 7276 rm -f conftest.er1 7277 cat conftest.err >&5 7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7279 (exit $ac_status); } && { 7280 test -z "$ac_c_werror_flag" || 7281 test ! -s conftest.err 7282 } && test -s conftest$ac_exeext && 7283 $as_test_x conftest$ac_exeext; then 7284 ac_cv_func_connect=yes 7285else 7286 echo "$as_me: failed program was:" >&5 7287sed 's/^/| /' conftest.$ac_ext >&5 7288 7289 ac_cv_func_connect=no 7290fi 7291 7292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7293 conftest$ac_exeext conftest.$ac_ext 7294fi 7295{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 7296echo "${ECHO_T}$ac_cv_func_connect" >&6; } 7297 7298 if test $ac_cv_func_connect = no; then 7299 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 7300echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 7301if test "${ac_cv_lib_socket_connect+set}" = set; then 7302 echo $ECHO_N "(cached) $ECHO_C" >&6 7303else 7304 ac_check_lib_save_LIBS=$LIBS 7305LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 7306cat >conftest.$ac_ext <<_ACEOF 7307/* confdefs.h. */ 7308_ACEOF 7309cat confdefs.h >>conftest.$ac_ext 7310cat >>conftest.$ac_ext <<_ACEOF 7311/* end confdefs.h. */ 7312 7313/* Override any GCC internal prototype to avoid an error. 7314 Use char because int might match the return type of a GCC 7315 builtin and then its argument prototype would still apply. */ 7316#ifdef __cplusplus 7317extern "C" 7318#endif 7319char connect (); 7320int 7321main () 7322{ 7323return connect (); 7324 ; 7325 return 0; 7326} 7327_ACEOF 7328rm -f conftest.$ac_objext conftest$ac_exeext 7329if { (ac_try="$ac_link" 7330case "(($ac_try" in 7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7332 *) ac_try_echo=$ac_try;; 7333esac 7334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7335 (eval "$ac_link") 2>conftest.er1 7336 ac_status=$? 7337 grep -v '^ *+' conftest.er1 >conftest.err 7338 rm -f conftest.er1 7339 cat conftest.err >&5 7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7341 (exit $ac_status); } && { 7342 test -z "$ac_c_werror_flag" || 7343 test ! -s conftest.err 7344 } && test -s conftest$ac_exeext && 7345 $as_test_x conftest$ac_exeext; then 7346 ac_cv_lib_socket_connect=yes 7347else 7348 echo "$as_me: failed program was:" >&5 7349sed 's/^/| /' conftest.$ac_ext >&5 7350 7351 ac_cv_lib_socket_connect=no 7352fi 7353 7354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7355 conftest$ac_exeext conftest.$ac_ext 7356LIBS=$ac_check_lib_save_LIBS 7357fi 7358{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 7359echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 7360if test $ac_cv_lib_socket_connect = yes; then 7361 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 7362fi 7363 7364 fi 7365 7366 # Guillermo Gomez says -lposix is necessary on A/UX. 7367 { echo "$as_me:$LINENO: checking for remove" >&5 7368echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 7369if test "${ac_cv_func_remove+set}" = set; then 7370 echo $ECHO_N "(cached) $ECHO_C" >&6 7371else 7372 cat >conftest.$ac_ext <<_ACEOF 7373/* confdefs.h. */ 7374_ACEOF 7375cat confdefs.h >>conftest.$ac_ext 7376cat >>conftest.$ac_ext <<_ACEOF 7377/* end confdefs.h. */ 7378/* Define remove to an innocuous variant, in case <limits.h> declares remove. 7379 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7380#define remove innocuous_remove 7381 7382/* System header to define __stub macros and hopefully few prototypes, 7383 which can conflict with char remove (); below. 7384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7385 <limits.h> exists even on freestanding compilers. */ 7386 7387#ifdef __STDC__ 7388# include <limits.h> 7389#else 7390# include <assert.h> 7391#endif 7392 7393#undef remove 7394 7395/* Override any GCC internal prototype to avoid an error. 7396 Use char because int might match the return type of a GCC 7397 builtin and then its argument prototype would still apply. */ 7398#ifdef __cplusplus 7399extern "C" 7400#endif 7401char remove (); 7402/* The GNU C library defines this for functions which it implements 7403 to always fail with ENOSYS. Some functions are actually named 7404 something starting with __ and the normal name is an alias. */ 7405#if defined __stub_remove || defined __stub___remove 7406choke me 7407#endif 7408 7409int 7410main () 7411{ 7412return remove (); 7413 ; 7414 return 0; 7415} 7416_ACEOF 7417rm -f conftest.$ac_objext conftest$ac_exeext 7418if { (ac_try="$ac_link" 7419case "(($ac_try" in 7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7421 *) ac_try_echo=$ac_try;; 7422esac 7423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7424 (eval "$ac_link") 2>conftest.er1 7425 ac_status=$? 7426 grep -v '^ *+' conftest.er1 >conftest.err 7427 rm -f conftest.er1 7428 cat conftest.err >&5 7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7430 (exit $ac_status); } && { 7431 test -z "$ac_c_werror_flag" || 7432 test ! -s conftest.err 7433 } && test -s conftest$ac_exeext && 7434 $as_test_x conftest$ac_exeext; then 7435 ac_cv_func_remove=yes 7436else 7437 echo "$as_me: failed program was:" >&5 7438sed 's/^/| /' conftest.$ac_ext >&5 7439 7440 ac_cv_func_remove=no 7441fi 7442 7443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7444 conftest$ac_exeext conftest.$ac_ext 7445fi 7446{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 7447echo "${ECHO_T}$ac_cv_func_remove" >&6; } 7448 7449 if test $ac_cv_func_remove = no; then 7450 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 7451echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 7452if test "${ac_cv_lib_posix_remove+set}" = set; then 7453 echo $ECHO_N "(cached) $ECHO_C" >&6 7454else 7455 ac_check_lib_save_LIBS=$LIBS 7456LIBS="-lposix $LIBS" 7457cat >conftest.$ac_ext <<_ACEOF 7458/* confdefs.h. */ 7459_ACEOF 7460cat confdefs.h >>conftest.$ac_ext 7461cat >>conftest.$ac_ext <<_ACEOF 7462/* end confdefs.h. */ 7463 7464/* Override any GCC internal prototype to avoid an error. 7465 Use char because int might match the return type of a GCC 7466 builtin and then its argument prototype would still apply. */ 7467#ifdef __cplusplus 7468extern "C" 7469#endif 7470char remove (); 7471int 7472main () 7473{ 7474return remove (); 7475 ; 7476 return 0; 7477} 7478_ACEOF 7479rm -f conftest.$ac_objext conftest$ac_exeext 7480if { (ac_try="$ac_link" 7481case "(($ac_try" in 7482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7483 *) ac_try_echo=$ac_try;; 7484esac 7485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7486 (eval "$ac_link") 2>conftest.er1 7487 ac_status=$? 7488 grep -v '^ *+' conftest.er1 >conftest.err 7489 rm -f conftest.er1 7490 cat conftest.err >&5 7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7492 (exit $ac_status); } && { 7493 test -z "$ac_c_werror_flag" || 7494 test ! -s conftest.err 7495 } && test -s conftest$ac_exeext && 7496 $as_test_x conftest$ac_exeext; then 7497 ac_cv_lib_posix_remove=yes 7498else 7499 echo "$as_me: failed program was:" >&5 7500sed 's/^/| /' conftest.$ac_ext >&5 7501 7502 ac_cv_lib_posix_remove=no 7503fi 7504 7505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7506 conftest$ac_exeext conftest.$ac_ext 7507LIBS=$ac_check_lib_save_LIBS 7508fi 7509{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 7510echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 7511if test $ac_cv_lib_posix_remove = yes; then 7512 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 7513fi 7514 7515 fi 7516 7517 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 7518 { echo "$as_me:$LINENO: checking for shmat" >&5 7519echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 7520if test "${ac_cv_func_shmat+set}" = set; then 7521 echo $ECHO_N "(cached) $ECHO_C" >&6 7522else 7523 cat >conftest.$ac_ext <<_ACEOF 7524/* confdefs.h. */ 7525_ACEOF 7526cat confdefs.h >>conftest.$ac_ext 7527cat >>conftest.$ac_ext <<_ACEOF 7528/* end confdefs.h. */ 7529/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 7530 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7531#define shmat innocuous_shmat 7532 7533/* System header to define __stub macros and hopefully few prototypes, 7534 which can conflict with char shmat (); below. 7535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7536 <limits.h> exists even on freestanding compilers. */ 7537 7538#ifdef __STDC__ 7539# include <limits.h> 7540#else 7541# include <assert.h> 7542#endif 7543 7544#undef shmat 7545 7546/* Override any GCC internal prototype to avoid an error. 7547 Use char because int might match the return type of a GCC 7548 builtin and then its argument prototype would still apply. */ 7549#ifdef __cplusplus 7550extern "C" 7551#endif 7552char shmat (); 7553/* The GNU C library defines this for functions which it implements 7554 to always fail with ENOSYS. Some functions are actually named 7555 something starting with __ and the normal name is an alias. */ 7556#if defined __stub_shmat || defined __stub___shmat 7557choke me 7558#endif 7559 7560int 7561main () 7562{ 7563return shmat (); 7564 ; 7565 return 0; 7566} 7567_ACEOF 7568rm -f conftest.$ac_objext conftest$ac_exeext 7569if { (ac_try="$ac_link" 7570case "(($ac_try" in 7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7572 *) ac_try_echo=$ac_try;; 7573esac 7574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7575 (eval "$ac_link") 2>conftest.er1 7576 ac_status=$? 7577 grep -v '^ *+' conftest.er1 >conftest.err 7578 rm -f conftest.er1 7579 cat conftest.err >&5 7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7581 (exit $ac_status); } && { 7582 test -z "$ac_c_werror_flag" || 7583 test ! -s conftest.err 7584 } && test -s conftest$ac_exeext && 7585 $as_test_x conftest$ac_exeext; then 7586 ac_cv_func_shmat=yes 7587else 7588 echo "$as_me: failed program was:" >&5 7589sed 's/^/| /' conftest.$ac_ext >&5 7590 7591 ac_cv_func_shmat=no 7592fi 7593 7594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7595 conftest$ac_exeext conftest.$ac_ext 7596fi 7597{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 7598echo "${ECHO_T}$ac_cv_func_shmat" >&6; } 7599 7600 if test $ac_cv_func_shmat = no; then 7601 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 7602echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 7603if test "${ac_cv_lib_ipc_shmat+set}" = set; then 7604 echo $ECHO_N "(cached) $ECHO_C" >&6 7605else 7606 ac_check_lib_save_LIBS=$LIBS 7607LIBS="-lipc $LIBS" 7608cat >conftest.$ac_ext <<_ACEOF 7609/* confdefs.h. */ 7610_ACEOF 7611cat confdefs.h >>conftest.$ac_ext 7612cat >>conftest.$ac_ext <<_ACEOF 7613/* end confdefs.h. */ 7614 7615/* Override any GCC internal prototype to avoid an error. 7616 Use char because int might match the return type of a GCC 7617 builtin and then its argument prototype would still apply. */ 7618#ifdef __cplusplus 7619extern "C" 7620#endif 7621char shmat (); 7622int 7623main () 7624{ 7625return shmat (); 7626 ; 7627 return 0; 7628} 7629_ACEOF 7630rm -f conftest.$ac_objext conftest$ac_exeext 7631if { (ac_try="$ac_link" 7632case "(($ac_try" in 7633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7634 *) ac_try_echo=$ac_try;; 7635esac 7636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7637 (eval "$ac_link") 2>conftest.er1 7638 ac_status=$? 7639 grep -v '^ *+' conftest.er1 >conftest.err 7640 rm -f conftest.er1 7641 cat conftest.err >&5 7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7643 (exit $ac_status); } && { 7644 test -z "$ac_c_werror_flag" || 7645 test ! -s conftest.err 7646 } && test -s conftest$ac_exeext && 7647 $as_test_x conftest$ac_exeext; then 7648 ac_cv_lib_ipc_shmat=yes 7649else 7650 echo "$as_me: failed program was:" >&5 7651sed 's/^/| /' conftest.$ac_ext >&5 7652 7653 ac_cv_lib_ipc_shmat=no 7654fi 7655 7656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7657 conftest$ac_exeext conftest.$ac_ext 7658LIBS=$ac_check_lib_save_LIBS 7659fi 7660{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 7661echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 7662if test $ac_cv_lib_ipc_shmat = yes; then 7663 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 7664fi 7665 7666 fi 7667 fi 7668 7669 # Check for libraries that X11R6 Xt/Xaw programs need. 7670 ac_save_LDFLAGS=$LDFLAGS 7671 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 7672 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 7673 # check for ICE first), but we must link in the order -lSM -lICE or 7674 # we get undefined symbols. So assume we have SM if we have ICE. 7675 # These have to be linked with before -lX11, unlike the other 7676 # libraries we check for below, so use a different variable. 7677 # John Interrante, Karl Berry 7678 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 7679echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 7680if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 7681 echo $ECHO_N "(cached) $ECHO_C" >&6 7682else 7683 ac_check_lib_save_LIBS=$LIBS 7684LIBS="-lICE $X_EXTRA_LIBS $LIBS" 7685cat >conftest.$ac_ext <<_ACEOF 7686/* confdefs.h. */ 7687_ACEOF 7688cat confdefs.h >>conftest.$ac_ext 7689cat >>conftest.$ac_ext <<_ACEOF 7690/* end confdefs.h. */ 7691 7692/* Override any GCC internal prototype to avoid an error. 7693 Use char because int might match the return type of a GCC 7694 builtin and then its argument prototype would still apply. */ 7695#ifdef __cplusplus 7696extern "C" 7697#endif 7698char IceConnectionNumber (); 7699int 7700main () 7701{ 7702return IceConnectionNumber (); 7703 ; 7704 return 0; 7705} 7706_ACEOF 7707rm -f conftest.$ac_objext conftest$ac_exeext 7708if { (ac_try="$ac_link" 7709case "(($ac_try" in 7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7711 *) ac_try_echo=$ac_try;; 7712esac 7713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7714 (eval "$ac_link") 2>conftest.er1 7715 ac_status=$? 7716 grep -v '^ *+' conftest.er1 >conftest.err 7717 rm -f conftest.er1 7718 cat conftest.err >&5 7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7720 (exit $ac_status); } && { 7721 test -z "$ac_c_werror_flag" || 7722 test ! -s conftest.err 7723 } && test -s conftest$ac_exeext && 7724 $as_test_x conftest$ac_exeext; then 7725 ac_cv_lib_ICE_IceConnectionNumber=yes 7726else 7727 echo "$as_me: failed program was:" >&5 7728sed 's/^/| /' conftest.$ac_ext >&5 7729 7730 ac_cv_lib_ICE_IceConnectionNumber=no 7731fi 7732 7733rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7734 conftest$ac_exeext conftest.$ac_ext 7735LIBS=$ac_check_lib_save_LIBS 7736fi 7737{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 7738echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 7739if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 7740 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 7741fi 7742 7743 LDFLAGS=$ac_save_LDFLAGS 7744 7745fi 7746 7747 7748# Check whether --enable-floppyd was given. 7749if test "${enable_floppyd+set}" = set; then 7750 enableval=$enable_floppyd; if test x$enableval != x; then 7751 use_floppyd=$enableval 7752fi 7753fi 7754 7755 7756 7757{ echo "$as_me:$LINENO: checking for main in -lsocket" >&5 7758echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; } 7759if test "${ac_cv_lib_socket_main+set}" = set; then 7760 echo $ECHO_N "(cached) $ECHO_C" >&6 7761else 7762 ac_check_lib_save_LIBS=$LIBS 7763LIBS="-lsocket $LIBS" 7764cat >conftest.$ac_ext <<_ACEOF 7765/* confdefs.h. */ 7766_ACEOF 7767cat confdefs.h >>conftest.$ac_ext 7768cat >>conftest.$ac_ext <<_ACEOF 7769/* end confdefs.h. */ 7770 7771 7772int 7773main () 7774{ 7775return main (); 7776 ; 7777 return 0; 7778} 7779_ACEOF 7780rm -f conftest.$ac_objext conftest$ac_exeext 7781if { (ac_try="$ac_link" 7782case "(($ac_try" in 7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7784 *) ac_try_echo=$ac_try;; 7785esac 7786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7787 (eval "$ac_link") 2>conftest.er1 7788 ac_status=$? 7789 grep -v '^ *+' conftest.er1 >conftest.err 7790 rm -f conftest.er1 7791 cat conftest.err >&5 7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7793 (exit $ac_status); } && { 7794 test -z "$ac_c_werror_flag" || 7795 test ! -s conftest.err 7796 } && test -s conftest$ac_exeext && 7797 $as_test_x conftest$ac_exeext; then 7798 ac_cv_lib_socket_main=yes 7799else 7800 echo "$as_me: failed program was:" >&5 7801sed 's/^/| /' conftest.$ac_ext >&5 7802 7803 ac_cv_lib_socket_main=no 7804fi 7805 7806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7807 conftest$ac_exeext conftest.$ac_ext 7808LIBS=$ac_check_lib_save_LIBS 7809fi 7810{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5 7811echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; } 7812if test $ac_cv_lib_socket_main = yes; then 7813 cat >>confdefs.h <<_ACEOF 7814#define HAVE_LIBSOCKET 1 7815_ACEOF 7816 7817 LIBS="-lsocket $LIBS" 7818 7819fi 7820 7821 7822{ echo "$as_me:$LINENO: checking for main in -lnsl" >&5 7823echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; } 7824if test "${ac_cv_lib_nsl_main+set}" = set; then 7825 echo $ECHO_N "(cached) $ECHO_C" >&6 7826else 7827 ac_check_lib_save_LIBS=$LIBS 7828LIBS="-lnsl $LIBS" 7829cat >conftest.$ac_ext <<_ACEOF 7830/* confdefs.h. */ 7831_ACEOF 7832cat confdefs.h >>conftest.$ac_ext 7833cat >>conftest.$ac_ext <<_ACEOF 7834/* end confdefs.h. */ 7835 7836 7837int 7838main () 7839{ 7840return main (); 7841 ; 7842 return 0; 7843} 7844_ACEOF 7845rm -f conftest.$ac_objext conftest$ac_exeext 7846if { (ac_try="$ac_link" 7847case "(($ac_try" in 7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7849 *) ac_try_echo=$ac_try;; 7850esac 7851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7852 (eval "$ac_link") 2>conftest.er1 7853 ac_status=$? 7854 grep -v '^ *+' conftest.er1 >conftest.err 7855 rm -f conftest.er1 7856 cat conftest.err >&5 7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7858 (exit $ac_status); } && { 7859 test -z "$ac_c_werror_flag" || 7860 test ! -s conftest.err 7861 } && test -s conftest$ac_exeext && 7862 $as_test_x conftest$ac_exeext; then 7863 ac_cv_lib_nsl_main=yes 7864else 7865 echo "$as_me: failed program was:" >&5 7866sed 's/^/| /' conftest.$ac_ext >&5 7867 7868 ac_cv_lib_nsl_main=no 7869fi 7870 7871rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7872 conftest$ac_exeext conftest.$ac_ext 7873LIBS=$ac_check_lib_save_LIBS 7874fi 7875{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5 7876echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; } 7877if test $ac_cv_lib_nsl_main = yes; then 7878 cat >>confdefs.h <<_ACEOF 7879#define HAVE_LIBNSL 1 7880_ACEOF 7881 7882 LIBS="-lnsl $LIBS" 7883 7884fi 7885 7886 7887{ echo "$as_me:$LINENO: checking for main in -lbsd" >&5 7888echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6; } 7889if test "${ac_cv_lib_bsd_main+set}" = set; then 7890 echo $ECHO_N "(cached) $ECHO_C" >&6 7891else 7892 ac_check_lib_save_LIBS=$LIBS 7893LIBS="-lbsd $LIBS" 7894cat >conftest.$ac_ext <<_ACEOF 7895/* confdefs.h. */ 7896_ACEOF 7897cat confdefs.h >>conftest.$ac_ext 7898cat >>conftest.$ac_ext <<_ACEOF 7899/* end confdefs.h. */ 7900 7901 7902int 7903main () 7904{ 7905return main (); 7906 ; 7907 return 0; 7908} 7909_ACEOF 7910rm -f conftest.$ac_objext conftest$ac_exeext 7911if { (ac_try="$ac_link" 7912case "(($ac_try" in 7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7914 *) ac_try_echo=$ac_try;; 7915esac 7916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7917 (eval "$ac_link") 2>conftest.er1 7918 ac_status=$? 7919 grep -v '^ *+' conftest.er1 >conftest.err 7920 rm -f conftest.er1 7921 cat conftest.err >&5 7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7923 (exit $ac_status); } && { 7924 test -z "$ac_c_werror_flag" || 7925 test ! -s conftest.err 7926 } && test -s conftest$ac_exeext && 7927 $as_test_x conftest$ac_exeext; then 7928 ac_cv_lib_bsd_main=yes 7929else 7930 echo "$as_me: failed program was:" >&5 7931sed 's/^/| /' conftest.$ac_ext >&5 7932 7933 ac_cv_lib_bsd_main=no 7934fi 7935 7936rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7937 conftest$ac_exeext conftest.$ac_ext 7938LIBS=$ac_check_lib_save_LIBS 7939fi 7940{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5 7941echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6; } 7942if test $ac_cv_lib_bsd_main = yes; then 7943 cat >>confdefs.h <<_ACEOF 7944#define HAVE_LIBBSD 1 7945_ACEOF 7946 7947 LIBS="-lbsd $LIBS" 7948 7949fi 7950 7951 7952 7953 7954for ac_header in sys/socket.h arpa/inet.h netdb.h 7955do 7956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7958 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7961 echo $ECHO_N "(cached) $ECHO_C" >&6 7962fi 7963ac_res=`eval echo '${'$as_ac_Header'}'` 7964 { echo "$as_me:$LINENO: result: $ac_res" >&5 7965echo "${ECHO_T}$ac_res" >&6; } 7966else 7967 # Is the header compilable? 7968{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7970cat >conftest.$ac_ext <<_ACEOF 7971/* confdefs.h. */ 7972_ACEOF 7973cat confdefs.h >>conftest.$ac_ext 7974cat >>conftest.$ac_ext <<_ACEOF 7975/* end confdefs.h. */ 7976$ac_includes_default 7977#include <$ac_header> 7978_ACEOF 7979rm -f conftest.$ac_objext 7980if { (ac_try="$ac_compile" 7981case "(($ac_try" in 7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7983 *) ac_try_echo=$ac_try;; 7984esac 7985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7986 (eval "$ac_compile") 2>conftest.er1 7987 ac_status=$? 7988 grep -v '^ *+' conftest.er1 >conftest.err 7989 rm -f conftest.er1 7990 cat conftest.err >&5 7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7992 (exit $ac_status); } && { 7993 test -z "$ac_c_werror_flag" || 7994 test ! -s conftest.err 7995 } && test -s conftest.$ac_objext; then 7996 ac_header_compiler=yes 7997else 7998 echo "$as_me: failed program was:" >&5 7999sed 's/^/| /' conftest.$ac_ext >&5 8000 8001 ac_header_compiler=no 8002fi 8003 8004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8005{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8006echo "${ECHO_T}$ac_header_compiler" >&6; } 8007 8008# Is the header present? 8009{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8011cat >conftest.$ac_ext <<_ACEOF 8012/* confdefs.h. */ 8013_ACEOF 8014cat confdefs.h >>conftest.$ac_ext 8015cat >>conftest.$ac_ext <<_ACEOF 8016/* end confdefs.h. */ 8017#include <$ac_header> 8018_ACEOF 8019if { (ac_try="$ac_cpp conftest.$ac_ext" 8020case "(($ac_try" in 8021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8022 *) ac_try_echo=$ac_try;; 8023esac 8024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8026 ac_status=$? 8027 grep -v '^ *+' conftest.er1 >conftest.err 8028 rm -f conftest.er1 8029 cat conftest.err >&5 8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8031 (exit $ac_status); } >/dev/null && { 8032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8033 test ! -s conftest.err 8034 }; then 8035 ac_header_preproc=yes 8036else 8037 echo "$as_me: failed program was:" >&5 8038sed 's/^/| /' conftest.$ac_ext >&5 8039 8040 ac_header_preproc=no 8041fi 8042 8043rm -f conftest.err conftest.$ac_ext 8044{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8045echo "${ECHO_T}$ac_header_preproc" >&6; } 8046 8047# So? What about this header? 8048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8049 yes:no: ) 8050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8054 ac_header_preproc=yes 8055 ;; 8056 no:yes:* ) 8057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8060echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8064echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8069 8070 ;; 8071esac 8072{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8075 echo $ECHO_N "(cached) $ECHO_C" >&6 8076else 8077 eval "$as_ac_Header=\$ac_header_preproc" 8078fi 8079ac_res=`eval echo '${'$as_ac_Header'}'` 8080 { echo "$as_me:$LINENO: result: $ac_res" >&5 8081echo "${ECHO_T}$ac_res" >&6; } 8082 8083fi 8084if test `eval echo '${'$as_ac_Header'}'` = yes; then 8085 cat >>confdefs.h <<_ACEOF 8086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8087_ACEOF 8088 8089fi 8090 8091done 8092 8093 8094if test X$use_floppyd = X -a X$no_x = X ; then 8095 use_floppyd="yes" 8096fi 8097 8098if test X$use_floppyd = Xyes; then 8099 if test X$no_x = Xyes ; then 8100 echo "Floppyd needs X support" >&2 8101 echo "To compile without floppyd, use ./configure --disable-floppyd" >&2 8102 exit 1 8103 fi 8104 FLOPPYD="floppyd floppyd_installtest" 8105 BINFLOPPYD="\$(DESTDIR)\$(bindir)/floppyd \$(DESTDIR)\$(bindir)/floppyd_installtest" 8106 8107cat >>confdefs.h <<\_ACEOF 8108#define USE_FLOPPYD 1 8109_ACEOF 8110 8111else 8112 FLOPPYD= 8113 BINFLOPPYD= 8114fi 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125ac_config_files="$ac_config_files Makefile" 8126 8127cat >confcache <<\_ACEOF 8128# This file is a shell script that caches the results of configure 8129# tests run on this system so they can be shared between configure 8130# scripts and configure runs, see configure's option --config-cache. 8131# It is not useful on other systems. If it contains results you don't 8132# want to keep, you may remove or edit it. 8133# 8134# config.status only pays attention to the cache file if you give it 8135# the --recheck option to rerun configure. 8136# 8137# `ac_cv_env_foo' variables (set or unset) will be overridden when 8138# loading this file, other *unset* `ac_cv_foo' will be assigned the 8139# following values. 8140 8141_ACEOF 8142 8143# The following way of writing the cache mishandles newlines in values, 8144# but we know of no workaround that is simple, portable, and efficient. 8145# So, we kill variables containing newlines. 8146# Ultrix sh set writes to stderr and can't be redirected directly, 8147# and sets the high bit in the cache file unless we assign to the vars. 8148( 8149 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8150 eval ac_val=\$$ac_var 8151 case $ac_val in #( 8152 *${as_nl}*) 8153 case $ac_var in #( 8154 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 8155echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 8156 esac 8157 case $ac_var in #( 8158 _ | IFS | as_nl) ;; #( 8159 *) $as_unset $ac_var ;; 8160 esac ;; 8161 esac 8162 done 8163 8164 (set) 2>&1 | 8165 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8166 *${as_nl}ac_space=\ *) 8167 # `set' does not quote correctly, so add quotes (double-quote 8168 # substitution turns \\\\ into \\, and sed turns \\ into \). 8169 sed -n \ 8170 "s/'/'\\\\''/g; 8171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8172 ;; #( 8173 *) 8174 # `set' quotes correctly as required by POSIX, so do not add quotes. 8175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8176 ;; 8177 esac | 8178 sort 8179) | 8180 sed ' 8181 /^ac_cv_env_/b end 8182 t clear 8183 :clear 8184 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8185 t end 8186 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8187 :end' >>confcache 8188if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8189 if test -w "$cache_file"; then 8190 test "x$cache_file" != "x/dev/null" && 8191 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 8192echo "$as_me: updating cache $cache_file" >&6;} 8193 cat confcache >$cache_file 8194 else 8195 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 8196echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8197 fi 8198fi 8199rm -f confcache 8200 8201test "x$prefix" = xNONE && prefix=$ac_default_prefix 8202# Let make expand exec_prefix. 8203test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8204 8205DEFS=-DHAVE_CONFIG_H 8206 8207ac_libobjs= 8208ac_ltlibobjs= 8209for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8210 # 1. Remove the extension, and $U if already installed. 8211 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8212 ac_i=`echo "$ac_i" | sed "$ac_script"` 8213 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8214 # will be set to the directory where LIBOBJS objects are built. 8215 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8216 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 8217done 8218LIBOBJS=$ac_libobjs 8219 8220LTLIBOBJS=$ac_ltlibobjs 8221 8222 8223 8224: ${CONFIG_STATUS=./config.status} 8225ac_clean_files_save=$ac_clean_files 8226ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8227{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8228echo "$as_me: creating $CONFIG_STATUS" >&6;} 8229cat >$CONFIG_STATUS <<_ACEOF 8230#! $SHELL 8231# Generated by $as_me. 8232# Run this file to recreate the current configuration. 8233# Compiler output produced by configure, useful for debugging 8234# configure, is in config.log if it exists. 8235 8236debug=false 8237ac_cs_recheck=false 8238ac_cs_silent=false 8239SHELL=\${CONFIG_SHELL-$SHELL} 8240_ACEOF 8241 8242cat >>$CONFIG_STATUS <<\_ACEOF 8243## --------------------- ## 8244## M4sh Initialization. ## 8245## --------------------- ## 8246 8247# Be more Bourne compatible 8248DUALCASE=1; export DUALCASE # for MKS sh 8249if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8250 emulate sh 8251 NULLCMD=: 8252 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8253 # is contrary to our usage. Disable this feature. 8254 alias -g '${1+"$@"}'='"$@"' 8255 setopt NO_GLOB_SUBST 8256else 8257 case `(set -o) 2>/dev/null` in 8258 *posix*) set -o posix ;; 8259esac 8260 8261fi 8262 8263 8264 8265 8266# PATH needs CR 8267# Avoid depending upon Character Ranges. 8268as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8269as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8270as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8271as_cr_digits='0123456789' 8272as_cr_alnum=$as_cr_Letters$as_cr_digits 8273 8274# The user is always right. 8275if test "${PATH_SEPARATOR+set}" != set; then 8276 echo "#! /bin/sh" >conf$$.sh 8277 echo "exit 0" >>conf$$.sh 8278 chmod +x conf$$.sh 8279 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8280 PATH_SEPARATOR=';' 8281 else 8282 PATH_SEPARATOR=: 8283 fi 8284 rm -f conf$$.sh 8285fi 8286 8287# Support unset when possible. 8288if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8289 as_unset=unset 8290else 8291 as_unset=false 8292fi 8293 8294 8295# IFS 8296# We need space, tab and new line, in precisely that order. Quoting is 8297# there to prevent editors from complaining about space-tab. 8298# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8299# splitting by setting IFS to empty value.) 8300as_nl=' 8301' 8302IFS=" "" $as_nl" 8303 8304# Find who we are. Look in the path if we contain no directory separator. 8305case $0 in 8306 *[\\/]* ) as_myself=$0 ;; 8307 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8308for as_dir in $PATH 8309do 8310 IFS=$as_save_IFS 8311 test -z "$as_dir" && as_dir=. 8312 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8313done 8314IFS=$as_save_IFS 8315 8316 ;; 8317esac 8318# We did not find ourselves, most probably we were run as `sh COMMAND' 8319# in which case we are not to be found in the path. 8320if test "x$as_myself" = x; then 8321 as_myself=$0 8322fi 8323if test ! -f "$as_myself"; then 8324 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8325 { (exit 1); exit 1; } 8326fi 8327 8328# Work around bugs in pre-3.0 UWIN ksh. 8329for as_var in ENV MAIL MAILPATH 8330do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8331done 8332PS1='$ ' 8333PS2='> ' 8334PS4='+ ' 8335 8336# NLS nuisances. 8337for as_var in \ 8338 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8339 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8340 LC_TELEPHONE LC_TIME 8341do 8342 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8343 eval $as_var=C; export $as_var 8344 else 8345 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8346 fi 8347done 8348 8349# Required to use basename. 8350if expr a : '\(a\)' >/dev/null 2>&1 && 8351 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8352 as_expr=expr 8353else 8354 as_expr=false 8355fi 8356 8357if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8358 as_basename=basename 8359else 8360 as_basename=false 8361fi 8362 8363 8364# Name of the executable. 8365as_me=`$as_basename -- "$0" || 8366$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8367 X"$0" : 'X\(//\)$' \| \ 8368 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8369echo X/"$0" | 8370 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8371 s//\1/ 8372 q 8373 } 8374 /^X\/\(\/\/\)$/{ 8375 s//\1/ 8376 q 8377 } 8378 /^X\/\(\/\).*/{ 8379 s//\1/ 8380 q 8381 } 8382 s/.*/./; q'` 8383 8384# CDPATH. 8385$as_unset CDPATH 8386 8387 8388 8389 as_lineno_1=$LINENO 8390 as_lineno_2=$LINENO 8391 test "x$as_lineno_1" != "x$as_lineno_2" && 8392 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 8393 8394 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 8395 # uniformly replaced by the line number. The first 'sed' inserts a 8396 # line-number line after each line using $LINENO; the second 'sed' 8397 # does the real work. The second script uses 'N' to pair each 8398 # line-number line with the line containing $LINENO, and appends 8399 # trailing '-' during substitution so that $LINENO is not a special 8400 # case at line end. 8401 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 8402 # scripts with optimization help from Paolo Bonzini. Blame Lee 8403 # E. McMahon (1931-1989) for sed's syntax. :-) 8404 sed -n ' 8405 p 8406 /[$]LINENO/= 8407 ' <$as_myself | 8408 sed ' 8409 s/[$]LINENO.*/&-/ 8410 t lineno 8411 b 8412 :lineno 8413 N 8414 :loop 8415 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 8416 t loop 8417 s/-\n.*// 8418 ' >$as_me.lineno && 8419 chmod +x "$as_me.lineno" || 8420 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 8421 { (exit 1); exit 1; }; } 8422 8423 # Don't try to exec as it changes $[0], causing all sort of problems 8424 # (the dirname of $[0] is not the place where we might find the 8425 # original and so on. Autoconf is especially sensitive to this). 8426 . "./$as_me.lineno" 8427 # Exit status is that of the last command. 8428 exit 8429} 8430 8431 8432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8433 as_dirname=dirname 8434else 8435 as_dirname=false 8436fi 8437 8438ECHO_C= ECHO_N= ECHO_T= 8439case `echo -n x` in 8440-n*) 8441 case `echo 'x\c'` in 8442 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8443 *) ECHO_C='\c';; 8444 esac;; 8445*) 8446 ECHO_N='-n';; 8447esac 8448 8449if expr a : '\(a\)' >/dev/null 2>&1 && 8450 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8451 as_expr=expr 8452else 8453 as_expr=false 8454fi 8455 8456rm -f conf$$ conf$$.exe conf$$.file 8457if test -d conf$$.dir; then 8458 rm -f conf$$.dir/conf$$.file 8459else 8460 rm -f conf$$.dir 8461 mkdir conf$$.dir 8462fi 8463echo >conf$$.file 8464if ln -s conf$$.file conf$$ 2>/dev/null; then 8465 as_ln_s='ln -s' 8466 # ... but there are two gotchas: 8467 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8468 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8469 # In both cases, we have to default to `cp -p'. 8470 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8471 as_ln_s='cp -p' 8472elif ln conf$$.file conf$$ 2>/dev/null; then 8473 as_ln_s=ln 8474else 8475 as_ln_s='cp -p' 8476fi 8477rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8478rmdir conf$$.dir 2>/dev/null 8479 8480if mkdir -p . 2>/dev/null; then 8481 as_mkdir_p=: 8482else 8483 test -d ./-p && rmdir ./-p 8484 as_mkdir_p=false 8485fi 8486 8487if test -x / >/dev/null 2>&1; then 8488 as_test_x='test -x' 8489else 8490 if ls -dL / >/dev/null 2>&1; then 8491 as_ls_L_option=L 8492 else 8493 as_ls_L_option= 8494 fi 8495 as_test_x=' 8496 eval sh -c '\'' 8497 if test -d "$1"; then 8498 test -d "$1/."; 8499 else 8500 case $1 in 8501 -*)set "./$1";; 8502 esac; 8503 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 8504 ???[sx]*):;;*)false;;esac;fi 8505 '\'' sh 8506 ' 8507fi 8508as_executable_p=$as_test_x 8509 8510# Sed expression to map a string onto a valid CPP name. 8511as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8512 8513# Sed expression to map a string onto a valid variable name. 8514as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8515 8516 8517exec 6>&1 8518 8519# Save the log message, to keep $[0] and so on meaningful, and to 8520# report actual input values of CONFIG_FILES etc. instead of their 8521# values after options handling. 8522ac_log=" 8523This file was extended by $as_me, which was 8524generated by GNU Autoconf 2.61. Invocation command line was 8525 8526 CONFIG_FILES = $CONFIG_FILES 8527 CONFIG_HEADERS = $CONFIG_HEADERS 8528 CONFIG_LINKS = $CONFIG_LINKS 8529 CONFIG_COMMANDS = $CONFIG_COMMANDS 8530 $ $0 $@ 8531 8532on `(hostname || uname -n) 2>/dev/null | sed 1q` 8533" 8534 8535_ACEOF 8536 8537cat >>$CONFIG_STATUS <<_ACEOF 8538# Files that config.status was made for. 8539config_files="$ac_config_files" 8540config_headers="$ac_config_headers" 8541 8542_ACEOF 8543 8544cat >>$CONFIG_STATUS <<\_ACEOF 8545ac_cs_usage="\ 8546\`$as_me' instantiates files from templates according to the 8547current configuration. 8548 8549Usage: $0 [OPTIONS] [FILE]... 8550 8551 -h, --help print this help, then exit 8552 -V, --version print version number and configuration settings, then exit 8553 -q, --quiet do not print progress messages 8554 -d, --debug don't remove temporary files 8555 --recheck update $as_me by reconfiguring in the same conditions 8556 --file=FILE[:TEMPLATE] 8557 instantiate the configuration file FILE 8558 --header=FILE[:TEMPLATE] 8559 instantiate the configuration header FILE 8560 8561Configuration files: 8562$config_files 8563 8564Configuration headers: 8565$config_headers 8566 8567Report bugs to <bug-autoconf@gnu.org>." 8568 8569_ACEOF 8570cat >>$CONFIG_STATUS <<_ACEOF 8571ac_cs_version="\\ 8572config.status 8573configured by $0, generated by GNU Autoconf 2.61, 8574 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 8575 8576Copyright (C) 2006 Free Software Foundation, Inc. 8577This config.status script is free software; the Free Software Foundation 8578gives unlimited permission to copy, distribute and modify it." 8579 8580ac_pwd='$ac_pwd' 8581srcdir='$srcdir' 8582INSTALL='$INSTALL' 8583_ACEOF 8584 8585cat >>$CONFIG_STATUS <<\_ACEOF 8586# If no file are specified by the user, then we need to provide default 8587# value. By we need to know if files were specified by the user. 8588ac_need_defaults=: 8589while test $# != 0 8590do 8591 case $1 in 8592 --*=*) 8593 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8594 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8595 ac_shift=: 8596 ;; 8597 *) 8598 ac_option=$1 8599 ac_optarg=$2 8600 ac_shift=shift 8601 ;; 8602 esac 8603 8604 case $ac_option in 8605 # Handling of the options. 8606 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8607 ac_cs_recheck=: ;; 8608 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8609 echo "$ac_cs_version"; exit ;; 8610 --debug | --debu | --deb | --de | --d | -d ) 8611 debug=: ;; 8612 --file | --fil | --fi | --f ) 8613 $ac_shift 8614 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 8615 ac_need_defaults=false;; 8616 --header | --heade | --head | --hea ) 8617 $ac_shift 8618 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 8619 ac_need_defaults=false;; 8620 --he | --h) 8621 # Conflict between --help and --header 8622 { echo "$as_me: error: ambiguous option: $1 8623Try \`$0 --help' for more information." >&2 8624 { (exit 1); exit 1; }; };; 8625 --help | --hel | -h ) 8626 echo "$ac_cs_usage"; exit ;; 8627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8628 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8629 ac_cs_silent=: ;; 8630 8631 # This is an error. 8632 -*) { echo "$as_me: error: unrecognized option: $1 8633Try \`$0 --help' for more information." >&2 8634 { (exit 1); exit 1; }; } ;; 8635 8636 *) ac_config_targets="$ac_config_targets $1" 8637 ac_need_defaults=false ;; 8638 8639 esac 8640 shift 8641done 8642 8643ac_configure_extra_args= 8644 8645if $ac_cs_silent; then 8646 exec 6>/dev/null 8647 ac_configure_extra_args="$ac_configure_extra_args --silent" 8648fi 8649 8650_ACEOF 8651cat >>$CONFIG_STATUS <<_ACEOF 8652if \$ac_cs_recheck; then 8653 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 8654 CONFIG_SHELL=$SHELL 8655 export CONFIG_SHELL 8656 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8657fi 8658 8659_ACEOF 8660cat >>$CONFIG_STATUS <<\_ACEOF 8661exec 5>>config.log 8662{ 8663 echo 8664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8665## Running $as_me. ## 8666_ASBOX 8667 echo "$ac_log" 8668} >&5 8669 8670_ACEOF 8671cat >>$CONFIG_STATUS <<_ACEOF 8672_ACEOF 8673 8674cat >>$CONFIG_STATUS <<\_ACEOF 8675 8676# Handling of arguments. 8677for ac_config_target in $ac_config_targets 8678do 8679 case $ac_config_target in 8680 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 8681 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8682 8683 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 8684echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 8685 { (exit 1); exit 1; }; };; 8686 esac 8687done 8688 8689 8690# If the user did not use the arguments to specify the items to instantiate, 8691# then the envvar interface is used. Set only those that are not. 8692# We use the long form for the default assignment because of an extremely 8693# bizarre bug on SunOS 4.1.3. 8694if $ac_need_defaults; then 8695 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8696 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8697fi 8698 8699# Have a temporary directory for convenience. Make it in the build tree 8700# simply because there is no reason against having it here, and in addition, 8701# creating and moving files from /tmp can sometimes cause problems. 8702# Hook for its removal unless debugging. 8703# Note that there is a small window in which the directory will not be cleaned: 8704# after its creation but before its name has been assigned to `$tmp'. 8705$debug || 8706{ 8707 tmp= 8708 trap 'exit_status=$? 8709 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 8710' 0 8711 trap '{ (exit 1); exit 1; }' 1 2 13 15 8712} 8713# Create a (secure) tmp directory for tmp files. 8714 8715{ 8716 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8717 test -n "$tmp" && test -d "$tmp" 8718} || 8719{ 8720 tmp=./conf$$-$RANDOM 8721 (umask 077 && mkdir "$tmp") 8722} || 8723{ 8724 echo "$me: cannot create a temporary directory in ." >&2 8725 { (exit 1); exit 1; } 8726} 8727 8728# 8729# Set up the sed scripts for CONFIG_FILES section. 8730# 8731 8732# No need to generate the scripts if there are no CONFIG_FILES. 8733# This happens for instance when ./config.status config.h 8734if test -n "$CONFIG_FILES"; then 8735 8736_ACEOF 8737 8738 8739 8740ac_delim='%!_!# ' 8741for ac_last_try in false false false false false :; do 8742 cat >conf$$subs.sed <<_ACEOF 8743SHELL!$SHELL$ac_delim 8744PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 8745PACKAGE_NAME!$PACKAGE_NAME$ac_delim 8746PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 8747PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 8748PACKAGE_STRING!$PACKAGE_STRING$ac_delim 8749PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 8750exec_prefix!$exec_prefix$ac_delim 8751prefix!$prefix$ac_delim 8752program_transform_name!$program_transform_name$ac_delim 8753bindir!$bindir$ac_delim 8754sbindir!$sbindir$ac_delim 8755libexecdir!$libexecdir$ac_delim 8756datarootdir!$datarootdir$ac_delim 8757datadir!$datadir$ac_delim 8758sysconfdir!$sysconfdir$ac_delim 8759sharedstatedir!$sharedstatedir$ac_delim 8760localstatedir!$localstatedir$ac_delim 8761includedir!$includedir$ac_delim 8762oldincludedir!$oldincludedir$ac_delim 8763docdir!$docdir$ac_delim 8764infodir!$infodir$ac_delim 8765htmldir!$htmldir$ac_delim 8766dvidir!$dvidir$ac_delim 8767pdfdir!$pdfdir$ac_delim 8768psdir!$psdir$ac_delim 8769libdir!$libdir$ac_delim 8770localedir!$localedir$ac_delim 8771mandir!$mandir$ac_delim 8772DEFS!$DEFS$ac_delim 8773ECHO_C!$ECHO_C$ac_delim 8774ECHO_N!$ECHO_N$ac_delim 8775ECHO_T!$ECHO_T$ac_delim 8776LIBS!$LIBS$ac_delim 8777build_alias!$build_alias$ac_delim 8778host_alias!$host_alias$ac_delim 8779target_alias!$target_alias$ac_delim 8780CC!$CC$ac_delim 8781CFLAGS!$CFLAGS$ac_delim 8782LDFLAGS!$LDFLAGS$ac_delim 8783CPPFLAGS!$CPPFLAGS$ac_delim 8784ac_ct_CC!$ac_ct_CC$ac_delim 8785EXEEXT!$EXEEXT$ac_delim 8786OBJEXT!$OBJEXT$ac_delim 8787CPP!$CPP$ac_delim 8788GREP!$GREP$ac_delim 8789EGREP!$EGREP$ac_delim 8790INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 8791INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 8792INSTALL_DATA!$INSTALL_DATA$ac_delim 8793LN_S!$LN_S$ac_delim 8794INSTALL_INFO!$INSTALL_INFO$ac_delim 8795build!$build$ac_delim 8796build_cpu!$build_cpu$ac_delim 8797build_vendor!$build_vendor$ac_delim 8798build_os!$build_os$ac_delim 8799host!$host$ac_delim 8800host_cpu!$host_cpu$ac_delim 8801host_vendor!$host_vendor$ac_delim 8802host_os!$host_os$ac_delim 8803target!$target$ac_delim 8804target_cpu!$target_cpu$ac_delim 8805target_vendor!$target_vendor$ac_delim 8806target_os!$target_os$ac_delim 8807XMKMF!$XMKMF$ac_delim 8808X_CFLAGS!$X_CFLAGS$ac_delim 8809X_PRE_LIBS!$X_PRE_LIBS$ac_delim 8810X_LIBS!$X_LIBS$ac_delim 8811X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 8812FLOPPYD!$FLOPPYD$ac_delim 8813BINFLOPPYD!$BINFLOPPYD$ac_delim 8814extraincludedir!$extraincludedir$ac_delim 8815extralibdir!$extralibdir$ac_delim 8816MACHDEPLIBS!$MACHDEPLIBS$ac_delim 8817SHLIB!$SHLIB$ac_delim 8818HOST_ID!$HOST_ID$ac_delim 8819LIBOBJS!$LIBOBJS$ac_delim 8820LTLIBOBJS!$LTLIBOBJS$ac_delim 8821_ACEOF 8822 8823 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then 8824 break 8825 elif $ac_last_try; then 8826 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 8827echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 8828 { (exit 1); exit 1; }; } 8829 else 8830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8831 fi 8832done 8833 8834ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 8835if test -n "$ac_eof"; then 8836 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 8837 ac_eof=`expr $ac_eof + 1` 8838fi 8839 8840cat >>$CONFIG_STATUS <<_ACEOF 8841cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 8842/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 8843_ACEOF 8844sed ' 8845s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 8846s/^/s,@/; s/!/@,|#_!!_#|/ 8847:n 8848t n 8849s/'"$ac_delim"'$/,g/; t 8850s/$/\\/; p 8851N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 8852' >>$CONFIG_STATUS <conf$$subs.sed 8853rm -f conf$$subs.sed 8854cat >>$CONFIG_STATUS <<_ACEOF 8855:end 8856s/|#_!!_#|//g 8857CEOF$ac_eof 8858_ACEOF 8859 8860 8861# VPATH may cause trouble with some makes, so we remove $(srcdir), 8862# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 8863# trailing colons and then remove the whole line if VPATH becomes empty 8864# (actually we leave an empty line to preserve line numbers). 8865if test "x$srcdir" = x.; then 8866 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 8867s/:*\$(srcdir):*/:/ 8868s/:*\${srcdir}:*/:/ 8869s/:*@srcdir@:*/:/ 8870s/^\([^=]*=[ ]*\):*/\1/ 8871s/:*$// 8872s/^[^=]*=[ ]*$// 8873}' 8874fi 8875 8876cat >>$CONFIG_STATUS <<\_ACEOF 8877fi # test -n "$CONFIG_FILES" 8878 8879 8880for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 8881do 8882 case $ac_tag in 8883 :[FHLC]) ac_mode=$ac_tag; continue;; 8884 esac 8885 case $ac_mode$ac_tag in 8886 :[FHL]*:*);; 8887 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 8888echo "$as_me: error: Invalid tag $ac_tag." >&2;} 8889 { (exit 1); exit 1; }; };; 8890 :[FH]-) ac_tag=-:-;; 8891 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 8892 esac 8893 ac_save_IFS=$IFS 8894 IFS=: 8895 set x $ac_tag 8896 IFS=$ac_save_IFS 8897 shift 8898 ac_file=$1 8899 shift 8900 8901 case $ac_mode in 8902 :L) ac_source=$1;; 8903 :[FH]) 8904 ac_file_inputs= 8905 for ac_f 8906 do 8907 case $ac_f in 8908 -) ac_f="$tmp/stdin";; 8909 *) # Look for the file first in the build tree, then in the source tree 8910 # (if the path is not absolute). The absolute path cannot be DOS-style, 8911 # because $ac_f cannot contain `:'. 8912 test -f "$ac_f" || 8913 case $ac_f in 8914 [\\/$]*) false;; 8915 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8916 esac || 8917 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 8918echo "$as_me: error: cannot find input file: $ac_f" >&2;} 8919 { (exit 1); exit 1; }; };; 8920 esac 8921 ac_file_inputs="$ac_file_inputs $ac_f" 8922 done 8923 8924 # Let's still pretend it is `configure' which instantiates (i.e., don't 8925 # use $as_me), people would be surprised to read: 8926 # /* config.h. Generated by config.status. */ 8927 configure_input="Generated from "`IFS=: 8928 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 8929 if test x"$ac_file" != x-; then 8930 configure_input="$ac_file. $configure_input" 8931 { echo "$as_me:$LINENO: creating $ac_file" >&5 8932echo "$as_me: creating $ac_file" >&6;} 8933 fi 8934 8935 case $ac_tag in 8936 *:-:* | *:-) cat >"$tmp/stdin";; 8937 esac 8938 ;; 8939 esac 8940 8941 ac_dir=`$as_dirname -- "$ac_file" || 8942$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8943 X"$ac_file" : 'X\(//\)[^/]' \| \ 8944 X"$ac_file" : 'X\(//\)$' \| \ 8945 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8946echo X"$ac_file" | 8947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8948 s//\1/ 8949 q 8950 } 8951 /^X\(\/\/\)[^/].*/{ 8952 s//\1/ 8953 q 8954 } 8955 /^X\(\/\/\)$/{ 8956 s//\1/ 8957 q 8958 } 8959 /^X\(\/\).*/{ 8960 s//\1/ 8961 q 8962 } 8963 s/.*/./; q'` 8964 { as_dir="$ac_dir" 8965 case $as_dir in #( 8966 -*) as_dir=./$as_dir;; 8967 esac 8968 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 8969 as_dirs= 8970 while :; do 8971 case $as_dir in #( 8972 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 8973 *) as_qdir=$as_dir;; 8974 esac 8975 as_dirs="'$as_qdir' $as_dirs" 8976 as_dir=`$as_dirname -- "$as_dir" || 8977$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8978 X"$as_dir" : 'X\(//\)[^/]' \| \ 8979 X"$as_dir" : 'X\(//\)$' \| \ 8980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8981echo X"$as_dir" | 8982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8983 s//\1/ 8984 q 8985 } 8986 /^X\(\/\/\)[^/].*/{ 8987 s//\1/ 8988 q 8989 } 8990 /^X\(\/\/\)$/{ 8991 s//\1/ 8992 q 8993 } 8994 /^X\(\/\).*/{ 8995 s//\1/ 8996 q 8997 } 8998 s/.*/./; q'` 8999 test -d "$as_dir" && break 9000 done 9001 test -z "$as_dirs" || eval "mkdir $as_dirs" 9002 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 9003echo "$as_me: error: cannot create directory $as_dir" >&2;} 9004 { (exit 1); exit 1; }; }; } 9005 ac_builddir=. 9006 9007case "$ac_dir" in 9008.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9009*) 9010 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9011 # A ".." for each directory in $ac_dir_suffix. 9012 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 9013 case $ac_top_builddir_sub in 9014 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9015 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9016 esac ;; 9017esac 9018ac_abs_top_builddir=$ac_pwd 9019ac_abs_builddir=$ac_pwd$ac_dir_suffix 9020# for backward compatibility: 9021ac_top_builddir=$ac_top_build_prefix 9022 9023case $srcdir in 9024 .) # We are building in place. 9025 ac_srcdir=. 9026 ac_top_srcdir=$ac_top_builddir_sub 9027 ac_abs_top_srcdir=$ac_pwd ;; 9028 [\\/]* | ?:[\\/]* ) # Absolute name. 9029 ac_srcdir=$srcdir$ac_dir_suffix; 9030 ac_top_srcdir=$srcdir 9031 ac_abs_top_srcdir=$srcdir ;; 9032 *) # Relative name. 9033 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9034 ac_top_srcdir=$ac_top_build_prefix$srcdir 9035 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9036esac 9037ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9038 9039 9040 case $ac_mode in 9041 :F) 9042 # 9043 # CONFIG_FILE 9044 # 9045 9046 case $INSTALL in 9047 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9048 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9049 esac 9050_ACEOF 9051 9052cat >>$CONFIG_STATUS <<\_ACEOF 9053# If the template does not know about datarootdir, expand it. 9054# FIXME: This hack should be removed a few years after 2.60. 9055ac_datarootdir_hack=; ac_datarootdir_seen= 9056 9057case `sed -n '/datarootdir/ { 9058 p 9059 q 9060} 9061/@datadir@/p 9062/@docdir@/p 9063/@infodir@/p 9064/@localedir@/p 9065/@mandir@/p 9066' $ac_file_inputs` in 9067*datarootdir*) ac_datarootdir_seen=yes;; 9068*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9069 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9070echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9071_ACEOF 9072cat >>$CONFIG_STATUS <<_ACEOF 9073 ac_datarootdir_hack=' 9074 s&@datadir@&$datadir&g 9075 s&@docdir@&$docdir&g 9076 s&@infodir@&$infodir&g 9077 s&@localedir@&$localedir&g 9078 s&@mandir@&$mandir&g 9079 s&\\\${datarootdir}&$datarootdir&g' ;; 9080esac 9081_ACEOF 9082 9083# Neutralize VPATH when `$srcdir' = `.'. 9084# Shell code in configure.ac might set extrasub. 9085# FIXME: do we really want to maintain this feature? 9086cat >>$CONFIG_STATUS <<_ACEOF 9087 sed "$ac_vpsub 9088$extrasub 9089_ACEOF 9090cat >>$CONFIG_STATUS <<\_ACEOF 9091:t 9092/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9093s&@configure_input@&$configure_input&;t t 9094s&@top_builddir@&$ac_top_builddir_sub&;t t 9095s&@srcdir@&$ac_srcdir&;t t 9096s&@abs_srcdir@&$ac_abs_srcdir&;t t 9097s&@top_srcdir@&$ac_top_srcdir&;t t 9098s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9099s&@builddir@&$ac_builddir&;t t 9100s&@abs_builddir@&$ac_abs_builddir&;t t 9101s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9102s&@INSTALL@&$ac_INSTALL&;t t 9103$ac_datarootdir_hack 9104" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 9105 9106test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9107 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9108 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9109 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9110which seems to be undefined. Please make sure it is defined." >&5 9111echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9112which seems to be undefined. Please make sure it is defined." >&2;} 9113 9114 rm -f "$tmp/stdin" 9115 case $ac_file in 9116 -) cat "$tmp/out"; rm -f "$tmp/out";; 9117 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 9118 esac 9119 ;; 9120 :H) 9121 # 9122 # CONFIG_HEADER 9123 # 9124_ACEOF 9125 9126# Transform confdefs.h into a sed script `conftest.defines', that 9127# substitutes the proper values into config.h.in to produce config.h. 9128rm -f conftest.defines conftest.tail 9129# First, append a space to every undef/define line, to ease matching. 9130echo 's/$/ /' >conftest.defines 9131# Then, protect against being on the right side of a sed subst, or in 9132# an unquoted here document, in config.status. If some macros were 9133# called several times there might be several #defines for the same 9134# symbol, which is useless. But do not sort them, since the last 9135# AC_DEFINE must be honored. 9136ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9137# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 9138# NAME is the cpp macro being defined, VALUE is the value it is being given. 9139# PARAMS is the parameter list in the macro definition--in most cases, it's 9140# just an empty string. 9141ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 9142ac_dB='\\)[ (].*,\\1define\\2' 9143ac_dC=' ' 9144ac_dD=' ,' 9145 9146uniq confdefs.h | 9147 sed -n ' 9148 t rset 9149 :rset 9150 s/^[ ]*#[ ]*define[ ][ ]*// 9151 t ok 9152 d 9153 :ok 9154 s/[\\&,]/\\&/g 9155 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 9156 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 9157 ' >>conftest.defines 9158 9159# Remove the space that was appended to ease matching. 9160# Then replace #undef with comments. This is necessary, for 9161# example, in the case of _POSIX_SOURCE, which is predefined and required 9162# on some systems where configure will not decide to define it. 9163# (The regexp can be short, since the line contains either #define or #undef.) 9164echo 's/ $// 9165s,^[ #]*u.*,/* & */,' >>conftest.defines 9166 9167# Break up conftest.defines: 9168ac_max_sed_lines=50 9169 9170# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 9171# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 9172# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 9173# et cetera. 9174ac_in='$ac_file_inputs' 9175ac_out='"$tmp/out1"' 9176ac_nxt='"$tmp/out2"' 9177 9178while : 9179do 9180 # Write a here document: 9181 cat >>$CONFIG_STATUS <<_ACEOF 9182 # First, check the format of the line: 9183 cat >"\$tmp/defines.sed" <<\\CEOF 9184/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 9185/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 9186b 9187:def 9188_ACEOF 9189 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 9190 echo 'CEOF 9191 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 9192 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 9193 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 9194 grep . conftest.tail >/dev/null || break 9195 rm -f conftest.defines 9196 mv conftest.tail conftest.defines 9197done 9198rm -f conftest.defines conftest.tail 9199 9200echo "ac_result=$ac_in" >>$CONFIG_STATUS 9201cat >>$CONFIG_STATUS <<\_ACEOF 9202 if test x"$ac_file" != x-; then 9203 echo "/* $configure_input */" >"$tmp/config.h" 9204 cat "$ac_result" >>"$tmp/config.h" 9205 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 9206 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9207echo "$as_me: $ac_file is unchanged" >&6;} 9208 else 9209 rm -f $ac_file 9210 mv "$tmp/config.h" $ac_file 9211 fi 9212 else 9213 echo "/* $configure_input */" 9214 cat "$ac_result" 9215 fi 9216 rm -f "$tmp/out12" 9217 ;; 9218 9219 9220 esac 9221 9222done # for ac_tag 9223 9224 9225{ (exit 0); exit 0; } 9226_ACEOF 9227chmod +x $CONFIG_STATUS 9228ac_clean_files=$ac_clean_files_save 9229 9230 9231# configure is writing to config.log, and then calls config.status. 9232# config.status does its own redirection, appending to config.log. 9233# Unfortunately, on DOS this fails, as config.log is still kept open 9234# by configure, so config.status won't be able to write to it; its 9235# output is simply discarded. So we exec the FD to /dev/null, 9236# effectively closing config.log, so it can be properly (re)opened and 9237# appended to by config.status. When coming back to configure, we 9238# need to make the FD available again. 9239if test "$no_create" != yes; then 9240 ac_cs_success=: 9241 ac_config_status_args= 9242 test "$silent" = yes && 9243 ac_config_status_args="$ac_config_status_args --quiet" 9244 exec 5>/dev/null 9245 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9246 exec 5>>config.log 9247 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9248 # would make configure fail if this is the last instruction. 9249 $ac_cs_success || { (exit 1); exit 1; } 9250fi 9251 9252