1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.62 for Spread_Util 4.2.0. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81# Support unset when possible. 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 83 as_unset=unset 84else 85 as_unset=false 86fi 87 88 89# IFS 90# We need space, tab and new line, in precisely that order. Quoting is 91# there to prevent editors from complaining about space-tab. 92# (If _AS_PATH_WALK were called with IFS unset, it would disable word 93# splitting by setting IFS to empty value.) 94IFS=" "" $as_nl" 95 96# Find who we are. Look in the path if we contain no directory separator. 97case $0 in 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 { (exit 1); exit 1; } 118fi 119 120# Work around bugs in pre-3.0 UWIN ksh. 121for as_var in ENV MAIL MAILPATH 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# Required to use basename. 135if expr a : '\(a\)' >/dev/null 2>&1 && 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 137 as_expr=expr 138else 139 as_expr=false 140fi 141 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 143 as_basename=basename 144else 145 as_basename=false 146fi 147 148 149# Name of the executable. 150as_me=`$as_basename -- "$0" || 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 152 X"$0" : 'X\(//\)$' \| \ 153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 154$as_echo X/"$0" | 155 sed '/^.*\/\([^/][^/]*\)\/*$/{ 156 s//\1/ 157 q 158 } 159 /^X\/\(\/\/\)$/{ 160 s//\1/ 161 q 162 } 163 /^X\/\(\/\).*/{ 164 s//\1/ 165 q 166 } 167 s/.*/./; q'` 168 169# CDPATH. 170$as_unset CDPATH 171 172 173if test "x$CONFIG_SHELL" = x; then 174 if (eval ":") 2>/dev/null; then 175 as_have_required=yes 176else 177 as_have_required=no 178fi 179 180 if test $as_have_required = yes && (eval ": 181(as_func_return () { 182 (exit \$1) 183} 184as_func_success () { 185 as_func_return 0 186} 187as_func_failure () { 188 as_func_return 1 189} 190as_func_ret_success () { 191 return 0 192} 193as_func_ret_failure () { 194 return 1 195} 196 197exitcode=0 198if as_func_success; then 199 : 200else 201 exitcode=1 202 echo as_func_success failed. 203fi 204 205if as_func_failure; then 206 exitcode=1 207 echo as_func_failure succeeded. 208fi 209 210if as_func_ret_success; then 211 : 212else 213 exitcode=1 214 echo as_func_ret_success failed. 215fi 216 217if as_func_ret_failure; then 218 exitcode=1 219 echo as_func_ret_failure succeeded. 220fi 221 222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 223 : 224else 225 exitcode=1 226 echo positional parameters were not saved. 227fi 228 229test \$exitcode = 0) || { (exit 1); exit 1; } 230 231( 232 as_lineno_1=\$LINENO 233 as_lineno_2=\$LINENO 234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 236") 2> /dev/null; then 237 : 238else 239 as_candidate_shells= 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 242do 243 IFS=$as_save_IFS 244 test -z "$as_dir" && as_dir=. 245 case $as_dir in 246 /*) 247 for as_base in sh bash ksh sh5; do 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 249 done;; 250 esac 251done 252IFS=$as_save_IFS 253 254 255 for as_shell in $as_candidate_shells $SHELL; do 256 # Try only shells that exist, to save several forks. 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 258 { ("$as_shell") 2> /dev/null <<\_ASEOF 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in 268 *posix*) set -o posix ;; 269esac 270 271fi 272 273 274: 275_ASEOF 276}; then 277 CONFIG_SHELL=$as_shell 278 as_have_required=yes 279 if { "$as_shell" 2> /dev/null <<\_ASEOF 280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 281 emulate sh 282 NULLCMD=: 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 284 # is contrary to our usage. Disable this feature. 285 alias -g '${1+"$@"}'='"$@"' 286 setopt NO_GLOB_SUBST 287else 288 case `(set -o) 2>/dev/null` in 289 *posix*) set -o posix ;; 290esac 291 292fi 293 294 295: 296(as_func_return () { 297 (exit $1) 298} 299as_func_success () { 300 as_func_return 0 301} 302as_func_failure () { 303 as_func_return 1 304} 305as_func_ret_success () { 306 return 0 307} 308as_func_ret_failure () { 309 return 1 310} 311 312exitcode=0 313if as_func_success; then 314 : 315else 316 exitcode=1 317 echo as_func_success failed. 318fi 319 320if as_func_failure; then 321 exitcode=1 322 echo as_func_failure succeeded. 323fi 324 325if as_func_ret_success; then 326 : 327else 328 exitcode=1 329 echo as_func_ret_success failed. 330fi 331 332if as_func_ret_failure; then 333 exitcode=1 334 echo as_func_ret_failure succeeded. 335fi 336 337if ( set x; as_func_ret_success y && test x = "$1" ); then 338 : 339else 340 exitcode=1 341 echo positional parameters were not saved. 342fi 343 344test $exitcode = 0) || { (exit 1); exit 1; } 345 346( 347 as_lineno_1=$LINENO 348 as_lineno_2=$LINENO 349 test "x$as_lineno_1" != "x$as_lineno_2" && 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 351 352_ASEOF 353}; then 354 break 355fi 356 357fi 358 359 done 360 361 if test "x$CONFIG_SHELL" != x; then 362 for as_var in BASH_ENV ENV 363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 364 done 365 export CONFIG_SHELL 366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 367fi 368 369 370 if test $as_have_required = no; then 371 echo This script requires a shell more modern than all the 372 echo shells that I found on your system. Please install a 373 echo modern shell, or manually run the script under such a 374 echo shell if you do have one. 375 { (exit 1); exit 1; } 376fi 377 378 379fi 380 381fi 382 383 384 385(eval "as_func_return () { 386 (exit \$1) 387} 388as_func_success () { 389 as_func_return 0 390} 391as_func_failure () { 392 as_func_return 1 393} 394as_func_ret_success () { 395 return 0 396} 397as_func_ret_failure () { 398 return 1 399} 400 401exitcode=0 402if as_func_success; then 403 : 404else 405 exitcode=1 406 echo as_func_success failed. 407fi 408 409if as_func_failure; then 410 exitcode=1 411 echo as_func_failure succeeded. 412fi 413 414if as_func_ret_success; then 415 : 416else 417 exitcode=1 418 echo as_func_ret_success failed. 419fi 420 421if as_func_ret_failure; then 422 exitcode=1 423 echo as_func_ret_failure succeeded. 424fi 425 426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 427 : 428else 429 exitcode=1 430 echo positional parameters were not saved. 431fi 432 433test \$exitcode = 0") || { 434 echo No shell found that supports shell functions. 435 echo Please tell bug-autoconf@gnu.org about your system, 436 echo including any error possibly output before this message. 437 echo This can help us improve future autoconf versions. 438 echo Configuration will now proceed without shell functions. 439} 440 441 442 443 as_lineno_1=$LINENO 444 as_lineno_2=$LINENO 445 test "x$as_lineno_1" != "x$as_lineno_2" && 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 447 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a 450 # line-number line after each line using $LINENO; the second 'sed' 451 # does the real work. The second script uses 'N' to pair each 452 # line-number line with the line containing $LINENO, and appends 453 # trailing '-' during substitution so that $LINENO is not a special 454 # case at line end. 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 456 # scripts with optimization help from Paolo Bonzini. Blame Lee 457 # E. McMahon (1931-1989) for sed's syntax. :-) 458 sed -n ' 459 p 460 /[$]LINENO/= 461 ' <$as_myself | 462 sed ' 463 s/[$]LINENO.*/&-/ 464 t lineno 465 b 466 :lineno 467 N 468 :loop 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 470 t loop 471 s/-\n.*// 472 ' >$as_me.lineno && 473 chmod +x "$as_me.lineno" || 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 475 { (exit 1); exit 1; }; } 476 477 # Don't try to exec as it changes $[0], causing all sort of problems 478 # (the dirname of $[0] is not the place where we might find the 479 # original and so on. Autoconf is especially sensitive to this). 480 . "./$as_me.lineno" 481 # Exit status is that of the last command. 482 exit 483} 484 485 486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 487 as_dirname=dirname 488else 489 as_dirname=false 490fi 491 492ECHO_C= ECHO_N= ECHO_T= 493case `echo -n x` in 494-n*) 495 case `echo 'x\c'` in 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 497 *) ECHO_C='\c';; 498 esac;; 499*) 500 ECHO_N='-n';; 501esac 502if expr a : '\(a\)' >/dev/null 2>&1 && 503 test "X`expr 00001 : '.*\(...\)'`" = X001; then 504 as_expr=expr 505else 506 as_expr=false 507fi 508 509rm -f conf$$ conf$$.exe conf$$.file 510if test -d conf$$.dir; then 511 rm -f conf$$.dir/conf$$.file 512else 513 rm -f conf$$.dir 514 mkdir conf$$.dir 2>/dev/null 515fi 516if (echo >conf$$.file) 2>/dev/null; then 517 if ln -s conf$$.file conf$$ 2>/dev/null; then 518 as_ln_s='ln -s' 519 # ... but there are two gotchas: 520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 522 # In both cases, we have to default to `cp -p'. 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 524 as_ln_s='cp -p' 525 elif ln conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s=ln 527 else 528 as_ln_s='cp -p' 529 fi 530else 531 as_ln_s='cp -p' 532fi 533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 534rmdir conf$$.dir 2>/dev/null 535 536if mkdir -p . 2>/dev/null; then 537 as_mkdir_p=: 538else 539 test -d ./-p && rmdir ./-p 540 as_mkdir_p=false 541fi 542 543if test -x / >/dev/null 2>&1; then 544 as_test_x='test -x' 545else 546 if ls -dL / >/dev/null 2>&1; then 547 as_ls_L_option=L 548 else 549 as_ls_L_option= 550 fi 551 as_test_x=' 552 eval sh -c '\'' 553 if test -d "$1"; then 554 test -d "$1/."; 555 else 556 case $1 in 557 -*)set "./$1";; 558 esac; 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 560 ???[sx]*):;;*)false;;esac;fi 561 '\'' sh 562 ' 563fi 564as_executable_p=$as_test_x 565 566# Sed expression to map a string onto a valid CPP name. 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 568 569# Sed expression to map a string onto a valid variable name. 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 571 572 573 574exec 7<&0 </dev/null 6>&1 575 576# Name of the host. 577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 578# so uname gets run too. 579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 580 581# 582# Initializations. 583# 584ac_default_prefix=/usr/local 585ac_clean_files= 586ac_config_libobj_dir=. 587LIBOBJS= 588cross_compiling=no 589subdirs= 590MFLAGS= 591MAKEFLAGS= 592SHELL=${CONFIG_SHELL-/bin/sh} 593 594# Identity of this package. 595PACKAGE_NAME='Spread_Util' 596PACKAGE_TARNAME='spread_util' 597PACKAGE_VERSION='4.2.0' 598PACKAGE_STRING='Spread_Util 4.2.0' 599PACKAGE_BUGREPORT='' 600 601# Factoring default headers for most tests. 602ac_includes_default="\ 603#include <stdio.h> 604#ifdef HAVE_SYS_TYPES_H 605# include <sys/types.h> 606#endif 607#ifdef HAVE_SYS_STAT_H 608# include <sys/stat.h> 609#endif 610#ifdef STDC_HEADERS 611# include <stdlib.h> 612# include <stddef.h> 613#else 614# ifdef HAVE_STDLIB_H 615# include <stdlib.h> 616# endif 617#endif 618#ifdef HAVE_STRING_H 619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 620# include <memory.h> 621# endif 622# include <string.h> 623#endif 624#ifdef HAVE_STRINGS_H 625# include <strings.h> 626#endif 627#ifdef HAVE_INTTYPES_H 628# include <inttypes.h> 629#endif 630#ifdef HAVE_STDINT_H 631# include <stdint.h> 632#endif 633#ifdef HAVE_UNISTD_H 634# include <unistd.h> 635#endif" 636 637ac_subst_vars='SHELL 638PATH_SEPARATOR 639PACKAGE_NAME 640PACKAGE_TARNAME 641PACKAGE_VERSION 642PACKAGE_STRING 643PACKAGE_BUGREPORT 644exec_prefix 645prefix 646program_transform_name 647bindir 648sbindir 649libexecdir 650datarootdir 651datadir 652sysconfdir 653sharedstatedir 654localstatedir 655includedir 656oldincludedir 657docdir 658infodir 659htmldir 660dvidir 661pdfdir 662psdir 663libdir 664localedir 665mandir 666DEFS 667ECHO_C 668ECHO_N 669ECHO_T 670LIBS 671build_alias 672host_alias 673target_alias 674build 675build_cpu 676build_vendor 677build_os 678host 679host_cpu 680host_vendor 681host_os 682CC 683CFLAGS 684LDFLAGS 685CPPFLAGS 686ac_ct_CC 687EXEEXT 688OBJEXT 689CPP 690GREP 691EGREP 692RANLIB 693INSTALL_PROGRAM 694INSTALL_SCRIPT 695INSTALL_DATA 696LN_S 697AR 698PERL 699LD 700THLDFLAGS 701THLIBS 702NROFF 703MANTYPE 704mansubdir 705SHCC 706SHCFLAGS 707SHCPPFLAGS 708SHLD 709SHLDFLAGS 710SHLIBS 711LIBSPSO 712SHLDOPTION 713SHLDNAME 714SHLDCONVERTSTATIC 715SHLDCONVERTSTATICEND 716LIBOBJS 717LTLIBOBJS' 718ac_subst_files='' 719ac_user_opts=' 720enable_option_checking 721with_cflags 722with_cppflags 723with_ldflags 724with_libs 725with_catman 726with_docdir 727enable_threaded_alarm 728enable_function_name_lookup 729' 730 ac_precious_vars='build_alias 731host_alias 732target_alias 733CC 734CFLAGS 735LDFLAGS 736LIBS 737CPPFLAGS 738CPP' 739 740 741# Initialize some variables set by options. 742ac_init_help= 743ac_init_version=false 744ac_unrecognized_opts= 745ac_unrecognized_sep= 746# The variables have the same names as the options, with 747# dashes changed to underlines. 748cache_file=/dev/null 749exec_prefix=NONE 750no_create= 751no_recursion= 752prefix=NONE 753program_prefix=NONE 754program_suffix=NONE 755program_transform_name=s,x,x, 756silent= 757site= 758srcdir= 759verbose= 760x_includes=NONE 761x_libraries=NONE 762 763# Installation directory options. 764# These are left unexpanded so users can "make install exec_prefix=/foo" 765# and all the variables that are supposed to be based on exec_prefix 766# by default will actually change. 767# Use braces instead of parens because sh, perl, etc. also accept them. 768# (The list follows the same order as the GNU Coding Standards.) 769bindir='${exec_prefix}/bin' 770sbindir='${exec_prefix}/sbin' 771libexecdir='${exec_prefix}/libexec' 772datarootdir='${prefix}/share' 773datadir='${datarootdir}' 774sysconfdir='${prefix}/etc' 775sharedstatedir='${prefix}/com' 776localstatedir='${prefix}/var' 777includedir='${prefix}/include' 778oldincludedir='/usr/include' 779docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 780infodir='${datarootdir}/info' 781htmldir='${docdir}' 782dvidir='${docdir}' 783pdfdir='${docdir}' 784psdir='${docdir}' 785libdir='${exec_prefix}/lib' 786localedir='${datarootdir}/locale' 787mandir='${datarootdir}/man' 788 789ac_prev= 790ac_dashdash= 791for ac_option 792do 793 # If the previous option needs an argument, assign it. 794 if test -n "$ac_prev"; then 795 eval $ac_prev=\$ac_option 796 ac_prev= 797 continue 798 fi 799 800 case $ac_option in 801 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 802 *) ac_optarg=yes ;; 803 esac 804 805 # Accept the important Cygnus configure options, so we can diagnose typos. 806 807 case $ac_dashdash$ac_option in 808 --) 809 ac_dashdash=yes ;; 810 811 -bindir | --bindir | --bindi | --bind | --bin | --bi) 812 ac_prev=bindir ;; 813 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 814 bindir=$ac_optarg ;; 815 816 -build | --build | --buil | --bui | --bu) 817 ac_prev=build_alias ;; 818 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 819 build_alias=$ac_optarg ;; 820 821 -cache-file | --cache-file | --cache-fil | --cache-fi \ 822 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 823 ac_prev=cache_file ;; 824 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 825 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 826 cache_file=$ac_optarg ;; 827 828 --config-cache | -C) 829 cache_file=config.cache ;; 830 831 -datadir | --datadir | --datadi | --datad) 832 ac_prev=datadir ;; 833 -datadir=* | --datadir=* | --datadi=* | --datad=*) 834 datadir=$ac_optarg ;; 835 836 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 837 | --dataroo | --dataro | --datar) 838 ac_prev=datarootdir ;; 839 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 840 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 841 datarootdir=$ac_optarg ;; 842 843 -disable-* | --disable-*) 844 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 845 # Reject names that are not valid shell variable names. 846 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 847 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 848 { (exit 1); exit 1; }; } 849 ac_useropt_orig=$ac_useropt 850 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 851 case $ac_user_opts in 852 *" 853"enable_$ac_useropt" 854"*) ;; 855 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 856 ac_unrecognized_sep=', ';; 857 esac 858 eval enable_$ac_useropt=no ;; 859 860 -docdir | --docdir | --docdi | --doc | --do) 861 ac_prev=docdir ;; 862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 863 docdir=$ac_optarg ;; 864 865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 866 ac_prev=dvidir ;; 867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 868 dvidir=$ac_optarg ;; 869 870 -enable-* | --enable-*) 871 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 872 # Reject names that are not valid shell variable names. 873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 874 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 875 { (exit 1); exit 1; }; } 876 ac_useropt_orig=$ac_useropt 877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 878 case $ac_user_opts in 879 *" 880"enable_$ac_useropt" 881"*) ;; 882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 883 ac_unrecognized_sep=', ';; 884 esac 885 eval enable_$ac_useropt=\$ac_optarg ;; 886 887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 889 | --exec | --exe | --ex) 890 ac_prev=exec_prefix ;; 891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 893 | --exec=* | --exe=* | --ex=*) 894 exec_prefix=$ac_optarg ;; 895 896 -gas | --gas | --ga | --g) 897 # Obsolete; use --with-gas. 898 with_gas=yes ;; 899 900 -help | --help | --hel | --he | -h) 901 ac_init_help=long ;; 902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 903 ac_init_help=recursive ;; 904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 905 ac_init_help=short ;; 906 907 -host | --host | --hos | --ho) 908 ac_prev=host_alias ;; 909 -host=* | --host=* | --hos=* | --ho=*) 910 host_alias=$ac_optarg ;; 911 912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 913 ac_prev=htmldir ;; 914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 915 | --ht=*) 916 htmldir=$ac_optarg ;; 917 918 -includedir | --includedir | --includedi | --included | --include \ 919 | --includ | --inclu | --incl | --inc) 920 ac_prev=includedir ;; 921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 922 | --includ=* | --inclu=* | --incl=* | --inc=*) 923 includedir=$ac_optarg ;; 924 925 -infodir | --infodir | --infodi | --infod | --info | --inf) 926 ac_prev=infodir ;; 927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 928 infodir=$ac_optarg ;; 929 930 -libdir | --libdir | --libdi | --libd) 931 ac_prev=libdir ;; 932 -libdir=* | --libdir=* | --libdi=* | --libd=*) 933 libdir=$ac_optarg ;; 934 935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 936 | --libexe | --libex | --libe) 937 ac_prev=libexecdir ;; 938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 939 | --libexe=* | --libex=* | --libe=*) 940 libexecdir=$ac_optarg ;; 941 942 -localedir | --localedir | --localedi | --localed | --locale) 943 ac_prev=localedir ;; 944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 945 localedir=$ac_optarg ;; 946 947 -localstatedir | --localstatedir | --localstatedi | --localstated \ 948 | --localstate | --localstat | --localsta | --localst | --locals) 949 ac_prev=localstatedir ;; 950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 952 localstatedir=$ac_optarg ;; 953 954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 955 ac_prev=mandir ;; 956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 957 mandir=$ac_optarg ;; 958 959 -nfp | --nfp | --nf) 960 # Obsolete; use --without-fp. 961 with_fp=no ;; 962 963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 964 | --no-cr | --no-c | -n) 965 no_create=yes ;; 966 967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 969 no_recursion=yes ;; 970 971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 973 | --oldin | --oldi | --old | --ol | --o) 974 ac_prev=oldincludedir ;; 975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 978 oldincludedir=$ac_optarg ;; 979 980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 981 ac_prev=prefix ;; 982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 983 prefix=$ac_optarg ;; 984 985 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 986 | --program-pre | --program-pr | --program-p) 987 ac_prev=program_prefix ;; 988 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 990 program_prefix=$ac_optarg ;; 991 992 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 993 | --program-suf | --program-su | --program-s) 994 ac_prev=program_suffix ;; 995 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 997 program_suffix=$ac_optarg ;; 998 999 -program-transform-name | --program-transform-name \ 1000 | --program-transform-nam | --program-transform-na \ 1001 | --program-transform-n | --program-transform- \ 1002 | --program-transform | --program-transfor \ 1003 | --program-transfo | --program-transf \ 1004 | --program-trans | --program-tran \ 1005 | --progr-tra | --program-tr | --program-t) 1006 ac_prev=program_transform_name ;; 1007 -program-transform-name=* | --program-transform-name=* \ 1008 | --program-transform-nam=* | --program-transform-na=* \ 1009 | --program-transform-n=* | --program-transform-=* \ 1010 | --program-transform=* | --program-transfor=* \ 1011 | --program-transfo=* | --program-transf=* \ 1012 | --program-trans=* | --program-tran=* \ 1013 | --progr-tra=* | --program-tr=* | --program-t=*) 1014 program_transform_name=$ac_optarg ;; 1015 1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1017 ac_prev=pdfdir ;; 1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1019 pdfdir=$ac_optarg ;; 1020 1021 -psdir | --psdir | --psdi | --psd | --ps) 1022 ac_prev=psdir ;; 1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1024 psdir=$ac_optarg ;; 1025 1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1027 | -silent | --silent | --silen | --sile | --sil) 1028 silent=yes ;; 1029 1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1031 ac_prev=sbindir ;; 1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1033 | --sbi=* | --sb=*) 1034 sbindir=$ac_optarg ;; 1035 1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1038 | --sharedst | --shareds | --shared | --share | --shar \ 1039 | --sha | --sh) 1040 ac_prev=sharedstatedir ;; 1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1044 | --sha=* | --sh=*) 1045 sharedstatedir=$ac_optarg ;; 1046 1047 -site | --site | --sit) 1048 ac_prev=site ;; 1049 -site=* | --site=* | --sit=*) 1050 site=$ac_optarg ;; 1051 1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1053 ac_prev=srcdir ;; 1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1055 srcdir=$ac_optarg ;; 1056 1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1058 | --syscon | --sysco | --sysc | --sys | --sy) 1059 ac_prev=sysconfdir ;; 1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1062 sysconfdir=$ac_optarg ;; 1063 1064 -target | --target | --targe | --targ | --tar | --ta | --t) 1065 ac_prev=target_alias ;; 1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1067 target_alias=$ac_optarg ;; 1068 1069 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1070 verbose=yes ;; 1071 1072 -version | --version | --versio | --versi | --vers | -V) 1073 ac_init_version=: ;; 1074 1075 -with-* | --with-*) 1076 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1077 # Reject names that are not valid shell variable names. 1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1079 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1080 { (exit 1); exit 1; }; } 1081 ac_useropt_orig=$ac_useropt 1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1083 case $ac_user_opts in 1084 *" 1085"with_$ac_useropt" 1086"*) ;; 1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1088 ac_unrecognized_sep=', ';; 1089 esac 1090 eval with_$ac_useropt=\$ac_optarg ;; 1091 1092 -without-* | --without-*) 1093 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1094 # Reject names that are not valid shell variable names. 1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1096 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1097 { (exit 1); exit 1; }; } 1098 ac_useropt_orig=$ac_useropt 1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1100 case $ac_user_opts in 1101 *" 1102"with_$ac_useropt" 1103"*) ;; 1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1105 ac_unrecognized_sep=', ';; 1106 esac 1107 eval with_$ac_useropt=no ;; 1108 1109 --x) 1110 # Obsolete; use --with-x. 1111 with_x=yes ;; 1112 1113 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1114 | --x-incl | --x-inc | --x-in | --x-i) 1115 ac_prev=x_includes ;; 1116 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1117 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1118 x_includes=$ac_optarg ;; 1119 1120 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1121 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1122 ac_prev=x_libraries ;; 1123 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1124 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1125 x_libraries=$ac_optarg ;; 1126 1127 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1128Try \`$0 --help' for more information." >&2 1129 { (exit 1); exit 1; }; } 1130 ;; 1131 1132 *=*) 1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1134 # Reject names that are not valid shell variable names. 1135 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1136 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1137 { (exit 1); exit 1; }; } 1138 eval $ac_envvar=\$ac_optarg 1139 export $ac_envvar ;; 1140 1141 *) 1142 # FIXME: should be removed in autoconf 3.0. 1143 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1145 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1146 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1147 ;; 1148 1149 esac 1150done 1151 1152if test -n "$ac_prev"; then 1153 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1154 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1155 { (exit 1); exit 1; }; } 1156fi 1157 1158if test -n "$ac_unrecognized_opts"; then 1159 case $enable_option_checking in 1160 no) ;; 1161 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1162 { (exit 1); exit 1; }; } ;; 1163 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1164 esac 1165fi 1166 1167# Check all directory arguments for consistency. 1168for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1169 datadir sysconfdir sharedstatedir localstatedir includedir \ 1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1171 libdir localedir mandir 1172do 1173 eval ac_val=\$$ac_var 1174 # Remove trailing slashes. 1175 case $ac_val in 1176 */ ) 1177 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1178 eval $ac_var=\$ac_val;; 1179 esac 1180 # Be sure to have absolute directory names. 1181 case $ac_val in 1182 [\\/$]* | ?:[\\/]* ) continue;; 1183 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1184 esac 1185 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1186 { (exit 1); exit 1; }; } 1187done 1188 1189# There might be people who depend on the old broken behavior: `$host' 1190# used to hold the argument of --host etc. 1191# FIXME: To remove some day. 1192build=$build_alias 1193host=$host_alias 1194target=$target_alias 1195 1196# FIXME: To remove some day. 1197if test "x$host_alias" != x; then 1198 if test "x$build_alias" = x; then 1199 cross_compiling=maybe 1200 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1201 If a cross compiler is detected then cross compile mode will be used." >&2 1202 elif test "x$build_alias" != "x$host_alias"; then 1203 cross_compiling=yes 1204 fi 1205fi 1206 1207ac_tool_prefix= 1208test -n "$host_alias" && ac_tool_prefix=$host_alias- 1209 1210test "$silent" = yes && exec 6>/dev/null 1211 1212 1213ac_pwd=`pwd` && test -n "$ac_pwd" && 1214ac_ls_di=`ls -di .` && 1215ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1216 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1217 { (exit 1); exit 1; }; } 1218test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1219 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1220 { (exit 1); exit 1; }; } 1221 1222 1223# Find the source files, if location was not specified. 1224if test -z "$srcdir"; then 1225 ac_srcdir_defaulted=yes 1226 # Try the directory containing this script, then the parent directory. 1227 ac_confdir=`$as_dirname -- "$as_myself" || 1228$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1229 X"$as_myself" : 'X\(//\)[^/]' \| \ 1230 X"$as_myself" : 'X\(//\)$' \| \ 1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1232$as_echo X"$as_myself" | 1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1234 s//\1/ 1235 q 1236 } 1237 /^X\(\/\/\)[^/].*/{ 1238 s//\1/ 1239 q 1240 } 1241 /^X\(\/\/\)$/{ 1242 s//\1/ 1243 q 1244 } 1245 /^X\(\/\).*/{ 1246 s//\1/ 1247 q 1248 } 1249 s/.*/./; q'` 1250 srcdir=$ac_confdir 1251 if test ! -r "$srcdir/$ac_unique_file"; then 1252 srcdir=.. 1253 fi 1254else 1255 ac_srcdir_defaulted=no 1256fi 1257if test ! -r "$srcdir/$ac_unique_file"; then 1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1259 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1260 { (exit 1); exit 1; }; } 1261fi 1262ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1263ac_abs_confdir=`( 1264 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1265 { (exit 1); exit 1; }; } 1266 pwd)` 1267# When building in place, set srcdir=. 1268if test "$ac_abs_confdir" = "$ac_pwd"; then 1269 srcdir=. 1270fi 1271# Remove unnecessary trailing slashes from srcdir. 1272# Double slashes in file names in object file debugging info 1273# mess up M-x gdb in Emacs. 1274case $srcdir in 1275*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1276esac 1277for ac_var in $ac_precious_vars; do 1278 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1279 eval ac_env_${ac_var}_value=\$${ac_var} 1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1281 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1282done 1283 1284# 1285# Report the --help message. 1286# 1287if test "$ac_init_help" = "long"; then 1288 # Omit some internal or obsolete options to make the list less imposing. 1289 # This message is too long to be a string in the A/UX 3.1 sh. 1290 cat <<_ACEOF 1291\`configure' configures Spread_Util 4.2.0 to adapt to many kinds of systems. 1292 1293Usage: $0 [OPTION]... [VAR=VALUE]... 1294 1295To assign environment variables (e.g., CC, CFLAGS...), specify them as 1296VAR=VALUE. See below for descriptions of some of the useful variables. 1297 1298Defaults for the options are specified in brackets. 1299 1300Configuration: 1301 -h, --help display this help and exit 1302 --help=short display options specific to this package 1303 --help=recursive display the short help of all the included packages 1304 -V, --version display version information and exit 1305 -q, --quiet, --silent do not print \`checking...' messages 1306 --cache-file=FILE cache test results in FILE [disabled] 1307 -C, --config-cache alias for \`--cache-file=config.cache' 1308 -n, --no-create do not create output files 1309 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1310 1311Installation directories: 1312 --prefix=PREFIX install architecture-independent files in PREFIX 1313 [$ac_default_prefix] 1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1315 [PREFIX] 1316 1317By default, \`make install' will install all the files in 1318\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1319an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1320for instance \`--prefix=\$HOME'. 1321 1322For better control, use the options below. 1323 1324Fine tuning of the installation directories: 1325 --bindir=DIR user executables [EPREFIX/bin] 1326 --sbindir=DIR system admin executables [EPREFIX/sbin] 1327 --libexecdir=DIR program executables [EPREFIX/libexec] 1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1331 --libdir=DIR object code libraries [EPREFIX/lib] 1332 --includedir=DIR C header files [PREFIX/include] 1333 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1336 --infodir=DIR info documentation [DATAROOTDIR/info] 1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1338 --mandir=DIR man documentation [DATAROOTDIR/man] 1339 --docdir=DIR documentation root [DATAROOTDIR/doc/spread_util] 1340 --htmldir=DIR html documentation [DOCDIR] 1341 --dvidir=DIR dvi documentation [DOCDIR] 1342 --pdfdir=DIR pdf documentation [DOCDIR] 1343 --psdir=DIR ps documentation [DOCDIR] 1344_ACEOF 1345 1346 cat <<\_ACEOF 1347 1348System types: 1349 --build=BUILD configure for building on BUILD [guessed] 1350 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1351_ACEOF 1352fi 1353 1354if test -n "$ac_init_help"; then 1355 case $ac_init_help in 1356 short | recursive ) echo "Configuration of Spread_Util 4.2.0:";; 1357 esac 1358 cat <<\_ACEOF 1359 1360Optional Features: 1361 --disable-option-checking ignore unrecognized --enable/--with options 1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1364 --enable-threaded-alarm Turn on threaded Alarm call processing to move IO to 1365 separate thread 1366 --disable-function-name-lookup 1367 Disable the dladdr based function name lookups 1368 1369Optional Packages: 1370 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1371 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1372 --with-cflags Specify additional flags to pass to compiler 1373 --with-cppflags Specify additional flags to pass to preprocessor 1374 --with-ldflags Specify additional flags to pass to linker 1375 --with-libs Specify additional libraries to link with 1376 --with-mantype=man|cat|doc Set man page type 1377 --with-docdir=DIR Where to put the documentation 1378 1379Some influential environment variables: 1380 CC C compiler command 1381 CFLAGS C compiler flags 1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1383 nonstandard directory <lib dir> 1384 LIBS libraries to pass to the linker, e.g. -l<library> 1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1386 you have headers in a nonstandard directory <include dir> 1387 CPP C preprocessor 1388 1389Use these variables to override the choices made by `configure' or to help 1390it to find libraries and programs with nonstandard names/locations. 1391 1392_ACEOF 1393ac_status=$? 1394fi 1395 1396if test "$ac_init_help" = "recursive"; then 1397 # If there are subdirs, report their specific --help. 1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1399 test -d "$ac_dir" || 1400 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1401 continue 1402 ac_builddir=. 1403 1404case "$ac_dir" in 1405.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1406*) 1407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1408 # A ".." for each directory in $ac_dir_suffix. 1409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1410 case $ac_top_builddir_sub in 1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1413 esac ;; 1414esac 1415ac_abs_top_builddir=$ac_pwd 1416ac_abs_builddir=$ac_pwd$ac_dir_suffix 1417# for backward compatibility: 1418ac_top_builddir=$ac_top_build_prefix 1419 1420case $srcdir in 1421 .) # We are building in place. 1422 ac_srcdir=. 1423 ac_top_srcdir=$ac_top_builddir_sub 1424 ac_abs_top_srcdir=$ac_pwd ;; 1425 [\\/]* | ?:[\\/]* ) # Absolute name. 1426 ac_srcdir=$srcdir$ac_dir_suffix; 1427 ac_top_srcdir=$srcdir 1428 ac_abs_top_srcdir=$srcdir ;; 1429 *) # Relative name. 1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1431 ac_top_srcdir=$ac_top_build_prefix$srcdir 1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1433esac 1434ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1435 1436 cd "$ac_dir" || { ac_status=$?; continue; } 1437 # Check for guested configure. 1438 if test -f "$ac_srcdir/configure.gnu"; then 1439 echo && 1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1441 elif test -f "$ac_srcdir/configure"; then 1442 echo && 1443 $SHELL "$ac_srcdir/configure" --help=recursive 1444 else 1445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1446 fi || ac_status=$? 1447 cd "$ac_pwd" || { ac_status=$?; break; } 1448 done 1449fi 1450 1451test -n "$ac_init_help" && exit $ac_status 1452if $ac_init_version; then 1453 cat <<\_ACEOF 1454Spread_Util configure 4.2.0 1455generated by GNU Autoconf 2.62 1456 1457Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14582002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1459This configure script is free software; the Free Software Foundation 1460gives unlimited permission to copy, distribute and modify it. 1461_ACEOF 1462 exit 1463fi 1464cat >config.log <<_ACEOF 1465This file contains any messages produced by compilers while 1466running configure, to aid debugging if configure makes a mistake. 1467 1468It was created by Spread_Util $as_me 4.2.0, which was 1469generated by GNU Autoconf 2.62. Invocation command line was 1470 1471 $ $0 $@ 1472 1473_ACEOF 1474exec 5>>config.log 1475{ 1476cat <<_ASUNAME 1477## --------- ## 1478## Platform. ## 1479## --------- ## 1480 1481hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1482uname -m = `(uname -m) 2>/dev/null || echo unknown` 1483uname -r = `(uname -r) 2>/dev/null || echo unknown` 1484uname -s = `(uname -s) 2>/dev/null || echo unknown` 1485uname -v = `(uname -v) 2>/dev/null || echo unknown` 1486 1487/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1488/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1489 1490/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1491/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1492/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1493/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1494/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1495/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1496/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1497 1498_ASUNAME 1499 1500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1501for as_dir in $PATH 1502do 1503 IFS=$as_save_IFS 1504 test -z "$as_dir" && as_dir=. 1505 $as_echo "PATH: $as_dir" 1506done 1507IFS=$as_save_IFS 1508 1509} >&5 1510 1511cat >&5 <<_ACEOF 1512 1513 1514## ----------- ## 1515## Core tests. ## 1516## ----------- ## 1517 1518_ACEOF 1519 1520 1521# Keep a trace of the command line. 1522# Strip out --no-create and --no-recursion so they do not pile up. 1523# Strip out --silent because we don't want to record it for future runs. 1524# Also quote any args containing shell meta-characters. 1525# Make two passes to allow for proper duplicate-argument suppression. 1526ac_configure_args= 1527ac_configure_args0= 1528ac_configure_args1= 1529ac_must_keep_next=false 1530for ac_pass in 1 2 1531do 1532 for ac_arg 1533 do 1534 case $ac_arg in 1535 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1537 | -silent | --silent | --silen | --sile | --sil) 1538 continue ;; 1539 *\'*) 1540 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1541 esac 1542 case $ac_pass in 1543 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1544 2) 1545 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1546 if test $ac_must_keep_next = true; then 1547 ac_must_keep_next=false # Got value, back to normal. 1548 else 1549 case $ac_arg in 1550 *=* | --config-cache | -C | -disable-* | --disable-* \ 1551 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1552 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1553 | -with-* | --with-* | -without-* | --without-* | --x) 1554 case "$ac_configure_args0 " in 1555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1556 esac 1557 ;; 1558 -* ) ac_must_keep_next=true ;; 1559 esac 1560 fi 1561 ac_configure_args="$ac_configure_args '$ac_arg'" 1562 ;; 1563 esac 1564 done 1565done 1566$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1567$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1568 1569# When interrupted or exit'd, cleanup temporary files, and complete 1570# config.log. We remove comments because anyway the quotes in there 1571# would cause problems or look ugly. 1572# WARNING: Use '\'' to represent an apostrophe within the trap. 1573# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1574trap 'exit_status=$? 1575 # Save into config.log some information that might help in debugging. 1576 { 1577 echo 1578 1579 cat <<\_ASBOX 1580## ---------------- ## 1581## Cache variables. ## 1582## ---------------- ## 1583_ASBOX 1584 echo 1585 # The following way of writing the cache mishandles newlines in values, 1586( 1587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1588 eval ac_val=\$$ac_var 1589 case $ac_val in #( 1590 *${as_nl}*) 1591 case $ac_var in #( 1592 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1593$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1594 esac 1595 case $ac_var in #( 1596 _ | IFS | as_nl) ;; #( 1597 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1598 *) $as_unset $ac_var ;; 1599 esac ;; 1600 esac 1601 done 1602 (set) 2>&1 | 1603 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1604 *${as_nl}ac_space=\ *) 1605 sed -n \ 1606 "s/'\''/'\''\\\\'\'''\''/g; 1607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1608 ;; #( 1609 *) 1610 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1611 ;; 1612 esac | 1613 sort 1614) 1615 echo 1616 1617 cat <<\_ASBOX 1618## ----------------- ## 1619## Output variables. ## 1620## ----------------- ## 1621_ASBOX 1622 echo 1623 for ac_var in $ac_subst_vars 1624 do 1625 eval ac_val=\$$ac_var 1626 case $ac_val in 1627 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1628 esac 1629 $as_echo "$ac_var='\''$ac_val'\''" 1630 done | sort 1631 echo 1632 1633 if test -n "$ac_subst_files"; then 1634 cat <<\_ASBOX 1635## ------------------- ## 1636## File substitutions. ## 1637## ------------------- ## 1638_ASBOX 1639 echo 1640 for ac_var in $ac_subst_files 1641 do 1642 eval ac_val=\$$ac_var 1643 case $ac_val in 1644 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1645 esac 1646 $as_echo "$ac_var='\''$ac_val'\''" 1647 done | sort 1648 echo 1649 fi 1650 1651 if test -s confdefs.h; then 1652 cat <<\_ASBOX 1653## ----------- ## 1654## confdefs.h. ## 1655## ----------- ## 1656_ASBOX 1657 echo 1658 cat confdefs.h 1659 echo 1660 fi 1661 test "$ac_signal" != 0 && 1662 $as_echo "$as_me: caught signal $ac_signal" 1663 $as_echo "$as_me: exit $exit_status" 1664 } >&5 1665 rm -f core *.core core.conftest.* && 1666 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1667 exit $exit_status 1668' 0 1669for ac_signal in 1 2 13 15; do 1670 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1671done 1672ac_signal=0 1673 1674# confdefs.h avoids OS command line length limits that DEFS can exceed. 1675rm -f -r conftest* confdefs.h 1676 1677# Predefined preprocessor variables. 1678 1679cat >>confdefs.h <<_ACEOF 1680#define PACKAGE_NAME "$PACKAGE_NAME" 1681_ACEOF 1682 1683 1684cat >>confdefs.h <<_ACEOF 1685#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1686_ACEOF 1687 1688 1689cat >>confdefs.h <<_ACEOF 1690#define PACKAGE_VERSION "$PACKAGE_VERSION" 1691_ACEOF 1692 1693 1694cat >>confdefs.h <<_ACEOF 1695#define PACKAGE_STRING "$PACKAGE_STRING" 1696_ACEOF 1697 1698 1699cat >>confdefs.h <<_ACEOF 1700#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1701_ACEOF 1702 1703 1704# Let the site file select an alternate cache file if it wants to. 1705# Prefer an explicitly selected file to automatically selected ones. 1706ac_site_file1=NONE 1707ac_site_file2=NONE 1708if test -n "$CONFIG_SITE"; then 1709 ac_site_file1=$CONFIG_SITE 1710elif test "x$prefix" != xNONE; then 1711 ac_site_file1=$prefix/share/config.site 1712 ac_site_file2=$prefix/etc/config.site 1713else 1714 ac_site_file1=$ac_default_prefix/share/config.site 1715 ac_site_file2=$ac_default_prefix/etc/config.site 1716fi 1717for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1718do 1719 test "x$ac_site_file" = xNONE && continue 1720 if test -r "$ac_site_file"; then 1721 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1722$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1723 sed 's/^/| /' "$ac_site_file" >&5 1724 . "$ac_site_file" 1725 fi 1726done 1727 1728if test -r "$cache_file"; then 1729 # Some versions of bash will fail to source /dev/null (special 1730 # files actually), so we avoid doing that. 1731 if test -f "$cache_file"; then 1732 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1733$as_echo "$as_me: loading cache $cache_file" >&6;} 1734 case $cache_file in 1735 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1736 *) . "./$cache_file";; 1737 esac 1738 fi 1739else 1740 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1741$as_echo "$as_me: creating cache $cache_file" >&6;} 1742 >$cache_file 1743fi 1744 1745# Check that the precious variables saved in the cache have kept the same 1746# value. 1747ac_cache_corrupted=false 1748for ac_var in $ac_precious_vars; do 1749 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1750 eval ac_new_set=\$ac_env_${ac_var}_set 1751 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1752 eval ac_new_val=\$ac_env_${ac_var}_value 1753 case $ac_old_set,$ac_new_set in 1754 set,) 1755 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1756$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1757 ac_cache_corrupted=: ;; 1758 ,set) 1759 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1760$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1761 ac_cache_corrupted=: ;; 1762 ,);; 1763 *) 1764 if test "x$ac_old_val" != "x$ac_new_val"; then 1765 # differences in whitespace do not lead to failure. 1766 ac_old_val_w=`echo x $ac_old_val` 1767 ac_new_val_w=`echo x $ac_new_val` 1768 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1769 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1770$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1771 ac_cache_corrupted=: 1772 else 1773 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1774$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1775 eval $ac_var=\$ac_old_val 1776 fi 1777 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1778$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1779 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1780$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1781 fi;; 1782 esac 1783 # Pass precious variables to config.status. 1784 if test "$ac_new_set" = set; then 1785 case $ac_new_val in 1786 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1787 *) ac_arg=$ac_var=$ac_new_val ;; 1788 esac 1789 case " $ac_configure_args " in 1790 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1791 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1792 esac 1793 fi 1794done 1795if $ac_cache_corrupted; then 1796 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1797$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1798 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1799$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1800 { (exit 1); exit 1; }; } 1801fi 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827ac_ext=c 1828ac_cpp='$CPP $CPPFLAGS' 1829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1831ac_compiler_gnu=$ac_cv_c_compiler_gnu 1832 1833 1834 1835ac_aux_dir= 1836for ac_dir in buildtools "$srcdir"/buildtools; do 1837 if test -f "$ac_dir/install-sh"; then 1838 ac_aux_dir=$ac_dir 1839 ac_install_sh="$ac_aux_dir/install-sh -c" 1840 break 1841 elif test -f "$ac_dir/install.sh"; then 1842 ac_aux_dir=$ac_dir 1843 ac_install_sh="$ac_aux_dir/install.sh -c" 1844 break 1845 elif test -f "$ac_dir/shtool"; then 1846 ac_aux_dir=$ac_dir 1847 ac_install_sh="$ac_aux_dir/shtool install -c" 1848 break 1849 fi 1850done 1851if test -z "$ac_aux_dir"; then 1852 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in buildtools \"$srcdir\"/buildtools" >&5 1853$as_echo "$as_me: error: cannot find install-sh or install.sh in buildtools \"$srcdir\"/buildtools" >&2;} 1854 { (exit 1); exit 1; }; } 1855fi 1856 1857# These three variables are undocumented and unsupported, 1858# and are intended to be withdrawn in a future Autoconf release. 1859# They can cause serious problems if a builder's source tree is in a directory 1860# whose full name contains unusual characters. 1861ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1862ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1863ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1864 1865 1866ac_config_headers="$ac_config_headers src/config.h" 1867 1868 1869# Make sure we can run config.sub. 1870$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1871 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1872$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1873 { (exit 1); exit 1; }; } 1874 1875{ $as_echo "$as_me:$LINENO: checking build system type" >&5 1876$as_echo_n "checking build system type... " >&6; } 1877if test "${ac_cv_build+set}" = set; then 1878 $as_echo_n "(cached) " >&6 1879else 1880 ac_build_alias=$build_alias 1881test "x$ac_build_alias" = x && 1882 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1883test "x$ac_build_alias" = x && 1884 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1885$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1886 { (exit 1); exit 1; }; } 1887ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1888 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1889$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1890 { (exit 1); exit 1; }; } 1891 1892fi 1893{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1894$as_echo "$ac_cv_build" >&6; } 1895case $ac_cv_build in 1896*-*-*) ;; 1897*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1898$as_echo "$as_me: error: invalid value of canonical build" >&2;} 1899 { (exit 1); exit 1; }; };; 1900esac 1901build=$ac_cv_build 1902ac_save_IFS=$IFS; IFS='-' 1903set x $ac_cv_build 1904shift 1905build_cpu=$1 1906build_vendor=$2 1907shift; shift 1908# Remember, the first character of IFS is used to create $*, 1909# except with old shells: 1910build_os=$* 1911IFS=$ac_save_IFS 1912case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1913 1914 1915{ $as_echo "$as_me:$LINENO: checking host system type" >&5 1916$as_echo_n "checking host system type... " >&6; } 1917if test "${ac_cv_host+set}" = set; then 1918 $as_echo_n "(cached) " >&6 1919else 1920 if test "x$host_alias" = x; then 1921 ac_cv_host=$ac_cv_build 1922else 1923 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1924 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1925$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1926 { (exit 1); exit 1; }; } 1927fi 1928 1929fi 1930{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1931$as_echo "$ac_cv_host" >&6; } 1932case $ac_cv_host in 1933*-*-*) ;; 1934*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1935$as_echo "$as_me: error: invalid value of canonical host" >&2;} 1936 { (exit 1); exit 1; }; };; 1937esac 1938host=$ac_cv_host 1939ac_save_IFS=$IFS; IFS='-' 1940set x $ac_cv_host 1941shift 1942host_cpu=$1 1943host_vendor=$2 1944shift; shift 1945# Remember, the first character of IFS is used to create $*, 1946# except with old shells: 1947host_os=$* 1948IFS=$ac_save_IFS 1949case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1950 1951 1952 1953case "$host" in 1954mips-sgi-irix* ) 1955 CC=cc 1956 CFLAGS="-n32 -signed" 1957 ;; 1958esac 1959 1960ac_ext=c 1961ac_cpp='$CPP $CPPFLAGS' 1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1964ac_compiler_gnu=$ac_cv_c_compiler_gnu 1965if test -n "$ac_tool_prefix"; then 1966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1967set dummy ${ac_tool_prefix}gcc; ac_word=$2 1968{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 1969$as_echo_n "checking for $ac_word... " >&6; } 1970if test "${ac_cv_prog_CC+set}" = set; then 1971 $as_echo_n "(cached) " >&6 1972else 1973 if test -n "$CC"; then 1974 ac_cv_prog_CC="$CC" # Let the user override the test. 1975else 1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1977for as_dir in $PATH 1978do 1979 IFS=$as_save_IFS 1980 test -z "$as_dir" && as_dir=. 1981 for ac_exec_ext in '' $ac_executable_extensions; do 1982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1983 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1985 break 2 1986 fi 1987done 1988done 1989IFS=$as_save_IFS 1990 1991fi 1992fi 1993CC=$ac_cv_prog_CC 1994if test -n "$CC"; then 1995 { $as_echo "$as_me:$LINENO: result: $CC" >&5 1996$as_echo "$CC" >&6; } 1997else 1998 { $as_echo "$as_me:$LINENO: result: no" >&5 1999$as_echo "no" >&6; } 2000fi 2001 2002 2003fi 2004if test -z "$ac_cv_prog_CC"; then 2005 ac_ct_CC=$CC 2006 # Extract the first word of "gcc", so it can be a program name with args. 2007set dummy gcc; ac_word=$2 2008{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2009$as_echo_n "checking for $ac_word... " >&6; } 2010if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2011 $as_echo_n "(cached) " >&6 2012else 2013 if test -n "$ac_ct_CC"; then 2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2015else 2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2017for as_dir in $PATH 2018do 2019 IFS=$as_save_IFS 2020 test -z "$as_dir" && as_dir=. 2021 for ac_exec_ext in '' $ac_executable_extensions; do 2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2023 ac_cv_prog_ac_ct_CC="gcc" 2024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2025 break 2 2026 fi 2027done 2028done 2029IFS=$as_save_IFS 2030 2031fi 2032fi 2033ac_ct_CC=$ac_cv_prog_ac_ct_CC 2034if test -n "$ac_ct_CC"; then 2035 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2036$as_echo "$ac_ct_CC" >&6; } 2037else 2038 { $as_echo "$as_me:$LINENO: result: no" >&5 2039$as_echo "no" >&6; } 2040fi 2041 2042 if test "x$ac_ct_CC" = x; then 2043 CC="" 2044 else 2045 case $cross_compiling:$ac_tool_warned in 2046yes:) 2047{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2048whose name does not start with the host triplet. If you think this 2049configuration is useful to you, please write to autoconf@gnu.org." >&5 2050$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2051whose name does not start with the host triplet. If you think this 2052configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2053ac_tool_warned=yes ;; 2054esac 2055 CC=$ac_ct_CC 2056 fi 2057else 2058 CC="$ac_cv_prog_CC" 2059fi 2060 2061if test -z "$CC"; then 2062 if test -n "$ac_tool_prefix"; then 2063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2064set dummy ${ac_tool_prefix}cc; ac_word=$2 2065{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2066$as_echo_n "checking for $ac_word... " >&6; } 2067if test "${ac_cv_prog_CC+set}" = set; then 2068 $as_echo_n "(cached) " >&6 2069else 2070 if test -n "$CC"; then 2071 ac_cv_prog_CC="$CC" # Let the user override the test. 2072else 2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2074for as_dir in $PATH 2075do 2076 IFS=$as_save_IFS 2077 test -z "$as_dir" && as_dir=. 2078 for ac_exec_ext in '' $ac_executable_extensions; do 2079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2080 ac_cv_prog_CC="${ac_tool_prefix}cc" 2081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2082 break 2 2083 fi 2084done 2085done 2086IFS=$as_save_IFS 2087 2088fi 2089fi 2090CC=$ac_cv_prog_CC 2091if test -n "$CC"; then 2092 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2093$as_echo "$CC" >&6; } 2094else 2095 { $as_echo "$as_me:$LINENO: result: no" >&5 2096$as_echo "no" >&6; } 2097fi 2098 2099 2100 fi 2101fi 2102if test -z "$CC"; then 2103 # Extract the first word of "cc", so it can be a program name with args. 2104set dummy cc; ac_word=$2 2105{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2106$as_echo_n "checking for $ac_word... " >&6; } 2107if test "${ac_cv_prog_CC+set}" = set; then 2108 $as_echo_n "(cached) " >&6 2109else 2110 if test -n "$CC"; then 2111 ac_cv_prog_CC="$CC" # Let the user override the test. 2112else 2113 ac_prog_rejected=no 2114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2115for as_dir in $PATH 2116do 2117 IFS=$as_save_IFS 2118 test -z "$as_dir" && as_dir=. 2119 for ac_exec_ext in '' $ac_executable_extensions; do 2120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2122 ac_prog_rejected=yes 2123 continue 2124 fi 2125 ac_cv_prog_CC="cc" 2126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2127 break 2 2128 fi 2129done 2130done 2131IFS=$as_save_IFS 2132 2133if test $ac_prog_rejected = yes; then 2134 # We found a bogon in the path, so make sure we never use it. 2135 set dummy $ac_cv_prog_CC 2136 shift 2137 if test $# != 0; then 2138 # We chose a different compiler from the bogus one. 2139 # However, it has the same basename, so the bogon will be chosen 2140 # first if we set CC to just the basename; use the full file name. 2141 shift 2142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2143 fi 2144fi 2145fi 2146fi 2147CC=$ac_cv_prog_CC 2148if test -n "$CC"; then 2149 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2150$as_echo "$CC" >&6; } 2151else 2152 { $as_echo "$as_me:$LINENO: result: no" >&5 2153$as_echo "no" >&6; } 2154fi 2155 2156 2157fi 2158if test -z "$CC"; then 2159 if test -n "$ac_tool_prefix"; then 2160 for ac_prog in cl.exe 2161 do 2162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2163set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2164{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2165$as_echo_n "checking for $ac_word... " >&6; } 2166if test "${ac_cv_prog_CC+set}" = set; then 2167 $as_echo_n "(cached) " >&6 2168else 2169 if test -n "$CC"; then 2170 ac_cv_prog_CC="$CC" # Let the user override the test. 2171else 2172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2173for as_dir in $PATH 2174do 2175 IFS=$as_save_IFS 2176 test -z "$as_dir" && as_dir=. 2177 for ac_exec_ext in '' $ac_executable_extensions; do 2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2181 break 2 2182 fi 2183done 2184done 2185IFS=$as_save_IFS 2186 2187fi 2188fi 2189CC=$ac_cv_prog_CC 2190if test -n "$CC"; then 2191 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2192$as_echo "$CC" >&6; } 2193else 2194 { $as_echo "$as_me:$LINENO: result: no" >&5 2195$as_echo "no" >&6; } 2196fi 2197 2198 2199 test -n "$CC" && break 2200 done 2201fi 2202if test -z "$CC"; then 2203 ac_ct_CC=$CC 2204 for ac_prog in cl.exe 2205do 2206 # Extract the first word of "$ac_prog", so it can be a program name with args. 2207set dummy $ac_prog; ac_word=$2 2208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2209$as_echo_n "checking for $ac_word... " >&6; } 2210if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2211 $as_echo_n "(cached) " >&6 2212else 2213 if test -n "$ac_ct_CC"; then 2214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2215else 2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2217for as_dir in $PATH 2218do 2219 IFS=$as_save_IFS 2220 test -z "$as_dir" && as_dir=. 2221 for ac_exec_ext in '' $ac_executable_extensions; do 2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2223 ac_cv_prog_ac_ct_CC="$ac_prog" 2224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2225 break 2 2226 fi 2227done 2228done 2229IFS=$as_save_IFS 2230 2231fi 2232fi 2233ac_ct_CC=$ac_cv_prog_ac_ct_CC 2234if test -n "$ac_ct_CC"; then 2235 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2236$as_echo "$ac_ct_CC" >&6; } 2237else 2238 { $as_echo "$as_me:$LINENO: result: no" >&5 2239$as_echo "no" >&6; } 2240fi 2241 2242 2243 test -n "$ac_ct_CC" && break 2244done 2245 2246 if test "x$ac_ct_CC" = x; then 2247 CC="" 2248 else 2249 case $cross_compiling:$ac_tool_warned in 2250yes:) 2251{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2252whose name does not start with the host triplet. If you think this 2253configuration is useful to you, please write to autoconf@gnu.org." >&5 2254$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2255whose name does not start with the host triplet. If you think this 2256configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2257ac_tool_warned=yes ;; 2258esac 2259 CC=$ac_ct_CC 2260 fi 2261fi 2262 2263fi 2264 2265 2266test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2267See \`config.log' for more details." >&5 2268$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2269See \`config.log' for more details." >&2;} 2270 { (exit 1); exit 1; }; } 2271 2272# Provide some information about the compiler. 2273$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2274set X $ac_compile 2275ac_compiler=$2 2276{ (ac_try="$ac_compiler --version >&5" 2277case "(($ac_try" in 2278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2279 *) ac_try_echo=$ac_try;; 2280esac 2281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2282$as_echo "$ac_try_echo") >&5 2283 (eval "$ac_compiler --version >&5") 2>&5 2284 ac_status=$? 2285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2286 (exit $ac_status); } 2287{ (ac_try="$ac_compiler -v >&5" 2288case "(($ac_try" in 2289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2290 *) ac_try_echo=$ac_try;; 2291esac 2292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2293$as_echo "$ac_try_echo") >&5 2294 (eval "$ac_compiler -v >&5") 2>&5 2295 ac_status=$? 2296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2297 (exit $ac_status); } 2298{ (ac_try="$ac_compiler -V >&5" 2299case "(($ac_try" in 2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2301 *) ac_try_echo=$ac_try;; 2302esac 2303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2304$as_echo "$ac_try_echo") >&5 2305 (eval "$ac_compiler -V >&5") 2>&5 2306 ac_status=$? 2307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2308 (exit $ac_status); } 2309 2310cat >conftest.$ac_ext <<_ACEOF 2311/* confdefs.h. */ 2312_ACEOF 2313cat confdefs.h >>conftest.$ac_ext 2314cat >>conftest.$ac_ext <<_ACEOF 2315/* end confdefs.h. */ 2316 2317int 2318main () 2319{ 2320 2321 ; 2322 return 0; 2323} 2324_ACEOF 2325ac_clean_files_save=$ac_clean_files 2326ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2327# Try to create an executable without -o first, disregard a.out. 2328# It will help us diagnose broken compilers, and finding out an intuition 2329# of exeext. 2330{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2331$as_echo_n "checking for C compiler default output file name... " >&6; } 2332ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2333 2334# The possible output files: 2335ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2336 2337ac_rmfiles= 2338for ac_file in $ac_files 2339do 2340 case $ac_file in 2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2342 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2343 esac 2344done 2345rm -f $ac_rmfiles 2346 2347if { (ac_try="$ac_link_default" 2348case "(($ac_try" in 2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2350 *) ac_try_echo=$ac_try;; 2351esac 2352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2353$as_echo "$ac_try_echo") >&5 2354 (eval "$ac_link_default") 2>&5 2355 ac_status=$? 2356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2357 (exit $ac_status); }; then 2358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2359# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2360# in a Makefile. We should not override ac_cv_exeext if it was cached, 2361# so that the user can short-circuit this test for compilers unknown to 2362# Autoconf. 2363for ac_file in $ac_files '' 2364do 2365 test -f "$ac_file" || continue 2366 case $ac_file in 2367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2368 ;; 2369 [ab].out ) 2370 # We found the default executable, but exeext='' is most 2371 # certainly right. 2372 break;; 2373 *.* ) 2374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2375 then :; else 2376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2377 fi 2378 # We set ac_cv_exeext here because the later test for it is not 2379 # safe: cross compilers may not add the suffix if given an `-o' 2380 # argument, so we may need to know it at that point already. 2381 # Even if this section looks crufty: it has the advantage of 2382 # actually working. 2383 break;; 2384 * ) 2385 break;; 2386 esac 2387done 2388test "$ac_cv_exeext" = no && ac_cv_exeext= 2389 2390else 2391 ac_file='' 2392fi 2393 2394{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2395$as_echo "$ac_file" >&6; } 2396if test -z "$ac_file"; then 2397 $as_echo "$as_me: failed program was:" >&5 2398sed 's/^/| /' conftest.$ac_ext >&5 2399 2400{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2401See \`config.log' for more details." >&5 2402$as_echo "$as_me: error: C compiler cannot create executables 2403See \`config.log' for more details." >&2;} 2404 { (exit 77); exit 77; }; } 2405fi 2406 2407ac_exeext=$ac_cv_exeext 2408 2409# Check that the compiler produces executables we can run. If not, either 2410# the compiler is broken, or we cross compile. 2411{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2412$as_echo_n "checking whether the C compiler works... " >&6; } 2413# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2414# If not cross compiling, check that we can run a simple program. 2415if test "$cross_compiling" != yes; then 2416 if { ac_try='./$ac_file' 2417 { (case "(($ac_try" in 2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2419 *) ac_try_echo=$ac_try;; 2420esac 2421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2422$as_echo "$ac_try_echo") >&5 2423 (eval "$ac_try") 2>&5 2424 ac_status=$? 2425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2426 (exit $ac_status); }; }; then 2427 cross_compiling=no 2428 else 2429 if test "$cross_compiling" = maybe; then 2430 cross_compiling=yes 2431 else 2432 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2433If you meant to cross compile, use \`--host'. 2434See \`config.log' for more details." >&5 2435$as_echo "$as_me: error: cannot run C compiled programs. 2436If you meant to cross compile, use \`--host'. 2437See \`config.log' for more details." >&2;} 2438 { (exit 1); exit 1; }; } 2439 fi 2440 fi 2441fi 2442{ $as_echo "$as_me:$LINENO: result: yes" >&5 2443$as_echo "yes" >&6; } 2444 2445rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2446ac_clean_files=$ac_clean_files_save 2447# Check that the compiler produces executables we can run. If not, either 2448# the compiler is broken, or we cross compile. 2449{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2450$as_echo_n "checking whether we are cross compiling... " >&6; } 2451{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2452$as_echo "$cross_compiling" >&6; } 2453 2454{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2455$as_echo_n "checking for suffix of executables... " >&6; } 2456if { (ac_try="$ac_link" 2457case "(($ac_try" in 2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2459 *) ac_try_echo=$ac_try;; 2460esac 2461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2462$as_echo "$ac_try_echo") >&5 2463 (eval "$ac_link") 2>&5 2464 ac_status=$? 2465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2466 (exit $ac_status); }; then 2467 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2468# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2469# work properly (i.e., refer to `conftest.exe'), while it won't with 2470# `rm'. 2471for ac_file in conftest.exe conftest conftest.*; do 2472 test -f "$ac_file" || continue 2473 case $ac_file in 2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2475 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2476 break;; 2477 * ) break;; 2478 esac 2479done 2480else 2481 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2482See \`config.log' for more details." >&5 2483$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2484See \`config.log' for more details." >&2;} 2485 { (exit 1); exit 1; }; } 2486fi 2487 2488rm -f conftest$ac_cv_exeext 2489{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2490$as_echo "$ac_cv_exeext" >&6; } 2491 2492rm -f conftest.$ac_ext 2493EXEEXT=$ac_cv_exeext 2494ac_exeext=$EXEEXT 2495{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2496$as_echo_n "checking for suffix of object files... " >&6; } 2497if test "${ac_cv_objext+set}" = set; then 2498 $as_echo_n "(cached) " >&6 2499else 2500 cat >conftest.$ac_ext <<_ACEOF 2501/* confdefs.h. */ 2502_ACEOF 2503cat confdefs.h >>conftest.$ac_ext 2504cat >>conftest.$ac_ext <<_ACEOF 2505/* end confdefs.h. */ 2506 2507int 2508main () 2509{ 2510 2511 ; 2512 return 0; 2513} 2514_ACEOF 2515rm -f conftest.o conftest.obj 2516if { (ac_try="$ac_compile" 2517case "(($ac_try" in 2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2519 *) ac_try_echo=$ac_try;; 2520esac 2521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2522$as_echo "$ac_try_echo") >&5 2523 (eval "$ac_compile") 2>&5 2524 ac_status=$? 2525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2526 (exit $ac_status); }; then 2527 for ac_file in conftest.o conftest.obj conftest.*; do 2528 test -f "$ac_file" || continue; 2529 case $ac_file in 2530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2532 break;; 2533 esac 2534done 2535else 2536 $as_echo "$as_me: failed program was:" >&5 2537sed 's/^/| /' conftest.$ac_ext >&5 2538 2539{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2540See \`config.log' for more details." >&5 2541$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2542See \`config.log' for more details." >&2;} 2543 { (exit 1); exit 1; }; } 2544fi 2545 2546rm -f conftest.$ac_cv_objext conftest.$ac_ext 2547fi 2548{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2549$as_echo "$ac_cv_objext" >&6; } 2550OBJEXT=$ac_cv_objext 2551ac_objext=$OBJEXT 2552{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2553$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2554if test "${ac_cv_c_compiler_gnu+set}" = set; then 2555 $as_echo_n "(cached) " >&6 2556else 2557 cat >conftest.$ac_ext <<_ACEOF 2558/* confdefs.h. */ 2559_ACEOF 2560cat confdefs.h >>conftest.$ac_ext 2561cat >>conftest.$ac_ext <<_ACEOF 2562/* end confdefs.h. */ 2563 2564int 2565main () 2566{ 2567#ifndef __GNUC__ 2568 choke me 2569#endif 2570 2571 ; 2572 return 0; 2573} 2574_ACEOF 2575rm -f conftest.$ac_objext 2576if { (ac_try="$ac_compile" 2577case "(($ac_try" in 2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2579 *) ac_try_echo=$ac_try;; 2580esac 2581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2582$as_echo "$ac_try_echo") >&5 2583 (eval "$ac_compile") 2>conftest.er1 2584 ac_status=$? 2585 grep -v '^ *+' conftest.er1 >conftest.err 2586 rm -f conftest.er1 2587 cat conftest.err >&5 2588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2589 (exit $ac_status); } && { 2590 test -z "$ac_c_werror_flag" || 2591 test ! -s conftest.err 2592 } && test -s conftest.$ac_objext; then 2593 ac_compiler_gnu=yes 2594else 2595 $as_echo "$as_me: failed program was:" >&5 2596sed 's/^/| /' conftest.$ac_ext >&5 2597 2598 ac_compiler_gnu=no 2599fi 2600 2601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2602ac_cv_c_compiler_gnu=$ac_compiler_gnu 2603 2604fi 2605{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2606$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2607if test $ac_compiler_gnu = yes; then 2608 GCC=yes 2609else 2610 GCC= 2611fi 2612ac_test_CFLAGS=${CFLAGS+set} 2613ac_save_CFLAGS=$CFLAGS 2614{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2615$as_echo_n "checking whether $CC accepts -g... " >&6; } 2616if test "${ac_cv_prog_cc_g+set}" = set; then 2617 $as_echo_n "(cached) " >&6 2618else 2619 ac_save_c_werror_flag=$ac_c_werror_flag 2620 ac_c_werror_flag=yes 2621 ac_cv_prog_cc_g=no 2622 CFLAGS="-g" 2623 cat >conftest.$ac_ext <<_ACEOF 2624/* confdefs.h. */ 2625_ACEOF 2626cat confdefs.h >>conftest.$ac_ext 2627cat >>conftest.$ac_ext <<_ACEOF 2628/* end confdefs.h. */ 2629 2630int 2631main () 2632{ 2633 2634 ; 2635 return 0; 2636} 2637_ACEOF 2638rm -f conftest.$ac_objext 2639if { (ac_try="$ac_compile" 2640case "(($ac_try" in 2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2642 *) ac_try_echo=$ac_try;; 2643esac 2644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2645$as_echo "$ac_try_echo") >&5 2646 (eval "$ac_compile") 2>conftest.er1 2647 ac_status=$? 2648 grep -v '^ *+' conftest.er1 >conftest.err 2649 rm -f conftest.er1 2650 cat conftest.err >&5 2651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2652 (exit $ac_status); } && { 2653 test -z "$ac_c_werror_flag" || 2654 test ! -s conftest.err 2655 } && test -s conftest.$ac_objext; then 2656 ac_cv_prog_cc_g=yes 2657else 2658 $as_echo "$as_me: failed program was:" >&5 2659sed 's/^/| /' conftest.$ac_ext >&5 2660 2661 CFLAGS="" 2662 cat >conftest.$ac_ext <<_ACEOF 2663/* confdefs.h. */ 2664_ACEOF 2665cat confdefs.h >>conftest.$ac_ext 2666cat >>conftest.$ac_ext <<_ACEOF 2667/* end confdefs.h. */ 2668 2669int 2670main () 2671{ 2672 2673 ; 2674 return 0; 2675} 2676_ACEOF 2677rm -f conftest.$ac_objext 2678if { (ac_try="$ac_compile" 2679case "(($ac_try" in 2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2681 *) ac_try_echo=$ac_try;; 2682esac 2683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2684$as_echo "$ac_try_echo") >&5 2685 (eval "$ac_compile") 2>conftest.er1 2686 ac_status=$? 2687 grep -v '^ *+' conftest.er1 >conftest.err 2688 rm -f conftest.er1 2689 cat conftest.err >&5 2690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2691 (exit $ac_status); } && { 2692 test -z "$ac_c_werror_flag" || 2693 test ! -s conftest.err 2694 } && test -s conftest.$ac_objext; then 2695 : 2696else 2697 $as_echo "$as_me: failed program was:" >&5 2698sed 's/^/| /' conftest.$ac_ext >&5 2699 2700 ac_c_werror_flag=$ac_save_c_werror_flag 2701 CFLAGS="-g" 2702 cat >conftest.$ac_ext <<_ACEOF 2703/* confdefs.h. */ 2704_ACEOF 2705cat confdefs.h >>conftest.$ac_ext 2706cat >>conftest.$ac_ext <<_ACEOF 2707/* end confdefs.h. */ 2708 2709int 2710main () 2711{ 2712 2713 ; 2714 return 0; 2715} 2716_ACEOF 2717rm -f conftest.$ac_objext 2718if { (ac_try="$ac_compile" 2719case "(($ac_try" in 2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2721 *) ac_try_echo=$ac_try;; 2722esac 2723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2724$as_echo "$ac_try_echo") >&5 2725 (eval "$ac_compile") 2>conftest.er1 2726 ac_status=$? 2727 grep -v '^ *+' conftest.er1 >conftest.err 2728 rm -f conftest.er1 2729 cat conftest.err >&5 2730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2731 (exit $ac_status); } && { 2732 test -z "$ac_c_werror_flag" || 2733 test ! -s conftest.err 2734 } && test -s conftest.$ac_objext; then 2735 ac_cv_prog_cc_g=yes 2736else 2737 $as_echo "$as_me: failed program was:" >&5 2738sed 's/^/| /' conftest.$ac_ext >&5 2739 2740 2741fi 2742 2743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2744fi 2745 2746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2747fi 2748 2749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2750 ac_c_werror_flag=$ac_save_c_werror_flag 2751fi 2752{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2753$as_echo "$ac_cv_prog_cc_g" >&6; } 2754if test "$ac_test_CFLAGS" = set; then 2755 CFLAGS=$ac_save_CFLAGS 2756elif test $ac_cv_prog_cc_g = yes; then 2757 if test "$GCC" = yes; then 2758 CFLAGS="-g -O2" 2759 else 2760 CFLAGS="-g" 2761 fi 2762else 2763 if test "$GCC" = yes; then 2764 CFLAGS="-O2" 2765 else 2766 CFLAGS= 2767 fi 2768fi 2769{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2770$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2771if test "${ac_cv_prog_cc_c89+set}" = set; then 2772 $as_echo_n "(cached) " >&6 2773else 2774 ac_cv_prog_cc_c89=no 2775ac_save_CC=$CC 2776cat >conftest.$ac_ext <<_ACEOF 2777/* confdefs.h. */ 2778_ACEOF 2779cat confdefs.h >>conftest.$ac_ext 2780cat >>conftest.$ac_ext <<_ACEOF 2781/* end confdefs.h. */ 2782#include <stdarg.h> 2783#include <stdio.h> 2784#include <sys/types.h> 2785#include <sys/stat.h> 2786/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2787struct buf { int x; }; 2788FILE * (*rcsopen) (struct buf *, struct stat *, int); 2789static char *e (p, i) 2790 char **p; 2791 int i; 2792{ 2793 return p[i]; 2794} 2795static char *f (char * (*g) (char **, int), char **p, ...) 2796{ 2797 char *s; 2798 va_list v; 2799 va_start (v,p); 2800 s = g (p, va_arg (v,int)); 2801 va_end (v); 2802 return s; 2803} 2804 2805/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2806 function prototypes and stuff, but not '\xHH' hex character constants. 2807 These don't provoke an error unfortunately, instead are silently treated 2808 as 'x'. The following induces an error, until -std is added to get 2809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2810 array size at least. It's necessary to write '\x00'==0 to get something 2811 that's true only with -std. */ 2812int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2813 2814/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2815 inside strings and character constants. */ 2816#define FOO(x) 'x' 2817int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2818 2819int test (int i, double x); 2820struct s1 {int (*f) (int a);}; 2821struct s2 {int (*f) (double a);}; 2822int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2823int argc; 2824char **argv; 2825int 2826main () 2827{ 2828return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2829 ; 2830 return 0; 2831} 2832_ACEOF 2833for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2835do 2836 CC="$ac_save_CC $ac_arg" 2837 rm -f conftest.$ac_objext 2838if { (ac_try="$ac_compile" 2839case "(($ac_try" in 2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2841 *) ac_try_echo=$ac_try;; 2842esac 2843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2844$as_echo "$ac_try_echo") >&5 2845 (eval "$ac_compile") 2>conftest.er1 2846 ac_status=$? 2847 grep -v '^ *+' conftest.er1 >conftest.err 2848 rm -f conftest.er1 2849 cat conftest.err >&5 2850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2851 (exit $ac_status); } && { 2852 test -z "$ac_c_werror_flag" || 2853 test ! -s conftest.err 2854 } && test -s conftest.$ac_objext; then 2855 ac_cv_prog_cc_c89=$ac_arg 2856else 2857 $as_echo "$as_me: failed program was:" >&5 2858sed 's/^/| /' conftest.$ac_ext >&5 2859 2860 2861fi 2862 2863rm -f core conftest.err conftest.$ac_objext 2864 test "x$ac_cv_prog_cc_c89" != "xno" && break 2865done 2866rm -f conftest.$ac_ext 2867CC=$ac_save_CC 2868 2869fi 2870# AC_CACHE_VAL 2871case "x$ac_cv_prog_cc_c89" in 2872 x) 2873 { $as_echo "$as_me:$LINENO: result: none needed" >&5 2874$as_echo "none needed" >&6; } ;; 2875 xno) 2876 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 2877$as_echo "unsupported" >&6; } ;; 2878 *) 2879 CC="$CC $ac_cv_prog_cc_c89" 2880 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2881$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2882esac 2883 2884 2885ac_ext=c 2886ac_cpp='$CPP $CPPFLAGS' 2887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2889ac_compiler_gnu=$ac_cv_c_compiler_gnu 2890 2891 2892ac_ext=c 2893ac_cpp='$CPP $CPPFLAGS' 2894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2896ac_compiler_gnu=$ac_cv_c_compiler_gnu 2897{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2898$as_echo_n "checking how to run the C preprocessor... " >&6; } 2899# On Suns, sometimes $CPP names a directory. 2900if test -n "$CPP" && test -d "$CPP"; then 2901 CPP= 2902fi 2903if test -z "$CPP"; then 2904 if test "${ac_cv_prog_CPP+set}" = set; then 2905 $as_echo_n "(cached) " >&6 2906else 2907 # Double quotes because CPP needs to be expanded 2908 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2909 do 2910 ac_preproc_ok=false 2911for ac_c_preproc_warn_flag in '' yes 2912do 2913 # Use a header file that comes with gcc, so configuring glibc 2914 # with a fresh cross-compiler works. 2915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2916 # <limits.h> exists even on freestanding compilers. 2917 # On the NeXT, cc -E runs the code through the compiler's parser, 2918 # not just through cpp. "Syntax error" is here to catch this case. 2919 cat >conftest.$ac_ext <<_ACEOF 2920/* confdefs.h. */ 2921_ACEOF 2922cat confdefs.h >>conftest.$ac_ext 2923cat >>conftest.$ac_ext <<_ACEOF 2924/* end confdefs.h. */ 2925#ifdef __STDC__ 2926# include <limits.h> 2927#else 2928# include <assert.h> 2929#endif 2930 Syntax error 2931_ACEOF 2932if { (ac_try="$ac_cpp conftest.$ac_ext" 2933case "(($ac_try" in 2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2935 *) ac_try_echo=$ac_try;; 2936esac 2937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2938$as_echo "$ac_try_echo") >&5 2939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2940 ac_status=$? 2941 grep -v '^ *+' conftest.er1 >conftest.err 2942 rm -f conftest.er1 2943 cat conftest.err >&5 2944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); } >/dev/null && { 2946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2947 test ! -s conftest.err 2948 }; then 2949 : 2950else 2951 $as_echo "$as_me: failed program was:" >&5 2952sed 's/^/| /' conftest.$ac_ext >&5 2953 2954 # Broken: fails on valid input. 2955continue 2956fi 2957 2958rm -f conftest.err conftest.$ac_ext 2959 2960 # OK, works on sane cases. Now check whether nonexistent headers 2961 # can be detected and how. 2962 cat >conftest.$ac_ext <<_ACEOF 2963/* confdefs.h. */ 2964_ACEOF 2965cat confdefs.h >>conftest.$ac_ext 2966cat >>conftest.$ac_ext <<_ACEOF 2967/* end confdefs.h. */ 2968#include <ac_nonexistent.h> 2969_ACEOF 2970if { (ac_try="$ac_cpp conftest.$ac_ext" 2971case "(($ac_try" in 2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2973 *) ac_try_echo=$ac_try;; 2974esac 2975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2976$as_echo "$ac_try_echo") >&5 2977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2978 ac_status=$? 2979 grep -v '^ *+' conftest.er1 >conftest.err 2980 rm -f conftest.er1 2981 cat conftest.err >&5 2982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2983 (exit $ac_status); } >/dev/null && { 2984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2985 test ! -s conftest.err 2986 }; then 2987 # Broken: success on invalid input. 2988continue 2989else 2990 $as_echo "$as_me: failed program was:" >&5 2991sed 's/^/| /' conftest.$ac_ext >&5 2992 2993 # Passes both tests. 2994ac_preproc_ok=: 2995break 2996fi 2997 2998rm -f conftest.err conftest.$ac_ext 2999 3000done 3001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3002rm -f conftest.err conftest.$ac_ext 3003if $ac_preproc_ok; then 3004 break 3005fi 3006 3007 done 3008 ac_cv_prog_CPP=$CPP 3009 3010fi 3011 CPP=$ac_cv_prog_CPP 3012else 3013 ac_cv_prog_CPP=$CPP 3014fi 3015{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3016$as_echo "$CPP" >&6; } 3017ac_preproc_ok=false 3018for ac_c_preproc_warn_flag in '' yes 3019do 3020 # Use a header file that comes with gcc, so configuring glibc 3021 # with a fresh cross-compiler works. 3022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3023 # <limits.h> exists even on freestanding compilers. 3024 # On the NeXT, cc -E runs the code through the compiler's parser, 3025 # not just through cpp. "Syntax error" is here to catch this case. 3026 cat >conftest.$ac_ext <<_ACEOF 3027/* confdefs.h. */ 3028_ACEOF 3029cat confdefs.h >>conftest.$ac_ext 3030cat >>conftest.$ac_ext <<_ACEOF 3031/* end confdefs.h. */ 3032#ifdef __STDC__ 3033# include <limits.h> 3034#else 3035# include <assert.h> 3036#endif 3037 Syntax error 3038_ACEOF 3039if { (ac_try="$ac_cpp conftest.$ac_ext" 3040case "(($ac_try" in 3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3042 *) ac_try_echo=$ac_try;; 3043esac 3044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3045$as_echo "$ac_try_echo") >&5 3046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3047 ac_status=$? 3048 grep -v '^ *+' conftest.er1 >conftest.err 3049 rm -f conftest.er1 3050 cat conftest.err >&5 3051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 (exit $ac_status); } >/dev/null && { 3053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3054 test ! -s conftest.err 3055 }; then 3056 : 3057else 3058 $as_echo "$as_me: failed program was:" >&5 3059sed 's/^/| /' conftest.$ac_ext >&5 3060 3061 # Broken: fails on valid input. 3062continue 3063fi 3064 3065rm -f conftest.err conftest.$ac_ext 3066 3067 # OK, works on sane cases. Now check whether nonexistent headers 3068 # can be detected and how. 3069 cat >conftest.$ac_ext <<_ACEOF 3070/* confdefs.h. */ 3071_ACEOF 3072cat confdefs.h >>conftest.$ac_ext 3073cat >>conftest.$ac_ext <<_ACEOF 3074/* end confdefs.h. */ 3075#include <ac_nonexistent.h> 3076_ACEOF 3077if { (ac_try="$ac_cpp conftest.$ac_ext" 3078case "(($ac_try" in 3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3080 *) ac_try_echo=$ac_try;; 3081esac 3082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3083$as_echo "$ac_try_echo") >&5 3084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3085 ac_status=$? 3086 grep -v '^ *+' conftest.er1 >conftest.err 3087 rm -f conftest.er1 3088 cat conftest.err >&5 3089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3090 (exit $ac_status); } >/dev/null && { 3091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3092 test ! -s conftest.err 3093 }; then 3094 # Broken: success on invalid input. 3095continue 3096else 3097 $as_echo "$as_me: failed program was:" >&5 3098sed 's/^/| /' conftest.$ac_ext >&5 3099 3100 # Passes both tests. 3101ac_preproc_ok=: 3102break 3103fi 3104 3105rm -f conftest.err conftest.$ac_ext 3106 3107done 3108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3109rm -f conftest.err conftest.$ac_ext 3110if $ac_preproc_ok; then 3111 : 3112else 3113 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3114See \`config.log' for more details." >&5 3115$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3116See \`config.log' for more details." >&2;} 3117 { (exit 1); exit 1; }; } 3118fi 3119 3120ac_ext=c 3121ac_cpp='$CPP $CPPFLAGS' 3122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3124ac_compiler_gnu=$ac_cv_c_compiler_gnu 3125 3126 3127{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3128$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3129if test "${ac_cv_path_GREP+set}" = set; then 3130 $as_echo_n "(cached) " >&6 3131else 3132 if test -z "$GREP"; then 3133 ac_path_GREP_found=false 3134 # Loop through the user's path and test for each of PROGNAME-LIST 3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3136for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3137do 3138 IFS=$as_save_IFS 3139 test -z "$as_dir" && as_dir=. 3140 for ac_prog in grep ggrep; do 3141 for ac_exec_ext in '' $ac_executable_extensions; do 3142 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3143 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3144# Check for GNU ac_path_GREP and select it if it is found. 3145 # Check for GNU $ac_path_GREP 3146case `"$ac_path_GREP" --version 2>&1` in 3147*GNU*) 3148 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3149*) 3150 ac_count=0 3151 $as_echo_n 0123456789 >"conftest.in" 3152 while : 3153 do 3154 cat "conftest.in" "conftest.in" >"conftest.tmp" 3155 mv "conftest.tmp" "conftest.in" 3156 cp "conftest.in" "conftest.nl" 3157 $as_echo 'GREP' >> "conftest.nl" 3158 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3160 ac_count=`expr $ac_count + 1` 3161 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3162 # Best one so far, save it but keep looking for a better one 3163 ac_cv_path_GREP="$ac_path_GREP" 3164 ac_path_GREP_max=$ac_count 3165 fi 3166 # 10*(2^10) chars as input seems more than enough 3167 test $ac_count -gt 10 && break 3168 done 3169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3170esac 3171 3172 $ac_path_GREP_found && break 3 3173 done 3174 done 3175done 3176IFS=$as_save_IFS 3177 if test -z "$ac_cv_path_GREP"; then 3178 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3179$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3180 { (exit 1); exit 1; }; } 3181 fi 3182else 3183 ac_cv_path_GREP=$GREP 3184fi 3185 3186fi 3187{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3188$as_echo "$ac_cv_path_GREP" >&6; } 3189 GREP="$ac_cv_path_GREP" 3190 3191 3192{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3193$as_echo_n "checking for egrep... " >&6; } 3194if test "${ac_cv_path_EGREP+set}" = set; then 3195 $as_echo_n "(cached) " >&6 3196else 3197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3198 then ac_cv_path_EGREP="$GREP -E" 3199 else 3200 if test -z "$EGREP"; then 3201 ac_path_EGREP_found=false 3202 # Loop through the user's path and test for each of PROGNAME-LIST 3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3204for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3205do 3206 IFS=$as_save_IFS 3207 test -z "$as_dir" && as_dir=. 3208 for ac_prog in egrep; do 3209 for ac_exec_ext in '' $ac_executable_extensions; do 3210 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3211 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3212# Check for GNU ac_path_EGREP and select it if it is found. 3213 # Check for GNU $ac_path_EGREP 3214case `"$ac_path_EGREP" --version 2>&1` in 3215*GNU*) 3216 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3217*) 3218 ac_count=0 3219 $as_echo_n 0123456789 >"conftest.in" 3220 while : 3221 do 3222 cat "conftest.in" "conftest.in" >"conftest.tmp" 3223 mv "conftest.tmp" "conftest.in" 3224 cp "conftest.in" "conftest.nl" 3225 $as_echo 'EGREP' >> "conftest.nl" 3226 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3228 ac_count=`expr $ac_count + 1` 3229 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3230 # Best one so far, save it but keep looking for a better one 3231 ac_cv_path_EGREP="$ac_path_EGREP" 3232 ac_path_EGREP_max=$ac_count 3233 fi 3234 # 10*(2^10) chars as input seems more than enough 3235 test $ac_count -gt 10 && break 3236 done 3237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3238esac 3239 3240 $ac_path_EGREP_found && break 3 3241 done 3242 done 3243done 3244IFS=$as_save_IFS 3245 if test -z "$ac_cv_path_EGREP"; then 3246 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3247$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3248 { (exit 1); exit 1; }; } 3249 fi 3250else 3251 ac_cv_path_EGREP=$EGREP 3252fi 3253 3254 fi 3255fi 3256{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3257$as_echo "$ac_cv_path_EGREP" >&6; } 3258 EGREP="$ac_cv_path_EGREP" 3259 3260 3261{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3262$as_echo_n "checking for ANSI C header files... " >&6; } 3263if test "${ac_cv_header_stdc+set}" = set; then 3264 $as_echo_n "(cached) " >&6 3265else 3266 cat >conftest.$ac_ext <<_ACEOF 3267/* confdefs.h. */ 3268_ACEOF 3269cat confdefs.h >>conftest.$ac_ext 3270cat >>conftest.$ac_ext <<_ACEOF 3271/* end confdefs.h. */ 3272#include <stdlib.h> 3273#include <stdarg.h> 3274#include <string.h> 3275#include <float.h> 3276 3277int 3278main () 3279{ 3280 3281 ; 3282 return 0; 3283} 3284_ACEOF 3285rm -f conftest.$ac_objext 3286if { (ac_try="$ac_compile" 3287case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290esac 3291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3292$as_echo "$ac_try_echo") >&5 3293 (eval "$ac_compile") 2>conftest.er1 3294 ac_status=$? 3295 grep -v '^ *+' conftest.er1 >conftest.err 3296 rm -f conftest.er1 3297 cat conftest.err >&5 3298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } && { 3300 test -z "$ac_c_werror_flag" || 3301 test ! -s conftest.err 3302 } && test -s conftest.$ac_objext; then 3303 ac_cv_header_stdc=yes 3304else 3305 $as_echo "$as_me: failed program was:" >&5 3306sed 's/^/| /' conftest.$ac_ext >&5 3307 3308 ac_cv_header_stdc=no 3309fi 3310 3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3312 3313if test $ac_cv_header_stdc = yes; then 3314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3315 cat >conftest.$ac_ext <<_ACEOF 3316/* confdefs.h. */ 3317_ACEOF 3318cat confdefs.h >>conftest.$ac_ext 3319cat >>conftest.$ac_ext <<_ACEOF 3320/* end confdefs.h. */ 3321#include <string.h> 3322 3323_ACEOF 3324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3325 $EGREP "memchr" >/dev/null 2>&1; then 3326 : 3327else 3328 ac_cv_header_stdc=no 3329fi 3330rm -f conftest* 3331 3332fi 3333 3334if test $ac_cv_header_stdc = yes; then 3335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3336 cat >conftest.$ac_ext <<_ACEOF 3337/* confdefs.h. */ 3338_ACEOF 3339cat confdefs.h >>conftest.$ac_ext 3340cat >>conftest.$ac_ext <<_ACEOF 3341/* end confdefs.h. */ 3342#include <stdlib.h> 3343 3344_ACEOF 3345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3346 $EGREP "free" >/dev/null 2>&1; then 3347 : 3348else 3349 ac_cv_header_stdc=no 3350fi 3351rm -f conftest* 3352 3353fi 3354 3355if test $ac_cv_header_stdc = yes; then 3356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3357 if test "$cross_compiling" = yes; then 3358 : 3359else 3360 cat >conftest.$ac_ext <<_ACEOF 3361/* confdefs.h. */ 3362_ACEOF 3363cat confdefs.h >>conftest.$ac_ext 3364cat >>conftest.$ac_ext <<_ACEOF 3365/* end confdefs.h. */ 3366#include <ctype.h> 3367#include <stdlib.h> 3368#if ((' ' & 0x0FF) == 0x020) 3369# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3370# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3371#else 3372# define ISLOWER(c) \ 3373 (('a' <= (c) && (c) <= 'i') \ 3374 || ('j' <= (c) && (c) <= 'r') \ 3375 || ('s' <= (c) && (c) <= 'z')) 3376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3377#endif 3378 3379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3380int 3381main () 3382{ 3383 int i; 3384 for (i = 0; i < 256; i++) 3385 if (XOR (islower (i), ISLOWER (i)) 3386 || toupper (i) != TOUPPER (i)) 3387 return 2; 3388 return 0; 3389} 3390_ACEOF 3391rm -f conftest$ac_exeext 3392if { (ac_try="$ac_link" 3393case "(($ac_try" in 3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3395 *) ac_try_echo=$ac_try;; 3396esac 3397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3398$as_echo "$ac_try_echo") >&5 3399 (eval "$ac_link") 2>&5 3400 ac_status=$? 3401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3403 { (case "(($ac_try" in 3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3405 *) ac_try_echo=$ac_try;; 3406esac 3407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3408$as_echo "$ac_try_echo") >&5 3409 (eval "$ac_try") 2>&5 3410 ac_status=$? 3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3412 (exit $ac_status); }; }; then 3413 : 3414else 3415 $as_echo "$as_me: program exited with status $ac_status" >&5 3416$as_echo "$as_me: failed program was:" >&5 3417sed 's/^/| /' conftest.$ac_ext >&5 3418 3419( exit $ac_status ) 3420ac_cv_header_stdc=no 3421fi 3422rm -rf conftest.dSYM 3423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3424fi 3425 3426 3427fi 3428fi 3429{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3430$as_echo "$ac_cv_header_stdc" >&6; } 3431if test $ac_cv_header_stdc = yes; then 3432 3433cat >>confdefs.h <<\_ACEOF 3434#define STDC_HEADERS 1 3435_ACEOF 3436 3437fi 3438 3439# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3450 inttypes.h stdint.h unistd.h 3451do 3452as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3453{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3454$as_echo_n "checking for $ac_header... " >&6; } 3455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3456 $as_echo_n "(cached) " >&6 3457else 3458 cat >conftest.$ac_ext <<_ACEOF 3459/* confdefs.h. */ 3460_ACEOF 3461cat confdefs.h >>conftest.$ac_ext 3462cat >>conftest.$ac_ext <<_ACEOF 3463/* end confdefs.h. */ 3464$ac_includes_default 3465 3466#include <$ac_header> 3467_ACEOF 3468rm -f conftest.$ac_objext 3469if { (ac_try="$ac_compile" 3470case "(($ac_try" in 3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3472 *) ac_try_echo=$ac_try;; 3473esac 3474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3475$as_echo "$ac_try_echo") >&5 3476 (eval "$ac_compile") 2>conftest.er1 3477 ac_status=$? 3478 grep -v '^ *+' conftest.er1 >conftest.err 3479 rm -f conftest.er1 3480 cat conftest.err >&5 3481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3482 (exit $ac_status); } && { 3483 test -z "$ac_c_werror_flag" || 3484 test ! -s conftest.err 3485 } && test -s conftest.$ac_objext; then 3486 eval "$as_ac_Header=yes" 3487else 3488 $as_echo "$as_me: failed program was:" >&5 3489sed 's/^/| /' conftest.$ac_ext >&5 3490 3491 eval "$as_ac_Header=no" 3492fi 3493 3494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3495fi 3496ac_res=`eval 'as_val=${'$as_ac_Header'} 3497 $as_echo "$as_val"'` 3498 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3499$as_echo "$ac_res" >&6; } 3500if test `eval 'as_val=${'$as_ac_Header'} 3501 $as_echo "$as_val"'` = yes; then 3502 cat >>confdefs.h <<_ACEOF 3503#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3504_ACEOF 3505 3506fi 3507 3508done 3509 3510 3511 3512 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 3513$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 3514if test "${ac_cv_c_bigendian+set}" = set; then 3515 $as_echo_n "(cached) " >&6 3516else 3517 ac_cv_c_bigendian=unknown 3518 # See if __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined. 3519 cat >conftest.$ac_ext <<_ACEOF 3520/* confdefs.h. */ 3521_ACEOF 3522cat confdefs.h >>conftest.$ac_ext 3523cat >>conftest.$ac_ext <<_ACEOF 3524/* end confdefs.h. */ 3525#if ! (defined __BIG_ENDIAN__ || defined __LITTLE_ENDIAN__) 3526 neither is defined; 3527 #endif 3528 typedef int dummy; 3529 3530_ACEOF 3531rm -f conftest.$ac_objext 3532if { (ac_try="$ac_compile" 3533case "(($ac_try" in 3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3535 *) ac_try_echo=$ac_try;; 3536esac 3537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3538$as_echo "$ac_try_echo") >&5 3539 (eval "$ac_compile") 2>conftest.er1 3540 ac_status=$? 3541 grep -v '^ *+' conftest.er1 >conftest.err 3542 rm -f conftest.er1 3543 cat conftest.err >&5 3544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3545 (exit $ac_status); } && { 3546 test -z "$ac_c_werror_flag" || 3547 test ! -s conftest.err 3548 } && test -s conftest.$ac_objext; then 3549 ac_cv_c_bigendian=universal 3550else 3551 $as_echo "$as_me: failed program was:" >&5 3552sed 's/^/| /' conftest.$ac_ext >&5 3553 3554 3555fi 3556 3557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3558 if test $ac_cv_c_bigendian = unknown; then 3559 # See if sys/param.h defines the BYTE_ORDER macro. 3560 cat >conftest.$ac_ext <<_ACEOF 3561/* confdefs.h. */ 3562_ACEOF 3563cat confdefs.h >>conftest.$ac_ext 3564cat >>conftest.$ac_ext <<_ACEOF 3565/* end confdefs.h. */ 3566#include <sys/types.h> 3567 #include <sys/param.h> 3568 3569int 3570main () 3571{ 3572#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 3573 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 3574 && LITTLE_ENDIAN) 3575 bogus endian macros 3576 #endif 3577 3578 ; 3579 return 0; 3580} 3581_ACEOF 3582rm -f conftest.$ac_objext 3583if { (ac_try="$ac_compile" 3584case "(($ac_try" in 3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3586 *) ac_try_echo=$ac_try;; 3587esac 3588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3589$as_echo "$ac_try_echo") >&5 3590 (eval "$ac_compile") 2>conftest.er1 3591 ac_status=$? 3592 grep -v '^ *+' conftest.er1 >conftest.err 3593 rm -f conftest.er1 3594 cat conftest.err >&5 3595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3596 (exit $ac_status); } && { 3597 test -z "$ac_c_werror_flag" || 3598 test ! -s conftest.err 3599 } && test -s conftest.$ac_objext; then 3600 # It does; now see whether it defined to BIG_ENDIAN or not. 3601 cat >conftest.$ac_ext <<_ACEOF 3602/* confdefs.h. */ 3603_ACEOF 3604cat confdefs.h >>conftest.$ac_ext 3605cat >>conftest.$ac_ext <<_ACEOF 3606/* end confdefs.h. */ 3607#include <sys/types.h> 3608 #include <sys/param.h> 3609 3610int 3611main () 3612{ 3613#if BYTE_ORDER != BIG_ENDIAN 3614 not big endian 3615 #endif 3616 3617 ; 3618 return 0; 3619} 3620_ACEOF 3621rm -f conftest.$ac_objext 3622if { (ac_try="$ac_compile" 3623case "(($ac_try" in 3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3625 *) ac_try_echo=$ac_try;; 3626esac 3627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3628$as_echo "$ac_try_echo") >&5 3629 (eval "$ac_compile") 2>conftest.er1 3630 ac_status=$? 3631 grep -v '^ *+' conftest.er1 >conftest.err 3632 rm -f conftest.er1 3633 cat conftest.err >&5 3634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3635 (exit $ac_status); } && { 3636 test -z "$ac_c_werror_flag" || 3637 test ! -s conftest.err 3638 } && test -s conftest.$ac_objext; then 3639 ac_cv_c_bigendian=yes 3640else 3641 $as_echo "$as_me: failed program was:" >&5 3642sed 's/^/| /' conftest.$ac_ext >&5 3643 3644 ac_cv_c_bigendian=no 3645fi 3646 3647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3648else 3649 $as_echo "$as_me: failed program was:" >&5 3650sed 's/^/| /' conftest.$ac_ext >&5 3651 3652 3653fi 3654 3655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3656 fi 3657 if test $ac_cv_c_bigendian = unknown; then 3658 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 3659 cat >conftest.$ac_ext <<_ACEOF 3660/* confdefs.h. */ 3661_ACEOF 3662cat confdefs.h >>conftest.$ac_ext 3663cat >>conftest.$ac_ext <<_ACEOF 3664/* end confdefs.h. */ 3665#include <limits.h> 3666 3667int 3668main () 3669{ 3670#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 3671 bogus endian macros 3672 #endif 3673 3674 ; 3675 return 0; 3676} 3677_ACEOF 3678rm -f conftest.$ac_objext 3679if { (ac_try="$ac_compile" 3680case "(($ac_try" in 3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3682 *) ac_try_echo=$ac_try;; 3683esac 3684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3685$as_echo "$ac_try_echo") >&5 3686 (eval "$ac_compile") 2>conftest.er1 3687 ac_status=$? 3688 grep -v '^ *+' conftest.er1 >conftest.err 3689 rm -f conftest.er1 3690 cat conftest.err >&5 3691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3692 (exit $ac_status); } && { 3693 test -z "$ac_c_werror_flag" || 3694 test ! -s conftest.err 3695 } && test -s conftest.$ac_objext; then 3696 # It does; now see whether it defined to _BIG_ENDIAN or not. 3697 cat >conftest.$ac_ext <<_ACEOF 3698/* confdefs.h. */ 3699_ACEOF 3700cat confdefs.h >>conftest.$ac_ext 3701cat >>conftest.$ac_ext <<_ACEOF 3702/* end confdefs.h. */ 3703#include <limits.h> 3704 3705int 3706main () 3707{ 3708#ifndef _BIG_ENDIAN 3709 not big endian 3710 #endif 3711 3712 ; 3713 return 0; 3714} 3715_ACEOF 3716rm -f conftest.$ac_objext 3717if { (ac_try="$ac_compile" 3718case "(($ac_try" in 3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3720 *) ac_try_echo=$ac_try;; 3721esac 3722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3723$as_echo "$ac_try_echo") >&5 3724 (eval "$ac_compile") 2>conftest.er1 3725 ac_status=$? 3726 grep -v '^ *+' conftest.er1 >conftest.err 3727 rm -f conftest.er1 3728 cat conftest.err >&5 3729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3730 (exit $ac_status); } && { 3731 test -z "$ac_c_werror_flag" || 3732 test ! -s conftest.err 3733 } && test -s conftest.$ac_objext; then 3734 ac_cv_c_bigendian=yes 3735else 3736 $as_echo "$as_me: failed program was:" >&5 3737sed 's/^/| /' conftest.$ac_ext >&5 3738 3739 ac_cv_c_bigendian=no 3740fi 3741 3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3743else 3744 $as_echo "$as_me: failed program was:" >&5 3745sed 's/^/| /' conftest.$ac_ext >&5 3746 3747 3748fi 3749 3750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3751 fi 3752 if test $ac_cv_c_bigendian = unknown; then 3753 # Compile a test program. 3754 if test "$cross_compiling" = yes; then 3755 # Try to guess by grepping values from an object file. 3756 cat >conftest.$ac_ext <<_ACEOF 3757/* confdefs.h. */ 3758_ACEOF 3759cat confdefs.h >>conftest.$ac_ext 3760cat >>conftest.$ac_ext <<_ACEOF 3761/* end confdefs.h. */ 3762short int ascii_mm[] = 3763 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 3764 short int ascii_ii[] = 3765 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 3766 int use_ascii (int i) { 3767 return ascii_mm[i] + ascii_ii[i]; 3768 } 3769 short int ebcdic_ii[] = 3770 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 3771 short int ebcdic_mm[] = 3772 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 3773 int use_ebcdic (int i) { 3774 return ebcdic_mm[i] + ebcdic_ii[i]; 3775 } 3776 extern int foo; 3777 3778int 3779main () 3780{ 3781return use_ascii (foo) == use_ebcdic (foo); 3782 ; 3783 return 0; 3784} 3785_ACEOF 3786rm -f conftest.$ac_objext 3787if { (ac_try="$ac_compile" 3788case "(($ac_try" in 3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3790 *) ac_try_echo=$ac_try;; 3791esac 3792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3793$as_echo "$ac_try_echo") >&5 3794 (eval "$ac_compile") 2>conftest.er1 3795 ac_status=$? 3796 grep -v '^ *+' conftest.er1 >conftest.err 3797 rm -f conftest.er1 3798 cat conftest.err >&5 3799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3800 (exit $ac_status); } && { 3801 test -z "$ac_c_werror_flag" || 3802 test ! -s conftest.err 3803 } && test -s conftest.$ac_objext; then 3804 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 3805 ac_cv_c_bigendian=yes 3806 fi 3807 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 3808 if test "$ac_cv_c_bigendian" = unknown; then 3809 ac_cv_c_bigendian=no 3810 else 3811 # finding both strings is unlikely to happen, but who knows? 3812 ac_cv_c_bigendian=unknown 3813 fi 3814 fi 3815else 3816 $as_echo "$as_me: failed program was:" >&5 3817sed 's/^/| /' conftest.$ac_ext >&5 3818 3819 3820fi 3821 3822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3823else 3824 cat >conftest.$ac_ext <<_ACEOF 3825/* confdefs.h. */ 3826_ACEOF 3827cat confdefs.h >>conftest.$ac_ext 3828cat >>conftest.$ac_ext <<_ACEOF 3829/* end confdefs.h. */ 3830$ac_includes_default 3831int 3832main () 3833{ 3834 3835 /* Are we little or big endian? From Harbison&Steele. */ 3836 union 3837 { 3838 long int l; 3839 char c[sizeof (long int)]; 3840 } u; 3841 u.l = 1; 3842 return u.c[sizeof (long int) - 1] == 1; 3843 3844 ; 3845 return 0; 3846} 3847_ACEOF 3848rm -f conftest$ac_exeext 3849if { (ac_try="$ac_link" 3850case "(($ac_try" in 3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3852 *) ac_try_echo=$ac_try;; 3853esac 3854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3855$as_echo "$ac_try_echo") >&5 3856 (eval "$ac_link") 2>&5 3857 ac_status=$? 3858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3860 { (case "(($ac_try" in 3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3862 *) ac_try_echo=$ac_try;; 3863esac 3864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3865$as_echo "$ac_try_echo") >&5 3866 (eval "$ac_try") 2>&5 3867 ac_status=$? 3868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3869 (exit $ac_status); }; }; then 3870 ac_cv_c_bigendian=no 3871else 3872 $as_echo "$as_me: program exited with status $ac_status" >&5 3873$as_echo "$as_me: failed program was:" >&5 3874sed 's/^/| /' conftest.$ac_ext >&5 3875 3876( exit $ac_status ) 3877ac_cv_c_bigendian=yes 3878fi 3879rm -rf conftest.dSYM 3880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3881fi 3882 3883 3884 fi 3885fi 3886{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 3887$as_echo "$ac_cv_c_bigendian" >&6; } 3888 case $ac_cv_c_bigendian in #( 3889 yes) 3890 cat >>confdefs.h <<\_ACEOF 3891#define WORDS_BIGENDIAN 1 3892_ACEOF 3893;; #( 3894 no) 3895 ;; #( 3896 universal) 3897 ;; #( 3898 *) 3899 { { $as_echo "$as_me:$LINENO: error: unknown endianness 3900 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 3901$as_echo "$as_me: error: unknown endianness 3902 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 3903 { (exit 1); exit 1; }; } ;; 3904 esac 3905 3906 3907# Checks for programs. 3908ac_ext=c 3909ac_cpp='$CPP $CPPFLAGS' 3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3912ac_compiler_gnu=$ac_cv_c_compiler_gnu 3913{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3914$as_echo_n "checking how to run the C preprocessor... " >&6; } 3915# On Suns, sometimes $CPP names a directory. 3916if test -n "$CPP" && test -d "$CPP"; then 3917 CPP= 3918fi 3919if test -z "$CPP"; then 3920 if test "${ac_cv_prog_CPP+set}" = set; then 3921 $as_echo_n "(cached) " >&6 3922else 3923 # Double quotes because CPP needs to be expanded 3924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3925 do 3926 ac_preproc_ok=false 3927for ac_c_preproc_warn_flag in '' yes 3928do 3929 # Use a header file that comes with gcc, so configuring glibc 3930 # with a fresh cross-compiler works. 3931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3932 # <limits.h> exists even on freestanding compilers. 3933 # On the NeXT, cc -E runs the code through the compiler's parser, 3934 # not just through cpp. "Syntax error" is here to catch this case. 3935 cat >conftest.$ac_ext <<_ACEOF 3936/* confdefs.h. */ 3937_ACEOF 3938cat confdefs.h >>conftest.$ac_ext 3939cat >>conftest.$ac_ext <<_ACEOF 3940/* end confdefs.h. */ 3941#ifdef __STDC__ 3942# include <limits.h> 3943#else 3944# include <assert.h> 3945#endif 3946 Syntax error 3947_ACEOF 3948if { (ac_try="$ac_cpp conftest.$ac_ext" 3949case "(($ac_try" in 3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3951 *) ac_try_echo=$ac_try;; 3952esac 3953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3954$as_echo "$ac_try_echo") >&5 3955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3956 ac_status=$? 3957 grep -v '^ *+' conftest.er1 >conftest.err 3958 rm -f conftest.er1 3959 cat conftest.err >&5 3960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3961 (exit $ac_status); } >/dev/null && { 3962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3963 test ! -s conftest.err 3964 }; then 3965 : 3966else 3967 $as_echo "$as_me: failed program was:" >&5 3968sed 's/^/| /' conftest.$ac_ext >&5 3969 3970 # Broken: fails on valid input. 3971continue 3972fi 3973 3974rm -f conftest.err conftest.$ac_ext 3975 3976 # OK, works on sane cases. Now check whether nonexistent headers 3977 # can be detected and how. 3978 cat >conftest.$ac_ext <<_ACEOF 3979/* confdefs.h. */ 3980_ACEOF 3981cat confdefs.h >>conftest.$ac_ext 3982cat >>conftest.$ac_ext <<_ACEOF 3983/* end confdefs.h. */ 3984#include <ac_nonexistent.h> 3985_ACEOF 3986if { (ac_try="$ac_cpp conftest.$ac_ext" 3987case "(($ac_try" in 3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3989 *) ac_try_echo=$ac_try;; 3990esac 3991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3992$as_echo "$ac_try_echo") >&5 3993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3994 ac_status=$? 3995 grep -v '^ *+' conftest.er1 >conftest.err 3996 rm -f conftest.er1 3997 cat conftest.err >&5 3998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3999 (exit $ac_status); } >/dev/null && { 4000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4001 test ! -s conftest.err 4002 }; then 4003 # Broken: success on invalid input. 4004continue 4005else 4006 $as_echo "$as_me: failed program was:" >&5 4007sed 's/^/| /' conftest.$ac_ext >&5 4008 4009 # Passes both tests. 4010ac_preproc_ok=: 4011break 4012fi 4013 4014rm -f conftest.err conftest.$ac_ext 4015 4016done 4017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4018rm -f conftest.err conftest.$ac_ext 4019if $ac_preproc_ok; then 4020 break 4021fi 4022 4023 done 4024 ac_cv_prog_CPP=$CPP 4025 4026fi 4027 CPP=$ac_cv_prog_CPP 4028else 4029 ac_cv_prog_CPP=$CPP 4030fi 4031{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4032$as_echo "$CPP" >&6; } 4033ac_preproc_ok=false 4034for ac_c_preproc_warn_flag in '' yes 4035do 4036 # Use a header file that comes with gcc, so configuring glibc 4037 # with a fresh cross-compiler works. 4038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4039 # <limits.h> exists even on freestanding compilers. 4040 # On the NeXT, cc -E runs the code through the compiler's parser, 4041 # not just through cpp. "Syntax error" is here to catch this case. 4042 cat >conftest.$ac_ext <<_ACEOF 4043/* confdefs.h. */ 4044_ACEOF 4045cat confdefs.h >>conftest.$ac_ext 4046cat >>conftest.$ac_ext <<_ACEOF 4047/* end confdefs.h. */ 4048#ifdef __STDC__ 4049# include <limits.h> 4050#else 4051# include <assert.h> 4052#endif 4053 Syntax error 4054_ACEOF 4055if { (ac_try="$ac_cpp conftest.$ac_ext" 4056case "(($ac_try" in 4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4058 *) ac_try_echo=$ac_try;; 4059esac 4060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4061$as_echo "$ac_try_echo") >&5 4062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4063 ac_status=$? 4064 grep -v '^ *+' conftest.er1 >conftest.err 4065 rm -f conftest.er1 4066 cat conftest.err >&5 4067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4068 (exit $ac_status); } >/dev/null && { 4069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4070 test ! -s conftest.err 4071 }; then 4072 : 4073else 4074 $as_echo "$as_me: failed program was:" >&5 4075sed 's/^/| /' conftest.$ac_ext >&5 4076 4077 # Broken: fails on valid input. 4078continue 4079fi 4080 4081rm -f conftest.err conftest.$ac_ext 4082 4083 # OK, works on sane cases. Now check whether nonexistent headers 4084 # can be detected and how. 4085 cat >conftest.$ac_ext <<_ACEOF 4086/* confdefs.h. */ 4087_ACEOF 4088cat confdefs.h >>conftest.$ac_ext 4089cat >>conftest.$ac_ext <<_ACEOF 4090/* end confdefs.h. */ 4091#include <ac_nonexistent.h> 4092_ACEOF 4093if { (ac_try="$ac_cpp conftest.$ac_ext" 4094case "(($ac_try" in 4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4096 *) ac_try_echo=$ac_try;; 4097esac 4098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4099$as_echo "$ac_try_echo") >&5 4100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4101 ac_status=$? 4102 grep -v '^ *+' conftest.er1 >conftest.err 4103 rm -f conftest.er1 4104 cat conftest.err >&5 4105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4106 (exit $ac_status); } >/dev/null && { 4107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4108 test ! -s conftest.err 4109 }; then 4110 # Broken: success on invalid input. 4111continue 4112else 4113 $as_echo "$as_me: failed program was:" >&5 4114sed 's/^/| /' conftest.$ac_ext >&5 4115 4116 # Passes both tests. 4117ac_preproc_ok=: 4118break 4119fi 4120 4121rm -f conftest.err conftest.$ac_ext 4122 4123done 4124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4125rm -f conftest.err conftest.$ac_ext 4126if $ac_preproc_ok; then 4127 : 4128else 4129 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4130See \`config.log' for more details." >&5 4131$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4132See \`config.log' for more details." >&2;} 4133 { (exit 1); exit 1; }; } 4134fi 4135 4136ac_ext=c 4137ac_cpp='$CPP $CPPFLAGS' 4138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4140ac_compiler_gnu=$ac_cv_c_compiler_gnu 4141 4142if test -n "$ac_tool_prefix"; then 4143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4144set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4146$as_echo_n "checking for $ac_word... " >&6; } 4147if test "${ac_cv_prog_RANLIB+set}" = set; then 4148 $as_echo_n "(cached) " >&6 4149else 4150 if test -n "$RANLIB"; then 4151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4152else 4153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4154for as_dir in $PATH 4155do 4156 IFS=$as_save_IFS 4157 test -z "$as_dir" && as_dir=. 4158 for ac_exec_ext in '' $ac_executable_extensions; do 4159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4162 break 2 4163 fi 4164done 4165done 4166IFS=$as_save_IFS 4167 4168fi 4169fi 4170RANLIB=$ac_cv_prog_RANLIB 4171if test -n "$RANLIB"; then 4172 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 4173$as_echo "$RANLIB" >&6; } 4174else 4175 { $as_echo "$as_me:$LINENO: result: no" >&5 4176$as_echo "no" >&6; } 4177fi 4178 4179 4180fi 4181if test -z "$ac_cv_prog_RANLIB"; then 4182 ac_ct_RANLIB=$RANLIB 4183 # Extract the first word of "ranlib", so it can be a program name with args. 4184set dummy ranlib; ac_word=$2 4185{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4186$as_echo_n "checking for $ac_word... " >&6; } 4187if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4188 $as_echo_n "(cached) " >&6 4189else 4190 if test -n "$ac_ct_RANLIB"; then 4191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4192else 4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4194for as_dir in $PATH 4195do 4196 IFS=$as_save_IFS 4197 test -z "$as_dir" && as_dir=. 4198 for ac_exec_ext in '' $ac_executable_extensions; do 4199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4200 ac_cv_prog_ac_ct_RANLIB="ranlib" 4201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4202 break 2 4203 fi 4204done 4205done 4206IFS=$as_save_IFS 4207 4208fi 4209fi 4210ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4211if test -n "$ac_ct_RANLIB"; then 4212 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4213$as_echo "$ac_ct_RANLIB" >&6; } 4214else 4215 { $as_echo "$as_me:$LINENO: result: no" >&5 4216$as_echo "no" >&6; } 4217fi 4218 4219 if test "x$ac_ct_RANLIB" = x; then 4220 RANLIB=":" 4221 else 4222 case $cross_compiling:$ac_tool_warned in 4223yes:) 4224{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4225whose name does not start with the host triplet. If you think this 4226configuration is useful to you, please write to autoconf@gnu.org." >&5 4227$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4228whose name does not start with the host triplet. If you think this 4229configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4230ac_tool_warned=yes ;; 4231esac 4232 RANLIB=$ac_ct_RANLIB 4233 fi 4234else 4235 RANLIB="$ac_cv_prog_RANLIB" 4236fi 4237 4238# Find a good install program. We prefer a C program (faster), 4239# so one script is as good as another. But avoid the broken or 4240# incompatible versions: 4241# SysV /etc/install, /usr/sbin/install 4242# SunOS /usr/etc/install 4243# IRIX /sbin/install 4244# AIX /bin/install 4245# AmigaOS /C/install, which installs bootblocks on floppy discs 4246# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4247# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4248# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4249# OS/2's system install, which has a completely different semantic 4250# ./install, which can be erroneously created by make from ./install.sh. 4251# Reject install programs that cannot install multiple files. 4252{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4253$as_echo_n "checking for a BSD-compatible install... " >&6; } 4254if test -z "$INSTALL"; then 4255if test "${ac_cv_path_install+set}" = set; then 4256 $as_echo_n "(cached) " >&6 4257else 4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4259for as_dir in $PATH 4260do 4261 IFS=$as_save_IFS 4262 test -z "$as_dir" && as_dir=. 4263 # Account for people who put trailing slashes in PATH elements. 4264case $as_dir/ in 4265 ./ | .// | /cC/* | \ 4266 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4267 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4268 /usr/ucb/* ) ;; 4269 *) 4270 # OSF1 and SCO ODT 3.0 have their own names for install. 4271 # Don't use installbsd from OSF since it installs stuff as root 4272 # by default. 4273 for ac_prog in ginstall scoinst install; do 4274 for ac_exec_ext in '' $ac_executable_extensions; do 4275 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4276 if test $ac_prog = install && 4277 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4278 # AIX install. It has an incompatible calling convention. 4279 : 4280 elif test $ac_prog = install && 4281 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4282 # program-specific install script used by HP pwplus--don't use. 4283 : 4284 else 4285 rm -rf conftest.one conftest.two conftest.dir 4286 echo one > conftest.one 4287 echo two > conftest.two 4288 mkdir conftest.dir 4289 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4290 test -s conftest.one && test -s conftest.two && 4291 test -s conftest.dir/conftest.one && 4292 test -s conftest.dir/conftest.two 4293 then 4294 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4295 break 3 4296 fi 4297 fi 4298 fi 4299 done 4300 done 4301 ;; 4302esac 4303 4304done 4305IFS=$as_save_IFS 4306 4307rm -rf conftest.one conftest.two conftest.dir 4308 4309fi 4310 if test "${ac_cv_path_install+set}" = set; then 4311 INSTALL=$ac_cv_path_install 4312 else 4313 # As a last resort, use the slow shell script. Don't cache a 4314 # value for INSTALL within a source directory, because that will 4315 # break other packages using the cache if that directory is 4316 # removed, or if the value is a relative name. 4317 INSTALL=$ac_install_sh 4318 fi 4319fi 4320{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 4321$as_echo "$INSTALL" >&6; } 4322 4323# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4324# It thinks the first close brace ends the variable substitution. 4325test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4326 4327test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4328 4329test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4330 4331{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4332$as_echo_n "checking whether ln -s works... " >&6; } 4333LN_S=$as_ln_s 4334if test "$LN_S" = "ln -s"; then 4335 { $as_echo "$as_me:$LINENO: result: yes" >&5 4336$as_echo "yes" >&6; } 4337else 4338 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4339$as_echo "no, using $LN_S" >&6; } 4340fi 4341 4342# Extract the first word of "ar", so it can be a program name with args. 4343set dummy ar; ac_word=$2 4344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4345$as_echo_n "checking for $ac_word... " >&6; } 4346if test "${ac_cv_path_AR+set}" = set; then 4347 $as_echo_n "(cached) " >&6 4348else 4349 case $AR in 4350 [\\/]* | ?:[\\/]*) 4351 ac_cv_path_AR="$AR" # Let the user override the test with a path. 4352 ;; 4353 *) 4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4355for as_dir in $PATH 4356do 4357 IFS=$as_save_IFS 4358 test -z "$as_dir" && as_dir=. 4359 for ac_exec_ext in '' $ac_executable_extensions; do 4360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4361 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 4362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4363 break 2 4364 fi 4365done 4366done 4367IFS=$as_save_IFS 4368 4369 ;; 4370esac 4371fi 4372AR=$ac_cv_path_AR 4373if test -n "$AR"; then 4374 { $as_echo "$as_me:$LINENO: result: $AR" >&5 4375$as_echo "$AR" >&6; } 4376else 4377 { $as_echo "$as_me:$LINENO: result: no" >&5 4378$as_echo "no" >&6; } 4379fi 4380 4381 4382for ac_prog in perl5 perl 4383do 4384 # Extract the first word of "$ac_prog", so it can be a program name with args. 4385set dummy $ac_prog; ac_word=$2 4386{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4387$as_echo_n "checking for $ac_word... " >&6; } 4388if test "${ac_cv_path_PERL+set}" = set; then 4389 $as_echo_n "(cached) " >&6 4390else 4391 case $PERL in 4392 [\\/]* | ?:[\\/]*) 4393 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 4394 ;; 4395 *) 4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4397for as_dir in $PATH 4398do 4399 IFS=$as_save_IFS 4400 test -z "$as_dir" && as_dir=. 4401 for ac_exec_ext in '' $ac_executable_extensions; do 4402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4403 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 4404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4405 break 2 4406 fi 4407done 4408done 4409IFS=$as_save_IFS 4410 4411 ;; 4412esac 4413fi 4414PERL=$ac_cv_path_PERL 4415if test -n "$PERL"; then 4416 { $as_echo "$as_me:$LINENO: result: $PERL" >&5 4417$as_echo "$PERL" >&6; } 4418else 4419 { $as_echo "$as_me:$LINENO: result: no" >&5 4420$as_echo "no" >&6; } 4421fi 4422 4423 4424 test -n "$PERL" && break 4425done 4426 4427 4428 4429if test -z "$AR" ; then 4430 { { $as_echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 4431$as_echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} 4432 { (exit 1); exit 1; }; } 4433fi 4434 4435if test -z "$LD" ; then 4436 LD=$CC 4437fi 4438 4439 4440# C Compiler features 4441{ $as_echo "$as_me:$LINENO: checking for inline" >&5 4442$as_echo_n "checking for inline... " >&6; } 4443if test "${ac_cv_c_inline+set}" = set; then 4444 $as_echo_n "(cached) " >&6 4445else 4446 ac_cv_c_inline=no 4447for ac_kw in inline __inline__ __inline; do 4448 cat >conftest.$ac_ext <<_ACEOF 4449/* confdefs.h. */ 4450_ACEOF 4451cat confdefs.h >>conftest.$ac_ext 4452cat >>conftest.$ac_ext <<_ACEOF 4453/* end confdefs.h. */ 4454#ifndef __cplusplus 4455typedef int foo_t; 4456static $ac_kw foo_t static_foo () {return 0; } 4457$ac_kw foo_t foo () {return 0; } 4458#endif 4459 4460_ACEOF 4461rm -f conftest.$ac_objext 4462if { (ac_try="$ac_compile" 4463case "(($ac_try" in 4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4465 *) ac_try_echo=$ac_try;; 4466esac 4467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4468$as_echo "$ac_try_echo") >&5 4469 (eval "$ac_compile") 2>conftest.er1 4470 ac_status=$? 4471 grep -v '^ *+' conftest.er1 >conftest.err 4472 rm -f conftest.er1 4473 cat conftest.err >&5 4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4475 (exit $ac_status); } && { 4476 test -z "$ac_c_werror_flag" || 4477 test ! -s conftest.err 4478 } && test -s conftest.$ac_objext; then 4479 ac_cv_c_inline=$ac_kw 4480else 4481 $as_echo "$as_me: failed program was:" >&5 4482sed 's/^/| /' conftest.$ac_ext >&5 4483 4484 4485fi 4486 4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4488 test "$ac_cv_c_inline" != no && break 4489done 4490 4491fi 4492{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4493$as_echo "$ac_cv_c_inline" >&6; } 4494 4495 4496case $ac_cv_c_inline in 4497 inline | yes) ;; 4498 *) 4499 case $ac_cv_c_inline in 4500 no) ac_val=;; 4501 *) ac_val=$ac_cv_c_inline;; 4502 esac 4503 cat >>confdefs.h <<_ACEOF 4504#ifndef __cplusplus 4505#define inline $ac_val 4506#endif 4507_ACEOF 4508 ;; 4509esac 4510 4511if test "$GCC" = "yes"; then 4512 CFLAGS="$CFLAGS -Wall" 4513fi 4514 4515# Allow user to specify flags 4516 4517# Check whether --with-cflags was given. 4518if test "${with_cflags+set}" = set; then 4519 withval=$with_cflags; 4520 if test "x$withval" != "xno" ; then 4521 CFLAGS="$CFLAGS $withval" 4522 fi 4523 4524 4525fi 4526 4527 4528# Check whether --with-cppflags was given. 4529if test "${with_cppflags+set}" = set; then 4530 withval=$with_cppflags; 4531 if test "x$withval" != "xno"; then 4532 CPPFLAGS="$CPPFLAGS $withval" 4533 fi 4534 4535 4536fi 4537 4538 4539# Check whether --with-ldflags was given. 4540if test "${with_ldflags+set}" = set; then 4541 withval=$with_ldflags; 4542 if test "x$withval" != "xno" ; then 4543 LDFLAGS="$LDFLAGS $withval" 4544 fi 4545 4546 4547fi 4548 4549 4550# Check whether --with-libs was given. 4551if test "${with_libs+set}" = set; then 4552 withval=$with_libs; 4553 if test "x$withval" != "xno" ; then 4554 LIBS="$LIBS $withval" 4555 fi 4556 4557 4558fi 4559 4560 4561# Checks for libraries. 4562 OLDLDFLAGS=$LDFLAGS 4563 LDFLAGS= 4564{ $as_echo "$as_me:$LINENO: checking if we need -pthread for threads" >&5 4565$as_echo_n "checking if we need -pthread for threads... " >&6; } 4566 if test "${ac_cv_ldflag_pthread+set}" = set; then 4567 $as_echo_n "(cached) " >&6 4568else 4569 ac_save_LDFLAGS="$LDFLAGS" 4570 LDFLAGS="-pthread $LDFLAGS" 4571 cat >conftest.$ac_ext <<_ACEOF 4572/* confdefs.h. */ 4573_ACEOF 4574cat confdefs.h >>conftest.$ac_ext 4575cat >>conftest.$ac_ext <<_ACEOF 4576/* end confdefs.h. */ 4577char pthread_create(); 4578int 4579main () 4580{ 4581pthread_create(); 4582 ; 4583 return 0; 4584} 4585_ACEOF 4586rm -f conftest.$ac_objext conftest$ac_exeext 4587if { (ac_try="$ac_link" 4588case "(($ac_try" in 4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4590 *) ac_try_echo=$ac_try;; 4591esac 4592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4593$as_echo "$ac_try_echo") >&5 4594 (eval "$ac_link") 2>conftest.er1 4595 ac_status=$? 4596 grep -v '^ *+' conftest.er1 >conftest.err 4597 rm -f conftest.er1 4598 cat conftest.err >&5 4599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4600 (exit $ac_status); } && { 4601 test -z "$ac_c_werror_flag" || 4602 test ! -s conftest.err 4603 } && test -s conftest$ac_exeext && { 4604 test "$cross_compiling" = yes || 4605 $as_test_x conftest$ac_exeext 4606 }; then 4607 eval "ac_cv_ldflag_pthread=yes" 4608else 4609 $as_echo "$as_me: failed program was:" >&5 4610sed 's/^/| /' conftest.$ac_ext >&5 4611 4612 eval "ac_cv_ldflag_pthread=no" 4613fi 4614 4615rm -rf conftest.dSYM 4616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4617 conftest$ac_exeext conftest.$ac_ext, 4618 LDFLAGS="$ac_save_LDFLAGS" 4619 4620fi 4621 4622 if eval "test \"`echo $ac_cv_ldflag_pthread`\" = yes"; then 4623 { $as_echo "$as_me:$LINENO: result: yes" >&5 4624$as_echo "yes" >&6; } 4625 else 4626 { $as_echo "$as_me:$LINENO: result: no" >&5 4627$as_echo "no" >&6; } 4628 fi 4629 4630 THLDFLAGS=$LDFLAGS 4631 4632 LDFLAGS=$OLDLDFLAGS 4633 4634 OLDLIBS=$LIBS 4635 LIBS= 4636 4637{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 4638$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 4639if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 4640 $as_echo_n "(cached) " >&6 4641else 4642 ac_check_lib_save_LIBS=$LIBS 4643LIBS="-lpthread $LIBS" 4644cat >conftest.$ac_ext <<_ACEOF 4645/* confdefs.h. */ 4646_ACEOF 4647cat confdefs.h >>conftest.$ac_ext 4648cat >>conftest.$ac_ext <<_ACEOF 4649/* end confdefs.h. */ 4650 4651/* Override any GCC internal prototype to avoid an error. 4652 Use char because int might match the return type of a GCC 4653 builtin and then its argument prototype would still apply. */ 4654#ifdef __cplusplus 4655extern "C" 4656#endif 4657char pthread_create (); 4658int 4659main () 4660{ 4661return pthread_create (); 4662 ; 4663 return 0; 4664} 4665_ACEOF 4666rm -f conftest.$ac_objext conftest$ac_exeext 4667if { (ac_try="$ac_link" 4668case "(($ac_try" in 4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4670 *) ac_try_echo=$ac_try;; 4671esac 4672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4673$as_echo "$ac_try_echo") >&5 4674 (eval "$ac_link") 2>conftest.er1 4675 ac_status=$? 4676 grep -v '^ *+' conftest.er1 >conftest.err 4677 rm -f conftest.er1 4678 cat conftest.err >&5 4679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4680 (exit $ac_status); } && { 4681 test -z "$ac_c_werror_flag" || 4682 test ! -s conftest.err 4683 } && test -s conftest$ac_exeext && { 4684 test "$cross_compiling" = yes || 4685 $as_test_x conftest$ac_exeext 4686 }; then 4687 ac_cv_lib_pthread_pthread_create=yes 4688else 4689 $as_echo "$as_me: failed program was:" >&5 4690sed 's/^/| /' conftest.$ac_ext >&5 4691 4692 ac_cv_lib_pthread_pthread_create=no 4693fi 4694 4695rm -rf conftest.dSYM 4696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4697 conftest$ac_exeext conftest.$ac_ext 4698LIBS=$ac_check_lib_save_LIBS 4699fi 4700{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 4701$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 4702if test $ac_cv_lib_pthread_pthread_create = yes; then 4703 cat >>confdefs.h <<_ACEOF 4704#define HAVE_LIBPTHREAD 1 4705_ACEOF 4706 4707 LIBS="-lpthread $LIBS" 4708 4709fi 4710 4711 4712{ $as_echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 4713$as_echo_n "checking for thr_create in -lthread... " >&6; } 4714if test "${ac_cv_lib_thread_thr_create+set}" = set; then 4715 $as_echo_n "(cached) " >&6 4716else 4717 ac_check_lib_save_LIBS=$LIBS 4718LIBS="-lthread $LIBS" 4719cat >conftest.$ac_ext <<_ACEOF 4720/* confdefs.h. */ 4721_ACEOF 4722cat confdefs.h >>conftest.$ac_ext 4723cat >>conftest.$ac_ext <<_ACEOF 4724/* end confdefs.h. */ 4725 4726/* Override any GCC internal prototype to avoid an error. 4727 Use char because int might match the return type of a GCC 4728 builtin and then its argument prototype would still apply. */ 4729#ifdef __cplusplus 4730extern "C" 4731#endif 4732char thr_create (); 4733int 4734main () 4735{ 4736return thr_create (); 4737 ; 4738 return 0; 4739} 4740_ACEOF 4741rm -f conftest.$ac_objext conftest$ac_exeext 4742if { (ac_try="$ac_link" 4743case "(($ac_try" in 4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4745 *) ac_try_echo=$ac_try;; 4746esac 4747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4748$as_echo "$ac_try_echo") >&5 4749 (eval "$ac_link") 2>conftest.er1 4750 ac_status=$? 4751 grep -v '^ *+' conftest.er1 >conftest.err 4752 rm -f conftest.er1 4753 cat conftest.err >&5 4754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4755 (exit $ac_status); } && { 4756 test -z "$ac_c_werror_flag" || 4757 test ! -s conftest.err 4758 } && test -s conftest$ac_exeext && { 4759 test "$cross_compiling" = yes || 4760 $as_test_x conftest$ac_exeext 4761 }; then 4762 ac_cv_lib_thread_thr_create=yes 4763else 4764 $as_echo "$as_me: failed program was:" >&5 4765sed 's/^/| /' conftest.$ac_ext >&5 4766 4767 ac_cv_lib_thread_thr_create=no 4768fi 4769 4770rm -rf conftest.dSYM 4771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4772 conftest$ac_exeext conftest.$ac_ext 4773LIBS=$ac_check_lib_save_LIBS 4774fi 4775{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 4776$as_echo "$ac_cv_lib_thread_thr_create" >&6; } 4777if test $ac_cv_lib_thread_thr_create = yes; then 4778 cat >>confdefs.h <<_ACEOF 4779#define HAVE_LIBTHREAD 1 4780_ACEOF 4781 4782 LIBS="-lthread $LIBS" 4783 4784fi 4785 4786 4787{ $as_echo "$as_me:$LINENO: checking for sem_wait in -lposix4" >&5 4788$as_echo_n "checking for sem_wait in -lposix4... " >&6; } 4789if test "${ac_cv_lib_posix4_sem_wait+set}" = set; then 4790 $as_echo_n "(cached) " >&6 4791else 4792 ac_check_lib_save_LIBS=$LIBS 4793LIBS="-lposix4 $LIBS" 4794cat >conftest.$ac_ext <<_ACEOF 4795/* confdefs.h. */ 4796_ACEOF 4797cat confdefs.h >>conftest.$ac_ext 4798cat >>conftest.$ac_ext <<_ACEOF 4799/* end confdefs.h. */ 4800 4801/* Override any GCC internal prototype to avoid an error. 4802 Use char because int might match the return type of a GCC 4803 builtin and then its argument prototype would still apply. */ 4804#ifdef __cplusplus 4805extern "C" 4806#endif 4807char sem_wait (); 4808int 4809main () 4810{ 4811return sem_wait (); 4812 ; 4813 return 0; 4814} 4815_ACEOF 4816rm -f conftest.$ac_objext conftest$ac_exeext 4817if { (ac_try="$ac_link" 4818case "(($ac_try" in 4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4820 *) ac_try_echo=$ac_try;; 4821esac 4822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4823$as_echo "$ac_try_echo") >&5 4824 (eval "$ac_link") 2>conftest.er1 4825 ac_status=$? 4826 grep -v '^ *+' conftest.er1 >conftest.err 4827 rm -f conftest.er1 4828 cat conftest.err >&5 4829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4830 (exit $ac_status); } && { 4831 test -z "$ac_c_werror_flag" || 4832 test ! -s conftest.err 4833 } && test -s conftest$ac_exeext && { 4834 test "$cross_compiling" = yes || 4835 $as_test_x conftest$ac_exeext 4836 }; then 4837 ac_cv_lib_posix4_sem_wait=yes 4838else 4839 $as_echo "$as_me: failed program was:" >&5 4840sed 's/^/| /' conftest.$ac_ext >&5 4841 4842 ac_cv_lib_posix4_sem_wait=no 4843fi 4844 4845rm -rf conftest.dSYM 4846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4847 conftest$ac_exeext conftest.$ac_ext 4848LIBS=$ac_check_lib_save_LIBS 4849fi 4850{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_wait" >&5 4851$as_echo "$ac_cv_lib_posix4_sem_wait" >&6; } 4852if test $ac_cv_lib_posix4_sem_wait = yes; then 4853 cat >>confdefs.h <<_ACEOF 4854#define HAVE_LIBPOSIX4 1 4855_ACEOF 4856 4857 LIBS="-lposix4 $LIBS" 4858 4859fi 4860 4861 THLIBS=$LIBS 4862 4863 4864for ac_func in pthread_atfork 4865do 4866as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4867{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 4868$as_echo_n "checking for $ac_func... " >&6; } 4869if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 4870 $as_echo_n "(cached) " >&6 4871else 4872 cat >conftest.$ac_ext <<_ACEOF 4873/* confdefs.h. */ 4874_ACEOF 4875cat confdefs.h >>conftest.$ac_ext 4876cat >>conftest.$ac_ext <<_ACEOF 4877/* end confdefs.h. */ 4878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4879 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4880#define $ac_func innocuous_$ac_func 4881 4882/* System header to define __stub macros and hopefully few prototypes, 4883 which can conflict with char $ac_func (); below. 4884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4885 <limits.h> exists even on freestanding compilers. */ 4886 4887#ifdef __STDC__ 4888# include <limits.h> 4889#else 4890# include <assert.h> 4891#endif 4892 4893#undef $ac_func 4894 4895/* Override any GCC internal prototype to avoid an error. 4896 Use char because int might match the return type of a GCC 4897 builtin and then its argument prototype would still apply. */ 4898#ifdef __cplusplus 4899extern "C" 4900#endif 4901char $ac_func (); 4902/* The GNU C library defines this for functions which it implements 4903 to always fail with ENOSYS. Some functions are actually named 4904 something starting with __ and the normal name is an alias. */ 4905#if defined __stub_$ac_func || defined __stub___$ac_func 4906choke me 4907#endif 4908 4909int 4910main () 4911{ 4912return $ac_func (); 4913 ; 4914 return 0; 4915} 4916_ACEOF 4917rm -f conftest.$ac_objext conftest$ac_exeext 4918if { (ac_try="$ac_link" 4919case "(($ac_try" in 4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4921 *) ac_try_echo=$ac_try;; 4922esac 4923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4924$as_echo "$ac_try_echo") >&5 4925 (eval "$ac_link") 2>conftest.er1 4926 ac_status=$? 4927 grep -v '^ *+' conftest.er1 >conftest.err 4928 rm -f conftest.er1 4929 cat conftest.err >&5 4930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4931 (exit $ac_status); } && { 4932 test -z "$ac_c_werror_flag" || 4933 test ! -s conftest.err 4934 } && test -s conftest$ac_exeext && { 4935 test "$cross_compiling" = yes || 4936 $as_test_x conftest$ac_exeext 4937 }; then 4938 eval "$as_ac_var=yes" 4939else 4940 $as_echo "$as_me: failed program was:" >&5 4941sed 's/^/| /' conftest.$ac_ext >&5 4942 4943 eval "$as_ac_var=no" 4944fi 4945 4946rm -rf conftest.dSYM 4947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4948 conftest$ac_exeext conftest.$ac_ext 4949fi 4950ac_res=`eval 'as_val=${'$as_ac_var'} 4951 $as_echo "$as_val"'` 4952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4953$as_echo "$ac_res" >&6; } 4954if test `eval 'as_val=${'$as_ac_var'} 4955 $as_echo "$as_val"'` = yes; then 4956 cat >>confdefs.h <<_ACEOF 4957#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4958_ACEOF 4959 4960fi 4961done 4962 4963 LIBS=$OLDLIBS 4964 4965 4966{ $as_echo "$as_me:$LINENO: checking for gethostbyaddr in -lnsl" >&5 4967$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; } 4968if test "${ac_cv_lib_nsl_gethostbyaddr+set}" = set; then 4969 $as_echo_n "(cached) " >&6 4970else 4971 ac_check_lib_save_LIBS=$LIBS 4972LIBS="-lnsl $LIBS" 4973cat >conftest.$ac_ext <<_ACEOF 4974/* confdefs.h. */ 4975_ACEOF 4976cat confdefs.h >>conftest.$ac_ext 4977cat >>conftest.$ac_ext <<_ACEOF 4978/* end confdefs.h. */ 4979 4980/* Override any GCC internal prototype to avoid an error. 4981 Use char because int might match the return type of a GCC 4982 builtin and then its argument prototype would still apply. */ 4983#ifdef __cplusplus 4984extern "C" 4985#endif 4986char gethostbyaddr (); 4987int 4988main () 4989{ 4990return gethostbyaddr (); 4991 ; 4992 return 0; 4993} 4994_ACEOF 4995rm -f conftest.$ac_objext conftest$ac_exeext 4996if { (ac_try="$ac_link" 4997case "(($ac_try" in 4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4999 *) ac_try_echo=$ac_try;; 5000esac 5001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5002$as_echo "$ac_try_echo") >&5 5003 (eval "$ac_link") 2>conftest.er1 5004 ac_status=$? 5005 grep -v '^ *+' conftest.er1 >conftest.err 5006 rm -f conftest.er1 5007 cat conftest.err >&5 5008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5009 (exit $ac_status); } && { 5010 test -z "$ac_c_werror_flag" || 5011 test ! -s conftest.err 5012 } && test -s conftest$ac_exeext && { 5013 test "$cross_compiling" = yes || 5014 $as_test_x conftest$ac_exeext 5015 }; then 5016 ac_cv_lib_nsl_gethostbyaddr=yes 5017else 5018 $as_echo "$as_me: failed program was:" >&5 5019sed 's/^/| /' conftest.$ac_ext >&5 5020 5021 ac_cv_lib_nsl_gethostbyaddr=no 5022fi 5023 5024rm -rf conftest.dSYM 5025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5026 conftest$ac_exeext conftest.$ac_ext 5027LIBS=$ac_check_lib_save_LIBS 5028fi 5029{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyaddr" >&5 5030$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; } 5031if test $ac_cv_lib_nsl_gethostbyaddr = yes; then 5032 cat >>confdefs.h <<_ACEOF 5033#define HAVE_LIBNSL 1 5034_ACEOF 5035 5036 LIBS="-lnsl $LIBS" 5037 5038fi 5039 5040 5041{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 5042$as_echo_n "checking for socket in -lsocket... " >&6; } 5043if test "${ac_cv_lib_socket_socket+set}" = set; then 5044 $as_echo_n "(cached) " >&6 5045else 5046 ac_check_lib_save_LIBS=$LIBS 5047LIBS="-lsocket $LIBS" 5048cat >conftest.$ac_ext <<_ACEOF 5049/* confdefs.h. */ 5050_ACEOF 5051cat confdefs.h >>conftest.$ac_ext 5052cat >>conftest.$ac_ext <<_ACEOF 5053/* end confdefs.h. */ 5054 5055/* Override any GCC internal prototype to avoid an error. 5056 Use char because int might match the return type of a GCC 5057 builtin and then its argument prototype would still apply. */ 5058#ifdef __cplusplus 5059extern "C" 5060#endif 5061char socket (); 5062int 5063main () 5064{ 5065return socket (); 5066 ; 5067 return 0; 5068} 5069_ACEOF 5070rm -f conftest.$ac_objext conftest$ac_exeext 5071if { (ac_try="$ac_link" 5072case "(($ac_try" in 5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5074 *) ac_try_echo=$ac_try;; 5075esac 5076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5077$as_echo "$ac_try_echo") >&5 5078 (eval "$ac_link") 2>conftest.er1 5079 ac_status=$? 5080 grep -v '^ *+' conftest.er1 >conftest.err 5081 rm -f conftest.er1 5082 cat conftest.err >&5 5083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5084 (exit $ac_status); } && { 5085 test -z "$ac_c_werror_flag" || 5086 test ! -s conftest.err 5087 } && test -s conftest$ac_exeext && { 5088 test "$cross_compiling" = yes || 5089 $as_test_x conftest$ac_exeext 5090 }; then 5091 ac_cv_lib_socket_socket=yes 5092else 5093 $as_echo "$as_me: failed program was:" >&5 5094sed 's/^/| /' conftest.$ac_ext >&5 5095 5096 ac_cv_lib_socket_socket=no 5097fi 5098 5099rm -rf conftest.dSYM 5100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5101 conftest$ac_exeext conftest.$ac_ext 5102LIBS=$ac_check_lib_save_LIBS 5103fi 5104{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 5105$as_echo "$ac_cv_lib_socket_socket" >&6; } 5106if test $ac_cv_lib_socket_socket = yes; then 5107 cat >>confdefs.h <<_ACEOF 5108#define HAVE_LIBSOCKET 1 5109_ACEOF 5110 5111 LIBS="-lsocket $LIBS" 5112 5113fi 5114 5115{ $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5 5116$as_echo_n "checking for library containing shm_open... " >&6; } 5117if test "${ac_cv_search_shm_open+set}" = set; then 5118 $as_echo_n "(cached) " >&6 5119else 5120 ac_func_search_save_LIBS=$LIBS 5121cat >conftest.$ac_ext <<_ACEOF 5122/* confdefs.h. */ 5123_ACEOF 5124cat confdefs.h >>conftest.$ac_ext 5125cat >>conftest.$ac_ext <<_ACEOF 5126/* end confdefs.h. */ 5127 5128/* Override any GCC internal prototype to avoid an error. 5129 Use char because int might match the return type of a GCC 5130 builtin and then its argument prototype would still apply. */ 5131#ifdef __cplusplus 5132extern "C" 5133#endif 5134char shm_open (); 5135int 5136main () 5137{ 5138return shm_open (); 5139 ; 5140 return 0; 5141} 5142_ACEOF 5143for ac_lib in '' rt posix4; do 5144 if test -z "$ac_lib"; then 5145 ac_res="none required" 5146 else 5147 ac_res=-l$ac_lib 5148 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5149 fi 5150 rm -f conftest.$ac_objext conftest$ac_exeext 5151if { (ac_try="$ac_link" 5152case "(($ac_try" in 5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5154 *) ac_try_echo=$ac_try;; 5155esac 5156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5157$as_echo "$ac_try_echo") >&5 5158 (eval "$ac_link") 2>conftest.er1 5159 ac_status=$? 5160 grep -v '^ *+' conftest.er1 >conftest.err 5161 rm -f conftest.er1 5162 cat conftest.err >&5 5163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5164 (exit $ac_status); } && { 5165 test -z "$ac_c_werror_flag" || 5166 test ! -s conftest.err 5167 } && test -s conftest$ac_exeext && { 5168 test "$cross_compiling" = yes || 5169 $as_test_x conftest$ac_exeext 5170 }; then 5171 ac_cv_search_shm_open=$ac_res 5172else 5173 $as_echo "$as_me: failed program was:" >&5 5174sed 's/^/| /' conftest.$ac_ext >&5 5175 5176 5177fi 5178 5179rm -rf conftest.dSYM 5180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5181 conftest$ac_exeext 5182 if test "${ac_cv_search_shm_open+set}" = set; then 5183 break 5184fi 5185done 5186if test "${ac_cv_search_shm_open+set}" = set; then 5187 : 5188else 5189 ac_cv_search_shm_open=no 5190fi 5191rm conftest.$ac_ext 5192LIBS=$ac_func_search_save_LIBS 5193fi 5194{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5 5195$as_echo "$ac_cv_search_shm_open" >&6; } 5196ac_res=$ac_cv_search_shm_open 5197if test "$ac_res" != no; then 5198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5199 5200fi 5201 5202{ $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 5203$as_echo_n "checking for library containing nanosleep... " >&6; } 5204if test "${ac_cv_search_nanosleep+set}" = set; then 5205 $as_echo_n "(cached) " >&6 5206else 5207 ac_func_search_save_LIBS=$LIBS 5208cat >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 5215/* Override any GCC internal prototype to avoid an error. 5216 Use char because int might match the return type of a GCC 5217 builtin and then its argument prototype would still apply. */ 5218#ifdef __cplusplus 5219extern "C" 5220#endif 5221char nanosleep (); 5222int 5223main () 5224{ 5225return nanosleep (); 5226 ; 5227 return 0; 5228} 5229_ACEOF 5230for ac_lib in '' rt posix4; do 5231 if test -z "$ac_lib"; then 5232 ac_res="none required" 5233 else 5234 ac_res=-l$ac_lib 5235 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5236 fi 5237 rm -f conftest.$ac_objext conftest$ac_exeext 5238if { (ac_try="$ac_link" 5239case "(($ac_try" in 5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5241 *) ac_try_echo=$ac_try;; 5242esac 5243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5244$as_echo "$ac_try_echo") >&5 5245 (eval "$ac_link") 2>conftest.er1 5246 ac_status=$? 5247 grep -v '^ *+' conftest.er1 >conftest.err 5248 rm -f conftest.er1 5249 cat conftest.err >&5 5250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5251 (exit $ac_status); } && { 5252 test -z "$ac_c_werror_flag" || 5253 test ! -s conftest.err 5254 } && test -s conftest$ac_exeext && { 5255 test "$cross_compiling" = yes || 5256 $as_test_x conftest$ac_exeext 5257 }; then 5258 ac_cv_search_nanosleep=$ac_res 5259else 5260 $as_echo "$as_me: failed program was:" >&5 5261sed 's/^/| /' conftest.$ac_ext >&5 5262 5263 5264fi 5265 5266rm -rf conftest.dSYM 5267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5268 conftest$ac_exeext 5269 if test "${ac_cv_search_nanosleep+set}" = set; then 5270 break 5271fi 5272done 5273if test "${ac_cv_search_nanosleep+set}" = set; then 5274 : 5275else 5276 ac_cv_search_nanosleep=no 5277fi 5278rm conftest.$ac_ext 5279LIBS=$ac_func_search_save_LIBS 5280fi 5281{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 5282$as_echo "$ac_cv_search_nanosleep" >&6; } 5283ac_res=$ac_cv_search_nanosleep 5284if test "$ac_res" != no; then 5285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5286 5287fi 5288 5289 5290{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 5291$as_echo_n "checking for sqrt in -lm... " >&6; } 5292if test "${ac_cv_lib_m_sqrt+set}" = set; then 5293 $as_echo_n "(cached) " >&6 5294else 5295 ac_check_lib_save_LIBS=$LIBS 5296LIBS="-lm $LIBS" 5297cat >conftest.$ac_ext <<_ACEOF 5298/* confdefs.h. */ 5299_ACEOF 5300cat confdefs.h >>conftest.$ac_ext 5301cat >>conftest.$ac_ext <<_ACEOF 5302/* end confdefs.h. */ 5303 5304/* Override any GCC internal prototype to avoid an error. 5305 Use char because int might match the return type of a GCC 5306 builtin and then its argument prototype would still apply. */ 5307#ifdef __cplusplus 5308extern "C" 5309#endif 5310char sqrt (); 5311int 5312main () 5313{ 5314return sqrt (); 5315 ; 5316 return 0; 5317} 5318_ACEOF 5319rm -f conftest.$ac_objext conftest$ac_exeext 5320if { (ac_try="$ac_link" 5321case "(($ac_try" in 5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5323 *) ac_try_echo=$ac_try;; 5324esac 5325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5326$as_echo "$ac_try_echo") >&5 5327 (eval "$ac_link") 2>conftest.er1 5328 ac_status=$? 5329 grep -v '^ *+' conftest.er1 >conftest.err 5330 rm -f conftest.er1 5331 cat conftest.err >&5 5332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5333 (exit $ac_status); } && { 5334 test -z "$ac_c_werror_flag" || 5335 test ! -s conftest.err 5336 } && test -s conftest$ac_exeext && { 5337 test "$cross_compiling" = yes || 5338 $as_test_x conftest$ac_exeext 5339 }; then 5340 ac_cv_lib_m_sqrt=yes 5341else 5342 $as_echo "$as_me: failed program was:" >&5 5343sed 's/^/| /' conftest.$ac_ext >&5 5344 5345 ac_cv_lib_m_sqrt=no 5346fi 5347 5348rm -rf conftest.dSYM 5349rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5350 conftest$ac_exeext conftest.$ac_ext 5351LIBS=$ac_check_lib_save_LIBS 5352fi 5353{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 5354$as_echo "$ac_cv_lib_m_sqrt" >&6; } 5355if test $ac_cv_lib_m_sqrt = yes; then 5356 cat >>confdefs.h <<_ACEOF 5357#define HAVE_LIBM 1 5358_ACEOF 5359 5360 LIBS="-lm $LIBS" 5361 5362fi 5363 5364 5365 5366for ac_func in strftime 5367do 5368as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5369{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 5370$as_echo_n "checking for $ac_func... " >&6; } 5371if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5372 $as_echo_n "(cached) " >&6 5373else 5374 cat >conftest.$ac_ext <<_ACEOF 5375/* confdefs.h. */ 5376_ACEOF 5377cat confdefs.h >>conftest.$ac_ext 5378cat >>conftest.$ac_ext <<_ACEOF 5379/* end confdefs.h. */ 5380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5381 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5382#define $ac_func innocuous_$ac_func 5383 5384/* System header to define __stub macros and hopefully few prototypes, 5385 which can conflict with char $ac_func (); below. 5386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5387 <limits.h> exists even on freestanding compilers. */ 5388 5389#ifdef __STDC__ 5390# include <limits.h> 5391#else 5392# include <assert.h> 5393#endif 5394 5395#undef $ac_func 5396 5397/* Override any GCC internal prototype to avoid an error. 5398 Use char because int might match the return type of a GCC 5399 builtin and then its argument prototype would still apply. */ 5400#ifdef __cplusplus 5401extern "C" 5402#endif 5403char $ac_func (); 5404/* The GNU C library defines this for functions which it implements 5405 to always fail with ENOSYS. Some functions are actually named 5406 something starting with __ and the normal name is an alias. */ 5407#if defined __stub_$ac_func || defined __stub___$ac_func 5408choke me 5409#endif 5410 5411int 5412main () 5413{ 5414return $ac_func (); 5415 ; 5416 return 0; 5417} 5418_ACEOF 5419rm -f conftest.$ac_objext conftest$ac_exeext 5420if { (ac_try="$ac_link" 5421case "(($ac_try" in 5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5423 *) ac_try_echo=$ac_try;; 5424esac 5425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5426$as_echo "$ac_try_echo") >&5 5427 (eval "$ac_link") 2>conftest.er1 5428 ac_status=$? 5429 grep -v '^ *+' conftest.er1 >conftest.err 5430 rm -f conftest.er1 5431 cat conftest.err >&5 5432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5433 (exit $ac_status); } && { 5434 test -z "$ac_c_werror_flag" || 5435 test ! -s conftest.err 5436 } && test -s conftest$ac_exeext && { 5437 test "$cross_compiling" = yes || 5438 $as_test_x conftest$ac_exeext 5439 }; then 5440 eval "$as_ac_var=yes" 5441else 5442 $as_echo "$as_me: failed program was:" >&5 5443sed 's/^/| /' conftest.$ac_ext >&5 5444 5445 eval "$as_ac_var=no" 5446fi 5447 5448rm -rf conftest.dSYM 5449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5450 conftest$ac_exeext conftest.$ac_ext 5451fi 5452ac_res=`eval 'as_val=${'$as_ac_var'} 5453 $as_echo "$as_val"'` 5454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5455$as_echo "$ac_res" >&6; } 5456if test `eval 'as_val=${'$as_ac_var'} 5457 $as_echo "$as_val"'` = yes; then 5458 cat >>confdefs.h <<_ACEOF 5459#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5460_ACEOF 5461 5462else 5463 # strftime is in -lintl on SCO UNIX. 5464{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 5465$as_echo_n "checking for strftime in -lintl... " >&6; } 5466if test "${ac_cv_lib_intl_strftime+set}" = set; then 5467 $as_echo_n "(cached) " >&6 5468else 5469 ac_check_lib_save_LIBS=$LIBS 5470LIBS="-lintl $LIBS" 5471cat >conftest.$ac_ext <<_ACEOF 5472/* confdefs.h. */ 5473_ACEOF 5474cat confdefs.h >>conftest.$ac_ext 5475cat >>conftest.$ac_ext <<_ACEOF 5476/* end confdefs.h. */ 5477 5478/* Override any GCC internal prototype to avoid an error. 5479 Use char because int might match the return type of a GCC 5480 builtin and then its argument prototype would still apply. */ 5481#ifdef __cplusplus 5482extern "C" 5483#endif 5484char strftime (); 5485int 5486main () 5487{ 5488return strftime (); 5489 ; 5490 return 0; 5491} 5492_ACEOF 5493rm -f conftest.$ac_objext conftest$ac_exeext 5494if { (ac_try="$ac_link" 5495case "(($ac_try" in 5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5497 *) ac_try_echo=$ac_try;; 5498esac 5499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5500$as_echo "$ac_try_echo") >&5 5501 (eval "$ac_link") 2>conftest.er1 5502 ac_status=$? 5503 grep -v '^ *+' conftest.er1 >conftest.err 5504 rm -f conftest.er1 5505 cat conftest.err >&5 5506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5507 (exit $ac_status); } && { 5508 test -z "$ac_c_werror_flag" || 5509 test ! -s conftest.err 5510 } && test -s conftest$ac_exeext && { 5511 test "$cross_compiling" = yes || 5512 $as_test_x conftest$ac_exeext 5513 }; then 5514 ac_cv_lib_intl_strftime=yes 5515else 5516 $as_echo "$as_me: failed program was:" >&5 5517sed 's/^/| /' conftest.$ac_ext >&5 5518 5519 ac_cv_lib_intl_strftime=no 5520fi 5521 5522rm -rf conftest.dSYM 5523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5524 conftest$ac_exeext conftest.$ac_ext 5525LIBS=$ac_check_lib_save_LIBS 5526fi 5527{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 5528$as_echo "$ac_cv_lib_intl_strftime" >&6; } 5529if test $ac_cv_lib_intl_strftime = yes; then 5530 cat >>confdefs.h <<\_ACEOF 5531#define HAVE_STRFTIME 1 5532_ACEOF 5533 5534LIBS="-lintl $LIBS" 5535fi 5536 5537fi 5538done 5539 5540 5541# Checks for header files. 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574for ac_header in arpa/inet.h assert.h errno.h grp.h limits.h netdb.h netinet/in.h netinet/tcp.h process.h pthread.h pwd.h signal.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/inttypes.h sys/ioctl.h sys/param.h sys/socket.h sys/stat.h sys/time.h sys/timeb.h sys/types.h sys/uio.h sys/un.h sys/filio.h time.h unistd.h windows.h winsock.h 5575do 5576as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5579$as_echo_n "checking for $ac_header... " >&6; } 5580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5581 $as_echo_n "(cached) " >&6 5582fi 5583ac_res=`eval 'as_val=${'$as_ac_Header'} 5584 $as_echo "$as_val"'` 5585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5586$as_echo "$ac_res" >&6; } 5587else 5588 # Is the header compilable? 5589{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5590$as_echo_n "checking $ac_header usability... " >&6; } 5591cat >conftest.$ac_ext <<_ACEOF 5592/* confdefs.h. */ 5593_ACEOF 5594cat confdefs.h >>conftest.$ac_ext 5595cat >>conftest.$ac_ext <<_ACEOF 5596/* end confdefs.h. */ 5597$ac_includes_default 5598#include <$ac_header> 5599_ACEOF 5600rm -f conftest.$ac_objext 5601if { (ac_try="$ac_compile" 5602case "(($ac_try" in 5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5604 *) ac_try_echo=$ac_try;; 5605esac 5606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5607$as_echo "$ac_try_echo") >&5 5608 (eval "$ac_compile") 2>conftest.er1 5609 ac_status=$? 5610 grep -v '^ *+' conftest.er1 >conftest.err 5611 rm -f conftest.er1 5612 cat conftest.err >&5 5613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5614 (exit $ac_status); } && { 5615 test -z "$ac_c_werror_flag" || 5616 test ! -s conftest.err 5617 } && test -s conftest.$ac_objext; then 5618 ac_header_compiler=yes 5619else 5620 $as_echo "$as_me: failed program was:" >&5 5621sed 's/^/| /' conftest.$ac_ext >&5 5622 5623 ac_header_compiler=no 5624fi 5625 5626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5627{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5628$as_echo "$ac_header_compiler" >&6; } 5629 5630# Is the header present? 5631{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5632$as_echo_n "checking $ac_header presence... " >&6; } 5633cat >conftest.$ac_ext <<_ACEOF 5634/* confdefs.h. */ 5635_ACEOF 5636cat confdefs.h >>conftest.$ac_ext 5637cat >>conftest.$ac_ext <<_ACEOF 5638/* end confdefs.h. */ 5639#include <$ac_header> 5640_ACEOF 5641if { (ac_try="$ac_cpp conftest.$ac_ext" 5642case "(($ac_try" in 5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5644 *) ac_try_echo=$ac_try;; 5645esac 5646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5647$as_echo "$ac_try_echo") >&5 5648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5649 ac_status=$? 5650 grep -v '^ *+' conftest.er1 >conftest.err 5651 rm -f conftest.er1 5652 cat conftest.err >&5 5653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5654 (exit $ac_status); } >/dev/null && { 5655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5656 test ! -s conftest.err 5657 }; then 5658 ac_header_preproc=yes 5659else 5660 $as_echo "$as_me: failed program was:" >&5 5661sed 's/^/| /' conftest.$ac_ext >&5 5662 5663 ac_header_preproc=no 5664fi 5665 5666rm -f conftest.err conftest.$ac_ext 5667{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5668$as_echo "$ac_header_preproc" >&6; } 5669 5670# So? What about this header? 5671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5672 yes:no: ) 5673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5674$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5676$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5677 ac_header_preproc=yes 5678 ;; 5679 no:yes:* ) 5680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5681$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5683$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5685$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5687$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5689$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5691$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5692 5693 ;; 5694esac 5695{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5696$as_echo_n "checking for $ac_header... " >&6; } 5697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5698 $as_echo_n "(cached) " >&6 5699else 5700 eval "$as_ac_Header=\$ac_header_preproc" 5701fi 5702ac_res=`eval 'as_val=${'$as_ac_Header'} 5703 $as_echo "$as_val"'` 5704 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5705$as_echo "$ac_res" >&6; } 5706 5707fi 5708if test `eval 'as_val=${'$as_ac_Header'} 5709 $as_echo "$as_val"'` = yes; then 5710 cat >>confdefs.h <<_ACEOF 5711#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5712_ACEOF 5713 5714fi 5715 5716done 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728for ac_func in bcopy inet_aton inet_ntoa inet_ntop memmove setsid snprintf strerror lrand48 5729do 5730as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5731{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 5732$as_echo_n "checking for $ac_func... " >&6; } 5733if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5734 $as_echo_n "(cached) " >&6 5735else 5736 cat >conftest.$ac_ext <<_ACEOF 5737/* confdefs.h. */ 5738_ACEOF 5739cat confdefs.h >>conftest.$ac_ext 5740cat >>conftest.$ac_ext <<_ACEOF 5741/* end confdefs.h. */ 5742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5743 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5744#define $ac_func innocuous_$ac_func 5745 5746/* System header to define __stub macros and hopefully few prototypes, 5747 which can conflict with char $ac_func (); below. 5748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5749 <limits.h> exists even on freestanding compilers. */ 5750 5751#ifdef __STDC__ 5752# include <limits.h> 5753#else 5754# include <assert.h> 5755#endif 5756 5757#undef $ac_func 5758 5759/* Override any GCC internal prototype to avoid an error. 5760 Use char because int might match the return type of a GCC 5761 builtin and then its argument prototype would still apply. */ 5762#ifdef __cplusplus 5763extern "C" 5764#endif 5765char $ac_func (); 5766/* The GNU C library defines this for functions which it implements 5767 to always fail with ENOSYS. Some functions are actually named 5768 something starting with __ and the normal name is an alias. */ 5769#if defined __stub_$ac_func || defined __stub___$ac_func 5770choke me 5771#endif 5772 5773int 5774main () 5775{ 5776return $ac_func (); 5777 ; 5778 return 0; 5779} 5780_ACEOF 5781rm -f conftest.$ac_objext conftest$ac_exeext 5782if { (ac_try="$ac_link" 5783case "(($ac_try" in 5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5785 *) ac_try_echo=$ac_try;; 5786esac 5787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5788$as_echo "$ac_try_echo") >&5 5789 (eval "$ac_link") 2>conftest.er1 5790 ac_status=$? 5791 grep -v '^ *+' conftest.er1 >conftest.err 5792 rm -f conftest.er1 5793 cat conftest.err >&5 5794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5795 (exit $ac_status); } && { 5796 test -z "$ac_c_werror_flag" || 5797 test ! -s conftest.err 5798 } && test -s conftest$ac_exeext && { 5799 test "$cross_compiling" = yes || 5800 $as_test_x conftest$ac_exeext 5801 }; then 5802 eval "$as_ac_var=yes" 5803else 5804 $as_echo "$as_me: failed program was:" >&5 5805sed 's/^/| /' conftest.$ac_ext >&5 5806 5807 eval "$as_ac_var=no" 5808fi 5809 5810rm -rf conftest.dSYM 5811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5812 conftest$ac_exeext conftest.$ac_ext 5813fi 5814ac_res=`eval 'as_val=${'$as_ac_var'} 5815 $as_echo "$as_val"'` 5816 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5817$as_echo "$ac_res" >&6; } 5818if test `eval 'as_val=${'$as_ac_var'} 5819 $as_echo "$as_val"'` = yes; then 5820 cat >>confdefs.h <<_ACEOF 5821#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5822_ACEOF 5823 5824fi 5825done 5826 5827 5828 5829for ac_func in gettimeofday time 5830do 5831as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5832{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 5833$as_echo_n "checking for $ac_func... " >&6; } 5834if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5835 $as_echo_n "(cached) " >&6 5836else 5837 cat >conftest.$ac_ext <<_ACEOF 5838/* confdefs.h. */ 5839_ACEOF 5840cat confdefs.h >>conftest.$ac_ext 5841cat >>conftest.$ac_ext <<_ACEOF 5842/* end confdefs.h. */ 5843/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5844 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5845#define $ac_func innocuous_$ac_func 5846 5847/* System header to define __stub macros and hopefully few prototypes, 5848 which can conflict with char $ac_func (); below. 5849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5850 <limits.h> exists even on freestanding compilers. */ 5851 5852#ifdef __STDC__ 5853# include <limits.h> 5854#else 5855# include <assert.h> 5856#endif 5857 5858#undef $ac_func 5859 5860/* Override any GCC internal prototype to avoid an error. 5861 Use char because int might match the return type of a GCC 5862 builtin and then its argument prototype would still apply. */ 5863#ifdef __cplusplus 5864extern "C" 5865#endif 5866char $ac_func (); 5867/* The GNU C library defines this for functions which it implements 5868 to always fail with ENOSYS. Some functions are actually named 5869 something starting with __ and the normal name is an alias. */ 5870#if defined __stub_$ac_func || defined __stub___$ac_func 5871choke me 5872#endif 5873 5874int 5875main () 5876{ 5877return $ac_func (); 5878 ; 5879 return 0; 5880} 5881_ACEOF 5882rm -f conftest.$ac_objext conftest$ac_exeext 5883if { (ac_try="$ac_link" 5884case "(($ac_try" in 5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5886 *) ac_try_echo=$ac_try;; 5887esac 5888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5889$as_echo "$ac_try_echo") >&5 5890 (eval "$ac_link") 2>conftest.er1 5891 ac_status=$? 5892 grep -v '^ *+' conftest.er1 >conftest.err 5893 rm -f conftest.er1 5894 cat conftest.err >&5 5895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5896 (exit $ac_status); } && { 5897 test -z "$ac_c_werror_flag" || 5898 test ! -s conftest.err 5899 } && test -s conftest$ac_exeext && { 5900 test "$cross_compiling" = yes || 5901 $as_test_x conftest$ac_exeext 5902 }; then 5903 eval "$as_ac_var=yes" 5904else 5905 $as_echo "$as_me: failed program was:" >&5 5906sed 's/^/| /' conftest.$ac_ext >&5 5907 5908 eval "$as_ac_var=no" 5909fi 5910 5911rm -rf conftest.dSYM 5912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5913 conftest$ac_exeext conftest.$ac_ext 5914fi 5915ac_res=`eval 'as_val=${'$as_ac_var'} 5916 $as_echo "$as_val"'` 5917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5918$as_echo "$ac_res" >&6; } 5919if test `eval 'as_val=${'$as_ac_var'} 5920 $as_echo "$as_val"'` = yes; then 5921 cat >>confdefs.h <<_ACEOF 5922#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5923_ACEOF 5924 5925fi 5926done 5927 5928 5929# Check for clock_gettime(CLOCK_MONOTONIC, ...) 5930{ $as_echo "$as_me:$LINENO: checking for clock_gettime(CLOCK_MONOTONIC)" >&5 5931$as_echo_n "checking for clock_gettime(CLOCK_MONOTONIC)... " >&6; } 5932if test "${ac_cv_clock_gettime_monotonic+set}" = set; then 5933 $as_echo_n "(cached) " >&6 5934else 5935 5936 cat >conftest.$ac_ext <<_ACEOF 5937/* confdefs.h. */ 5938_ACEOF 5939cat confdefs.h >>conftest.$ac_ext 5940cat >>conftest.$ac_ext <<_ACEOF 5941/* end confdefs.h. */ 5942 #include <time.h> 5943int 5944main () 5945{ 5946 struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); 5947 ; 5948 return 0; 5949} 5950_ACEOF 5951rm -f conftest.$ac_objext 5952if { (ac_try="$ac_compile" 5953case "(($ac_try" in 5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5955 *) ac_try_echo=$ac_try;; 5956esac 5957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5958$as_echo "$ac_try_echo") >&5 5959 (eval "$ac_compile") 2>conftest.er1 5960 ac_status=$? 5961 grep -v '^ *+' conftest.er1 >conftest.err 5962 rm -f conftest.er1 5963 cat conftest.err >&5 5964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5965 (exit $ac_status); } && { 5966 test -z "$ac_c_werror_flag" || 5967 test ! -s conftest.err 5968 } && test -s conftest.$ac_objext; then 5969 ac_cv_clock_gettime_monotonic="yes" 5970else 5971 $as_echo "$as_me: failed program was:" >&5 5972sed 's/^/| /' conftest.$ac_ext >&5 5973 5974 ac_cv_clock_gettime_monotonic="no" 5975 5976fi 5977 5978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5979 5980fi 5981{ $as_echo "$as_me:$LINENO: result: $ac_cv_clock_gettime_monotonic" >&5 5982$as_echo "$ac_cv_clock_gettime_monotonic" >&6; } 5983if test "x$ac_cv_clock_gettime_monotonic" = "xyes" ; then 5984 5985cat >>confdefs.h <<\_ACEOF 5986#define HAVE_CLOCK_GETTIME_CLOCK_MONOTONIC 1 5987_ACEOF 5988 5989fi 5990 5991 5992{ $as_echo "$as_me:$LINENO: checking for library containing dladdr" >&5 5993$as_echo_n "checking for library containing dladdr... " >&6; } 5994if test "${ac_cv_search_dladdr+set}" = set; then 5995 $as_echo_n "(cached) " >&6 5996else 5997 ac_func_search_save_LIBS=$LIBS 5998cat >conftest.$ac_ext <<_ACEOF 5999/* confdefs.h. */ 6000_ACEOF 6001cat confdefs.h >>conftest.$ac_ext 6002cat >>conftest.$ac_ext <<_ACEOF 6003/* end confdefs.h. */ 6004 6005/* Override any GCC internal prototype to avoid an error. 6006 Use char because int might match the return type of a GCC 6007 builtin and then its argument prototype would still apply. */ 6008#ifdef __cplusplus 6009extern "C" 6010#endif 6011char dladdr (); 6012int 6013main () 6014{ 6015return dladdr (); 6016 ; 6017 return 0; 6018} 6019_ACEOF 6020for ac_lib in '' dl dld; do 6021 if test -z "$ac_lib"; then 6022 ac_res="none required" 6023 else 6024 ac_res=-l$ac_lib 6025 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6026 fi 6027 rm -f conftest.$ac_objext conftest$ac_exeext 6028if { (ac_try="$ac_link" 6029case "(($ac_try" in 6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6031 *) ac_try_echo=$ac_try;; 6032esac 6033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6034$as_echo "$ac_try_echo") >&5 6035 (eval "$ac_link") 2>conftest.er1 6036 ac_status=$? 6037 grep -v '^ *+' conftest.er1 >conftest.err 6038 rm -f conftest.er1 6039 cat conftest.err >&5 6040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6041 (exit $ac_status); } && { 6042 test -z "$ac_c_werror_flag" || 6043 test ! -s conftest.err 6044 } && test -s conftest$ac_exeext && { 6045 test "$cross_compiling" = yes || 6046 $as_test_x conftest$ac_exeext 6047 }; then 6048 ac_cv_search_dladdr=$ac_res 6049else 6050 $as_echo "$as_me: failed program was:" >&5 6051sed 's/^/| /' conftest.$ac_ext >&5 6052 6053 6054fi 6055 6056rm -rf conftest.dSYM 6057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6058 conftest$ac_exeext 6059 if test "${ac_cv_search_dladdr+set}" = set; then 6060 break 6061fi 6062done 6063if test "${ac_cv_search_dladdr+set}" = set; then 6064 : 6065else 6066 ac_cv_search_dladdr=no 6067fi 6068rm conftest.$ac_ext 6069LIBS=$ac_func_search_save_LIBS 6070fi 6071{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dladdr" >&5 6072$as_echo "$ac_cv_search_dladdr" >&6; } 6073ac_res=$ac_cv_search_dladdr 6074if test "$ac_res" != no; then 6075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6076 6077else 6078 6079 { { $as_echo "$as_me:$LINENO: error: unable to find the dladdr() function" >&5 6080$as_echo "$as_me: error: unable to find the dladdr() function" >&2;} 6081 { (exit 1); exit 1; }; } 6082 6083fi 6084 6085 6086{ $as_echo "$as_me:$LINENO: checking for dladdr" >&5 6087$as_echo_n "checking for dladdr... " >&6; } 6088if test "${ac_cv_have_dladdr+set}" = set; then 6089 $as_echo_n "(cached) " >&6 6090else 6091 6092 cat >conftest.$ac_ext <<_ACEOF 6093/* confdefs.h. */ 6094_ACEOF 6095cat confdefs.h >>conftest.$ac_ext 6096cat >>conftest.$ac_ext <<_ACEOF 6097/* end confdefs.h. */ 6098 #ifndef _GNU_SOURCE 6099 #define _GNU_SOURCE 1 6100 #endif 6101 #include <dlfcn.h> 6102int 6103main () 6104{ 6105 Dl_info* info = 0; 6106 dladdr(0, info); 6107 ; 6108 return 0; 6109} 6110_ACEOF 6111rm -f conftest.$ac_objext 6112if { (ac_try="$ac_compile" 6113case "(($ac_try" in 6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6115 *) ac_try_echo=$ac_try;; 6116esac 6117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6118$as_echo "$ac_try_echo") >&5 6119 (eval "$ac_compile") 2>conftest.er1 6120 ac_status=$? 6121 grep -v '^ *+' conftest.er1 >conftest.err 6122 rm -f conftest.er1 6123 cat conftest.err >&5 6124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6125 (exit $ac_status); } && { 6126 test -z "$ac_c_werror_flag" || 6127 test ! -s conftest.err 6128 } && test -s conftest.$ac_objext; then 6129 ac_cv_have_dladdr="yes" 6130else 6131 $as_echo "$as_me: failed program was:" >&5 6132sed 's/^/| /' conftest.$ac_ext >&5 6133 6134 ac_cv_have_dladdr="no" 6135 6136fi 6137 6138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6139 6140fi 6141{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_dladdr" >&5 6142$as_echo "$ac_cv_have_dladdr" >&6; } 6143 6144if test "x$ac_cv_have_dladdr" = "xyes" ; then 6145 6146cat >>confdefs.h <<\_ACEOF 6147#define HAVE_DLADDR 1 6148_ACEOF 6149 6150fi 6151 6152# Check for broken snprintf 6153if test "x$ac_cv_func_snprintf" = "xyes" ; then 6154 { $as_echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 6155$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } 6156 if test "$cross_compiling" = yes; then 6157 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6158See \`config.log' for more details." >&5 6159$as_echo "$as_me: error: cannot run test program while cross compiling 6160See \`config.log' for more details." >&2;} 6161 { (exit 1); exit 1; }; } 6162else 6163 cat >conftest.$ac_ext <<_ACEOF 6164/* confdefs.h. */ 6165_ACEOF 6166cat confdefs.h >>conftest.$ac_ext 6167cat >>conftest.$ac_ext <<_ACEOF 6168/* end confdefs.h. */ 6169 6170#include <stdio.h> 6171int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');} 6172 6173_ACEOF 6174rm -f conftest$ac_exeext 6175if { (ac_try="$ac_link" 6176case "(($ac_try" in 6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6178 *) ac_try_echo=$ac_try;; 6179esac 6180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6181$as_echo "$ac_try_echo") >&5 6182 (eval "$ac_link") 2>&5 6183 ac_status=$? 6184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6186 { (case "(($ac_try" in 6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6188 *) ac_try_echo=$ac_try;; 6189esac 6190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6191$as_echo "$ac_try_echo") >&5 6192 (eval "$ac_try") 2>&5 6193 ac_status=$? 6194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6195 (exit $ac_status); }; }; then 6196 { $as_echo "$as_me:$LINENO: result: yes" >&5 6197$as_echo "yes" >&6; } 6198else 6199 $as_echo "$as_me: program exited with status $ac_status" >&5 6200$as_echo "$as_me: failed program was:" >&5 6201sed 's/^/| /' conftest.$ac_ext >&5 6202 6203( exit $ac_status ) 6204 6205 { $as_echo "$as_me:$LINENO: result: no" >&5 6206$as_echo "no" >&6; } 6207 6208cat >>confdefs.h <<\_ACEOF 6209#define BROKEN_SNPRINTF 1 6210_ACEOF 6211 6212 { $as_echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 6213$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} 6214 6215 6216fi 6217rm -rf conftest.dSYM 6218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6219fi 6220 6221 6222fi 6223 6224# Cheap hack to ensure NEWS-OS libraries are arranged right. 6225if test ! -z "$SONY" ; then 6226 LIBS="$LIBS -liberty"; 6227fi 6228 6229# Checks for data types 6230# The cast to long int works around a bug in the HP C Compiler 6231# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6232# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6233# This bug is HP SR number 8606223364. 6234{ $as_echo "$as_me:$LINENO: checking size of char" >&5 6235$as_echo_n "checking size of char... " >&6; } 6236if test "${ac_cv_sizeof_char+set}" = set; then 6237 $as_echo_n "(cached) " >&6 6238else 6239 if test "$cross_compiling" = yes; then 6240 # Depending upon the size, compute the lo and hi bounds. 6241cat >conftest.$ac_ext <<_ACEOF 6242/* confdefs.h. */ 6243_ACEOF 6244cat confdefs.h >>conftest.$ac_ext 6245cat >>conftest.$ac_ext <<_ACEOF 6246/* end confdefs.h. */ 6247$ac_includes_default 6248int 6249main () 6250{ 6251static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)]; 6252test_array [0] = 0 6253 6254 ; 6255 return 0; 6256} 6257_ACEOF 6258rm -f conftest.$ac_objext 6259if { (ac_try="$ac_compile" 6260case "(($ac_try" in 6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6262 *) ac_try_echo=$ac_try;; 6263esac 6264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6265$as_echo "$ac_try_echo") >&5 6266 (eval "$ac_compile") 2>conftest.er1 6267 ac_status=$? 6268 grep -v '^ *+' conftest.er1 >conftest.err 6269 rm -f conftest.er1 6270 cat conftest.err >&5 6271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6272 (exit $ac_status); } && { 6273 test -z "$ac_c_werror_flag" || 6274 test ! -s conftest.err 6275 } && test -s conftest.$ac_objext; then 6276 ac_lo=0 ac_mid=0 6277 while :; do 6278 cat >conftest.$ac_ext <<_ACEOF 6279/* confdefs.h. */ 6280_ACEOF 6281cat confdefs.h >>conftest.$ac_ext 6282cat >>conftest.$ac_ext <<_ACEOF 6283/* end confdefs.h. */ 6284$ac_includes_default 6285int 6286main () 6287{ 6288static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; 6289test_array [0] = 0 6290 6291 ; 6292 return 0; 6293} 6294_ACEOF 6295rm -f conftest.$ac_objext 6296if { (ac_try="$ac_compile" 6297case "(($ac_try" in 6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6299 *) ac_try_echo=$ac_try;; 6300esac 6301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6302$as_echo "$ac_try_echo") >&5 6303 (eval "$ac_compile") 2>conftest.er1 6304 ac_status=$? 6305 grep -v '^ *+' conftest.er1 >conftest.err 6306 rm -f conftest.er1 6307 cat conftest.err >&5 6308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6309 (exit $ac_status); } && { 6310 test -z "$ac_c_werror_flag" || 6311 test ! -s conftest.err 6312 } && test -s conftest.$ac_objext; then 6313 ac_hi=$ac_mid; break 6314else 6315 $as_echo "$as_me: failed program was:" >&5 6316sed 's/^/| /' conftest.$ac_ext >&5 6317 6318 ac_lo=`expr $ac_mid + 1` 6319 if test $ac_lo -le $ac_mid; then 6320 ac_lo= ac_hi= 6321 break 6322 fi 6323 ac_mid=`expr 2 '*' $ac_mid + 1` 6324fi 6325 6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6327 done 6328else 6329 $as_echo "$as_me: failed program was:" >&5 6330sed 's/^/| /' conftest.$ac_ext >&5 6331 6332 cat >conftest.$ac_ext <<_ACEOF 6333/* confdefs.h. */ 6334_ACEOF 6335cat confdefs.h >>conftest.$ac_ext 6336cat >>conftest.$ac_ext <<_ACEOF 6337/* end confdefs.h. */ 6338$ac_includes_default 6339int 6340main () 6341{ 6342static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)]; 6343test_array [0] = 0 6344 6345 ; 6346 return 0; 6347} 6348_ACEOF 6349rm -f conftest.$ac_objext 6350if { (ac_try="$ac_compile" 6351case "(($ac_try" in 6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6353 *) ac_try_echo=$ac_try;; 6354esac 6355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6356$as_echo "$ac_try_echo") >&5 6357 (eval "$ac_compile") 2>conftest.er1 6358 ac_status=$? 6359 grep -v '^ *+' conftest.er1 >conftest.err 6360 rm -f conftest.er1 6361 cat conftest.err >&5 6362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6363 (exit $ac_status); } && { 6364 test -z "$ac_c_werror_flag" || 6365 test ! -s conftest.err 6366 } && test -s conftest.$ac_objext; then 6367 ac_hi=-1 ac_mid=-1 6368 while :; do 6369 cat >conftest.$ac_ext <<_ACEOF 6370/* confdefs.h. */ 6371_ACEOF 6372cat confdefs.h >>conftest.$ac_ext 6373cat >>conftest.$ac_ext <<_ACEOF 6374/* end confdefs.h. */ 6375$ac_includes_default 6376int 6377main () 6378{ 6379static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)]; 6380test_array [0] = 0 6381 6382 ; 6383 return 0; 6384} 6385_ACEOF 6386rm -f conftest.$ac_objext 6387if { (ac_try="$ac_compile" 6388case "(($ac_try" in 6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6390 *) ac_try_echo=$ac_try;; 6391esac 6392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6393$as_echo "$ac_try_echo") >&5 6394 (eval "$ac_compile") 2>conftest.er1 6395 ac_status=$? 6396 grep -v '^ *+' conftest.er1 >conftest.err 6397 rm -f conftest.er1 6398 cat conftest.err >&5 6399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6400 (exit $ac_status); } && { 6401 test -z "$ac_c_werror_flag" || 6402 test ! -s conftest.err 6403 } && test -s conftest.$ac_objext; then 6404 ac_lo=$ac_mid; break 6405else 6406 $as_echo "$as_me: failed program was:" >&5 6407sed 's/^/| /' conftest.$ac_ext >&5 6408 6409 ac_hi=`expr '(' $ac_mid ')' - 1` 6410 if test $ac_mid -le $ac_hi; then 6411 ac_lo= ac_hi= 6412 break 6413 fi 6414 ac_mid=`expr 2 '*' $ac_mid` 6415fi 6416 6417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6418 done 6419else 6420 $as_echo "$as_me: failed program was:" >&5 6421sed 's/^/| /' conftest.$ac_ext >&5 6422 6423 ac_lo= ac_hi= 6424fi 6425 6426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6427fi 6428 6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6430# Binary search between lo and hi bounds. 6431while test "x$ac_lo" != "x$ac_hi"; do 6432 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6433 cat >conftest.$ac_ext <<_ACEOF 6434/* confdefs.h. */ 6435_ACEOF 6436cat confdefs.h >>conftest.$ac_ext 6437cat >>conftest.$ac_ext <<_ACEOF 6438/* end confdefs.h. */ 6439$ac_includes_default 6440int 6441main () 6442{ 6443static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; 6444test_array [0] = 0 6445 6446 ; 6447 return 0; 6448} 6449_ACEOF 6450rm -f conftest.$ac_objext 6451if { (ac_try="$ac_compile" 6452case "(($ac_try" in 6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6454 *) ac_try_echo=$ac_try;; 6455esac 6456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6457$as_echo "$ac_try_echo") >&5 6458 (eval "$ac_compile") 2>conftest.er1 6459 ac_status=$? 6460 grep -v '^ *+' conftest.er1 >conftest.err 6461 rm -f conftest.er1 6462 cat conftest.err >&5 6463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6464 (exit $ac_status); } && { 6465 test -z "$ac_c_werror_flag" || 6466 test ! -s conftest.err 6467 } && test -s conftest.$ac_objext; then 6468 ac_hi=$ac_mid 6469else 6470 $as_echo "$as_me: failed program was:" >&5 6471sed 's/^/| /' conftest.$ac_ext >&5 6472 6473 ac_lo=`expr '(' $ac_mid ')' + 1` 6474fi 6475 6476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6477done 6478case $ac_lo in 6479?*) ac_cv_sizeof_char=$ac_lo;; 6480'') if test "$ac_cv_type_char" = yes; then 6481 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) 6482See \`config.log' for more details." >&5 6483$as_echo "$as_me: error: cannot compute sizeof (char) 6484See \`config.log' for more details." >&2;} 6485 { (exit 77); exit 77; }; } 6486 else 6487 ac_cv_sizeof_char=0 6488 fi ;; 6489esac 6490else 6491 cat >conftest.$ac_ext <<_ACEOF 6492/* confdefs.h. */ 6493_ACEOF 6494cat confdefs.h >>conftest.$ac_ext 6495cat >>conftest.$ac_ext <<_ACEOF 6496/* end confdefs.h. */ 6497$ac_includes_default 6498static long int longval () { return (long int) (sizeof (char)); } 6499static unsigned long int ulongval () { return (long int) (sizeof (char)); } 6500#include <stdio.h> 6501#include <stdlib.h> 6502int 6503main () 6504{ 6505 6506 FILE *f = fopen ("conftest.val", "w"); 6507 if (! f) 6508 return 1; 6509 if (((long int) (sizeof (char))) < 0) 6510 { 6511 long int i = longval (); 6512 if (i != ((long int) (sizeof (char)))) 6513 return 1; 6514 fprintf (f, "%ld", i); 6515 } 6516 else 6517 { 6518 unsigned long int i = ulongval (); 6519 if (i != ((long int) (sizeof (char)))) 6520 return 1; 6521 fprintf (f, "%lu", i); 6522 } 6523 /* Do not output a trailing newline, as this causes \r\n confusion 6524 on some platforms. */ 6525 return ferror (f) || fclose (f) != 0; 6526 6527 ; 6528 return 0; 6529} 6530_ACEOF 6531rm -f conftest$ac_exeext 6532if { (ac_try="$ac_link" 6533case "(($ac_try" in 6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6535 *) ac_try_echo=$ac_try;; 6536esac 6537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6538$as_echo "$ac_try_echo") >&5 6539 (eval "$ac_link") 2>&5 6540 ac_status=$? 6541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6543 { (case "(($ac_try" in 6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6545 *) ac_try_echo=$ac_try;; 6546esac 6547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6548$as_echo "$ac_try_echo") >&5 6549 (eval "$ac_try") 2>&5 6550 ac_status=$? 6551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6552 (exit $ac_status); }; }; then 6553 ac_cv_sizeof_char=`cat conftest.val` 6554else 6555 $as_echo "$as_me: program exited with status $ac_status" >&5 6556$as_echo "$as_me: failed program was:" >&5 6557sed 's/^/| /' conftest.$ac_ext >&5 6558 6559( exit $ac_status ) 6560if test "$ac_cv_type_char" = yes; then 6561 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) 6562See \`config.log' for more details." >&5 6563$as_echo "$as_me: error: cannot compute sizeof (char) 6564See \`config.log' for more details." >&2;} 6565 { (exit 77); exit 77; }; } 6566 else 6567 ac_cv_sizeof_char=0 6568 fi 6569fi 6570rm -rf conftest.dSYM 6571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6572fi 6573rm -f conftest.val 6574fi 6575{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 6576$as_echo "$ac_cv_sizeof_char" >&6; } 6577 6578 6579 6580cat >>confdefs.h <<_ACEOF 6581#define SIZEOF_CHAR $ac_cv_sizeof_char 6582_ACEOF 6583 6584 6585# The cast to long int works around a bug in the HP C Compiler 6586# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6587# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6588# This bug is HP SR number 8606223364. 6589{ $as_echo "$as_me:$LINENO: checking size of short int" >&5 6590$as_echo_n "checking size of short int... " >&6; } 6591if test "${ac_cv_sizeof_short_int+set}" = set; then 6592 $as_echo_n "(cached) " >&6 6593else 6594 if test "$cross_compiling" = yes; then 6595 # Depending upon the size, compute the lo and hi bounds. 6596cat >conftest.$ac_ext <<_ACEOF 6597/* confdefs.h. */ 6598_ACEOF 6599cat confdefs.h >>conftest.$ac_ext 6600cat >>conftest.$ac_ext <<_ACEOF 6601/* end confdefs.h. */ 6602$ac_includes_default 6603int 6604main () 6605{ 6606static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= 0)]; 6607test_array [0] = 0 6608 6609 ; 6610 return 0; 6611} 6612_ACEOF 6613rm -f conftest.$ac_objext 6614if { (ac_try="$ac_compile" 6615case "(($ac_try" in 6616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6617 *) ac_try_echo=$ac_try;; 6618esac 6619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6620$as_echo "$ac_try_echo") >&5 6621 (eval "$ac_compile") 2>conftest.er1 6622 ac_status=$? 6623 grep -v '^ *+' conftest.er1 >conftest.err 6624 rm -f conftest.er1 6625 cat conftest.err >&5 6626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6627 (exit $ac_status); } && { 6628 test -z "$ac_c_werror_flag" || 6629 test ! -s conftest.err 6630 } && test -s conftest.$ac_objext; then 6631 ac_lo=0 ac_mid=0 6632 while :; do 6633 cat >conftest.$ac_ext <<_ACEOF 6634/* confdefs.h. */ 6635_ACEOF 6636cat confdefs.h >>conftest.$ac_ext 6637cat >>conftest.$ac_ext <<_ACEOF 6638/* end confdefs.h. */ 6639$ac_includes_default 6640int 6641main () 6642{ 6643static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)]; 6644test_array [0] = 0 6645 6646 ; 6647 return 0; 6648} 6649_ACEOF 6650rm -f conftest.$ac_objext 6651if { (ac_try="$ac_compile" 6652case "(($ac_try" in 6653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6654 *) ac_try_echo=$ac_try;; 6655esac 6656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6657$as_echo "$ac_try_echo") >&5 6658 (eval "$ac_compile") 2>conftest.er1 6659 ac_status=$? 6660 grep -v '^ *+' conftest.er1 >conftest.err 6661 rm -f conftest.er1 6662 cat conftest.err >&5 6663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6664 (exit $ac_status); } && { 6665 test -z "$ac_c_werror_flag" || 6666 test ! -s conftest.err 6667 } && test -s conftest.$ac_objext; then 6668 ac_hi=$ac_mid; break 6669else 6670 $as_echo "$as_me: failed program was:" >&5 6671sed 's/^/| /' conftest.$ac_ext >&5 6672 6673 ac_lo=`expr $ac_mid + 1` 6674 if test $ac_lo -le $ac_mid; then 6675 ac_lo= ac_hi= 6676 break 6677 fi 6678 ac_mid=`expr 2 '*' $ac_mid + 1` 6679fi 6680 6681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6682 done 6683else 6684 $as_echo "$as_me: failed program was:" >&5 6685sed 's/^/| /' conftest.$ac_ext >&5 6686 6687 cat >conftest.$ac_ext <<_ACEOF 6688/* confdefs.h. */ 6689_ACEOF 6690cat confdefs.h >>conftest.$ac_ext 6691cat >>conftest.$ac_ext <<_ACEOF 6692/* end confdefs.h. */ 6693$ac_includes_default 6694int 6695main () 6696{ 6697static int test_array [1 - 2 * !(((long int) (sizeof (short int))) < 0)]; 6698test_array [0] = 0 6699 6700 ; 6701 return 0; 6702} 6703_ACEOF 6704rm -f conftest.$ac_objext 6705if { (ac_try="$ac_compile" 6706case "(($ac_try" in 6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6708 *) ac_try_echo=$ac_try;; 6709esac 6710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6711$as_echo "$ac_try_echo") >&5 6712 (eval "$ac_compile") 2>conftest.er1 6713 ac_status=$? 6714 grep -v '^ *+' conftest.er1 >conftest.err 6715 rm -f conftest.er1 6716 cat conftest.err >&5 6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6718 (exit $ac_status); } && { 6719 test -z "$ac_c_werror_flag" || 6720 test ! -s conftest.err 6721 } && test -s conftest.$ac_objext; then 6722 ac_hi=-1 ac_mid=-1 6723 while :; do 6724 cat >conftest.$ac_ext <<_ACEOF 6725/* confdefs.h. */ 6726_ACEOF 6727cat confdefs.h >>conftest.$ac_ext 6728cat >>conftest.$ac_ext <<_ACEOF 6729/* end confdefs.h. */ 6730$ac_includes_default 6731int 6732main () 6733{ 6734static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= $ac_mid)]; 6735test_array [0] = 0 6736 6737 ; 6738 return 0; 6739} 6740_ACEOF 6741rm -f conftest.$ac_objext 6742if { (ac_try="$ac_compile" 6743case "(($ac_try" in 6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6745 *) ac_try_echo=$ac_try;; 6746esac 6747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6748$as_echo "$ac_try_echo") >&5 6749 (eval "$ac_compile") 2>conftest.er1 6750 ac_status=$? 6751 grep -v '^ *+' conftest.er1 >conftest.err 6752 rm -f conftest.er1 6753 cat conftest.err >&5 6754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6755 (exit $ac_status); } && { 6756 test -z "$ac_c_werror_flag" || 6757 test ! -s conftest.err 6758 } && test -s conftest.$ac_objext; then 6759 ac_lo=$ac_mid; break 6760else 6761 $as_echo "$as_me: failed program was:" >&5 6762sed 's/^/| /' conftest.$ac_ext >&5 6763 6764 ac_hi=`expr '(' $ac_mid ')' - 1` 6765 if test $ac_mid -le $ac_hi; then 6766 ac_lo= ac_hi= 6767 break 6768 fi 6769 ac_mid=`expr 2 '*' $ac_mid` 6770fi 6771 6772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6773 done 6774else 6775 $as_echo "$as_me: failed program was:" >&5 6776sed 's/^/| /' conftest.$ac_ext >&5 6777 6778 ac_lo= ac_hi= 6779fi 6780 6781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6782fi 6783 6784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6785# Binary search between lo and hi bounds. 6786while test "x$ac_lo" != "x$ac_hi"; do 6787 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6788 cat >conftest.$ac_ext <<_ACEOF 6789/* confdefs.h. */ 6790_ACEOF 6791cat confdefs.h >>conftest.$ac_ext 6792cat >>conftest.$ac_ext <<_ACEOF 6793/* end confdefs.h. */ 6794$ac_includes_default 6795int 6796main () 6797{ 6798static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)]; 6799test_array [0] = 0 6800 6801 ; 6802 return 0; 6803} 6804_ACEOF 6805rm -f conftest.$ac_objext 6806if { (ac_try="$ac_compile" 6807case "(($ac_try" in 6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6809 *) ac_try_echo=$ac_try;; 6810esac 6811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6812$as_echo "$ac_try_echo") >&5 6813 (eval "$ac_compile") 2>conftest.er1 6814 ac_status=$? 6815 grep -v '^ *+' conftest.er1 >conftest.err 6816 rm -f conftest.er1 6817 cat conftest.err >&5 6818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6819 (exit $ac_status); } && { 6820 test -z "$ac_c_werror_flag" || 6821 test ! -s conftest.err 6822 } && test -s conftest.$ac_objext; then 6823 ac_hi=$ac_mid 6824else 6825 $as_echo "$as_me: failed program was:" >&5 6826sed 's/^/| /' conftest.$ac_ext >&5 6827 6828 ac_lo=`expr '(' $ac_mid ')' + 1` 6829fi 6830 6831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6832done 6833case $ac_lo in 6834?*) ac_cv_sizeof_short_int=$ac_lo;; 6835'') if test "$ac_cv_type_short_int" = yes; then 6836 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int) 6837See \`config.log' for more details." >&5 6838$as_echo "$as_me: error: cannot compute sizeof (short int) 6839See \`config.log' for more details." >&2;} 6840 { (exit 77); exit 77; }; } 6841 else 6842 ac_cv_sizeof_short_int=0 6843 fi ;; 6844esac 6845else 6846 cat >conftest.$ac_ext <<_ACEOF 6847/* confdefs.h. */ 6848_ACEOF 6849cat confdefs.h >>conftest.$ac_ext 6850cat >>conftest.$ac_ext <<_ACEOF 6851/* end confdefs.h. */ 6852$ac_includes_default 6853static long int longval () { return (long int) (sizeof (short int)); } 6854static unsigned long int ulongval () { return (long int) (sizeof (short int)); } 6855#include <stdio.h> 6856#include <stdlib.h> 6857int 6858main () 6859{ 6860 6861 FILE *f = fopen ("conftest.val", "w"); 6862 if (! f) 6863 return 1; 6864 if (((long int) (sizeof (short int))) < 0) 6865 { 6866 long int i = longval (); 6867 if (i != ((long int) (sizeof (short int)))) 6868 return 1; 6869 fprintf (f, "%ld", i); 6870 } 6871 else 6872 { 6873 unsigned long int i = ulongval (); 6874 if (i != ((long int) (sizeof (short int)))) 6875 return 1; 6876 fprintf (f, "%lu", i); 6877 } 6878 /* Do not output a trailing newline, as this causes \r\n confusion 6879 on some platforms. */ 6880 return ferror (f) || fclose (f) != 0; 6881 6882 ; 6883 return 0; 6884} 6885_ACEOF 6886rm -f conftest$ac_exeext 6887if { (ac_try="$ac_link" 6888case "(($ac_try" in 6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6890 *) ac_try_echo=$ac_try;; 6891esac 6892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6893$as_echo "$ac_try_echo") >&5 6894 (eval "$ac_link") 2>&5 6895 ac_status=$? 6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6898 { (case "(($ac_try" in 6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6900 *) ac_try_echo=$ac_try;; 6901esac 6902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6903$as_echo "$ac_try_echo") >&5 6904 (eval "$ac_try") 2>&5 6905 ac_status=$? 6906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6907 (exit $ac_status); }; }; then 6908 ac_cv_sizeof_short_int=`cat conftest.val` 6909else 6910 $as_echo "$as_me: program exited with status $ac_status" >&5 6911$as_echo "$as_me: failed program was:" >&5 6912sed 's/^/| /' conftest.$ac_ext >&5 6913 6914( exit $ac_status ) 6915if test "$ac_cv_type_short_int" = yes; then 6916 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int) 6917See \`config.log' for more details." >&5 6918$as_echo "$as_me: error: cannot compute sizeof (short int) 6919See \`config.log' for more details." >&2;} 6920 { (exit 77); exit 77; }; } 6921 else 6922 ac_cv_sizeof_short_int=0 6923 fi 6924fi 6925rm -rf conftest.dSYM 6926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6927fi 6928rm -f conftest.val 6929fi 6930{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 6931$as_echo "$ac_cv_sizeof_short_int" >&6; } 6932 6933 6934 6935cat >>confdefs.h <<_ACEOF 6936#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int 6937_ACEOF 6938 6939 6940# The cast to long int works around a bug in the HP C Compiler 6941# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6942# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6943# This bug is HP SR number 8606223364. 6944{ $as_echo "$as_me:$LINENO: checking size of int" >&5 6945$as_echo_n "checking size of int... " >&6; } 6946if test "${ac_cv_sizeof_int+set}" = set; then 6947 $as_echo_n "(cached) " >&6 6948else 6949 if test "$cross_compiling" = yes; then 6950 # Depending upon the size, compute the lo and hi bounds. 6951cat >conftest.$ac_ext <<_ACEOF 6952/* confdefs.h. */ 6953_ACEOF 6954cat confdefs.h >>conftest.$ac_ext 6955cat >>conftest.$ac_ext <<_ACEOF 6956/* end confdefs.h. */ 6957$ac_includes_default 6958int 6959main () 6960{ 6961static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; 6962test_array [0] = 0 6963 6964 ; 6965 return 0; 6966} 6967_ACEOF 6968rm -f conftest.$ac_objext 6969if { (ac_try="$ac_compile" 6970case "(($ac_try" in 6971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6972 *) ac_try_echo=$ac_try;; 6973esac 6974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6975$as_echo "$ac_try_echo") >&5 6976 (eval "$ac_compile") 2>conftest.er1 6977 ac_status=$? 6978 grep -v '^ *+' conftest.er1 >conftest.err 6979 rm -f conftest.er1 6980 cat conftest.err >&5 6981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6982 (exit $ac_status); } && { 6983 test -z "$ac_c_werror_flag" || 6984 test ! -s conftest.err 6985 } && test -s conftest.$ac_objext; then 6986 ac_lo=0 ac_mid=0 6987 while :; do 6988 cat >conftest.$ac_ext <<_ACEOF 6989/* confdefs.h. */ 6990_ACEOF 6991cat confdefs.h >>conftest.$ac_ext 6992cat >>conftest.$ac_ext <<_ACEOF 6993/* end confdefs.h. */ 6994$ac_includes_default 6995int 6996main () 6997{ 6998static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; 6999test_array [0] = 0 7000 7001 ; 7002 return 0; 7003} 7004_ACEOF 7005rm -f conftest.$ac_objext 7006if { (ac_try="$ac_compile" 7007case "(($ac_try" in 7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7009 *) ac_try_echo=$ac_try;; 7010esac 7011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7012$as_echo "$ac_try_echo") >&5 7013 (eval "$ac_compile") 2>conftest.er1 7014 ac_status=$? 7015 grep -v '^ *+' conftest.er1 >conftest.err 7016 rm -f conftest.er1 7017 cat conftest.err >&5 7018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7019 (exit $ac_status); } && { 7020 test -z "$ac_c_werror_flag" || 7021 test ! -s conftest.err 7022 } && test -s conftest.$ac_objext; then 7023 ac_hi=$ac_mid; break 7024else 7025 $as_echo "$as_me: failed program was:" >&5 7026sed 's/^/| /' conftest.$ac_ext >&5 7027 7028 ac_lo=`expr $ac_mid + 1` 7029 if test $ac_lo -le $ac_mid; then 7030 ac_lo= ac_hi= 7031 break 7032 fi 7033 ac_mid=`expr 2 '*' $ac_mid + 1` 7034fi 7035 7036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7037 done 7038else 7039 $as_echo "$as_me: failed program was:" >&5 7040sed 's/^/| /' conftest.$ac_ext >&5 7041 7042 cat >conftest.$ac_ext <<_ACEOF 7043/* confdefs.h. */ 7044_ACEOF 7045cat confdefs.h >>conftest.$ac_ext 7046cat >>conftest.$ac_ext <<_ACEOF 7047/* end confdefs.h. */ 7048$ac_includes_default 7049int 7050main () 7051{ 7052static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; 7053test_array [0] = 0 7054 7055 ; 7056 return 0; 7057} 7058_ACEOF 7059rm -f conftest.$ac_objext 7060if { (ac_try="$ac_compile" 7061case "(($ac_try" in 7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7063 *) ac_try_echo=$ac_try;; 7064esac 7065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7066$as_echo "$ac_try_echo") >&5 7067 (eval "$ac_compile") 2>conftest.er1 7068 ac_status=$? 7069 grep -v '^ *+' conftest.er1 >conftest.err 7070 rm -f conftest.er1 7071 cat conftest.err >&5 7072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7073 (exit $ac_status); } && { 7074 test -z "$ac_c_werror_flag" || 7075 test ! -s conftest.err 7076 } && test -s conftest.$ac_objext; then 7077 ac_hi=-1 ac_mid=-1 7078 while :; do 7079 cat >conftest.$ac_ext <<_ACEOF 7080/* confdefs.h. */ 7081_ACEOF 7082cat confdefs.h >>conftest.$ac_ext 7083cat >>conftest.$ac_ext <<_ACEOF 7084/* end confdefs.h. */ 7085$ac_includes_default 7086int 7087main () 7088{ 7089static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; 7090test_array [0] = 0 7091 7092 ; 7093 return 0; 7094} 7095_ACEOF 7096rm -f conftest.$ac_objext 7097if { (ac_try="$ac_compile" 7098case "(($ac_try" in 7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7100 *) ac_try_echo=$ac_try;; 7101esac 7102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7103$as_echo "$ac_try_echo") >&5 7104 (eval "$ac_compile") 2>conftest.er1 7105 ac_status=$? 7106 grep -v '^ *+' conftest.er1 >conftest.err 7107 rm -f conftest.er1 7108 cat conftest.err >&5 7109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7110 (exit $ac_status); } && { 7111 test -z "$ac_c_werror_flag" || 7112 test ! -s conftest.err 7113 } && test -s conftest.$ac_objext; then 7114 ac_lo=$ac_mid; break 7115else 7116 $as_echo "$as_me: failed program was:" >&5 7117sed 's/^/| /' conftest.$ac_ext >&5 7118 7119 ac_hi=`expr '(' $ac_mid ')' - 1` 7120 if test $ac_mid -le $ac_hi; then 7121 ac_lo= ac_hi= 7122 break 7123 fi 7124 ac_mid=`expr 2 '*' $ac_mid` 7125fi 7126 7127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7128 done 7129else 7130 $as_echo "$as_me: failed program was:" >&5 7131sed 's/^/| /' conftest.$ac_ext >&5 7132 7133 ac_lo= ac_hi= 7134fi 7135 7136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7137fi 7138 7139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7140# Binary search between lo and hi bounds. 7141while test "x$ac_lo" != "x$ac_hi"; do 7142 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7143 cat >conftest.$ac_ext <<_ACEOF 7144/* confdefs.h. */ 7145_ACEOF 7146cat confdefs.h >>conftest.$ac_ext 7147cat >>conftest.$ac_ext <<_ACEOF 7148/* end confdefs.h. */ 7149$ac_includes_default 7150int 7151main () 7152{ 7153static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; 7154test_array [0] = 0 7155 7156 ; 7157 return 0; 7158} 7159_ACEOF 7160rm -f conftest.$ac_objext 7161if { (ac_try="$ac_compile" 7162case "(($ac_try" in 7163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7164 *) ac_try_echo=$ac_try;; 7165esac 7166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7167$as_echo "$ac_try_echo") >&5 7168 (eval "$ac_compile") 2>conftest.er1 7169 ac_status=$? 7170 grep -v '^ *+' conftest.er1 >conftest.err 7171 rm -f conftest.er1 7172 cat conftest.err >&5 7173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7174 (exit $ac_status); } && { 7175 test -z "$ac_c_werror_flag" || 7176 test ! -s conftest.err 7177 } && test -s conftest.$ac_objext; then 7178 ac_hi=$ac_mid 7179else 7180 $as_echo "$as_me: failed program was:" >&5 7181sed 's/^/| /' conftest.$ac_ext >&5 7182 7183 ac_lo=`expr '(' $ac_mid ')' + 1` 7184fi 7185 7186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7187done 7188case $ac_lo in 7189?*) ac_cv_sizeof_int=$ac_lo;; 7190'') if test "$ac_cv_type_int" = yes; then 7191 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) 7192See \`config.log' for more details." >&5 7193$as_echo "$as_me: error: cannot compute sizeof (int) 7194See \`config.log' for more details." >&2;} 7195 { (exit 77); exit 77; }; } 7196 else 7197 ac_cv_sizeof_int=0 7198 fi ;; 7199esac 7200else 7201 cat >conftest.$ac_ext <<_ACEOF 7202/* confdefs.h. */ 7203_ACEOF 7204cat confdefs.h >>conftest.$ac_ext 7205cat >>conftest.$ac_ext <<_ACEOF 7206/* end confdefs.h. */ 7207$ac_includes_default 7208static long int longval () { return (long int) (sizeof (int)); } 7209static unsigned long int ulongval () { return (long int) (sizeof (int)); } 7210#include <stdio.h> 7211#include <stdlib.h> 7212int 7213main () 7214{ 7215 7216 FILE *f = fopen ("conftest.val", "w"); 7217 if (! f) 7218 return 1; 7219 if (((long int) (sizeof (int))) < 0) 7220 { 7221 long int i = longval (); 7222 if (i != ((long int) (sizeof (int)))) 7223 return 1; 7224 fprintf (f, "%ld", i); 7225 } 7226 else 7227 { 7228 unsigned long int i = ulongval (); 7229 if (i != ((long int) (sizeof (int)))) 7230 return 1; 7231 fprintf (f, "%lu", i); 7232 } 7233 /* Do not output a trailing newline, as this causes \r\n confusion 7234 on some platforms. */ 7235 return ferror (f) || fclose (f) != 0; 7236 7237 ; 7238 return 0; 7239} 7240_ACEOF 7241rm -f conftest$ac_exeext 7242if { (ac_try="$ac_link" 7243case "(($ac_try" in 7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7245 *) ac_try_echo=$ac_try;; 7246esac 7247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7248$as_echo "$ac_try_echo") >&5 7249 (eval "$ac_link") 2>&5 7250 ac_status=$? 7251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7253 { (case "(($ac_try" in 7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7255 *) ac_try_echo=$ac_try;; 7256esac 7257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7258$as_echo "$ac_try_echo") >&5 7259 (eval "$ac_try") 2>&5 7260 ac_status=$? 7261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7262 (exit $ac_status); }; }; then 7263 ac_cv_sizeof_int=`cat conftest.val` 7264else 7265 $as_echo "$as_me: program exited with status $ac_status" >&5 7266$as_echo "$as_me: failed program was:" >&5 7267sed 's/^/| /' conftest.$ac_ext >&5 7268 7269( exit $ac_status ) 7270if test "$ac_cv_type_int" = yes; then 7271 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) 7272See \`config.log' for more details." >&5 7273$as_echo "$as_me: error: cannot compute sizeof (int) 7274See \`config.log' for more details." >&2;} 7275 { (exit 77); exit 77; }; } 7276 else 7277 ac_cv_sizeof_int=0 7278 fi 7279fi 7280rm -rf conftest.dSYM 7281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7282fi 7283rm -f conftest.val 7284fi 7285{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 7286$as_echo "$ac_cv_sizeof_int" >&6; } 7287 7288 7289 7290cat >>confdefs.h <<_ACEOF 7291#define SIZEOF_INT $ac_cv_sizeof_int 7292_ACEOF 7293 7294 7295# The cast to long int works around a bug in the HP C Compiler 7296# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7297# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7298# This bug is HP SR number 8606223364. 7299{ $as_echo "$as_me:$LINENO: checking size of long int" >&5 7300$as_echo_n "checking size of long int... " >&6; } 7301if test "${ac_cv_sizeof_long_int+set}" = set; then 7302 $as_echo_n "(cached) " >&6 7303else 7304 if test "$cross_compiling" = yes; then 7305 # Depending upon the size, compute the lo and hi bounds. 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$ac_includes_default 7313int 7314main () 7315{ 7316static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= 0)]; 7317test_array [0] = 0 7318 7319 ; 7320 return 0; 7321} 7322_ACEOF 7323rm -f conftest.$ac_objext 7324if { (ac_try="$ac_compile" 7325case "(($ac_try" in 7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7327 *) ac_try_echo=$ac_try;; 7328esac 7329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7330$as_echo "$ac_try_echo") >&5 7331 (eval "$ac_compile") 2>conftest.er1 7332 ac_status=$? 7333 grep -v '^ *+' conftest.er1 >conftest.err 7334 rm -f conftest.er1 7335 cat conftest.err >&5 7336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7337 (exit $ac_status); } && { 7338 test -z "$ac_c_werror_flag" || 7339 test ! -s conftest.err 7340 } && test -s conftest.$ac_objext; then 7341 ac_lo=0 ac_mid=0 7342 while :; do 7343 cat >conftest.$ac_ext <<_ACEOF 7344/* confdefs.h. */ 7345_ACEOF 7346cat confdefs.h >>conftest.$ac_ext 7347cat >>conftest.$ac_ext <<_ACEOF 7348/* end confdefs.h. */ 7349$ac_includes_default 7350int 7351main () 7352{ 7353static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)]; 7354test_array [0] = 0 7355 7356 ; 7357 return 0; 7358} 7359_ACEOF 7360rm -f conftest.$ac_objext 7361if { (ac_try="$ac_compile" 7362case "(($ac_try" in 7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7364 *) ac_try_echo=$ac_try;; 7365esac 7366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7367$as_echo "$ac_try_echo") >&5 7368 (eval "$ac_compile") 2>conftest.er1 7369 ac_status=$? 7370 grep -v '^ *+' conftest.er1 >conftest.err 7371 rm -f conftest.er1 7372 cat conftest.err >&5 7373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7374 (exit $ac_status); } && { 7375 test -z "$ac_c_werror_flag" || 7376 test ! -s conftest.err 7377 } && test -s conftest.$ac_objext; then 7378 ac_hi=$ac_mid; break 7379else 7380 $as_echo "$as_me: failed program was:" >&5 7381sed 's/^/| /' conftest.$ac_ext >&5 7382 7383 ac_lo=`expr $ac_mid + 1` 7384 if test $ac_lo -le $ac_mid; then 7385 ac_lo= ac_hi= 7386 break 7387 fi 7388 ac_mid=`expr 2 '*' $ac_mid + 1` 7389fi 7390 7391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7392 done 7393else 7394 $as_echo "$as_me: failed program was:" >&5 7395sed 's/^/| /' conftest.$ac_ext >&5 7396 7397 cat >conftest.$ac_ext <<_ACEOF 7398/* confdefs.h. */ 7399_ACEOF 7400cat confdefs.h >>conftest.$ac_ext 7401cat >>conftest.$ac_ext <<_ACEOF 7402/* end confdefs.h. */ 7403$ac_includes_default 7404int 7405main () 7406{ 7407static int test_array [1 - 2 * !(((long int) (sizeof (long int))) < 0)]; 7408test_array [0] = 0 7409 7410 ; 7411 return 0; 7412} 7413_ACEOF 7414rm -f conftest.$ac_objext 7415if { (ac_try="$ac_compile" 7416case "(($ac_try" in 7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7418 *) ac_try_echo=$ac_try;; 7419esac 7420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7421$as_echo "$ac_try_echo") >&5 7422 (eval "$ac_compile") 2>conftest.er1 7423 ac_status=$? 7424 grep -v '^ *+' conftest.er1 >conftest.err 7425 rm -f conftest.er1 7426 cat conftest.err >&5 7427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7428 (exit $ac_status); } && { 7429 test -z "$ac_c_werror_flag" || 7430 test ! -s conftest.err 7431 } && test -s conftest.$ac_objext; then 7432 ac_hi=-1 ac_mid=-1 7433 while :; do 7434 cat >conftest.$ac_ext <<_ACEOF 7435/* confdefs.h. */ 7436_ACEOF 7437cat confdefs.h >>conftest.$ac_ext 7438cat >>conftest.$ac_ext <<_ACEOF 7439/* end confdefs.h. */ 7440$ac_includes_default 7441int 7442main () 7443{ 7444static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)]; 7445test_array [0] = 0 7446 7447 ; 7448 return 0; 7449} 7450_ACEOF 7451rm -f conftest.$ac_objext 7452if { (ac_try="$ac_compile" 7453case "(($ac_try" in 7454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7455 *) ac_try_echo=$ac_try;; 7456esac 7457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7458$as_echo "$ac_try_echo") >&5 7459 (eval "$ac_compile") 2>conftest.er1 7460 ac_status=$? 7461 grep -v '^ *+' conftest.er1 >conftest.err 7462 rm -f conftest.er1 7463 cat conftest.err >&5 7464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7465 (exit $ac_status); } && { 7466 test -z "$ac_c_werror_flag" || 7467 test ! -s conftest.err 7468 } && test -s conftest.$ac_objext; then 7469 ac_lo=$ac_mid; break 7470else 7471 $as_echo "$as_me: failed program was:" >&5 7472sed 's/^/| /' conftest.$ac_ext >&5 7473 7474 ac_hi=`expr '(' $ac_mid ')' - 1` 7475 if test $ac_mid -le $ac_hi; then 7476 ac_lo= ac_hi= 7477 break 7478 fi 7479 ac_mid=`expr 2 '*' $ac_mid` 7480fi 7481 7482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7483 done 7484else 7485 $as_echo "$as_me: failed program was:" >&5 7486sed 's/^/| /' conftest.$ac_ext >&5 7487 7488 ac_lo= ac_hi= 7489fi 7490 7491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7492fi 7493 7494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7495# Binary search between lo and hi bounds. 7496while test "x$ac_lo" != "x$ac_hi"; do 7497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7498 cat >conftest.$ac_ext <<_ACEOF 7499/* confdefs.h. */ 7500_ACEOF 7501cat confdefs.h >>conftest.$ac_ext 7502cat >>conftest.$ac_ext <<_ACEOF 7503/* end confdefs.h. */ 7504$ac_includes_default 7505int 7506main () 7507{ 7508static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)]; 7509test_array [0] = 0 7510 7511 ; 7512 return 0; 7513} 7514_ACEOF 7515rm -f conftest.$ac_objext 7516if { (ac_try="$ac_compile" 7517case "(($ac_try" in 7518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7519 *) ac_try_echo=$ac_try;; 7520esac 7521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7522$as_echo "$ac_try_echo") >&5 7523 (eval "$ac_compile") 2>conftest.er1 7524 ac_status=$? 7525 grep -v '^ *+' conftest.er1 >conftest.err 7526 rm -f conftest.er1 7527 cat conftest.err >&5 7528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7529 (exit $ac_status); } && { 7530 test -z "$ac_c_werror_flag" || 7531 test ! -s conftest.err 7532 } && test -s conftest.$ac_objext; then 7533 ac_hi=$ac_mid 7534else 7535 $as_echo "$as_me: failed program was:" >&5 7536sed 's/^/| /' conftest.$ac_ext >&5 7537 7538 ac_lo=`expr '(' $ac_mid ')' + 1` 7539fi 7540 7541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7542done 7543case $ac_lo in 7544?*) ac_cv_sizeof_long_int=$ac_lo;; 7545'') if test "$ac_cv_type_long_int" = yes; then 7546 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int) 7547See \`config.log' for more details." >&5 7548$as_echo "$as_me: error: cannot compute sizeof (long int) 7549See \`config.log' for more details." >&2;} 7550 { (exit 77); exit 77; }; } 7551 else 7552 ac_cv_sizeof_long_int=0 7553 fi ;; 7554esac 7555else 7556 cat >conftest.$ac_ext <<_ACEOF 7557/* confdefs.h. */ 7558_ACEOF 7559cat confdefs.h >>conftest.$ac_ext 7560cat >>conftest.$ac_ext <<_ACEOF 7561/* end confdefs.h. */ 7562$ac_includes_default 7563static long int longval () { return (long int) (sizeof (long int)); } 7564static unsigned long int ulongval () { return (long int) (sizeof (long int)); } 7565#include <stdio.h> 7566#include <stdlib.h> 7567int 7568main () 7569{ 7570 7571 FILE *f = fopen ("conftest.val", "w"); 7572 if (! f) 7573 return 1; 7574 if (((long int) (sizeof (long int))) < 0) 7575 { 7576 long int i = longval (); 7577 if (i != ((long int) (sizeof (long int)))) 7578 return 1; 7579 fprintf (f, "%ld", i); 7580 } 7581 else 7582 { 7583 unsigned long int i = ulongval (); 7584 if (i != ((long int) (sizeof (long int)))) 7585 return 1; 7586 fprintf (f, "%lu", i); 7587 } 7588 /* Do not output a trailing newline, as this causes \r\n confusion 7589 on some platforms. */ 7590 return ferror (f) || fclose (f) != 0; 7591 7592 ; 7593 return 0; 7594} 7595_ACEOF 7596rm -f conftest$ac_exeext 7597if { (ac_try="$ac_link" 7598case "(($ac_try" in 7599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7600 *) ac_try_echo=$ac_try;; 7601esac 7602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7603$as_echo "$ac_try_echo") >&5 7604 (eval "$ac_link") 2>&5 7605 ac_status=$? 7606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7608 { (case "(($ac_try" in 7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7610 *) ac_try_echo=$ac_try;; 7611esac 7612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7613$as_echo "$ac_try_echo") >&5 7614 (eval "$ac_try") 2>&5 7615 ac_status=$? 7616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7617 (exit $ac_status); }; }; then 7618 ac_cv_sizeof_long_int=`cat conftest.val` 7619else 7620 $as_echo "$as_me: program exited with status $ac_status" >&5 7621$as_echo "$as_me: failed program was:" >&5 7622sed 's/^/| /' conftest.$ac_ext >&5 7623 7624( exit $ac_status ) 7625if test "$ac_cv_type_long_int" = yes; then 7626 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int) 7627See \`config.log' for more details." >&5 7628$as_echo "$as_me: error: cannot compute sizeof (long int) 7629See \`config.log' for more details." >&2;} 7630 { (exit 77); exit 77; }; } 7631 else 7632 ac_cv_sizeof_long_int=0 7633 fi 7634fi 7635rm -rf conftest.dSYM 7636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7637fi 7638rm -f conftest.val 7639fi 7640{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 7641$as_echo "$ac_cv_sizeof_long_int" >&6; } 7642 7643 7644 7645cat >>confdefs.h <<_ACEOF 7646#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int 7647_ACEOF 7648 7649 7650# The cast to long int works around a bug in the HP C Compiler 7651# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7652# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7653# This bug is HP SR number 8606223364. 7654{ $as_echo "$as_me:$LINENO: checking size of long long int" >&5 7655$as_echo_n "checking size of long long int... " >&6; } 7656if test "${ac_cv_sizeof_long_long_int+set}" = set; then 7657 $as_echo_n "(cached) " >&6 7658else 7659 if test "$cross_compiling" = yes; then 7660 # Depending upon the size, compute the lo and hi bounds. 7661cat >conftest.$ac_ext <<_ACEOF 7662/* confdefs.h. */ 7663_ACEOF 7664cat confdefs.h >>conftest.$ac_ext 7665cat >>conftest.$ac_ext <<_ACEOF 7666/* end confdefs.h. */ 7667$ac_includes_default 7668int 7669main () 7670{ 7671static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= 0)]; 7672test_array [0] = 0 7673 7674 ; 7675 return 0; 7676} 7677_ACEOF 7678rm -f conftest.$ac_objext 7679if { (ac_try="$ac_compile" 7680case "(($ac_try" in 7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7682 *) ac_try_echo=$ac_try;; 7683esac 7684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7685$as_echo "$ac_try_echo") >&5 7686 (eval "$ac_compile") 2>conftest.er1 7687 ac_status=$? 7688 grep -v '^ *+' conftest.er1 >conftest.err 7689 rm -f conftest.er1 7690 cat conftest.err >&5 7691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7692 (exit $ac_status); } && { 7693 test -z "$ac_c_werror_flag" || 7694 test ! -s conftest.err 7695 } && test -s conftest.$ac_objext; then 7696 ac_lo=0 ac_mid=0 7697 while :; do 7698 cat >conftest.$ac_ext <<_ACEOF 7699/* confdefs.h. */ 7700_ACEOF 7701cat confdefs.h >>conftest.$ac_ext 7702cat >>conftest.$ac_ext <<_ACEOF 7703/* end confdefs.h. */ 7704$ac_includes_default 7705int 7706main () 7707{ 7708static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)]; 7709test_array [0] = 0 7710 7711 ; 7712 return 0; 7713} 7714_ACEOF 7715rm -f conftest.$ac_objext 7716if { (ac_try="$ac_compile" 7717case "(($ac_try" in 7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7719 *) ac_try_echo=$ac_try;; 7720esac 7721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7722$as_echo "$ac_try_echo") >&5 7723 (eval "$ac_compile") 2>conftest.er1 7724 ac_status=$? 7725 grep -v '^ *+' conftest.er1 >conftest.err 7726 rm -f conftest.er1 7727 cat conftest.err >&5 7728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7729 (exit $ac_status); } && { 7730 test -z "$ac_c_werror_flag" || 7731 test ! -s conftest.err 7732 } && test -s conftest.$ac_objext; then 7733 ac_hi=$ac_mid; break 7734else 7735 $as_echo "$as_me: failed program was:" >&5 7736sed 's/^/| /' conftest.$ac_ext >&5 7737 7738 ac_lo=`expr $ac_mid + 1` 7739 if test $ac_lo -le $ac_mid; then 7740 ac_lo= ac_hi= 7741 break 7742 fi 7743 ac_mid=`expr 2 '*' $ac_mid + 1` 7744fi 7745 7746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7747 done 7748else 7749 $as_echo "$as_me: failed program was:" >&5 7750sed 's/^/| /' conftest.$ac_ext >&5 7751 7752 cat >conftest.$ac_ext <<_ACEOF 7753/* confdefs.h. */ 7754_ACEOF 7755cat confdefs.h >>conftest.$ac_ext 7756cat >>conftest.$ac_ext <<_ACEOF 7757/* end confdefs.h. */ 7758$ac_includes_default 7759int 7760main () 7761{ 7762static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) < 0)]; 7763test_array [0] = 0 7764 7765 ; 7766 return 0; 7767} 7768_ACEOF 7769rm -f conftest.$ac_objext 7770if { (ac_try="$ac_compile" 7771case "(($ac_try" in 7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7773 *) ac_try_echo=$ac_try;; 7774esac 7775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7776$as_echo "$ac_try_echo") >&5 7777 (eval "$ac_compile") 2>conftest.er1 7778 ac_status=$? 7779 grep -v '^ *+' conftest.er1 >conftest.err 7780 rm -f conftest.er1 7781 cat conftest.err >&5 7782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7783 (exit $ac_status); } && { 7784 test -z "$ac_c_werror_flag" || 7785 test ! -s conftest.err 7786 } && test -s conftest.$ac_objext; then 7787 ac_hi=-1 ac_mid=-1 7788 while :; do 7789 cat >conftest.$ac_ext <<_ACEOF 7790/* confdefs.h. */ 7791_ACEOF 7792cat confdefs.h >>conftest.$ac_ext 7793cat >>conftest.$ac_ext <<_ACEOF 7794/* end confdefs.h. */ 7795$ac_includes_default 7796int 7797main () 7798{ 7799static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= $ac_mid)]; 7800test_array [0] = 0 7801 7802 ; 7803 return 0; 7804} 7805_ACEOF 7806rm -f conftest.$ac_objext 7807if { (ac_try="$ac_compile" 7808case "(($ac_try" in 7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7810 *) ac_try_echo=$ac_try;; 7811esac 7812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7813$as_echo "$ac_try_echo") >&5 7814 (eval "$ac_compile") 2>conftest.er1 7815 ac_status=$? 7816 grep -v '^ *+' conftest.er1 >conftest.err 7817 rm -f conftest.er1 7818 cat conftest.err >&5 7819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7820 (exit $ac_status); } && { 7821 test -z "$ac_c_werror_flag" || 7822 test ! -s conftest.err 7823 } && test -s conftest.$ac_objext; then 7824 ac_lo=$ac_mid; break 7825else 7826 $as_echo "$as_me: failed program was:" >&5 7827sed 's/^/| /' conftest.$ac_ext >&5 7828 7829 ac_hi=`expr '(' $ac_mid ')' - 1` 7830 if test $ac_mid -le $ac_hi; then 7831 ac_lo= ac_hi= 7832 break 7833 fi 7834 ac_mid=`expr 2 '*' $ac_mid` 7835fi 7836 7837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7838 done 7839else 7840 $as_echo "$as_me: failed program was:" >&5 7841sed 's/^/| /' conftest.$ac_ext >&5 7842 7843 ac_lo= ac_hi= 7844fi 7845 7846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7847fi 7848 7849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7850# Binary search between lo and hi bounds. 7851while test "x$ac_lo" != "x$ac_hi"; do 7852 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7853 cat >conftest.$ac_ext <<_ACEOF 7854/* confdefs.h. */ 7855_ACEOF 7856cat confdefs.h >>conftest.$ac_ext 7857cat >>conftest.$ac_ext <<_ACEOF 7858/* end confdefs.h. */ 7859$ac_includes_default 7860int 7861main () 7862{ 7863static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)]; 7864test_array [0] = 0 7865 7866 ; 7867 return 0; 7868} 7869_ACEOF 7870rm -f conftest.$ac_objext 7871if { (ac_try="$ac_compile" 7872case "(($ac_try" in 7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7874 *) ac_try_echo=$ac_try;; 7875esac 7876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7877$as_echo "$ac_try_echo") >&5 7878 (eval "$ac_compile") 2>conftest.er1 7879 ac_status=$? 7880 grep -v '^ *+' conftest.er1 >conftest.err 7881 rm -f conftest.er1 7882 cat conftest.err >&5 7883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7884 (exit $ac_status); } && { 7885 test -z "$ac_c_werror_flag" || 7886 test ! -s conftest.err 7887 } && test -s conftest.$ac_objext; then 7888 ac_hi=$ac_mid 7889else 7890 $as_echo "$as_me: failed program was:" >&5 7891sed 's/^/| /' conftest.$ac_ext >&5 7892 7893 ac_lo=`expr '(' $ac_mid ')' + 1` 7894fi 7895 7896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7897done 7898case $ac_lo in 7899?*) ac_cv_sizeof_long_long_int=$ac_lo;; 7900'') if test "$ac_cv_type_long_long_int" = yes; then 7901 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) 7902See \`config.log' for more details." >&5 7903$as_echo "$as_me: error: cannot compute sizeof (long long int) 7904See \`config.log' for more details." >&2;} 7905 { (exit 77); exit 77; }; } 7906 else 7907 ac_cv_sizeof_long_long_int=0 7908 fi ;; 7909esac 7910else 7911 cat >conftest.$ac_ext <<_ACEOF 7912/* confdefs.h. */ 7913_ACEOF 7914cat confdefs.h >>conftest.$ac_ext 7915cat >>conftest.$ac_ext <<_ACEOF 7916/* end confdefs.h. */ 7917$ac_includes_default 7918static long int longval () { return (long int) (sizeof (long long int)); } 7919static unsigned long int ulongval () { return (long int) (sizeof (long long int)); } 7920#include <stdio.h> 7921#include <stdlib.h> 7922int 7923main () 7924{ 7925 7926 FILE *f = fopen ("conftest.val", "w"); 7927 if (! f) 7928 return 1; 7929 if (((long int) (sizeof (long long int))) < 0) 7930 { 7931 long int i = longval (); 7932 if (i != ((long int) (sizeof (long long int)))) 7933 return 1; 7934 fprintf (f, "%ld", i); 7935 } 7936 else 7937 { 7938 unsigned long int i = ulongval (); 7939 if (i != ((long int) (sizeof (long long int)))) 7940 return 1; 7941 fprintf (f, "%lu", i); 7942 } 7943 /* Do not output a trailing newline, as this causes \r\n confusion 7944 on some platforms. */ 7945 return ferror (f) || fclose (f) != 0; 7946 7947 ; 7948 return 0; 7949} 7950_ACEOF 7951rm -f conftest$ac_exeext 7952if { (ac_try="$ac_link" 7953case "(($ac_try" in 7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7955 *) ac_try_echo=$ac_try;; 7956esac 7957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7958$as_echo "$ac_try_echo") >&5 7959 (eval "$ac_link") 2>&5 7960 ac_status=$? 7961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7963 { (case "(($ac_try" in 7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7965 *) ac_try_echo=$ac_try;; 7966esac 7967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7968$as_echo "$ac_try_echo") >&5 7969 (eval "$ac_try") 2>&5 7970 ac_status=$? 7971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7972 (exit $ac_status); }; }; then 7973 ac_cv_sizeof_long_long_int=`cat conftest.val` 7974else 7975 $as_echo "$as_me: program exited with status $ac_status" >&5 7976$as_echo "$as_me: failed program was:" >&5 7977sed 's/^/| /' conftest.$ac_ext >&5 7978 7979( exit $ac_status ) 7980if test "$ac_cv_type_long_long_int" = yes; then 7981 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) 7982See \`config.log' for more details." >&5 7983$as_echo "$as_me: error: cannot compute sizeof (long long int) 7984See \`config.log' for more details." >&2;} 7985 { (exit 77); exit 77; }; } 7986 else 7987 ac_cv_sizeof_long_long_int=0 7988 fi 7989fi 7990rm -rf conftest.dSYM 7991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7992fi 7993rm -f conftest.val 7994fi 7995{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 7996$as_echo "$ac_cv_sizeof_long_long_int" >&6; } 7997 7998 7999 8000cat >>confdefs.h <<_ACEOF 8001#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int 8002_ACEOF 8003 8004 8005 8006# More checks for data types 8007{ $as_echo "$as_me:$LINENO: checking for windows arch" >&5 8008$as_echo_n "checking for windows arch... " >&6; } 8009if test "${ac_cv_arch_win+set}" = set; then 8010 $as_echo_n "(cached) " >&6 8011else 8012 8013 cat >conftest.$ac_ext <<_ACEOF 8014/* confdefs.h. */ 8015_ACEOF 8016cat confdefs.h >>conftest.$ac_ext 8017cat >>conftest.$ac_ext <<_ACEOF 8018/* end confdefs.h. */ 8019 #include <process.h> 8020int 8021main () 8022{ 8023 CRITICAL_SECTION mutex; InitializeCriticalSection(mutex); 8024 ; 8025 return 0; 8026} 8027_ACEOF 8028rm -f conftest.$ac_objext 8029if { (ac_try="$ac_compile" 8030case "(($ac_try" in 8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8032 *) ac_try_echo=$ac_try;; 8033esac 8034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8035$as_echo "$ac_try_echo") >&5 8036 (eval "$ac_compile") 2>conftest.er1 8037 ac_status=$? 8038 grep -v '^ *+' conftest.er1 >conftest.err 8039 rm -f conftest.er1 8040 cat conftest.err >&5 8041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8042 (exit $ac_status); } && { 8043 test -z "$ac_c_werror_flag" || 8044 test ! -s conftest.err 8045 } && test -s conftest.$ac_objext; then 8046 ac_cv_arch_win="yes" 8047else 8048 $as_echo "$as_me: failed program was:" >&5 8049sed 's/^/| /' conftest.$ac_ext >&5 8050 8051 ac_cv_arch_win="no" 8052 8053fi 8054 8055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8056 8057fi 8058{ $as_echo "$as_me:$LINENO: result: $ac_cv_arch_win" >&5 8059$as_echo "$ac_cv_arch_win" >&6; } 8060if test "x$ac_cv_arch_win" = "xyes" ; then 8061 8062cat >>confdefs.h <<\_ACEOF 8063#define ARCH_PC_WIN95 1 8064_ACEOF 8065 8066fi 8067 8068{ $as_echo "$as_me:$LINENO: checking for struct timezone type" >&5 8069$as_echo_n "checking for struct timezone type... " >&6; } 8070if test "${ac_cv_have_struct_timezone+set}" = set; then 8071 $as_echo_n "(cached) " >&6 8072else 8073 8074 cat >conftest.$ac_ext <<_ACEOF 8075/* confdefs.h. */ 8076_ACEOF 8077cat confdefs.h >>conftest.$ac_ext 8078cat >>conftest.$ac_ext <<_ACEOF 8079/* end confdefs.h. */ 8080 #include <time.h> 8081 #include <sys/time.h> 8082 #include <sys/types.h> 8083int 8084main () 8085{ 8086 struct timezone opt; 8087 ; 8088 return 0; 8089} 8090_ACEOF 8091rm -f conftest.$ac_objext 8092if { (ac_try="$ac_compile" 8093case "(($ac_try" in 8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8095 *) ac_try_echo=$ac_try;; 8096esac 8097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8098$as_echo "$ac_try_echo") >&5 8099 (eval "$ac_compile") 2>conftest.er1 8100 ac_status=$? 8101 grep -v '^ *+' conftest.er1 >conftest.err 8102 rm -f conftest.er1 8103 cat conftest.err >&5 8104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8105 (exit $ac_status); } && { 8106 test -z "$ac_c_werror_flag" || 8107 test ! -s conftest.err 8108 } && test -s conftest.$ac_objext; then 8109 ac_cv_have_struct_timezone="yes" 8110else 8111 $as_echo "$as_me: failed program was:" >&5 8112sed 's/^/| /' conftest.$ac_ext >&5 8113 8114 ac_cv_have_struct_timezone="no" 8115 8116fi 8117 8118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8119 8120fi 8121{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_timezone" >&5 8122$as_echo "$ac_cv_have_struct_timezone" >&6; } 8123if test "x$ac_cv_have_struct_timezone" = "xyes" ; then 8124 8125cat >>confdefs.h <<\_ACEOF 8126#define HAVE_STRUCT_TIMEZONE 1 8127_ACEOF 8128 8129fi 8130 8131{ $as_echo "$as_me:$LINENO: checking for struct sockopt_len_t type" >&5 8132$as_echo_n "checking for struct sockopt_len_t type... " >&6; } 8133if test "${ac_cv_have_sockopt_len_t+set}" = set; then 8134 $as_echo_n "(cached) " >&6 8135else 8136 8137 cat >conftest.$ac_ext <<_ACEOF 8138/* confdefs.h. */ 8139_ACEOF 8140cat confdefs.h >>conftest.$ac_ext 8141cat >>conftest.$ac_ext <<_ACEOF 8142/* end confdefs.h. */ 8143 #include <sys/types.h> 8144 #include <sys/socket.h> 8145int 8146main () 8147{ 8148 static sockopt_len_t opt; opt=0; 8149 ; 8150 return 0; 8151} 8152_ACEOF 8153rm -f conftest.$ac_objext 8154if { (ac_try="$ac_compile" 8155case "(($ac_try" in 8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8157 *) ac_try_echo=$ac_try;; 8158esac 8159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8160$as_echo "$ac_try_echo") >&5 8161 (eval "$ac_compile") 2>conftest.er1 8162 ac_status=$? 8163 grep -v '^ *+' conftest.er1 >conftest.err 8164 rm -f conftest.er1 8165 cat conftest.err >&5 8166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8167 (exit $ac_status); } && { 8168 test -z "$ac_c_werror_flag" || 8169 test ! -s conftest.err 8170 } && test -s conftest.$ac_objext; then 8171 ac_cv_have_sockopt_len_t="yes" 8172else 8173 $as_echo "$as_me: failed program was:" >&5 8174sed 's/^/| /' conftest.$ac_ext >&5 8175 8176 ac_cv_have_sockopt_len_t="no" 8177 8178fi 8179 8180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8181 8182fi 8183{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_sockopt_len_t" >&5 8184$as_echo "$ac_cv_have_sockopt_len_t" >&6; } 8185if test "x$ac_cv_have_sockopt_len_t" = "xyes" ; then 8186 8187cat >>confdefs.h <<\_ACEOF 8188#define HAVE_SOCKOPT_LEN_T 1 8189_ACEOF 8190 8191fi 8192 8193{ $as_echo "$as_me:$LINENO: checking for struct msghdr type" >&5 8194$as_echo_n "checking for struct msghdr type... " >&6; } 8195if test "${ac_cv_have_struct_msghdr+set}" = set; then 8196 $as_echo_n "(cached) " >&6 8197else 8198 8199 cat >conftest.$ac_ext <<_ACEOF 8200/* confdefs.h. */ 8201_ACEOF 8202cat confdefs.h >>conftest.$ac_ext 8203cat >>conftest.$ac_ext <<_ACEOF 8204/* end confdefs.h. */ 8205 #include <sys/types.h> 8206 #include <sys/socket.h> 8207int 8208main () 8209{ 8210 static struct msghdr msg; msg.msg_namelen = 1; 8211 ; 8212 return 0; 8213} 8214_ACEOF 8215rm -f conftest.$ac_objext 8216if { (ac_try="$ac_compile" 8217case "(($ac_try" in 8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8219 *) ac_try_echo=$ac_try;; 8220esac 8221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8222$as_echo "$ac_try_echo") >&5 8223 (eval "$ac_compile") 2>conftest.er1 8224 ac_status=$? 8225 grep -v '^ *+' conftest.er1 >conftest.err 8226 rm -f conftest.er1 8227 cat conftest.err >&5 8228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8229 (exit $ac_status); } && { 8230 test -z "$ac_c_werror_flag" || 8231 test ! -s conftest.err 8232 } && test -s conftest.$ac_objext; then 8233 ac_cv_have_struct_msghdr="yes" 8234else 8235 $as_echo "$as_me: failed program was:" >&5 8236sed 's/^/| /' conftest.$ac_ext >&5 8237 8238 ac_cv_have_struct_msghdr="no" 8239 8240fi 8241 8242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8243 8244fi 8245{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_msghdr" >&5 8246$as_echo "$ac_cv_have_struct_msghdr" >&6; } 8247if test "x$ac_cv_have_struct_msghdr" = "xno" ; then 8248 8249cat >>confdefs.h <<\_ACEOF 8250#define ARCH_SCATTER_NONE 1 8251_ACEOF 8252 8253else 8254 have_scatter="no" 8255 { $as_echo "$as_me:$LINENO: checking for struct msghdr accrights" >&5 8256$as_echo_n "checking for struct msghdr accrights... " >&6; } 8257if test "${ac_cv_have_struct_msghdr_acc+set}" = set; then 8258 $as_echo_n "(cached) " >&6 8259else 8260 8261 cat >conftest.$ac_ext <<_ACEOF 8262/* confdefs.h. */ 8263_ACEOF 8264cat confdefs.h >>conftest.$ac_ext 8265cat >>conftest.$ac_ext <<_ACEOF 8266/* end confdefs.h. */ 8267 #include <sys/types.h> 8268 #include <sys/socket.h> 8269int 8270main () 8271{ 8272 static struct msghdr msg; msg.msg_accrightslen = 0; 8273 ; 8274 return 0; 8275} 8276_ACEOF 8277rm -f conftest.$ac_objext 8278if { (ac_try="$ac_compile" 8279case "(($ac_try" in 8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8281 *) ac_try_echo=$ac_try;; 8282esac 8283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8284$as_echo "$ac_try_echo") >&5 8285 (eval "$ac_compile") 2>conftest.er1 8286 ac_status=$? 8287 grep -v '^ *+' conftest.er1 >conftest.err 8288 rm -f conftest.er1 8289 cat conftest.err >&5 8290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8291 (exit $ac_status); } && { 8292 test -z "$ac_c_werror_flag" || 8293 test ! -s conftest.err 8294 } && test -s conftest.$ac_objext; then 8295 ac_cv_have_struct_msghdr_acc="yes" 8296else 8297 $as_echo "$as_me: failed program was:" >&5 8298sed 's/^/| /' conftest.$ac_ext >&5 8299 8300 ac_cv_have_struct_msghdr_acc="no" 8301 8302fi 8303 8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8305 8306fi 8307{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_msghdr_acc" >&5 8308$as_echo "$ac_cv_have_struct_msghdr_acc" >&6; } 8309 if test "x$ac_cv_have_struct_msghdr_acc" = "xyes" ; then 8310 8311cat >>confdefs.h <<\_ACEOF 8312#define ARCH_SCATTER_ACCRIGHTS 1 8313_ACEOF 8314 8315 have_scatter="yes" 8316 fi 8317 if test "x$have_scatter" = "xno" ; then 8318 { $as_echo "$as_me:$LINENO: checking for struct msghdr control" >&5 8319$as_echo_n "checking for struct msghdr control... " >&6; } 8320if test "${ac_cv_have_struct_msghdr_ctl+set}" = set; then 8321 $as_echo_n "(cached) " >&6 8322else 8323 8324 cat >conftest.$ac_ext <<_ACEOF 8325/* confdefs.h. */ 8326_ACEOF 8327cat confdefs.h >>conftest.$ac_ext 8328cat >>conftest.$ac_ext <<_ACEOF 8329/* end confdefs.h. */ 8330 #include <sys/types.h> 8331 #include <sys/socket.h> 8332int 8333main () 8334{ 8335 static struct msghdr msg; msg.msg_controllen = 0; 8336 ; 8337 return 0; 8338} 8339_ACEOF 8340rm -f conftest.$ac_objext 8341if { (ac_try="$ac_compile" 8342case "(($ac_try" in 8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8344 *) ac_try_echo=$ac_try;; 8345esac 8346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8347$as_echo "$ac_try_echo") >&5 8348 (eval "$ac_compile") 2>conftest.er1 8349 ac_status=$? 8350 grep -v '^ *+' conftest.er1 >conftest.err 8351 rm -f conftest.er1 8352 cat conftest.err >&5 8353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8354 (exit $ac_status); } && { 8355 test -z "$ac_c_werror_flag" || 8356 test ! -s conftest.err 8357 } && test -s conftest.$ac_objext; then 8358 ac_cv_have_struct_msghdr_ctl="yes" 8359else 8360 $as_echo "$as_me: failed program was:" >&5 8361sed 's/^/| /' conftest.$ac_ext >&5 8362 8363 ac_cv_have_struct_msghdr_ctl="no" 8364 8365fi 8366 8367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8368 8369fi 8370{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_msghdr_ctl" >&5 8371$as_echo "$ac_cv_have_struct_msghdr_ctl" >&6; } 8372 if test "x$ac_cv_have_struct_msghdr_ctl" = "xyes" ; then 8373 8374cat >>confdefs.h <<\_ACEOF 8375#define ARCH_SCATTER_CONTROL 1 8376_ACEOF 8377 8378 have_scatter="yes" 8379 fi 8380 fi 8381 if test "x$have_scatter" = "xno" ; then 8382 { { $as_echo "$as_me:$LINENO: error: *** cannot determine which scatter type to use ***" >&5 8383$as_echo "$as_me: error: *** cannot determine which scatter type to use ***" >&2;} 8384 { (exit 1); exit 1; }; } 8385 fi 8386fi 8387 8388{ $as_echo "$as_me:$LINENO: checking for u_int type" >&5 8389$as_echo_n "checking for u_int type... " >&6; } 8390if test "${ac_cv_have_u_int+set}" = set; then 8391 $as_echo_n "(cached) " >&6 8392else 8393 8394 cat >conftest.$ac_ext <<_ACEOF 8395/* confdefs.h. */ 8396_ACEOF 8397cat confdefs.h >>conftest.$ac_ext 8398cat >>conftest.$ac_ext <<_ACEOF 8399/* end confdefs.h. */ 8400 #include <sys/types.h> 8401int 8402main () 8403{ 8404 u_int a; a = 1; 8405 ; 8406 return 0; 8407} 8408_ACEOF 8409rm -f conftest.$ac_objext 8410if { (ac_try="$ac_compile" 8411case "(($ac_try" in 8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8413 *) ac_try_echo=$ac_try;; 8414esac 8415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8416$as_echo "$ac_try_echo") >&5 8417 (eval "$ac_compile") 2>conftest.er1 8418 ac_status=$? 8419 grep -v '^ *+' conftest.er1 >conftest.err 8420 rm -f conftest.er1 8421 cat conftest.err >&5 8422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8423 (exit $ac_status); } && { 8424 test -z "$ac_c_werror_flag" || 8425 test ! -s conftest.err 8426 } && test -s conftest.$ac_objext; then 8427 ac_cv_have_u_int="yes" 8428else 8429 $as_echo "$as_me: failed program was:" >&5 8430sed 's/^/| /' conftest.$ac_ext >&5 8431 8432 ac_cv_have_u_int="no" 8433 8434fi 8435 8436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8437 8438fi 8439{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 8440$as_echo "$ac_cv_have_u_int" >&6; } 8441if test "x$ac_cv_have_u_int" = "xyes" ; then 8442 8443cat >>confdefs.h <<\_ACEOF 8444#define HAVE_U_INT 1 8445_ACEOF 8446 8447 have_u_int=1 8448fi 8449 8450{ $as_echo "$as_me:$LINENO: checking for intXX_t types" >&5 8451$as_echo_n "checking for intXX_t types... " >&6; } 8452if test "${ac_cv_have_intxx_t+set}" = set; then 8453 $as_echo_n "(cached) " >&6 8454else 8455 8456 cat >conftest.$ac_ext <<_ACEOF 8457/* confdefs.h. */ 8458_ACEOF 8459cat confdefs.h >>conftest.$ac_ext 8460cat >>conftest.$ac_ext <<_ACEOF 8461/* end confdefs.h. */ 8462 #include <sys/types.h> 8463int 8464main () 8465{ 8466 int8_t a; int16_t b; int32_t c; a = b = c = 1; 8467 ; 8468 return 0; 8469} 8470_ACEOF 8471rm -f conftest.$ac_objext 8472if { (ac_try="$ac_compile" 8473case "(($ac_try" in 8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8475 *) ac_try_echo=$ac_try;; 8476esac 8477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8478$as_echo "$ac_try_echo") >&5 8479 (eval "$ac_compile") 2>conftest.er1 8480 ac_status=$? 8481 grep -v '^ *+' conftest.er1 >conftest.err 8482 rm -f conftest.er1 8483 cat conftest.err >&5 8484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8485 (exit $ac_status); } && { 8486 test -z "$ac_c_werror_flag" || 8487 test ! -s conftest.err 8488 } && test -s conftest.$ac_objext; then 8489 ac_cv_have_intxx_t="yes" 8490else 8491 $as_echo "$as_me: failed program was:" >&5 8492sed 's/^/| /' conftest.$ac_ext >&5 8493 8494 ac_cv_have_intxx_t="no" 8495 8496fi 8497 8498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8499 8500fi 8501{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 8502$as_echo "$ac_cv_have_intxx_t" >&6; } 8503if test "x$ac_cv_have_intxx_t" = "xyes" ; then 8504 8505cat >>confdefs.h <<\_ACEOF 8506#define HAVE_INTXX_T 1 8507_ACEOF 8508 8509 have_intxx_t=1 8510fi 8511 8512{ $as_echo "$as_me:$LINENO: checking for int64_t type" >&5 8513$as_echo_n "checking for int64_t type... " >&6; } 8514if test "${ac_cv_have_int64_t+set}" = set; then 8515 $as_echo_n "(cached) " >&6 8516else 8517 8518 cat >conftest.$ac_ext <<_ACEOF 8519/* confdefs.h. */ 8520_ACEOF 8521cat confdefs.h >>conftest.$ac_ext 8522cat >>conftest.$ac_ext <<_ACEOF 8523/* end confdefs.h. */ 8524 #include <sys/types.h> 8525int 8526main () 8527{ 8528 int64_t a; a = 1; 8529 ; 8530 return 0; 8531} 8532_ACEOF 8533rm -f conftest.$ac_objext 8534if { (ac_try="$ac_compile" 8535case "(($ac_try" in 8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8537 *) ac_try_echo=$ac_try;; 8538esac 8539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8540$as_echo "$ac_try_echo") >&5 8541 (eval "$ac_compile") 2>conftest.er1 8542 ac_status=$? 8543 grep -v '^ *+' conftest.er1 >conftest.err 8544 rm -f conftest.er1 8545 cat conftest.err >&5 8546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8547 (exit $ac_status); } && { 8548 test -z "$ac_c_werror_flag" || 8549 test ! -s conftest.err 8550 } && test -s conftest.$ac_objext; then 8551 ac_cv_have_int64_t="yes" 8552else 8553 $as_echo "$as_me: failed program was:" >&5 8554sed 's/^/| /' conftest.$ac_ext >&5 8555 8556 ac_cv_have_int64_t="no" 8557 8558fi 8559 8560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8561 8562fi 8563{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 8564$as_echo "$ac_cv_have_int64_t" >&6; } 8565if test "x$ac_cv_have_int64_t" = "xyes" ; then 8566 8567cat >>confdefs.h <<\_ACEOF 8568#define HAVE_INT64_T 1 8569_ACEOF 8570 8571 have_int64_t=1 8572fi 8573 8574{ $as_echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 8575$as_echo_n "checking for u_intXX_t types... " >&6; } 8576if test "${ac_cv_have_u_intxx_t+set}" = set; then 8577 $as_echo_n "(cached) " >&6 8578else 8579 8580 cat >conftest.$ac_ext <<_ACEOF 8581/* confdefs.h. */ 8582_ACEOF 8583cat confdefs.h >>conftest.$ac_ext 8584cat >>conftest.$ac_ext <<_ACEOF 8585/* end confdefs.h. */ 8586 #include <sys/types.h> 8587int 8588main () 8589{ 8590 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; 8591 ; 8592 return 0; 8593} 8594_ACEOF 8595rm -f conftest.$ac_objext 8596if { (ac_try="$ac_compile" 8597case "(($ac_try" in 8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8599 *) ac_try_echo=$ac_try;; 8600esac 8601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8602$as_echo "$ac_try_echo") >&5 8603 (eval "$ac_compile") 2>conftest.er1 8604 ac_status=$? 8605 grep -v '^ *+' conftest.er1 >conftest.err 8606 rm -f conftest.er1 8607 cat conftest.err >&5 8608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8609 (exit $ac_status); } && { 8610 test -z "$ac_c_werror_flag" || 8611 test ! -s conftest.err 8612 } && test -s conftest.$ac_objext; then 8613 ac_cv_have_u_intxx_t="yes" 8614else 8615 $as_echo "$as_me: failed program was:" >&5 8616sed 's/^/| /' conftest.$ac_ext >&5 8617 8618 ac_cv_have_u_intxx_t="no" 8619 8620fi 8621 8622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8623 8624fi 8625{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 8626$as_echo "$ac_cv_have_u_intxx_t" >&6; } 8627if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then 8628 8629cat >>confdefs.h <<\_ACEOF 8630#define HAVE_U_INTXX_T 1 8631_ACEOF 8632 8633 have_u_intxx_t=1 8634fi 8635 8636{ $as_echo "$as_me:$LINENO: checking for u_int64_t types" >&5 8637$as_echo_n "checking for u_int64_t types... " >&6; } 8638if test "${ac_cv_have_u_int64_t+set}" = set; then 8639 $as_echo_n "(cached) " >&6 8640else 8641 8642 cat >conftest.$ac_ext <<_ACEOF 8643/* confdefs.h. */ 8644_ACEOF 8645cat confdefs.h >>conftest.$ac_ext 8646cat >>conftest.$ac_ext <<_ACEOF 8647/* end confdefs.h. */ 8648 #include <sys/types.h> 8649int 8650main () 8651{ 8652 u_int64_t a; a = 1; 8653 ; 8654 return 0; 8655} 8656_ACEOF 8657rm -f conftest.$ac_objext 8658if { (ac_try="$ac_compile" 8659case "(($ac_try" in 8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8661 *) ac_try_echo=$ac_try;; 8662esac 8663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8664$as_echo "$ac_try_echo") >&5 8665 (eval "$ac_compile") 2>conftest.er1 8666 ac_status=$? 8667 grep -v '^ *+' conftest.er1 >conftest.err 8668 rm -f conftest.er1 8669 cat conftest.err >&5 8670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8671 (exit $ac_status); } && { 8672 test -z "$ac_c_werror_flag" || 8673 test ! -s conftest.err 8674 } && test -s conftest.$ac_objext; then 8675 ac_cv_have_u_int64_t="yes" 8676else 8677 $as_echo "$as_me: failed program was:" >&5 8678sed 's/^/| /' conftest.$ac_ext >&5 8679 8680 ac_cv_have_u_int64_t="no" 8681 8682fi 8683 8684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8685 8686fi 8687{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 8688$as_echo "$ac_cv_have_u_int64_t" >&6; } 8689if test "x$ac_cv_have_u_int64_t" = "xyes" ; then 8690 8691cat >>confdefs.h <<\_ACEOF 8692#define HAVE_U_INT64_T 1 8693_ACEOF 8694 8695 have_u_int64_t=1 8696fi 8697 8698if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ 8699 test "x$ac_cv_header_sys_bitypes_h" = "xyes") 8700then 8701 { $as_echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 8702$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } 8703 cat >conftest.$ac_ext <<_ACEOF 8704/* confdefs.h. */ 8705_ACEOF 8706cat confdefs.h >>conftest.$ac_ext 8707cat >>conftest.$ac_ext <<_ACEOF 8708/* end confdefs.h. */ 8709 8710#include <sys/bitypes.h> 8711 8712int 8713main () 8714{ 8715 8716 int8_t a; int16_t b; int32_t c; 8717 u_int8_t e; u_int16_t f; u_int32_t g; 8718 a = b = c = e = f = g = 1; 8719 8720 ; 8721 return 0; 8722} 8723_ACEOF 8724rm -f conftest.$ac_objext 8725if { (ac_try="$ac_compile" 8726case "(($ac_try" in 8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8728 *) ac_try_echo=$ac_try;; 8729esac 8730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8731$as_echo "$ac_try_echo") >&5 8732 (eval "$ac_compile") 2>conftest.er1 8733 ac_status=$? 8734 grep -v '^ *+' conftest.er1 >conftest.err 8735 rm -f conftest.er1 8736 cat conftest.err >&5 8737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8738 (exit $ac_status); } && { 8739 test -z "$ac_c_werror_flag" || 8740 test ! -s conftest.err 8741 } && test -s conftest.$ac_objext; then 8742 8743 cat >>confdefs.h <<\_ACEOF 8744#define HAVE_U_INTXX_T 1 8745_ACEOF 8746 8747 cat >>confdefs.h <<\_ACEOF 8748#define HAVE_INTXX_T 1 8749_ACEOF 8750 8751 { $as_echo "$as_me:$LINENO: result: yes" >&5 8752$as_echo "yes" >&6; } 8753 8754else 8755 $as_echo "$as_me: failed program was:" >&5 8756sed 's/^/| /' conftest.$ac_ext >&5 8757 8758 { $as_echo "$as_me:$LINENO: result: no" >&5 8759$as_echo "no" >&6; } 8760 8761fi 8762 8763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8764fi 8765 8766if test -z "$have_u_intxx_t" ; then 8767 { $as_echo "$as_me:$LINENO: checking for uintXX_t types" >&5 8768$as_echo_n "checking for uintXX_t types... " >&6; } 8769if test "${ac_cv_have_uintxx_t+set}" = set; then 8770 $as_echo_n "(cached) " >&6 8771else 8772 8773 cat >conftest.$ac_ext <<_ACEOF 8774/* confdefs.h. */ 8775_ACEOF 8776cat confdefs.h >>conftest.$ac_ext 8777cat >>conftest.$ac_ext <<_ACEOF 8778/* end confdefs.h. */ 8779 8780#include <sys/types.h> 8781 8782int 8783main () 8784{ 8785 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; 8786 ; 8787 return 0; 8788} 8789_ACEOF 8790rm -f conftest.$ac_objext 8791if { (ac_try="$ac_compile" 8792case "(($ac_try" in 8793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8794 *) ac_try_echo=$ac_try;; 8795esac 8796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8797$as_echo "$ac_try_echo") >&5 8798 (eval "$ac_compile") 2>conftest.er1 8799 ac_status=$? 8800 grep -v '^ *+' conftest.er1 >conftest.err 8801 rm -f conftest.er1 8802 cat conftest.err >&5 8803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8804 (exit $ac_status); } && { 8805 test -z "$ac_c_werror_flag" || 8806 test ! -s conftest.err 8807 } && test -s conftest.$ac_objext; then 8808 ac_cv_have_uintxx_t="yes" 8809else 8810 $as_echo "$as_me: failed program was:" >&5 8811sed 's/^/| /' conftest.$ac_ext >&5 8812 8813 ac_cv_have_uintxx_t="no" 8814 8815fi 8816 8817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8818 8819fi 8820{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 8821$as_echo "$ac_cv_have_uintxx_t" >&6; } 8822 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then 8823 8824cat >>confdefs.h <<\_ACEOF 8825#define HAVE_UINTXX_T 1 8826_ACEOF 8827 8828 fi 8829fi 8830 8831{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 8832$as_echo_n "checking for socklen_t... " >&6; } 8833if test "${ac_cv_have_socklen_t+set}" = set; then 8834 $as_echo_n "(cached) " >&6 8835else 8836 8837 cat >conftest.$ac_ext <<_ACEOF 8838/* confdefs.h. */ 8839_ACEOF 8840cat confdefs.h >>conftest.$ac_ext 8841cat >>conftest.$ac_ext <<_ACEOF 8842/* end confdefs.h. */ 8843 8844#include <sys/types.h> 8845#include <sys/socket.h> 8846 8847int 8848main () 8849{ 8850socklen_t foo; foo = 1235; 8851 ; 8852 return 0; 8853} 8854_ACEOF 8855rm -f conftest.$ac_objext 8856if { (ac_try="$ac_compile" 8857case "(($ac_try" in 8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8859 *) ac_try_echo=$ac_try;; 8860esac 8861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8862$as_echo "$ac_try_echo") >&5 8863 (eval "$ac_compile") 2>conftest.er1 8864 ac_status=$? 8865 grep -v '^ *+' conftest.er1 >conftest.err 8866 rm -f conftest.er1 8867 cat conftest.err >&5 8868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8869 (exit $ac_status); } && { 8870 test -z "$ac_c_werror_flag" || 8871 test ! -s conftest.err 8872 } && test -s conftest.$ac_objext; then 8873 ac_cv_have_socklen_t="yes" 8874else 8875 $as_echo "$as_me: failed program was:" >&5 8876sed 's/^/| /' conftest.$ac_ext >&5 8877 8878 ac_cv_have_socklen_t="no" 8879 8880fi 8881 8882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8883 8884fi 8885{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_socklen_t" >&5 8886$as_echo "$ac_cv_have_socklen_t" >&6; } 8887if test "x$ac_cv_have_socklen_t" = "xyes" ; then 8888 8889cat >>confdefs.h <<\_ACEOF 8890#define HAVE_SOCKLEN_T 1 8891_ACEOF 8892 8893fi 8894 8895{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 8896$as_echo_n "checking for size_t... " >&6; } 8897if test "${ac_cv_have_size_t+set}" = set; then 8898 $as_echo_n "(cached) " >&6 8899else 8900 8901 cat >conftest.$ac_ext <<_ACEOF 8902/* confdefs.h. */ 8903_ACEOF 8904cat confdefs.h >>conftest.$ac_ext 8905cat >>conftest.$ac_ext <<_ACEOF 8906/* end confdefs.h. */ 8907 8908#include <sys/types.h> 8909 8910int 8911main () 8912{ 8913 size_t foo; foo = 1235; 8914 ; 8915 return 0; 8916} 8917_ACEOF 8918rm -f conftest.$ac_objext 8919if { (ac_try="$ac_compile" 8920case "(($ac_try" in 8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8922 *) ac_try_echo=$ac_try;; 8923esac 8924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8925$as_echo "$ac_try_echo") >&5 8926 (eval "$ac_compile") 2>conftest.er1 8927 ac_status=$? 8928 grep -v '^ *+' conftest.er1 >conftest.err 8929 rm -f conftest.er1 8930 cat conftest.err >&5 8931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8932 (exit $ac_status); } && { 8933 test -z "$ac_c_werror_flag" || 8934 test ! -s conftest.err 8935 } && test -s conftest.$ac_objext; then 8936 ac_cv_have_size_t="yes" 8937else 8938 $as_echo "$as_me: failed program was:" >&5 8939sed 's/^/| /' conftest.$ac_ext >&5 8940 8941 ac_cv_have_size_t="no" 8942 8943fi 8944 8945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8946 8947fi 8948{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 8949$as_echo "$ac_cv_have_size_t" >&6; } 8950if test "x$ac_cv_have_size_t" = "xyes" ; then 8951 8952cat >>confdefs.h <<\_ACEOF 8953#define HAVE_SIZE_T 1 8954_ACEOF 8955 8956fi 8957 8958{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 8959$as_echo_n "checking for ssize_t... " >&6; } 8960if test "${ac_cv_have_ssize_t+set}" = set; then 8961 $as_echo_n "(cached) " >&6 8962else 8963 8964 cat >conftest.$ac_ext <<_ACEOF 8965/* confdefs.h. */ 8966_ACEOF 8967cat confdefs.h >>conftest.$ac_ext 8968cat >>conftest.$ac_ext <<_ACEOF 8969/* end confdefs.h. */ 8970 8971#include <sys/types.h> 8972 8973int 8974main () 8975{ 8976 ssize_t foo; foo = 1235; 8977 ; 8978 return 0; 8979} 8980_ACEOF 8981rm -f conftest.$ac_objext 8982if { (ac_try="$ac_compile" 8983case "(($ac_try" in 8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8985 *) ac_try_echo=$ac_try;; 8986esac 8987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8988$as_echo "$ac_try_echo") >&5 8989 (eval "$ac_compile") 2>conftest.er1 8990 ac_status=$? 8991 grep -v '^ *+' conftest.er1 >conftest.err 8992 rm -f conftest.er1 8993 cat conftest.err >&5 8994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8995 (exit $ac_status); } && { 8996 test -z "$ac_c_werror_flag" || 8997 test ! -s conftest.err 8998 } && test -s conftest.$ac_objext; then 8999 ac_cv_have_ssize_t="yes" 9000else 9001 $as_echo "$as_me: failed program was:" >&5 9002sed 's/^/| /' conftest.$ac_ext >&5 9003 9004 ac_cv_have_ssize_t="no" 9005 9006fi 9007 9008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9009 9010fi 9011{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 9012$as_echo "$ac_cv_have_ssize_t" >&6; } 9013if test "x$ac_cv_have_ssize_t" = "xyes" ; then 9014 9015cat >>confdefs.h <<\_ACEOF 9016#define HAVE_SSIZE_T 1 9017_ACEOF 9018 9019fi 9020 9021{ $as_echo "$as_me:$LINENO: checking for clock_t" >&5 9022$as_echo_n "checking for clock_t... " >&6; } 9023if test "${ac_cv_have_clock_t+set}" = set; then 9024 $as_echo_n "(cached) " >&6 9025else 9026 9027 cat >conftest.$ac_ext <<_ACEOF 9028/* confdefs.h. */ 9029_ACEOF 9030cat confdefs.h >>conftest.$ac_ext 9031cat >>conftest.$ac_ext <<_ACEOF 9032/* end confdefs.h. */ 9033 9034#include <time.h> 9035 9036int 9037main () 9038{ 9039 clock_t foo; foo = 1235; 9040 ; 9041 return 0; 9042} 9043_ACEOF 9044rm -f conftest.$ac_objext 9045if { (ac_try="$ac_compile" 9046case "(($ac_try" in 9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9048 *) ac_try_echo=$ac_try;; 9049esac 9050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9051$as_echo "$ac_try_echo") >&5 9052 (eval "$ac_compile") 2>conftest.er1 9053 ac_status=$? 9054 grep -v '^ *+' conftest.er1 >conftest.err 9055 rm -f conftest.er1 9056 cat conftest.err >&5 9057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9058 (exit $ac_status); } && { 9059 test -z "$ac_c_werror_flag" || 9060 test ! -s conftest.err 9061 } && test -s conftest.$ac_objext; then 9062 ac_cv_have_clock_t="yes" 9063else 9064 $as_echo "$as_me: failed program was:" >&5 9065sed 's/^/| /' conftest.$ac_ext >&5 9066 9067 ac_cv_have_clock_t="no" 9068 9069fi 9070 9071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9072 9073fi 9074{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 9075$as_echo "$ac_cv_have_clock_t" >&6; } 9076if test "x$ac_cv_have_clock_t" = "xyes" ; then 9077 9078cat >>confdefs.h <<\_ACEOF 9079#define HAVE_CLOCK_T 1 9080_ACEOF 9081 9082fi 9083 9084{ $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5 9085$as_echo_n "checking for sa_family_t... " >&6; } 9086if test "${ac_cv_have_sa_family_t+set}" = set; then 9087 $as_echo_n "(cached) " >&6 9088else 9089 9090 cat >conftest.$ac_ext <<_ACEOF 9091/* confdefs.h. */ 9092_ACEOF 9093cat confdefs.h >>conftest.$ac_ext 9094cat >>conftest.$ac_ext <<_ACEOF 9095/* end confdefs.h. */ 9096 9097#include <sys/types.h> 9098#include <sys/socket.h> 9099 9100int 9101main () 9102{ 9103 sa_family_t foo; foo = 1235; 9104 ; 9105 return 0; 9106} 9107_ACEOF 9108rm -f conftest.$ac_objext 9109if { (ac_try="$ac_compile" 9110case "(($ac_try" in 9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9112 *) ac_try_echo=$ac_try;; 9113esac 9114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9115$as_echo "$ac_try_echo") >&5 9116 (eval "$ac_compile") 2>conftest.er1 9117 ac_status=$? 9118 grep -v '^ *+' conftest.er1 >conftest.err 9119 rm -f conftest.er1 9120 cat conftest.err >&5 9121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9122 (exit $ac_status); } && { 9123 test -z "$ac_c_werror_flag" || 9124 test ! -s conftest.err 9125 } && test -s conftest.$ac_objext; then 9126 ac_cv_have_sa_family_t="yes" 9127else 9128 $as_echo "$as_me: failed program was:" >&5 9129sed 's/^/| /' conftest.$ac_ext >&5 9130 9131 cat >conftest.$ac_ext <<_ACEOF 9132/* confdefs.h. */ 9133_ACEOF 9134cat confdefs.h >>conftest.$ac_ext 9135cat >>conftest.$ac_ext <<_ACEOF 9136/* end confdefs.h. */ 9137 9138#include <sys/types.h> 9139#include <sys/socket.h> 9140#include <netinet/in.h> 9141 9142int 9143main () 9144{ 9145 sa_family_t foo; foo = 1235; 9146 ; 9147 return 0; 9148} 9149_ACEOF 9150rm -f conftest.$ac_objext 9151if { (ac_try="$ac_compile" 9152case "(($ac_try" in 9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9154 *) ac_try_echo=$ac_try;; 9155esac 9156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9157$as_echo "$ac_try_echo") >&5 9158 (eval "$ac_compile") 2>conftest.er1 9159 ac_status=$? 9160 grep -v '^ *+' conftest.er1 >conftest.err 9161 rm -f conftest.er1 9162 cat conftest.err >&5 9163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9164 (exit $ac_status); } && { 9165 test -z "$ac_c_werror_flag" || 9166 test ! -s conftest.err 9167 } && test -s conftest.$ac_objext; then 9168 ac_cv_have_sa_family_t="yes" 9169else 9170 $as_echo "$as_me: failed program was:" >&5 9171sed 's/^/| /' conftest.$ac_ext >&5 9172 9173 ac_cv_have_sa_family_t="no" 9174 9175fi 9176 9177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9178 9179fi 9180 9181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9182 9183fi 9184{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 9185$as_echo "$ac_cv_have_sa_family_t" >&6; } 9186if test "x$ac_cv_have_sa_family_t" = "xyes" ; then 9187 9188cat >>confdefs.h <<\_ACEOF 9189#define HAVE_SA_FAMILY_T 1 9190_ACEOF 9191 9192fi 9193 9194 9195{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 9196$as_echo_n "checking for struct sockaddr_storage... " >&6; } 9197if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then 9198 $as_echo_n "(cached) " >&6 9199else 9200 9201 cat >conftest.$ac_ext <<_ACEOF 9202/* confdefs.h. */ 9203_ACEOF 9204cat confdefs.h >>conftest.$ac_ext 9205cat >>conftest.$ac_ext <<_ACEOF 9206/* end confdefs.h. */ 9207 9208#include <sys/types.h> 9209#include <sys/socket.h> 9210 9211int 9212main () 9213{ 9214 struct sockaddr_storage s; 9215 ; 9216 return 0; 9217} 9218_ACEOF 9219rm -f conftest.$ac_objext 9220if { (ac_try="$ac_compile" 9221case "(($ac_try" in 9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9223 *) ac_try_echo=$ac_try;; 9224esac 9225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9226$as_echo "$ac_try_echo") >&5 9227 (eval "$ac_compile") 2>conftest.er1 9228 ac_status=$? 9229 grep -v '^ *+' conftest.er1 >conftest.err 9230 rm -f conftest.er1 9231 cat conftest.err >&5 9232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9233 (exit $ac_status); } && { 9234 test -z "$ac_c_werror_flag" || 9235 test ! -s conftest.err 9236 } && test -s conftest.$ac_objext; then 9237 ac_cv_have_struct_sockaddr_storage="yes" 9238else 9239 $as_echo "$as_me: failed program was:" >&5 9240sed 's/^/| /' conftest.$ac_ext >&5 9241 9242 ac_cv_have_struct_sockaddr_storage="no" 9243 9244fi 9245 9246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9247 9248fi 9249{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 9250$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } 9251if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then 9252 9253cat >>confdefs.h <<\_ACEOF 9254#define HAVE_STRUCT_SOCKADDR_STORAGE 1 9255_ACEOF 9256 9257fi 9258 9259{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 9260$as_echo_n "checking for struct sockaddr_in6... " >&6; } 9261if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then 9262 $as_echo_n "(cached) " >&6 9263else 9264 9265 cat >conftest.$ac_ext <<_ACEOF 9266/* confdefs.h. */ 9267_ACEOF 9268cat confdefs.h >>conftest.$ac_ext 9269cat >>conftest.$ac_ext <<_ACEOF 9270/* end confdefs.h. */ 9271 9272#include <sys/types.h> 9273#include <netinet/in.h> 9274 9275int 9276main () 9277{ 9278 struct sockaddr_in6 s; s.sin6_family = 0; 9279 ; 9280 return 0; 9281} 9282_ACEOF 9283rm -f conftest.$ac_objext 9284if { (ac_try="$ac_compile" 9285case "(($ac_try" in 9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9287 *) ac_try_echo=$ac_try;; 9288esac 9289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9290$as_echo "$ac_try_echo") >&5 9291 (eval "$ac_compile") 2>conftest.er1 9292 ac_status=$? 9293 grep -v '^ *+' conftest.er1 >conftest.err 9294 rm -f conftest.er1 9295 cat conftest.err >&5 9296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9297 (exit $ac_status); } && { 9298 test -z "$ac_c_werror_flag" || 9299 test ! -s conftest.err 9300 } && test -s conftest.$ac_objext; then 9301 ac_cv_have_struct_sockaddr_in6="yes" 9302else 9303 $as_echo "$as_me: failed program was:" >&5 9304sed 's/^/| /' conftest.$ac_ext >&5 9305 9306 ac_cv_have_struct_sockaddr_in6="no" 9307 9308fi 9309 9310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9311 9312fi 9313{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 9314$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } 9315if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then 9316 9317cat >>confdefs.h <<\_ACEOF 9318#define HAVE_STRUCT_SOCKADDR_IN6 1 9319_ACEOF 9320 9321fi 9322 9323{ $as_echo "$as_me:$LINENO: checking for struct in6_addr" >&5 9324$as_echo_n "checking for struct in6_addr... " >&6; } 9325if test "${ac_cv_have_struct_in6_addr+set}" = set; then 9326 $as_echo_n "(cached) " >&6 9327else 9328 9329 cat >conftest.$ac_ext <<_ACEOF 9330/* confdefs.h. */ 9331_ACEOF 9332cat confdefs.h >>conftest.$ac_ext 9333cat >>conftest.$ac_ext <<_ACEOF 9334/* end confdefs.h. */ 9335 9336#include <sys/types.h> 9337#include <netinet/in.h> 9338 9339int 9340main () 9341{ 9342 struct in6_addr s; s.s6_addr[0] = 0; 9343 ; 9344 return 0; 9345} 9346_ACEOF 9347rm -f conftest.$ac_objext 9348if { (ac_try="$ac_compile" 9349case "(($ac_try" in 9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9351 *) ac_try_echo=$ac_try;; 9352esac 9353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9354$as_echo "$ac_try_echo") >&5 9355 (eval "$ac_compile") 2>conftest.er1 9356 ac_status=$? 9357 grep -v '^ *+' conftest.er1 >conftest.err 9358 rm -f conftest.er1 9359 cat conftest.err >&5 9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9361 (exit $ac_status); } && { 9362 test -z "$ac_c_werror_flag" || 9363 test ! -s conftest.err 9364 } && test -s conftest.$ac_objext; then 9365 ac_cv_have_struct_in6_addr="yes" 9366else 9367 $as_echo "$as_me: failed program was:" >&5 9368sed 's/^/| /' conftest.$ac_ext >&5 9369 9370 ac_cv_have_struct_in6_addr="no" 9371 9372fi 9373 9374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9375 9376fi 9377{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 9378$as_echo "$ac_cv_have_struct_in6_addr" >&6; } 9379if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then 9380 9381cat >>confdefs.h <<\_ACEOF 9382#define HAVE_STRUCT_IN6_ADDR 1 9383_ACEOF 9384 9385fi 9386 9387{ $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5 9388$as_echo_n "checking for struct addrinfo... " >&6; } 9389if test "${ac_cv_have_struct_addrinfo+set}" = set; then 9390 $as_echo_n "(cached) " >&6 9391else 9392 9393 cat >conftest.$ac_ext <<_ACEOF 9394/* confdefs.h. */ 9395_ACEOF 9396cat confdefs.h >>conftest.$ac_ext 9397cat >>conftest.$ac_ext <<_ACEOF 9398/* end confdefs.h. */ 9399 9400#include <sys/types.h> 9401#include <sys/socket.h> 9402#include <netdb.h> 9403 9404int 9405main () 9406{ 9407 struct addrinfo s; s.ai_flags = AI_PASSIVE; 9408 ; 9409 return 0; 9410} 9411_ACEOF 9412rm -f conftest.$ac_objext 9413if { (ac_try="$ac_compile" 9414case "(($ac_try" in 9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9416 *) ac_try_echo=$ac_try;; 9417esac 9418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9419$as_echo "$ac_try_echo") >&5 9420 (eval "$ac_compile") 2>conftest.er1 9421 ac_status=$? 9422 grep -v '^ *+' conftest.er1 >conftest.err 9423 rm -f conftest.er1 9424 cat conftest.err >&5 9425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9426 (exit $ac_status); } && { 9427 test -z "$ac_c_werror_flag" || 9428 test ! -s conftest.err 9429 } && test -s conftest.$ac_objext; then 9430 ac_cv_have_struct_addrinfo="yes" 9431else 9432 $as_echo "$as_me: failed program was:" >&5 9433sed 's/^/| /' conftest.$ac_ext >&5 9434 9435 ac_cv_have_struct_addrinfo="no" 9436 9437fi 9438 9439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9440 9441fi 9442{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 9443$as_echo "$ac_cv_have_struct_addrinfo" >&6; } 9444if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then 9445 9446cat >>confdefs.h <<\_ACEOF 9447#define HAVE_STRUCT_ADDRINFO 1 9448_ACEOF 9449 9450fi 9451 9452{ $as_echo "$as_me:$LINENO: checking for struct timeval" >&5 9453$as_echo_n "checking for struct timeval... " >&6; } 9454if test "${ac_cv_have_struct_timeval+set}" = set; then 9455 $as_echo_n "(cached) " >&6 9456else 9457 9458 cat >conftest.$ac_ext <<_ACEOF 9459/* confdefs.h. */ 9460_ACEOF 9461cat confdefs.h >>conftest.$ac_ext 9462cat >>conftest.$ac_ext <<_ACEOF 9463/* end confdefs.h. */ 9464 #include <sys/time.h> 9465int 9466main () 9467{ 9468 struct timeval tv; tv.tv_sec = 1; 9469 ; 9470 return 0; 9471} 9472_ACEOF 9473rm -f conftest.$ac_objext 9474if { (ac_try="$ac_compile" 9475case "(($ac_try" in 9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9477 *) ac_try_echo=$ac_try;; 9478esac 9479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9480$as_echo "$ac_try_echo") >&5 9481 (eval "$ac_compile") 2>conftest.er1 9482 ac_status=$? 9483 grep -v '^ *+' conftest.er1 >conftest.err 9484 rm -f conftest.er1 9485 cat conftest.err >&5 9486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9487 (exit $ac_status); } && { 9488 test -z "$ac_c_werror_flag" || 9489 test ! -s conftest.err 9490 } && test -s conftest.$ac_objext; then 9491 ac_cv_have_struct_timeval="yes" 9492else 9493 $as_echo "$as_me: failed program was:" >&5 9494sed 's/^/| /' conftest.$ac_ext >&5 9495 9496 ac_cv_have_struct_timeval="no" 9497 9498fi 9499 9500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9501 9502fi 9503{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 9504$as_echo "$ac_cv_have_struct_timeval" >&6; } 9505if test "x$ac_cv_have_struct_timeval" = "xyes" ; then 9506 9507cat >>confdefs.h <<\_ACEOF 9508#define HAVE_STRUCT_TIMEVAL 1 9509_ACEOF 9510 9511 have_struct_timeval=1 9512fi 9513 9514{ $as_echo "$as_me:$LINENO: checking for sun_len field in struct sockaddr_un" >&5 9515$as_echo_n "checking for sun_len field in struct sockaddr_un... " >&6; } 9516if test "${ac_cv_have_sun_len_in_struct_sockaddr_un+set}" = set; then 9517 $as_echo_n "(cached) " >&6 9518else 9519 9520 cat >conftest.$ac_ext <<_ACEOF 9521/* confdefs.h. */ 9522_ACEOF 9523cat confdefs.h >>conftest.$ac_ext 9524cat >>conftest.$ac_ext <<_ACEOF 9525/* end confdefs.h. */ 9526 9527#include <sys/types.h> 9528#include <sys/socket.h> 9529 9530int 9531main () 9532{ 9533 struct sockaddr_un s; s.sun_len = 1; 9534 ; 9535 return 0; 9536} 9537_ACEOF 9538rm -f conftest.$ac_objext 9539if { (ac_try="$ac_compile" 9540case "(($ac_try" in 9541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9542 *) ac_try_echo=$ac_try;; 9543esac 9544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9545$as_echo "$ac_try_echo") >&5 9546 (eval "$ac_compile") 2>conftest.er1 9547 ac_status=$? 9548 grep -v '^ *+' conftest.er1 >conftest.err 9549 rm -f conftest.er1 9550 cat conftest.err >&5 9551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9552 (exit $ac_status); } && { 9553 test -z "$ac_c_werror_flag" || 9554 test ! -s conftest.err 9555 } && test -s conftest.$ac_objext; then 9556 ac_cv_have_sun_len_in_struct_sockaddr_un="yes" 9557else 9558 $as_echo "$as_me: failed program was:" >&5 9559sed 's/^/| /' conftest.$ac_ext >&5 9560 9561 ac_cv_have_sun_len_in_struct_sockaddr_un="no" 9562fi 9563 9564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9565 9566fi 9567{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_sun_len_in_struct_sockaddr_un" >&5 9568$as_echo "$ac_cv_have_sun_len_in_struct_sockaddr_un" >&6; } 9569if test "x$ac_cv_have_sun_len_in_struct_sockaddr_un" = "xyes" ; then 9570 9571cat >>confdefs.h <<\_ACEOF 9572#define HAVE_SUN_LEN_IN_SOCKADDR_UN 1 9573_ACEOF 9574 9575fi 9576 9577{ $as_echo "$as_me:$LINENO: checking for sin_len field in sockaddr_in" >&5 9578$as_echo_n "checking for sin_len field in sockaddr_in... " >&6; } 9579if test "${ac_cv_have_sin_len_in_struct_sockaddr_in+set}" = set; then 9580 $as_echo_n "(cached) " >&6 9581else 9582 9583 cat >conftest.$ac_ext <<_ACEOF 9584/* confdefs.h. */ 9585_ACEOF 9586cat confdefs.h >>conftest.$ac_ext 9587cat >>conftest.$ac_ext <<_ACEOF 9588/* end confdefs.h. */ 9589 9590#include <sys/types.h> 9591#include <sys/socket.h> 9592#include <netinet/in.h> 9593 9594int 9595main () 9596{ 9597 struct sockaddr_in s; s.sin_len = sizeof(s); 9598 ; 9599 return 0; 9600} 9601_ACEOF 9602rm -f conftest.$ac_objext 9603if { (ac_try="$ac_compile" 9604case "(($ac_try" in 9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9606 *) ac_try_echo=$ac_try;; 9607esac 9608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9609$as_echo "$ac_try_echo") >&5 9610 (eval "$ac_compile") 2>conftest.er1 9611 ac_status=$? 9612 grep -v '^ *+' conftest.er1 >conftest.err 9613 rm -f conftest.er1 9614 cat conftest.err >&5 9615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9616 (exit $ac_status); } && { 9617 test -z "$ac_c_werror_flag" || 9618 test ! -s conftest.err 9619 } && test -s conftest.$ac_objext; then 9620 ac_cv_have_sin_len_in_struct_sockaddr_in="yes" 9621else 9622 $as_echo "$as_me: failed program was:" >&5 9623sed 's/^/| /' conftest.$ac_ext >&5 9624 9625 ac_cv_have_sin_len_in_struct_sockaddr_in="no" 9626fi 9627 9628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9629 9630fi 9631{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_sin_len_in_struct_sockaddr_in" >&5 9632$as_echo "$ac_cv_have_sin_len_in_struct_sockaddr_in" >&6; } 9633if test x"$ac_cv_have_sin_len_in_struct_sockaddr_in" = "xyes"; then 9634 9635cat >>confdefs.h <<\_ACEOF 9636#define HAVE_SIN_LEN_IN_SOCKADDR_IN 1 9637_ACEOF 9638 9639fi 9640 9641{ $as_echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 9642$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } 9643if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then 9644 $as_echo_n "(cached) " >&6 9645else 9646 9647 cat >conftest.$ac_ext <<_ACEOF 9648/* confdefs.h. */ 9649_ACEOF 9650cat confdefs.h >>conftest.$ac_ext 9651cat >>conftest.$ac_ext <<_ACEOF 9652/* end confdefs.h. */ 9653 9654#include <sys/types.h> 9655#include <sys/socket.h> 9656 9657int 9658main () 9659{ 9660 struct sockaddr_storage s; s.ss_family = 1; 9661 ; 9662 return 0; 9663} 9664_ACEOF 9665rm -f conftest.$ac_objext 9666if { (ac_try="$ac_compile" 9667case "(($ac_try" in 9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9669 *) ac_try_echo=$ac_try;; 9670esac 9671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9672$as_echo "$ac_try_echo") >&5 9673 (eval "$ac_compile") 2>conftest.er1 9674 ac_status=$? 9675 grep -v '^ *+' conftest.er1 >conftest.err 9676 rm -f conftest.er1 9677 cat conftest.err >&5 9678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9679 (exit $ac_status); } && { 9680 test -z "$ac_c_werror_flag" || 9681 test ! -s conftest.err 9682 } && test -s conftest.$ac_objext; then 9683 ac_cv_have_ss_family_in_struct_ss="yes" 9684else 9685 $as_echo "$as_me: failed program was:" >&5 9686sed 's/^/| /' conftest.$ac_ext >&5 9687 9688 ac_cv_have_ss_family_in_struct_ss="no" 9689fi 9690 9691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9692 9693fi 9694{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 9695$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } 9696if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then 9697 9698cat >>confdefs.h <<\_ACEOF 9699#define HAVE_SS_FAMILY_IN_SS 1 9700_ACEOF 9701 9702fi 9703 9704{ $as_echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 9705$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } 9706if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then 9707 $as_echo_n "(cached) " >&6 9708else 9709 9710 cat >conftest.$ac_ext <<_ACEOF 9711/* confdefs.h. */ 9712_ACEOF 9713cat confdefs.h >>conftest.$ac_ext 9714cat >>conftest.$ac_ext <<_ACEOF 9715/* end confdefs.h. */ 9716 9717#include <sys/types.h> 9718#include <sys/socket.h> 9719 9720int 9721main () 9722{ 9723 struct sockaddr_storage s; s.__ss_family = 1; 9724 ; 9725 return 0; 9726} 9727_ACEOF 9728rm -f conftest.$ac_objext 9729if { (ac_try="$ac_compile" 9730case "(($ac_try" in 9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9732 *) ac_try_echo=$ac_try;; 9733esac 9734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9735$as_echo "$ac_try_echo") >&5 9736 (eval "$ac_compile") 2>conftest.er1 9737 ac_status=$? 9738 grep -v '^ *+' conftest.er1 >conftest.err 9739 rm -f conftest.er1 9740 cat conftest.err >&5 9741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9742 (exit $ac_status); } && { 9743 test -z "$ac_c_werror_flag" || 9744 test ! -s conftest.err 9745 } && test -s conftest.$ac_objext; then 9746 ac_cv_have___ss_family_in_struct_ss="yes" 9747else 9748 $as_echo "$as_me: failed program was:" >&5 9749sed 's/^/| /' conftest.$ac_ext >&5 9750 9751 ac_cv_have___ss_family_in_struct_ss="no" 9752 9753fi 9754 9755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9756 9757fi 9758{ $as_echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 9759$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } 9760if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then 9761 9762cat >>confdefs.h <<\_ACEOF 9763#define HAVE___SS_FAMILY_IN_SS 1 9764_ACEOF 9765 9766fi 9767 9768{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5 9769$as_echo_n "checking for pid_t... " >&6; } 9770if test "${ac_cv_have_pid_t+set}" = set; then 9771 $as_echo_n "(cached) " >&6 9772else 9773 9774 cat >conftest.$ac_ext <<_ACEOF 9775/* confdefs.h. */ 9776_ACEOF 9777cat confdefs.h >>conftest.$ac_ext 9778cat >>conftest.$ac_ext <<_ACEOF 9779/* end confdefs.h. */ 9780 9781#include <sys/types.h> 9782 9783int 9784main () 9785{ 9786 pid_t foo; foo = 1235; 9787 ; 9788 return 0; 9789} 9790_ACEOF 9791rm -f conftest.$ac_objext 9792if { (ac_try="$ac_compile" 9793case "(($ac_try" in 9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9795 *) ac_try_echo=$ac_try;; 9796esac 9797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9798$as_echo "$ac_try_echo") >&5 9799 (eval "$ac_compile") 2>conftest.er1 9800 ac_status=$? 9801 grep -v '^ *+' conftest.er1 >conftest.err 9802 rm -f conftest.er1 9803 cat conftest.err >&5 9804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9805 (exit $ac_status); } && { 9806 test -z "$ac_c_werror_flag" || 9807 test ! -s conftest.err 9808 } && test -s conftest.$ac_objext; then 9809 ac_cv_have_pid_t="yes" 9810else 9811 $as_echo "$as_me: failed program was:" >&5 9812sed 's/^/| /' conftest.$ac_ext >&5 9813 9814 ac_cv_have_pid_t="no" 9815 9816fi 9817 9818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9819 9820fi 9821{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 9822$as_echo "$ac_cv_have_pid_t" >&6; } 9823if test "x$ac_cv_have_pid_t" = "xyes" ; then 9824 9825cat >>confdefs.h <<\_ACEOF 9826#define HAVE_PID_T 1 9827_ACEOF 9828 9829fi 9830 9831{ $as_echo "$as_me:$LINENO: checking if libc defines __progname" >&5 9832$as_echo_n "checking if libc defines __progname... " >&6; } 9833if test "${ac_cv_libc_defines___progname+set}" = set; then 9834 $as_echo_n "(cached) " >&6 9835else 9836 9837 cat >conftest.$ac_ext <<_ACEOF 9838/* confdefs.h. */ 9839_ACEOF 9840cat confdefs.h >>conftest.$ac_ext 9841cat >>conftest.$ac_ext <<_ACEOF 9842/* end confdefs.h. */ 9843 9844int 9845main () 9846{ 9847 extern char *__progname; printf("%s", __progname); 9848 ; 9849 return 0; 9850} 9851_ACEOF 9852rm -f conftest.$ac_objext conftest$ac_exeext 9853if { (ac_try="$ac_link" 9854case "(($ac_try" in 9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9856 *) ac_try_echo=$ac_try;; 9857esac 9858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9859$as_echo "$ac_try_echo") >&5 9860 (eval "$ac_link") 2>conftest.er1 9861 ac_status=$? 9862 grep -v '^ *+' conftest.er1 >conftest.err 9863 rm -f conftest.er1 9864 cat conftest.err >&5 9865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9866 (exit $ac_status); } && { 9867 test -z "$ac_c_werror_flag" || 9868 test ! -s conftest.err 9869 } && test -s conftest$ac_exeext && { 9870 test "$cross_compiling" = yes || 9871 $as_test_x conftest$ac_exeext 9872 }; then 9873 ac_cv_libc_defines___progname="yes" 9874else 9875 $as_echo "$as_me: failed program was:" >&5 9876sed 's/^/| /' conftest.$ac_ext >&5 9877 9878 ac_cv_libc_defines___progname="no" 9879 9880fi 9881 9882rm -rf conftest.dSYM 9883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9884 conftest$ac_exeext conftest.$ac_ext 9885 9886fi 9887{ $as_echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 9888$as_echo "$ac_cv_libc_defines___progname" >&6; } 9889if test "x$ac_cv_libc_defines___progname" = "xyes" ; then 9890 9891cat >>confdefs.h <<\_ACEOF 9892#define HAVE___PROGNAME 1 9893_ACEOF 9894 9895fi 9896 9897 9898{ $as_echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 9899$as_echo_n "checking if libc defines sys_errlist... " >&6; } 9900if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then 9901 $as_echo_n "(cached) " >&6 9902else 9903 9904 cat >conftest.$ac_ext <<_ACEOF 9905/* confdefs.h. */ 9906_ACEOF 9907cat confdefs.h >>conftest.$ac_ext 9908cat >>conftest.$ac_ext <<_ACEOF 9909/* end confdefs.h. */ 9910 9911int 9912main () 9913{ 9914 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); 9915 ; 9916 return 0; 9917} 9918_ACEOF 9919rm -f conftest.$ac_objext conftest$ac_exeext 9920if { (ac_try="$ac_link" 9921case "(($ac_try" in 9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9923 *) ac_try_echo=$ac_try;; 9924esac 9925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9926$as_echo "$ac_try_echo") >&5 9927 (eval "$ac_link") 2>conftest.er1 9928 ac_status=$? 9929 grep -v '^ *+' conftest.er1 >conftest.err 9930 rm -f conftest.er1 9931 cat conftest.err >&5 9932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9933 (exit $ac_status); } && { 9934 test -z "$ac_c_werror_flag" || 9935 test ! -s conftest.err 9936 } && test -s conftest$ac_exeext && { 9937 test "$cross_compiling" = yes || 9938 $as_test_x conftest$ac_exeext 9939 }; then 9940 ac_cv_libc_defines_sys_errlist="yes" 9941else 9942 $as_echo "$as_me: failed program was:" >&5 9943sed 's/^/| /' conftest.$ac_ext >&5 9944 9945 ac_cv_libc_defines_sys_errlist="no" 9946 9947fi 9948 9949rm -rf conftest.dSYM 9950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9951 conftest$ac_exeext conftest.$ac_ext 9952 9953fi 9954{ $as_echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 9955$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } 9956if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then 9957 9958cat >>confdefs.h <<\_ACEOF 9959#define HAVE_SYS_ERRLIST 1 9960_ACEOF 9961 9962fi 9963 9964 9965{ $as_echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 9966$as_echo_n "checking if libc defines sys_nerr... " >&6; } 9967if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then 9968 $as_echo_n "(cached) " >&6 9969else 9970 9971 cat >conftest.$ac_ext <<_ACEOF 9972/* confdefs.h. */ 9973_ACEOF 9974cat confdefs.h >>conftest.$ac_ext 9975cat >>conftest.$ac_ext <<_ACEOF 9976/* end confdefs.h. */ 9977 9978int 9979main () 9980{ 9981 extern int sys_nerr; printf("%i", sys_nerr); 9982 ; 9983 return 0; 9984} 9985_ACEOF 9986rm -f conftest.$ac_objext conftest$ac_exeext 9987if { (ac_try="$ac_link" 9988case "(($ac_try" in 9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9990 *) ac_try_echo=$ac_try;; 9991esac 9992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9993$as_echo "$ac_try_echo") >&5 9994 (eval "$ac_link") 2>conftest.er1 9995 ac_status=$? 9996 grep -v '^ *+' conftest.er1 >conftest.err 9997 rm -f conftest.er1 9998 cat conftest.err >&5 9999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10000 (exit $ac_status); } && { 10001 test -z "$ac_c_werror_flag" || 10002 test ! -s conftest.err 10003 } && test -s conftest$ac_exeext && { 10004 test "$cross_compiling" = yes || 10005 $as_test_x conftest$ac_exeext 10006 }; then 10007 ac_cv_libc_defines_sys_nerr="yes" 10008else 10009 $as_echo "$as_me: failed program was:" >&5 10010sed 's/^/| /' conftest.$ac_ext >&5 10011 10012 ac_cv_libc_defines_sys_nerr="no" 10013 10014fi 10015 10016rm -rf conftest.dSYM 10017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10018 conftest$ac_exeext conftest.$ac_ext 10019 10020fi 10021{ $as_echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 10022$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } 10023if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then 10024 10025cat >>confdefs.h <<\_ACEOF 10026#define HAVE_SYS_NERR 1 10027_ACEOF 10028 10029fi 10030 10031# Options from here on. Some of these are preset by platform above 10032 10033 10034# Check whether --with-catman was given. 10035if test "${with_catman+set}" = set; then 10036 withval=$with_catman; 10037 case "$withval" in 10038 man|cat|doc) 10039 MANTYPE=$withval 10040 ;; 10041 *) 10042 { { $as_echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 10043$as_echo "$as_me: error: invalid man type: $withval" >&2;} 10044 { (exit 1); exit 1; }; } 10045 ;; 10046 esac 10047 10048 10049fi 10050 10051if test -z "$MANTYPE"; then 10052 for ac_prog in nroff awf 10053do 10054 # Extract the first word of "$ac_prog", so it can be a program name with args. 10055set dummy $ac_prog; ac_word=$2 10056{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 10057$as_echo_n "checking for $ac_word... " >&6; } 10058if test "${ac_cv_path_NROFF+set}" = set; then 10059 $as_echo_n "(cached) " >&6 10060else 10061 case $NROFF in 10062 [\\/]* | ?:[\\/]*) 10063 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 10064 ;; 10065 *) 10066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10067as_dummy="/usr/bin:/usr/ucb" 10068for as_dir in $as_dummy 10069do 10070 IFS=$as_save_IFS 10071 test -z "$as_dir" && as_dir=. 10072 for ac_exec_ext in '' $ac_executable_extensions; do 10073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10074 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 10075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10076 break 2 10077 fi 10078done 10079done 10080IFS=$as_save_IFS 10081 10082 ;; 10083esac 10084fi 10085NROFF=$ac_cv_path_NROFF 10086if test -n "$NROFF"; then 10087 { $as_echo "$as_me:$LINENO: result: $NROFF" >&5 10088$as_echo "$NROFF" >&6; } 10089else 10090 { $as_echo "$as_me:$LINENO: result: no" >&5 10091$as_echo "no" >&6; } 10092fi 10093 10094 10095 test -n "$NROFF" && break 10096done 10097test -n "$NROFF" || NROFF="/bin/false" 10098 10099 if ${NROFF} -mdoc ${srcdir}/docs/libspread-util.3 >/dev/null 2>&1; then 10100 MANTYPE=doc 10101 elif ${NROFF} -man ${srcdir}/docs/libspread-util.3 >/dev/null 2>&1; then 10102 MANTYPE=man 10103 else 10104 MANTYPE=cat 10105 fi 10106fi 10107 10108if test "$MANTYPE" = "doc"; then 10109 mansubdir=man; 10110else 10111 mansubdir=$MANTYPE; 10112fi 10113 10114 10115# autoconf does not have docdir option, so add one 10116 10117# Check whether --with-docdir was given. 10118if test "${with_docdir+set}" = set; then 10119 withval=$with_docdir; 10120 if test "x$withval" = xyes || test "x$withval" = xno; then 10121 docdir='${datadir}/doc/libspread-util' 10122 else 10123 docdir="$withval" 10124 fi 10125 10126else 10127 10128 docdir='${datadir}/doc/libspread-util' 10129 10130 10131fi 10132 10133 10134 10135# feature enable to turn on threaded alarm processing 10136# Check whether --enable-threaded-alarm was given. 10137if test "${enable_threaded_alarm+set}" = set; then 10138 enableval=$enable_threaded_alarm; 10139fi 10140 10141 10142if test "x$enable_threaded_alarm" = "xyes" ; then 10143 10144cat >>confdefs.h <<\_ACEOF 10145#define USE_THREADED_ALARM 1 10146_ACEOF 10147 10148fi 10149 10150# control whether dladdr is used to lookup function names. Default is to use it. 10151# Check whether --enable-function-name-lookup was given. 10152if test "${enable_function_name_lookup+set}" = set; then 10153 enableval=$enable_function_name_lookup; 10154fi 10155 10156 10157if test "x$enable_function_name_lookup" = "xno" ; then 10158 10159cat >>confdefs.h <<\_ACEOF 10160#define DISABLE_FUNCTION_NAME_LOOKUP 1 10161_ACEOF 10162 10163fi 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174LIBSPSO=none 10175case "$host" in 10176*-*-darwin*) 10177 SHCC=$CC 10178 SHCFLAGS="$CFLAGS -fPIC -fno-common" 10179 SHCPPFLAGS="$CPPFLAGS" 10180 SHLD="$CC -dynamiclib" 10181 SHLDFLAGS="$SHLDFLAGS $LDFLAGS" 10182 SHLIBS=$LIBS 10183 SHLDOPTION="-Wl," 10184 SHLDNAME="-headerpad_max_install_names -install_name " 10185 SHLDCONVERTSTATIC= 10186 SHLDCONVERTSTATICEND= 10187 LIBSPSO="libspread-util.dylib" 10188 ;; 10189mips-sgi-irix*) 10190 LIBSPSO=none 10191 ;; 10192*-*-solaris*) 10193 SHCC=$CC 10194 SHCFLAGS="$CFLAGS -fPIC" 10195 SHCPPFLAGS="$CPPFLAGS" 10196 SHLD="$CC -shared" 10197 SHLDFLAGS="$SHLDFLAGS $LDFLAGS" 10198 SHLIBS=$LIBS 10199 SHLDOPTION="-Wl," 10200 SHLDNAME="-h," 10201 SHLDCONVERTSTATIC="-Wl,-whole-archive" 10202 SHLDCONVERTSTATICEND="-Wl,-no-whole-archive" 10203 LIBSPSO="libspread-util.so" 10204 ;; 10205*-*-*) 10206 SHCC=$CC 10207 SHCFLAGS="$CFLAGS -fPIC" 10208 SHCPPFLAGS="$CPPFLAGS" 10209 SHLD="$CC -shared" 10210 SHLDFLAGS="$SHLDFLAGS $LDFLAGS" 10211 SHLIBS=$LIBS 10212 SHLDOPTION="-Wl," 10213 SHLDNAME="-soname," 10214 SHLDCONVERTSTATIC="-Wl,-whole-archive" 10215 SHLDCONVERTSTATICEND="-Wl,-no-whole-archive" 10216 LIBSPSO="libspread-util.so" 10217 ;; 10218esac 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232ac_config_files="$ac_config_files Makefile src/Makefile docs/Makefile include/Makefile" 10233 10234cat >confcache <<\_ACEOF 10235# This file is a shell script that caches the results of configure 10236# tests run on this system so they can be shared between configure 10237# scripts and configure runs, see configure's option --config-cache. 10238# It is not useful on other systems. If it contains results you don't 10239# want to keep, you may remove or edit it. 10240# 10241# config.status only pays attention to the cache file if you give it 10242# the --recheck option to rerun configure. 10243# 10244# `ac_cv_env_foo' variables (set or unset) will be overridden when 10245# loading this file, other *unset* `ac_cv_foo' will be assigned the 10246# following values. 10247 10248_ACEOF 10249 10250# The following way of writing the cache mishandles newlines in values, 10251# but we know of no workaround that is simple, portable, and efficient. 10252# So, we kill variables containing newlines. 10253# Ultrix sh set writes to stderr and can't be redirected directly, 10254# and sets the high bit in the cache file unless we assign to the vars. 10255( 10256 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10257 eval ac_val=\$$ac_var 10258 case $ac_val in #( 10259 *${as_nl}*) 10260 case $ac_var in #( 10261 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10262$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10263 esac 10264 case $ac_var in #( 10265 _ | IFS | as_nl) ;; #( 10266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10267 *) $as_unset $ac_var ;; 10268 esac ;; 10269 esac 10270 done 10271 10272 (set) 2>&1 | 10273 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10274 *${as_nl}ac_space=\ *) 10275 # `set' does not quote correctly, so add quotes (double-quote 10276 # substitution turns \\\\ into \\, and sed turns \\ into \). 10277 sed -n \ 10278 "s/'/'\\\\''/g; 10279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10280 ;; #( 10281 *) 10282 # `set' quotes correctly as required by POSIX, so do not add quotes. 10283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10284 ;; 10285 esac | 10286 sort 10287) | 10288 sed ' 10289 /^ac_cv_env_/b end 10290 t clear 10291 :clear 10292 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10293 t end 10294 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10295 :end' >>confcache 10296if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10297 if test -w "$cache_file"; then 10298 test "x$cache_file" != "x/dev/null" && 10299 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 10300$as_echo "$as_me: updating cache $cache_file" >&6;} 10301 cat confcache >$cache_file 10302 else 10303 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10304$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10305 fi 10306fi 10307rm -f confcache 10308 10309test "x$prefix" = xNONE && prefix=$ac_default_prefix 10310# Let make expand exec_prefix. 10311test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10312 10313DEFS=-DHAVE_CONFIG_H 10314 10315ac_libobjs= 10316ac_ltlibobjs= 10317for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10318 # 1. Remove the extension, and $U if already installed. 10319 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10320 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10321 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10322 # will be set to the directory where LIBOBJS objects are built. 10323 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10324 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10325done 10326LIBOBJS=$ac_libobjs 10327 10328LTLIBOBJS=$ac_ltlibobjs 10329 10330 10331 10332: ${CONFIG_STATUS=./config.status} 10333ac_write_fail=0 10334ac_clean_files_save=$ac_clean_files 10335ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10336{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10337$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10338cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10339#! $SHELL 10340# Generated by $as_me. 10341# Run this file to recreate the current configuration. 10342# Compiler output produced by configure, useful for debugging 10343# configure, is in config.log if it exists. 10344 10345debug=false 10346ac_cs_recheck=false 10347ac_cs_silent=false 10348SHELL=\${CONFIG_SHELL-$SHELL} 10349_ACEOF 10350 10351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10352## --------------------- ## 10353## M4sh Initialization. ## 10354## --------------------- ## 10355 10356# Be more Bourne compatible 10357DUALCASE=1; export DUALCASE # for MKS sh 10358if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10359 emulate sh 10360 NULLCMD=: 10361 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10362 # is contrary to our usage. Disable this feature. 10363 alias -g '${1+"$@"}'='"$@"' 10364 setopt NO_GLOB_SUBST 10365else 10366 case `(set -o) 2>/dev/null` in 10367 *posix*) set -o posix ;; 10368esac 10369 10370fi 10371 10372 10373 10374 10375# PATH needs CR 10376# Avoid depending upon Character Ranges. 10377as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10378as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10379as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10380as_cr_digits='0123456789' 10381as_cr_alnum=$as_cr_Letters$as_cr_digits 10382 10383as_nl=' 10384' 10385export as_nl 10386# Printing a long string crashes Solaris 7 /usr/bin/printf. 10387as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10388as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10389as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10390if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10391 as_echo='printf %s\n' 10392 as_echo_n='printf %s' 10393else 10394 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10395 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10396 as_echo_n='/usr/ucb/echo -n' 10397 else 10398 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10399 as_echo_n_body='eval 10400 arg=$1; 10401 case $arg in 10402 *"$as_nl"*) 10403 expr "X$arg" : "X\\(.*\\)$as_nl"; 10404 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10405 esac; 10406 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10407 ' 10408 export as_echo_n_body 10409 as_echo_n='sh -c $as_echo_n_body as_echo' 10410 fi 10411 export as_echo_body 10412 as_echo='sh -c $as_echo_body as_echo' 10413fi 10414 10415# The user is always right. 10416if test "${PATH_SEPARATOR+set}" != set; then 10417 PATH_SEPARATOR=: 10418 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10419 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10420 PATH_SEPARATOR=';' 10421 } 10422fi 10423 10424# Support unset when possible. 10425if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10426 as_unset=unset 10427else 10428 as_unset=false 10429fi 10430 10431 10432# IFS 10433# We need space, tab and new line, in precisely that order. Quoting is 10434# there to prevent editors from complaining about space-tab. 10435# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10436# splitting by setting IFS to empty value.) 10437IFS=" "" $as_nl" 10438 10439# Find who we are. Look in the path if we contain no directory separator. 10440case $0 in 10441 *[\\/]* ) as_myself=$0 ;; 10442 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10443for as_dir in $PATH 10444do 10445 IFS=$as_save_IFS 10446 test -z "$as_dir" && as_dir=. 10447 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10448done 10449IFS=$as_save_IFS 10450 10451 ;; 10452esac 10453# We did not find ourselves, most probably we were run as `sh COMMAND' 10454# in which case we are not to be found in the path. 10455if test "x$as_myself" = x; then 10456 as_myself=$0 10457fi 10458if test ! -f "$as_myself"; then 10459 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10460 { (exit 1); exit 1; } 10461fi 10462 10463# Work around bugs in pre-3.0 UWIN ksh. 10464for as_var in ENV MAIL MAILPATH 10465do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10466done 10467PS1='$ ' 10468PS2='> ' 10469PS4='+ ' 10470 10471# NLS nuisances. 10472LC_ALL=C 10473export LC_ALL 10474LANGUAGE=C 10475export LANGUAGE 10476 10477# Required to use basename. 10478if expr a : '\(a\)' >/dev/null 2>&1 && 10479 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10480 as_expr=expr 10481else 10482 as_expr=false 10483fi 10484 10485if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10486 as_basename=basename 10487else 10488 as_basename=false 10489fi 10490 10491 10492# Name of the executable. 10493as_me=`$as_basename -- "$0" || 10494$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10495 X"$0" : 'X\(//\)$' \| \ 10496 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10497$as_echo X/"$0" | 10498 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10499 s//\1/ 10500 q 10501 } 10502 /^X\/\(\/\/\)$/{ 10503 s//\1/ 10504 q 10505 } 10506 /^X\/\(\/\).*/{ 10507 s//\1/ 10508 q 10509 } 10510 s/.*/./; q'` 10511 10512# CDPATH. 10513$as_unset CDPATH 10514 10515 10516 10517 as_lineno_1=$LINENO 10518 as_lineno_2=$LINENO 10519 test "x$as_lineno_1" != "x$as_lineno_2" && 10520 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10521 10522 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10523 # uniformly replaced by the line number. The first 'sed' inserts a 10524 # line-number line after each line using $LINENO; the second 'sed' 10525 # does the real work. The second script uses 'N' to pair each 10526 # line-number line with the line containing $LINENO, and appends 10527 # trailing '-' during substitution so that $LINENO is not a special 10528 # case at line end. 10529 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10530 # scripts with optimization help from Paolo Bonzini. Blame Lee 10531 # E. McMahon (1931-1989) for sed's syntax. :-) 10532 sed -n ' 10533 p 10534 /[$]LINENO/= 10535 ' <$as_myself | 10536 sed ' 10537 s/[$]LINENO.*/&-/ 10538 t lineno 10539 b 10540 :lineno 10541 N 10542 :loop 10543 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10544 t loop 10545 s/-\n.*// 10546 ' >$as_me.lineno && 10547 chmod +x "$as_me.lineno" || 10548 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10549 { (exit 1); exit 1; }; } 10550 10551 # Don't try to exec as it changes $[0], causing all sort of problems 10552 # (the dirname of $[0] is not the place where we might find the 10553 # original and so on. Autoconf is especially sensitive to this). 10554 . "./$as_me.lineno" 10555 # Exit status is that of the last command. 10556 exit 10557} 10558 10559 10560if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10561 as_dirname=dirname 10562else 10563 as_dirname=false 10564fi 10565 10566ECHO_C= ECHO_N= ECHO_T= 10567case `echo -n x` in 10568-n*) 10569 case `echo 'x\c'` in 10570 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10571 *) ECHO_C='\c';; 10572 esac;; 10573*) 10574 ECHO_N='-n';; 10575esac 10576if expr a : '\(a\)' >/dev/null 2>&1 && 10577 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10578 as_expr=expr 10579else 10580 as_expr=false 10581fi 10582 10583rm -f conf$$ conf$$.exe conf$$.file 10584if test -d conf$$.dir; then 10585 rm -f conf$$.dir/conf$$.file 10586else 10587 rm -f conf$$.dir 10588 mkdir conf$$.dir 2>/dev/null 10589fi 10590if (echo >conf$$.file) 2>/dev/null; then 10591 if ln -s conf$$.file conf$$ 2>/dev/null; then 10592 as_ln_s='ln -s' 10593 # ... but there are two gotchas: 10594 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10595 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10596 # In both cases, we have to default to `cp -p'. 10597 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10598 as_ln_s='cp -p' 10599 elif ln conf$$.file conf$$ 2>/dev/null; then 10600 as_ln_s=ln 10601 else 10602 as_ln_s='cp -p' 10603 fi 10604else 10605 as_ln_s='cp -p' 10606fi 10607rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10608rmdir conf$$.dir 2>/dev/null 10609 10610if mkdir -p . 2>/dev/null; then 10611 as_mkdir_p=: 10612else 10613 test -d ./-p && rmdir ./-p 10614 as_mkdir_p=false 10615fi 10616 10617if test -x / >/dev/null 2>&1; then 10618 as_test_x='test -x' 10619else 10620 if ls -dL / >/dev/null 2>&1; then 10621 as_ls_L_option=L 10622 else 10623 as_ls_L_option= 10624 fi 10625 as_test_x=' 10626 eval sh -c '\'' 10627 if test -d "$1"; then 10628 test -d "$1/."; 10629 else 10630 case $1 in 10631 -*)set "./$1";; 10632 esac; 10633 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 10634 ???[sx]*):;;*)false;;esac;fi 10635 '\'' sh 10636 ' 10637fi 10638as_executable_p=$as_test_x 10639 10640# Sed expression to map a string onto a valid CPP name. 10641as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10642 10643# Sed expression to map a string onto a valid variable name. 10644as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10645 10646 10647exec 6>&1 10648 10649# Save the log message, to keep $[0] and so on meaningful, and to 10650# report actual input values of CONFIG_FILES etc. instead of their 10651# values after options handling. 10652ac_log=" 10653This file was extended by Spread_Util $as_me 4.2.0, which was 10654generated by GNU Autoconf 2.62. Invocation command line was 10655 10656 CONFIG_FILES = $CONFIG_FILES 10657 CONFIG_HEADERS = $CONFIG_HEADERS 10658 CONFIG_LINKS = $CONFIG_LINKS 10659 CONFIG_COMMANDS = $CONFIG_COMMANDS 10660 $ $0 $@ 10661 10662on `(hostname || uname -n) 2>/dev/null | sed 1q` 10663" 10664 10665_ACEOF 10666 10667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10668# Files that config.status was made for. 10669config_files="$ac_config_files" 10670config_headers="$ac_config_headers" 10671 10672_ACEOF 10673 10674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10675ac_cs_usage="\ 10676\`$as_me' instantiates files from templates according to the 10677current configuration. 10678 10679Usage: $0 [OPTIONS] [FILE]... 10680 10681 -h, --help print this help, then exit 10682 -V, --version print version number and configuration settings, then exit 10683 -q, --quiet do not print progress messages 10684 -d, --debug don't remove temporary files 10685 --recheck update $as_me by reconfiguring in the same conditions 10686 --file=FILE[:TEMPLATE] 10687 instantiate the configuration file FILE 10688 --header=FILE[:TEMPLATE] 10689 instantiate the configuration header FILE 10690 10691Configuration files: 10692$config_files 10693 10694Configuration headers: 10695$config_headers 10696 10697Report bugs to <bug-autoconf@gnu.org>." 10698 10699_ACEOF 10700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10701ac_cs_version="\\ 10702Spread_Util config.status 4.2.0 10703configured by $0, generated by GNU Autoconf 2.62, 10704 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 10705 10706Copyright (C) 2008 Free Software Foundation, Inc. 10707This config.status script is free software; the Free Software Foundation 10708gives unlimited permission to copy, distribute and modify it." 10709 10710ac_pwd='$ac_pwd' 10711srcdir='$srcdir' 10712INSTALL='$INSTALL' 10713test -n "\$AWK" || AWK=awk 10714_ACEOF 10715 10716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10717# The default lists apply if the user does not specify any file. 10718ac_need_defaults=: 10719while test $# != 0 10720do 10721 case $1 in 10722 --*=*) 10723 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10724 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10725 ac_shift=: 10726 ;; 10727 *) 10728 ac_option=$1 10729 ac_optarg=$2 10730 ac_shift=shift 10731 ;; 10732 esac 10733 10734 case $ac_option in 10735 # Handling of the options. 10736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10737 ac_cs_recheck=: ;; 10738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10739 $as_echo "$ac_cs_version"; exit ;; 10740 --debug | --debu | --deb | --de | --d | -d ) 10741 debug=: ;; 10742 --file | --fil | --fi | --f ) 10743 $ac_shift 10744 case $ac_optarg in 10745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10746 esac 10747 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 10748 ac_need_defaults=false;; 10749 --header | --heade | --head | --hea ) 10750 $ac_shift 10751 case $ac_optarg in 10752 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10753 esac 10754 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 10755 ac_need_defaults=false;; 10756 --he | --h) 10757 # Conflict between --help and --header 10758 { $as_echo "$as_me: error: ambiguous option: $1 10759Try \`$0 --help' for more information." >&2 10760 { (exit 1); exit 1; }; };; 10761 --help | --hel | -h ) 10762 $as_echo "$ac_cs_usage"; exit ;; 10763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10764 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10765 ac_cs_silent=: ;; 10766 10767 # This is an error. 10768 -*) { $as_echo "$as_me: error: unrecognized option: $1 10769Try \`$0 --help' for more information." >&2 10770 { (exit 1); exit 1; }; } ;; 10771 10772 *) ac_config_targets="$ac_config_targets $1" 10773 ac_need_defaults=false ;; 10774 10775 esac 10776 shift 10777done 10778 10779ac_configure_extra_args= 10780 10781if $ac_cs_silent; then 10782 exec 6>/dev/null 10783 ac_configure_extra_args="$ac_configure_extra_args --silent" 10784fi 10785 10786_ACEOF 10787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10788if \$ac_cs_recheck; then 10789 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10790 shift 10791 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10792 CONFIG_SHELL='$SHELL' 10793 export CONFIG_SHELL 10794 exec "\$@" 10795fi 10796 10797_ACEOF 10798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10799exec 5>>config.log 10800{ 10801 echo 10802 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10803## Running $as_me. ## 10804_ASBOX 10805 $as_echo "$ac_log" 10806} >&5 10807 10808_ACEOF 10809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10810_ACEOF 10811 10812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10813 10814# Handling of arguments. 10815for ac_config_target in $ac_config_targets 10816do 10817 case $ac_config_target in 10818 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 10819 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10820 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 10821 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 10822 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 10823 10824 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10825$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10826 { (exit 1); exit 1; }; };; 10827 esac 10828done 10829 10830 10831# If the user did not use the arguments to specify the items to instantiate, 10832# then the envvar interface is used. Set only those that are not. 10833# We use the long form for the default assignment because of an extremely 10834# bizarre bug on SunOS 4.1.3. 10835if $ac_need_defaults; then 10836 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10837 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 10838fi 10839 10840# Have a temporary directory for convenience. Make it in the build tree 10841# simply because there is no reason against having it here, and in addition, 10842# creating and moving files from /tmp can sometimes cause problems. 10843# Hook for its removal unless debugging. 10844# Note that there is a small window in which the directory will not be cleaned: 10845# after its creation but before its name has been assigned to `$tmp'. 10846$debug || 10847{ 10848 tmp= 10849 trap 'exit_status=$? 10850 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 10851' 0 10852 trap '{ (exit 1); exit 1; }' 1 2 13 15 10853} 10854# Create a (secure) tmp directory for tmp files. 10855 10856{ 10857 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10858 test -n "$tmp" && test -d "$tmp" 10859} || 10860{ 10861 tmp=./conf$$-$RANDOM 10862 (umask 077 && mkdir "$tmp") 10863} || 10864{ 10865 $as_echo "$as_me: cannot create a temporary directory in ." >&2 10866 { (exit 1); exit 1; } 10867} 10868 10869# Set up the scripts for CONFIG_FILES section. 10870# No need to generate them if there are no CONFIG_FILES. 10871# This happens for instance with `./config.status config.h'. 10872if test -n "$CONFIG_FILES"; then 10873 10874 10875ac_cr=' 10876' 10877ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10878if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10879 ac_cs_awk_cr='\\r' 10880else 10881 ac_cs_awk_cr=$ac_cr 10882fi 10883 10884echo 'BEGIN {' >"$tmp/subs1.awk" && 10885_ACEOF 10886 10887 10888{ 10889 echo "cat >conf$$subs.awk <<_ACEOF" && 10890 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10891 echo "_ACEOF" 10892} >conf$$subs.sh || 10893 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 10894$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 10895 { (exit 1); exit 1; }; } 10896ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 10897ac_delim='%!_!# ' 10898for ac_last_try in false false false false false :; do 10899 . ./conf$$subs.sh || 10900 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 10901$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 10902 { (exit 1); exit 1; }; } 10903 10904 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 10905 break 10906 elif $ac_last_try; then 10907 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 10908$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 10909 { (exit 1); exit 1; }; } 10910 else 10911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10912 fi 10913done 10914rm -f conf$$subs.sh 10915 10916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10917cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 10918_ACEOF 10919sed -n ' 10920h 10921s/^/S["/; s/!.*/"]=/ 10922p 10923g 10924s/^[^!]*!// 10925:repl 10926t repl 10927s/'"$ac_delim"'$// 10928t delim 10929:nl 10930h 10931s/\(.\{148\}\).*/\1/ 10932t more1 10933s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10934p 10935n 10936b repl 10937:more1 10938s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10939p 10940g 10941s/.\{148\}// 10942t nl 10943:delim 10944h 10945s/\(.\{148\}\).*/\1/ 10946t more2 10947s/["\\]/\\&/g; s/^/"/; s/$/"/ 10948p 10949b 10950:more2 10951s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10952p 10953g 10954s/.\{148\}// 10955t delim 10956' <conf$$subs.awk | sed ' 10957/^[^""]/{ 10958 N 10959 s/\n// 10960} 10961' >>$CONFIG_STATUS || ac_write_fail=1 10962rm -f conf$$subs.awk 10963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10964_ACAWK 10965cat >>"\$tmp/subs1.awk" <<_ACAWK && 10966 for (key in S) S_is_set[key] = 1 10967 FS = "" 10968 10969} 10970{ 10971 line = $ 0 10972 nfields = split(line, field, "@") 10973 substed = 0 10974 len = length(field[1]) 10975 for (i = 2; i < nfields; i++) { 10976 key = field[i] 10977 keylen = length(key) 10978 if (S_is_set[key]) { 10979 value = S[key] 10980 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10981 len += length(value) + length(field[++i]) 10982 substed = 1 10983 } else 10984 len += 1 + keylen 10985 } 10986 10987 print line 10988} 10989 10990_ACAWK 10991_ACEOF 10992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10993if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10994 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10995else 10996 cat 10997fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 10998 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 10999$as_echo "$as_me: error: could not setup config files machinery" >&2;} 11000 { (exit 1); exit 1; }; } 11001_ACEOF 11002 11003# VPATH may cause trouble with some makes, so we remove $(srcdir), 11004# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11005# trailing colons and then remove the whole line if VPATH becomes empty 11006# (actually we leave an empty line to preserve line numbers). 11007if test "x$srcdir" = x.; then 11008 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11009s/:*\$(srcdir):*/:/ 11010s/:*\${srcdir}:*/:/ 11011s/:*@srcdir@:*/:/ 11012s/^\([^=]*=[ ]*\):*/\1/ 11013s/:*$// 11014s/^[^=]*=[ ]*$// 11015}' 11016fi 11017 11018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11019fi # test -n "$CONFIG_FILES" 11020 11021# Set up the scripts for CONFIG_HEADERS section. 11022# No need to generate them if there are no CONFIG_HEADERS. 11023# This happens for instance with `./config.status Makefile'. 11024if test -n "$CONFIG_HEADERS"; then 11025cat >"$tmp/defines.awk" <<\_ACAWK || 11026BEGIN { 11027_ACEOF 11028 11029# Transform confdefs.h into an awk script `defines.awk', embedded as 11030# here-document in config.status, that substitutes the proper values into 11031# config.h.in to produce config.h. 11032 11033# Create a delimiter string that does not exist in confdefs.h, to ease 11034# handling of long lines. 11035ac_delim='%!_!# ' 11036for ac_last_try in false false :; do 11037 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 11038 if test -z "$ac_t"; then 11039 break 11040 elif $ac_last_try; then 11041 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 11042$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 11043 { (exit 1); exit 1; }; } 11044 else 11045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11046 fi 11047done 11048 11049# For the awk script, D is an array of macro values keyed by name, 11050# likewise P contains macro parameters if any. Preserve backslash 11051# newline sequences. 11052 11053ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11054sed -n ' 11055s/.\{148\}/&'"$ac_delim"'/g 11056t rset 11057:rset 11058s/^[ ]*#[ ]*define[ ][ ]*/ / 11059t def 11060d 11061:def 11062s/\\$// 11063t bsnl 11064s/["\\]/\\&/g 11065s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11066D["\1"]=" \3"/p 11067s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11068d 11069:bsnl 11070s/["\\]/\\&/g 11071s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11072D["\1"]=" \3\\\\\\n"\\/p 11073t cont 11074s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11075t cont 11076d 11077:cont 11078n 11079s/.\{148\}/&'"$ac_delim"'/g 11080t clear 11081:clear 11082s/\\$// 11083t bsnlc 11084s/["\\]/\\&/g; s/^/"/; s/$/"/p 11085d 11086:bsnlc 11087s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11088b cont 11089' <confdefs.h | sed ' 11090s/'"$ac_delim"'/"\\\ 11091"/g' >>$CONFIG_STATUS || ac_write_fail=1 11092 11093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11094 for (key in D) D_is_set[key] = 1 11095 FS = "" 11096} 11097/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11098 line = \$ 0 11099 split(line, arg, " ") 11100 if (arg[1] == "#") { 11101 defundef = arg[2] 11102 mac1 = arg[3] 11103 } else { 11104 defundef = substr(arg[1], 2) 11105 mac1 = arg[2] 11106 } 11107 split(mac1, mac2, "(") #) 11108 macro = mac2[1] 11109 if (D_is_set[macro]) { 11110 # Preserve the white space surrounding the "#". 11111 prefix = substr(line, 1, index(line, defundef) - 1) 11112 print prefix "define", macro P[macro] D[macro] 11113 next 11114 } else { 11115 # Replace #undef with comments. This is necessary, for example, 11116 # in the case of _POSIX_SOURCE, which is predefined and required 11117 # on some systems where configure will not decide to define it. 11118 if (defundef == "undef") { 11119 print "/*", line, "*/" 11120 next 11121 } 11122 } 11123} 11124{ print } 11125_ACAWK 11126_ACEOF 11127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11128 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 11129$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 11130 { (exit 1); exit 1; }; } 11131fi # test -n "$CONFIG_HEADERS" 11132 11133 11134eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 11135shift 11136for ac_tag 11137do 11138 case $ac_tag in 11139 :[FHLC]) ac_mode=$ac_tag; continue;; 11140 esac 11141 case $ac_mode$ac_tag in 11142 :[FHL]*:*);; 11143 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11144$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11145 { (exit 1); exit 1; }; };; 11146 :[FH]-) ac_tag=-:-;; 11147 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11148 esac 11149 ac_save_IFS=$IFS 11150 IFS=: 11151 set x $ac_tag 11152 IFS=$ac_save_IFS 11153 shift 11154 ac_file=$1 11155 shift 11156 11157 case $ac_mode in 11158 :L) ac_source=$1;; 11159 :[FH]) 11160 ac_file_inputs= 11161 for ac_f 11162 do 11163 case $ac_f in 11164 -) ac_f="$tmp/stdin";; 11165 *) # Look for the file first in the build tree, then in the source tree 11166 # (if the path is not absolute). The absolute path cannot be DOS-style, 11167 # because $ac_f cannot contain `:'. 11168 test -f "$ac_f" || 11169 case $ac_f in 11170 [\\/$]*) false;; 11171 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11172 esac || 11173 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11174$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11175 { (exit 1); exit 1; }; };; 11176 esac 11177 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11178 ac_file_inputs="$ac_file_inputs '$ac_f'" 11179 done 11180 11181 # Let's still pretend it is `configure' which instantiates (i.e., don't 11182 # use $as_me), people would be surprised to read: 11183 # /* config.h. Generated by config.status. */ 11184 configure_input='Generated from '` 11185 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11186 `' by configure.' 11187 if test x"$ac_file" != x-; then 11188 configure_input="$ac_file. $configure_input" 11189 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 11190$as_echo "$as_me: creating $ac_file" >&6;} 11191 fi 11192 # Neutralize special characters interpreted by sed in replacement strings. 11193 case $configure_input in #( 11194 *\&* | *\|* | *\\* ) 11195 ac_sed_conf_input=`$as_echo "$configure_input" | 11196 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11197 *) ac_sed_conf_input=$configure_input;; 11198 esac 11199 11200 case $ac_tag in 11201 *:-:* | *:-) cat >"$tmp/stdin" \ 11202 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 11203$as_echo "$as_me: error: could not create $ac_file" >&2;} 11204 { (exit 1); exit 1; }; } ;; 11205 esac 11206 ;; 11207 esac 11208 11209 ac_dir=`$as_dirname -- "$ac_file" || 11210$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11211 X"$ac_file" : 'X\(//\)[^/]' \| \ 11212 X"$ac_file" : 'X\(//\)$' \| \ 11213 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11214$as_echo X"$ac_file" | 11215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11216 s//\1/ 11217 q 11218 } 11219 /^X\(\/\/\)[^/].*/{ 11220 s//\1/ 11221 q 11222 } 11223 /^X\(\/\/\)$/{ 11224 s//\1/ 11225 q 11226 } 11227 /^X\(\/\).*/{ 11228 s//\1/ 11229 q 11230 } 11231 s/.*/./; q'` 11232 { as_dir="$ac_dir" 11233 case $as_dir in #( 11234 -*) as_dir=./$as_dir;; 11235 esac 11236 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11237 as_dirs= 11238 while :; do 11239 case $as_dir in #( 11240 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11241 *) as_qdir=$as_dir;; 11242 esac 11243 as_dirs="'$as_qdir' $as_dirs" 11244 as_dir=`$as_dirname -- "$as_dir" || 11245$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11246 X"$as_dir" : 'X\(//\)[^/]' \| \ 11247 X"$as_dir" : 'X\(//\)$' \| \ 11248 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11249$as_echo X"$as_dir" | 11250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11251 s//\1/ 11252 q 11253 } 11254 /^X\(\/\/\)[^/].*/{ 11255 s//\1/ 11256 q 11257 } 11258 /^X\(\/\/\)$/{ 11259 s//\1/ 11260 q 11261 } 11262 /^X\(\/\).*/{ 11263 s//\1/ 11264 q 11265 } 11266 s/.*/./; q'` 11267 test -d "$as_dir" && break 11268 done 11269 test -z "$as_dirs" || eval "mkdir $as_dirs" 11270 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11271$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 11272 { (exit 1); exit 1; }; }; } 11273 ac_builddir=. 11274 11275case "$ac_dir" in 11276.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11277*) 11278 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11279 # A ".." for each directory in $ac_dir_suffix. 11280 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11281 case $ac_top_builddir_sub in 11282 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11283 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11284 esac ;; 11285esac 11286ac_abs_top_builddir=$ac_pwd 11287ac_abs_builddir=$ac_pwd$ac_dir_suffix 11288# for backward compatibility: 11289ac_top_builddir=$ac_top_build_prefix 11290 11291case $srcdir in 11292 .) # We are building in place. 11293 ac_srcdir=. 11294 ac_top_srcdir=$ac_top_builddir_sub 11295 ac_abs_top_srcdir=$ac_pwd ;; 11296 [\\/]* | ?:[\\/]* ) # Absolute name. 11297 ac_srcdir=$srcdir$ac_dir_suffix; 11298 ac_top_srcdir=$srcdir 11299 ac_abs_top_srcdir=$srcdir ;; 11300 *) # Relative name. 11301 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11302 ac_top_srcdir=$ac_top_build_prefix$srcdir 11303 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11304esac 11305ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11306 11307 11308 case $ac_mode in 11309 :F) 11310 # 11311 # CONFIG_FILE 11312 # 11313 11314 case $INSTALL in 11315 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11316 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11317 esac 11318_ACEOF 11319 11320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11321# If the template does not know about datarootdir, expand it. 11322# FIXME: This hack should be removed a few years after 2.60. 11323ac_datarootdir_hack=; ac_datarootdir_seen= 11324 11325ac_sed_dataroot=' 11326/datarootdir/ { 11327 p 11328 q 11329} 11330/@datadir@/p 11331/@docdir@/p 11332/@infodir@/p 11333/@localedir@/p 11334/@mandir@/p 11335' 11336case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11337*datarootdir*) ac_datarootdir_seen=yes;; 11338*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11339 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11340$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11341_ACEOF 11342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11343 ac_datarootdir_hack=' 11344 s&@datadir@&$datadir&g 11345 s&@docdir@&$docdir&g 11346 s&@infodir@&$infodir&g 11347 s&@localedir@&$localedir&g 11348 s&@mandir@&$mandir&g 11349 s&\\\${datarootdir}&$datarootdir&g' ;; 11350esac 11351_ACEOF 11352 11353# Neutralize VPATH when `$srcdir' = `.'. 11354# Shell code in configure.ac might set extrasub. 11355# FIXME: do we really want to maintain this feature? 11356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11357ac_sed_extra="$ac_vpsub 11358$extrasub 11359_ACEOF 11360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11361:t 11362/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11363s|@configure_input@|$ac_sed_conf_input|;t t 11364s&@top_builddir@&$ac_top_builddir_sub&;t t 11365s&@top_build_prefix@&$ac_top_build_prefix&;t t 11366s&@srcdir@&$ac_srcdir&;t t 11367s&@abs_srcdir@&$ac_abs_srcdir&;t t 11368s&@top_srcdir@&$ac_top_srcdir&;t t 11369s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11370s&@builddir@&$ac_builddir&;t t 11371s&@abs_builddir@&$ac_abs_builddir&;t t 11372s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11373s&@INSTALL@&$ac_INSTALL&;t t 11374$ac_datarootdir_hack 11375" 11376eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 11377 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 11378$as_echo "$as_me: error: could not create $ac_file" >&2;} 11379 { (exit 1); exit 1; }; } 11380 11381test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11382 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11383 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11384 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11385which seems to be undefined. Please make sure it is defined." >&5 11386$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11387which seems to be undefined. Please make sure it is defined." >&2;} 11388 11389 rm -f "$tmp/stdin" 11390 case $ac_file in 11391 -) cat "$tmp/out" && rm -f "$tmp/out";; 11392 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 11393 esac \ 11394 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 11395$as_echo "$as_me: error: could not create $ac_file" >&2;} 11396 { (exit 1); exit 1; }; } 11397 ;; 11398 :H) 11399 # 11400 # CONFIG_HEADER 11401 # 11402 if test x"$ac_file" != x-; then 11403 { 11404 $as_echo "/* $configure_input */" \ 11405 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 11406 } >"$tmp/config.h" \ 11407 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 11408$as_echo "$as_me: error: could not create $ac_file" >&2;} 11409 { (exit 1); exit 1; }; } 11410 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 11411 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 11412$as_echo "$as_me: $ac_file is unchanged" >&6;} 11413 else 11414 rm -f "$ac_file" 11415 mv "$tmp/config.h" "$ac_file" \ 11416 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 11417$as_echo "$as_me: error: could not create $ac_file" >&2;} 11418 { (exit 1); exit 1; }; } 11419 fi 11420 else 11421 $as_echo "/* $configure_input */" \ 11422 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 11423 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 11424$as_echo "$as_me: error: could not create -" >&2;} 11425 { (exit 1); exit 1; }; } 11426 fi 11427 ;; 11428 11429 11430 esac 11431 11432done # for ac_tag 11433 11434 11435{ (exit 0); exit 0; } 11436_ACEOF 11437chmod +x $CONFIG_STATUS 11438ac_clean_files=$ac_clean_files_save 11439 11440test $ac_write_fail = 0 || 11441 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 11442$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 11443 { (exit 1); exit 1; }; } 11444 11445 11446# configure is writing to config.log, and then calls config.status. 11447# config.status does its own redirection, appending to config.log. 11448# Unfortunately, on DOS this fails, as config.log is still kept open 11449# by configure, so config.status won't be able to write to it; its 11450# output is simply discarded. So we exec the FD to /dev/null, 11451# effectively closing config.log, so it can be properly (re)opened and 11452# appended to by config.status. When coming back to configure, we 11453# need to make the FD available again. 11454if test "$no_create" != yes; then 11455 ac_cs_success=: 11456 ac_config_status_args= 11457 test "$silent" = yes && 11458 ac_config_status_args="$ac_config_status_args --quiet" 11459 exec 5>/dev/null 11460 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11461 exec 5>>config.log 11462 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11463 # would make configure fail if this is the last instruction. 11464 $ac_cs_success || { (exit 1); exit 1; } 11465fi 11466if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11467 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 11468$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 11469fi 11470 11471 11472# Print summary of options 11473 11474echo "" 11475echo "Spread Util has been configured with the following options:" 11476echo "" 11477echo " Host: ${host}" 11478echo " Compiler: ${CC}" 11479echo " Compiler flags: ${CFLAGS}" 11480echo "Preprocessor flags: ${CPPFLAGS}" 11481echo " Linker flags: ${LDFLAGS}" 11482echo " Libraries: ${LIBS}" 11483 11484echo "" 11485