1 #! /bin/sh 2 # From configure.ac Revision . 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.59 for backuppcd 0.1.1. 5 # 6 # Copyright (C) 2003 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 Bourne compatible 14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22 fi 23 DUALCASE=1; export DUALCASE # for MKS sh 24 25 # Support unset when possible. 26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27 as_unset=unset 28 else 29 as_unset=false 30 fi 31 32 33 # Work around bugs in pre-3.0 UWIN ksh. 34 $as_unset ENV MAIL MAILPATH 35 PS1='$ ' 36 PS2='> ' 37 PS4='+ ' 38 39 # NLS nuisances. 40 for as_var in \ 41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 43 LC_TELEPHONE LC_TIME 44 do 45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 46 eval $as_var=C; export $as_var 47 else 48 $as_unset $as_var 49 fi 50 done 51 52 # Required to use basename. 53 if expr a : '\(a\)' >/dev/null 2>&1; then 54 as_expr=expr 55 else 56 as_expr=false 57 fi 58 59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 60 as_basename=basename 61 else 62 as_basename=false 63 fi 64 65 66 # Name of the executable. 67 as_me=`$as_basename "$0" || 68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69 X"$0" : 'X\(//\)$' \| \ 70 X"$0" : 'X\(/\)$' \| \ 71 . : '\(.\)' 2>/dev/null || 72 echo X/"$0" | 73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 74 /^X\/\(\/\/\)$/{ s//\1/; q; } 75 /^X\/\(\/\).*/{ s//\1/; q; } 76 s/.*/./; q'` 77 78 79 # PATH needs CR, and LINENO needs CR and PATH. 80 # Avoid depending upon Character Ranges. 81 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 84 as_cr_digits='0123456789' 85 as_cr_alnum=$as_cr_Letters$as_cr_digits 86 87 # The user is always right. 88 if test "${PATH_SEPARATOR+set}" != set; then 89 echo "#! /bin/sh" >conf$$.sh 90 echo "exit 0" >>conf$$.sh 91 chmod +x conf$$.sh 92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 93 PATH_SEPARATOR=';' 94 else 95 PATH_SEPARATOR=: 96 fi 97 rm -f conf$$.sh 98 fi 99 100 101 as_lineno_1=$LINENO 102 as_lineno_2=$LINENO 103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 104 test "x$as_lineno_1" != "x$as_lineno_2" && 105 test "x$as_lineno_3" = "x$as_lineno_2" || { 106 # Find who we are. Look in the path if we contain no path at all 107 # relative or not. 108 case $0 in 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111 for as_dir in $PATH 112 do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116 done 117 118 ;; 119 esac 120 # We did not find ourselves, most probably we were run as `sh COMMAND' 121 # in which case we are not to be found in the path. 122 if test "x$as_myself" = x; then 123 as_myself=$0 124 fi 125 if test ! -f "$as_myself"; then 126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 127 { (exit 1); exit 1; }; } 128 fi 129 case $CONFIG_SHELL in 130 '') 131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 133 do 134 IFS=$as_save_IFS 135 test -z "$as_dir" && as_dir=. 136 for as_base in sh bash ksh sh5; do 137 case $as_dir in 138 /*) 139 if ("$as_dir/$as_base" -c ' 140 as_lineno_1=$LINENO 141 as_lineno_2=$LINENO 142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 143 test "x$as_lineno_1" != "x$as_lineno_2" && 144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 147 CONFIG_SHELL=$as_dir/$as_base 148 export CONFIG_SHELL 149 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 150 fi;; 151 esac 152 done 153 done 154 ;; 155 esac 156 157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 158 # uniformly replaced by the line number. The first 'sed' inserts a 159 # line-number line before each line; the second 'sed' does the real 160 # work. The second script uses 'N' to pair each line-number line 161 # with the numbered line, and appends trailing '-' during 162 # substitution so that $LINENO is not a special case at line end. 163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 165 sed '=' <$as_myself | 166 sed ' 167 N 168 s,$,-, 169 : loop 170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 171 t loop 172 s,-$,, 173 s,^['$as_cr_digits']*\n,, 174 ' >$as_me.lineno && 175 chmod +x $as_me.lineno || 176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 177 { (exit 1); exit 1; }; } 178 179 # Don't try to exec as it changes $[0], causing all sort of problems 180 # (the dirname of $[0] is not the place where we might find the 181 # original and so on. Autoconf is especially sensible to this). 182 . ./$as_me.lineno 183 # Exit status is that of the last command. 184 exit 185 } 186 187 188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 189 *c*,-n*) ECHO_N= ECHO_C=' 190 ' ECHO_T=' ' ;; 191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 193 esac 194 195 if expr a : '\(a\)' >/dev/null 2>&1; then 196 as_expr=expr 197 else 198 as_expr=false 199 fi 200 201 rm -f conf$$ conf$$.exe conf$$.file 202 echo >conf$$.file 203 if ln -s conf$$.file conf$$ 2>/dev/null; then 204 # We could just check for DJGPP; but this test a) works b) is more generic 205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 206 if test -f conf$$.exe; then 207 # Don't use ln at all; we don't have any links 208 as_ln_s='cp -p' 209 else 210 as_ln_s='ln -s' 211 fi 212 elif ln conf$$.file conf$$ 2>/dev/null; then 213 as_ln_s=ln 214 else 215 as_ln_s='cp -p' 216 fi 217 rm -f conf$$ conf$$.exe conf$$.file 218 219 if mkdir -p . 2>/dev/null; then 220 as_mkdir_p=: 221 else 222 test -d ./-p && rmdir ./-p 223 as_mkdir_p=false 224 fi 225 226 as_executable_p="test -f" 227 228 # Sed expression to map a string onto a valid CPP name. 229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 230 231 # Sed expression to map a string onto a valid variable name. 232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 233 234 235 # IFS 236 # We need space, tab and new line, in precisely that order. 237 as_nl=' 238 ' 239 IFS=" $as_nl" 240 241 # CDPATH. 242 $as_unset CDPATH 243 244 245 # Name of the host. 246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 247 # so uname gets run too. 248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 249 250 exec 6>&1 251 252 # 253 # Initializations. 254 # 255 ac_default_prefix=/usr/local 256 ac_config_libobj_dir=. 257 cross_compiling=no 258 subdirs= 259 MFLAGS= 260 MAKEFLAGS= 261 SHELL=${CONFIG_SHELL-/bin/sh} 262 263 # Maximum number of lines to put in a shell here document. 264 # This variable seems obsolete. It should probably be removed, and 265 # only ac_max_sed_lines should be used. 266 : ${ac_max_here_lines=38} 267 268 # Identity of this package. 269 PACKAGE_NAME='backuppcd' 270 PACKAGE_TARNAME='backuppcd' 271 PACKAGE_VERSION='0.1.1' 272 PACKAGE_STRING='backuppcd 0.1.1' 273 PACKAGE_BUGREPORT='' 274 275 # Factoring default headers for most tests. 276 ac_includes_default="\ 277 #include <stdio.h> 278 #if HAVE_SYS_TYPES_H 279 # include <sys/types.h> 280 #endif 281 #if HAVE_SYS_STAT_H 282 # include <sys/stat.h> 283 #endif 284 #if STDC_HEADERS 285 # include <stdlib.h> 286 # include <stddef.h> 287 #else 288 # if HAVE_STDLIB_H 289 # include <stdlib.h> 290 # endif 291 #endif 292 #if HAVE_STRING_H 293 # if !STDC_HEADERS && HAVE_MEMORY_H 294 # include <memory.h> 295 # endif 296 # include <string.h> 297 #endif 298 #if HAVE_STRINGS_H 299 # include <strings.h> 300 #endif 301 #if HAVE_INTTYPES_H 302 # include <inttypes.h> 303 #else 304 # if HAVE_STDINT_H 305 # include <stdint.h> 306 # endif 307 #endif 308 #if HAVE_UNISTD_H 309 # include <unistd.h> 310 #endif" 311 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CFLAGS CPPFLAGS AREXT CC LDFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB CPP EGREP AR ac_ct_AR LIBOBJS LTLIBOBJS' 313 ac_subst_files='' 314 315 # Initialize some variables set by options. 316 ac_init_help= 317 ac_init_version=false 318 # The variables have the same names as the options, with 319 # dashes changed to underlines. 320 cache_file=/dev/null 321 exec_prefix=NONE 322 no_create= 323 no_recursion= 324 prefix=NONE 325 program_prefix=NONE 326 program_suffix=NONE 327 program_transform_name=s,x,x, 328 silent= 329 site= 330 srcdir= 331 verbose= 332 x_includes=NONE 333 x_libraries=NONE 334 335 # Installation directory options. 336 # These are left unexpanded so users can "make install exec_prefix=/foo" 337 # and all the variables that are supposed to be based on exec_prefix 338 # by default will actually change. 339 # Use braces instead of parens because sh, perl, etc. also accept them. 340 bindir='${exec_prefix}/bin' 341 sbindir='${exec_prefix}/sbin' 342 libexecdir='${exec_prefix}/libexec' 343 datadir='${prefix}/share' 344 sysconfdir='${prefix}/etc' 345 sharedstatedir='${prefix}/com' 346 localstatedir='${prefix}/var' 347 libdir='${exec_prefix}/lib' 348 includedir='${prefix}/include' 349 oldincludedir='/usr/include' 350 infodir='${prefix}/info' 351 mandir='${prefix}/man' 352 353 ac_prev= 354 for ac_option 355 do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627 Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650 done 651 652 if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656 fi 657 658 # Be sure to have absolute paths. 659 for ac_var in exec_prefix prefix 660 do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667 done 668 669 # Be sure to have absolute paths. 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672 do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679 done 680 681 # There might be people who depend on the old broken behavior: `$host' 682 # used to hold the argument of --host etc. 683 # FIXME: To remove some day. 684 build=$build_alias 685 host=$host_alias 686 target=$target_alias 687 688 # FIXME: To remove some day. 689 if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697 fi 698 699 ac_tool_prefix= 700 test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702 test "$silent" = yes && exec 6>/dev/null 703 704 705 # Find the source files, if location was not specified. 706 if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715 echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725 else 726 ac_srcdir_defaulted=no 727 fi 728 if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736 fi 737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741 ac_env_build_alias_set=${build_alias+set} 742 ac_env_build_alias_value=$build_alias 743 ac_cv_env_build_alias_set=${build_alias+set} 744 ac_cv_env_build_alias_value=$build_alias 745 ac_env_host_alias_set=${host_alias+set} 746 ac_env_host_alias_value=$host_alias 747 ac_cv_env_host_alias_set=${host_alias+set} 748 ac_cv_env_host_alias_value=$host_alias 749 ac_env_target_alias_set=${target_alias+set} 750 ac_env_target_alias_value=$target_alias 751 ac_cv_env_target_alias_set=${target_alias+set} 752 ac_cv_env_target_alias_value=$target_alias 753 ac_env_CC_set=${CC+set} 754 ac_env_CC_value=$CC 755 ac_cv_env_CC_set=${CC+set} 756 ac_cv_env_CC_value=$CC 757 ac_env_CFLAGS_set=${CFLAGS+set} 758 ac_env_CFLAGS_value=$CFLAGS 759 ac_cv_env_CFLAGS_set=${CFLAGS+set} 760 ac_cv_env_CFLAGS_value=$CFLAGS 761 ac_env_LDFLAGS_set=${LDFLAGS+set} 762 ac_env_LDFLAGS_value=$LDFLAGS 763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764 ac_cv_env_LDFLAGS_value=$LDFLAGS 765 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766 ac_env_CPPFLAGS_value=$CPPFLAGS 767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769 ac_env_CPP_set=${CPP+set} 770 ac_env_CPP_value=$CPP 771 ac_cv_env_CPP_set=${CPP+set} 772 ac_cv_env_CPP_value=$CPP 773 774 # 775 # Report the --help message. 776 # 777 if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781 \`configure' configures backuppcd 0.1.1 to adapt to many kinds of systems. 782 783 Usage: $0 [OPTION]... [VAR=VALUE]... 784 785 To assign environment variables (e.g., CC, CFLAGS...), specify them as 786 VAR=VALUE. See below for descriptions of some of the useful variables. 787 788 Defaults for the options are specified in brackets. 789 790 Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801 _ACEOF 802 803 cat <<_ACEOF 804 Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810 By default, \`make install' will install all the files in 811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813 for instance \`--prefix=\$HOME'. 814 815 For better control, use the options below. 816 817 Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830 _ACEOF 831 832 cat <<\_ACEOF 833 834 System types: 835 --build=BUILD configure for building on BUILD [guessed] 836 --host=HOST cross-compile to build programs to run on HOST [BUILD] 837 _ACEOF 838 fi 839 840 if test -n "$ac_init_help"; then 841 case $ac_init_help in 842 short | recursive ) echo "Configuration of backuppcd 0.1.1:";; 843 esac 844 cat <<\_ACEOF 845 846 Optional Features: 847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 849 --disable-largefile omit support for large files 850 --enable-debug Enable debugging support. 851 --enable-static Enable (mostly) static build. 852 853 Optional Packages: 854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 856 --with-libconfig Process configuration files using libconfig 857 --with-opennet Support opennet (required for automatic updates) 858 --with-openssl Allow encrypted connections using SSL 859 --with-nt4 Enable support for Windows NT 4 (only applies for 860 Windows) 861 --with-masterpw Enable support for a hard-coded master password 862 863 Some influential environment variables: 864 CC C compiler command 865 CFLAGS C compiler flags 866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 867 nonstandard directory <lib dir> 868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 869 headers in a nonstandard directory <include dir> 870 CPP C preprocessor 871 872 Use these variables to override the choices made by `configure' or to help 873 it to find libraries and programs with nonstandard names/locations. 874 875 _ACEOF 876 fi 877 878 if test "$ac_init_help" = "recursive"; then 879 # If there are subdirs, report their specific --help. 880 ac_popdir=`pwd` 881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 882 test -d $ac_dir || continue 883 ac_builddir=. 884 885 if test "$ac_dir" != .; then 886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 887 # A "../" for each directory in $ac_dir_suffix. 888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 889 else 890 ac_dir_suffix= ac_top_builddir= 891 fi 892 893 case $srcdir in 894 .) # No --srcdir option. We are building in place. 895 ac_srcdir=. 896 if test -z "$ac_top_builddir"; then 897 ac_top_srcdir=. 898 else 899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 900 fi ;; 901 [\\/]* | ?:[\\/]* ) # Absolute path. 902 ac_srcdir=$srcdir$ac_dir_suffix; 903 ac_top_srcdir=$srcdir ;; 904 *) # Relative path. 905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 906 ac_top_srcdir=$ac_top_builddir$srcdir ;; 907 esac 908 909 # Do not use `cd foo && pwd` to compute absolute paths, because 910 # the directories may not exist. 911 case `pwd` in 912 .) ac_abs_builddir="$ac_dir";; 913 *) 914 case "$ac_dir" in 915 .) ac_abs_builddir=`pwd`;; 916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 917 *) ac_abs_builddir=`pwd`/"$ac_dir";; 918 esac;; 919 esac 920 case $ac_abs_builddir in 921 .) ac_abs_top_builddir=${ac_top_builddir}.;; 922 *) 923 case ${ac_top_builddir}. in 924 .) ac_abs_top_builddir=$ac_abs_builddir;; 925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 927 esac;; 928 esac 929 case $ac_abs_builddir in 930 .) ac_abs_srcdir=$ac_srcdir;; 931 *) 932 case $ac_srcdir in 933 .) ac_abs_srcdir=$ac_abs_builddir;; 934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 936 esac;; 937 esac 938 case $ac_abs_builddir in 939 .) ac_abs_top_srcdir=$ac_top_srcdir;; 940 *) 941 case $ac_top_srcdir in 942 .) ac_abs_top_srcdir=$ac_abs_builddir;; 943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 945 esac;; 946 esac 947 948 cd $ac_dir 949 # Check for guested configure; otherwise get Cygnus style configure. 950 if test -f $ac_srcdir/configure.gnu; then 951 echo 952 $SHELL $ac_srcdir/configure.gnu --help=recursive 953 elif test -f $ac_srcdir/configure; then 954 echo 955 $SHELL $ac_srcdir/configure --help=recursive 956 elif test -f $ac_srcdir/configure.ac || 957 test -f $ac_srcdir/configure.in; then 958 echo 959 $ac_configure --help 960 else 961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 962 fi 963 cd $ac_popdir 964 done 965 fi 966 967 test -n "$ac_init_help" && exit 0 968 if $ac_init_version; then 969 cat <<\_ACEOF 970 backuppcd configure 0.1.1 971 generated by GNU Autoconf 2.59 972 973 Copyright (C) 2003 Free Software Foundation, Inc. 974 This configure script is free software; the Free Software Foundation 975 gives unlimited permission to copy, distribute and modify it. 976 _ACEOF 977 exit 0 978 fi 979 exec 5>config.log 980 cat >&5 <<_ACEOF 981 This file contains any messages produced by compilers while 982 running configure, to aid debugging if configure makes a mistake. 983 984 It was created by backuppcd $as_me 0.1.1, which was 985 generated by GNU Autoconf 2.59. Invocation command line was 986 987 $ $0 $@ 988 989 _ACEOF 990 { 991 cat <<_ASUNAME 992 ## --------- ## 993 ## Platform. ## 994 ## --------- ## 995 996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 997 uname -m = `(uname -m) 2>/dev/null || echo unknown` 998 uname -r = `(uname -r) 2>/dev/null || echo unknown` 999 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1000 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1001 1002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1003 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1004 1005 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1006 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1008 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1009 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1010 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1011 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1012 1013 _ASUNAME 1014 1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1016 for as_dir in $PATH 1017 do 1018 IFS=$as_save_IFS 1019 test -z "$as_dir" && as_dir=. 1020 echo "PATH: $as_dir" 1021 done 1022 1023 } >&5 1024 1025 cat >&5 <<_ACEOF 1026 1027 1028 ## ----------- ## 1029 ## Core tests. ## 1030 ## ----------- ## 1031 1032 _ACEOF 1033 1034 1035 # Keep a trace of the command line. 1036 # Strip out --no-create and --no-recursion so they do not pile up. 1037 # Strip out --silent because we don't want to record it for future runs. 1038 # Also quote any args containing shell meta-characters. 1039 # Make two passes to allow for proper duplicate-argument suppression. 1040 ac_configure_args= 1041 ac_configure_args0= 1042 ac_configure_args1= 1043 ac_sep= 1044 ac_must_keep_next=false 1045 for ac_pass in 1 2 1046 do 1047 for ac_arg 1048 do 1049 case $ac_arg in 1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1052 | -silent | --silent | --silen | --sile | --sil) 1053 continue ;; 1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1055 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1056 esac 1057 case $ac_pass in 1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1059 2) 1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1061 if test $ac_must_keep_next = true; then 1062 ac_must_keep_next=false # Got value, back to normal. 1063 else 1064 case $ac_arg in 1065 *=* | --config-cache | -C | -disable-* | --disable-* \ 1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1068 | -with-* | --with-* | -without-* | --without-* | --x) 1069 case "$ac_configure_args0 " in 1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1071 esac 1072 ;; 1073 -* ) ac_must_keep_next=true ;; 1074 esac 1075 fi 1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1077 # Get rid of the leading space. 1078 ac_sep=" " 1079 ;; 1080 esac 1081 done 1082 done 1083 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1084 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1085 1086 # When interrupted or exit'd, cleanup temporary files, and complete 1087 # config.log. We remove comments because anyway the quotes in there 1088 # would cause problems or look ugly. 1089 # WARNING: Be sure not to use single quotes in there, as some shells, 1090 # such as our DU 5.0 friend, will then `close' the trap. 1091 trap 'exit_status=$? 1092 # Save into config.log some information that might help in debugging. 1093 { 1094 echo 1095 1096 cat <<\_ASBOX 1097 ## ---------------- ## 1098 ## Cache variables. ## 1099 ## ---------------- ## 1100 _ASBOX 1101 echo 1102 # The following way of writing the cache mishandles newlines in values, 1103 { 1104 (set) 2>&1 | 1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1106 *ac_space=\ *) 1107 sed -n \ 1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1110 ;; 1111 *) 1112 sed -n \ 1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1114 ;; 1115 esac; 1116 } 1117 echo 1118 1119 cat <<\_ASBOX 1120 ## ----------------- ## 1121 ## Output variables. ## 1122 ## ----------------- ## 1123 _ASBOX 1124 echo 1125 for ac_var in $ac_subst_vars 1126 do 1127 eval ac_val=$`echo $ac_var` 1128 echo "$ac_var='"'"'$ac_val'"'"'" 1129 done | sort 1130 echo 1131 1132 if test -n "$ac_subst_files"; then 1133 cat <<\_ASBOX 1134 ## ------------- ## 1135 ## Output files. ## 1136 ## ------------- ## 1137 _ASBOX 1138 echo 1139 for ac_var in $ac_subst_files 1140 do 1141 eval ac_val=$`echo $ac_var` 1142 echo "$ac_var='"'"'$ac_val'"'"'" 1143 done | sort 1144 echo 1145 fi 1146 1147 if test -s confdefs.h; then 1148 cat <<\_ASBOX 1149 ## ----------- ## 1150 ## confdefs.h. ## 1151 ## ----------- ## 1152 _ASBOX 1153 echo 1154 sed "/^$/d" confdefs.h | sort 1155 echo 1156 fi 1157 test "$ac_signal" != 0 && 1158 echo "$as_me: caught signal $ac_signal" 1159 echo "$as_me: exit $exit_status" 1160 } >&5 1161 rm -f core *.core && 1162 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1163 exit $exit_status 1164 ' 0 1165 for ac_signal in 1 2 13 15; do 1166 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1167 done 1168 ac_signal=0 1169 1170 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1171 rm -rf conftest* confdefs.h 1172 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1173 echo >confdefs.h 1174 1175 # Predefined preprocessor variables. 1176 1177 cat >>confdefs.h <<_ACEOF 1178 #define PACKAGE_NAME "$PACKAGE_NAME" 1179 _ACEOF 1180 1181 1182 cat >>confdefs.h <<_ACEOF 1183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1184 _ACEOF 1185 1186 1187 cat >>confdefs.h <<_ACEOF 1188 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1189 _ACEOF 1190 1191 1192 cat >>confdefs.h <<_ACEOF 1193 #define PACKAGE_STRING "$PACKAGE_STRING" 1194 _ACEOF 1195 1196 1197 cat >>confdefs.h <<_ACEOF 1198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1199 _ACEOF 1200 1201 1202 # Let the site file select an alternate cache file if it wants to. 1203 # Prefer explicitly selected file to automatically selected ones. 1204 if test -z "$CONFIG_SITE"; then 1205 if test "x$prefix" != xNONE; then 1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1207 else 1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1209 fi 1210 fi 1211 for ac_site_file in $CONFIG_SITE; do 1212 if test -r "$ac_site_file"; then 1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1214 echo "$as_me: loading site script $ac_site_file" >&6;} 1215 sed 's/^/| /' "$ac_site_file" >&5 1216 . "$ac_site_file" 1217 fi 1218 done 1219 1220 if test -r "$cache_file"; then 1221 # Some versions of bash will fail to source /dev/null (special 1222 # files actually), so we avoid doing that. 1223 if test -f "$cache_file"; then 1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1225 echo "$as_me: loading cache $cache_file" >&6;} 1226 case $cache_file in 1227 [\\/]* | ?:[\\/]* ) . $cache_file;; 1228 *) . ./$cache_file;; 1229 esac 1230 fi 1231 else 1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1233 echo "$as_me: creating cache $cache_file" >&6;} 1234 >$cache_file 1235 fi 1236 1237 # Check that the precious variables saved in the cache have kept the same 1238 # value. 1239 ac_cache_corrupted=false 1240 for ac_var in `(set) 2>&1 | 1241 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1243 eval ac_new_set=\$ac_env_${ac_var}_set 1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1245 eval ac_new_val="\$ac_env_${ac_var}_value" 1246 case $ac_old_set,$ac_new_set in 1247 set,) 1248 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1249 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1250 ac_cache_corrupted=: ;; 1251 ,set) 1252 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1253 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1254 ac_cache_corrupted=: ;; 1255 ,);; 1256 *) 1257 if test "x$ac_old_val" != "x$ac_new_val"; then 1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1259 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1261 echo "$as_me: former value: $ac_old_val" >&2;} 1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1263 echo "$as_me: current value: $ac_new_val" >&2;} 1264 ac_cache_corrupted=: 1265 fi;; 1266 esac 1267 # Pass precious variables to config.status. 1268 if test "$ac_new_set" = set; then 1269 case $ac_new_val in 1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1271 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1272 *) ac_arg=$ac_var=$ac_new_val ;; 1273 esac 1274 case " $ac_configure_args " in 1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1277 esac 1278 fi 1279 done 1280 if $ac_cache_corrupted; then 1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1282 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1283 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1284 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1285 { (exit 1); exit 1; }; } 1286 fi 1287 1288 ac_ext=c 1289 ac_cpp='$CPP $CPPFLAGS' 1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1292 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 ac_config_headers="$ac_config_headers config.h" 1321 1322 1323 ac_aux_dir= 1324 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1325 if test -f $ac_dir/install-sh; then 1326 ac_aux_dir=$ac_dir 1327 ac_install_sh="$ac_aux_dir/install-sh -c" 1328 break 1329 elif test -f $ac_dir/install.sh; then 1330 ac_aux_dir=$ac_dir 1331 ac_install_sh="$ac_aux_dir/install.sh -c" 1332 break 1333 elif test -f $ac_dir/shtool; then 1334 ac_aux_dir=$ac_dir 1335 ac_install_sh="$ac_aux_dir/shtool install -c" 1336 break 1337 fi 1338 done 1339 if test -z "$ac_aux_dir"; then 1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1341 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1342 { (exit 1); exit 1; }; } 1343 fi 1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1347 1348 # Make sure we can run config.sub. 1349 $ac_config_sub sun4 >/dev/null 2>&1 || 1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1351 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1352 { (exit 1); exit 1; }; } 1353 1354 echo "$as_me:$LINENO: checking build system type" >&5 1355 echo $ECHO_N "checking build system type... $ECHO_C" >&6 1356 if test "${ac_cv_build+set}" = set; then 1357 echo $ECHO_N "(cached) $ECHO_C" >&6 1358 else 1359 ac_cv_build_alias=$build_alias 1360 test -z "$ac_cv_build_alias" && 1361 ac_cv_build_alias=`$ac_config_guess` 1362 test -z "$ac_cv_build_alias" && 1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1365 { (exit 1); exit 1; }; } 1366 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1368 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1369 { (exit 1); exit 1; }; } 1370 1371 fi 1372 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1373 echo "${ECHO_T}$ac_cv_build" >&6 1374 build=$ac_cv_build 1375 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1376 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1377 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1378 1379 1380 1381 echo "$as_me:$LINENO: checking host system type" >&5 1382 echo $ECHO_N "checking host system type... $ECHO_C" >&6 1383 if test "${ac_cv_host+set}" = set; then 1384 echo $ECHO_N "(cached) $ECHO_C" >&6 1385 else 1386 ac_cv_host_alias=$host_alias 1387 test -z "$ac_cv_host_alias" && 1388 ac_cv_host_alias=$ac_cv_build_alias 1389 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1390 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1391 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1392 { (exit 1); exit 1; }; } 1393 1394 fi 1395 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1396 echo "${ECHO_T}$ac_cv_host" >&6 1397 host=$ac_cv_host 1398 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1399 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1400 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1401 1402 1403 1404 1405 1406 1407 echo "$as_me:$LINENO: checking host operating system" >&5 1408 echo $ECHO_N "checking host operating system... $ECHO_C" >&6 1409 echo "$as_me:$LINENO: result: $host_os" >&5 1410 echo "${ECHO_T}$host_os" >&6 1411 1412 AREXT=".a" 1413 1414 case $host_os in 1415 mingw32msvc*) 1416 CFLAGS="$CFLAGS -mno-cygwin -mms-bitfields" 1417 CPPFLAGS="$CPPFLAGS -mno-cygwin -mms-bitfields" 1418 ;; 1419 cygwin*) 1420 CFLAGS="$CFLAGS -mms-bitfields" 1421 CPPFLAGS="$CPPFLAGS -mms-bitfields" 1422 ;; 1423 1424 esac 1425 1426 1427 ac_ext=c 1428 ac_cpp='$CPP $CPPFLAGS' 1429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1431 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1432 if test -n "$ac_tool_prefix"; then 1433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1434 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1435 echo "$as_me:$LINENO: checking for $ac_word" >&5 1436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1437 if test "${ac_cv_prog_CC+set}" = set; then 1438 echo $ECHO_N "(cached) $ECHO_C" >&6 1439 else 1440 if test -n "$CC"; then 1441 ac_cv_prog_CC="$CC" # Let the user override the test. 1442 else 1443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1444 for as_dir in $PATH 1445 do 1446 IFS=$as_save_IFS 1447 test -z "$as_dir" && as_dir=. 1448 for ac_exec_ext in '' $ac_executable_extensions; do 1449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1450 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1452 break 2 1453 fi 1454 done 1455 done 1456 1457 fi 1458 fi 1459 CC=$ac_cv_prog_CC 1460 if test -n "$CC"; then 1461 echo "$as_me:$LINENO: result: $CC" >&5 1462 echo "${ECHO_T}$CC" >&6 1463 else 1464 echo "$as_me:$LINENO: result: no" >&5 1465 echo "${ECHO_T}no" >&6 1466 fi 1467 1468 fi 1469 if test -z "$ac_cv_prog_CC"; then 1470 ac_ct_CC=$CC 1471 # Extract the first word of "gcc", so it can be a program name with args. 1472 set dummy gcc; ac_word=$2 1473 echo "$as_me:$LINENO: checking for $ac_word" >&5 1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1476 echo $ECHO_N "(cached) $ECHO_C" >&6 1477 else 1478 if test -n "$ac_ct_CC"; then 1479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1480 else 1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1482 for as_dir in $PATH 1483 do 1484 IFS=$as_save_IFS 1485 test -z "$as_dir" && as_dir=. 1486 for ac_exec_ext in '' $ac_executable_extensions; do 1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1488 ac_cv_prog_ac_ct_CC="gcc" 1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1490 break 2 1491 fi 1492 done 1493 done 1494 1495 fi 1496 fi 1497 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1498 if test -n "$ac_ct_CC"; then 1499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1500 echo "${ECHO_T}$ac_ct_CC" >&6 1501 else 1502 echo "$as_me:$LINENO: result: no" >&5 1503 echo "${ECHO_T}no" >&6 1504 fi 1505 1506 CC=$ac_ct_CC 1507 else 1508 CC="$ac_cv_prog_CC" 1509 fi 1510 1511 if test -z "$CC"; then 1512 if test -n "$ac_tool_prefix"; then 1513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1514 set dummy ${ac_tool_prefix}cc; ac_word=$2 1515 echo "$as_me:$LINENO: checking for $ac_word" >&5 1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1517 if test "${ac_cv_prog_CC+set}" = set; then 1518 echo $ECHO_N "(cached) $ECHO_C" >&6 1519 else 1520 if test -n "$CC"; then 1521 ac_cv_prog_CC="$CC" # Let the user override the test. 1522 else 1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1524 for as_dir in $PATH 1525 do 1526 IFS=$as_save_IFS 1527 test -z "$as_dir" && as_dir=. 1528 for ac_exec_ext in '' $ac_executable_extensions; do 1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1530 ac_cv_prog_CC="${ac_tool_prefix}cc" 1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1532 break 2 1533 fi 1534 done 1535 done 1536 1537 fi 1538 fi 1539 CC=$ac_cv_prog_CC 1540 if test -n "$CC"; then 1541 echo "$as_me:$LINENO: result: $CC" >&5 1542 echo "${ECHO_T}$CC" >&6 1543 else 1544 echo "$as_me:$LINENO: result: no" >&5 1545 echo "${ECHO_T}no" >&6 1546 fi 1547 1548 fi 1549 if test -z "$ac_cv_prog_CC"; then 1550 ac_ct_CC=$CC 1551 # Extract the first word of "cc", so it can be a program name with args. 1552 set dummy cc; ac_word=$2 1553 echo "$as_me:$LINENO: checking for $ac_word" >&5 1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1556 echo $ECHO_N "(cached) $ECHO_C" >&6 1557 else 1558 if test -n "$ac_ct_CC"; then 1559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1560 else 1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1562 for as_dir in $PATH 1563 do 1564 IFS=$as_save_IFS 1565 test -z "$as_dir" && as_dir=. 1566 for ac_exec_ext in '' $ac_executable_extensions; do 1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1568 ac_cv_prog_ac_ct_CC="cc" 1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1570 break 2 1571 fi 1572 done 1573 done 1574 1575 fi 1576 fi 1577 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1578 if test -n "$ac_ct_CC"; then 1579 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1580 echo "${ECHO_T}$ac_ct_CC" >&6 1581 else 1582 echo "$as_me:$LINENO: result: no" >&5 1583 echo "${ECHO_T}no" >&6 1584 fi 1585 1586 CC=$ac_ct_CC 1587 else 1588 CC="$ac_cv_prog_CC" 1589 fi 1590 1591 fi 1592 if test -z "$CC"; then 1593 # Extract the first word of "cc", so it can be a program name with args. 1594 set dummy cc; ac_word=$2 1595 echo "$as_me:$LINENO: checking for $ac_word" >&5 1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1597 if test "${ac_cv_prog_CC+set}" = set; then 1598 echo $ECHO_N "(cached) $ECHO_C" >&6 1599 else 1600 if test -n "$CC"; then 1601 ac_cv_prog_CC="$CC" # Let the user override the test. 1602 else 1603 ac_prog_rejected=no 1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1605 for as_dir in $PATH 1606 do 1607 IFS=$as_save_IFS 1608 test -z "$as_dir" && as_dir=. 1609 for ac_exec_ext in '' $ac_executable_extensions; do 1610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1611 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1612 ac_prog_rejected=yes 1613 continue 1614 fi 1615 ac_cv_prog_CC="cc" 1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1617 break 2 1618 fi 1619 done 1620 done 1621 1622 if test $ac_prog_rejected = yes; then 1623 # We found a bogon in the path, so make sure we never use it. 1624 set dummy $ac_cv_prog_CC 1625 shift 1626 if test $# != 0; then 1627 # We chose a different compiler from the bogus one. 1628 # However, it has the same basename, so the bogon will be chosen 1629 # first if we set CC to just the basename; use the full file name. 1630 shift 1631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1632 fi 1633 fi 1634 fi 1635 fi 1636 CC=$ac_cv_prog_CC 1637 if test -n "$CC"; then 1638 echo "$as_me:$LINENO: result: $CC" >&5 1639 echo "${ECHO_T}$CC" >&6 1640 else 1641 echo "$as_me:$LINENO: result: no" >&5 1642 echo "${ECHO_T}no" >&6 1643 fi 1644 1645 fi 1646 if test -z "$CC"; then 1647 if test -n "$ac_tool_prefix"; then 1648 for ac_prog in cl 1649 do 1650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1652 echo "$as_me:$LINENO: checking for $ac_word" >&5 1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1654 if test "${ac_cv_prog_CC+set}" = set; then 1655 echo $ECHO_N "(cached) $ECHO_C" >&6 1656 else 1657 if test -n "$CC"; then 1658 ac_cv_prog_CC="$CC" # Let the user override the test. 1659 else 1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1661 for as_dir in $PATH 1662 do 1663 IFS=$as_save_IFS 1664 test -z "$as_dir" && as_dir=. 1665 for ac_exec_ext in '' $ac_executable_extensions; do 1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1669 break 2 1670 fi 1671 done 1672 done 1673 1674 fi 1675 fi 1676 CC=$ac_cv_prog_CC 1677 if test -n "$CC"; then 1678 echo "$as_me:$LINENO: result: $CC" >&5 1679 echo "${ECHO_T}$CC" >&6 1680 else 1681 echo "$as_me:$LINENO: result: no" >&5 1682 echo "${ECHO_T}no" >&6 1683 fi 1684 1685 test -n "$CC" && break 1686 done 1687 fi 1688 if test -z "$CC"; then 1689 ac_ct_CC=$CC 1690 for ac_prog in cl 1691 do 1692 # Extract the first word of "$ac_prog", so it can be a program name with args. 1693 set dummy $ac_prog; ac_word=$2 1694 echo "$as_me:$LINENO: checking for $ac_word" >&5 1695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1697 echo $ECHO_N "(cached) $ECHO_C" >&6 1698 else 1699 if test -n "$ac_ct_CC"; then 1700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1701 else 1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1703 for as_dir in $PATH 1704 do 1705 IFS=$as_save_IFS 1706 test -z "$as_dir" && as_dir=. 1707 for ac_exec_ext in '' $ac_executable_extensions; do 1708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1709 ac_cv_prog_ac_ct_CC="$ac_prog" 1710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1711 break 2 1712 fi 1713 done 1714 done 1715 1716 fi 1717 fi 1718 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1719 if test -n "$ac_ct_CC"; then 1720 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1721 echo "${ECHO_T}$ac_ct_CC" >&6 1722 else 1723 echo "$as_me:$LINENO: result: no" >&5 1724 echo "${ECHO_T}no" >&6 1725 fi 1726 1727 test -n "$ac_ct_CC" && break 1728 done 1729 1730 CC=$ac_ct_CC 1731 fi 1732 1733 fi 1734 1735 1736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1737 See \`config.log' for more details." >&5 1738 echo "$as_me: error: no acceptable C compiler found in \$PATH 1739 See \`config.log' for more details." >&2;} 1740 { (exit 1); exit 1; }; } 1741 1742 # Provide some information about the compiler. 1743 echo "$as_me:$LINENO:" \ 1744 "checking for C compiler version" >&5 1745 ac_compiler=`set X $ac_compile; echo $2` 1746 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1747 (eval $ac_compiler --version </dev/null >&5) 2>&5 1748 ac_status=$? 1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1750 (exit $ac_status); } 1751 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1752 (eval $ac_compiler -v </dev/null >&5) 2>&5 1753 ac_status=$? 1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1755 (exit $ac_status); } 1756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1757 (eval $ac_compiler -V </dev/null >&5) 2>&5 1758 ac_status=$? 1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1760 (exit $ac_status); } 1761 1762 cat >conftest.$ac_ext <<_ACEOF 1763 /* confdefs.h. */ 1764 _ACEOF 1765 cat confdefs.h >>conftest.$ac_ext 1766 cat >>conftest.$ac_ext <<_ACEOF 1767 /* end confdefs.h. */ 1768 1769 int 1770 main () 1771 { 1772 1773 ; 1774 return 0; 1775 } 1776 _ACEOF 1777 ac_clean_files_save=$ac_clean_files 1778 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1779 # Try to create an executable without -o first, disregard a.out. 1780 # It will help us diagnose broken compilers, and finding out an intuition 1781 # of exeext. 1782 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1783 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1784 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1785 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1786 (eval $ac_link_default) 2>&5 1787 ac_status=$? 1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1789 (exit $ac_status); }; then 1790 # Find the output, starting from the most likely. This scheme is 1791 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1792 # resort. 1793 1794 # Be careful to initialize this variable, since it used to be cached. 1795 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1796 ac_cv_exeext= 1797 # b.out is created by i960 compilers. 1798 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1799 do 1800 test -f "$ac_file" || continue 1801 case $ac_file in 1802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1803 ;; 1804 conftest.$ac_ext ) 1805 # This is the source file. 1806 ;; 1807 [ab].out ) 1808 # We found the default executable, but exeext='' is most 1809 # certainly right. 1810 break;; 1811 *.* ) 1812 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1813 # FIXME: I believe we export ac_cv_exeext for Libtool, 1814 # but it would be cool to find out if it's true. Does anybody 1815 # maintain Libtool? --akim. 1816 export ac_cv_exeext 1817 break;; 1818 * ) 1819 break;; 1820 esac 1821 done 1822 else 1823 echo "$as_me: failed program was:" >&5 1824 sed 's/^/| /' conftest.$ac_ext >&5 1825 1826 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1827 See \`config.log' for more details." >&5 1828 echo "$as_me: error: C compiler cannot create executables 1829 See \`config.log' for more details." >&2;} 1830 { (exit 77); exit 77; }; } 1831 fi 1832 1833 ac_exeext=$ac_cv_exeext 1834 echo "$as_me:$LINENO: result: $ac_file" >&5 1835 echo "${ECHO_T}$ac_file" >&6 1836 1837 # Check the compiler produces executables we can run. If not, either 1838 # the compiler is broken, or we cross compile. 1839 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1842 # If not cross compiling, check that we can run a simple program. 1843 if test "$cross_compiling" != yes; then 1844 if { ac_try='./$ac_file' 1845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1846 (eval $ac_try) 2>&5 1847 ac_status=$? 1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1849 (exit $ac_status); }; }; then 1850 cross_compiling=no 1851 else 1852 if test "$cross_compiling" = maybe; then 1853 cross_compiling=yes 1854 else 1855 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1856 If you meant to cross compile, use \`--host'. 1857 See \`config.log' for more details." >&5 1858 echo "$as_me: error: cannot run C compiled programs. 1859 If you meant to cross compile, use \`--host'. 1860 See \`config.log' for more details." >&2;} 1861 { (exit 1); exit 1; }; } 1862 fi 1863 fi 1864 fi 1865 echo "$as_me:$LINENO: result: yes" >&5 1866 echo "${ECHO_T}yes" >&6 1867 1868 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1869 ac_clean_files=$ac_clean_files_save 1870 # Check the compiler produces executables we can run. If not, either 1871 # the compiler is broken, or we cross compile. 1872 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1873 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1874 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1875 echo "${ECHO_T}$cross_compiling" >&6 1876 1877 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1878 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1880 (eval $ac_link) 2>&5 1881 ac_status=$? 1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1883 (exit $ac_status); }; then 1884 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1885 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1886 # work properly (i.e., refer to `conftest.exe'), while it won't with 1887 # `rm'. 1888 for ac_file in conftest.exe conftest conftest.*; do 1889 test -f "$ac_file" || continue 1890 case $ac_file in 1891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1892 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1893 export ac_cv_exeext 1894 break;; 1895 * ) break;; 1896 esac 1897 done 1898 else 1899 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1900 See \`config.log' for more details." >&5 1901 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1902 See \`config.log' for more details." >&2;} 1903 { (exit 1); exit 1; }; } 1904 fi 1905 1906 rm -f conftest$ac_cv_exeext 1907 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1908 echo "${ECHO_T}$ac_cv_exeext" >&6 1909 1910 rm -f conftest.$ac_ext 1911 EXEEXT=$ac_cv_exeext 1912 ac_exeext=$EXEEXT 1913 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1914 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1915 if test "${ac_cv_objext+set}" = set; then 1916 echo $ECHO_N "(cached) $ECHO_C" >&6 1917 else 1918 cat >conftest.$ac_ext <<_ACEOF 1919 /* confdefs.h. */ 1920 _ACEOF 1921 cat confdefs.h >>conftest.$ac_ext 1922 cat >>conftest.$ac_ext <<_ACEOF 1923 /* end confdefs.h. */ 1924 1925 int 1926 main () 1927 { 1928 1929 ; 1930 return 0; 1931 } 1932 _ACEOF 1933 rm -f conftest.o conftest.obj 1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1935 (eval $ac_compile) 2>&5 1936 ac_status=$? 1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1938 (exit $ac_status); }; then 1939 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1940 case $ac_file in 1941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1943 break;; 1944 esac 1945 done 1946 else 1947 echo "$as_me: failed program was:" >&5 1948 sed 's/^/| /' conftest.$ac_ext >&5 1949 1950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1951 See \`config.log' for more details." >&5 1952 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1953 See \`config.log' for more details." >&2;} 1954 { (exit 1); exit 1; }; } 1955 fi 1956 1957 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1958 fi 1959 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1960 echo "${ECHO_T}$ac_cv_objext" >&6 1961 OBJEXT=$ac_cv_objext 1962 ac_objext=$OBJEXT 1963 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1965 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1966 echo $ECHO_N "(cached) $ECHO_C" >&6 1967 else 1968 cat >conftest.$ac_ext <<_ACEOF 1969 /* confdefs.h. */ 1970 _ACEOF 1971 cat confdefs.h >>conftest.$ac_ext 1972 cat >>conftest.$ac_ext <<_ACEOF 1973 /* end confdefs.h. */ 1974 1975 int 1976 main () 1977 { 1978 #ifndef __GNUC__ 1979 choke me 1980 #endif 1981 1982 ; 1983 return 0; 1984 } 1985 _ACEOF 1986 rm -f conftest.$ac_objext 1987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1988 (eval $ac_compile) 2>conftest.er1 1989 ac_status=$? 1990 grep -v '^ *+' conftest.er1 >conftest.err 1991 rm -f conftest.er1 1992 cat conftest.err >&5 1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1994 (exit $ac_status); } && 1995 { ac_try='test -z "$ac_c_werror_flag" 1996 || test ! -s conftest.err' 1997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1998 (eval $ac_try) 2>&5 1999 ac_status=$? 2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2001 (exit $ac_status); }; } && 2002 { ac_try='test -s conftest.$ac_objext' 2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2004 (eval $ac_try) 2>&5 2005 ac_status=$? 2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2007 (exit $ac_status); }; }; then 2008 ac_compiler_gnu=yes 2009 else 2010 echo "$as_me: failed program was:" >&5 2011 sed 's/^/| /' conftest.$ac_ext >&5 2012 2013 ac_compiler_gnu=no 2014 fi 2015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2016 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2017 2018 fi 2019 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2020 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2021 GCC=`test $ac_compiler_gnu = yes && echo yes` 2022 ac_test_CFLAGS=${CFLAGS+set} 2023 ac_save_CFLAGS=$CFLAGS 2024 CFLAGS="-g" 2025 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2027 if test "${ac_cv_prog_cc_g+set}" = set; then 2028 echo $ECHO_N "(cached) $ECHO_C" >&6 2029 else 2030 cat >conftest.$ac_ext <<_ACEOF 2031 /* confdefs.h. */ 2032 _ACEOF 2033 cat confdefs.h >>conftest.$ac_ext 2034 cat >>conftest.$ac_ext <<_ACEOF 2035 /* end confdefs.h. */ 2036 2037 int 2038 main () 2039 { 2040 2041 ; 2042 return 0; 2043 } 2044 _ACEOF 2045 rm -f conftest.$ac_objext 2046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2047 (eval $ac_compile) 2>conftest.er1 2048 ac_status=$? 2049 grep -v '^ *+' conftest.er1 >conftest.err 2050 rm -f conftest.er1 2051 cat conftest.err >&5 2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2053 (exit $ac_status); } && 2054 { ac_try='test -z "$ac_c_werror_flag" 2055 || test ! -s conftest.err' 2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2057 (eval $ac_try) 2>&5 2058 ac_status=$? 2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2060 (exit $ac_status); }; } && 2061 { ac_try='test -s conftest.$ac_objext' 2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2063 (eval $ac_try) 2>&5 2064 ac_status=$? 2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2066 (exit $ac_status); }; }; then 2067 ac_cv_prog_cc_g=yes 2068 else 2069 echo "$as_me: failed program was:" >&5 2070 sed 's/^/| /' conftest.$ac_ext >&5 2071 2072 ac_cv_prog_cc_g=no 2073 fi 2074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2075 fi 2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2078 if test "$ac_test_CFLAGS" = set; then 2079 CFLAGS=$ac_save_CFLAGS 2080 elif test $ac_cv_prog_cc_g = yes; then 2081 if test "$GCC" = yes; then 2082 CFLAGS="-g -O2" 2083 else 2084 CFLAGS="-g" 2085 fi 2086 else 2087 if test "$GCC" = yes; then 2088 CFLAGS="-O2" 2089 else 2090 CFLAGS= 2091 fi 2092 fi 2093 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2096 echo $ECHO_N "(cached) $ECHO_C" >&6 2097 else 2098 ac_cv_prog_cc_stdc=no 2099 ac_save_CC=$CC 2100 cat >conftest.$ac_ext <<_ACEOF 2101 /* confdefs.h. */ 2102 _ACEOF 2103 cat confdefs.h >>conftest.$ac_ext 2104 cat >>conftest.$ac_ext <<_ACEOF 2105 /* end confdefs.h. */ 2106 #include <stdarg.h> 2107 #include <stdio.h> 2108 #include <sys/types.h> 2109 #include <sys/stat.h> 2110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2111 struct buf { int x; }; 2112 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2113 static char *e (p, i) 2114 char **p; 2115 int i; 2116 { 2117 return p[i]; 2118 } 2119 static char *f (char * (*g) (char **, int), char **p, ...) 2120 { 2121 char *s; 2122 va_list v; 2123 va_start (v,p); 2124 s = g (p, va_arg (v,int)); 2125 va_end (v); 2126 return s; 2127 } 2128 2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2130 function prototypes and stuff, but not '\xHH' hex character constants. 2131 These don't provoke an error unfortunately, instead are silently treated 2132 as 'x'. The following induces an error, until -std1 is added to get 2133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2134 array size at least. It's necessary to write '\x00'==0 to get something 2135 that's true only with -std1. */ 2136 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2137 2138 int test (int i, double x); 2139 struct s1 {int (*f) (int a);}; 2140 struct s2 {int (*f) (double a);}; 2141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2142 int argc; 2143 char **argv; 2144 int 2145 main () 2146 { 2147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2148 ; 2149 return 0; 2150 } 2151 _ACEOF 2152 # Don't try gcc -ansi; that turns off useful extensions and 2153 # breaks some systems' header files. 2154 # AIX -qlanglvl=ansi 2155 # Ultrix and OSF/1 -std1 2156 # HP-UX 10.20 and later -Ae 2157 # HP-UX older versions -Aa -D_HPUX_SOURCE 2158 # SVR4 -Xc -D__EXTENSIONS__ 2159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2160 do 2161 CC="$ac_save_CC $ac_arg" 2162 rm -f conftest.$ac_objext 2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2164 (eval $ac_compile) 2>conftest.er1 2165 ac_status=$? 2166 grep -v '^ *+' conftest.er1 >conftest.err 2167 rm -f conftest.er1 2168 cat conftest.err >&5 2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2170 (exit $ac_status); } && 2171 { ac_try='test -z "$ac_c_werror_flag" 2172 || test ! -s conftest.err' 2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2174 (eval $ac_try) 2>&5 2175 ac_status=$? 2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2177 (exit $ac_status); }; } && 2178 { ac_try='test -s conftest.$ac_objext' 2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2180 (eval $ac_try) 2>&5 2181 ac_status=$? 2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2183 (exit $ac_status); }; }; then 2184 ac_cv_prog_cc_stdc=$ac_arg 2185 break 2186 else 2187 echo "$as_me: failed program was:" >&5 2188 sed 's/^/| /' conftest.$ac_ext >&5 2189 2190 fi 2191 rm -f conftest.err conftest.$ac_objext 2192 done 2193 rm -f conftest.$ac_ext conftest.$ac_objext 2194 CC=$ac_save_CC 2195 2196 fi 2197 2198 case "x$ac_cv_prog_cc_stdc" in 2199 x|xno) 2200 echo "$as_me:$LINENO: result: none needed" >&5 2201 echo "${ECHO_T}none needed" >&6 ;; 2202 *) 2203 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2204 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2205 CC="$CC $ac_cv_prog_cc_stdc" ;; 2206 esac 2207 2208 # Some people use a C++ compiler to compile C. Since we use `exit', 2209 # in C++ we need to declare it. In case someone uses the same compiler 2210 # for both compiling C and C++ we need to have the C++ compiler decide 2211 # the declaration of exit, since it's the most demanding environment. 2212 cat >conftest.$ac_ext <<_ACEOF 2213 #ifndef __cplusplus 2214 choke me 2215 #endif 2216 _ACEOF 2217 rm -f conftest.$ac_objext 2218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2219 (eval $ac_compile) 2>conftest.er1 2220 ac_status=$? 2221 grep -v '^ *+' conftest.er1 >conftest.err 2222 rm -f conftest.er1 2223 cat conftest.err >&5 2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2225 (exit $ac_status); } && 2226 { ac_try='test -z "$ac_c_werror_flag" 2227 || test ! -s conftest.err' 2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2229 (eval $ac_try) 2>&5 2230 ac_status=$? 2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2232 (exit $ac_status); }; } && 2233 { ac_try='test -s conftest.$ac_objext' 2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2235 (eval $ac_try) 2>&5 2236 ac_status=$? 2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2238 (exit $ac_status); }; }; then 2239 for ac_declaration in \ 2240 '' \ 2241 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2242 'extern "C" void std::exit (int); using std::exit;' \ 2243 'extern "C" void exit (int) throw ();' \ 2244 'extern "C" void exit (int);' \ 2245 'void exit (int);' 2246 do 2247 cat >conftest.$ac_ext <<_ACEOF 2248 /* confdefs.h. */ 2249 _ACEOF 2250 cat confdefs.h >>conftest.$ac_ext 2251 cat >>conftest.$ac_ext <<_ACEOF 2252 /* end confdefs.h. */ 2253 $ac_declaration 2254 #include <stdlib.h> 2255 int 2256 main () 2257 { 2258 exit (42); 2259 ; 2260 return 0; 2261 } 2262 _ACEOF 2263 rm -f conftest.$ac_objext 2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2265 (eval $ac_compile) 2>conftest.er1 2266 ac_status=$? 2267 grep -v '^ *+' conftest.er1 >conftest.err 2268 rm -f conftest.er1 2269 cat conftest.err >&5 2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2271 (exit $ac_status); } && 2272 { ac_try='test -z "$ac_c_werror_flag" 2273 || test ! -s conftest.err' 2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2275 (eval $ac_try) 2>&5 2276 ac_status=$? 2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2278 (exit $ac_status); }; } && 2279 { ac_try='test -s conftest.$ac_objext' 2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2281 (eval $ac_try) 2>&5 2282 ac_status=$? 2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2284 (exit $ac_status); }; }; then 2285 : 2286 else 2287 echo "$as_me: failed program was:" >&5 2288 sed 's/^/| /' conftest.$ac_ext >&5 2289 2290 continue 2291 fi 2292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2293 cat >conftest.$ac_ext <<_ACEOF 2294 /* confdefs.h. */ 2295 _ACEOF 2296 cat confdefs.h >>conftest.$ac_ext 2297 cat >>conftest.$ac_ext <<_ACEOF 2298 /* end confdefs.h. */ 2299 $ac_declaration 2300 int 2301 main () 2302 { 2303 exit (42); 2304 ; 2305 return 0; 2306 } 2307 _ACEOF 2308 rm -f conftest.$ac_objext 2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2310 (eval $ac_compile) 2>conftest.er1 2311 ac_status=$? 2312 grep -v '^ *+' conftest.er1 >conftest.err 2313 rm -f conftest.er1 2314 cat conftest.err >&5 2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2316 (exit $ac_status); } && 2317 { ac_try='test -z "$ac_c_werror_flag" 2318 || test ! -s conftest.err' 2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2320 (eval $ac_try) 2>&5 2321 ac_status=$? 2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2323 (exit $ac_status); }; } && 2324 { ac_try='test -s conftest.$ac_objext' 2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2326 (eval $ac_try) 2>&5 2327 ac_status=$? 2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2329 (exit $ac_status); }; }; then 2330 break 2331 else 2332 echo "$as_me: failed program was:" >&5 2333 sed 's/^/| /' conftest.$ac_ext >&5 2334 2335 fi 2336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2337 done 2338 rm -f conftest* 2339 if test -n "$ac_declaration"; then 2340 echo '#ifdef __cplusplus' >>confdefs.h 2341 echo $ac_declaration >>confdefs.h 2342 echo '#endif' >>confdefs.h 2343 fi 2344 2345 else 2346 echo "$as_me: failed program was:" >&5 2347 sed 's/^/| /' conftest.$ac_ext >&5 2348 2349 fi 2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2351 ac_ext=c 2352 ac_cpp='$CPP $CPPFLAGS' 2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2356 2357 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2358 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2359 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2360 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2361 echo $ECHO_N "(cached) $ECHO_C" >&6 2362 else 2363 cat >conftest.make <<\_ACEOF 2364 all: 2365 @echo 'ac_maketemp="$(MAKE)"' 2366 _ACEOF 2367 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2368 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2369 if test -n "$ac_maketemp"; then 2370 eval ac_cv_prog_make_${ac_make}_set=yes 2371 else 2372 eval ac_cv_prog_make_${ac_make}_set=no 2373 fi 2374 rm -f conftest.make 2375 fi 2376 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2377 echo "$as_me:$LINENO: result: yes" >&5 2378 echo "${ECHO_T}yes" >&6 2379 SET_MAKE= 2380 else 2381 echo "$as_me:$LINENO: result: no" >&5 2382 echo "${ECHO_T}no" >&6 2383 SET_MAKE="MAKE=${MAKE-make}" 2384 fi 2385 2386 # Find a good install program. We prefer a C program (faster), 2387 # so one script is as good as another. But avoid the broken or 2388 # incompatible versions: 2389 # SysV /etc/install, /usr/sbin/install 2390 # SunOS /usr/etc/install 2391 # IRIX /sbin/install 2392 # AIX /bin/install 2393 # AmigaOS /C/install, which installs bootblocks on floppy discs 2394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2397 # OS/2's system install, which has a completely different semantic 2398 # ./install, which can be erroneously created by make from ./install.sh. 2399 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2400 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2401 if test -z "$INSTALL"; then 2402 if test "${ac_cv_path_install+set}" = set; then 2403 echo $ECHO_N "(cached) $ECHO_C" >&6 2404 else 2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2406 for as_dir in $PATH 2407 do 2408 IFS=$as_save_IFS 2409 test -z "$as_dir" && as_dir=. 2410 # Account for people who put trailing slashes in PATH elements. 2411 case $as_dir/ in 2412 ./ | .// | /cC/* | \ 2413 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2414 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2415 /usr/ucb/* ) ;; 2416 *) 2417 # OSF1 and SCO ODT 3.0 have their own names for install. 2418 # Don't use installbsd from OSF since it installs stuff as root 2419 # by default. 2420 for ac_prog in ginstall scoinst install; do 2421 for ac_exec_ext in '' $ac_executable_extensions; do 2422 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2423 if test $ac_prog = install && 2424 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2425 # AIX install. It has an incompatible calling convention. 2426 : 2427 elif test $ac_prog = install && 2428 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2429 # program-specific install script used by HP pwplus--don't use. 2430 : 2431 else 2432 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2433 break 3 2434 fi 2435 fi 2436 done 2437 done 2438 ;; 2439 esac 2440 done 2441 2442 2443 fi 2444 if test "${ac_cv_path_install+set}" = set; then 2445 INSTALL=$ac_cv_path_install 2446 else 2447 # As a last resort, use the slow shell script. We don't cache a 2448 # path for INSTALL within a source directory, because that will 2449 # break other packages using the cache if that directory is 2450 # removed, or if the path is relative. 2451 INSTALL=$ac_install_sh 2452 fi 2453 fi 2454 echo "$as_me:$LINENO: result: $INSTALL" >&5 2455 echo "${ECHO_T}$INSTALL" >&6 2456 2457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2458 # It thinks the first close brace ends the variable substitution. 2459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2460 2461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2462 2463 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2464 2465 if test -n "$ac_tool_prefix"; then 2466 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2467 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2468 echo "$as_me:$LINENO: checking for $ac_word" >&5 2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2470 if test "${ac_cv_prog_RANLIB+set}" = set; then 2471 echo $ECHO_N "(cached) $ECHO_C" >&6 2472 else 2473 if test -n "$RANLIB"; then 2474 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2475 else 2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477 for as_dir in $PATH 2478 do 2479 IFS=$as_save_IFS 2480 test -z "$as_dir" && as_dir=. 2481 for ac_exec_ext in '' $ac_executable_extensions; do 2482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2483 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2485 break 2 2486 fi 2487 done 2488 done 2489 2490 fi 2491 fi 2492 RANLIB=$ac_cv_prog_RANLIB 2493 if test -n "$RANLIB"; then 2494 echo "$as_me:$LINENO: result: $RANLIB" >&5 2495 echo "${ECHO_T}$RANLIB" >&6 2496 else 2497 echo "$as_me:$LINENO: result: no" >&5 2498 echo "${ECHO_T}no" >&6 2499 fi 2500 2501 fi 2502 if test -z "$ac_cv_prog_RANLIB"; then 2503 ac_ct_RANLIB=$RANLIB 2504 # Extract the first word of "ranlib", so it can be a program name with args. 2505 set dummy ranlib; ac_word=$2 2506 echo "$as_me:$LINENO: checking for $ac_word" >&5 2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2508 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2509 echo $ECHO_N "(cached) $ECHO_C" >&6 2510 else 2511 if test -n "$ac_ct_RANLIB"; then 2512 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2513 else 2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515 for as_dir in $PATH 2516 do 2517 IFS=$as_save_IFS 2518 test -z "$as_dir" && as_dir=. 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2521 ac_cv_prog_ac_ct_RANLIB="ranlib" 2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2523 break 2 2524 fi 2525 done 2526 done 2527 2528 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2529 fi 2530 fi 2531 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2532 if test -n "$ac_ct_RANLIB"; then 2533 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2534 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2535 else 2536 echo "$as_me:$LINENO: result: no" >&5 2537 echo "${ECHO_T}no" >&6 2538 fi 2539 2540 RANLIB=$ac_ct_RANLIB 2541 else 2542 RANLIB="$ac_cv_prog_RANLIB" 2543 fi 2544 2545 2546 ac_ext=c 2547 ac_cpp='$CPP $CPPFLAGS' 2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2551 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2552 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2553 # On Suns, sometimes $CPP names a directory. 2554 if test -n "$CPP" && test -d "$CPP"; then 2555 CPP= 2556 fi 2557 if test -z "$CPP"; then 2558 if test "${ac_cv_prog_CPP+set}" = set; then 2559 echo $ECHO_N "(cached) $ECHO_C" >&6 2560 else 2561 # Double quotes because CPP needs to be expanded 2562 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2563 do 2564 ac_preproc_ok=false 2565 for ac_c_preproc_warn_flag in '' yes 2566 do 2567 # Use a header file that comes with gcc, so configuring glibc 2568 # with a fresh cross-compiler works. 2569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2570 # <limits.h> exists even on freestanding compilers. 2571 # On the NeXT, cc -E runs the code through the compiler's parser, 2572 # not just through cpp. "Syntax error" is here to catch this case. 2573 cat >conftest.$ac_ext <<_ACEOF 2574 /* confdefs.h. */ 2575 _ACEOF 2576 cat confdefs.h >>conftest.$ac_ext 2577 cat >>conftest.$ac_ext <<_ACEOF 2578 /* end confdefs.h. */ 2579 #ifdef __STDC__ 2580 # include <limits.h> 2581 #else 2582 # include <assert.h> 2583 #endif 2584 Syntax error 2585 _ACEOF 2586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2588 ac_status=$? 2589 grep -v '^ *+' conftest.er1 >conftest.err 2590 rm -f conftest.er1 2591 cat conftest.err >&5 2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2593 (exit $ac_status); } >/dev/null; then 2594 if test -s conftest.err; then 2595 ac_cpp_err=$ac_c_preproc_warn_flag 2596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2597 else 2598 ac_cpp_err= 2599 fi 2600 else 2601 ac_cpp_err=yes 2602 fi 2603 if test -z "$ac_cpp_err"; then 2604 : 2605 else 2606 echo "$as_me: failed program was:" >&5 2607 sed 's/^/| /' conftest.$ac_ext >&5 2608 2609 # Broken: fails on valid input. 2610 continue 2611 fi 2612 rm -f conftest.err conftest.$ac_ext 2613 2614 # OK, works on sane cases. Now check whether non-existent headers 2615 # can be detected and how. 2616 cat >conftest.$ac_ext <<_ACEOF 2617 /* confdefs.h. */ 2618 _ACEOF 2619 cat confdefs.h >>conftest.$ac_ext 2620 cat >>conftest.$ac_ext <<_ACEOF 2621 /* end confdefs.h. */ 2622 #include <ac_nonexistent.h> 2623 _ACEOF 2624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2626 ac_status=$? 2627 grep -v '^ *+' conftest.er1 >conftest.err 2628 rm -f conftest.er1 2629 cat conftest.err >&5 2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2631 (exit $ac_status); } >/dev/null; then 2632 if test -s conftest.err; then 2633 ac_cpp_err=$ac_c_preproc_warn_flag 2634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2635 else 2636 ac_cpp_err= 2637 fi 2638 else 2639 ac_cpp_err=yes 2640 fi 2641 if test -z "$ac_cpp_err"; then 2642 # Broken: success on invalid input. 2643 continue 2644 else 2645 echo "$as_me: failed program was:" >&5 2646 sed 's/^/| /' conftest.$ac_ext >&5 2647 2648 # Passes both tests. 2649 ac_preproc_ok=: 2650 break 2651 fi 2652 rm -f conftest.err conftest.$ac_ext 2653 2654 done 2655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2656 rm -f conftest.err conftest.$ac_ext 2657 if $ac_preproc_ok; then 2658 break 2659 fi 2660 2661 done 2662 ac_cv_prog_CPP=$CPP 2663 2664 fi 2665 CPP=$ac_cv_prog_CPP 2666 else 2667 ac_cv_prog_CPP=$CPP 2668 fi 2669 echo "$as_me:$LINENO: result: $CPP" >&5 2670 echo "${ECHO_T}$CPP" >&6 2671 ac_preproc_ok=false 2672 for ac_c_preproc_warn_flag in '' yes 2673 do 2674 # Use a header file that comes with gcc, so configuring glibc 2675 # with a fresh cross-compiler works. 2676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2677 # <limits.h> exists even on freestanding compilers. 2678 # On the NeXT, cc -E runs the code through the compiler's parser, 2679 # not just through cpp. "Syntax error" is here to catch this case. 2680 cat >conftest.$ac_ext <<_ACEOF 2681 /* confdefs.h. */ 2682 _ACEOF 2683 cat confdefs.h >>conftest.$ac_ext 2684 cat >>conftest.$ac_ext <<_ACEOF 2685 /* end confdefs.h. */ 2686 #ifdef __STDC__ 2687 # include <limits.h> 2688 #else 2689 # include <assert.h> 2690 #endif 2691 Syntax error 2692 _ACEOF 2693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2695 ac_status=$? 2696 grep -v '^ *+' conftest.er1 >conftest.err 2697 rm -f conftest.er1 2698 cat conftest.err >&5 2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2700 (exit $ac_status); } >/dev/null; then 2701 if test -s conftest.err; then 2702 ac_cpp_err=$ac_c_preproc_warn_flag 2703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2704 else 2705 ac_cpp_err= 2706 fi 2707 else 2708 ac_cpp_err=yes 2709 fi 2710 if test -z "$ac_cpp_err"; then 2711 : 2712 else 2713 echo "$as_me: failed program was:" >&5 2714 sed 's/^/| /' conftest.$ac_ext >&5 2715 2716 # Broken: fails on valid input. 2717 continue 2718 fi 2719 rm -f conftest.err conftest.$ac_ext 2720 2721 # OK, works on sane cases. Now check whether non-existent headers 2722 # can be detected and how. 2723 cat >conftest.$ac_ext <<_ACEOF 2724 /* confdefs.h. */ 2725 _ACEOF 2726 cat confdefs.h >>conftest.$ac_ext 2727 cat >>conftest.$ac_ext <<_ACEOF 2728 /* end confdefs.h. */ 2729 #include <ac_nonexistent.h> 2730 _ACEOF 2731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2733 ac_status=$? 2734 grep -v '^ *+' conftest.er1 >conftest.err 2735 rm -f conftest.er1 2736 cat conftest.err >&5 2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2738 (exit $ac_status); } >/dev/null; then 2739 if test -s conftest.err; then 2740 ac_cpp_err=$ac_c_preproc_warn_flag 2741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2742 else 2743 ac_cpp_err= 2744 fi 2745 else 2746 ac_cpp_err=yes 2747 fi 2748 if test -z "$ac_cpp_err"; then 2749 # Broken: success on invalid input. 2750 continue 2751 else 2752 echo "$as_me: failed program was:" >&5 2753 sed 's/^/| /' conftest.$ac_ext >&5 2754 2755 # Passes both tests. 2756 ac_preproc_ok=: 2757 break 2758 fi 2759 rm -f conftest.err conftest.$ac_ext 2760 2761 done 2762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2763 rm -f conftest.err conftest.$ac_ext 2764 if $ac_preproc_ok; then 2765 : 2766 else 2767 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2768 See \`config.log' for more details." >&5 2769 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2770 See \`config.log' for more details." >&2;} 2771 { (exit 1); exit 1; }; } 2772 fi 2773 2774 ac_ext=c 2775 ac_cpp='$CPP $CPPFLAGS' 2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2779 2780 2781 echo "$as_me:$LINENO: checking for egrep" >&5 2782 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2783 if test "${ac_cv_prog_egrep+set}" = set; then 2784 echo $ECHO_N "(cached) $ECHO_C" >&6 2785 else 2786 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2787 then ac_cv_prog_egrep='grep -E' 2788 else ac_cv_prog_egrep='egrep' 2789 fi 2790 fi 2791 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2792 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2793 EGREP=$ac_cv_prog_egrep 2794 2795 2796 2797 echo "$as_me:$LINENO: checking for AIX" >&5 2798 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2799 cat >conftest.$ac_ext <<_ACEOF 2800 /* confdefs.h. */ 2801 _ACEOF 2802 cat confdefs.h >>conftest.$ac_ext 2803 cat >>conftest.$ac_ext <<_ACEOF 2804 /* end confdefs.h. */ 2805 #ifdef _AIX 2806 yes 2807 #endif 2808 2809 _ACEOF 2810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2811 $EGREP "yes" >/dev/null 2>&1; then 2812 echo "$as_me:$LINENO: result: yes" >&5 2813 echo "${ECHO_T}yes" >&6 2814 cat >>confdefs.h <<\_ACEOF 2815 #define _ALL_SOURCE 1 2816 _ACEOF 2817 2818 else 2819 echo "$as_me:$LINENO: result: no" >&5 2820 echo "${ECHO_T}no" >&6 2821 fi 2822 rm -f conftest* 2823 2824 2825 2826 cat >>confdefs.h <<\_ACEOF 2827 #define _GNU_SOURCE 1 2828 _ACEOF 2829 2830 2831 if test -n "$ac_tool_prefix"; then 2832 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2833 set dummy ${ac_tool_prefix}ar; ac_word=$2 2834 echo "$as_me:$LINENO: checking for $ac_word" >&5 2835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2836 if test "${ac_cv_prog_AR+set}" = set; then 2837 echo $ECHO_N "(cached) $ECHO_C" >&6 2838 else 2839 if test -n "$AR"; then 2840 ac_cv_prog_AR="$AR" # Let the user override the test. 2841 else 2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2843 for as_dir in $PATH 2844 do 2845 IFS=$as_save_IFS 2846 test -z "$as_dir" && as_dir=. 2847 for ac_exec_ext in '' $ac_executable_extensions; do 2848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2849 ac_cv_prog_AR="${ac_tool_prefix}ar" 2850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2851 break 2 2852 fi 2853 done 2854 done 2855 2856 fi 2857 fi 2858 AR=$ac_cv_prog_AR 2859 if test -n "$AR"; then 2860 echo "$as_me:$LINENO: result: $AR" >&5 2861 echo "${ECHO_T}$AR" >&6 2862 else 2863 echo "$as_me:$LINENO: result: no" >&5 2864 echo "${ECHO_T}no" >&6 2865 fi 2866 2867 fi 2868 if test -z "$ac_cv_prog_AR"; then 2869 ac_ct_AR=$AR 2870 # Extract the first word of "ar", so it can be a program name with args. 2871 set dummy ar; ac_word=$2 2872 echo "$as_me:$LINENO: checking for $ac_word" >&5 2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2874 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2875 echo $ECHO_N "(cached) $ECHO_C" >&6 2876 else 2877 if test -n "$ac_ct_AR"; then 2878 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2879 else 2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2881 for as_dir in $PATH 2882 do 2883 IFS=$as_save_IFS 2884 test -z "$as_dir" && as_dir=. 2885 for ac_exec_ext in '' $ac_executable_extensions; do 2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2887 ac_cv_prog_ac_ct_AR="ar" 2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2889 break 2 2890 fi 2891 done 2892 done 2893 2894 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="true" 2895 fi 2896 fi 2897 ac_ct_AR=$ac_cv_prog_ac_ct_AR 2898 if test -n "$ac_ct_AR"; then 2899 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 2900 echo "${ECHO_T}$ac_ct_AR" >&6 2901 else 2902 echo "$as_me:$LINENO: result: no" >&5 2903 echo "${ECHO_T}no" >&6 2904 fi 2905 2906 AR=$ac_ct_AR 2907 else 2908 AR="$ac_cv_prog_AR" 2909 fi 2910 2911 2912 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2913 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2914 if test "${ac_cv_header_stdc+set}" = set; then 2915 echo $ECHO_N "(cached) $ECHO_C" >&6 2916 else 2917 cat >conftest.$ac_ext <<_ACEOF 2918 /* confdefs.h. */ 2919 _ACEOF 2920 cat confdefs.h >>conftest.$ac_ext 2921 cat >>conftest.$ac_ext <<_ACEOF 2922 /* end confdefs.h. */ 2923 #include <stdlib.h> 2924 #include <stdarg.h> 2925 #include <string.h> 2926 #include <float.h> 2927 2928 int 2929 main () 2930 { 2931 2932 ; 2933 return 0; 2934 } 2935 _ACEOF 2936 rm -f conftest.$ac_objext 2937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2938 (eval $ac_compile) 2>conftest.er1 2939 ac_status=$? 2940 grep -v '^ *+' conftest.er1 >conftest.err 2941 rm -f conftest.er1 2942 cat conftest.err >&5 2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2944 (exit $ac_status); } && 2945 { ac_try='test -z "$ac_c_werror_flag" 2946 || test ! -s conftest.err' 2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2948 (eval $ac_try) 2>&5 2949 ac_status=$? 2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2951 (exit $ac_status); }; } && 2952 { ac_try='test -s conftest.$ac_objext' 2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2954 (eval $ac_try) 2>&5 2955 ac_status=$? 2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2957 (exit $ac_status); }; }; then 2958 ac_cv_header_stdc=yes 2959 else 2960 echo "$as_me: failed program was:" >&5 2961 sed 's/^/| /' conftest.$ac_ext >&5 2962 2963 ac_cv_header_stdc=no 2964 fi 2965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2966 2967 if test $ac_cv_header_stdc = yes; then 2968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2969 cat >conftest.$ac_ext <<_ACEOF 2970 /* confdefs.h. */ 2971 _ACEOF 2972 cat confdefs.h >>conftest.$ac_ext 2973 cat >>conftest.$ac_ext <<_ACEOF 2974 /* end confdefs.h. */ 2975 #include <string.h> 2976 2977 _ACEOF 2978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2979 $EGREP "memchr" >/dev/null 2>&1; then 2980 : 2981 else 2982 ac_cv_header_stdc=no 2983 fi 2984 rm -f conftest* 2985 2986 fi 2987 2988 if test $ac_cv_header_stdc = yes; then 2989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2990 cat >conftest.$ac_ext <<_ACEOF 2991 /* confdefs.h. */ 2992 _ACEOF 2993 cat confdefs.h >>conftest.$ac_ext 2994 cat >>conftest.$ac_ext <<_ACEOF 2995 /* end confdefs.h. */ 2996 #include <stdlib.h> 2997 2998 _ACEOF 2999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3000 $EGREP "free" >/dev/null 2>&1; then 3001 : 3002 else 3003 ac_cv_header_stdc=no 3004 fi 3005 rm -f conftest* 3006 3007 fi 3008 3009 if test $ac_cv_header_stdc = yes; then 3010 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3011 if test "$cross_compiling" = yes; then 3012 : 3013 else 3014 cat >conftest.$ac_ext <<_ACEOF 3015 /* confdefs.h. */ 3016 _ACEOF 3017 cat confdefs.h >>conftest.$ac_ext 3018 cat >>conftest.$ac_ext <<_ACEOF 3019 /* end confdefs.h. */ 3020 #include <ctype.h> 3021 #if ((' ' & 0x0FF) == 0x020) 3022 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3023 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3024 #else 3025 # define ISLOWER(c) \ 3026 (('a' <= (c) && (c) <= 'i') \ 3027 || ('j' <= (c) && (c) <= 'r') \ 3028 || ('s' <= (c) && (c) <= 'z')) 3029 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3030 #endif 3031 3032 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3033 int 3034 main () 3035 { 3036 int i; 3037 for (i = 0; i < 256; i++) 3038 if (XOR (islower (i), ISLOWER (i)) 3039 || toupper (i) != TOUPPER (i)) 3040 exit(2); 3041 exit (0); 3042 } 3043 _ACEOF 3044 rm -f conftest$ac_exeext 3045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3046 (eval $ac_link) 2>&5 3047 ac_status=$? 3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3051 (eval $ac_try) 2>&5 3052 ac_status=$? 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3054 (exit $ac_status); }; }; then 3055 : 3056 else 3057 echo "$as_me: program exited with status $ac_status" >&5 3058 echo "$as_me: failed program was:" >&5 3059 sed 's/^/| /' conftest.$ac_ext >&5 3060 3061 ( exit $ac_status ) 3062 ac_cv_header_stdc=no 3063 fi 3064 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3065 fi 3066 fi 3067 fi 3068 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3069 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3070 if test $ac_cv_header_stdc = yes; then 3071 3072 cat >>confdefs.h <<\_ACEOF 3073 #define STDC_HEADERS 1 3074 _ACEOF 3075 3076 fi 3077 3078 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3089 inttypes.h stdint.h unistd.h 3090 do 3091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3092 echo "$as_me:$LINENO: checking for $ac_header" >&5 3093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3094 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3095 echo $ECHO_N "(cached) $ECHO_C" >&6 3096 else 3097 cat >conftest.$ac_ext <<_ACEOF 3098 /* confdefs.h. */ 3099 _ACEOF 3100 cat confdefs.h >>conftest.$ac_ext 3101 cat >>conftest.$ac_ext <<_ACEOF 3102 /* end confdefs.h. */ 3103 $ac_includes_default 3104 3105 #include <$ac_header> 3106 _ACEOF 3107 rm -f conftest.$ac_objext 3108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3109 (eval $ac_compile) 2>conftest.er1 3110 ac_status=$? 3111 grep -v '^ *+' conftest.er1 >conftest.err 3112 rm -f conftest.er1 3113 cat conftest.err >&5 3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3115 (exit $ac_status); } && 3116 { ac_try='test -z "$ac_c_werror_flag" 3117 || test ! -s conftest.err' 3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3119 (eval $ac_try) 2>&5 3120 ac_status=$? 3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 (exit $ac_status); }; } && 3123 { ac_try='test -s conftest.$ac_objext' 3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3125 (eval $ac_try) 2>&5 3126 ac_status=$? 3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3128 (exit $ac_status); }; }; then 3129 eval "$as_ac_Header=yes" 3130 else 3131 echo "$as_me: failed program was:" >&5 3132 sed 's/^/| /' conftest.$ac_ext >&5 3133 3134 eval "$as_ac_Header=no" 3135 fi 3136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3137 fi 3138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3140 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3141 cat >>confdefs.h <<_ACEOF 3142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3143 _ACEOF 3144 3145 fi 3146 3147 done 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 for ac_header in stdlib.h string.h unistd.h time.h sys/time.h sys/types.h signal.h syslog.h sys/select.h netinet/in.h arpa/inet.h sys/socket.h ssl.h openssl/ssl.h ssl/ssl.h fcntl.h dirent.h ctype.h assert.h endian.h stdarg.h utime.h fnmatch.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h sys/resource.h 3179 do 3180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3181 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3182 echo "$as_me:$LINENO: checking for $ac_header" >&5 3183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3184 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3185 echo $ECHO_N "(cached) $ECHO_C" >&6 3186 fi 3187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3189 else 3190 # Is the header compilable? 3191 echo "$as_me:$LINENO: checking $ac_header usability" >&5 3192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3193 cat >conftest.$ac_ext <<_ACEOF 3194 /* confdefs.h. */ 3195 _ACEOF 3196 cat confdefs.h >>conftest.$ac_ext 3197 cat >>conftest.$ac_ext <<_ACEOF 3198 /* end confdefs.h. */ 3199 $ac_includes_default 3200 #include <$ac_header> 3201 _ACEOF 3202 rm -f conftest.$ac_objext 3203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3204 (eval $ac_compile) 2>conftest.er1 3205 ac_status=$? 3206 grep -v '^ *+' conftest.er1 >conftest.err 3207 rm -f conftest.er1 3208 cat conftest.err >&5 3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3210 (exit $ac_status); } && 3211 { ac_try='test -z "$ac_c_werror_flag" 3212 || test ! -s conftest.err' 3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3214 (eval $ac_try) 2>&5 3215 ac_status=$? 3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3217 (exit $ac_status); }; } && 3218 { ac_try='test -s conftest.$ac_objext' 3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3220 (eval $ac_try) 2>&5 3221 ac_status=$? 3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3223 (exit $ac_status); }; }; then 3224 ac_header_compiler=yes 3225 else 3226 echo "$as_me: failed program was:" >&5 3227 sed 's/^/| /' conftest.$ac_ext >&5 3228 3229 ac_header_compiler=no 3230 fi 3231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3233 echo "${ECHO_T}$ac_header_compiler" >&6 3234 3235 # Is the header present? 3236 echo "$as_me:$LINENO: checking $ac_header presence" >&5 3237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3238 cat >conftest.$ac_ext <<_ACEOF 3239 /* confdefs.h. */ 3240 _ACEOF 3241 cat confdefs.h >>conftest.$ac_ext 3242 cat >>conftest.$ac_ext <<_ACEOF 3243 /* end confdefs.h. */ 3244 #include <$ac_header> 3245 _ACEOF 3246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3248 ac_status=$? 3249 grep -v '^ *+' conftest.er1 >conftest.err 3250 rm -f conftest.er1 3251 cat conftest.err >&5 3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3253 (exit $ac_status); } >/dev/null; then 3254 if test -s conftest.err; then 3255 ac_cpp_err=$ac_c_preproc_warn_flag 3256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3257 else 3258 ac_cpp_err= 3259 fi 3260 else 3261 ac_cpp_err=yes 3262 fi 3263 if test -z "$ac_cpp_err"; then 3264 ac_header_preproc=yes 3265 else 3266 echo "$as_me: failed program was:" >&5 3267 sed 's/^/| /' conftest.$ac_ext >&5 3268 3269 ac_header_preproc=no 3270 fi 3271 rm -f conftest.err conftest.$ac_ext 3272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3273 echo "${ECHO_T}$ac_header_preproc" >&6 3274 3275 # So? What about this header? 3276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3277 yes:no: ) 3278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3282 ac_header_preproc=yes 3283 ;; 3284 no:yes:* ) 3285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3297 ( 3298 cat <<\_ASBOX 3299 ## ------------------------------------ ## 3300 ## Report this to the backuppcd lists. ## 3301 ## ------------------------------------ ## 3302 _ASBOX 3303 ) | 3304 sed "s/^/$as_me: WARNING: /" >&2 3305 ;; 3306 esac 3307 echo "$as_me:$LINENO: checking for $ac_header" >&5 3308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3309 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3310 echo $ECHO_N "(cached) $ECHO_C" >&6 3311 else 3312 eval "$as_ac_Header=\$ac_header_preproc" 3313 fi 3314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3316 3317 fi 3318 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3319 cat >>confdefs.h <<_ACEOF 3320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3321 _ACEOF 3322 3323 fi 3324 3325 done 3326 3327 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 3328 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3329 if test "${ac_cv_header_time+set}" = set; then 3330 echo $ECHO_N "(cached) $ECHO_C" >&6 3331 else 3332 cat >conftest.$ac_ext <<_ACEOF 3333 /* confdefs.h. */ 3334 _ACEOF 3335 cat confdefs.h >>conftest.$ac_ext 3336 cat >>conftest.$ac_ext <<_ACEOF 3337 /* end confdefs.h. */ 3338 #include <sys/types.h> 3339 #include <sys/time.h> 3340 #include <time.h> 3341 3342 int 3343 main () 3344 { 3345 if ((struct tm *) 0) 3346 return 0; 3347 ; 3348 return 0; 3349 } 3350 _ACEOF 3351 rm -f conftest.$ac_objext 3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3353 (eval $ac_compile) 2>conftest.er1 3354 ac_status=$? 3355 grep -v '^ *+' conftest.er1 >conftest.err 3356 rm -f conftest.er1 3357 cat conftest.err >&5 3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3359 (exit $ac_status); } && 3360 { ac_try='test -z "$ac_c_werror_flag" 3361 || test ! -s conftest.err' 3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3363 (eval $ac_try) 2>&5 3364 ac_status=$? 3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3366 (exit $ac_status); }; } && 3367 { ac_try='test -s conftest.$ac_objext' 3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3369 (eval $ac_try) 2>&5 3370 ac_status=$? 3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3372 (exit $ac_status); }; }; then 3373 ac_cv_header_time=yes 3374 else 3375 echo "$as_me: failed program was:" >&5 3376 sed 's/^/| /' conftest.$ac_ext >&5 3377 3378 ac_cv_header_time=no 3379 fi 3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3381 fi 3382 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 3383 echo "${ECHO_T}$ac_cv_header_time" >&6 3384 if test $ac_cv_header_time = yes; then 3385 3386 cat >>confdefs.h <<\_ACEOF 3387 #define TIME_WITH_SYS_TIME 1 3388 _ACEOF 3389 3390 fi 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 for ac_func in sysinfo openlog syslog setsid fork fcntl stat lstat lchown symlink readlink signal getenv utime statfs getmntinfo setpriority 3410 do 3411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3412 echo "$as_me:$LINENO: checking for $ac_func" >&5 3413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3414 if eval "test \"\${$as_ac_var+set}\" = set"; then 3415 echo $ECHO_N "(cached) $ECHO_C" >&6 3416 else 3417 cat >conftest.$ac_ext <<_ACEOF 3418 /* confdefs.h. */ 3419 _ACEOF 3420 cat confdefs.h >>conftest.$ac_ext 3421 cat >>conftest.$ac_ext <<_ACEOF 3422 /* end confdefs.h. */ 3423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 3424 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3425 #define $ac_func innocuous_$ac_func 3426 3427 /* System header to define __stub macros and hopefully few prototypes, 3428 which can conflict with char $ac_func (); below. 3429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3430 <limits.h> exists even on freestanding compilers. */ 3431 3432 #ifdef __STDC__ 3433 # include <limits.h> 3434 #else 3435 # include <assert.h> 3436 #endif 3437 3438 #undef $ac_func 3439 3440 /* Override any gcc2 internal prototype to avoid an error. */ 3441 #ifdef __cplusplus 3442 extern "C" 3443 { 3444 #endif 3445 /* We use char because int might match the return type of a gcc2 3446 builtin and then its argument prototype would still apply. */ 3447 char $ac_func (); 3448 /* The GNU C library defines this for functions which it implements 3449 to always fail with ENOSYS. Some functions are actually named 3450 something starting with __ and the normal name is an alias. */ 3451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3452 choke me 3453 #else 3454 char (*f) () = $ac_func; 3455 #endif 3456 #ifdef __cplusplus 3457 } 3458 #endif 3459 3460 int 3461 main () 3462 { 3463 return f != $ac_func; 3464 ; 3465 return 0; 3466 } 3467 _ACEOF 3468 rm -f conftest.$ac_objext conftest$ac_exeext 3469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3470 (eval $ac_link) 2>conftest.er1 3471 ac_status=$? 3472 grep -v '^ *+' conftest.er1 >conftest.err 3473 rm -f conftest.er1 3474 cat conftest.err >&5 3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3476 (exit $ac_status); } && 3477 { ac_try='test -z "$ac_c_werror_flag" 3478 || test ! -s conftest.err' 3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3480 (eval $ac_try) 2>&5 3481 ac_status=$? 3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3483 (exit $ac_status); }; } && 3484 { ac_try='test -s conftest$ac_exeext' 3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3486 (eval $ac_try) 2>&5 3487 ac_status=$? 3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3489 (exit $ac_status); }; }; then 3490 eval "$as_ac_var=yes" 3491 else 3492 echo "$as_me: failed program was:" >&5 3493 sed 's/^/| /' conftest.$ac_ext >&5 3494 3495 eval "$as_ac_var=no" 3496 fi 3497 rm -f conftest.err conftest.$ac_objext \ 3498 conftest$ac_exeext conftest.$ac_ext 3499 fi 3500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3502 if test `eval echo '${'$as_ac_var'}'` = yes; then 3503 cat >>confdefs.h <<_ACEOF 3504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3505 _ACEOF 3506 3507 fi 3508 done 3509 3510 3511 3512 3513 3514 3515 for ac_func in htonll ntohll chown link fnmatch 3516 do 3517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3518 echo "$as_me:$LINENO: checking for $ac_func" >&5 3519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3520 if eval "test \"\${$as_ac_var+set}\" = set"; then 3521 echo $ECHO_N "(cached) $ECHO_C" >&6 3522 else 3523 cat >conftest.$ac_ext <<_ACEOF 3524 /* confdefs.h. */ 3525 _ACEOF 3526 cat confdefs.h >>conftest.$ac_ext 3527 cat >>conftest.$ac_ext <<_ACEOF 3528 /* end confdefs.h. */ 3529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 3530 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3531 #define $ac_func innocuous_$ac_func 3532 3533 /* System header to define __stub macros and hopefully few prototypes, 3534 which can conflict with char $ac_func (); below. 3535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3536 <limits.h> exists even on freestanding compilers. */ 3537 3538 #ifdef __STDC__ 3539 # include <limits.h> 3540 #else 3541 # include <assert.h> 3542 #endif 3543 3544 #undef $ac_func 3545 3546 /* Override any gcc2 internal prototype to avoid an error. */ 3547 #ifdef __cplusplus 3548 extern "C" 3549 { 3550 #endif 3551 /* We use char because int might match the return type of a gcc2 3552 builtin and then its argument prototype would still apply. */ 3553 char $ac_func (); 3554 /* The GNU C library defines this for functions which it implements 3555 to always fail with ENOSYS. Some functions are actually named 3556 something starting with __ and the normal name is an alias. */ 3557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3558 choke me 3559 #else 3560 char (*f) () = $ac_func; 3561 #endif 3562 #ifdef __cplusplus 3563 } 3564 #endif 3565 3566 int 3567 main () 3568 { 3569 return f != $ac_func; 3570 ; 3571 return 0; 3572 } 3573 _ACEOF 3574 rm -f conftest.$ac_objext conftest$ac_exeext 3575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3576 (eval $ac_link) 2>conftest.er1 3577 ac_status=$? 3578 grep -v '^ *+' conftest.er1 >conftest.err 3579 rm -f conftest.er1 3580 cat conftest.err >&5 3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3582 (exit $ac_status); } && 3583 { ac_try='test -z "$ac_c_werror_flag" 3584 || test ! -s conftest.err' 3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3586 (eval $ac_try) 2>&5 3587 ac_status=$? 3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3589 (exit $ac_status); }; } && 3590 { ac_try='test -s conftest$ac_exeext' 3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3592 (eval $ac_try) 2>&5 3593 ac_status=$? 3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3595 (exit $ac_status); }; }; then 3596 eval "$as_ac_var=yes" 3597 else 3598 echo "$as_me: failed program was:" >&5 3599 sed 's/^/| /' conftest.$ac_ext >&5 3600 3601 eval "$as_ac_var=no" 3602 fi 3603 rm -f conftest.err conftest.$ac_objext \ 3604 conftest$ac_exeext conftest.$ac_ext 3605 fi 3606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3608 if test `eval echo '${'$as_ac_var'}'` = yes; then 3609 cat >>confdefs.h <<_ACEOF 3610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3611 _ACEOF 3612 3613 else 3614 case $LIBOBJS in 3615 "$ac_func.$ac_objext" | \ 3616 *" $ac_func.$ac_objext" | \ 3617 "$ac_func.$ac_objext "* | \ 3618 *" $ac_func.$ac_objext "* ) ;; 3619 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 3620 esac 3621 3622 fi 3623 done 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 for ac_header in arpa/inet.h errno.h fcntl.h netdb.h netinet/in.h stdarg.h stdio.h stdlib.h string.h sys/socket.h sys/stat.h sys/types.h unistd.h 3643 do 3644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3645 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3646 echo "$as_me:$LINENO: checking for $ac_header" >&5 3647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3648 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3649 echo $ECHO_N "(cached) $ECHO_C" >&6 3650 fi 3651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3653 else 3654 # Is the header compilable? 3655 echo "$as_me:$LINENO: checking $ac_header usability" >&5 3656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3657 cat >conftest.$ac_ext <<_ACEOF 3658 /* confdefs.h. */ 3659 _ACEOF 3660 cat confdefs.h >>conftest.$ac_ext 3661 cat >>conftest.$ac_ext <<_ACEOF 3662 /* end confdefs.h. */ 3663 $ac_includes_default 3664 #include <$ac_header> 3665 _ACEOF 3666 rm -f conftest.$ac_objext 3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3668 (eval $ac_compile) 2>conftest.er1 3669 ac_status=$? 3670 grep -v '^ *+' conftest.er1 >conftest.err 3671 rm -f conftest.er1 3672 cat conftest.err >&5 3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3674 (exit $ac_status); } && 3675 { ac_try='test -z "$ac_c_werror_flag" 3676 || test ! -s conftest.err' 3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3678 (eval $ac_try) 2>&5 3679 ac_status=$? 3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 (exit $ac_status); }; } && 3682 { ac_try='test -s conftest.$ac_objext' 3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3684 (eval $ac_try) 2>&5 3685 ac_status=$? 3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3687 (exit $ac_status); }; }; then 3688 ac_header_compiler=yes 3689 else 3690 echo "$as_me: failed program was:" >&5 3691 sed 's/^/| /' conftest.$ac_ext >&5 3692 3693 ac_header_compiler=no 3694 fi 3695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3697 echo "${ECHO_T}$ac_header_compiler" >&6 3698 3699 # Is the header present? 3700 echo "$as_me:$LINENO: checking $ac_header presence" >&5 3701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3702 cat >conftest.$ac_ext <<_ACEOF 3703 /* confdefs.h. */ 3704 _ACEOF 3705 cat confdefs.h >>conftest.$ac_ext 3706 cat >>conftest.$ac_ext <<_ACEOF 3707 /* end confdefs.h. */ 3708 #include <$ac_header> 3709 _ACEOF 3710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3712 ac_status=$? 3713 grep -v '^ *+' conftest.er1 >conftest.err 3714 rm -f conftest.er1 3715 cat conftest.err >&5 3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3717 (exit $ac_status); } >/dev/null; then 3718 if test -s conftest.err; then 3719 ac_cpp_err=$ac_c_preproc_warn_flag 3720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3721 else 3722 ac_cpp_err= 3723 fi 3724 else 3725 ac_cpp_err=yes 3726 fi 3727 if test -z "$ac_cpp_err"; then 3728 ac_header_preproc=yes 3729 else 3730 echo "$as_me: failed program was:" >&5 3731 sed 's/^/| /' conftest.$ac_ext >&5 3732 3733 ac_header_preproc=no 3734 fi 3735 rm -f conftest.err conftest.$ac_ext 3736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3737 echo "${ECHO_T}$ac_header_preproc" >&6 3738 3739 # So? What about this header? 3740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3741 yes:no: ) 3742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3746 ac_header_preproc=yes 3747 ;; 3748 no:yes:* ) 3749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3761 ( 3762 cat <<\_ASBOX 3763 ## ------------------------------------ ## 3764 ## Report this to the backuppcd lists. ## 3765 ## ------------------------------------ ## 3766 _ASBOX 3767 ) | 3768 sed "s/^/$as_me: WARNING: /" >&2 3769 ;; 3770 esac 3771 echo "$as_me:$LINENO: checking for $ac_header" >&5 3772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3773 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3774 echo $ECHO_N "(cached) $ECHO_C" >&6 3775 else 3776 eval "$as_ac_Header=\$ac_header_preproc" 3777 fi 3778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3780 3781 fi 3782 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3783 cat >>confdefs.h <<_ACEOF 3784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3785 _ACEOF 3786 3787 fi 3788 3789 done 3790 3791 3792 echo "$as_me:$LINENO: checking for socklen_t" >&5 3793 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 3794 if test "${ac_cv_type_socklen_t+set}" = set; then 3795 echo $ECHO_N "(cached) $ECHO_C" >&6 3796 else 3797 cat >conftest.$ac_ext <<_ACEOF 3798 /* confdefs.h. */ 3799 _ACEOF 3800 cat confdefs.h >>conftest.$ac_ext 3801 cat >>conftest.$ac_ext <<_ACEOF 3802 /* end confdefs.h. */ 3803 3804 #ifdef HAVE_SYS_TYPES_H 3805 #include <sys/types.h> 3806 #endif 3807 #ifdef HAVE_SYS_SOCKET_H 3808 #include <sys/socket.h> 3809 #endif 3810 3811 3812 int 3813 main () 3814 { 3815 if ((socklen_t *) 0) 3816 return 0; 3817 if (sizeof (socklen_t)) 3818 return 0; 3819 ; 3820 return 0; 3821 } 3822 _ACEOF 3823 rm -f conftest.$ac_objext 3824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3825 (eval $ac_compile) 2>conftest.er1 3826 ac_status=$? 3827 grep -v '^ *+' conftest.er1 >conftest.err 3828 rm -f conftest.er1 3829 cat conftest.err >&5 3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3831 (exit $ac_status); } && 3832 { ac_try='test -z "$ac_c_werror_flag" 3833 || test ! -s conftest.err' 3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3835 (eval $ac_try) 2>&5 3836 ac_status=$? 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3838 (exit $ac_status); }; } && 3839 { ac_try='test -s conftest.$ac_objext' 3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3841 (eval $ac_try) 2>&5 3842 ac_status=$? 3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3844 (exit $ac_status); }; }; then 3845 ac_cv_type_socklen_t=yes 3846 else 3847 echo "$as_me: failed program was:" >&5 3848 sed 's/^/| /' conftest.$ac_ext >&5 3849 3850 ac_cv_type_socklen_t=no 3851 fi 3852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3853 fi 3854 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 3855 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 3856 if test $ac_cv_type_socklen_t = yes; then 3857 3858 3859 cat >>confdefs.h <<\_ACEOF 3860 #define HAVE_SOCKLEN_T 1 3861 _ACEOF 3862 3863 3864 else 3865 3866 3867 cat >>confdefs.h <<\_ACEOF 3868 #define NEED_SOCKLEN_T 1 3869 _ACEOF 3870 3871 3872 fi 3873 3874 3875 echo "$as_me:$LINENO: checking for library containing inet_aton" >&5 3876 echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6 3877 if test "${ac_cv_search_inet_aton+set}" = set; then 3878 echo $ECHO_N "(cached) $ECHO_C" >&6 3879 else 3880 ac_func_search_save_LIBS=$LIBS 3881 ac_cv_search_inet_aton=no 3882 cat >conftest.$ac_ext <<_ACEOF 3883 /* confdefs.h. */ 3884 _ACEOF 3885 cat confdefs.h >>conftest.$ac_ext 3886 cat >>conftest.$ac_ext <<_ACEOF 3887 /* end confdefs.h. */ 3888 3889 /* Override any gcc2 internal prototype to avoid an error. */ 3890 #ifdef __cplusplus 3891 extern "C" 3892 #endif 3893 /* We use char because int might match the return type of a gcc2 3894 builtin and then its argument prototype would still apply. */ 3895 char inet_aton (); 3896 int 3897 main () 3898 { 3899 inet_aton (); 3900 ; 3901 return 0; 3902 } 3903 _ACEOF 3904 rm -f conftest.$ac_objext conftest$ac_exeext 3905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3906 (eval $ac_link) 2>conftest.er1 3907 ac_status=$? 3908 grep -v '^ *+' conftest.er1 >conftest.err 3909 rm -f conftest.er1 3910 cat conftest.err >&5 3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3912 (exit $ac_status); } && 3913 { ac_try='test -z "$ac_c_werror_flag" 3914 || test ! -s conftest.err' 3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3916 (eval $ac_try) 2>&5 3917 ac_status=$? 3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3919 (exit $ac_status); }; } && 3920 { ac_try='test -s conftest$ac_exeext' 3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3922 (eval $ac_try) 2>&5 3923 ac_status=$? 3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3925 (exit $ac_status); }; }; then 3926 ac_cv_search_inet_aton="none required" 3927 else 3928 echo "$as_me: failed program was:" >&5 3929 sed 's/^/| /' conftest.$ac_ext >&5 3930 3931 fi 3932 rm -f conftest.err conftest.$ac_objext \ 3933 conftest$ac_exeext conftest.$ac_ext 3934 if test "$ac_cv_search_inet_aton" = no; then 3935 for ac_lib in xnet ws2_32 wsock32; do 3936 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3937 cat >conftest.$ac_ext <<_ACEOF 3938 /* confdefs.h. */ 3939 _ACEOF 3940 cat confdefs.h >>conftest.$ac_ext 3941 cat >>conftest.$ac_ext <<_ACEOF 3942 /* end confdefs.h. */ 3943 3944 /* Override any gcc2 internal prototype to avoid an error. */ 3945 #ifdef __cplusplus 3946 extern "C" 3947 #endif 3948 /* We use char because int might match the return type of a gcc2 3949 builtin and then its argument prototype would still apply. */ 3950 char inet_aton (); 3951 int 3952 main () 3953 { 3954 inet_aton (); 3955 ; 3956 return 0; 3957 } 3958 _ACEOF 3959 rm -f conftest.$ac_objext conftest$ac_exeext 3960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3961 (eval $ac_link) 2>conftest.er1 3962 ac_status=$? 3963 grep -v '^ *+' conftest.er1 >conftest.err 3964 rm -f conftest.er1 3965 cat conftest.err >&5 3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3967 (exit $ac_status); } && 3968 { ac_try='test -z "$ac_c_werror_flag" 3969 || test ! -s conftest.err' 3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3971 (eval $ac_try) 2>&5 3972 ac_status=$? 3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3974 (exit $ac_status); }; } && 3975 { ac_try='test -s conftest$ac_exeext' 3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3977 (eval $ac_try) 2>&5 3978 ac_status=$? 3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3980 (exit $ac_status); }; }; then 3981 ac_cv_search_inet_aton="-l$ac_lib" 3982 break 3983 else 3984 echo "$as_me: failed program was:" >&5 3985 sed 's/^/| /' conftest.$ac_ext >&5 3986 3987 fi 3988 rm -f conftest.err conftest.$ac_objext \ 3989 conftest$ac_exeext conftest.$ac_ext 3990 done 3991 fi 3992 LIBS=$ac_func_search_save_LIBS 3993 fi 3994 echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5 3995 echo "${ECHO_T}$ac_cv_search_inet_aton" >&6 3996 if test "$ac_cv_search_inet_aton" != no; then 3997 test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS" 3998 3999 4000 cat >>confdefs.h <<\_ACEOF 4001 #define HAVE_INET_ATON 1 4002 _ACEOF 4003 4004 4005 else 4006 4007 echo "$as_me:$LINENO: checking for library containing inet_addr" >&5 4008 echo $ECHO_N "checking for library containing inet_addr... $ECHO_C" >&6 4009 if test "${ac_cv_search_inet_addr+set}" = set; then 4010 echo $ECHO_N "(cached) $ECHO_C" >&6 4011 else 4012 ac_func_search_save_LIBS=$LIBS 4013 ac_cv_search_inet_addr=no 4014 cat >conftest.$ac_ext <<_ACEOF 4015 /* confdefs.h. */ 4016 _ACEOF 4017 cat confdefs.h >>conftest.$ac_ext 4018 cat >>conftest.$ac_ext <<_ACEOF 4019 /* end confdefs.h. */ 4020 4021 /* Override any gcc2 internal prototype to avoid an error. */ 4022 #ifdef __cplusplus 4023 extern "C" 4024 #endif 4025 /* We use char because int might match the return type of a gcc2 4026 builtin and then its argument prototype would still apply. */ 4027 char inet_addr (); 4028 int 4029 main () 4030 { 4031 inet_addr (); 4032 ; 4033 return 0; 4034 } 4035 _ACEOF 4036 rm -f conftest.$ac_objext conftest$ac_exeext 4037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4038 (eval $ac_link) 2>conftest.er1 4039 ac_status=$? 4040 grep -v '^ *+' conftest.er1 >conftest.err 4041 rm -f conftest.er1 4042 cat conftest.err >&5 4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4044 (exit $ac_status); } && 4045 { ac_try='test -z "$ac_c_werror_flag" 4046 || test ! -s conftest.err' 4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4048 (eval $ac_try) 2>&5 4049 ac_status=$? 4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4051 (exit $ac_status); }; } && 4052 { ac_try='test -s conftest$ac_exeext' 4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4054 (eval $ac_try) 2>&5 4055 ac_status=$? 4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4057 (exit $ac_status); }; }; then 4058 ac_cv_search_inet_addr="none required" 4059 else 4060 echo "$as_me: failed program was:" >&5 4061 sed 's/^/| /' conftest.$ac_ext >&5 4062 4063 fi 4064 rm -f conftest.err conftest.$ac_objext \ 4065 conftest$ac_exeext conftest.$ac_ext 4066 if test "$ac_cv_search_inet_addr" = no; then 4067 for ac_lib in nsl ws2_32 wsock32; do 4068 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4069 cat >conftest.$ac_ext <<_ACEOF 4070 /* confdefs.h. */ 4071 _ACEOF 4072 cat confdefs.h >>conftest.$ac_ext 4073 cat >>conftest.$ac_ext <<_ACEOF 4074 /* end confdefs.h. */ 4075 4076 /* Override any gcc2 internal prototype to avoid an error. */ 4077 #ifdef __cplusplus 4078 extern "C" 4079 #endif 4080 /* We use char because int might match the return type of a gcc2 4081 builtin and then its argument prototype would still apply. */ 4082 char inet_addr (); 4083 int 4084 main () 4085 { 4086 inet_addr (); 4087 ; 4088 return 0; 4089 } 4090 _ACEOF 4091 rm -f conftest.$ac_objext conftest$ac_exeext 4092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4093 (eval $ac_link) 2>conftest.er1 4094 ac_status=$? 4095 grep -v '^ *+' conftest.er1 >conftest.err 4096 rm -f conftest.er1 4097 cat conftest.err >&5 4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4099 (exit $ac_status); } && 4100 { ac_try='test -z "$ac_c_werror_flag" 4101 || test ! -s conftest.err' 4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4103 (eval $ac_try) 2>&5 4104 ac_status=$? 4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4106 (exit $ac_status); }; } && 4107 { ac_try='test -s conftest$ac_exeext' 4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4109 (eval $ac_try) 2>&5 4110 ac_status=$? 4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4112 (exit $ac_status); }; }; then 4113 ac_cv_search_inet_addr="-l$ac_lib" 4114 break 4115 else 4116 echo "$as_me: failed program was:" >&5 4117 sed 's/^/| /' conftest.$ac_ext >&5 4118 4119 fi 4120 rm -f conftest.err conftest.$ac_objext \ 4121 conftest$ac_exeext conftest.$ac_ext 4122 done 4123 fi 4124 LIBS=$ac_func_search_save_LIBS 4125 fi 4126 echo "$as_me:$LINENO: result: $ac_cv_search_inet_addr" >&5 4127 echo "${ECHO_T}$ac_cv_search_inet_addr" >&6 4128 if test "$ac_cv_search_inet_addr" != no; then 4129 test "$ac_cv_search_inet_addr" = "none required" || LIBS="$ac_cv_search_inet_addr $LIBS" 4130 4131 4132 cat >>confdefs.h <<\_ACEOF 4133 #define HAVE_INET_ADDR 1 4134 _ACEOF 4135 4136 4137 else 4138 4139 { echo "$as_me:$LINENO: WARNING: Couldn't find inet_addr or inet_aton" >&5 4140 echo "$as_me: WARNING: Couldn't find inet_addr or inet_aton" >&2;} 4141 4142 fi 4143 4144 4145 fi 4146 4147 echo "$as_me:$LINENO: checking for library containing connect" >&5 4148 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6 4149 if test "${ac_cv_search_connect+set}" = set; then 4150 echo $ECHO_N "(cached) $ECHO_C" >&6 4151 else 4152 ac_func_search_save_LIBS=$LIBS 4153 ac_cv_search_connect=no 4154 cat >conftest.$ac_ext <<_ACEOF 4155 /* confdefs.h. */ 4156 _ACEOF 4157 cat confdefs.h >>conftest.$ac_ext 4158 cat >>conftest.$ac_ext <<_ACEOF 4159 /* end confdefs.h. */ 4160 4161 /* Override any gcc2 internal prototype to avoid an error. */ 4162 #ifdef __cplusplus 4163 extern "C" 4164 #endif 4165 /* We use char because int might match the return type of a gcc2 4166 builtin and then its argument prototype would still apply. */ 4167 char connect (); 4168 int 4169 main () 4170 { 4171 connect (); 4172 ; 4173 return 0; 4174 } 4175 _ACEOF 4176 rm -f conftest.$ac_objext conftest$ac_exeext 4177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4178 (eval $ac_link) 2>conftest.er1 4179 ac_status=$? 4180 grep -v '^ *+' conftest.er1 >conftest.err 4181 rm -f conftest.er1 4182 cat conftest.err >&5 4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4184 (exit $ac_status); } && 4185 { ac_try='test -z "$ac_c_werror_flag" 4186 || test ! -s conftest.err' 4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4188 (eval $ac_try) 2>&5 4189 ac_status=$? 4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4191 (exit $ac_status); }; } && 4192 { ac_try='test -s conftest$ac_exeext' 4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4194 (eval $ac_try) 2>&5 4195 ac_status=$? 4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4197 (exit $ac_status); }; }; then 4198 ac_cv_search_connect="none required" 4199 else 4200 echo "$as_me: failed program was:" >&5 4201 sed 's/^/| /' conftest.$ac_ext >&5 4202 4203 fi 4204 rm -f conftest.err conftest.$ac_objext \ 4205 conftest$ac_exeext conftest.$ac_ext 4206 if test "$ac_cv_search_connect" = no; then 4207 for ac_lib in socket nsl ws2_32 wsock32; do 4208 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4209 cat >conftest.$ac_ext <<_ACEOF 4210 /* confdefs.h. */ 4211 _ACEOF 4212 cat confdefs.h >>conftest.$ac_ext 4213 cat >>conftest.$ac_ext <<_ACEOF 4214 /* end confdefs.h. */ 4215 4216 /* Override any gcc2 internal prototype to avoid an error. */ 4217 #ifdef __cplusplus 4218 extern "C" 4219 #endif 4220 /* We use char because int might match the return type of a gcc2 4221 builtin and then its argument prototype would still apply. */ 4222 char connect (); 4223 int 4224 main () 4225 { 4226 connect (); 4227 ; 4228 return 0; 4229 } 4230 _ACEOF 4231 rm -f conftest.$ac_objext conftest$ac_exeext 4232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4233 (eval $ac_link) 2>conftest.er1 4234 ac_status=$? 4235 grep -v '^ *+' conftest.er1 >conftest.err 4236 rm -f conftest.er1 4237 cat conftest.err >&5 4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4239 (exit $ac_status); } && 4240 { ac_try='test -z "$ac_c_werror_flag" 4241 || test ! -s conftest.err' 4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4243 (eval $ac_try) 2>&5 4244 ac_status=$? 4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4246 (exit $ac_status); }; } && 4247 { ac_try='test -s conftest$ac_exeext' 4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4249 (eval $ac_try) 2>&5 4250 ac_status=$? 4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252 (exit $ac_status); }; }; then 4253 ac_cv_search_connect="-l$ac_lib" 4254 break 4255 else 4256 echo "$as_me: failed program was:" >&5 4257 sed 's/^/| /' conftest.$ac_ext >&5 4258 4259 fi 4260 rm -f conftest.err conftest.$ac_objext \ 4261 conftest$ac_exeext conftest.$ac_ext 4262 done 4263 fi 4264 LIBS=$ac_func_search_save_LIBS 4265 fi 4266 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5 4267 echo "${ECHO_T}$ac_cv_search_connect" >&6 4268 if test "$ac_cv_search_connect" != no; then 4269 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS" 4270 4271 else 4272 { echo "$as_me:$LINENO: WARNING: Couldn't find connect" >&5 4273 echo "$as_me: WARNING: Couldn't find connect" >&2;} 4274 fi 4275 4276 echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5 4277 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6 4278 if test "${ac_cv_search_inet_ntoa+set}" = set; then 4279 echo $ECHO_N "(cached) $ECHO_C" >&6 4280 else 4281 ac_func_search_save_LIBS=$LIBS 4282 ac_cv_search_inet_ntoa=no 4283 cat >conftest.$ac_ext <<_ACEOF 4284 /* confdefs.h. */ 4285 _ACEOF 4286 cat confdefs.h >>conftest.$ac_ext 4287 cat >>conftest.$ac_ext <<_ACEOF 4288 /* end confdefs.h. */ 4289 4290 /* Override any gcc2 internal prototype to avoid an error. */ 4291 #ifdef __cplusplus 4292 extern "C" 4293 #endif 4294 /* We use char because int might match the return type of a gcc2 4295 builtin and then its argument prototype would still apply. */ 4296 char inet_ntoa (); 4297 int 4298 main () 4299 { 4300 inet_ntoa (); 4301 ; 4302 return 0; 4303 } 4304 _ACEOF 4305 rm -f conftest.$ac_objext conftest$ac_exeext 4306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4307 (eval $ac_link) 2>conftest.er1 4308 ac_status=$? 4309 grep -v '^ *+' conftest.er1 >conftest.err 4310 rm -f conftest.er1 4311 cat conftest.err >&5 4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4313 (exit $ac_status); } && 4314 { ac_try='test -z "$ac_c_werror_flag" 4315 || test ! -s conftest.err' 4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4317 (eval $ac_try) 2>&5 4318 ac_status=$? 4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4320 (exit $ac_status); }; } && 4321 { ac_try='test -s conftest$ac_exeext' 4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4323 (eval $ac_try) 2>&5 4324 ac_status=$? 4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4326 (exit $ac_status); }; }; then 4327 ac_cv_search_inet_ntoa="none required" 4328 else 4329 echo "$as_me: failed program was:" >&5 4330 sed 's/^/| /' conftest.$ac_ext >&5 4331 4332 fi 4333 rm -f conftest.err conftest.$ac_objext \ 4334 conftest$ac_exeext conftest.$ac_ext 4335 if test "$ac_cv_search_inet_ntoa" = no; then 4336 for ac_lib in socket nsl ws2_32 wsock32; do 4337 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4338 cat >conftest.$ac_ext <<_ACEOF 4339 /* confdefs.h. */ 4340 _ACEOF 4341 cat confdefs.h >>conftest.$ac_ext 4342 cat >>conftest.$ac_ext <<_ACEOF 4343 /* end confdefs.h. */ 4344 4345 /* Override any gcc2 internal prototype to avoid an error. */ 4346 #ifdef __cplusplus 4347 extern "C" 4348 #endif 4349 /* We use char because int might match the return type of a gcc2 4350 builtin and then its argument prototype would still apply. */ 4351 char inet_ntoa (); 4352 int 4353 main () 4354 { 4355 inet_ntoa (); 4356 ; 4357 return 0; 4358 } 4359 _ACEOF 4360 rm -f conftest.$ac_objext conftest$ac_exeext 4361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4362 (eval $ac_link) 2>conftest.er1 4363 ac_status=$? 4364 grep -v '^ *+' conftest.er1 >conftest.err 4365 rm -f conftest.er1 4366 cat conftest.err >&5 4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4368 (exit $ac_status); } && 4369 { ac_try='test -z "$ac_c_werror_flag" 4370 || test ! -s conftest.err' 4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4372 (eval $ac_try) 2>&5 4373 ac_status=$? 4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4375 (exit $ac_status); }; } && 4376 { ac_try='test -s conftest$ac_exeext' 4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4378 (eval $ac_try) 2>&5 4379 ac_status=$? 4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4381 (exit $ac_status); }; }; then 4382 ac_cv_search_inet_ntoa="-l$ac_lib" 4383 break 4384 else 4385 echo "$as_me: failed program was:" >&5 4386 sed 's/^/| /' conftest.$ac_ext >&5 4387 4388 fi 4389 rm -f conftest.err conftest.$ac_objext \ 4390 conftest$ac_exeext conftest.$ac_ext 4391 done 4392 fi 4393 LIBS=$ac_func_search_save_LIBS 4394 fi 4395 echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5 4396 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6 4397 if test "$ac_cv_search_inet_ntoa" != no; then 4398 test "$ac_cv_search_inet_ntoa" = "none required" || LIBS="$ac_cv_search_inet_ntoa $LIBS" 4399 4400 else 4401 { echo "$as_me:$LINENO: WARNING: Couldn't find inet_ntoa" >&5 4402 echo "$as_me: WARNING: Couldn't find inet_ntoa" >&2;} 4403 fi 4404 4405 4406 4407 4408 if test -z "$ac_cv_sizeof_long"; then 4409 echo "$as_me:$LINENO: checking for inline" >&5 4410 echo $ECHO_N "checking for inline... $ECHO_C" >&6 4411 if test "${ac_cv_c_inline+set}" = set; then 4412 echo $ECHO_N "(cached) $ECHO_C" >&6 4413 else 4414 ac_cv_c_inline=no 4415 for ac_kw in inline __inline__ __inline; do 4416 cat >conftest.$ac_ext <<_ACEOF 4417 /* confdefs.h. */ 4418 _ACEOF 4419 cat confdefs.h >>conftest.$ac_ext 4420 cat >>conftest.$ac_ext <<_ACEOF 4421 /* end confdefs.h. */ 4422 #ifndef __cplusplus 4423 typedef int foo_t; 4424 static $ac_kw foo_t static_foo () {return 0; } 4425 $ac_kw foo_t foo () {return 0; } 4426 #endif 4427 4428 _ACEOF 4429 rm -f conftest.$ac_objext 4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4431 (eval $ac_compile) 2>conftest.er1 4432 ac_status=$? 4433 grep -v '^ *+' conftest.er1 >conftest.err 4434 rm -f conftest.er1 4435 cat conftest.err >&5 4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4437 (exit $ac_status); } && 4438 { ac_try='test -z "$ac_c_werror_flag" 4439 || test ! -s conftest.err' 4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4441 (eval $ac_try) 2>&5 4442 ac_status=$? 4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4444 (exit $ac_status); }; } && 4445 { ac_try='test -s conftest.$ac_objext' 4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4447 (eval $ac_try) 2>&5 4448 ac_status=$? 4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4450 (exit $ac_status); }; }; then 4451 ac_cv_c_inline=$ac_kw; break 4452 else 4453 echo "$as_me: failed program was:" >&5 4454 sed 's/^/| /' conftest.$ac_ext >&5 4455 4456 fi 4457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4458 done 4459 4460 fi 4461 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4462 echo "${ECHO_T}$ac_cv_c_inline" >&6 4463 4464 4465 case $ac_cv_c_inline in 4466 inline | yes) ;; 4467 *) 4468 case $ac_cv_c_inline in 4469 no) ac_val=;; 4470 *) ac_val=$ac_cv_c_inline;; 4471 esac 4472 cat >>confdefs.h <<_ACEOF 4473 #ifndef __cplusplus 4474 #define inline $ac_val 4475 #endif 4476 _ACEOF 4477 ;; 4478 esac 4479 4480 echo "$as_me:$LINENO: checking for long long" >&5 4481 echo $ECHO_N "checking for long long... $ECHO_C" >&6 4482 if test "${ac_cv_type_long_long+set}" = set; then 4483 echo $ECHO_N "(cached) $ECHO_C" >&6 4484 else 4485 cat >conftest.$ac_ext <<_ACEOF 4486 /* confdefs.h. */ 4487 _ACEOF 4488 cat confdefs.h >>conftest.$ac_ext 4489 cat >>conftest.$ac_ext <<_ACEOF 4490 /* end confdefs.h. */ 4491 $ac_includes_default 4492 int 4493 main () 4494 { 4495 if ((long long *) 0) 4496 return 0; 4497 if (sizeof (long long)) 4498 return 0; 4499 ; 4500 return 0; 4501 } 4502 _ACEOF 4503 rm -f conftest.$ac_objext 4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4505 (eval $ac_compile) 2>conftest.er1 4506 ac_status=$? 4507 grep -v '^ *+' conftest.er1 >conftest.err 4508 rm -f conftest.er1 4509 cat conftest.err >&5 4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4511 (exit $ac_status); } && 4512 { ac_try='test -z "$ac_c_werror_flag" 4513 || test ! -s conftest.err' 4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4515 (eval $ac_try) 2>&5 4516 ac_status=$? 4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4518 (exit $ac_status); }; } && 4519 { ac_try='test -s conftest.$ac_objext' 4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4521 (eval $ac_try) 2>&5 4522 ac_status=$? 4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4524 (exit $ac_status); }; }; then 4525 ac_cv_type_long_long=yes 4526 else 4527 echo "$as_me: failed program was:" >&5 4528 sed 's/^/| /' conftest.$ac_ext >&5 4529 4530 ac_cv_type_long_long=no 4531 fi 4532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4533 fi 4534 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 4535 echo "${ECHO_T}$ac_cv_type_long_long" >&6 4536 4537 echo "$as_me:$LINENO: checking size of long long" >&5 4538 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 4539 if test "${ac_cv_sizeof_long_long+set}" = set; then 4540 echo $ECHO_N "(cached) $ECHO_C" >&6 4541 else 4542 if test "$ac_cv_type_long_long" = yes; then 4543 # The cast to unsigned long works around a bug in the HP C Compiler 4544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4546 # This bug is HP SR number 8606223364. 4547 if test "$cross_compiling" = yes; then 4548 # Depending upon the size, compute the lo and hi bounds. 4549 cat >conftest.$ac_ext <<_ACEOF 4550 /* confdefs.h. */ 4551 _ACEOF 4552 cat confdefs.h >>conftest.$ac_ext 4553 cat >>conftest.$ac_ext <<_ACEOF 4554 /* end confdefs.h. */ 4555 $ac_includes_default 4556 int 4557 main () 4558 { 4559 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 4560 test_array [0] = 0 4561 4562 ; 4563 return 0; 4564 } 4565 _ACEOF 4566 rm -f conftest.$ac_objext 4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4568 (eval $ac_compile) 2>conftest.er1 4569 ac_status=$? 4570 grep -v '^ *+' conftest.er1 >conftest.err 4571 rm -f conftest.er1 4572 cat conftest.err >&5 4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4574 (exit $ac_status); } && 4575 { ac_try='test -z "$ac_c_werror_flag" 4576 || test ! -s conftest.err' 4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4578 (eval $ac_try) 2>&5 4579 ac_status=$? 4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4581 (exit $ac_status); }; } && 4582 { ac_try='test -s conftest.$ac_objext' 4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4584 (eval $ac_try) 2>&5 4585 ac_status=$? 4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4587 (exit $ac_status); }; }; then 4588 ac_lo=0 ac_mid=0 4589 while :; do 4590 cat >conftest.$ac_ext <<_ACEOF 4591 /* confdefs.h. */ 4592 _ACEOF 4593 cat confdefs.h >>conftest.$ac_ext 4594 cat >>conftest.$ac_ext <<_ACEOF 4595 /* end confdefs.h. */ 4596 $ac_includes_default 4597 int 4598 main () 4599 { 4600 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 4601 test_array [0] = 0 4602 4603 ; 4604 return 0; 4605 } 4606 _ACEOF 4607 rm -f conftest.$ac_objext 4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4609 (eval $ac_compile) 2>conftest.er1 4610 ac_status=$? 4611 grep -v '^ *+' conftest.er1 >conftest.err 4612 rm -f conftest.er1 4613 cat conftest.err >&5 4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4615 (exit $ac_status); } && 4616 { ac_try='test -z "$ac_c_werror_flag" 4617 || test ! -s conftest.err' 4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4619 (eval $ac_try) 2>&5 4620 ac_status=$? 4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4622 (exit $ac_status); }; } && 4623 { ac_try='test -s conftest.$ac_objext' 4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4625 (eval $ac_try) 2>&5 4626 ac_status=$? 4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4628 (exit $ac_status); }; }; then 4629 ac_hi=$ac_mid; break 4630 else 4631 echo "$as_me: failed program was:" >&5 4632 sed 's/^/| /' conftest.$ac_ext >&5 4633 4634 ac_lo=`expr $ac_mid + 1` 4635 if test $ac_lo -le $ac_mid; then 4636 ac_lo= ac_hi= 4637 break 4638 fi 4639 ac_mid=`expr 2 '*' $ac_mid + 1` 4640 fi 4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4642 done 4643 else 4644 echo "$as_me: failed program was:" >&5 4645 sed 's/^/| /' conftest.$ac_ext >&5 4646 4647 cat >conftest.$ac_ext <<_ACEOF 4648 /* confdefs.h. */ 4649 _ACEOF 4650 cat confdefs.h >>conftest.$ac_ext 4651 cat >>conftest.$ac_ext <<_ACEOF 4652 /* end confdefs.h. */ 4653 $ac_includes_default 4654 int 4655 main () 4656 { 4657 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 4658 test_array [0] = 0 4659 4660 ; 4661 return 0; 4662 } 4663 _ACEOF 4664 rm -f conftest.$ac_objext 4665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4666 (eval $ac_compile) 2>conftest.er1 4667 ac_status=$? 4668 grep -v '^ *+' conftest.er1 >conftest.err 4669 rm -f conftest.er1 4670 cat conftest.err >&5 4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4672 (exit $ac_status); } && 4673 { ac_try='test -z "$ac_c_werror_flag" 4674 || test ! -s conftest.err' 4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4676 (eval $ac_try) 2>&5 4677 ac_status=$? 4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4679 (exit $ac_status); }; } && 4680 { ac_try='test -s conftest.$ac_objext' 4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4682 (eval $ac_try) 2>&5 4683 ac_status=$? 4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4685 (exit $ac_status); }; }; then 4686 ac_hi=-1 ac_mid=-1 4687 while :; do 4688 cat >conftest.$ac_ext <<_ACEOF 4689 /* confdefs.h. */ 4690 _ACEOF 4691 cat confdefs.h >>conftest.$ac_ext 4692 cat >>conftest.$ac_ext <<_ACEOF 4693 /* end confdefs.h. */ 4694 $ac_includes_default 4695 int 4696 main () 4697 { 4698 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 4699 test_array [0] = 0 4700 4701 ; 4702 return 0; 4703 } 4704 _ACEOF 4705 rm -f conftest.$ac_objext 4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4707 (eval $ac_compile) 2>conftest.er1 4708 ac_status=$? 4709 grep -v '^ *+' conftest.er1 >conftest.err 4710 rm -f conftest.er1 4711 cat conftest.err >&5 4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4713 (exit $ac_status); } && 4714 { ac_try='test -z "$ac_c_werror_flag" 4715 || test ! -s conftest.err' 4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4717 (eval $ac_try) 2>&5 4718 ac_status=$? 4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4720 (exit $ac_status); }; } && 4721 { ac_try='test -s conftest.$ac_objext' 4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4723 (eval $ac_try) 2>&5 4724 ac_status=$? 4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4726 (exit $ac_status); }; }; then 4727 ac_lo=$ac_mid; break 4728 else 4729 echo "$as_me: failed program was:" >&5 4730 sed 's/^/| /' conftest.$ac_ext >&5 4731 4732 ac_hi=`expr '(' $ac_mid ')' - 1` 4733 if test $ac_mid -le $ac_hi; then 4734 ac_lo= ac_hi= 4735 break 4736 fi 4737 ac_mid=`expr 2 '*' $ac_mid` 4738 fi 4739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4740 done 4741 else 4742 echo "$as_me: failed program was:" >&5 4743 sed 's/^/| /' conftest.$ac_ext >&5 4744 4745 ac_lo= ac_hi= 4746 fi 4747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4748 fi 4749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4750 # Binary search between lo and hi bounds. 4751 while test "x$ac_lo" != "x$ac_hi"; do 4752 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4753 cat >conftest.$ac_ext <<_ACEOF 4754 /* confdefs.h. */ 4755 _ACEOF 4756 cat confdefs.h >>conftest.$ac_ext 4757 cat >>conftest.$ac_ext <<_ACEOF 4758 /* end confdefs.h. */ 4759 $ac_includes_default 4760 int 4761 main () 4762 { 4763 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 4764 test_array [0] = 0 4765 4766 ; 4767 return 0; 4768 } 4769 _ACEOF 4770 rm -f conftest.$ac_objext 4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4772 (eval $ac_compile) 2>conftest.er1 4773 ac_status=$? 4774 grep -v '^ *+' conftest.er1 >conftest.err 4775 rm -f conftest.er1 4776 cat conftest.err >&5 4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4778 (exit $ac_status); } && 4779 { ac_try='test -z "$ac_c_werror_flag" 4780 || test ! -s conftest.err' 4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4782 (eval $ac_try) 2>&5 4783 ac_status=$? 4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4785 (exit $ac_status); }; } && 4786 { ac_try='test -s conftest.$ac_objext' 4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4788 (eval $ac_try) 2>&5 4789 ac_status=$? 4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4791 (exit $ac_status); }; }; then 4792 ac_hi=$ac_mid 4793 else 4794 echo "$as_me: failed program was:" >&5 4795 sed 's/^/| /' conftest.$ac_ext >&5 4796 4797 ac_lo=`expr '(' $ac_mid ')' + 1` 4798 fi 4799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4800 done 4801 case $ac_lo in 4802 ?*) ac_cv_sizeof_long_long=$ac_lo;; 4803 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 4804 See \`config.log' for more details." >&5 4805 echo "$as_me: error: cannot compute sizeof (long long), 77 4806 See \`config.log' for more details." >&2;} 4807 { (exit 1); exit 1; }; } ;; 4808 esac 4809 else 4810 if test "$cross_compiling" = yes; then 4811 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4812 See \`config.log' for more details." >&5 4813 echo "$as_me: error: cannot run test program while cross compiling 4814 See \`config.log' for more details." >&2;} 4815 { (exit 1); exit 1; }; } 4816 else 4817 cat >conftest.$ac_ext <<_ACEOF 4818 /* confdefs.h. */ 4819 _ACEOF 4820 cat confdefs.h >>conftest.$ac_ext 4821 cat >>conftest.$ac_ext <<_ACEOF 4822 /* end confdefs.h. */ 4823 $ac_includes_default 4824 long longval () { return (long) (sizeof (long long)); } 4825 unsigned long ulongval () { return (long) (sizeof (long long)); } 4826 #include <stdio.h> 4827 #include <stdlib.h> 4828 int 4829 main () 4830 { 4831 4832 FILE *f = fopen ("conftest.val", "w"); 4833 if (! f) 4834 exit (1); 4835 if (((long) (sizeof (long long))) < 0) 4836 { 4837 long i = longval (); 4838 if (i != ((long) (sizeof (long long)))) 4839 exit (1); 4840 fprintf (f, "%ld\n", i); 4841 } 4842 else 4843 { 4844 unsigned long i = ulongval (); 4845 if (i != ((long) (sizeof (long long)))) 4846 exit (1); 4847 fprintf (f, "%lu\n", i); 4848 } 4849 exit (ferror (f) || fclose (f) != 0); 4850 4851 ; 4852 return 0; 4853 } 4854 _ACEOF 4855 rm -f conftest$ac_exeext 4856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4857 (eval $ac_link) 2>&5 4858 ac_status=$? 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4862 (eval $ac_try) 2>&5 4863 ac_status=$? 4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4865 (exit $ac_status); }; }; then 4866 ac_cv_sizeof_long_long=`cat conftest.val` 4867 else 4868 echo "$as_me: program exited with status $ac_status" >&5 4869 echo "$as_me: failed program was:" >&5 4870 sed 's/^/| /' conftest.$ac_ext >&5 4871 4872 ( exit $ac_status ) 4873 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 4874 See \`config.log' for more details." >&5 4875 echo "$as_me: error: cannot compute sizeof (long long), 77 4876 See \`config.log' for more details." >&2;} 4877 { (exit 1); exit 1; }; } 4878 fi 4879 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4880 fi 4881 fi 4882 rm -f conftest.val 4883 else 4884 ac_cv_sizeof_long_long=0 4885 fi 4886 fi 4887 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 4888 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 4889 cat >>confdefs.h <<_ACEOF 4890 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 4891 _ACEOF 4892 4893 4894 echo "$as_me:$LINENO: checking for long" >&5 4895 echo $ECHO_N "checking for long... $ECHO_C" >&6 4896 if test "${ac_cv_type_long+set}" = set; then 4897 echo $ECHO_N "(cached) $ECHO_C" >&6 4898 else 4899 cat >conftest.$ac_ext <<_ACEOF 4900 /* confdefs.h. */ 4901 _ACEOF 4902 cat confdefs.h >>conftest.$ac_ext 4903 cat >>conftest.$ac_ext <<_ACEOF 4904 /* end confdefs.h. */ 4905 $ac_includes_default 4906 int 4907 main () 4908 { 4909 if ((long *) 0) 4910 return 0; 4911 if (sizeof (long)) 4912 return 0; 4913 ; 4914 return 0; 4915 } 4916 _ACEOF 4917 rm -f conftest.$ac_objext 4918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4919 (eval $ac_compile) 2>conftest.er1 4920 ac_status=$? 4921 grep -v '^ *+' conftest.er1 >conftest.err 4922 rm -f conftest.er1 4923 cat conftest.err >&5 4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4925 (exit $ac_status); } && 4926 { ac_try='test -z "$ac_c_werror_flag" 4927 || test ! -s conftest.err' 4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4929 (eval $ac_try) 2>&5 4930 ac_status=$? 4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4932 (exit $ac_status); }; } && 4933 { ac_try='test -s conftest.$ac_objext' 4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4935 (eval $ac_try) 2>&5 4936 ac_status=$? 4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4938 (exit $ac_status); }; }; then 4939 ac_cv_type_long=yes 4940 else 4941 echo "$as_me: failed program was:" >&5 4942 sed 's/^/| /' conftest.$ac_ext >&5 4943 4944 ac_cv_type_long=no 4945 fi 4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4947 fi 4948 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 4949 echo "${ECHO_T}$ac_cv_type_long" >&6 4950 4951 echo "$as_me:$LINENO: checking size of long" >&5 4952 echo $ECHO_N "checking size of long... $ECHO_C" >&6 4953 if test "${ac_cv_sizeof_long+set}" = set; then 4954 echo $ECHO_N "(cached) $ECHO_C" >&6 4955 else 4956 if test "$ac_cv_type_long" = yes; then 4957 # The cast to unsigned long works around a bug in the HP C Compiler 4958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4960 # This bug is HP SR number 8606223364. 4961 if test "$cross_compiling" = yes; then 4962 # Depending upon the size, compute the lo and hi bounds. 4963 cat >conftest.$ac_ext <<_ACEOF 4964 /* confdefs.h. */ 4965 _ACEOF 4966 cat confdefs.h >>conftest.$ac_ext 4967 cat >>conftest.$ac_ext <<_ACEOF 4968 /* end confdefs.h. */ 4969 $ac_includes_default 4970 int 4971 main () 4972 { 4973 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 4974 test_array [0] = 0 4975 4976 ; 4977 return 0; 4978 } 4979 _ACEOF 4980 rm -f conftest.$ac_objext 4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4982 (eval $ac_compile) 2>conftest.er1 4983 ac_status=$? 4984 grep -v '^ *+' conftest.er1 >conftest.err 4985 rm -f conftest.er1 4986 cat conftest.err >&5 4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4988 (exit $ac_status); } && 4989 { ac_try='test -z "$ac_c_werror_flag" 4990 || test ! -s conftest.err' 4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4992 (eval $ac_try) 2>&5 4993 ac_status=$? 4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4995 (exit $ac_status); }; } && 4996 { ac_try='test -s conftest.$ac_objext' 4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4998 (eval $ac_try) 2>&5 4999 ac_status=$? 5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5001 (exit $ac_status); }; }; then 5002 ac_lo=0 ac_mid=0 5003 while :; do 5004 cat >conftest.$ac_ext <<_ACEOF 5005 /* confdefs.h. */ 5006 _ACEOF 5007 cat confdefs.h >>conftest.$ac_ext 5008 cat >>conftest.$ac_ext <<_ACEOF 5009 /* end confdefs.h. */ 5010 $ac_includes_default 5011 int 5012 main () 5013 { 5014 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5015 test_array [0] = 0 5016 5017 ; 5018 return 0; 5019 } 5020 _ACEOF 5021 rm -f conftest.$ac_objext 5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5023 (eval $ac_compile) 2>conftest.er1 5024 ac_status=$? 5025 grep -v '^ *+' conftest.er1 >conftest.err 5026 rm -f conftest.er1 5027 cat conftest.err >&5 5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5029 (exit $ac_status); } && 5030 { ac_try='test -z "$ac_c_werror_flag" 5031 || test ! -s conftest.err' 5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5033 (eval $ac_try) 2>&5 5034 ac_status=$? 5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5036 (exit $ac_status); }; } && 5037 { ac_try='test -s conftest.$ac_objext' 5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5039 (eval $ac_try) 2>&5 5040 ac_status=$? 5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5042 (exit $ac_status); }; }; then 5043 ac_hi=$ac_mid; break 5044 else 5045 echo "$as_me: failed program was:" >&5 5046 sed 's/^/| /' conftest.$ac_ext >&5 5047 5048 ac_lo=`expr $ac_mid + 1` 5049 if test $ac_lo -le $ac_mid; then 5050 ac_lo= ac_hi= 5051 break 5052 fi 5053 ac_mid=`expr 2 '*' $ac_mid + 1` 5054 fi 5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5056 done 5057 else 5058 echo "$as_me: failed program was:" >&5 5059 sed 's/^/| /' conftest.$ac_ext >&5 5060 5061 cat >conftest.$ac_ext <<_ACEOF 5062 /* confdefs.h. */ 5063 _ACEOF 5064 cat confdefs.h >>conftest.$ac_ext 5065 cat >>conftest.$ac_ext <<_ACEOF 5066 /* end confdefs.h. */ 5067 $ac_includes_default 5068 int 5069 main () 5070 { 5071 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 5072 test_array [0] = 0 5073 5074 ; 5075 return 0; 5076 } 5077 _ACEOF 5078 rm -f conftest.$ac_objext 5079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5080 (eval $ac_compile) 2>conftest.er1 5081 ac_status=$? 5082 grep -v '^ *+' conftest.er1 >conftest.err 5083 rm -f conftest.er1 5084 cat conftest.err >&5 5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5086 (exit $ac_status); } && 5087 { ac_try='test -z "$ac_c_werror_flag" 5088 || test ! -s conftest.err' 5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5090 (eval $ac_try) 2>&5 5091 ac_status=$? 5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5093 (exit $ac_status); }; } && 5094 { ac_try='test -s conftest.$ac_objext' 5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5096 (eval $ac_try) 2>&5 5097 ac_status=$? 5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5099 (exit $ac_status); }; }; then 5100 ac_hi=-1 ac_mid=-1 5101 while :; do 5102 cat >conftest.$ac_ext <<_ACEOF 5103 /* confdefs.h. */ 5104 _ACEOF 5105 cat confdefs.h >>conftest.$ac_ext 5106 cat >>conftest.$ac_ext <<_ACEOF 5107 /* end confdefs.h. */ 5108 $ac_includes_default 5109 int 5110 main () 5111 { 5112 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 5113 test_array [0] = 0 5114 5115 ; 5116 return 0; 5117 } 5118 _ACEOF 5119 rm -f conftest.$ac_objext 5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5121 (eval $ac_compile) 2>conftest.er1 5122 ac_status=$? 5123 grep -v '^ *+' conftest.er1 >conftest.err 5124 rm -f conftest.er1 5125 cat conftest.err >&5 5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5127 (exit $ac_status); } && 5128 { ac_try='test -z "$ac_c_werror_flag" 5129 || test ! -s conftest.err' 5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5131 (eval $ac_try) 2>&5 5132 ac_status=$? 5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5134 (exit $ac_status); }; } && 5135 { ac_try='test -s conftest.$ac_objext' 5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5137 (eval $ac_try) 2>&5 5138 ac_status=$? 5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5140 (exit $ac_status); }; }; then 5141 ac_lo=$ac_mid; break 5142 else 5143 echo "$as_me: failed program was:" >&5 5144 sed 's/^/| /' conftest.$ac_ext >&5 5145 5146 ac_hi=`expr '(' $ac_mid ')' - 1` 5147 if test $ac_mid -le $ac_hi; then 5148 ac_lo= ac_hi= 5149 break 5150 fi 5151 ac_mid=`expr 2 '*' $ac_mid` 5152 fi 5153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5154 done 5155 else 5156 echo "$as_me: failed program was:" >&5 5157 sed 's/^/| /' conftest.$ac_ext >&5 5158 5159 ac_lo= ac_hi= 5160 fi 5161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5162 fi 5163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5164 # Binary search between lo and hi bounds. 5165 while test "x$ac_lo" != "x$ac_hi"; do 5166 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5167 cat >conftest.$ac_ext <<_ACEOF 5168 /* confdefs.h. */ 5169 _ACEOF 5170 cat confdefs.h >>conftest.$ac_ext 5171 cat >>conftest.$ac_ext <<_ACEOF 5172 /* end confdefs.h. */ 5173 $ac_includes_default 5174 int 5175 main () 5176 { 5177 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5178 test_array [0] = 0 5179 5180 ; 5181 return 0; 5182 } 5183 _ACEOF 5184 rm -f conftest.$ac_objext 5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5186 (eval $ac_compile) 2>conftest.er1 5187 ac_status=$? 5188 grep -v '^ *+' conftest.er1 >conftest.err 5189 rm -f conftest.er1 5190 cat conftest.err >&5 5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5192 (exit $ac_status); } && 5193 { ac_try='test -z "$ac_c_werror_flag" 5194 || test ! -s conftest.err' 5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5196 (eval $ac_try) 2>&5 5197 ac_status=$? 5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5199 (exit $ac_status); }; } && 5200 { ac_try='test -s conftest.$ac_objext' 5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5202 (eval $ac_try) 2>&5 5203 ac_status=$? 5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5205 (exit $ac_status); }; }; then 5206 ac_hi=$ac_mid 5207 else 5208 echo "$as_me: failed program was:" >&5 5209 sed 's/^/| /' conftest.$ac_ext >&5 5210 5211 ac_lo=`expr '(' $ac_mid ')' + 1` 5212 fi 5213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5214 done 5215 case $ac_lo in 5216 ?*) ac_cv_sizeof_long=$ac_lo;; 5217 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5218 See \`config.log' for more details." >&5 5219 echo "$as_me: error: cannot compute sizeof (long), 77 5220 See \`config.log' for more details." >&2;} 5221 { (exit 1); exit 1; }; } ;; 5222 esac 5223 else 5224 if test "$cross_compiling" = yes; then 5225 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5226 See \`config.log' for more details." >&5 5227 echo "$as_me: error: cannot run test program while cross compiling 5228 See \`config.log' for more details." >&2;} 5229 { (exit 1); exit 1; }; } 5230 else 5231 cat >conftest.$ac_ext <<_ACEOF 5232 /* confdefs.h. */ 5233 _ACEOF 5234 cat confdefs.h >>conftest.$ac_ext 5235 cat >>conftest.$ac_ext <<_ACEOF 5236 /* end confdefs.h. */ 5237 $ac_includes_default 5238 long longval () { return (long) (sizeof (long)); } 5239 unsigned long ulongval () { return (long) (sizeof (long)); } 5240 #include <stdio.h> 5241 #include <stdlib.h> 5242 int 5243 main () 5244 { 5245 5246 FILE *f = fopen ("conftest.val", "w"); 5247 if (! f) 5248 exit (1); 5249 if (((long) (sizeof (long))) < 0) 5250 { 5251 long i = longval (); 5252 if (i != ((long) (sizeof (long)))) 5253 exit (1); 5254 fprintf (f, "%ld\n", i); 5255 } 5256 else 5257 { 5258 unsigned long i = ulongval (); 5259 if (i != ((long) (sizeof (long)))) 5260 exit (1); 5261 fprintf (f, "%lu\n", i); 5262 } 5263 exit (ferror (f) || fclose (f) != 0); 5264 5265 ; 5266 return 0; 5267 } 5268 _ACEOF 5269 rm -f conftest$ac_exeext 5270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5271 (eval $ac_link) 2>&5 5272 ac_status=$? 5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5276 (eval $ac_try) 2>&5 5277 ac_status=$? 5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5279 (exit $ac_status); }; }; then 5280 ac_cv_sizeof_long=`cat conftest.val` 5281 else 5282 echo "$as_me: program exited with status $ac_status" >&5 5283 echo "$as_me: failed program was:" >&5 5284 sed 's/^/| /' conftest.$ac_ext >&5 5285 5286 ( exit $ac_status ) 5287 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5288 See \`config.log' for more details." >&5 5289 echo "$as_me: error: cannot compute sizeof (long), 77 5290 See \`config.log' for more details." >&2;} 5291 { (exit 1); exit 1; }; } 5292 fi 5293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5294 fi 5295 fi 5296 rm -f conftest.val 5297 else 5298 ac_cv_sizeof_long=0 5299 fi 5300 fi 5301 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 5302 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 5303 cat >>confdefs.h <<_ACEOF 5304 #define SIZEOF_LONG $ac_cv_sizeof_long 5305 _ACEOF 5306 5307 5308 echo "$as_me:$LINENO: checking for int" >&5 5309 echo $ECHO_N "checking for int... $ECHO_C" >&6 5310 if test "${ac_cv_type_int+set}" = set; then 5311 echo $ECHO_N "(cached) $ECHO_C" >&6 5312 else 5313 cat >conftest.$ac_ext <<_ACEOF 5314 /* confdefs.h. */ 5315 _ACEOF 5316 cat confdefs.h >>conftest.$ac_ext 5317 cat >>conftest.$ac_ext <<_ACEOF 5318 /* end confdefs.h. */ 5319 $ac_includes_default 5320 int 5321 main () 5322 { 5323 if ((int *) 0) 5324 return 0; 5325 if (sizeof (int)) 5326 return 0; 5327 ; 5328 return 0; 5329 } 5330 _ACEOF 5331 rm -f conftest.$ac_objext 5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5333 (eval $ac_compile) 2>conftest.er1 5334 ac_status=$? 5335 grep -v '^ *+' conftest.er1 >conftest.err 5336 rm -f conftest.er1 5337 cat conftest.err >&5 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5339 (exit $ac_status); } && 5340 { ac_try='test -z "$ac_c_werror_flag" 5341 || test ! -s conftest.err' 5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5343 (eval $ac_try) 2>&5 5344 ac_status=$? 5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5346 (exit $ac_status); }; } && 5347 { ac_try='test -s conftest.$ac_objext' 5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5349 (eval $ac_try) 2>&5 5350 ac_status=$? 5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5352 (exit $ac_status); }; }; then 5353 ac_cv_type_int=yes 5354 else 5355 echo "$as_me: failed program was:" >&5 5356 sed 's/^/| /' conftest.$ac_ext >&5 5357 5358 ac_cv_type_int=no 5359 fi 5360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5361 fi 5362 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 5363 echo "${ECHO_T}$ac_cv_type_int" >&6 5364 5365 echo "$as_me:$LINENO: checking size of int" >&5 5366 echo $ECHO_N "checking size of int... $ECHO_C" >&6 5367 if test "${ac_cv_sizeof_int+set}" = set; then 5368 echo $ECHO_N "(cached) $ECHO_C" >&6 5369 else 5370 if test "$ac_cv_type_int" = yes; then 5371 # The cast to unsigned long works around a bug in the HP C Compiler 5372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5374 # This bug is HP SR number 8606223364. 5375 if test "$cross_compiling" = yes; then 5376 # Depending upon the size, compute the lo and hi bounds. 5377 cat >conftest.$ac_ext <<_ACEOF 5378 /* confdefs.h. */ 5379 _ACEOF 5380 cat confdefs.h >>conftest.$ac_ext 5381 cat >>conftest.$ac_ext <<_ACEOF 5382 /* end confdefs.h. */ 5383 $ac_includes_default 5384 int 5385 main () 5386 { 5387 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 5388 test_array [0] = 0 5389 5390 ; 5391 return 0; 5392 } 5393 _ACEOF 5394 rm -f conftest.$ac_objext 5395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5396 (eval $ac_compile) 2>conftest.er1 5397 ac_status=$? 5398 grep -v '^ *+' conftest.er1 >conftest.err 5399 rm -f conftest.er1 5400 cat conftest.err >&5 5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5402 (exit $ac_status); } && 5403 { ac_try='test -z "$ac_c_werror_flag" 5404 || test ! -s conftest.err' 5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5406 (eval $ac_try) 2>&5 5407 ac_status=$? 5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5409 (exit $ac_status); }; } && 5410 { ac_try='test -s conftest.$ac_objext' 5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5412 (eval $ac_try) 2>&5 5413 ac_status=$? 5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5415 (exit $ac_status); }; }; then 5416 ac_lo=0 ac_mid=0 5417 while :; do 5418 cat >conftest.$ac_ext <<_ACEOF 5419 /* confdefs.h. */ 5420 _ACEOF 5421 cat confdefs.h >>conftest.$ac_ext 5422 cat >>conftest.$ac_ext <<_ACEOF 5423 /* end confdefs.h. */ 5424 $ac_includes_default 5425 int 5426 main () 5427 { 5428 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5429 test_array [0] = 0 5430 5431 ; 5432 return 0; 5433 } 5434 _ACEOF 5435 rm -f conftest.$ac_objext 5436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5437 (eval $ac_compile) 2>conftest.er1 5438 ac_status=$? 5439 grep -v '^ *+' conftest.er1 >conftest.err 5440 rm -f conftest.er1 5441 cat conftest.err >&5 5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5443 (exit $ac_status); } && 5444 { ac_try='test -z "$ac_c_werror_flag" 5445 || test ! -s conftest.err' 5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5447 (eval $ac_try) 2>&5 5448 ac_status=$? 5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5450 (exit $ac_status); }; } && 5451 { ac_try='test -s conftest.$ac_objext' 5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5453 (eval $ac_try) 2>&5 5454 ac_status=$? 5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5456 (exit $ac_status); }; }; then 5457 ac_hi=$ac_mid; break 5458 else 5459 echo "$as_me: failed program was:" >&5 5460 sed 's/^/| /' conftest.$ac_ext >&5 5461 5462 ac_lo=`expr $ac_mid + 1` 5463 if test $ac_lo -le $ac_mid; then 5464 ac_lo= ac_hi= 5465 break 5466 fi 5467 ac_mid=`expr 2 '*' $ac_mid + 1` 5468 fi 5469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5470 done 5471 else 5472 echo "$as_me: failed program was:" >&5 5473 sed 's/^/| /' conftest.$ac_ext >&5 5474 5475 cat >conftest.$ac_ext <<_ACEOF 5476 /* confdefs.h. */ 5477 _ACEOF 5478 cat confdefs.h >>conftest.$ac_ext 5479 cat >>conftest.$ac_ext <<_ACEOF 5480 /* end confdefs.h. */ 5481 $ac_includes_default 5482 int 5483 main () 5484 { 5485 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 5486 test_array [0] = 0 5487 5488 ; 5489 return 0; 5490 } 5491 _ACEOF 5492 rm -f conftest.$ac_objext 5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5494 (eval $ac_compile) 2>conftest.er1 5495 ac_status=$? 5496 grep -v '^ *+' conftest.er1 >conftest.err 5497 rm -f conftest.er1 5498 cat conftest.err >&5 5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5500 (exit $ac_status); } && 5501 { ac_try='test -z "$ac_c_werror_flag" 5502 || test ! -s conftest.err' 5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5504 (eval $ac_try) 2>&5 5505 ac_status=$? 5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5507 (exit $ac_status); }; } && 5508 { ac_try='test -s conftest.$ac_objext' 5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5510 (eval $ac_try) 2>&5 5511 ac_status=$? 5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5513 (exit $ac_status); }; }; then 5514 ac_hi=-1 ac_mid=-1 5515 while :; do 5516 cat >conftest.$ac_ext <<_ACEOF 5517 /* confdefs.h. */ 5518 _ACEOF 5519 cat confdefs.h >>conftest.$ac_ext 5520 cat >>conftest.$ac_ext <<_ACEOF 5521 /* end confdefs.h. */ 5522 $ac_includes_default 5523 int 5524 main () 5525 { 5526 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 5527 test_array [0] = 0 5528 5529 ; 5530 return 0; 5531 } 5532 _ACEOF 5533 rm -f conftest.$ac_objext 5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5535 (eval $ac_compile) 2>conftest.er1 5536 ac_status=$? 5537 grep -v '^ *+' conftest.er1 >conftest.err 5538 rm -f conftest.er1 5539 cat conftest.err >&5 5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5541 (exit $ac_status); } && 5542 { ac_try='test -z "$ac_c_werror_flag" 5543 || test ! -s conftest.err' 5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5545 (eval $ac_try) 2>&5 5546 ac_status=$? 5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5548 (exit $ac_status); }; } && 5549 { ac_try='test -s conftest.$ac_objext' 5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5551 (eval $ac_try) 2>&5 5552 ac_status=$? 5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5554 (exit $ac_status); }; }; then 5555 ac_lo=$ac_mid; break 5556 else 5557 echo "$as_me: failed program was:" >&5 5558 sed 's/^/| /' conftest.$ac_ext >&5 5559 5560 ac_hi=`expr '(' $ac_mid ')' - 1` 5561 if test $ac_mid -le $ac_hi; then 5562 ac_lo= ac_hi= 5563 break 5564 fi 5565 ac_mid=`expr 2 '*' $ac_mid` 5566 fi 5567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5568 done 5569 else 5570 echo "$as_me: failed program was:" >&5 5571 sed 's/^/| /' conftest.$ac_ext >&5 5572 5573 ac_lo= ac_hi= 5574 fi 5575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5576 fi 5577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5578 # Binary search between lo and hi bounds. 5579 while test "x$ac_lo" != "x$ac_hi"; do 5580 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5581 cat >conftest.$ac_ext <<_ACEOF 5582 /* confdefs.h. */ 5583 _ACEOF 5584 cat confdefs.h >>conftest.$ac_ext 5585 cat >>conftest.$ac_ext <<_ACEOF 5586 /* end confdefs.h. */ 5587 $ac_includes_default 5588 int 5589 main () 5590 { 5591 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5592 test_array [0] = 0 5593 5594 ; 5595 return 0; 5596 } 5597 _ACEOF 5598 rm -f conftest.$ac_objext 5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5600 (eval $ac_compile) 2>conftest.er1 5601 ac_status=$? 5602 grep -v '^ *+' conftest.er1 >conftest.err 5603 rm -f conftest.er1 5604 cat conftest.err >&5 5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5606 (exit $ac_status); } && 5607 { ac_try='test -z "$ac_c_werror_flag" 5608 || test ! -s conftest.err' 5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5610 (eval $ac_try) 2>&5 5611 ac_status=$? 5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5613 (exit $ac_status); }; } && 5614 { ac_try='test -s conftest.$ac_objext' 5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5616 (eval $ac_try) 2>&5 5617 ac_status=$? 5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5619 (exit $ac_status); }; }; then 5620 ac_hi=$ac_mid 5621 else 5622 echo "$as_me: failed program was:" >&5 5623 sed 's/^/| /' conftest.$ac_ext >&5 5624 5625 ac_lo=`expr '(' $ac_mid ')' + 1` 5626 fi 5627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5628 done 5629 case $ac_lo in 5630 ?*) ac_cv_sizeof_int=$ac_lo;; 5631 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 5632 See \`config.log' for more details." >&5 5633 echo "$as_me: error: cannot compute sizeof (int), 77 5634 See \`config.log' for more details." >&2;} 5635 { (exit 1); exit 1; }; } ;; 5636 esac 5637 else 5638 if test "$cross_compiling" = yes; then 5639 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5640 See \`config.log' for more details." >&5 5641 echo "$as_me: error: cannot run test program while cross compiling 5642 See \`config.log' for more details." >&2;} 5643 { (exit 1); exit 1; }; } 5644 else 5645 cat >conftest.$ac_ext <<_ACEOF 5646 /* confdefs.h. */ 5647 _ACEOF 5648 cat confdefs.h >>conftest.$ac_ext 5649 cat >>conftest.$ac_ext <<_ACEOF 5650 /* end confdefs.h. */ 5651 $ac_includes_default 5652 long longval () { return (long) (sizeof (int)); } 5653 unsigned long ulongval () { return (long) (sizeof (int)); } 5654 #include <stdio.h> 5655 #include <stdlib.h> 5656 int 5657 main () 5658 { 5659 5660 FILE *f = fopen ("conftest.val", "w"); 5661 if (! f) 5662 exit (1); 5663 if (((long) (sizeof (int))) < 0) 5664 { 5665 long i = longval (); 5666 if (i != ((long) (sizeof (int)))) 5667 exit (1); 5668 fprintf (f, "%ld\n", i); 5669 } 5670 else 5671 { 5672 unsigned long i = ulongval (); 5673 if (i != ((long) (sizeof (int)))) 5674 exit (1); 5675 fprintf (f, "%lu\n", i); 5676 } 5677 exit (ferror (f) || fclose (f) != 0); 5678 5679 ; 5680 return 0; 5681 } 5682 _ACEOF 5683 rm -f conftest$ac_exeext 5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5685 (eval $ac_link) 2>&5 5686 ac_status=$? 5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5690 (eval $ac_try) 2>&5 5691 ac_status=$? 5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5693 (exit $ac_status); }; }; then 5694 ac_cv_sizeof_int=`cat conftest.val` 5695 else 5696 echo "$as_me: program exited with status $ac_status" >&5 5697 echo "$as_me: failed program was:" >&5 5698 sed 's/^/| /' conftest.$ac_ext >&5 5699 5700 ( exit $ac_status ) 5701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 5702 See \`config.log' for more details." >&5 5703 echo "$as_me: error: cannot compute sizeof (int), 77 5704 See \`config.log' for more details." >&2;} 5705 { (exit 1); exit 1; }; } 5706 fi 5707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5708 fi 5709 fi 5710 rm -f conftest.val 5711 else 5712 ac_cv_sizeof_int=0 5713 fi 5714 fi 5715 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 5716 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 5717 cat >>confdefs.h <<_ACEOF 5718 #define SIZEOF_INT $ac_cv_sizeof_int 5719 _ACEOF 5720 5721 5722 echo "$as_me:$LINENO: checking for short" >&5 5723 echo $ECHO_N "checking for short... $ECHO_C" >&6 5724 if test "${ac_cv_type_short+set}" = set; then 5725 echo $ECHO_N "(cached) $ECHO_C" >&6 5726 else 5727 cat >conftest.$ac_ext <<_ACEOF 5728 /* confdefs.h. */ 5729 _ACEOF 5730 cat confdefs.h >>conftest.$ac_ext 5731 cat >>conftest.$ac_ext <<_ACEOF 5732 /* end confdefs.h. */ 5733 $ac_includes_default 5734 int 5735 main () 5736 { 5737 if ((short *) 0) 5738 return 0; 5739 if (sizeof (short)) 5740 return 0; 5741 ; 5742 return 0; 5743 } 5744 _ACEOF 5745 rm -f conftest.$ac_objext 5746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5747 (eval $ac_compile) 2>conftest.er1 5748 ac_status=$? 5749 grep -v '^ *+' conftest.er1 >conftest.err 5750 rm -f conftest.er1 5751 cat conftest.err >&5 5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5753 (exit $ac_status); } && 5754 { ac_try='test -z "$ac_c_werror_flag" 5755 || test ! -s conftest.err' 5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5757 (eval $ac_try) 2>&5 5758 ac_status=$? 5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5760 (exit $ac_status); }; } && 5761 { ac_try='test -s conftest.$ac_objext' 5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5763 (eval $ac_try) 2>&5 5764 ac_status=$? 5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5766 (exit $ac_status); }; }; then 5767 ac_cv_type_short=yes 5768 else 5769 echo "$as_me: failed program was:" >&5 5770 sed 's/^/| /' conftest.$ac_ext >&5 5771 5772 ac_cv_type_short=no 5773 fi 5774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5775 fi 5776 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 5777 echo "${ECHO_T}$ac_cv_type_short" >&6 5778 5779 echo "$as_me:$LINENO: checking size of short" >&5 5780 echo $ECHO_N "checking size of short... $ECHO_C" >&6 5781 if test "${ac_cv_sizeof_short+set}" = set; then 5782 echo $ECHO_N "(cached) $ECHO_C" >&6 5783 else 5784 if test "$ac_cv_type_short" = yes; then 5785 # The cast to unsigned long works around a bug in the HP C Compiler 5786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5788 # This bug is HP SR number 8606223364. 5789 if test "$cross_compiling" = yes; then 5790 # Depending upon the size, compute the lo and hi bounds. 5791 cat >conftest.$ac_ext <<_ACEOF 5792 /* confdefs.h. */ 5793 _ACEOF 5794 cat confdefs.h >>conftest.$ac_ext 5795 cat >>conftest.$ac_ext <<_ACEOF 5796 /* end confdefs.h. */ 5797 $ac_includes_default 5798 int 5799 main () 5800 { 5801 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 5802 test_array [0] = 0 5803 5804 ; 5805 return 0; 5806 } 5807 _ACEOF 5808 rm -f conftest.$ac_objext 5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5810 (eval $ac_compile) 2>conftest.er1 5811 ac_status=$? 5812 grep -v '^ *+' conftest.er1 >conftest.err 5813 rm -f conftest.er1 5814 cat conftest.err >&5 5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5816 (exit $ac_status); } && 5817 { ac_try='test -z "$ac_c_werror_flag" 5818 || test ! -s conftest.err' 5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5820 (eval $ac_try) 2>&5 5821 ac_status=$? 5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5823 (exit $ac_status); }; } && 5824 { ac_try='test -s conftest.$ac_objext' 5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5826 (eval $ac_try) 2>&5 5827 ac_status=$? 5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5829 (exit $ac_status); }; }; then 5830 ac_lo=0 ac_mid=0 5831 while :; do 5832 cat >conftest.$ac_ext <<_ACEOF 5833 /* confdefs.h. */ 5834 _ACEOF 5835 cat confdefs.h >>conftest.$ac_ext 5836 cat >>conftest.$ac_ext <<_ACEOF 5837 /* end confdefs.h. */ 5838 $ac_includes_default 5839 int 5840 main () 5841 { 5842 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 5843 test_array [0] = 0 5844 5845 ; 5846 return 0; 5847 } 5848 _ACEOF 5849 rm -f conftest.$ac_objext 5850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5851 (eval $ac_compile) 2>conftest.er1 5852 ac_status=$? 5853 grep -v '^ *+' conftest.er1 >conftest.err 5854 rm -f conftest.er1 5855 cat conftest.err >&5 5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5857 (exit $ac_status); } && 5858 { ac_try='test -z "$ac_c_werror_flag" 5859 || test ! -s conftest.err' 5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5861 (eval $ac_try) 2>&5 5862 ac_status=$? 5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5864 (exit $ac_status); }; } && 5865 { ac_try='test -s conftest.$ac_objext' 5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5867 (eval $ac_try) 2>&5 5868 ac_status=$? 5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5870 (exit $ac_status); }; }; then 5871 ac_hi=$ac_mid; break 5872 else 5873 echo "$as_me: failed program was:" >&5 5874 sed 's/^/| /' conftest.$ac_ext >&5 5875 5876 ac_lo=`expr $ac_mid + 1` 5877 if test $ac_lo -le $ac_mid; then 5878 ac_lo= ac_hi= 5879 break 5880 fi 5881 ac_mid=`expr 2 '*' $ac_mid + 1` 5882 fi 5883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5884 done 5885 else 5886 echo "$as_me: failed program was:" >&5 5887 sed 's/^/| /' conftest.$ac_ext >&5 5888 5889 cat >conftest.$ac_ext <<_ACEOF 5890 /* confdefs.h. */ 5891 _ACEOF 5892 cat confdefs.h >>conftest.$ac_ext 5893 cat >>conftest.$ac_ext <<_ACEOF 5894 /* end confdefs.h. */ 5895 $ac_includes_default 5896 int 5897 main () 5898 { 5899 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 5900 test_array [0] = 0 5901 5902 ; 5903 return 0; 5904 } 5905 _ACEOF 5906 rm -f conftest.$ac_objext 5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5908 (eval $ac_compile) 2>conftest.er1 5909 ac_status=$? 5910 grep -v '^ *+' conftest.er1 >conftest.err 5911 rm -f conftest.er1 5912 cat conftest.err >&5 5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5914 (exit $ac_status); } && 5915 { ac_try='test -z "$ac_c_werror_flag" 5916 || test ! -s conftest.err' 5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5918 (eval $ac_try) 2>&5 5919 ac_status=$? 5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5921 (exit $ac_status); }; } && 5922 { ac_try='test -s conftest.$ac_objext' 5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5924 (eval $ac_try) 2>&5 5925 ac_status=$? 5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5927 (exit $ac_status); }; }; then 5928 ac_hi=-1 ac_mid=-1 5929 while :; do 5930 cat >conftest.$ac_ext <<_ACEOF 5931 /* confdefs.h. */ 5932 _ACEOF 5933 cat confdefs.h >>conftest.$ac_ext 5934 cat >>conftest.$ac_ext <<_ACEOF 5935 /* end confdefs.h. */ 5936 $ac_includes_default 5937 int 5938 main () 5939 { 5940 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 5941 test_array [0] = 0 5942 5943 ; 5944 return 0; 5945 } 5946 _ACEOF 5947 rm -f conftest.$ac_objext 5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5949 (eval $ac_compile) 2>conftest.er1 5950 ac_status=$? 5951 grep -v '^ *+' conftest.er1 >conftest.err 5952 rm -f conftest.er1 5953 cat conftest.err >&5 5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5955 (exit $ac_status); } && 5956 { ac_try='test -z "$ac_c_werror_flag" 5957 || test ! -s conftest.err' 5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5959 (eval $ac_try) 2>&5 5960 ac_status=$? 5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5962 (exit $ac_status); }; } && 5963 { ac_try='test -s conftest.$ac_objext' 5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5965 (eval $ac_try) 2>&5 5966 ac_status=$? 5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5968 (exit $ac_status); }; }; then 5969 ac_lo=$ac_mid; break 5970 else 5971 echo "$as_me: failed program was:" >&5 5972 sed 's/^/| /' conftest.$ac_ext >&5 5973 5974 ac_hi=`expr '(' $ac_mid ')' - 1` 5975 if test $ac_mid -le $ac_hi; then 5976 ac_lo= ac_hi= 5977 break 5978 fi 5979 ac_mid=`expr 2 '*' $ac_mid` 5980 fi 5981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5982 done 5983 else 5984 echo "$as_me: failed program was:" >&5 5985 sed 's/^/| /' conftest.$ac_ext >&5 5986 5987 ac_lo= ac_hi= 5988 fi 5989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5990 fi 5991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5992 # Binary search between lo and hi bounds. 5993 while test "x$ac_lo" != "x$ac_hi"; do 5994 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5995 cat >conftest.$ac_ext <<_ACEOF 5996 /* confdefs.h. */ 5997 _ACEOF 5998 cat confdefs.h >>conftest.$ac_ext 5999 cat >>conftest.$ac_ext <<_ACEOF 6000 /* end confdefs.h. */ 6001 $ac_includes_default 6002 int 6003 main () 6004 { 6005 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 6006 test_array [0] = 0 6007 6008 ; 6009 return 0; 6010 } 6011 _ACEOF 6012 rm -f conftest.$ac_objext 6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6014 (eval $ac_compile) 2>conftest.er1 6015 ac_status=$? 6016 grep -v '^ *+' conftest.er1 >conftest.err 6017 rm -f conftest.er1 6018 cat conftest.err >&5 6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6020 (exit $ac_status); } && 6021 { ac_try='test -z "$ac_c_werror_flag" 6022 || test ! -s conftest.err' 6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6024 (eval $ac_try) 2>&5 6025 ac_status=$? 6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6027 (exit $ac_status); }; } && 6028 { ac_try='test -s conftest.$ac_objext' 6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6030 (eval $ac_try) 2>&5 6031 ac_status=$? 6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6033 (exit $ac_status); }; }; then 6034 ac_hi=$ac_mid 6035 else 6036 echo "$as_me: failed program was:" >&5 6037 sed 's/^/| /' conftest.$ac_ext >&5 6038 6039 ac_lo=`expr '(' $ac_mid ')' + 1` 6040 fi 6041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6042 done 6043 case $ac_lo in 6044 ?*) ac_cv_sizeof_short=$ac_lo;; 6045 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 6046 See \`config.log' for more details." >&5 6047 echo "$as_me: error: cannot compute sizeof (short), 77 6048 See \`config.log' for more details." >&2;} 6049 { (exit 1); exit 1; }; } ;; 6050 esac 6051 else 6052 if test "$cross_compiling" = yes; then 6053 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6054 See \`config.log' for more details." >&5 6055 echo "$as_me: error: cannot run test program while cross compiling 6056 See \`config.log' for more details." >&2;} 6057 { (exit 1); exit 1; }; } 6058 else 6059 cat >conftest.$ac_ext <<_ACEOF 6060 /* confdefs.h. */ 6061 _ACEOF 6062 cat confdefs.h >>conftest.$ac_ext 6063 cat >>conftest.$ac_ext <<_ACEOF 6064 /* end confdefs.h. */ 6065 $ac_includes_default 6066 long longval () { return (long) (sizeof (short)); } 6067 unsigned long ulongval () { return (long) (sizeof (short)); } 6068 #include <stdio.h> 6069 #include <stdlib.h> 6070 int 6071 main () 6072 { 6073 6074 FILE *f = fopen ("conftest.val", "w"); 6075 if (! f) 6076 exit (1); 6077 if (((long) (sizeof (short))) < 0) 6078 { 6079 long i = longval (); 6080 if (i != ((long) (sizeof (short)))) 6081 exit (1); 6082 fprintf (f, "%ld\n", i); 6083 } 6084 else 6085 { 6086 unsigned long i = ulongval (); 6087 if (i != ((long) (sizeof (short)))) 6088 exit (1); 6089 fprintf (f, "%lu\n", i); 6090 } 6091 exit (ferror (f) || fclose (f) != 0); 6092 6093 ; 6094 return 0; 6095 } 6096 _ACEOF 6097 rm -f conftest$ac_exeext 6098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6099 (eval $ac_link) 2>&5 6100 ac_status=$? 6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6104 (eval $ac_try) 2>&5 6105 ac_status=$? 6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6107 (exit $ac_status); }; }; then 6108 ac_cv_sizeof_short=`cat conftest.val` 6109 else 6110 echo "$as_me: program exited with status $ac_status" >&5 6111 echo "$as_me: failed program was:" >&5 6112 sed 's/^/| /' conftest.$ac_ext >&5 6113 6114 ( exit $ac_status ) 6115 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 6116 See \`config.log' for more details." >&5 6117 echo "$as_me: error: cannot compute sizeof (short), 77 6118 See \`config.log' for more details." >&2;} 6119 { (exit 1); exit 1; }; } 6120 fi 6121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6122 fi 6123 fi 6124 rm -f conftest.val 6125 else 6126 ac_cv_sizeof_short=0 6127 fi 6128 fi 6129 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 6130 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 6131 cat >>confdefs.h <<_ACEOF 6132 #define SIZEOF_SHORT $ac_cv_sizeof_short 6133 _ACEOF 6134 6135 6136 fi 6137 FOUND=0 6138 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 6139 dc_cv_size=`eval echo $dc_cv_loop` 6140 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 6141 if test "$dc_cv_size" = "8"; then 6142 if test "$dc_cv_name" = "int"; then 6143 echo "$as_me:$LINENO: checking for uint64_t" >&5 6144 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 6145 if test "${ac_cv_type_uint64_t+set}" = set; then 6146 echo $ECHO_N "(cached) $ECHO_C" >&6 6147 else 6148 cat >conftest.$ac_ext <<_ACEOF 6149 /* confdefs.h. */ 6150 _ACEOF 6151 cat confdefs.h >>conftest.$ac_ext 6152 cat >>conftest.$ac_ext <<_ACEOF 6153 /* end confdefs.h. */ 6154 $ac_includes_default 6155 int 6156 main () 6157 { 6158 if ((uint64_t *) 0) 6159 return 0; 6160 if (sizeof (uint64_t)) 6161 return 0; 6162 ; 6163 return 0; 6164 } 6165 _ACEOF 6166 rm -f conftest.$ac_objext 6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6168 (eval $ac_compile) 2>conftest.er1 6169 ac_status=$? 6170 grep -v '^ *+' conftest.er1 >conftest.err 6171 rm -f conftest.er1 6172 cat conftest.err >&5 6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6174 (exit $ac_status); } && 6175 { ac_try='test -z "$ac_c_werror_flag" 6176 || test ! -s conftest.err' 6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6178 (eval $ac_try) 2>&5 6179 ac_status=$? 6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6181 (exit $ac_status); }; } && 6182 { ac_try='test -s conftest.$ac_objext' 6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6184 (eval $ac_try) 2>&5 6185 ac_status=$? 6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6187 (exit $ac_status); }; }; then 6188 ac_cv_type_uint64_t=yes 6189 else 6190 echo "$as_me: failed program was:" >&5 6191 sed 's/^/| /' conftest.$ac_ext >&5 6192 6193 ac_cv_type_uint64_t=no 6194 fi 6195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6196 fi 6197 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 6198 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 6199 if test $ac_cv_type_uint64_t = yes; then 6200 : 6201 else 6202 6203 cat >>confdefs.h <<_ACEOF 6204 #define uint64_t unsigned int 6205 _ACEOF 6206 6207 fi 6208 6209 fi 6210 if test "$dc_cv_name" = "long"; then 6211 echo "$as_me:$LINENO: checking for uint64_t" >&5 6212 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 6213 if test "${ac_cv_type_uint64_t+set}" = set; then 6214 echo $ECHO_N "(cached) $ECHO_C" >&6 6215 else 6216 cat >conftest.$ac_ext <<_ACEOF 6217 /* confdefs.h. */ 6218 _ACEOF 6219 cat confdefs.h >>conftest.$ac_ext 6220 cat >>conftest.$ac_ext <<_ACEOF 6221 /* end confdefs.h. */ 6222 $ac_includes_default 6223 int 6224 main () 6225 { 6226 if ((uint64_t *) 0) 6227 return 0; 6228 if (sizeof (uint64_t)) 6229 return 0; 6230 ; 6231 return 0; 6232 } 6233 _ACEOF 6234 rm -f conftest.$ac_objext 6235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6236 (eval $ac_compile) 2>conftest.er1 6237 ac_status=$? 6238 grep -v '^ *+' conftest.er1 >conftest.err 6239 rm -f conftest.er1 6240 cat conftest.err >&5 6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6242 (exit $ac_status); } && 6243 { ac_try='test -z "$ac_c_werror_flag" 6244 || test ! -s conftest.err' 6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6246 (eval $ac_try) 2>&5 6247 ac_status=$? 6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6249 (exit $ac_status); }; } && 6250 { ac_try='test -s conftest.$ac_objext' 6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6252 (eval $ac_try) 2>&5 6253 ac_status=$? 6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6255 (exit $ac_status); }; }; then 6256 ac_cv_type_uint64_t=yes 6257 else 6258 echo "$as_me: failed program was:" >&5 6259 sed 's/^/| /' conftest.$ac_ext >&5 6260 6261 ac_cv_type_uint64_t=no 6262 fi 6263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6264 fi 6265 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 6266 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 6267 if test $ac_cv_type_uint64_t = yes; then 6268 : 6269 else 6270 6271 cat >>confdefs.h <<_ACEOF 6272 #define uint64_t unsigned long 6273 _ACEOF 6274 6275 fi 6276 6277 fi 6278 if test "$dc_cv_name" = "long_long"; then 6279 echo "$as_me:$LINENO: checking for uint64_t" >&5 6280 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 6281 if test "${ac_cv_type_uint64_t+set}" = set; then 6282 echo $ECHO_N "(cached) $ECHO_C" >&6 6283 else 6284 cat >conftest.$ac_ext <<_ACEOF 6285 /* confdefs.h. */ 6286 _ACEOF 6287 cat confdefs.h >>conftest.$ac_ext 6288 cat >>conftest.$ac_ext <<_ACEOF 6289 /* end confdefs.h. */ 6290 $ac_includes_default 6291 int 6292 main () 6293 { 6294 if ((uint64_t *) 0) 6295 return 0; 6296 if (sizeof (uint64_t)) 6297 return 0; 6298 ; 6299 return 0; 6300 } 6301 _ACEOF 6302 rm -f conftest.$ac_objext 6303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6304 (eval $ac_compile) 2>conftest.er1 6305 ac_status=$? 6306 grep -v '^ *+' conftest.er1 >conftest.err 6307 rm -f conftest.er1 6308 cat conftest.err >&5 6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6310 (exit $ac_status); } && 6311 { ac_try='test -z "$ac_c_werror_flag" 6312 || test ! -s conftest.err' 6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6314 (eval $ac_try) 2>&5 6315 ac_status=$? 6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6317 (exit $ac_status); }; } && 6318 { ac_try='test -s conftest.$ac_objext' 6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6320 (eval $ac_try) 2>&5 6321 ac_status=$? 6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6323 (exit $ac_status); }; }; then 6324 ac_cv_type_uint64_t=yes 6325 else 6326 echo "$as_me: failed program was:" >&5 6327 sed 's/^/| /' conftest.$ac_ext >&5 6328 6329 ac_cv_type_uint64_t=no 6330 fi 6331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6332 fi 6333 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 6334 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 6335 if test $ac_cv_type_uint64_t = yes; then 6336 : 6337 else 6338 6339 cat >>confdefs.h <<_ACEOF 6340 #define uint64_t unsigned long long 6341 _ACEOF 6342 6343 fi 6344 6345 fi 6346 if test "$dc_cv_name" = "short"; then 6347 echo "$as_me:$LINENO: checking for uint64_t" >&5 6348 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 6349 if test "${ac_cv_type_uint64_t+set}" = set; then 6350 echo $ECHO_N "(cached) $ECHO_C" >&6 6351 else 6352 cat >conftest.$ac_ext <<_ACEOF 6353 /* confdefs.h. */ 6354 _ACEOF 6355 cat confdefs.h >>conftest.$ac_ext 6356 cat >>conftest.$ac_ext <<_ACEOF 6357 /* end confdefs.h. */ 6358 $ac_includes_default 6359 int 6360 main () 6361 { 6362 if ((uint64_t *) 0) 6363 return 0; 6364 if (sizeof (uint64_t)) 6365 return 0; 6366 ; 6367 return 0; 6368 } 6369 _ACEOF 6370 rm -f conftest.$ac_objext 6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6372 (eval $ac_compile) 2>conftest.er1 6373 ac_status=$? 6374 grep -v '^ *+' conftest.er1 >conftest.err 6375 rm -f conftest.er1 6376 cat conftest.err >&5 6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6378 (exit $ac_status); } && 6379 { ac_try='test -z "$ac_c_werror_flag" 6380 || test ! -s conftest.err' 6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6382 (eval $ac_try) 2>&5 6383 ac_status=$? 6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6385 (exit $ac_status); }; } && 6386 { ac_try='test -s conftest.$ac_objext' 6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6388 (eval $ac_try) 2>&5 6389 ac_status=$? 6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6391 (exit $ac_status); }; }; then 6392 ac_cv_type_uint64_t=yes 6393 else 6394 echo "$as_me: failed program was:" >&5 6395 sed 's/^/| /' conftest.$ac_ext >&5 6396 6397 ac_cv_type_uint64_t=no 6398 fi 6399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6400 fi 6401 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 6402 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 6403 if test $ac_cv_type_uint64_t = yes; then 6404 : 6405 else 6406 6407 cat >>confdefs.h <<_ACEOF 6408 #define uint64_t unsigned short 6409 _ACEOF 6410 6411 fi 6412 6413 fi 6414 FOUND=1 6415 break 6416 fi 6417 done 6418 6419 6420 if test -z "$ac_cv_sizeof_long"; then 6421 echo "$as_me:$LINENO: checking for inline" >&5 6422 echo $ECHO_N "checking for inline... $ECHO_C" >&6 6423 if test "${ac_cv_c_inline+set}" = set; then 6424 echo $ECHO_N "(cached) $ECHO_C" >&6 6425 else 6426 ac_cv_c_inline=no 6427 for ac_kw in inline __inline__ __inline; do 6428 cat >conftest.$ac_ext <<_ACEOF 6429 /* confdefs.h. */ 6430 _ACEOF 6431 cat confdefs.h >>conftest.$ac_ext 6432 cat >>conftest.$ac_ext <<_ACEOF 6433 /* end confdefs.h. */ 6434 #ifndef __cplusplus 6435 typedef int foo_t; 6436 static $ac_kw foo_t static_foo () {return 0; } 6437 $ac_kw foo_t foo () {return 0; } 6438 #endif 6439 6440 _ACEOF 6441 rm -f conftest.$ac_objext 6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6443 (eval $ac_compile) 2>conftest.er1 6444 ac_status=$? 6445 grep -v '^ *+' conftest.er1 >conftest.err 6446 rm -f conftest.er1 6447 cat conftest.err >&5 6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6449 (exit $ac_status); } && 6450 { ac_try='test -z "$ac_c_werror_flag" 6451 || test ! -s conftest.err' 6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6453 (eval $ac_try) 2>&5 6454 ac_status=$? 6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6456 (exit $ac_status); }; } && 6457 { ac_try='test -s conftest.$ac_objext' 6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6459 (eval $ac_try) 2>&5 6460 ac_status=$? 6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6462 (exit $ac_status); }; }; then 6463 ac_cv_c_inline=$ac_kw; break 6464 else 6465 echo "$as_me: failed program was:" >&5 6466 sed 's/^/| /' conftest.$ac_ext >&5 6467 6468 fi 6469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6470 done 6471 6472 fi 6473 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 6474 echo "${ECHO_T}$ac_cv_c_inline" >&6 6475 6476 6477 case $ac_cv_c_inline in 6478 inline | yes) ;; 6479 *) 6480 case $ac_cv_c_inline in 6481 no) ac_val=;; 6482 *) ac_val=$ac_cv_c_inline;; 6483 esac 6484 cat >>confdefs.h <<_ACEOF 6485 #ifndef __cplusplus 6486 #define inline $ac_val 6487 #endif 6488 _ACEOF 6489 ;; 6490 esac 6491 6492 echo "$as_me:$LINENO: checking for long long" >&5 6493 echo $ECHO_N "checking for long long... $ECHO_C" >&6 6494 if test "${ac_cv_type_long_long+set}" = set; then 6495 echo $ECHO_N "(cached) $ECHO_C" >&6 6496 else 6497 cat >conftest.$ac_ext <<_ACEOF 6498 /* confdefs.h. */ 6499 _ACEOF 6500 cat confdefs.h >>conftest.$ac_ext 6501 cat >>conftest.$ac_ext <<_ACEOF 6502 /* end confdefs.h. */ 6503 $ac_includes_default 6504 int 6505 main () 6506 { 6507 if ((long long *) 0) 6508 return 0; 6509 if (sizeof (long long)) 6510 return 0; 6511 ; 6512 return 0; 6513 } 6514 _ACEOF 6515 rm -f conftest.$ac_objext 6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6517 (eval $ac_compile) 2>conftest.er1 6518 ac_status=$? 6519 grep -v '^ *+' conftest.er1 >conftest.err 6520 rm -f conftest.er1 6521 cat conftest.err >&5 6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6523 (exit $ac_status); } && 6524 { ac_try='test -z "$ac_c_werror_flag" 6525 || test ! -s conftest.err' 6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6527 (eval $ac_try) 2>&5 6528 ac_status=$? 6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6530 (exit $ac_status); }; } && 6531 { ac_try='test -s conftest.$ac_objext' 6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6533 (eval $ac_try) 2>&5 6534 ac_status=$? 6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6536 (exit $ac_status); }; }; then 6537 ac_cv_type_long_long=yes 6538 else 6539 echo "$as_me: failed program was:" >&5 6540 sed 's/^/| /' conftest.$ac_ext >&5 6541 6542 ac_cv_type_long_long=no 6543 fi 6544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6545 fi 6546 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 6547 echo "${ECHO_T}$ac_cv_type_long_long" >&6 6548 6549 echo "$as_me:$LINENO: checking size of long long" >&5 6550 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 6551 if test "${ac_cv_sizeof_long_long+set}" = set; then 6552 echo $ECHO_N "(cached) $ECHO_C" >&6 6553 else 6554 if test "$ac_cv_type_long_long" = yes; then 6555 # The cast to unsigned long works around a bug in the HP C Compiler 6556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6558 # This bug is HP SR number 8606223364. 6559 if test "$cross_compiling" = yes; then 6560 # Depending upon the size, compute the lo and hi bounds. 6561 cat >conftest.$ac_ext <<_ACEOF 6562 /* confdefs.h. */ 6563 _ACEOF 6564 cat confdefs.h >>conftest.$ac_ext 6565 cat >>conftest.$ac_ext <<_ACEOF 6566 /* end confdefs.h. */ 6567 $ac_includes_default 6568 int 6569 main () 6570 { 6571 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 6572 test_array [0] = 0 6573 6574 ; 6575 return 0; 6576 } 6577 _ACEOF 6578 rm -f conftest.$ac_objext 6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6580 (eval $ac_compile) 2>conftest.er1 6581 ac_status=$? 6582 grep -v '^ *+' conftest.er1 >conftest.err 6583 rm -f conftest.er1 6584 cat conftest.err >&5 6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6586 (exit $ac_status); } && 6587 { ac_try='test -z "$ac_c_werror_flag" 6588 || test ! -s conftest.err' 6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6590 (eval $ac_try) 2>&5 6591 ac_status=$? 6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6593 (exit $ac_status); }; } && 6594 { ac_try='test -s conftest.$ac_objext' 6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6596 (eval $ac_try) 2>&5 6597 ac_status=$? 6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6599 (exit $ac_status); }; }; then 6600 ac_lo=0 ac_mid=0 6601 while :; do 6602 cat >conftest.$ac_ext <<_ACEOF 6603 /* confdefs.h. */ 6604 _ACEOF 6605 cat confdefs.h >>conftest.$ac_ext 6606 cat >>conftest.$ac_ext <<_ACEOF 6607 /* end confdefs.h. */ 6608 $ac_includes_default 6609 int 6610 main () 6611 { 6612 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 6613 test_array [0] = 0 6614 6615 ; 6616 return 0; 6617 } 6618 _ACEOF 6619 rm -f conftest.$ac_objext 6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6627 (exit $ac_status); } && 6628 { ac_try='test -z "$ac_c_werror_flag" 6629 || test ! -s conftest.err' 6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6631 (eval $ac_try) 2>&5 6632 ac_status=$? 6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6634 (exit $ac_status); }; } && 6635 { ac_try='test -s conftest.$ac_objext' 6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6637 (eval $ac_try) 2>&5 6638 ac_status=$? 6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6640 (exit $ac_status); }; }; then 6641 ac_hi=$ac_mid; break 6642 else 6643 echo "$as_me: failed program was:" >&5 6644 sed 's/^/| /' conftest.$ac_ext >&5 6645 6646 ac_lo=`expr $ac_mid + 1` 6647 if test $ac_lo -le $ac_mid; then 6648 ac_lo= ac_hi= 6649 break 6650 fi 6651 ac_mid=`expr 2 '*' $ac_mid + 1` 6652 fi 6653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6654 done 6655 else 6656 echo "$as_me: failed program was:" >&5 6657 sed 's/^/| /' conftest.$ac_ext >&5 6658 6659 cat >conftest.$ac_ext <<_ACEOF 6660 /* confdefs.h. */ 6661 _ACEOF 6662 cat confdefs.h >>conftest.$ac_ext 6663 cat >>conftest.$ac_ext <<_ACEOF 6664 /* end confdefs.h. */ 6665 $ac_includes_default 6666 int 6667 main () 6668 { 6669 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 6670 test_array [0] = 0 6671 6672 ; 6673 return 0; 6674 } 6675 _ACEOF 6676 rm -f conftest.$ac_objext 6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6678 (eval $ac_compile) 2>conftest.er1 6679 ac_status=$? 6680 grep -v '^ *+' conftest.er1 >conftest.err 6681 rm -f conftest.er1 6682 cat conftest.err >&5 6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6684 (exit $ac_status); } && 6685 { ac_try='test -z "$ac_c_werror_flag" 6686 || test ! -s conftest.err' 6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6688 (eval $ac_try) 2>&5 6689 ac_status=$? 6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6691 (exit $ac_status); }; } && 6692 { ac_try='test -s conftest.$ac_objext' 6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6694 (eval $ac_try) 2>&5 6695 ac_status=$? 6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6697 (exit $ac_status); }; }; then 6698 ac_hi=-1 ac_mid=-1 6699 while :; do 6700 cat >conftest.$ac_ext <<_ACEOF 6701 /* confdefs.h. */ 6702 _ACEOF 6703 cat confdefs.h >>conftest.$ac_ext 6704 cat >>conftest.$ac_ext <<_ACEOF 6705 /* end confdefs.h. */ 6706 $ac_includes_default 6707 int 6708 main () 6709 { 6710 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 6711 test_array [0] = 0 6712 6713 ; 6714 return 0; 6715 } 6716 _ACEOF 6717 rm -f conftest.$ac_objext 6718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6719 (eval $ac_compile) 2>conftest.er1 6720 ac_status=$? 6721 grep -v '^ *+' conftest.er1 >conftest.err 6722 rm -f conftest.er1 6723 cat conftest.err >&5 6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6725 (exit $ac_status); } && 6726 { ac_try='test -z "$ac_c_werror_flag" 6727 || test ! -s conftest.err' 6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6729 (eval $ac_try) 2>&5 6730 ac_status=$? 6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6732 (exit $ac_status); }; } && 6733 { ac_try='test -s conftest.$ac_objext' 6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6735 (eval $ac_try) 2>&5 6736 ac_status=$? 6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6738 (exit $ac_status); }; }; then 6739 ac_lo=$ac_mid; break 6740 else 6741 echo "$as_me: failed program was:" >&5 6742 sed 's/^/| /' conftest.$ac_ext >&5 6743 6744 ac_hi=`expr '(' $ac_mid ')' - 1` 6745 if test $ac_mid -le $ac_hi; then 6746 ac_lo= ac_hi= 6747 break 6748 fi 6749 ac_mid=`expr 2 '*' $ac_mid` 6750 fi 6751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6752 done 6753 else 6754 echo "$as_me: failed program was:" >&5 6755 sed 's/^/| /' conftest.$ac_ext >&5 6756 6757 ac_lo= ac_hi= 6758 fi 6759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6760 fi 6761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6762 # Binary search between lo and hi bounds. 6763 while test "x$ac_lo" != "x$ac_hi"; do 6764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6765 cat >conftest.$ac_ext <<_ACEOF 6766 /* confdefs.h. */ 6767 _ACEOF 6768 cat confdefs.h >>conftest.$ac_ext 6769 cat >>conftest.$ac_ext <<_ACEOF 6770 /* end confdefs.h. */ 6771 $ac_includes_default 6772 int 6773 main () 6774 { 6775 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 6776 test_array [0] = 0 6777 6778 ; 6779 return 0; 6780 } 6781 _ACEOF 6782 rm -f conftest.$ac_objext 6783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6784 (eval $ac_compile) 2>conftest.er1 6785 ac_status=$? 6786 grep -v '^ *+' conftest.er1 >conftest.err 6787 rm -f conftest.er1 6788 cat conftest.err >&5 6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6790 (exit $ac_status); } && 6791 { ac_try='test -z "$ac_c_werror_flag" 6792 || test ! -s conftest.err' 6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6794 (eval $ac_try) 2>&5 6795 ac_status=$? 6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6797 (exit $ac_status); }; } && 6798 { ac_try='test -s conftest.$ac_objext' 6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6800 (eval $ac_try) 2>&5 6801 ac_status=$? 6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6803 (exit $ac_status); }; }; then 6804 ac_hi=$ac_mid 6805 else 6806 echo "$as_me: failed program was:" >&5 6807 sed 's/^/| /' conftest.$ac_ext >&5 6808 6809 ac_lo=`expr '(' $ac_mid ')' + 1` 6810 fi 6811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6812 done 6813 case $ac_lo in 6814 ?*) ac_cv_sizeof_long_long=$ac_lo;; 6815 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 6816 See \`config.log' for more details." >&5 6817 echo "$as_me: error: cannot compute sizeof (long long), 77 6818 See \`config.log' for more details." >&2;} 6819 { (exit 1); exit 1; }; } ;; 6820 esac 6821 else 6822 if test "$cross_compiling" = yes; then 6823 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6824 See \`config.log' for more details." >&5 6825 echo "$as_me: error: cannot run test program while cross compiling 6826 See \`config.log' for more details." >&2;} 6827 { (exit 1); exit 1; }; } 6828 else 6829 cat >conftest.$ac_ext <<_ACEOF 6830 /* confdefs.h. */ 6831 _ACEOF 6832 cat confdefs.h >>conftest.$ac_ext 6833 cat >>conftest.$ac_ext <<_ACEOF 6834 /* end confdefs.h. */ 6835 $ac_includes_default 6836 long longval () { return (long) (sizeof (long long)); } 6837 unsigned long ulongval () { return (long) (sizeof (long long)); } 6838 #include <stdio.h> 6839 #include <stdlib.h> 6840 int 6841 main () 6842 { 6843 6844 FILE *f = fopen ("conftest.val", "w"); 6845 if (! f) 6846 exit (1); 6847 if (((long) (sizeof (long long))) < 0) 6848 { 6849 long i = longval (); 6850 if (i != ((long) (sizeof (long long)))) 6851 exit (1); 6852 fprintf (f, "%ld\n", i); 6853 } 6854 else 6855 { 6856 unsigned long i = ulongval (); 6857 if (i != ((long) (sizeof (long long)))) 6858 exit (1); 6859 fprintf (f, "%lu\n", i); 6860 } 6861 exit (ferror (f) || fclose (f) != 0); 6862 6863 ; 6864 return 0; 6865 } 6866 _ACEOF 6867 rm -f conftest$ac_exeext 6868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6869 (eval $ac_link) 2>&5 6870 ac_status=$? 6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6874 (eval $ac_try) 2>&5 6875 ac_status=$? 6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6877 (exit $ac_status); }; }; then 6878 ac_cv_sizeof_long_long=`cat conftest.val` 6879 else 6880 echo "$as_me: program exited with status $ac_status" >&5 6881 echo "$as_me: failed program was:" >&5 6882 sed 's/^/| /' conftest.$ac_ext >&5 6883 6884 ( exit $ac_status ) 6885 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 6886 See \`config.log' for more details." >&5 6887 echo "$as_me: error: cannot compute sizeof (long long), 77 6888 See \`config.log' for more details." >&2;} 6889 { (exit 1); exit 1; }; } 6890 fi 6891 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6892 fi 6893 fi 6894 rm -f conftest.val 6895 else 6896 ac_cv_sizeof_long_long=0 6897 fi 6898 fi 6899 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 6900 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 6901 cat >>confdefs.h <<_ACEOF 6902 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6903 _ACEOF 6904 6905 6906 echo "$as_me:$LINENO: checking for long" >&5 6907 echo $ECHO_N "checking for long... $ECHO_C" >&6 6908 if test "${ac_cv_type_long+set}" = set; then 6909 echo $ECHO_N "(cached) $ECHO_C" >&6 6910 else 6911 cat >conftest.$ac_ext <<_ACEOF 6912 /* confdefs.h. */ 6913 _ACEOF 6914 cat confdefs.h >>conftest.$ac_ext 6915 cat >>conftest.$ac_ext <<_ACEOF 6916 /* end confdefs.h. */ 6917 $ac_includes_default 6918 int 6919 main () 6920 { 6921 if ((long *) 0) 6922 return 0; 6923 if (sizeof (long)) 6924 return 0; 6925 ; 6926 return 0; 6927 } 6928 _ACEOF 6929 rm -f conftest.$ac_objext 6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6931 (eval $ac_compile) 2>conftest.er1 6932 ac_status=$? 6933 grep -v '^ *+' conftest.er1 >conftest.err 6934 rm -f conftest.er1 6935 cat conftest.err >&5 6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6937 (exit $ac_status); } && 6938 { ac_try='test -z "$ac_c_werror_flag" 6939 || test ! -s conftest.err' 6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6941 (eval $ac_try) 2>&5 6942 ac_status=$? 6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6944 (exit $ac_status); }; } && 6945 { ac_try='test -s conftest.$ac_objext' 6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6947 (eval $ac_try) 2>&5 6948 ac_status=$? 6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6950 (exit $ac_status); }; }; then 6951 ac_cv_type_long=yes 6952 else 6953 echo "$as_me: failed program was:" >&5 6954 sed 's/^/| /' conftest.$ac_ext >&5 6955 6956 ac_cv_type_long=no 6957 fi 6958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6959 fi 6960 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 6961 echo "${ECHO_T}$ac_cv_type_long" >&6 6962 6963 echo "$as_me:$LINENO: checking size of long" >&5 6964 echo $ECHO_N "checking size of long... $ECHO_C" >&6 6965 if test "${ac_cv_sizeof_long+set}" = set; then 6966 echo $ECHO_N "(cached) $ECHO_C" >&6 6967 else 6968 if test "$ac_cv_type_long" = yes; then 6969 # The cast to unsigned long works around a bug in the HP C Compiler 6970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6972 # This bug is HP SR number 8606223364. 6973 if test "$cross_compiling" = yes; then 6974 # Depending upon the size, compute the lo and hi bounds. 6975 cat >conftest.$ac_ext <<_ACEOF 6976 /* confdefs.h. */ 6977 _ACEOF 6978 cat confdefs.h >>conftest.$ac_ext 6979 cat >>conftest.$ac_ext <<_ACEOF 6980 /* end confdefs.h. */ 6981 $ac_includes_default 6982 int 6983 main () 6984 { 6985 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 6986 test_array [0] = 0 6987 6988 ; 6989 return 0; 6990 } 6991 _ACEOF 6992 rm -f conftest.$ac_objext 6993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6994 (eval $ac_compile) 2>conftest.er1 6995 ac_status=$? 6996 grep -v '^ *+' conftest.er1 >conftest.err 6997 rm -f conftest.er1 6998 cat conftest.err >&5 6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7000 (exit $ac_status); } && 7001 { ac_try='test -z "$ac_c_werror_flag" 7002 || test ! -s conftest.err' 7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7004 (eval $ac_try) 2>&5 7005 ac_status=$? 7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7007 (exit $ac_status); }; } && 7008 { ac_try='test -s conftest.$ac_objext' 7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7010 (eval $ac_try) 2>&5 7011 ac_status=$? 7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7013 (exit $ac_status); }; }; then 7014 ac_lo=0 ac_mid=0 7015 while :; do 7016 cat >conftest.$ac_ext <<_ACEOF 7017 /* confdefs.h. */ 7018 _ACEOF 7019 cat confdefs.h >>conftest.$ac_ext 7020 cat >>conftest.$ac_ext <<_ACEOF 7021 /* end confdefs.h. */ 7022 $ac_includes_default 7023 int 7024 main () 7025 { 7026 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 7027 test_array [0] = 0 7028 7029 ; 7030 return 0; 7031 } 7032 _ACEOF 7033 rm -f conftest.$ac_objext 7034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7035 (eval $ac_compile) 2>conftest.er1 7036 ac_status=$? 7037 grep -v '^ *+' conftest.er1 >conftest.err 7038 rm -f conftest.er1 7039 cat conftest.err >&5 7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7041 (exit $ac_status); } && 7042 { ac_try='test -z "$ac_c_werror_flag" 7043 || test ! -s conftest.err' 7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7045 (eval $ac_try) 2>&5 7046 ac_status=$? 7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7048 (exit $ac_status); }; } && 7049 { ac_try='test -s conftest.$ac_objext' 7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7051 (eval $ac_try) 2>&5 7052 ac_status=$? 7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7054 (exit $ac_status); }; }; then 7055 ac_hi=$ac_mid; break 7056 else 7057 echo "$as_me: failed program was:" >&5 7058 sed 's/^/| /' conftest.$ac_ext >&5 7059 7060 ac_lo=`expr $ac_mid + 1` 7061 if test $ac_lo -le $ac_mid; then 7062 ac_lo= ac_hi= 7063 break 7064 fi 7065 ac_mid=`expr 2 '*' $ac_mid + 1` 7066 fi 7067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7068 done 7069 else 7070 echo "$as_me: failed program was:" >&5 7071 sed 's/^/| /' conftest.$ac_ext >&5 7072 7073 cat >conftest.$ac_ext <<_ACEOF 7074 /* confdefs.h. */ 7075 _ACEOF 7076 cat confdefs.h >>conftest.$ac_ext 7077 cat >>conftest.$ac_ext <<_ACEOF 7078 /* end confdefs.h. */ 7079 $ac_includes_default 7080 int 7081 main () 7082 { 7083 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 7084 test_array [0] = 0 7085 7086 ; 7087 return 0; 7088 } 7089 _ACEOF 7090 rm -f conftest.$ac_objext 7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7092 (eval $ac_compile) 2>conftest.er1 7093 ac_status=$? 7094 grep -v '^ *+' conftest.er1 >conftest.err 7095 rm -f conftest.er1 7096 cat conftest.err >&5 7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7098 (exit $ac_status); } && 7099 { ac_try='test -z "$ac_c_werror_flag" 7100 || test ! -s conftest.err' 7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7102 (eval $ac_try) 2>&5 7103 ac_status=$? 7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7105 (exit $ac_status); }; } && 7106 { ac_try='test -s conftest.$ac_objext' 7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7108 (eval $ac_try) 2>&5 7109 ac_status=$? 7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7111 (exit $ac_status); }; }; then 7112 ac_hi=-1 ac_mid=-1 7113 while :; do 7114 cat >conftest.$ac_ext <<_ACEOF 7115 /* confdefs.h. */ 7116 _ACEOF 7117 cat confdefs.h >>conftest.$ac_ext 7118 cat >>conftest.$ac_ext <<_ACEOF 7119 /* end confdefs.h. */ 7120 $ac_includes_default 7121 int 7122 main () 7123 { 7124 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 7125 test_array [0] = 0 7126 7127 ; 7128 return 0; 7129 } 7130 _ACEOF 7131 rm -f conftest.$ac_objext 7132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7133 (eval $ac_compile) 2>conftest.er1 7134 ac_status=$? 7135 grep -v '^ *+' conftest.er1 >conftest.err 7136 rm -f conftest.er1 7137 cat conftest.err >&5 7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7139 (exit $ac_status); } && 7140 { ac_try='test -z "$ac_c_werror_flag" 7141 || test ! -s conftest.err' 7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7143 (eval $ac_try) 2>&5 7144 ac_status=$? 7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7146 (exit $ac_status); }; } && 7147 { ac_try='test -s conftest.$ac_objext' 7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7149 (eval $ac_try) 2>&5 7150 ac_status=$? 7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7152 (exit $ac_status); }; }; then 7153 ac_lo=$ac_mid; break 7154 else 7155 echo "$as_me: failed program was:" >&5 7156 sed 's/^/| /' conftest.$ac_ext >&5 7157 7158 ac_hi=`expr '(' $ac_mid ')' - 1` 7159 if test $ac_mid -le $ac_hi; then 7160 ac_lo= ac_hi= 7161 break 7162 fi 7163 ac_mid=`expr 2 '*' $ac_mid` 7164 fi 7165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7166 done 7167 else 7168 echo "$as_me: failed program was:" >&5 7169 sed 's/^/| /' conftest.$ac_ext >&5 7170 7171 ac_lo= ac_hi= 7172 fi 7173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7174 fi 7175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7176 # Binary search between lo and hi bounds. 7177 while test "x$ac_lo" != "x$ac_hi"; do 7178 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7179 cat >conftest.$ac_ext <<_ACEOF 7180 /* confdefs.h. */ 7181 _ACEOF 7182 cat confdefs.h >>conftest.$ac_ext 7183 cat >>conftest.$ac_ext <<_ACEOF 7184 /* end confdefs.h. */ 7185 $ac_includes_default 7186 int 7187 main () 7188 { 7189 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 7190 test_array [0] = 0 7191 7192 ; 7193 return 0; 7194 } 7195 _ACEOF 7196 rm -f conftest.$ac_objext 7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7198 (eval $ac_compile) 2>conftest.er1 7199 ac_status=$? 7200 grep -v '^ *+' conftest.er1 >conftest.err 7201 rm -f conftest.er1 7202 cat conftest.err >&5 7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7204 (exit $ac_status); } && 7205 { ac_try='test -z "$ac_c_werror_flag" 7206 || test ! -s conftest.err' 7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7208 (eval $ac_try) 2>&5 7209 ac_status=$? 7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7211 (exit $ac_status); }; } && 7212 { ac_try='test -s conftest.$ac_objext' 7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7214 (eval $ac_try) 2>&5 7215 ac_status=$? 7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7217 (exit $ac_status); }; }; then 7218 ac_hi=$ac_mid 7219 else 7220 echo "$as_me: failed program was:" >&5 7221 sed 's/^/| /' conftest.$ac_ext >&5 7222 7223 ac_lo=`expr '(' $ac_mid ')' + 1` 7224 fi 7225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7226 done 7227 case $ac_lo in 7228 ?*) ac_cv_sizeof_long=$ac_lo;; 7229 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 7230 See \`config.log' for more details." >&5 7231 echo "$as_me: error: cannot compute sizeof (long), 77 7232 See \`config.log' for more details." >&2;} 7233 { (exit 1); exit 1; }; } ;; 7234 esac 7235 else 7236 if test "$cross_compiling" = yes; then 7237 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7238 See \`config.log' for more details." >&5 7239 echo "$as_me: error: cannot run test program while cross compiling 7240 See \`config.log' for more details." >&2;} 7241 { (exit 1); exit 1; }; } 7242 else 7243 cat >conftest.$ac_ext <<_ACEOF 7244 /* confdefs.h. */ 7245 _ACEOF 7246 cat confdefs.h >>conftest.$ac_ext 7247 cat >>conftest.$ac_ext <<_ACEOF 7248 /* end confdefs.h. */ 7249 $ac_includes_default 7250 long longval () { return (long) (sizeof (long)); } 7251 unsigned long ulongval () { return (long) (sizeof (long)); } 7252 #include <stdio.h> 7253 #include <stdlib.h> 7254 int 7255 main () 7256 { 7257 7258 FILE *f = fopen ("conftest.val", "w"); 7259 if (! f) 7260 exit (1); 7261 if (((long) (sizeof (long))) < 0) 7262 { 7263 long i = longval (); 7264 if (i != ((long) (sizeof (long)))) 7265 exit (1); 7266 fprintf (f, "%ld\n", i); 7267 } 7268 else 7269 { 7270 unsigned long i = ulongval (); 7271 if (i != ((long) (sizeof (long)))) 7272 exit (1); 7273 fprintf (f, "%lu\n", i); 7274 } 7275 exit (ferror (f) || fclose (f) != 0); 7276 7277 ; 7278 return 0; 7279 } 7280 _ACEOF 7281 rm -f conftest$ac_exeext 7282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7283 (eval $ac_link) 2>&5 7284 ac_status=$? 7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7288 (eval $ac_try) 2>&5 7289 ac_status=$? 7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7291 (exit $ac_status); }; }; then 7292 ac_cv_sizeof_long=`cat conftest.val` 7293 else 7294 echo "$as_me: program exited with status $ac_status" >&5 7295 echo "$as_me: failed program was:" >&5 7296 sed 's/^/| /' conftest.$ac_ext >&5 7297 7298 ( exit $ac_status ) 7299 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 7300 See \`config.log' for more details." >&5 7301 echo "$as_me: error: cannot compute sizeof (long), 77 7302 See \`config.log' for more details." >&2;} 7303 { (exit 1); exit 1; }; } 7304 fi 7305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7306 fi 7307 fi 7308 rm -f conftest.val 7309 else 7310 ac_cv_sizeof_long=0 7311 fi 7312 fi 7313 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 7314 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 7315 cat >>confdefs.h <<_ACEOF 7316 #define SIZEOF_LONG $ac_cv_sizeof_long 7317 _ACEOF 7318 7319 7320 echo "$as_me:$LINENO: checking for int" >&5 7321 echo $ECHO_N "checking for int... $ECHO_C" >&6 7322 if test "${ac_cv_type_int+set}" = set; then 7323 echo $ECHO_N "(cached) $ECHO_C" >&6 7324 else 7325 cat >conftest.$ac_ext <<_ACEOF 7326 /* confdefs.h. */ 7327 _ACEOF 7328 cat confdefs.h >>conftest.$ac_ext 7329 cat >>conftest.$ac_ext <<_ACEOF 7330 /* end confdefs.h. */ 7331 $ac_includes_default 7332 int 7333 main () 7334 { 7335 if ((int *) 0) 7336 return 0; 7337 if (sizeof (int)) 7338 return 0; 7339 ; 7340 return 0; 7341 } 7342 _ACEOF 7343 rm -f conftest.$ac_objext 7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7345 (eval $ac_compile) 2>conftest.er1 7346 ac_status=$? 7347 grep -v '^ *+' conftest.er1 >conftest.err 7348 rm -f conftest.er1 7349 cat conftest.err >&5 7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7351 (exit $ac_status); } && 7352 { ac_try='test -z "$ac_c_werror_flag" 7353 || test ! -s conftest.err' 7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7355 (eval $ac_try) 2>&5 7356 ac_status=$? 7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7358 (exit $ac_status); }; } && 7359 { ac_try='test -s conftest.$ac_objext' 7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7361 (eval $ac_try) 2>&5 7362 ac_status=$? 7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7364 (exit $ac_status); }; }; then 7365 ac_cv_type_int=yes 7366 else 7367 echo "$as_me: failed program was:" >&5 7368 sed 's/^/| /' conftest.$ac_ext >&5 7369 7370 ac_cv_type_int=no 7371 fi 7372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7373 fi 7374 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 7375 echo "${ECHO_T}$ac_cv_type_int" >&6 7376 7377 echo "$as_me:$LINENO: checking size of int" >&5 7378 echo $ECHO_N "checking size of int... $ECHO_C" >&6 7379 if test "${ac_cv_sizeof_int+set}" = set; then 7380 echo $ECHO_N "(cached) $ECHO_C" >&6 7381 else 7382 if test "$ac_cv_type_int" = yes; then 7383 # The cast to unsigned long works around a bug in the HP C Compiler 7384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7386 # This bug is HP SR number 8606223364. 7387 if test "$cross_compiling" = yes; then 7388 # Depending upon the size, compute the lo and hi bounds. 7389 cat >conftest.$ac_ext <<_ACEOF 7390 /* confdefs.h. */ 7391 _ACEOF 7392 cat confdefs.h >>conftest.$ac_ext 7393 cat >>conftest.$ac_ext <<_ACEOF 7394 /* end confdefs.h. */ 7395 $ac_includes_default 7396 int 7397 main () 7398 { 7399 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 7400 test_array [0] = 0 7401 7402 ; 7403 return 0; 7404 } 7405 _ACEOF 7406 rm -f conftest.$ac_objext 7407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7408 (eval $ac_compile) 2>conftest.er1 7409 ac_status=$? 7410 grep -v '^ *+' conftest.er1 >conftest.err 7411 rm -f conftest.er1 7412 cat conftest.err >&5 7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7414 (exit $ac_status); } && 7415 { ac_try='test -z "$ac_c_werror_flag" 7416 || test ! -s conftest.err' 7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7418 (eval $ac_try) 2>&5 7419 ac_status=$? 7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7421 (exit $ac_status); }; } && 7422 { ac_try='test -s conftest.$ac_objext' 7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7424 (eval $ac_try) 2>&5 7425 ac_status=$? 7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7427 (exit $ac_status); }; }; then 7428 ac_lo=0 ac_mid=0 7429 while :; do 7430 cat >conftest.$ac_ext <<_ACEOF 7431 /* confdefs.h. */ 7432 _ACEOF 7433 cat confdefs.h >>conftest.$ac_ext 7434 cat >>conftest.$ac_ext <<_ACEOF 7435 /* end confdefs.h. */ 7436 $ac_includes_default 7437 int 7438 main () 7439 { 7440 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 7441 test_array [0] = 0 7442 7443 ; 7444 return 0; 7445 } 7446 _ACEOF 7447 rm -f conftest.$ac_objext 7448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7449 (eval $ac_compile) 2>conftest.er1 7450 ac_status=$? 7451 grep -v '^ *+' conftest.er1 >conftest.err 7452 rm -f conftest.er1 7453 cat conftest.err >&5 7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7455 (exit $ac_status); } && 7456 { ac_try='test -z "$ac_c_werror_flag" 7457 || test ! -s conftest.err' 7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7459 (eval $ac_try) 2>&5 7460 ac_status=$? 7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7462 (exit $ac_status); }; } && 7463 { ac_try='test -s conftest.$ac_objext' 7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7465 (eval $ac_try) 2>&5 7466 ac_status=$? 7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7468 (exit $ac_status); }; }; then 7469 ac_hi=$ac_mid; break 7470 else 7471 echo "$as_me: failed program was:" >&5 7472 sed 's/^/| /' conftest.$ac_ext >&5 7473 7474 ac_lo=`expr $ac_mid + 1` 7475 if test $ac_lo -le $ac_mid; then 7476 ac_lo= ac_hi= 7477 break 7478 fi 7479 ac_mid=`expr 2 '*' $ac_mid + 1` 7480 fi 7481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7482 done 7483 else 7484 echo "$as_me: failed program was:" >&5 7485 sed 's/^/| /' conftest.$ac_ext >&5 7486 7487 cat >conftest.$ac_ext <<_ACEOF 7488 /* confdefs.h. */ 7489 _ACEOF 7490 cat confdefs.h >>conftest.$ac_ext 7491 cat >>conftest.$ac_ext <<_ACEOF 7492 /* end confdefs.h. */ 7493 $ac_includes_default 7494 int 7495 main () 7496 { 7497 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 7498 test_array [0] = 0 7499 7500 ; 7501 return 0; 7502 } 7503 _ACEOF 7504 rm -f conftest.$ac_objext 7505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7506 (eval $ac_compile) 2>conftest.er1 7507 ac_status=$? 7508 grep -v '^ *+' conftest.er1 >conftest.err 7509 rm -f conftest.er1 7510 cat conftest.err >&5 7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7512 (exit $ac_status); } && 7513 { ac_try='test -z "$ac_c_werror_flag" 7514 || test ! -s conftest.err' 7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7516 (eval $ac_try) 2>&5 7517 ac_status=$? 7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7519 (exit $ac_status); }; } && 7520 { ac_try='test -s conftest.$ac_objext' 7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7522 (eval $ac_try) 2>&5 7523 ac_status=$? 7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7525 (exit $ac_status); }; }; then 7526 ac_hi=-1 ac_mid=-1 7527 while :; do 7528 cat >conftest.$ac_ext <<_ACEOF 7529 /* confdefs.h. */ 7530 _ACEOF 7531 cat confdefs.h >>conftest.$ac_ext 7532 cat >>conftest.$ac_ext <<_ACEOF 7533 /* end confdefs.h. */ 7534 $ac_includes_default 7535 int 7536 main () 7537 { 7538 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 7539 test_array [0] = 0 7540 7541 ; 7542 return 0; 7543 } 7544 _ACEOF 7545 rm -f conftest.$ac_objext 7546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7547 (eval $ac_compile) 2>conftest.er1 7548 ac_status=$? 7549 grep -v '^ *+' conftest.er1 >conftest.err 7550 rm -f conftest.er1 7551 cat conftest.err >&5 7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7553 (exit $ac_status); } && 7554 { ac_try='test -z "$ac_c_werror_flag" 7555 || test ! -s conftest.err' 7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7557 (eval $ac_try) 2>&5 7558 ac_status=$? 7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7560 (exit $ac_status); }; } && 7561 { ac_try='test -s conftest.$ac_objext' 7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7563 (eval $ac_try) 2>&5 7564 ac_status=$? 7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7566 (exit $ac_status); }; }; then 7567 ac_lo=$ac_mid; break 7568 else 7569 echo "$as_me: failed program was:" >&5 7570 sed 's/^/| /' conftest.$ac_ext >&5 7571 7572 ac_hi=`expr '(' $ac_mid ')' - 1` 7573 if test $ac_mid -le $ac_hi; then 7574 ac_lo= ac_hi= 7575 break 7576 fi 7577 ac_mid=`expr 2 '*' $ac_mid` 7578 fi 7579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7580 done 7581 else 7582 echo "$as_me: failed program was:" >&5 7583 sed 's/^/| /' conftest.$ac_ext >&5 7584 7585 ac_lo= ac_hi= 7586 fi 7587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7588 fi 7589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7590 # Binary search between lo and hi bounds. 7591 while test "x$ac_lo" != "x$ac_hi"; do 7592 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7593 cat >conftest.$ac_ext <<_ACEOF 7594 /* confdefs.h. */ 7595 _ACEOF 7596 cat confdefs.h >>conftest.$ac_ext 7597 cat >>conftest.$ac_ext <<_ACEOF 7598 /* end confdefs.h. */ 7599 $ac_includes_default 7600 int 7601 main () 7602 { 7603 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 7604 test_array [0] = 0 7605 7606 ; 7607 return 0; 7608 } 7609 _ACEOF 7610 rm -f conftest.$ac_objext 7611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7612 (eval $ac_compile) 2>conftest.er1 7613 ac_status=$? 7614 grep -v '^ *+' conftest.er1 >conftest.err 7615 rm -f conftest.er1 7616 cat conftest.err >&5 7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7618 (exit $ac_status); } && 7619 { ac_try='test -z "$ac_c_werror_flag" 7620 || test ! -s conftest.err' 7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7622 (eval $ac_try) 2>&5 7623 ac_status=$? 7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7625 (exit $ac_status); }; } && 7626 { ac_try='test -s conftest.$ac_objext' 7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7628 (eval $ac_try) 2>&5 7629 ac_status=$? 7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7631 (exit $ac_status); }; }; then 7632 ac_hi=$ac_mid 7633 else 7634 echo "$as_me: failed program was:" >&5 7635 sed 's/^/| /' conftest.$ac_ext >&5 7636 7637 ac_lo=`expr '(' $ac_mid ')' + 1` 7638 fi 7639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7640 done 7641 case $ac_lo in 7642 ?*) ac_cv_sizeof_int=$ac_lo;; 7643 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 7644 See \`config.log' for more details." >&5 7645 echo "$as_me: error: cannot compute sizeof (int), 77 7646 See \`config.log' for more details." >&2;} 7647 { (exit 1); exit 1; }; } ;; 7648 esac 7649 else 7650 if test "$cross_compiling" = yes; then 7651 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7652 See \`config.log' for more details." >&5 7653 echo "$as_me: error: cannot run test program while cross compiling 7654 See \`config.log' for more details." >&2;} 7655 { (exit 1); exit 1; }; } 7656 else 7657 cat >conftest.$ac_ext <<_ACEOF 7658 /* confdefs.h. */ 7659 _ACEOF 7660 cat confdefs.h >>conftest.$ac_ext 7661 cat >>conftest.$ac_ext <<_ACEOF 7662 /* end confdefs.h. */ 7663 $ac_includes_default 7664 long longval () { return (long) (sizeof (int)); } 7665 unsigned long ulongval () { return (long) (sizeof (int)); } 7666 #include <stdio.h> 7667 #include <stdlib.h> 7668 int 7669 main () 7670 { 7671 7672 FILE *f = fopen ("conftest.val", "w"); 7673 if (! f) 7674 exit (1); 7675 if (((long) (sizeof (int))) < 0) 7676 { 7677 long i = longval (); 7678 if (i != ((long) (sizeof (int)))) 7679 exit (1); 7680 fprintf (f, "%ld\n", i); 7681 } 7682 else 7683 { 7684 unsigned long i = ulongval (); 7685 if (i != ((long) (sizeof (int)))) 7686 exit (1); 7687 fprintf (f, "%lu\n", i); 7688 } 7689 exit (ferror (f) || fclose (f) != 0); 7690 7691 ; 7692 return 0; 7693 } 7694 _ACEOF 7695 rm -f conftest$ac_exeext 7696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7697 (eval $ac_link) 2>&5 7698 ac_status=$? 7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7702 (eval $ac_try) 2>&5 7703 ac_status=$? 7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7705 (exit $ac_status); }; }; then 7706 ac_cv_sizeof_int=`cat conftest.val` 7707 else 7708 echo "$as_me: program exited with status $ac_status" >&5 7709 echo "$as_me: failed program was:" >&5 7710 sed 's/^/| /' conftest.$ac_ext >&5 7711 7712 ( exit $ac_status ) 7713 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 7714 See \`config.log' for more details." >&5 7715 echo "$as_me: error: cannot compute sizeof (int), 77 7716 See \`config.log' for more details." >&2;} 7717 { (exit 1); exit 1; }; } 7718 fi 7719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7720 fi 7721 fi 7722 rm -f conftest.val 7723 else 7724 ac_cv_sizeof_int=0 7725 fi 7726 fi 7727 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 7728 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 7729 cat >>confdefs.h <<_ACEOF 7730 #define SIZEOF_INT $ac_cv_sizeof_int 7731 _ACEOF 7732 7733 7734 echo "$as_me:$LINENO: checking for short" >&5 7735 echo $ECHO_N "checking for short... $ECHO_C" >&6 7736 if test "${ac_cv_type_short+set}" = set; then 7737 echo $ECHO_N "(cached) $ECHO_C" >&6 7738 else 7739 cat >conftest.$ac_ext <<_ACEOF 7740 /* confdefs.h. */ 7741 _ACEOF 7742 cat confdefs.h >>conftest.$ac_ext 7743 cat >>conftest.$ac_ext <<_ACEOF 7744 /* end confdefs.h. */ 7745 $ac_includes_default 7746 int 7747 main () 7748 { 7749 if ((short *) 0) 7750 return 0; 7751 if (sizeof (short)) 7752 return 0; 7753 ; 7754 return 0; 7755 } 7756 _ACEOF 7757 rm -f conftest.$ac_objext 7758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7759 (eval $ac_compile) 2>conftest.er1 7760 ac_status=$? 7761 grep -v '^ *+' conftest.er1 >conftest.err 7762 rm -f conftest.er1 7763 cat conftest.err >&5 7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7765 (exit $ac_status); } && 7766 { ac_try='test -z "$ac_c_werror_flag" 7767 || test ! -s conftest.err' 7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7769 (eval $ac_try) 2>&5 7770 ac_status=$? 7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7772 (exit $ac_status); }; } && 7773 { ac_try='test -s conftest.$ac_objext' 7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7775 (eval $ac_try) 2>&5 7776 ac_status=$? 7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7778 (exit $ac_status); }; }; then 7779 ac_cv_type_short=yes 7780 else 7781 echo "$as_me: failed program was:" >&5 7782 sed 's/^/| /' conftest.$ac_ext >&5 7783 7784 ac_cv_type_short=no 7785 fi 7786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7787 fi 7788 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 7789 echo "${ECHO_T}$ac_cv_type_short" >&6 7790 7791 echo "$as_me:$LINENO: checking size of short" >&5 7792 echo $ECHO_N "checking size of short... $ECHO_C" >&6 7793 if test "${ac_cv_sizeof_short+set}" = set; then 7794 echo $ECHO_N "(cached) $ECHO_C" >&6 7795 else 7796 if test "$ac_cv_type_short" = yes; then 7797 # The cast to unsigned long works around a bug in the HP C Compiler 7798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7800 # This bug is HP SR number 8606223364. 7801 if test "$cross_compiling" = yes; then 7802 # Depending upon the size, compute the lo and hi bounds. 7803 cat >conftest.$ac_ext <<_ACEOF 7804 /* confdefs.h. */ 7805 _ACEOF 7806 cat confdefs.h >>conftest.$ac_ext 7807 cat >>conftest.$ac_ext <<_ACEOF 7808 /* end confdefs.h. */ 7809 $ac_includes_default 7810 int 7811 main () 7812 { 7813 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 7814 test_array [0] = 0 7815 7816 ; 7817 return 0; 7818 } 7819 _ACEOF 7820 rm -f conftest.$ac_objext 7821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7822 (eval $ac_compile) 2>conftest.er1 7823 ac_status=$? 7824 grep -v '^ *+' conftest.er1 >conftest.err 7825 rm -f conftest.er1 7826 cat conftest.err >&5 7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7828 (exit $ac_status); } && 7829 { ac_try='test -z "$ac_c_werror_flag" 7830 || test ! -s conftest.err' 7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7832 (eval $ac_try) 2>&5 7833 ac_status=$? 7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7835 (exit $ac_status); }; } && 7836 { ac_try='test -s conftest.$ac_objext' 7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7838 (eval $ac_try) 2>&5 7839 ac_status=$? 7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7841 (exit $ac_status); }; }; then 7842 ac_lo=0 ac_mid=0 7843 while :; do 7844 cat >conftest.$ac_ext <<_ACEOF 7845 /* confdefs.h. */ 7846 _ACEOF 7847 cat confdefs.h >>conftest.$ac_ext 7848 cat >>conftest.$ac_ext <<_ACEOF 7849 /* end confdefs.h. */ 7850 $ac_includes_default 7851 int 7852 main () 7853 { 7854 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 7855 test_array [0] = 0 7856 7857 ; 7858 return 0; 7859 } 7860 _ACEOF 7861 rm -f conftest.$ac_objext 7862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7863 (eval $ac_compile) 2>conftest.er1 7864 ac_status=$? 7865 grep -v '^ *+' conftest.er1 >conftest.err 7866 rm -f conftest.er1 7867 cat conftest.err >&5 7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7869 (exit $ac_status); } && 7870 { ac_try='test -z "$ac_c_werror_flag" 7871 || test ! -s conftest.err' 7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7873 (eval $ac_try) 2>&5 7874 ac_status=$? 7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7876 (exit $ac_status); }; } && 7877 { ac_try='test -s conftest.$ac_objext' 7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7879 (eval $ac_try) 2>&5 7880 ac_status=$? 7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7882 (exit $ac_status); }; }; then 7883 ac_hi=$ac_mid; break 7884 else 7885 echo "$as_me: failed program was:" >&5 7886 sed 's/^/| /' conftest.$ac_ext >&5 7887 7888 ac_lo=`expr $ac_mid + 1` 7889 if test $ac_lo -le $ac_mid; then 7890 ac_lo= ac_hi= 7891 break 7892 fi 7893 ac_mid=`expr 2 '*' $ac_mid + 1` 7894 fi 7895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7896 done 7897 else 7898 echo "$as_me: failed program was:" >&5 7899 sed 's/^/| /' conftest.$ac_ext >&5 7900 7901 cat >conftest.$ac_ext <<_ACEOF 7902 /* confdefs.h. */ 7903 _ACEOF 7904 cat confdefs.h >>conftest.$ac_ext 7905 cat >>conftest.$ac_ext <<_ACEOF 7906 /* end confdefs.h. */ 7907 $ac_includes_default 7908 int 7909 main () 7910 { 7911 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 7912 test_array [0] = 0 7913 7914 ; 7915 return 0; 7916 } 7917 _ACEOF 7918 rm -f conftest.$ac_objext 7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7920 (eval $ac_compile) 2>conftest.er1 7921 ac_status=$? 7922 grep -v '^ *+' conftest.er1 >conftest.err 7923 rm -f conftest.er1 7924 cat conftest.err >&5 7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7926 (exit $ac_status); } && 7927 { ac_try='test -z "$ac_c_werror_flag" 7928 || test ! -s conftest.err' 7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7930 (eval $ac_try) 2>&5 7931 ac_status=$? 7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7933 (exit $ac_status); }; } && 7934 { ac_try='test -s conftest.$ac_objext' 7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7936 (eval $ac_try) 2>&5 7937 ac_status=$? 7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7939 (exit $ac_status); }; }; then 7940 ac_hi=-1 ac_mid=-1 7941 while :; do 7942 cat >conftest.$ac_ext <<_ACEOF 7943 /* confdefs.h. */ 7944 _ACEOF 7945 cat confdefs.h >>conftest.$ac_ext 7946 cat >>conftest.$ac_ext <<_ACEOF 7947 /* end confdefs.h. */ 7948 $ac_includes_default 7949 int 7950 main () 7951 { 7952 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 7953 test_array [0] = 0 7954 7955 ; 7956 return 0; 7957 } 7958 _ACEOF 7959 rm -f conftest.$ac_objext 7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7961 (eval $ac_compile) 2>conftest.er1 7962 ac_status=$? 7963 grep -v '^ *+' conftest.er1 >conftest.err 7964 rm -f conftest.er1 7965 cat conftest.err >&5 7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7967 (exit $ac_status); } && 7968 { ac_try='test -z "$ac_c_werror_flag" 7969 || test ! -s conftest.err' 7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7971 (eval $ac_try) 2>&5 7972 ac_status=$? 7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7974 (exit $ac_status); }; } && 7975 { ac_try='test -s conftest.$ac_objext' 7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7977 (eval $ac_try) 2>&5 7978 ac_status=$? 7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7980 (exit $ac_status); }; }; then 7981 ac_lo=$ac_mid; break 7982 else 7983 echo "$as_me: failed program was:" >&5 7984 sed 's/^/| /' conftest.$ac_ext >&5 7985 7986 ac_hi=`expr '(' $ac_mid ')' - 1` 7987 if test $ac_mid -le $ac_hi; then 7988 ac_lo= ac_hi= 7989 break 7990 fi 7991 ac_mid=`expr 2 '*' $ac_mid` 7992 fi 7993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7994 done 7995 else 7996 echo "$as_me: failed program was:" >&5 7997 sed 's/^/| /' conftest.$ac_ext >&5 7998 7999 ac_lo= ac_hi= 8000 fi 8001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8002 fi 8003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8004 # Binary search between lo and hi bounds. 8005 while test "x$ac_lo" != "x$ac_hi"; do 8006 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8007 cat >conftest.$ac_ext <<_ACEOF 8008 /* confdefs.h. */ 8009 _ACEOF 8010 cat confdefs.h >>conftest.$ac_ext 8011 cat >>conftest.$ac_ext <<_ACEOF 8012 /* end confdefs.h. */ 8013 $ac_includes_default 8014 int 8015 main () 8016 { 8017 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 8018 test_array [0] = 0 8019 8020 ; 8021 return 0; 8022 } 8023 _ACEOF 8024 rm -f conftest.$ac_objext 8025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8026 (eval $ac_compile) 2>conftest.er1 8027 ac_status=$? 8028 grep -v '^ *+' conftest.er1 >conftest.err 8029 rm -f conftest.er1 8030 cat conftest.err >&5 8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8032 (exit $ac_status); } && 8033 { ac_try='test -z "$ac_c_werror_flag" 8034 || test ! -s conftest.err' 8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8036 (eval $ac_try) 2>&5 8037 ac_status=$? 8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8039 (exit $ac_status); }; } && 8040 { ac_try='test -s conftest.$ac_objext' 8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8042 (eval $ac_try) 2>&5 8043 ac_status=$? 8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8045 (exit $ac_status); }; }; then 8046 ac_hi=$ac_mid 8047 else 8048 echo "$as_me: failed program was:" >&5 8049 sed 's/^/| /' conftest.$ac_ext >&5 8050 8051 ac_lo=`expr '(' $ac_mid ')' + 1` 8052 fi 8053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8054 done 8055 case $ac_lo in 8056 ?*) ac_cv_sizeof_short=$ac_lo;; 8057 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 8058 See \`config.log' for more details." >&5 8059 echo "$as_me: error: cannot compute sizeof (short), 77 8060 See \`config.log' for more details." >&2;} 8061 { (exit 1); exit 1; }; } ;; 8062 esac 8063 else 8064 if test "$cross_compiling" = yes; then 8065 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8066 See \`config.log' for more details." >&5 8067 echo "$as_me: error: cannot run test program while cross compiling 8068 See \`config.log' for more details." >&2;} 8069 { (exit 1); exit 1; }; } 8070 else 8071 cat >conftest.$ac_ext <<_ACEOF 8072 /* confdefs.h. */ 8073 _ACEOF 8074 cat confdefs.h >>conftest.$ac_ext 8075 cat >>conftest.$ac_ext <<_ACEOF 8076 /* end confdefs.h. */ 8077 $ac_includes_default 8078 long longval () { return (long) (sizeof (short)); } 8079 unsigned long ulongval () { return (long) (sizeof (short)); } 8080 #include <stdio.h> 8081 #include <stdlib.h> 8082 int 8083 main () 8084 { 8085 8086 FILE *f = fopen ("conftest.val", "w"); 8087 if (! f) 8088 exit (1); 8089 if (((long) (sizeof (short))) < 0) 8090 { 8091 long i = longval (); 8092 if (i != ((long) (sizeof (short)))) 8093 exit (1); 8094 fprintf (f, "%ld\n", i); 8095 } 8096 else 8097 { 8098 unsigned long i = ulongval (); 8099 if (i != ((long) (sizeof (short)))) 8100 exit (1); 8101 fprintf (f, "%lu\n", i); 8102 } 8103 exit (ferror (f) || fclose (f) != 0); 8104 8105 ; 8106 return 0; 8107 } 8108 _ACEOF 8109 rm -f conftest$ac_exeext 8110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8111 (eval $ac_link) 2>&5 8112 ac_status=$? 8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8116 (eval $ac_try) 2>&5 8117 ac_status=$? 8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8119 (exit $ac_status); }; }; then 8120 ac_cv_sizeof_short=`cat conftest.val` 8121 else 8122 echo "$as_me: program exited with status $ac_status" >&5 8123 echo "$as_me: failed program was:" >&5 8124 sed 's/^/| /' conftest.$ac_ext >&5 8125 8126 ( exit $ac_status ) 8127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 8128 See \`config.log' for more details." >&5 8129 echo "$as_me: error: cannot compute sizeof (short), 77 8130 See \`config.log' for more details." >&2;} 8131 { (exit 1); exit 1; }; } 8132 fi 8133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8134 fi 8135 fi 8136 rm -f conftest.val 8137 else 8138 ac_cv_sizeof_short=0 8139 fi 8140 fi 8141 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8142 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 8143 cat >>confdefs.h <<_ACEOF 8144 #define SIZEOF_SHORT $ac_cv_sizeof_short 8145 _ACEOF 8146 8147 8148 fi 8149 FOUND=0 8150 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 8151 dc_cv_size=`eval echo $dc_cv_loop` 8152 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 8153 if test "$dc_cv_size" = "8"; then 8154 if test "$dc_cv_name" = "int"; then 8155 echo "$as_me:$LINENO: checking for int64_t" >&5 8156 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 8157 if test "${ac_cv_type_int64_t+set}" = set; then 8158 echo $ECHO_N "(cached) $ECHO_C" >&6 8159 else 8160 cat >conftest.$ac_ext <<_ACEOF 8161 /* confdefs.h. */ 8162 _ACEOF 8163 cat confdefs.h >>conftest.$ac_ext 8164 cat >>conftest.$ac_ext <<_ACEOF 8165 /* end confdefs.h. */ 8166 $ac_includes_default 8167 int 8168 main () 8169 { 8170 if ((int64_t *) 0) 8171 return 0; 8172 if (sizeof (int64_t)) 8173 return 0; 8174 ; 8175 return 0; 8176 } 8177 _ACEOF 8178 rm -f conftest.$ac_objext 8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8180 (eval $ac_compile) 2>conftest.er1 8181 ac_status=$? 8182 grep -v '^ *+' conftest.er1 >conftest.err 8183 rm -f conftest.er1 8184 cat conftest.err >&5 8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8186 (exit $ac_status); } && 8187 { ac_try='test -z "$ac_c_werror_flag" 8188 || test ! -s conftest.err' 8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8190 (eval $ac_try) 2>&5 8191 ac_status=$? 8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8193 (exit $ac_status); }; } && 8194 { ac_try='test -s conftest.$ac_objext' 8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8196 (eval $ac_try) 2>&5 8197 ac_status=$? 8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8199 (exit $ac_status); }; }; then 8200 ac_cv_type_int64_t=yes 8201 else 8202 echo "$as_me: failed program was:" >&5 8203 sed 's/^/| /' conftest.$ac_ext >&5 8204 8205 ac_cv_type_int64_t=no 8206 fi 8207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8208 fi 8209 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 8210 echo "${ECHO_T}$ac_cv_type_int64_t" >&6 8211 if test $ac_cv_type_int64_t = yes; then 8212 : 8213 else 8214 8215 cat >>confdefs.h <<_ACEOF 8216 #define int64_t signed int 8217 _ACEOF 8218 8219 fi 8220 8221 fi 8222 if test "$dc_cv_name" = "long"; then 8223 echo "$as_me:$LINENO: checking for int64_t" >&5 8224 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 8225 if test "${ac_cv_type_int64_t+set}" = set; then 8226 echo $ECHO_N "(cached) $ECHO_C" >&6 8227 else 8228 cat >conftest.$ac_ext <<_ACEOF 8229 /* confdefs.h. */ 8230 _ACEOF 8231 cat confdefs.h >>conftest.$ac_ext 8232 cat >>conftest.$ac_ext <<_ACEOF 8233 /* end confdefs.h. */ 8234 $ac_includes_default 8235 int 8236 main () 8237 { 8238 if ((int64_t *) 0) 8239 return 0; 8240 if (sizeof (int64_t)) 8241 return 0; 8242 ; 8243 return 0; 8244 } 8245 _ACEOF 8246 rm -f conftest.$ac_objext 8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8248 (eval $ac_compile) 2>conftest.er1 8249 ac_status=$? 8250 grep -v '^ *+' conftest.er1 >conftest.err 8251 rm -f conftest.er1 8252 cat conftest.err >&5 8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8254 (exit $ac_status); } && 8255 { ac_try='test -z "$ac_c_werror_flag" 8256 || test ! -s conftest.err' 8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8258 (eval $ac_try) 2>&5 8259 ac_status=$? 8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8261 (exit $ac_status); }; } && 8262 { ac_try='test -s conftest.$ac_objext' 8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8264 (eval $ac_try) 2>&5 8265 ac_status=$? 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8267 (exit $ac_status); }; }; then 8268 ac_cv_type_int64_t=yes 8269 else 8270 echo "$as_me: failed program was:" >&5 8271 sed 's/^/| /' conftest.$ac_ext >&5 8272 8273 ac_cv_type_int64_t=no 8274 fi 8275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8276 fi 8277 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 8278 echo "${ECHO_T}$ac_cv_type_int64_t" >&6 8279 if test $ac_cv_type_int64_t = yes; then 8280 : 8281 else 8282 8283 cat >>confdefs.h <<_ACEOF 8284 #define int64_t signed long 8285 _ACEOF 8286 8287 fi 8288 8289 fi 8290 if test "$dc_cv_name" = "long_long"; then 8291 echo "$as_me:$LINENO: checking for int64_t" >&5 8292 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 8293 if test "${ac_cv_type_int64_t+set}" = set; then 8294 echo $ECHO_N "(cached) $ECHO_C" >&6 8295 else 8296 cat >conftest.$ac_ext <<_ACEOF 8297 /* confdefs.h. */ 8298 _ACEOF 8299 cat confdefs.h >>conftest.$ac_ext 8300 cat >>conftest.$ac_ext <<_ACEOF 8301 /* end confdefs.h. */ 8302 $ac_includes_default 8303 int 8304 main () 8305 { 8306 if ((int64_t *) 0) 8307 return 0; 8308 if (sizeof (int64_t)) 8309 return 0; 8310 ; 8311 return 0; 8312 } 8313 _ACEOF 8314 rm -f conftest.$ac_objext 8315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8316 (eval $ac_compile) 2>conftest.er1 8317 ac_status=$? 8318 grep -v '^ *+' conftest.er1 >conftest.err 8319 rm -f conftest.er1 8320 cat conftest.err >&5 8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8322 (exit $ac_status); } && 8323 { ac_try='test -z "$ac_c_werror_flag" 8324 || test ! -s conftest.err' 8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8326 (eval $ac_try) 2>&5 8327 ac_status=$? 8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8329 (exit $ac_status); }; } && 8330 { ac_try='test -s conftest.$ac_objext' 8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8332 (eval $ac_try) 2>&5 8333 ac_status=$? 8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8335 (exit $ac_status); }; }; then 8336 ac_cv_type_int64_t=yes 8337 else 8338 echo "$as_me: failed program was:" >&5 8339 sed 's/^/| /' conftest.$ac_ext >&5 8340 8341 ac_cv_type_int64_t=no 8342 fi 8343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8344 fi 8345 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 8346 echo "${ECHO_T}$ac_cv_type_int64_t" >&6 8347 if test $ac_cv_type_int64_t = yes; then 8348 : 8349 else 8350 8351 cat >>confdefs.h <<_ACEOF 8352 #define int64_t signed long long 8353 _ACEOF 8354 8355 fi 8356 8357 fi 8358 if test "$dc_cv_name" = "short"; then 8359 echo "$as_me:$LINENO: checking for int64_t" >&5 8360 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 8361 if test "${ac_cv_type_int64_t+set}" = set; then 8362 echo $ECHO_N "(cached) $ECHO_C" >&6 8363 else 8364 cat >conftest.$ac_ext <<_ACEOF 8365 /* confdefs.h. */ 8366 _ACEOF 8367 cat confdefs.h >>conftest.$ac_ext 8368 cat >>conftest.$ac_ext <<_ACEOF 8369 /* end confdefs.h. */ 8370 $ac_includes_default 8371 int 8372 main () 8373 { 8374 if ((int64_t *) 0) 8375 return 0; 8376 if (sizeof (int64_t)) 8377 return 0; 8378 ; 8379 return 0; 8380 } 8381 _ACEOF 8382 rm -f conftest.$ac_objext 8383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8384 (eval $ac_compile) 2>conftest.er1 8385 ac_status=$? 8386 grep -v '^ *+' conftest.er1 >conftest.err 8387 rm -f conftest.er1 8388 cat conftest.err >&5 8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8390 (exit $ac_status); } && 8391 { ac_try='test -z "$ac_c_werror_flag" 8392 || test ! -s conftest.err' 8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8394 (eval $ac_try) 2>&5 8395 ac_status=$? 8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8397 (exit $ac_status); }; } && 8398 { ac_try='test -s conftest.$ac_objext' 8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8400 (eval $ac_try) 2>&5 8401 ac_status=$? 8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8403 (exit $ac_status); }; }; then 8404 ac_cv_type_int64_t=yes 8405 else 8406 echo "$as_me: failed program was:" >&5 8407 sed 's/^/| /' conftest.$ac_ext >&5 8408 8409 ac_cv_type_int64_t=no 8410 fi 8411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8412 fi 8413 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 8414 echo "${ECHO_T}$ac_cv_type_int64_t" >&6 8415 if test $ac_cv_type_int64_t = yes; then 8416 : 8417 else 8418 8419 cat >>confdefs.h <<_ACEOF 8420 #define int64_t signed short 8421 _ACEOF 8422 8423 fi 8424 8425 fi 8426 FOUND=1 8427 break 8428 fi 8429 done 8430 8431 8432 if test -z "$ac_cv_sizeof_long"; then 8433 echo "$as_me:$LINENO: checking for inline" >&5 8434 echo $ECHO_N "checking for inline... $ECHO_C" >&6 8435 if test "${ac_cv_c_inline+set}" = set; then 8436 echo $ECHO_N "(cached) $ECHO_C" >&6 8437 else 8438 ac_cv_c_inline=no 8439 for ac_kw in inline __inline__ __inline; do 8440 cat >conftest.$ac_ext <<_ACEOF 8441 /* confdefs.h. */ 8442 _ACEOF 8443 cat confdefs.h >>conftest.$ac_ext 8444 cat >>conftest.$ac_ext <<_ACEOF 8445 /* end confdefs.h. */ 8446 #ifndef __cplusplus 8447 typedef int foo_t; 8448 static $ac_kw foo_t static_foo () {return 0; } 8449 $ac_kw foo_t foo () {return 0; } 8450 #endif 8451 8452 _ACEOF 8453 rm -f conftest.$ac_objext 8454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8455 (eval $ac_compile) 2>conftest.er1 8456 ac_status=$? 8457 grep -v '^ *+' conftest.er1 >conftest.err 8458 rm -f conftest.er1 8459 cat conftest.err >&5 8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8461 (exit $ac_status); } && 8462 { ac_try='test -z "$ac_c_werror_flag" 8463 || test ! -s conftest.err' 8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8465 (eval $ac_try) 2>&5 8466 ac_status=$? 8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8468 (exit $ac_status); }; } && 8469 { ac_try='test -s conftest.$ac_objext' 8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8471 (eval $ac_try) 2>&5 8472 ac_status=$? 8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8474 (exit $ac_status); }; }; then 8475 ac_cv_c_inline=$ac_kw; break 8476 else 8477 echo "$as_me: failed program was:" >&5 8478 sed 's/^/| /' conftest.$ac_ext >&5 8479 8480 fi 8481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8482 done 8483 8484 fi 8485 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 8486 echo "${ECHO_T}$ac_cv_c_inline" >&6 8487 8488 8489 case $ac_cv_c_inline in 8490 inline | yes) ;; 8491 *) 8492 case $ac_cv_c_inline in 8493 no) ac_val=;; 8494 *) ac_val=$ac_cv_c_inline;; 8495 esac 8496 cat >>confdefs.h <<_ACEOF 8497 #ifndef __cplusplus 8498 #define inline $ac_val 8499 #endif 8500 _ACEOF 8501 ;; 8502 esac 8503 8504 echo "$as_me:$LINENO: checking for long long" >&5 8505 echo $ECHO_N "checking for long long... $ECHO_C" >&6 8506 if test "${ac_cv_type_long_long+set}" = set; then 8507 echo $ECHO_N "(cached) $ECHO_C" >&6 8508 else 8509 cat >conftest.$ac_ext <<_ACEOF 8510 /* confdefs.h. */ 8511 _ACEOF 8512 cat confdefs.h >>conftest.$ac_ext 8513 cat >>conftest.$ac_ext <<_ACEOF 8514 /* end confdefs.h. */ 8515 $ac_includes_default 8516 int 8517 main () 8518 { 8519 if ((long long *) 0) 8520 return 0; 8521 if (sizeof (long long)) 8522 return 0; 8523 ; 8524 return 0; 8525 } 8526 _ACEOF 8527 rm -f conftest.$ac_objext 8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8529 (eval $ac_compile) 2>conftest.er1 8530 ac_status=$? 8531 grep -v '^ *+' conftest.er1 >conftest.err 8532 rm -f conftest.er1 8533 cat conftest.err >&5 8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8535 (exit $ac_status); } && 8536 { ac_try='test -z "$ac_c_werror_flag" 8537 || test ! -s conftest.err' 8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8539 (eval $ac_try) 2>&5 8540 ac_status=$? 8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8542 (exit $ac_status); }; } && 8543 { ac_try='test -s conftest.$ac_objext' 8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8545 (eval $ac_try) 2>&5 8546 ac_status=$? 8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8548 (exit $ac_status); }; }; then 8549 ac_cv_type_long_long=yes 8550 else 8551 echo "$as_me: failed program was:" >&5 8552 sed 's/^/| /' conftest.$ac_ext >&5 8553 8554 ac_cv_type_long_long=no 8555 fi 8556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8557 fi 8558 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 8559 echo "${ECHO_T}$ac_cv_type_long_long" >&6 8560 8561 echo "$as_me:$LINENO: checking size of long long" >&5 8562 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 8563 if test "${ac_cv_sizeof_long_long+set}" = set; then 8564 echo $ECHO_N "(cached) $ECHO_C" >&6 8565 else 8566 if test "$ac_cv_type_long_long" = yes; then 8567 # The cast to unsigned long works around a bug in the HP C Compiler 8568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8570 # This bug is HP SR number 8606223364. 8571 if test "$cross_compiling" = yes; then 8572 # Depending upon the size, compute the lo and hi bounds. 8573 cat >conftest.$ac_ext <<_ACEOF 8574 /* confdefs.h. */ 8575 _ACEOF 8576 cat confdefs.h >>conftest.$ac_ext 8577 cat >>conftest.$ac_ext <<_ACEOF 8578 /* end confdefs.h. */ 8579 $ac_includes_default 8580 int 8581 main () 8582 { 8583 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 8584 test_array [0] = 0 8585 8586 ; 8587 return 0; 8588 } 8589 _ACEOF 8590 rm -f conftest.$ac_objext 8591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8592 (eval $ac_compile) 2>conftest.er1 8593 ac_status=$? 8594 grep -v '^ *+' conftest.er1 >conftest.err 8595 rm -f conftest.er1 8596 cat conftest.err >&5 8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8598 (exit $ac_status); } && 8599 { ac_try='test -z "$ac_c_werror_flag" 8600 || test ! -s conftest.err' 8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8602 (eval $ac_try) 2>&5 8603 ac_status=$? 8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8605 (exit $ac_status); }; } && 8606 { ac_try='test -s conftest.$ac_objext' 8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8608 (eval $ac_try) 2>&5 8609 ac_status=$? 8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8611 (exit $ac_status); }; }; then 8612 ac_lo=0 ac_mid=0 8613 while :; do 8614 cat >conftest.$ac_ext <<_ACEOF 8615 /* confdefs.h. */ 8616 _ACEOF 8617 cat confdefs.h >>conftest.$ac_ext 8618 cat >>conftest.$ac_ext <<_ACEOF 8619 /* end confdefs.h. */ 8620 $ac_includes_default 8621 int 8622 main () 8623 { 8624 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 8625 test_array [0] = 0 8626 8627 ; 8628 return 0; 8629 } 8630 _ACEOF 8631 rm -f conftest.$ac_objext 8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8633 (eval $ac_compile) 2>conftest.er1 8634 ac_status=$? 8635 grep -v '^ *+' conftest.er1 >conftest.err 8636 rm -f conftest.er1 8637 cat conftest.err >&5 8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8639 (exit $ac_status); } && 8640 { ac_try='test -z "$ac_c_werror_flag" 8641 || test ! -s conftest.err' 8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8643 (eval $ac_try) 2>&5 8644 ac_status=$? 8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8646 (exit $ac_status); }; } && 8647 { ac_try='test -s conftest.$ac_objext' 8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8649 (eval $ac_try) 2>&5 8650 ac_status=$? 8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8652 (exit $ac_status); }; }; then 8653 ac_hi=$ac_mid; break 8654 else 8655 echo "$as_me: failed program was:" >&5 8656 sed 's/^/| /' conftest.$ac_ext >&5 8657 8658 ac_lo=`expr $ac_mid + 1` 8659 if test $ac_lo -le $ac_mid; then 8660 ac_lo= ac_hi= 8661 break 8662 fi 8663 ac_mid=`expr 2 '*' $ac_mid + 1` 8664 fi 8665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8666 done 8667 else 8668 echo "$as_me: failed program was:" >&5 8669 sed 's/^/| /' conftest.$ac_ext >&5 8670 8671 cat >conftest.$ac_ext <<_ACEOF 8672 /* confdefs.h. */ 8673 _ACEOF 8674 cat confdefs.h >>conftest.$ac_ext 8675 cat >>conftest.$ac_ext <<_ACEOF 8676 /* end confdefs.h. */ 8677 $ac_includes_default 8678 int 8679 main () 8680 { 8681 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 8682 test_array [0] = 0 8683 8684 ; 8685 return 0; 8686 } 8687 _ACEOF 8688 rm -f conftest.$ac_objext 8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8690 (eval $ac_compile) 2>conftest.er1 8691 ac_status=$? 8692 grep -v '^ *+' conftest.er1 >conftest.err 8693 rm -f conftest.er1 8694 cat conftest.err >&5 8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8696 (exit $ac_status); } && 8697 { ac_try='test -z "$ac_c_werror_flag" 8698 || test ! -s conftest.err' 8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8700 (eval $ac_try) 2>&5 8701 ac_status=$? 8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8703 (exit $ac_status); }; } && 8704 { ac_try='test -s conftest.$ac_objext' 8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8706 (eval $ac_try) 2>&5 8707 ac_status=$? 8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8709 (exit $ac_status); }; }; then 8710 ac_hi=-1 ac_mid=-1 8711 while :; do 8712 cat >conftest.$ac_ext <<_ACEOF 8713 /* confdefs.h. */ 8714 _ACEOF 8715 cat confdefs.h >>conftest.$ac_ext 8716 cat >>conftest.$ac_ext <<_ACEOF 8717 /* end confdefs.h. */ 8718 $ac_includes_default 8719 int 8720 main () 8721 { 8722 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 8723 test_array [0] = 0 8724 8725 ; 8726 return 0; 8727 } 8728 _ACEOF 8729 rm -f conftest.$ac_objext 8730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8731 (eval $ac_compile) 2>conftest.er1 8732 ac_status=$? 8733 grep -v '^ *+' conftest.er1 >conftest.err 8734 rm -f conftest.er1 8735 cat conftest.err >&5 8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8737 (exit $ac_status); } && 8738 { ac_try='test -z "$ac_c_werror_flag" 8739 || test ! -s conftest.err' 8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8741 (eval $ac_try) 2>&5 8742 ac_status=$? 8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8744 (exit $ac_status); }; } && 8745 { ac_try='test -s conftest.$ac_objext' 8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8747 (eval $ac_try) 2>&5 8748 ac_status=$? 8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8750 (exit $ac_status); }; }; then 8751 ac_lo=$ac_mid; break 8752 else 8753 echo "$as_me: failed program was:" >&5 8754 sed 's/^/| /' conftest.$ac_ext >&5 8755 8756 ac_hi=`expr '(' $ac_mid ')' - 1` 8757 if test $ac_mid -le $ac_hi; then 8758 ac_lo= ac_hi= 8759 break 8760 fi 8761 ac_mid=`expr 2 '*' $ac_mid` 8762 fi 8763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8764 done 8765 else 8766 echo "$as_me: failed program was:" >&5 8767 sed 's/^/| /' conftest.$ac_ext >&5 8768 8769 ac_lo= ac_hi= 8770 fi 8771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8772 fi 8773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8774 # Binary search between lo and hi bounds. 8775 while test "x$ac_lo" != "x$ac_hi"; do 8776 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8777 cat >conftest.$ac_ext <<_ACEOF 8778 /* confdefs.h. */ 8779 _ACEOF 8780 cat confdefs.h >>conftest.$ac_ext 8781 cat >>conftest.$ac_ext <<_ACEOF 8782 /* end confdefs.h. */ 8783 $ac_includes_default 8784 int 8785 main () 8786 { 8787 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 8788 test_array [0] = 0 8789 8790 ; 8791 return 0; 8792 } 8793 _ACEOF 8794 rm -f conftest.$ac_objext 8795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8796 (eval $ac_compile) 2>conftest.er1 8797 ac_status=$? 8798 grep -v '^ *+' conftest.er1 >conftest.err 8799 rm -f conftest.er1 8800 cat conftest.err >&5 8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8802 (exit $ac_status); } && 8803 { ac_try='test -z "$ac_c_werror_flag" 8804 || test ! -s conftest.err' 8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8806 (eval $ac_try) 2>&5 8807 ac_status=$? 8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8809 (exit $ac_status); }; } && 8810 { ac_try='test -s conftest.$ac_objext' 8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8812 (eval $ac_try) 2>&5 8813 ac_status=$? 8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8815 (exit $ac_status); }; }; then 8816 ac_hi=$ac_mid 8817 else 8818 echo "$as_me: failed program was:" >&5 8819 sed 's/^/| /' conftest.$ac_ext >&5 8820 8821 ac_lo=`expr '(' $ac_mid ')' + 1` 8822 fi 8823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8824 done 8825 case $ac_lo in 8826 ?*) ac_cv_sizeof_long_long=$ac_lo;; 8827 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 8828 See \`config.log' for more details." >&5 8829 echo "$as_me: error: cannot compute sizeof (long long), 77 8830 See \`config.log' for more details." >&2;} 8831 { (exit 1); exit 1; }; } ;; 8832 esac 8833 else 8834 if test "$cross_compiling" = yes; then 8835 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8836 See \`config.log' for more details." >&5 8837 echo "$as_me: error: cannot run test program while cross compiling 8838 See \`config.log' for more details." >&2;} 8839 { (exit 1); exit 1; }; } 8840 else 8841 cat >conftest.$ac_ext <<_ACEOF 8842 /* confdefs.h. */ 8843 _ACEOF 8844 cat confdefs.h >>conftest.$ac_ext 8845 cat >>conftest.$ac_ext <<_ACEOF 8846 /* end confdefs.h. */ 8847 $ac_includes_default 8848 long longval () { return (long) (sizeof (long long)); } 8849 unsigned long ulongval () { return (long) (sizeof (long long)); } 8850 #include <stdio.h> 8851 #include <stdlib.h> 8852 int 8853 main () 8854 { 8855 8856 FILE *f = fopen ("conftest.val", "w"); 8857 if (! f) 8858 exit (1); 8859 if (((long) (sizeof (long long))) < 0) 8860 { 8861 long i = longval (); 8862 if (i != ((long) (sizeof (long long)))) 8863 exit (1); 8864 fprintf (f, "%ld\n", i); 8865 } 8866 else 8867 { 8868 unsigned long i = ulongval (); 8869 if (i != ((long) (sizeof (long long)))) 8870 exit (1); 8871 fprintf (f, "%lu\n", i); 8872 } 8873 exit (ferror (f) || fclose (f) != 0); 8874 8875 ; 8876 return 0; 8877 } 8878 _ACEOF 8879 rm -f conftest$ac_exeext 8880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8881 (eval $ac_link) 2>&5 8882 ac_status=$? 8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8886 (eval $ac_try) 2>&5 8887 ac_status=$? 8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8889 (exit $ac_status); }; }; then 8890 ac_cv_sizeof_long_long=`cat conftest.val` 8891 else 8892 echo "$as_me: program exited with status $ac_status" >&5 8893 echo "$as_me: failed program was:" >&5 8894 sed 's/^/| /' conftest.$ac_ext >&5 8895 8896 ( exit $ac_status ) 8897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 8898 See \`config.log' for more details." >&5 8899 echo "$as_me: error: cannot compute sizeof (long long), 77 8900 See \`config.log' for more details." >&2;} 8901 { (exit 1); exit 1; }; } 8902 fi 8903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8904 fi 8905 fi 8906 rm -f conftest.val 8907 else 8908 ac_cv_sizeof_long_long=0 8909 fi 8910 fi 8911 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 8912 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 8913 cat >>confdefs.h <<_ACEOF 8914 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 8915 _ACEOF 8916 8917 8918 echo "$as_me:$LINENO: checking for long" >&5 8919 echo $ECHO_N "checking for long... $ECHO_C" >&6 8920 if test "${ac_cv_type_long+set}" = set; then 8921 echo $ECHO_N "(cached) $ECHO_C" >&6 8922 else 8923 cat >conftest.$ac_ext <<_ACEOF 8924 /* confdefs.h. */ 8925 _ACEOF 8926 cat confdefs.h >>conftest.$ac_ext 8927 cat >>conftest.$ac_ext <<_ACEOF 8928 /* end confdefs.h. */ 8929 $ac_includes_default 8930 int 8931 main () 8932 { 8933 if ((long *) 0) 8934 return 0; 8935 if (sizeof (long)) 8936 return 0; 8937 ; 8938 return 0; 8939 } 8940 _ACEOF 8941 rm -f conftest.$ac_objext 8942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8943 (eval $ac_compile) 2>conftest.er1 8944 ac_status=$? 8945 grep -v '^ *+' conftest.er1 >conftest.err 8946 rm -f conftest.er1 8947 cat conftest.err >&5 8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8949 (exit $ac_status); } && 8950 { ac_try='test -z "$ac_c_werror_flag" 8951 || test ! -s conftest.err' 8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8953 (eval $ac_try) 2>&5 8954 ac_status=$? 8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8956 (exit $ac_status); }; } && 8957 { ac_try='test -s conftest.$ac_objext' 8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8959 (eval $ac_try) 2>&5 8960 ac_status=$? 8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8962 (exit $ac_status); }; }; then 8963 ac_cv_type_long=yes 8964 else 8965 echo "$as_me: failed program was:" >&5 8966 sed 's/^/| /' conftest.$ac_ext >&5 8967 8968 ac_cv_type_long=no 8969 fi 8970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8971 fi 8972 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 8973 echo "${ECHO_T}$ac_cv_type_long" >&6 8974 8975 echo "$as_me:$LINENO: checking size of long" >&5 8976 echo $ECHO_N "checking size of long... $ECHO_C" >&6 8977 if test "${ac_cv_sizeof_long+set}" = set; then 8978 echo $ECHO_N "(cached) $ECHO_C" >&6 8979 else 8980 if test "$ac_cv_type_long" = yes; then 8981 # The cast to unsigned long works around a bug in the HP C Compiler 8982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8984 # This bug is HP SR number 8606223364. 8985 if test "$cross_compiling" = yes; then 8986 # Depending upon the size, compute the lo and hi bounds. 8987 cat >conftest.$ac_ext <<_ACEOF 8988 /* confdefs.h. */ 8989 _ACEOF 8990 cat confdefs.h >>conftest.$ac_ext 8991 cat >>conftest.$ac_ext <<_ACEOF 8992 /* end confdefs.h. */ 8993 $ac_includes_default 8994 int 8995 main () 8996 { 8997 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 8998 test_array [0] = 0 8999 9000 ; 9001 return 0; 9002 } 9003 _ACEOF 9004 rm -f conftest.$ac_objext 9005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9006 (eval $ac_compile) 2>conftest.er1 9007 ac_status=$? 9008 grep -v '^ *+' conftest.er1 >conftest.err 9009 rm -f conftest.er1 9010 cat conftest.err >&5 9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9012 (exit $ac_status); } && 9013 { ac_try='test -z "$ac_c_werror_flag" 9014 || test ! -s conftest.err' 9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9016 (eval $ac_try) 2>&5 9017 ac_status=$? 9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9019 (exit $ac_status); }; } && 9020 { ac_try='test -s conftest.$ac_objext' 9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9022 (eval $ac_try) 2>&5 9023 ac_status=$? 9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9025 (exit $ac_status); }; }; then 9026 ac_lo=0 ac_mid=0 9027 while :; do 9028 cat >conftest.$ac_ext <<_ACEOF 9029 /* confdefs.h. */ 9030 _ACEOF 9031 cat confdefs.h >>conftest.$ac_ext 9032 cat >>conftest.$ac_ext <<_ACEOF 9033 /* end confdefs.h. */ 9034 $ac_includes_default 9035 int 9036 main () 9037 { 9038 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 9039 test_array [0] = 0 9040 9041 ; 9042 return 0; 9043 } 9044 _ACEOF 9045 rm -f conftest.$ac_objext 9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9047 (eval $ac_compile) 2>conftest.er1 9048 ac_status=$? 9049 grep -v '^ *+' conftest.er1 >conftest.err 9050 rm -f conftest.er1 9051 cat conftest.err >&5 9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9053 (exit $ac_status); } && 9054 { ac_try='test -z "$ac_c_werror_flag" 9055 || test ! -s conftest.err' 9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9057 (eval $ac_try) 2>&5 9058 ac_status=$? 9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9060 (exit $ac_status); }; } && 9061 { ac_try='test -s conftest.$ac_objext' 9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9063 (eval $ac_try) 2>&5 9064 ac_status=$? 9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9066 (exit $ac_status); }; }; then 9067 ac_hi=$ac_mid; break 9068 else 9069 echo "$as_me: failed program was:" >&5 9070 sed 's/^/| /' conftest.$ac_ext >&5 9071 9072 ac_lo=`expr $ac_mid + 1` 9073 if test $ac_lo -le $ac_mid; then 9074 ac_lo= ac_hi= 9075 break 9076 fi 9077 ac_mid=`expr 2 '*' $ac_mid + 1` 9078 fi 9079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9080 done 9081 else 9082 echo "$as_me: failed program was:" >&5 9083 sed 's/^/| /' conftest.$ac_ext >&5 9084 9085 cat >conftest.$ac_ext <<_ACEOF 9086 /* confdefs.h. */ 9087 _ACEOF 9088 cat confdefs.h >>conftest.$ac_ext 9089 cat >>conftest.$ac_ext <<_ACEOF 9090 /* end confdefs.h. */ 9091 $ac_includes_default 9092 int 9093 main () 9094 { 9095 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 9096 test_array [0] = 0 9097 9098 ; 9099 return 0; 9100 } 9101 _ACEOF 9102 rm -f conftest.$ac_objext 9103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9104 (eval $ac_compile) 2>conftest.er1 9105 ac_status=$? 9106 grep -v '^ *+' conftest.er1 >conftest.err 9107 rm -f conftest.er1 9108 cat conftest.err >&5 9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9110 (exit $ac_status); } && 9111 { ac_try='test -z "$ac_c_werror_flag" 9112 || test ! -s conftest.err' 9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9114 (eval $ac_try) 2>&5 9115 ac_status=$? 9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9117 (exit $ac_status); }; } && 9118 { ac_try='test -s conftest.$ac_objext' 9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9120 (eval $ac_try) 2>&5 9121 ac_status=$? 9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9123 (exit $ac_status); }; }; then 9124 ac_hi=-1 ac_mid=-1 9125 while :; do 9126 cat >conftest.$ac_ext <<_ACEOF 9127 /* confdefs.h. */ 9128 _ACEOF 9129 cat confdefs.h >>conftest.$ac_ext 9130 cat >>conftest.$ac_ext <<_ACEOF 9131 /* end confdefs.h. */ 9132 $ac_includes_default 9133 int 9134 main () 9135 { 9136 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 9137 test_array [0] = 0 9138 9139 ; 9140 return 0; 9141 } 9142 _ACEOF 9143 rm -f conftest.$ac_objext 9144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9145 (eval $ac_compile) 2>conftest.er1 9146 ac_status=$? 9147 grep -v '^ *+' conftest.er1 >conftest.err 9148 rm -f conftest.er1 9149 cat conftest.err >&5 9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9151 (exit $ac_status); } && 9152 { ac_try='test -z "$ac_c_werror_flag" 9153 || test ! -s conftest.err' 9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9155 (eval $ac_try) 2>&5 9156 ac_status=$? 9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9158 (exit $ac_status); }; } && 9159 { ac_try='test -s conftest.$ac_objext' 9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9161 (eval $ac_try) 2>&5 9162 ac_status=$? 9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9164 (exit $ac_status); }; }; then 9165 ac_lo=$ac_mid; break 9166 else 9167 echo "$as_me: failed program was:" >&5 9168 sed 's/^/| /' conftest.$ac_ext >&5 9169 9170 ac_hi=`expr '(' $ac_mid ')' - 1` 9171 if test $ac_mid -le $ac_hi; then 9172 ac_lo= ac_hi= 9173 break 9174 fi 9175 ac_mid=`expr 2 '*' $ac_mid` 9176 fi 9177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9178 done 9179 else 9180 echo "$as_me: failed program was:" >&5 9181 sed 's/^/| /' conftest.$ac_ext >&5 9182 9183 ac_lo= ac_hi= 9184 fi 9185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9186 fi 9187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9188 # Binary search between lo and hi bounds. 9189 while test "x$ac_lo" != "x$ac_hi"; do 9190 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9191 cat >conftest.$ac_ext <<_ACEOF 9192 /* confdefs.h. */ 9193 _ACEOF 9194 cat confdefs.h >>conftest.$ac_ext 9195 cat >>conftest.$ac_ext <<_ACEOF 9196 /* end confdefs.h. */ 9197 $ac_includes_default 9198 int 9199 main () 9200 { 9201 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 9202 test_array [0] = 0 9203 9204 ; 9205 return 0; 9206 } 9207 _ACEOF 9208 rm -f conftest.$ac_objext 9209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9210 (eval $ac_compile) 2>conftest.er1 9211 ac_status=$? 9212 grep -v '^ *+' conftest.er1 >conftest.err 9213 rm -f conftest.er1 9214 cat conftest.err >&5 9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9216 (exit $ac_status); } && 9217 { ac_try='test -z "$ac_c_werror_flag" 9218 || test ! -s conftest.err' 9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9220 (eval $ac_try) 2>&5 9221 ac_status=$? 9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9223 (exit $ac_status); }; } && 9224 { ac_try='test -s conftest.$ac_objext' 9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9226 (eval $ac_try) 2>&5 9227 ac_status=$? 9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9229 (exit $ac_status); }; }; then 9230 ac_hi=$ac_mid 9231 else 9232 echo "$as_me: failed program was:" >&5 9233 sed 's/^/| /' conftest.$ac_ext >&5 9234 9235 ac_lo=`expr '(' $ac_mid ')' + 1` 9236 fi 9237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9238 done 9239 case $ac_lo in 9240 ?*) ac_cv_sizeof_long=$ac_lo;; 9241 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 9242 See \`config.log' for more details." >&5 9243 echo "$as_me: error: cannot compute sizeof (long), 77 9244 See \`config.log' for more details." >&2;} 9245 { (exit 1); exit 1; }; } ;; 9246 esac 9247 else 9248 if test "$cross_compiling" = yes; then 9249 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9250 See \`config.log' for more details." >&5 9251 echo "$as_me: error: cannot run test program while cross compiling 9252 See \`config.log' for more details." >&2;} 9253 { (exit 1); exit 1; }; } 9254 else 9255 cat >conftest.$ac_ext <<_ACEOF 9256 /* confdefs.h. */ 9257 _ACEOF 9258 cat confdefs.h >>conftest.$ac_ext 9259 cat >>conftest.$ac_ext <<_ACEOF 9260 /* end confdefs.h. */ 9261 $ac_includes_default 9262 long longval () { return (long) (sizeof (long)); } 9263 unsigned long ulongval () { return (long) (sizeof (long)); } 9264 #include <stdio.h> 9265 #include <stdlib.h> 9266 int 9267 main () 9268 { 9269 9270 FILE *f = fopen ("conftest.val", "w"); 9271 if (! f) 9272 exit (1); 9273 if (((long) (sizeof (long))) < 0) 9274 { 9275 long i = longval (); 9276 if (i != ((long) (sizeof (long)))) 9277 exit (1); 9278 fprintf (f, "%ld\n", i); 9279 } 9280 else 9281 { 9282 unsigned long i = ulongval (); 9283 if (i != ((long) (sizeof (long)))) 9284 exit (1); 9285 fprintf (f, "%lu\n", i); 9286 } 9287 exit (ferror (f) || fclose (f) != 0); 9288 9289 ; 9290 return 0; 9291 } 9292 _ACEOF 9293 rm -f conftest$ac_exeext 9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9295 (eval $ac_link) 2>&5 9296 ac_status=$? 9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9300 (eval $ac_try) 2>&5 9301 ac_status=$? 9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9303 (exit $ac_status); }; }; then 9304 ac_cv_sizeof_long=`cat conftest.val` 9305 else 9306 echo "$as_me: program exited with status $ac_status" >&5 9307 echo "$as_me: failed program was:" >&5 9308 sed 's/^/| /' conftest.$ac_ext >&5 9309 9310 ( exit $ac_status ) 9311 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 9312 See \`config.log' for more details." >&5 9313 echo "$as_me: error: cannot compute sizeof (long), 77 9314 See \`config.log' for more details." >&2;} 9315 { (exit 1); exit 1; }; } 9316 fi 9317 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9318 fi 9319 fi 9320 rm -f conftest.val 9321 else 9322 ac_cv_sizeof_long=0 9323 fi 9324 fi 9325 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 9326 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 9327 cat >>confdefs.h <<_ACEOF 9328 #define SIZEOF_LONG $ac_cv_sizeof_long 9329 _ACEOF 9330 9331 9332 echo "$as_me:$LINENO: checking for int" >&5 9333 echo $ECHO_N "checking for int... $ECHO_C" >&6 9334 if test "${ac_cv_type_int+set}" = set; then 9335 echo $ECHO_N "(cached) $ECHO_C" >&6 9336 else 9337 cat >conftest.$ac_ext <<_ACEOF 9338 /* confdefs.h. */ 9339 _ACEOF 9340 cat confdefs.h >>conftest.$ac_ext 9341 cat >>conftest.$ac_ext <<_ACEOF 9342 /* end confdefs.h. */ 9343 $ac_includes_default 9344 int 9345 main () 9346 { 9347 if ((int *) 0) 9348 return 0; 9349 if (sizeof (int)) 9350 return 0; 9351 ; 9352 return 0; 9353 } 9354 _ACEOF 9355 rm -f conftest.$ac_objext 9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9357 (eval $ac_compile) 2>conftest.er1 9358 ac_status=$? 9359 grep -v '^ *+' conftest.er1 >conftest.err 9360 rm -f conftest.er1 9361 cat conftest.err >&5 9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9363 (exit $ac_status); } && 9364 { ac_try='test -z "$ac_c_werror_flag" 9365 || test ! -s conftest.err' 9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9367 (eval $ac_try) 2>&5 9368 ac_status=$? 9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9370 (exit $ac_status); }; } && 9371 { ac_try='test -s conftest.$ac_objext' 9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9373 (eval $ac_try) 2>&5 9374 ac_status=$? 9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9376 (exit $ac_status); }; }; then 9377 ac_cv_type_int=yes 9378 else 9379 echo "$as_me: failed program was:" >&5 9380 sed 's/^/| /' conftest.$ac_ext >&5 9381 9382 ac_cv_type_int=no 9383 fi 9384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9385 fi 9386 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 9387 echo "${ECHO_T}$ac_cv_type_int" >&6 9388 9389 echo "$as_me:$LINENO: checking size of int" >&5 9390 echo $ECHO_N "checking size of int... $ECHO_C" >&6 9391 if test "${ac_cv_sizeof_int+set}" = set; then 9392 echo $ECHO_N "(cached) $ECHO_C" >&6 9393 else 9394 if test "$ac_cv_type_int" = yes; then 9395 # The cast to unsigned long works around a bug in the HP C Compiler 9396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9397 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9398 # This bug is HP SR number 8606223364. 9399 if test "$cross_compiling" = yes; then 9400 # Depending upon the size, compute the lo and hi bounds. 9401 cat >conftest.$ac_ext <<_ACEOF 9402 /* confdefs.h. */ 9403 _ACEOF 9404 cat confdefs.h >>conftest.$ac_ext 9405 cat >>conftest.$ac_ext <<_ACEOF 9406 /* end confdefs.h. */ 9407 $ac_includes_default 9408 int 9409 main () 9410 { 9411 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 9412 test_array [0] = 0 9413 9414 ; 9415 return 0; 9416 } 9417 _ACEOF 9418 rm -f conftest.$ac_objext 9419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9426 (exit $ac_status); } && 9427 { ac_try='test -z "$ac_c_werror_flag" 9428 || test ! -s conftest.err' 9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9430 (eval $ac_try) 2>&5 9431 ac_status=$? 9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9433 (exit $ac_status); }; } && 9434 { ac_try='test -s conftest.$ac_objext' 9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9436 (eval $ac_try) 2>&5 9437 ac_status=$? 9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9439 (exit $ac_status); }; }; then 9440 ac_lo=0 ac_mid=0 9441 while :; do 9442 cat >conftest.$ac_ext <<_ACEOF 9443 /* confdefs.h. */ 9444 _ACEOF 9445 cat confdefs.h >>conftest.$ac_ext 9446 cat >>conftest.$ac_ext <<_ACEOF 9447 /* end confdefs.h. */ 9448 $ac_includes_default 9449 int 9450 main () 9451 { 9452 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 9453 test_array [0] = 0 9454 9455 ; 9456 return 0; 9457 } 9458 _ACEOF 9459 rm -f conftest.$ac_objext 9460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9461 (eval $ac_compile) 2>conftest.er1 9462 ac_status=$? 9463 grep -v '^ *+' conftest.er1 >conftest.err 9464 rm -f conftest.er1 9465 cat conftest.err >&5 9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9467 (exit $ac_status); } && 9468 { ac_try='test -z "$ac_c_werror_flag" 9469 || test ! -s conftest.err' 9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9471 (eval $ac_try) 2>&5 9472 ac_status=$? 9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9474 (exit $ac_status); }; } && 9475 { ac_try='test -s conftest.$ac_objext' 9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9477 (eval $ac_try) 2>&5 9478 ac_status=$? 9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9480 (exit $ac_status); }; }; then 9481 ac_hi=$ac_mid; break 9482 else 9483 echo "$as_me: failed program was:" >&5 9484 sed 's/^/| /' conftest.$ac_ext >&5 9485 9486 ac_lo=`expr $ac_mid + 1` 9487 if test $ac_lo -le $ac_mid; then 9488 ac_lo= ac_hi= 9489 break 9490 fi 9491 ac_mid=`expr 2 '*' $ac_mid + 1` 9492 fi 9493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9494 done 9495 else 9496 echo "$as_me: failed program was:" >&5 9497 sed 's/^/| /' conftest.$ac_ext >&5 9498 9499 cat >conftest.$ac_ext <<_ACEOF 9500 /* confdefs.h. */ 9501 _ACEOF 9502 cat confdefs.h >>conftest.$ac_ext 9503 cat >>conftest.$ac_ext <<_ACEOF 9504 /* end confdefs.h. */ 9505 $ac_includes_default 9506 int 9507 main () 9508 { 9509 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 9510 test_array [0] = 0 9511 9512 ; 9513 return 0; 9514 } 9515 _ACEOF 9516 rm -f conftest.$ac_objext 9517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9518 (eval $ac_compile) 2>conftest.er1 9519 ac_status=$? 9520 grep -v '^ *+' conftest.er1 >conftest.err 9521 rm -f conftest.er1 9522 cat conftest.err >&5 9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9524 (exit $ac_status); } && 9525 { ac_try='test -z "$ac_c_werror_flag" 9526 || test ! -s conftest.err' 9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9528 (eval $ac_try) 2>&5 9529 ac_status=$? 9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9531 (exit $ac_status); }; } && 9532 { ac_try='test -s conftest.$ac_objext' 9533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9534 (eval $ac_try) 2>&5 9535 ac_status=$? 9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9537 (exit $ac_status); }; }; then 9538 ac_hi=-1 ac_mid=-1 9539 while :; do 9540 cat >conftest.$ac_ext <<_ACEOF 9541 /* confdefs.h. */ 9542 _ACEOF 9543 cat confdefs.h >>conftest.$ac_ext 9544 cat >>conftest.$ac_ext <<_ACEOF 9545 /* end confdefs.h. */ 9546 $ac_includes_default 9547 int 9548 main () 9549 { 9550 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 9551 test_array [0] = 0 9552 9553 ; 9554 return 0; 9555 } 9556 _ACEOF 9557 rm -f conftest.$ac_objext 9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9559 (eval $ac_compile) 2>conftest.er1 9560 ac_status=$? 9561 grep -v '^ *+' conftest.er1 >conftest.err 9562 rm -f conftest.er1 9563 cat conftest.err >&5 9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9565 (exit $ac_status); } && 9566 { ac_try='test -z "$ac_c_werror_flag" 9567 || test ! -s conftest.err' 9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9569 (eval $ac_try) 2>&5 9570 ac_status=$? 9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9572 (exit $ac_status); }; } && 9573 { ac_try='test -s conftest.$ac_objext' 9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9575 (eval $ac_try) 2>&5 9576 ac_status=$? 9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9578 (exit $ac_status); }; }; then 9579 ac_lo=$ac_mid; break 9580 else 9581 echo "$as_me: failed program was:" >&5 9582 sed 's/^/| /' conftest.$ac_ext >&5 9583 9584 ac_hi=`expr '(' $ac_mid ')' - 1` 9585 if test $ac_mid -le $ac_hi; then 9586 ac_lo= ac_hi= 9587 break 9588 fi 9589 ac_mid=`expr 2 '*' $ac_mid` 9590 fi 9591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9592 done 9593 else 9594 echo "$as_me: failed program was:" >&5 9595 sed 's/^/| /' conftest.$ac_ext >&5 9596 9597 ac_lo= ac_hi= 9598 fi 9599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9600 fi 9601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9602 # Binary search between lo and hi bounds. 9603 while test "x$ac_lo" != "x$ac_hi"; do 9604 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9605 cat >conftest.$ac_ext <<_ACEOF 9606 /* confdefs.h. */ 9607 _ACEOF 9608 cat confdefs.h >>conftest.$ac_ext 9609 cat >>conftest.$ac_ext <<_ACEOF 9610 /* end confdefs.h. */ 9611 $ac_includes_default 9612 int 9613 main () 9614 { 9615 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 9616 test_array [0] = 0 9617 9618 ; 9619 return 0; 9620 } 9621 _ACEOF 9622 rm -f conftest.$ac_objext 9623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9624 (eval $ac_compile) 2>conftest.er1 9625 ac_status=$? 9626 grep -v '^ *+' conftest.er1 >conftest.err 9627 rm -f conftest.er1 9628 cat conftest.err >&5 9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9630 (exit $ac_status); } && 9631 { ac_try='test -z "$ac_c_werror_flag" 9632 || test ! -s conftest.err' 9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9634 (eval $ac_try) 2>&5 9635 ac_status=$? 9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9637 (exit $ac_status); }; } && 9638 { ac_try='test -s conftest.$ac_objext' 9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9640 (eval $ac_try) 2>&5 9641 ac_status=$? 9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9643 (exit $ac_status); }; }; then 9644 ac_hi=$ac_mid 9645 else 9646 echo "$as_me: failed program was:" >&5 9647 sed 's/^/| /' conftest.$ac_ext >&5 9648 9649 ac_lo=`expr '(' $ac_mid ')' + 1` 9650 fi 9651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9652 done 9653 case $ac_lo in 9654 ?*) ac_cv_sizeof_int=$ac_lo;; 9655 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 9656 See \`config.log' for more details." >&5 9657 echo "$as_me: error: cannot compute sizeof (int), 77 9658 See \`config.log' for more details." >&2;} 9659 { (exit 1); exit 1; }; } ;; 9660 esac 9661 else 9662 if test "$cross_compiling" = yes; then 9663 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9664 See \`config.log' for more details." >&5 9665 echo "$as_me: error: cannot run test program while cross compiling 9666 See \`config.log' for more details." >&2;} 9667 { (exit 1); exit 1; }; } 9668 else 9669 cat >conftest.$ac_ext <<_ACEOF 9670 /* confdefs.h. */ 9671 _ACEOF 9672 cat confdefs.h >>conftest.$ac_ext 9673 cat >>conftest.$ac_ext <<_ACEOF 9674 /* end confdefs.h. */ 9675 $ac_includes_default 9676 long longval () { return (long) (sizeof (int)); } 9677 unsigned long ulongval () { return (long) (sizeof (int)); } 9678 #include <stdio.h> 9679 #include <stdlib.h> 9680 int 9681 main () 9682 { 9683 9684 FILE *f = fopen ("conftest.val", "w"); 9685 if (! f) 9686 exit (1); 9687 if (((long) (sizeof (int))) < 0) 9688 { 9689 long i = longval (); 9690 if (i != ((long) (sizeof (int)))) 9691 exit (1); 9692 fprintf (f, "%ld\n", i); 9693 } 9694 else 9695 { 9696 unsigned long i = ulongval (); 9697 if (i != ((long) (sizeof (int)))) 9698 exit (1); 9699 fprintf (f, "%lu\n", i); 9700 } 9701 exit (ferror (f) || fclose (f) != 0); 9702 9703 ; 9704 return 0; 9705 } 9706 _ACEOF 9707 rm -f conftest$ac_exeext 9708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9709 (eval $ac_link) 2>&5 9710 ac_status=$? 9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9714 (eval $ac_try) 2>&5 9715 ac_status=$? 9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9717 (exit $ac_status); }; }; then 9718 ac_cv_sizeof_int=`cat conftest.val` 9719 else 9720 echo "$as_me: program exited with status $ac_status" >&5 9721 echo "$as_me: failed program was:" >&5 9722 sed 's/^/| /' conftest.$ac_ext >&5 9723 9724 ( exit $ac_status ) 9725 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 9726 See \`config.log' for more details." >&5 9727 echo "$as_me: error: cannot compute sizeof (int), 77 9728 See \`config.log' for more details." >&2;} 9729 { (exit 1); exit 1; }; } 9730 fi 9731 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9732 fi 9733 fi 9734 rm -f conftest.val 9735 else 9736 ac_cv_sizeof_int=0 9737 fi 9738 fi 9739 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 9740 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 9741 cat >>confdefs.h <<_ACEOF 9742 #define SIZEOF_INT $ac_cv_sizeof_int 9743 _ACEOF 9744 9745 9746 echo "$as_me:$LINENO: checking for short" >&5 9747 echo $ECHO_N "checking for short... $ECHO_C" >&6 9748 if test "${ac_cv_type_short+set}" = set; then 9749 echo $ECHO_N "(cached) $ECHO_C" >&6 9750 else 9751 cat >conftest.$ac_ext <<_ACEOF 9752 /* confdefs.h. */ 9753 _ACEOF 9754 cat confdefs.h >>conftest.$ac_ext 9755 cat >>conftest.$ac_ext <<_ACEOF 9756 /* end confdefs.h. */ 9757 $ac_includes_default 9758 int 9759 main () 9760 { 9761 if ((short *) 0) 9762 return 0; 9763 if (sizeof (short)) 9764 return 0; 9765 ; 9766 return 0; 9767 } 9768 _ACEOF 9769 rm -f conftest.$ac_objext 9770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9771 (eval $ac_compile) 2>conftest.er1 9772 ac_status=$? 9773 grep -v '^ *+' conftest.er1 >conftest.err 9774 rm -f conftest.er1 9775 cat conftest.err >&5 9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9777 (exit $ac_status); } && 9778 { ac_try='test -z "$ac_c_werror_flag" 9779 || test ! -s conftest.err' 9780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9781 (eval $ac_try) 2>&5 9782 ac_status=$? 9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9784 (exit $ac_status); }; } && 9785 { ac_try='test -s conftest.$ac_objext' 9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9787 (eval $ac_try) 2>&5 9788 ac_status=$? 9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9790 (exit $ac_status); }; }; then 9791 ac_cv_type_short=yes 9792 else 9793 echo "$as_me: failed program was:" >&5 9794 sed 's/^/| /' conftest.$ac_ext >&5 9795 9796 ac_cv_type_short=no 9797 fi 9798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9799 fi 9800 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 9801 echo "${ECHO_T}$ac_cv_type_short" >&6 9802 9803 echo "$as_me:$LINENO: checking size of short" >&5 9804 echo $ECHO_N "checking size of short... $ECHO_C" >&6 9805 if test "${ac_cv_sizeof_short+set}" = set; then 9806 echo $ECHO_N "(cached) $ECHO_C" >&6 9807 else 9808 if test "$ac_cv_type_short" = yes; then 9809 # The cast to unsigned long works around a bug in the HP C Compiler 9810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9812 # This bug is HP SR number 8606223364. 9813 if test "$cross_compiling" = yes; then 9814 # Depending upon the size, compute the lo and hi bounds. 9815 cat >conftest.$ac_ext <<_ACEOF 9816 /* confdefs.h. */ 9817 _ACEOF 9818 cat confdefs.h >>conftest.$ac_ext 9819 cat >>conftest.$ac_ext <<_ACEOF 9820 /* end confdefs.h. */ 9821 $ac_includes_default 9822 int 9823 main () 9824 { 9825 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 9826 test_array [0] = 0 9827 9828 ; 9829 return 0; 9830 } 9831 _ACEOF 9832 rm -f conftest.$ac_objext 9833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9834 (eval $ac_compile) 2>conftest.er1 9835 ac_status=$? 9836 grep -v '^ *+' conftest.er1 >conftest.err 9837 rm -f conftest.er1 9838 cat conftest.err >&5 9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9840 (exit $ac_status); } && 9841 { ac_try='test -z "$ac_c_werror_flag" 9842 || test ! -s conftest.err' 9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9844 (eval $ac_try) 2>&5 9845 ac_status=$? 9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9847 (exit $ac_status); }; } && 9848 { ac_try='test -s conftest.$ac_objext' 9849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9850 (eval $ac_try) 2>&5 9851 ac_status=$? 9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9853 (exit $ac_status); }; }; then 9854 ac_lo=0 ac_mid=0 9855 while :; do 9856 cat >conftest.$ac_ext <<_ACEOF 9857 /* confdefs.h. */ 9858 _ACEOF 9859 cat confdefs.h >>conftest.$ac_ext 9860 cat >>conftest.$ac_ext <<_ACEOF 9861 /* end confdefs.h. */ 9862 $ac_includes_default 9863 int 9864 main () 9865 { 9866 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 9867 test_array [0] = 0 9868 9869 ; 9870 return 0; 9871 } 9872 _ACEOF 9873 rm -f conftest.$ac_objext 9874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9875 (eval $ac_compile) 2>conftest.er1 9876 ac_status=$? 9877 grep -v '^ *+' conftest.er1 >conftest.err 9878 rm -f conftest.er1 9879 cat conftest.err >&5 9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9881 (exit $ac_status); } && 9882 { ac_try='test -z "$ac_c_werror_flag" 9883 || test ! -s conftest.err' 9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9885 (eval $ac_try) 2>&5 9886 ac_status=$? 9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9888 (exit $ac_status); }; } && 9889 { ac_try='test -s conftest.$ac_objext' 9890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9891 (eval $ac_try) 2>&5 9892 ac_status=$? 9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9894 (exit $ac_status); }; }; then 9895 ac_hi=$ac_mid; break 9896 else 9897 echo "$as_me: failed program was:" >&5 9898 sed 's/^/| /' conftest.$ac_ext >&5 9899 9900 ac_lo=`expr $ac_mid + 1` 9901 if test $ac_lo -le $ac_mid; then 9902 ac_lo= ac_hi= 9903 break 9904 fi 9905 ac_mid=`expr 2 '*' $ac_mid + 1` 9906 fi 9907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9908 done 9909 else 9910 echo "$as_me: failed program was:" >&5 9911 sed 's/^/| /' conftest.$ac_ext >&5 9912 9913 cat >conftest.$ac_ext <<_ACEOF 9914 /* confdefs.h. */ 9915 _ACEOF 9916 cat confdefs.h >>conftest.$ac_ext 9917 cat >>conftest.$ac_ext <<_ACEOF 9918 /* end confdefs.h. */ 9919 $ac_includes_default 9920 int 9921 main () 9922 { 9923 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 9924 test_array [0] = 0 9925 9926 ; 9927 return 0; 9928 } 9929 _ACEOF 9930 rm -f conftest.$ac_objext 9931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9932 (eval $ac_compile) 2>conftest.er1 9933 ac_status=$? 9934 grep -v '^ *+' conftest.er1 >conftest.err 9935 rm -f conftest.er1 9936 cat conftest.err >&5 9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9938 (exit $ac_status); } && 9939 { ac_try='test -z "$ac_c_werror_flag" 9940 || test ! -s conftest.err' 9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9942 (eval $ac_try) 2>&5 9943 ac_status=$? 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9945 (exit $ac_status); }; } && 9946 { ac_try='test -s conftest.$ac_objext' 9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9948 (eval $ac_try) 2>&5 9949 ac_status=$? 9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9951 (exit $ac_status); }; }; then 9952 ac_hi=-1 ac_mid=-1 9953 while :; do 9954 cat >conftest.$ac_ext <<_ACEOF 9955 /* confdefs.h. */ 9956 _ACEOF 9957 cat confdefs.h >>conftest.$ac_ext 9958 cat >>conftest.$ac_ext <<_ACEOF 9959 /* end confdefs.h. */ 9960 $ac_includes_default 9961 int 9962 main () 9963 { 9964 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 9965 test_array [0] = 0 9966 9967 ; 9968 return 0; 9969 } 9970 _ACEOF 9971 rm -f conftest.$ac_objext 9972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9973 (eval $ac_compile) 2>conftest.er1 9974 ac_status=$? 9975 grep -v '^ *+' conftest.er1 >conftest.err 9976 rm -f conftest.er1 9977 cat conftest.err >&5 9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9979 (exit $ac_status); } && 9980 { ac_try='test -z "$ac_c_werror_flag" 9981 || test ! -s conftest.err' 9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9983 (eval $ac_try) 2>&5 9984 ac_status=$? 9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9986 (exit $ac_status); }; } && 9987 { ac_try='test -s conftest.$ac_objext' 9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9989 (eval $ac_try) 2>&5 9990 ac_status=$? 9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9992 (exit $ac_status); }; }; then 9993 ac_lo=$ac_mid; break 9994 else 9995 echo "$as_me: failed program was:" >&5 9996 sed 's/^/| /' conftest.$ac_ext >&5 9997 9998 ac_hi=`expr '(' $ac_mid ')' - 1` 9999 if test $ac_mid -le $ac_hi; then 10000 ac_lo= ac_hi= 10001 break 10002 fi 10003 ac_mid=`expr 2 '*' $ac_mid` 10004 fi 10005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10006 done 10007 else 10008 echo "$as_me: failed program was:" >&5 10009 sed 's/^/| /' conftest.$ac_ext >&5 10010 10011 ac_lo= ac_hi= 10012 fi 10013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10014 fi 10015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10016 # Binary search between lo and hi bounds. 10017 while test "x$ac_lo" != "x$ac_hi"; do 10018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10019 cat >conftest.$ac_ext <<_ACEOF 10020 /* confdefs.h. */ 10021 _ACEOF 10022 cat confdefs.h >>conftest.$ac_ext 10023 cat >>conftest.$ac_ext <<_ACEOF 10024 /* end confdefs.h. */ 10025 $ac_includes_default 10026 int 10027 main () 10028 { 10029 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 10030 test_array [0] = 0 10031 10032 ; 10033 return 0; 10034 } 10035 _ACEOF 10036 rm -f conftest.$ac_objext 10037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10038 (eval $ac_compile) 2>conftest.er1 10039 ac_status=$? 10040 grep -v '^ *+' conftest.er1 >conftest.err 10041 rm -f conftest.er1 10042 cat conftest.err >&5 10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10044 (exit $ac_status); } && 10045 { ac_try='test -z "$ac_c_werror_flag" 10046 || test ! -s conftest.err' 10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10048 (eval $ac_try) 2>&5 10049 ac_status=$? 10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10051 (exit $ac_status); }; } && 10052 { ac_try='test -s conftest.$ac_objext' 10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10054 (eval $ac_try) 2>&5 10055 ac_status=$? 10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10057 (exit $ac_status); }; }; then 10058 ac_hi=$ac_mid 10059 else 10060 echo "$as_me: failed program was:" >&5 10061 sed 's/^/| /' conftest.$ac_ext >&5 10062 10063 ac_lo=`expr '(' $ac_mid ')' + 1` 10064 fi 10065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10066 done 10067 case $ac_lo in 10068 ?*) ac_cv_sizeof_short=$ac_lo;; 10069 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 10070 See \`config.log' for more details." >&5 10071 echo "$as_me: error: cannot compute sizeof (short), 77 10072 See \`config.log' for more details." >&2;} 10073 { (exit 1); exit 1; }; } ;; 10074 esac 10075 else 10076 if test "$cross_compiling" = yes; then 10077 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10078 See \`config.log' for more details." >&5 10079 echo "$as_me: error: cannot run test program while cross compiling 10080 See \`config.log' for more details." >&2;} 10081 { (exit 1); exit 1; }; } 10082 else 10083 cat >conftest.$ac_ext <<_ACEOF 10084 /* confdefs.h. */ 10085 _ACEOF 10086 cat confdefs.h >>conftest.$ac_ext 10087 cat >>conftest.$ac_ext <<_ACEOF 10088 /* end confdefs.h. */ 10089 $ac_includes_default 10090 long longval () { return (long) (sizeof (short)); } 10091 unsigned long ulongval () { return (long) (sizeof (short)); } 10092 #include <stdio.h> 10093 #include <stdlib.h> 10094 int 10095 main () 10096 { 10097 10098 FILE *f = fopen ("conftest.val", "w"); 10099 if (! f) 10100 exit (1); 10101 if (((long) (sizeof (short))) < 0) 10102 { 10103 long i = longval (); 10104 if (i != ((long) (sizeof (short)))) 10105 exit (1); 10106 fprintf (f, "%ld\n", i); 10107 } 10108 else 10109 { 10110 unsigned long i = ulongval (); 10111 if (i != ((long) (sizeof (short)))) 10112 exit (1); 10113 fprintf (f, "%lu\n", i); 10114 } 10115 exit (ferror (f) || fclose (f) != 0); 10116 10117 ; 10118 return 0; 10119 } 10120 _ACEOF 10121 rm -f conftest$ac_exeext 10122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10123 (eval $ac_link) 2>&5 10124 ac_status=$? 10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10128 (eval $ac_try) 2>&5 10129 ac_status=$? 10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10131 (exit $ac_status); }; }; then 10132 ac_cv_sizeof_short=`cat conftest.val` 10133 else 10134 echo "$as_me: program exited with status $ac_status" >&5 10135 echo "$as_me: failed program was:" >&5 10136 sed 's/^/| /' conftest.$ac_ext >&5 10137 10138 ( exit $ac_status ) 10139 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 10140 See \`config.log' for more details." >&5 10141 echo "$as_me: error: cannot compute sizeof (short), 77 10142 See \`config.log' for more details." >&2;} 10143 { (exit 1); exit 1; }; } 10144 fi 10145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10146 fi 10147 fi 10148 rm -f conftest.val 10149 else 10150 ac_cv_sizeof_short=0 10151 fi 10152 fi 10153 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 10154 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 10155 cat >>confdefs.h <<_ACEOF 10156 #define SIZEOF_SHORT $ac_cv_sizeof_short 10157 _ACEOF 10158 10159 10160 fi 10161 FOUND=0 10162 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 10163 dc_cv_size=`eval echo $dc_cv_loop` 10164 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 10165 if test "$dc_cv_size" = "4"; then 10166 if test "$dc_cv_name" = "int"; then 10167 echo "$as_me:$LINENO: checking for uint32_t" >&5 10168 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 10169 if test "${ac_cv_type_uint32_t+set}" = set; then 10170 echo $ECHO_N "(cached) $ECHO_C" >&6 10171 else 10172 cat >conftest.$ac_ext <<_ACEOF 10173 /* confdefs.h. */ 10174 _ACEOF 10175 cat confdefs.h >>conftest.$ac_ext 10176 cat >>conftest.$ac_ext <<_ACEOF 10177 /* end confdefs.h. */ 10178 $ac_includes_default 10179 int 10180 main () 10181 { 10182 if ((uint32_t *) 0) 10183 return 0; 10184 if (sizeof (uint32_t)) 10185 return 0; 10186 ; 10187 return 0; 10188 } 10189 _ACEOF 10190 rm -f conftest.$ac_objext 10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10192 (eval $ac_compile) 2>conftest.er1 10193 ac_status=$? 10194 grep -v '^ *+' conftest.er1 >conftest.err 10195 rm -f conftest.er1 10196 cat conftest.err >&5 10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10198 (exit $ac_status); } && 10199 { ac_try='test -z "$ac_c_werror_flag" 10200 || test ! -s conftest.err' 10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10202 (eval $ac_try) 2>&5 10203 ac_status=$? 10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10205 (exit $ac_status); }; } && 10206 { ac_try='test -s conftest.$ac_objext' 10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10208 (eval $ac_try) 2>&5 10209 ac_status=$? 10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10211 (exit $ac_status); }; }; then 10212 ac_cv_type_uint32_t=yes 10213 else 10214 echo "$as_me: failed program was:" >&5 10215 sed 's/^/| /' conftest.$ac_ext >&5 10216 10217 ac_cv_type_uint32_t=no 10218 fi 10219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10220 fi 10221 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 10222 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 10223 if test $ac_cv_type_uint32_t = yes; then 10224 : 10225 else 10226 10227 cat >>confdefs.h <<_ACEOF 10228 #define uint32_t unsigned int 10229 _ACEOF 10230 10231 fi 10232 10233 fi 10234 if test "$dc_cv_name" = "long"; then 10235 echo "$as_me:$LINENO: checking for uint32_t" >&5 10236 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 10237 if test "${ac_cv_type_uint32_t+set}" = set; then 10238 echo $ECHO_N "(cached) $ECHO_C" >&6 10239 else 10240 cat >conftest.$ac_ext <<_ACEOF 10241 /* confdefs.h. */ 10242 _ACEOF 10243 cat confdefs.h >>conftest.$ac_ext 10244 cat >>conftest.$ac_ext <<_ACEOF 10245 /* end confdefs.h. */ 10246 $ac_includes_default 10247 int 10248 main () 10249 { 10250 if ((uint32_t *) 0) 10251 return 0; 10252 if (sizeof (uint32_t)) 10253 return 0; 10254 ; 10255 return 0; 10256 } 10257 _ACEOF 10258 rm -f conftest.$ac_objext 10259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10260 (eval $ac_compile) 2>conftest.er1 10261 ac_status=$? 10262 grep -v '^ *+' conftest.er1 >conftest.err 10263 rm -f conftest.er1 10264 cat conftest.err >&5 10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10266 (exit $ac_status); } && 10267 { ac_try='test -z "$ac_c_werror_flag" 10268 || test ! -s conftest.err' 10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10270 (eval $ac_try) 2>&5 10271 ac_status=$? 10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10273 (exit $ac_status); }; } && 10274 { ac_try='test -s conftest.$ac_objext' 10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10276 (eval $ac_try) 2>&5 10277 ac_status=$? 10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10279 (exit $ac_status); }; }; then 10280 ac_cv_type_uint32_t=yes 10281 else 10282 echo "$as_me: failed program was:" >&5 10283 sed 's/^/| /' conftest.$ac_ext >&5 10284 10285 ac_cv_type_uint32_t=no 10286 fi 10287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10288 fi 10289 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 10290 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 10291 if test $ac_cv_type_uint32_t = yes; then 10292 : 10293 else 10294 10295 cat >>confdefs.h <<_ACEOF 10296 #define uint32_t unsigned long 10297 _ACEOF 10298 10299 fi 10300 10301 fi 10302 if test "$dc_cv_name" = "long_long"; then 10303 echo "$as_me:$LINENO: checking for uint32_t" >&5 10304 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 10305 if test "${ac_cv_type_uint32_t+set}" = set; then 10306 echo $ECHO_N "(cached) $ECHO_C" >&6 10307 else 10308 cat >conftest.$ac_ext <<_ACEOF 10309 /* confdefs.h. */ 10310 _ACEOF 10311 cat confdefs.h >>conftest.$ac_ext 10312 cat >>conftest.$ac_ext <<_ACEOF 10313 /* end confdefs.h. */ 10314 $ac_includes_default 10315 int 10316 main () 10317 { 10318 if ((uint32_t *) 0) 10319 return 0; 10320 if (sizeof (uint32_t)) 10321 return 0; 10322 ; 10323 return 0; 10324 } 10325 _ACEOF 10326 rm -f conftest.$ac_objext 10327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10328 (eval $ac_compile) 2>conftest.er1 10329 ac_status=$? 10330 grep -v '^ *+' conftest.er1 >conftest.err 10331 rm -f conftest.er1 10332 cat conftest.err >&5 10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10334 (exit $ac_status); } && 10335 { ac_try='test -z "$ac_c_werror_flag" 10336 || test ! -s conftest.err' 10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10338 (eval $ac_try) 2>&5 10339 ac_status=$? 10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10341 (exit $ac_status); }; } && 10342 { ac_try='test -s conftest.$ac_objext' 10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10344 (eval $ac_try) 2>&5 10345 ac_status=$? 10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10347 (exit $ac_status); }; }; then 10348 ac_cv_type_uint32_t=yes 10349 else 10350 echo "$as_me: failed program was:" >&5 10351 sed 's/^/| /' conftest.$ac_ext >&5 10352 10353 ac_cv_type_uint32_t=no 10354 fi 10355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10356 fi 10357 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 10358 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 10359 if test $ac_cv_type_uint32_t = yes; then 10360 : 10361 else 10362 10363 cat >>confdefs.h <<_ACEOF 10364 #define uint32_t unsigned long long 10365 _ACEOF 10366 10367 fi 10368 10369 fi 10370 if test "$dc_cv_name" = "short"; then 10371 echo "$as_me:$LINENO: checking for uint32_t" >&5 10372 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 10373 if test "${ac_cv_type_uint32_t+set}" = set; then 10374 echo $ECHO_N "(cached) $ECHO_C" >&6 10375 else 10376 cat >conftest.$ac_ext <<_ACEOF 10377 /* confdefs.h. */ 10378 _ACEOF 10379 cat confdefs.h >>conftest.$ac_ext 10380 cat >>conftest.$ac_ext <<_ACEOF 10381 /* end confdefs.h. */ 10382 $ac_includes_default 10383 int 10384 main () 10385 { 10386 if ((uint32_t *) 0) 10387 return 0; 10388 if (sizeof (uint32_t)) 10389 return 0; 10390 ; 10391 return 0; 10392 } 10393 _ACEOF 10394 rm -f conftest.$ac_objext 10395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10396 (eval $ac_compile) 2>conftest.er1 10397 ac_status=$? 10398 grep -v '^ *+' conftest.er1 >conftest.err 10399 rm -f conftest.er1 10400 cat conftest.err >&5 10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10402 (exit $ac_status); } && 10403 { ac_try='test -z "$ac_c_werror_flag" 10404 || test ! -s conftest.err' 10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10406 (eval $ac_try) 2>&5 10407 ac_status=$? 10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10409 (exit $ac_status); }; } && 10410 { ac_try='test -s conftest.$ac_objext' 10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10412 (eval $ac_try) 2>&5 10413 ac_status=$? 10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10415 (exit $ac_status); }; }; then 10416 ac_cv_type_uint32_t=yes 10417 else 10418 echo "$as_me: failed program was:" >&5 10419 sed 's/^/| /' conftest.$ac_ext >&5 10420 10421 ac_cv_type_uint32_t=no 10422 fi 10423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10424 fi 10425 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 10426 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 10427 if test $ac_cv_type_uint32_t = yes; then 10428 : 10429 else 10430 10431 cat >>confdefs.h <<_ACEOF 10432 #define uint32_t unsigned short 10433 _ACEOF 10434 10435 fi 10436 10437 fi 10438 FOUND=1 10439 break 10440 fi 10441 done 10442 10443 10444 if test -z "$ac_cv_sizeof_long"; then 10445 echo "$as_me:$LINENO: checking for inline" >&5 10446 echo $ECHO_N "checking for inline... $ECHO_C" >&6 10447 if test "${ac_cv_c_inline+set}" = set; then 10448 echo $ECHO_N "(cached) $ECHO_C" >&6 10449 else 10450 ac_cv_c_inline=no 10451 for ac_kw in inline __inline__ __inline; do 10452 cat >conftest.$ac_ext <<_ACEOF 10453 /* confdefs.h. */ 10454 _ACEOF 10455 cat confdefs.h >>conftest.$ac_ext 10456 cat >>conftest.$ac_ext <<_ACEOF 10457 /* end confdefs.h. */ 10458 #ifndef __cplusplus 10459 typedef int foo_t; 10460 static $ac_kw foo_t static_foo () {return 0; } 10461 $ac_kw foo_t foo () {return 0; } 10462 #endif 10463 10464 _ACEOF 10465 rm -f conftest.$ac_objext 10466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10467 (eval $ac_compile) 2>conftest.er1 10468 ac_status=$? 10469 grep -v '^ *+' conftest.er1 >conftest.err 10470 rm -f conftest.er1 10471 cat conftest.err >&5 10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10473 (exit $ac_status); } && 10474 { ac_try='test -z "$ac_c_werror_flag" 10475 || test ! -s conftest.err' 10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10477 (eval $ac_try) 2>&5 10478 ac_status=$? 10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10480 (exit $ac_status); }; } && 10481 { ac_try='test -s conftest.$ac_objext' 10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10483 (eval $ac_try) 2>&5 10484 ac_status=$? 10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10486 (exit $ac_status); }; }; then 10487 ac_cv_c_inline=$ac_kw; break 10488 else 10489 echo "$as_me: failed program was:" >&5 10490 sed 's/^/| /' conftest.$ac_ext >&5 10491 10492 fi 10493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10494 done 10495 10496 fi 10497 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 10498 echo "${ECHO_T}$ac_cv_c_inline" >&6 10499 10500 10501 case $ac_cv_c_inline in 10502 inline | yes) ;; 10503 *) 10504 case $ac_cv_c_inline in 10505 no) ac_val=;; 10506 *) ac_val=$ac_cv_c_inline;; 10507 esac 10508 cat >>confdefs.h <<_ACEOF 10509 #ifndef __cplusplus 10510 #define inline $ac_val 10511 #endif 10512 _ACEOF 10513 ;; 10514 esac 10515 10516 echo "$as_me:$LINENO: checking for long long" >&5 10517 echo $ECHO_N "checking for long long... $ECHO_C" >&6 10518 if test "${ac_cv_type_long_long+set}" = set; then 10519 echo $ECHO_N "(cached) $ECHO_C" >&6 10520 else 10521 cat >conftest.$ac_ext <<_ACEOF 10522 /* confdefs.h. */ 10523 _ACEOF 10524 cat confdefs.h >>conftest.$ac_ext 10525 cat >>conftest.$ac_ext <<_ACEOF 10526 /* end confdefs.h. */ 10527 $ac_includes_default 10528 int 10529 main () 10530 { 10531 if ((long long *) 0) 10532 return 0; 10533 if (sizeof (long long)) 10534 return 0; 10535 ; 10536 return 0; 10537 } 10538 _ACEOF 10539 rm -f conftest.$ac_objext 10540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10541 (eval $ac_compile) 2>conftest.er1 10542 ac_status=$? 10543 grep -v '^ *+' conftest.er1 >conftest.err 10544 rm -f conftest.er1 10545 cat conftest.err >&5 10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10547 (exit $ac_status); } && 10548 { ac_try='test -z "$ac_c_werror_flag" 10549 || test ! -s conftest.err' 10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10551 (eval $ac_try) 2>&5 10552 ac_status=$? 10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10554 (exit $ac_status); }; } && 10555 { ac_try='test -s conftest.$ac_objext' 10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10557 (eval $ac_try) 2>&5 10558 ac_status=$? 10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10560 (exit $ac_status); }; }; then 10561 ac_cv_type_long_long=yes 10562 else 10563 echo "$as_me: failed program was:" >&5 10564 sed 's/^/| /' conftest.$ac_ext >&5 10565 10566 ac_cv_type_long_long=no 10567 fi 10568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10569 fi 10570 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 10571 echo "${ECHO_T}$ac_cv_type_long_long" >&6 10572 10573 echo "$as_me:$LINENO: checking size of long long" >&5 10574 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 10575 if test "${ac_cv_sizeof_long_long+set}" = set; then 10576 echo $ECHO_N "(cached) $ECHO_C" >&6 10577 else 10578 if test "$ac_cv_type_long_long" = yes; then 10579 # The cast to unsigned long works around a bug in the HP C Compiler 10580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10582 # This bug is HP SR number 8606223364. 10583 if test "$cross_compiling" = yes; then 10584 # Depending upon the size, compute the lo and hi bounds. 10585 cat >conftest.$ac_ext <<_ACEOF 10586 /* confdefs.h. */ 10587 _ACEOF 10588 cat confdefs.h >>conftest.$ac_ext 10589 cat >>conftest.$ac_ext <<_ACEOF 10590 /* end confdefs.h. */ 10591 $ac_includes_default 10592 int 10593 main () 10594 { 10595 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 10596 test_array [0] = 0 10597 10598 ; 10599 return 0; 10600 } 10601 _ACEOF 10602 rm -f conftest.$ac_objext 10603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10604 (eval $ac_compile) 2>conftest.er1 10605 ac_status=$? 10606 grep -v '^ *+' conftest.er1 >conftest.err 10607 rm -f conftest.er1 10608 cat conftest.err >&5 10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10610 (exit $ac_status); } && 10611 { ac_try='test -z "$ac_c_werror_flag" 10612 || test ! -s conftest.err' 10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10614 (eval $ac_try) 2>&5 10615 ac_status=$? 10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10617 (exit $ac_status); }; } && 10618 { ac_try='test -s conftest.$ac_objext' 10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10620 (eval $ac_try) 2>&5 10621 ac_status=$? 10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10623 (exit $ac_status); }; }; then 10624 ac_lo=0 ac_mid=0 10625 while :; do 10626 cat >conftest.$ac_ext <<_ACEOF 10627 /* confdefs.h. */ 10628 _ACEOF 10629 cat confdefs.h >>conftest.$ac_ext 10630 cat >>conftest.$ac_ext <<_ACEOF 10631 /* end confdefs.h. */ 10632 $ac_includes_default 10633 int 10634 main () 10635 { 10636 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 10637 test_array [0] = 0 10638 10639 ; 10640 return 0; 10641 } 10642 _ACEOF 10643 rm -f conftest.$ac_objext 10644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10645 (eval $ac_compile) 2>conftest.er1 10646 ac_status=$? 10647 grep -v '^ *+' conftest.er1 >conftest.err 10648 rm -f conftest.er1 10649 cat conftest.err >&5 10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10651 (exit $ac_status); } && 10652 { ac_try='test -z "$ac_c_werror_flag" 10653 || test ! -s conftest.err' 10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10655 (eval $ac_try) 2>&5 10656 ac_status=$? 10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10658 (exit $ac_status); }; } && 10659 { ac_try='test -s conftest.$ac_objext' 10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10661 (eval $ac_try) 2>&5 10662 ac_status=$? 10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10664 (exit $ac_status); }; }; then 10665 ac_hi=$ac_mid; break 10666 else 10667 echo "$as_me: failed program was:" >&5 10668 sed 's/^/| /' conftest.$ac_ext >&5 10669 10670 ac_lo=`expr $ac_mid + 1` 10671 if test $ac_lo -le $ac_mid; then 10672 ac_lo= ac_hi= 10673 break 10674 fi 10675 ac_mid=`expr 2 '*' $ac_mid + 1` 10676 fi 10677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10678 done 10679 else 10680 echo "$as_me: failed program was:" >&5 10681 sed 's/^/| /' conftest.$ac_ext >&5 10682 10683 cat >conftest.$ac_ext <<_ACEOF 10684 /* confdefs.h. */ 10685 _ACEOF 10686 cat confdefs.h >>conftest.$ac_ext 10687 cat >>conftest.$ac_ext <<_ACEOF 10688 /* end confdefs.h. */ 10689 $ac_includes_default 10690 int 10691 main () 10692 { 10693 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 10694 test_array [0] = 0 10695 10696 ; 10697 return 0; 10698 } 10699 _ACEOF 10700 rm -f conftest.$ac_objext 10701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10702 (eval $ac_compile) 2>conftest.er1 10703 ac_status=$? 10704 grep -v '^ *+' conftest.er1 >conftest.err 10705 rm -f conftest.er1 10706 cat conftest.err >&5 10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10708 (exit $ac_status); } && 10709 { ac_try='test -z "$ac_c_werror_flag" 10710 || test ! -s conftest.err' 10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10712 (eval $ac_try) 2>&5 10713 ac_status=$? 10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10715 (exit $ac_status); }; } && 10716 { ac_try='test -s conftest.$ac_objext' 10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10718 (eval $ac_try) 2>&5 10719 ac_status=$? 10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10721 (exit $ac_status); }; }; then 10722 ac_hi=-1 ac_mid=-1 10723 while :; do 10724 cat >conftest.$ac_ext <<_ACEOF 10725 /* confdefs.h. */ 10726 _ACEOF 10727 cat confdefs.h >>conftest.$ac_ext 10728 cat >>conftest.$ac_ext <<_ACEOF 10729 /* end confdefs.h. */ 10730 $ac_includes_default 10731 int 10732 main () 10733 { 10734 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 10735 test_array [0] = 0 10736 10737 ; 10738 return 0; 10739 } 10740 _ACEOF 10741 rm -f conftest.$ac_objext 10742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10743 (eval $ac_compile) 2>conftest.er1 10744 ac_status=$? 10745 grep -v '^ *+' conftest.er1 >conftest.err 10746 rm -f conftest.er1 10747 cat conftest.err >&5 10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10749 (exit $ac_status); } && 10750 { ac_try='test -z "$ac_c_werror_flag" 10751 || test ! -s conftest.err' 10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10753 (eval $ac_try) 2>&5 10754 ac_status=$? 10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10756 (exit $ac_status); }; } && 10757 { ac_try='test -s conftest.$ac_objext' 10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10759 (eval $ac_try) 2>&5 10760 ac_status=$? 10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10762 (exit $ac_status); }; }; then 10763 ac_lo=$ac_mid; break 10764 else 10765 echo "$as_me: failed program was:" >&5 10766 sed 's/^/| /' conftest.$ac_ext >&5 10767 10768 ac_hi=`expr '(' $ac_mid ')' - 1` 10769 if test $ac_mid -le $ac_hi; then 10770 ac_lo= ac_hi= 10771 break 10772 fi 10773 ac_mid=`expr 2 '*' $ac_mid` 10774 fi 10775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10776 done 10777 else 10778 echo "$as_me: failed program was:" >&5 10779 sed 's/^/| /' conftest.$ac_ext >&5 10780 10781 ac_lo= ac_hi= 10782 fi 10783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10784 fi 10785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10786 # Binary search between lo and hi bounds. 10787 while test "x$ac_lo" != "x$ac_hi"; do 10788 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10789 cat >conftest.$ac_ext <<_ACEOF 10790 /* confdefs.h. */ 10791 _ACEOF 10792 cat confdefs.h >>conftest.$ac_ext 10793 cat >>conftest.$ac_ext <<_ACEOF 10794 /* end confdefs.h. */ 10795 $ac_includes_default 10796 int 10797 main () 10798 { 10799 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 10800 test_array [0] = 0 10801 10802 ; 10803 return 0; 10804 } 10805 _ACEOF 10806 rm -f conftest.$ac_objext 10807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10808 (eval $ac_compile) 2>conftest.er1 10809 ac_status=$? 10810 grep -v '^ *+' conftest.er1 >conftest.err 10811 rm -f conftest.er1 10812 cat conftest.err >&5 10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10814 (exit $ac_status); } && 10815 { ac_try='test -z "$ac_c_werror_flag" 10816 || test ! -s conftest.err' 10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10818 (eval $ac_try) 2>&5 10819 ac_status=$? 10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10821 (exit $ac_status); }; } && 10822 { ac_try='test -s conftest.$ac_objext' 10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10824 (eval $ac_try) 2>&5 10825 ac_status=$? 10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10827 (exit $ac_status); }; }; then 10828 ac_hi=$ac_mid 10829 else 10830 echo "$as_me: failed program was:" >&5 10831 sed 's/^/| /' conftest.$ac_ext >&5 10832 10833 ac_lo=`expr '(' $ac_mid ')' + 1` 10834 fi 10835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10836 done 10837 case $ac_lo in 10838 ?*) ac_cv_sizeof_long_long=$ac_lo;; 10839 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 10840 See \`config.log' for more details." >&5 10841 echo "$as_me: error: cannot compute sizeof (long long), 77 10842 See \`config.log' for more details." >&2;} 10843 { (exit 1); exit 1; }; } ;; 10844 esac 10845 else 10846 if test "$cross_compiling" = yes; then 10847 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10848 See \`config.log' for more details." >&5 10849 echo "$as_me: error: cannot run test program while cross compiling 10850 See \`config.log' for more details." >&2;} 10851 { (exit 1); exit 1; }; } 10852 else 10853 cat >conftest.$ac_ext <<_ACEOF 10854 /* confdefs.h. */ 10855 _ACEOF 10856 cat confdefs.h >>conftest.$ac_ext 10857 cat >>conftest.$ac_ext <<_ACEOF 10858 /* end confdefs.h. */ 10859 $ac_includes_default 10860 long longval () { return (long) (sizeof (long long)); } 10861 unsigned long ulongval () { return (long) (sizeof (long long)); } 10862 #include <stdio.h> 10863 #include <stdlib.h> 10864 int 10865 main () 10866 { 10867 10868 FILE *f = fopen ("conftest.val", "w"); 10869 if (! f) 10870 exit (1); 10871 if (((long) (sizeof (long long))) < 0) 10872 { 10873 long i = longval (); 10874 if (i != ((long) (sizeof (long long)))) 10875 exit (1); 10876 fprintf (f, "%ld\n", i); 10877 } 10878 else 10879 { 10880 unsigned long i = ulongval (); 10881 if (i != ((long) (sizeof (long long)))) 10882 exit (1); 10883 fprintf (f, "%lu\n", i); 10884 } 10885 exit (ferror (f) || fclose (f) != 0); 10886 10887 ; 10888 return 0; 10889 } 10890 _ACEOF 10891 rm -f conftest$ac_exeext 10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10893 (eval $ac_link) 2>&5 10894 ac_status=$? 10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10898 (eval $ac_try) 2>&5 10899 ac_status=$? 10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10901 (exit $ac_status); }; }; then 10902 ac_cv_sizeof_long_long=`cat conftest.val` 10903 else 10904 echo "$as_me: program exited with status $ac_status" >&5 10905 echo "$as_me: failed program was:" >&5 10906 sed 's/^/| /' conftest.$ac_ext >&5 10907 10908 ( exit $ac_status ) 10909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 10910 See \`config.log' for more details." >&5 10911 echo "$as_me: error: cannot compute sizeof (long long), 77 10912 See \`config.log' for more details." >&2;} 10913 { (exit 1); exit 1; }; } 10914 fi 10915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10916 fi 10917 fi 10918 rm -f conftest.val 10919 else 10920 ac_cv_sizeof_long_long=0 10921 fi 10922 fi 10923 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 10924 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 10925 cat >>confdefs.h <<_ACEOF 10926 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 10927 _ACEOF 10928 10929 10930 echo "$as_me:$LINENO: checking for long" >&5 10931 echo $ECHO_N "checking for long... $ECHO_C" >&6 10932 if test "${ac_cv_type_long+set}" = set; then 10933 echo $ECHO_N "(cached) $ECHO_C" >&6 10934 else 10935 cat >conftest.$ac_ext <<_ACEOF 10936 /* confdefs.h. */ 10937 _ACEOF 10938 cat confdefs.h >>conftest.$ac_ext 10939 cat >>conftest.$ac_ext <<_ACEOF 10940 /* end confdefs.h. */ 10941 $ac_includes_default 10942 int 10943 main () 10944 { 10945 if ((long *) 0) 10946 return 0; 10947 if (sizeof (long)) 10948 return 0; 10949 ; 10950 return 0; 10951 } 10952 _ACEOF 10953 rm -f conftest.$ac_objext 10954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10955 (eval $ac_compile) 2>conftest.er1 10956 ac_status=$? 10957 grep -v '^ *+' conftest.er1 >conftest.err 10958 rm -f conftest.er1 10959 cat conftest.err >&5 10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10961 (exit $ac_status); } && 10962 { ac_try='test -z "$ac_c_werror_flag" 10963 || test ! -s conftest.err' 10964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10965 (eval $ac_try) 2>&5 10966 ac_status=$? 10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10968 (exit $ac_status); }; } && 10969 { ac_try='test -s conftest.$ac_objext' 10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10971 (eval $ac_try) 2>&5 10972 ac_status=$? 10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10974 (exit $ac_status); }; }; then 10975 ac_cv_type_long=yes 10976 else 10977 echo "$as_me: failed program was:" >&5 10978 sed 's/^/| /' conftest.$ac_ext >&5 10979 10980 ac_cv_type_long=no 10981 fi 10982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10983 fi 10984 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 10985 echo "${ECHO_T}$ac_cv_type_long" >&6 10986 10987 echo "$as_me:$LINENO: checking size of long" >&5 10988 echo $ECHO_N "checking size of long... $ECHO_C" >&6 10989 if test "${ac_cv_sizeof_long+set}" = set; then 10990 echo $ECHO_N "(cached) $ECHO_C" >&6 10991 else 10992 if test "$ac_cv_type_long" = yes; then 10993 # The cast to unsigned long works around a bug in the HP C Compiler 10994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10996 # This bug is HP SR number 8606223364. 10997 if test "$cross_compiling" = yes; then 10998 # Depending upon the size, compute the lo and hi bounds. 10999 cat >conftest.$ac_ext <<_ACEOF 11000 /* confdefs.h. */ 11001 _ACEOF 11002 cat confdefs.h >>conftest.$ac_ext 11003 cat >>conftest.$ac_ext <<_ACEOF 11004 /* end confdefs.h. */ 11005 $ac_includes_default 11006 int 11007 main () 11008 { 11009 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 11010 test_array [0] = 0 11011 11012 ; 11013 return 0; 11014 } 11015 _ACEOF 11016 rm -f conftest.$ac_objext 11017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11018 (eval $ac_compile) 2>conftest.er1 11019 ac_status=$? 11020 grep -v '^ *+' conftest.er1 >conftest.err 11021 rm -f conftest.er1 11022 cat conftest.err >&5 11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11024 (exit $ac_status); } && 11025 { ac_try='test -z "$ac_c_werror_flag" 11026 || test ! -s conftest.err' 11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11028 (eval $ac_try) 2>&5 11029 ac_status=$? 11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11031 (exit $ac_status); }; } && 11032 { ac_try='test -s conftest.$ac_objext' 11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11034 (eval $ac_try) 2>&5 11035 ac_status=$? 11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11037 (exit $ac_status); }; }; then 11038 ac_lo=0 ac_mid=0 11039 while :; do 11040 cat >conftest.$ac_ext <<_ACEOF 11041 /* confdefs.h. */ 11042 _ACEOF 11043 cat confdefs.h >>conftest.$ac_ext 11044 cat >>conftest.$ac_ext <<_ACEOF 11045 /* end confdefs.h. */ 11046 $ac_includes_default 11047 int 11048 main () 11049 { 11050 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 11051 test_array [0] = 0 11052 11053 ; 11054 return 0; 11055 } 11056 _ACEOF 11057 rm -f conftest.$ac_objext 11058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11059 (eval $ac_compile) 2>conftest.er1 11060 ac_status=$? 11061 grep -v '^ *+' conftest.er1 >conftest.err 11062 rm -f conftest.er1 11063 cat conftest.err >&5 11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11065 (exit $ac_status); } && 11066 { ac_try='test -z "$ac_c_werror_flag" 11067 || test ! -s conftest.err' 11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11069 (eval $ac_try) 2>&5 11070 ac_status=$? 11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11072 (exit $ac_status); }; } && 11073 { ac_try='test -s conftest.$ac_objext' 11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11075 (eval $ac_try) 2>&5 11076 ac_status=$? 11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11078 (exit $ac_status); }; }; then 11079 ac_hi=$ac_mid; break 11080 else 11081 echo "$as_me: failed program was:" >&5 11082 sed 's/^/| /' conftest.$ac_ext >&5 11083 11084 ac_lo=`expr $ac_mid + 1` 11085 if test $ac_lo -le $ac_mid; then 11086 ac_lo= ac_hi= 11087 break 11088 fi 11089 ac_mid=`expr 2 '*' $ac_mid + 1` 11090 fi 11091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11092 done 11093 else 11094 echo "$as_me: failed program was:" >&5 11095 sed 's/^/| /' conftest.$ac_ext >&5 11096 11097 cat >conftest.$ac_ext <<_ACEOF 11098 /* confdefs.h. */ 11099 _ACEOF 11100 cat confdefs.h >>conftest.$ac_ext 11101 cat >>conftest.$ac_ext <<_ACEOF 11102 /* end confdefs.h. */ 11103 $ac_includes_default 11104 int 11105 main () 11106 { 11107 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 11108 test_array [0] = 0 11109 11110 ; 11111 return 0; 11112 } 11113 _ACEOF 11114 rm -f conftest.$ac_objext 11115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11116 (eval $ac_compile) 2>conftest.er1 11117 ac_status=$? 11118 grep -v '^ *+' conftest.er1 >conftest.err 11119 rm -f conftest.er1 11120 cat conftest.err >&5 11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11122 (exit $ac_status); } && 11123 { ac_try='test -z "$ac_c_werror_flag" 11124 || test ! -s conftest.err' 11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11126 (eval $ac_try) 2>&5 11127 ac_status=$? 11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11129 (exit $ac_status); }; } && 11130 { ac_try='test -s conftest.$ac_objext' 11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11132 (eval $ac_try) 2>&5 11133 ac_status=$? 11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11135 (exit $ac_status); }; }; then 11136 ac_hi=-1 ac_mid=-1 11137 while :; do 11138 cat >conftest.$ac_ext <<_ACEOF 11139 /* confdefs.h. */ 11140 _ACEOF 11141 cat confdefs.h >>conftest.$ac_ext 11142 cat >>conftest.$ac_ext <<_ACEOF 11143 /* end confdefs.h. */ 11144 $ac_includes_default 11145 int 11146 main () 11147 { 11148 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 11149 test_array [0] = 0 11150 11151 ; 11152 return 0; 11153 } 11154 _ACEOF 11155 rm -f conftest.$ac_objext 11156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11157 (eval $ac_compile) 2>conftest.er1 11158 ac_status=$? 11159 grep -v '^ *+' conftest.er1 >conftest.err 11160 rm -f conftest.er1 11161 cat conftest.err >&5 11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11163 (exit $ac_status); } && 11164 { ac_try='test -z "$ac_c_werror_flag" 11165 || test ! -s conftest.err' 11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11167 (eval $ac_try) 2>&5 11168 ac_status=$? 11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11170 (exit $ac_status); }; } && 11171 { ac_try='test -s conftest.$ac_objext' 11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11173 (eval $ac_try) 2>&5 11174 ac_status=$? 11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11176 (exit $ac_status); }; }; then 11177 ac_lo=$ac_mid; break 11178 else 11179 echo "$as_me: failed program was:" >&5 11180 sed 's/^/| /' conftest.$ac_ext >&5 11181 11182 ac_hi=`expr '(' $ac_mid ')' - 1` 11183 if test $ac_mid -le $ac_hi; then 11184 ac_lo= ac_hi= 11185 break 11186 fi 11187 ac_mid=`expr 2 '*' $ac_mid` 11188 fi 11189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11190 done 11191 else 11192 echo "$as_me: failed program was:" >&5 11193 sed 's/^/| /' conftest.$ac_ext >&5 11194 11195 ac_lo= ac_hi= 11196 fi 11197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11198 fi 11199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11200 # Binary search between lo and hi bounds. 11201 while test "x$ac_lo" != "x$ac_hi"; do 11202 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 11203 cat >conftest.$ac_ext <<_ACEOF 11204 /* confdefs.h. */ 11205 _ACEOF 11206 cat confdefs.h >>conftest.$ac_ext 11207 cat >>conftest.$ac_ext <<_ACEOF 11208 /* end confdefs.h. */ 11209 $ac_includes_default 11210 int 11211 main () 11212 { 11213 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 11214 test_array [0] = 0 11215 11216 ; 11217 return 0; 11218 } 11219 _ACEOF 11220 rm -f conftest.$ac_objext 11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11222 (eval $ac_compile) 2>conftest.er1 11223 ac_status=$? 11224 grep -v '^ *+' conftest.er1 >conftest.err 11225 rm -f conftest.er1 11226 cat conftest.err >&5 11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11228 (exit $ac_status); } && 11229 { ac_try='test -z "$ac_c_werror_flag" 11230 || test ! -s conftest.err' 11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11232 (eval $ac_try) 2>&5 11233 ac_status=$? 11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11235 (exit $ac_status); }; } && 11236 { ac_try='test -s conftest.$ac_objext' 11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11238 (eval $ac_try) 2>&5 11239 ac_status=$? 11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11241 (exit $ac_status); }; }; then 11242 ac_hi=$ac_mid 11243 else 11244 echo "$as_me: failed program was:" >&5 11245 sed 's/^/| /' conftest.$ac_ext >&5 11246 11247 ac_lo=`expr '(' $ac_mid ')' + 1` 11248 fi 11249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11250 done 11251 case $ac_lo in 11252 ?*) ac_cv_sizeof_long=$ac_lo;; 11253 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 11254 See \`config.log' for more details." >&5 11255 echo "$as_me: error: cannot compute sizeof (long), 77 11256 See \`config.log' for more details." >&2;} 11257 { (exit 1); exit 1; }; } ;; 11258 esac 11259 else 11260 if test "$cross_compiling" = yes; then 11261 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11262 See \`config.log' for more details." >&5 11263 echo "$as_me: error: cannot run test program while cross compiling 11264 See \`config.log' for more details." >&2;} 11265 { (exit 1); exit 1; }; } 11266 else 11267 cat >conftest.$ac_ext <<_ACEOF 11268 /* confdefs.h. */ 11269 _ACEOF 11270 cat confdefs.h >>conftest.$ac_ext 11271 cat >>conftest.$ac_ext <<_ACEOF 11272 /* end confdefs.h. */ 11273 $ac_includes_default 11274 long longval () { return (long) (sizeof (long)); } 11275 unsigned long ulongval () { return (long) (sizeof (long)); } 11276 #include <stdio.h> 11277 #include <stdlib.h> 11278 int 11279 main () 11280 { 11281 11282 FILE *f = fopen ("conftest.val", "w"); 11283 if (! f) 11284 exit (1); 11285 if (((long) (sizeof (long))) < 0) 11286 { 11287 long i = longval (); 11288 if (i != ((long) (sizeof (long)))) 11289 exit (1); 11290 fprintf (f, "%ld\n", i); 11291 } 11292 else 11293 { 11294 unsigned long i = ulongval (); 11295 if (i != ((long) (sizeof (long)))) 11296 exit (1); 11297 fprintf (f, "%lu\n", i); 11298 } 11299 exit (ferror (f) || fclose (f) != 0); 11300 11301 ; 11302 return 0; 11303 } 11304 _ACEOF 11305 rm -f conftest$ac_exeext 11306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11307 (eval $ac_link) 2>&5 11308 ac_status=$? 11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11312 (eval $ac_try) 2>&5 11313 ac_status=$? 11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11315 (exit $ac_status); }; }; then 11316 ac_cv_sizeof_long=`cat conftest.val` 11317 else 11318 echo "$as_me: program exited with status $ac_status" >&5 11319 echo "$as_me: failed program was:" >&5 11320 sed 's/^/| /' conftest.$ac_ext >&5 11321 11322 ( exit $ac_status ) 11323 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 11324 See \`config.log' for more details." >&5 11325 echo "$as_me: error: cannot compute sizeof (long), 77 11326 See \`config.log' for more details." >&2;} 11327 { (exit 1); exit 1; }; } 11328 fi 11329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11330 fi 11331 fi 11332 rm -f conftest.val 11333 else 11334 ac_cv_sizeof_long=0 11335 fi 11336 fi 11337 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 11338 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 11339 cat >>confdefs.h <<_ACEOF 11340 #define SIZEOF_LONG $ac_cv_sizeof_long 11341 _ACEOF 11342 11343 11344 echo "$as_me:$LINENO: checking for int" >&5 11345 echo $ECHO_N "checking for int... $ECHO_C" >&6 11346 if test "${ac_cv_type_int+set}" = set; then 11347 echo $ECHO_N "(cached) $ECHO_C" >&6 11348 else 11349 cat >conftest.$ac_ext <<_ACEOF 11350 /* confdefs.h. */ 11351 _ACEOF 11352 cat confdefs.h >>conftest.$ac_ext 11353 cat >>conftest.$ac_ext <<_ACEOF 11354 /* end confdefs.h. */ 11355 $ac_includes_default 11356 int 11357 main () 11358 { 11359 if ((int *) 0) 11360 return 0; 11361 if (sizeof (int)) 11362 return 0; 11363 ; 11364 return 0; 11365 } 11366 _ACEOF 11367 rm -f conftest.$ac_objext 11368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11369 (eval $ac_compile) 2>conftest.er1 11370 ac_status=$? 11371 grep -v '^ *+' conftest.er1 >conftest.err 11372 rm -f conftest.er1 11373 cat conftest.err >&5 11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11375 (exit $ac_status); } && 11376 { ac_try='test -z "$ac_c_werror_flag" 11377 || test ! -s conftest.err' 11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11379 (eval $ac_try) 2>&5 11380 ac_status=$? 11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11382 (exit $ac_status); }; } && 11383 { ac_try='test -s conftest.$ac_objext' 11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11385 (eval $ac_try) 2>&5 11386 ac_status=$? 11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11388 (exit $ac_status); }; }; then 11389 ac_cv_type_int=yes 11390 else 11391 echo "$as_me: failed program was:" >&5 11392 sed 's/^/| /' conftest.$ac_ext >&5 11393 11394 ac_cv_type_int=no 11395 fi 11396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11397 fi 11398 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 11399 echo "${ECHO_T}$ac_cv_type_int" >&6 11400 11401 echo "$as_me:$LINENO: checking size of int" >&5 11402 echo $ECHO_N "checking size of int... $ECHO_C" >&6 11403 if test "${ac_cv_sizeof_int+set}" = set; then 11404 echo $ECHO_N "(cached) $ECHO_C" >&6 11405 else 11406 if test "$ac_cv_type_int" = yes; then 11407 # The cast to unsigned long works around a bug in the HP C Compiler 11408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11410 # This bug is HP SR number 8606223364. 11411 if test "$cross_compiling" = yes; then 11412 # Depending upon the size, compute the lo and hi bounds. 11413 cat >conftest.$ac_ext <<_ACEOF 11414 /* confdefs.h. */ 11415 _ACEOF 11416 cat confdefs.h >>conftest.$ac_ext 11417 cat >>conftest.$ac_ext <<_ACEOF 11418 /* end confdefs.h. */ 11419 $ac_includes_default 11420 int 11421 main () 11422 { 11423 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 11424 test_array [0] = 0 11425 11426 ; 11427 return 0; 11428 } 11429 _ACEOF 11430 rm -f conftest.$ac_objext 11431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11432 (eval $ac_compile) 2>conftest.er1 11433 ac_status=$? 11434 grep -v '^ *+' conftest.er1 >conftest.err 11435 rm -f conftest.er1 11436 cat conftest.err >&5 11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11438 (exit $ac_status); } && 11439 { ac_try='test -z "$ac_c_werror_flag" 11440 || test ! -s conftest.err' 11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11442 (eval $ac_try) 2>&5 11443 ac_status=$? 11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11445 (exit $ac_status); }; } && 11446 { ac_try='test -s conftest.$ac_objext' 11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11448 (eval $ac_try) 2>&5 11449 ac_status=$? 11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11451 (exit $ac_status); }; }; then 11452 ac_lo=0 ac_mid=0 11453 while :; do 11454 cat >conftest.$ac_ext <<_ACEOF 11455 /* confdefs.h. */ 11456 _ACEOF 11457 cat confdefs.h >>conftest.$ac_ext 11458 cat >>conftest.$ac_ext <<_ACEOF 11459 /* end confdefs.h. */ 11460 $ac_includes_default 11461 int 11462 main () 11463 { 11464 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 11465 test_array [0] = 0 11466 11467 ; 11468 return 0; 11469 } 11470 _ACEOF 11471 rm -f conftest.$ac_objext 11472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11473 (eval $ac_compile) 2>conftest.er1 11474 ac_status=$? 11475 grep -v '^ *+' conftest.er1 >conftest.err 11476 rm -f conftest.er1 11477 cat conftest.err >&5 11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11479 (exit $ac_status); } && 11480 { ac_try='test -z "$ac_c_werror_flag" 11481 || test ! -s conftest.err' 11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11483 (eval $ac_try) 2>&5 11484 ac_status=$? 11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11486 (exit $ac_status); }; } && 11487 { ac_try='test -s conftest.$ac_objext' 11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11489 (eval $ac_try) 2>&5 11490 ac_status=$? 11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11492 (exit $ac_status); }; }; then 11493 ac_hi=$ac_mid; break 11494 else 11495 echo "$as_me: failed program was:" >&5 11496 sed 's/^/| /' conftest.$ac_ext >&5 11497 11498 ac_lo=`expr $ac_mid + 1` 11499 if test $ac_lo -le $ac_mid; then 11500 ac_lo= ac_hi= 11501 break 11502 fi 11503 ac_mid=`expr 2 '*' $ac_mid + 1` 11504 fi 11505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11506 done 11507 else 11508 echo "$as_me: failed program was:" >&5 11509 sed 's/^/| /' conftest.$ac_ext >&5 11510 11511 cat >conftest.$ac_ext <<_ACEOF 11512 /* confdefs.h. */ 11513 _ACEOF 11514 cat confdefs.h >>conftest.$ac_ext 11515 cat >>conftest.$ac_ext <<_ACEOF 11516 /* end confdefs.h. */ 11517 $ac_includes_default 11518 int 11519 main () 11520 { 11521 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 11522 test_array [0] = 0 11523 11524 ; 11525 return 0; 11526 } 11527 _ACEOF 11528 rm -f conftest.$ac_objext 11529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11530 (eval $ac_compile) 2>conftest.er1 11531 ac_status=$? 11532 grep -v '^ *+' conftest.er1 >conftest.err 11533 rm -f conftest.er1 11534 cat conftest.err >&5 11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11536 (exit $ac_status); } && 11537 { ac_try='test -z "$ac_c_werror_flag" 11538 || test ! -s conftest.err' 11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11540 (eval $ac_try) 2>&5 11541 ac_status=$? 11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11543 (exit $ac_status); }; } && 11544 { ac_try='test -s conftest.$ac_objext' 11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11546 (eval $ac_try) 2>&5 11547 ac_status=$? 11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11549 (exit $ac_status); }; }; then 11550 ac_hi=-1 ac_mid=-1 11551 while :; do 11552 cat >conftest.$ac_ext <<_ACEOF 11553 /* confdefs.h. */ 11554 _ACEOF 11555 cat confdefs.h >>conftest.$ac_ext 11556 cat >>conftest.$ac_ext <<_ACEOF 11557 /* end confdefs.h. */ 11558 $ac_includes_default 11559 int 11560 main () 11561 { 11562 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 11563 test_array [0] = 0 11564 11565 ; 11566 return 0; 11567 } 11568 _ACEOF 11569 rm -f conftest.$ac_objext 11570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11571 (eval $ac_compile) 2>conftest.er1 11572 ac_status=$? 11573 grep -v '^ *+' conftest.er1 >conftest.err 11574 rm -f conftest.er1 11575 cat conftest.err >&5 11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11577 (exit $ac_status); } && 11578 { ac_try='test -z "$ac_c_werror_flag" 11579 || test ! -s conftest.err' 11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11581 (eval $ac_try) 2>&5 11582 ac_status=$? 11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11584 (exit $ac_status); }; } && 11585 { ac_try='test -s conftest.$ac_objext' 11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11587 (eval $ac_try) 2>&5 11588 ac_status=$? 11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11590 (exit $ac_status); }; }; then 11591 ac_lo=$ac_mid; break 11592 else 11593 echo "$as_me: failed program was:" >&5 11594 sed 's/^/| /' conftest.$ac_ext >&5 11595 11596 ac_hi=`expr '(' $ac_mid ')' - 1` 11597 if test $ac_mid -le $ac_hi; then 11598 ac_lo= ac_hi= 11599 break 11600 fi 11601 ac_mid=`expr 2 '*' $ac_mid` 11602 fi 11603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11604 done 11605 else 11606 echo "$as_me: failed program was:" >&5 11607 sed 's/^/| /' conftest.$ac_ext >&5 11608 11609 ac_lo= ac_hi= 11610 fi 11611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11612 fi 11613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11614 # Binary search between lo and hi bounds. 11615 while test "x$ac_lo" != "x$ac_hi"; do 11616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 11617 cat >conftest.$ac_ext <<_ACEOF 11618 /* confdefs.h. */ 11619 _ACEOF 11620 cat confdefs.h >>conftest.$ac_ext 11621 cat >>conftest.$ac_ext <<_ACEOF 11622 /* end confdefs.h. */ 11623 $ac_includes_default 11624 int 11625 main () 11626 { 11627 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 11628 test_array [0] = 0 11629 11630 ; 11631 return 0; 11632 } 11633 _ACEOF 11634 rm -f conftest.$ac_objext 11635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11636 (eval $ac_compile) 2>conftest.er1 11637 ac_status=$? 11638 grep -v '^ *+' conftest.er1 >conftest.err 11639 rm -f conftest.er1 11640 cat conftest.err >&5 11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11642 (exit $ac_status); } && 11643 { ac_try='test -z "$ac_c_werror_flag" 11644 || test ! -s conftest.err' 11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11646 (eval $ac_try) 2>&5 11647 ac_status=$? 11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11649 (exit $ac_status); }; } && 11650 { ac_try='test -s conftest.$ac_objext' 11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11652 (eval $ac_try) 2>&5 11653 ac_status=$? 11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11655 (exit $ac_status); }; }; then 11656 ac_hi=$ac_mid 11657 else 11658 echo "$as_me: failed program was:" >&5 11659 sed 's/^/| /' conftest.$ac_ext >&5 11660 11661 ac_lo=`expr '(' $ac_mid ')' + 1` 11662 fi 11663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11664 done 11665 case $ac_lo in 11666 ?*) ac_cv_sizeof_int=$ac_lo;; 11667 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 11668 See \`config.log' for more details." >&5 11669 echo "$as_me: error: cannot compute sizeof (int), 77 11670 See \`config.log' for more details." >&2;} 11671 { (exit 1); exit 1; }; } ;; 11672 esac 11673 else 11674 if test "$cross_compiling" = yes; then 11675 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11676 See \`config.log' for more details." >&5 11677 echo "$as_me: error: cannot run test program while cross compiling 11678 See \`config.log' for more details." >&2;} 11679 { (exit 1); exit 1; }; } 11680 else 11681 cat >conftest.$ac_ext <<_ACEOF 11682 /* confdefs.h. */ 11683 _ACEOF 11684 cat confdefs.h >>conftest.$ac_ext 11685 cat >>conftest.$ac_ext <<_ACEOF 11686 /* end confdefs.h. */ 11687 $ac_includes_default 11688 long longval () { return (long) (sizeof (int)); } 11689 unsigned long ulongval () { return (long) (sizeof (int)); } 11690 #include <stdio.h> 11691 #include <stdlib.h> 11692 int 11693 main () 11694 { 11695 11696 FILE *f = fopen ("conftest.val", "w"); 11697 if (! f) 11698 exit (1); 11699 if (((long) (sizeof (int))) < 0) 11700 { 11701 long i = longval (); 11702 if (i != ((long) (sizeof (int)))) 11703 exit (1); 11704 fprintf (f, "%ld\n", i); 11705 } 11706 else 11707 { 11708 unsigned long i = ulongval (); 11709 if (i != ((long) (sizeof (int)))) 11710 exit (1); 11711 fprintf (f, "%lu\n", i); 11712 } 11713 exit (ferror (f) || fclose (f) != 0); 11714 11715 ; 11716 return 0; 11717 } 11718 _ACEOF 11719 rm -f conftest$ac_exeext 11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11721 (eval $ac_link) 2>&5 11722 ac_status=$? 11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11726 (eval $ac_try) 2>&5 11727 ac_status=$? 11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11729 (exit $ac_status); }; }; then 11730 ac_cv_sizeof_int=`cat conftest.val` 11731 else 11732 echo "$as_me: program exited with status $ac_status" >&5 11733 echo "$as_me: failed program was:" >&5 11734 sed 's/^/| /' conftest.$ac_ext >&5 11735 11736 ( exit $ac_status ) 11737 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 11738 See \`config.log' for more details." >&5 11739 echo "$as_me: error: cannot compute sizeof (int), 77 11740 See \`config.log' for more details." >&2;} 11741 { (exit 1); exit 1; }; } 11742 fi 11743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11744 fi 11745 fi 11746 rm -f conftest.val 11747 else 11748 ac_cv_sizeof_int=0 11749 fi 11750 fi 11751 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 11752 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 11753 cat >>confdefs.h <<_ACEOF 11754 #define SIZEOF_INT $ac_cv_sizeof_int 11755 _ACEOF 11756 11757 11758 echo "$as_me:$LINENO: checking for short" >&5 11759 echo $ECHO_N "checking for short... $ECHO_C" >&6 11760 if test "${ac_cv_type_short+set}" = set; then 11761 echo $ECHO_N "(cached) $ECHO_C" >&6 11762 else 11763 cat >conftest.$ac_ext <<_ACEOF 11764 /* confdefs.h. */ 11765 _ACEOF 11766 cat confdefs.h >>conftest.$ac_ext 11767 cat >>conftest.$ac_ext <<_ACEOF 11768 /* end confdefs.h. */ 11769 $ac_includes_default 11770 int 11771 main () 11772 { 11773 if ((short *) 0) 11774 return 0; 11775 if (sizeof (short)) 11776 return 0; 11777 ; 11778 return 0; 11779 } 11780 _ACEOF 11781 rm -f conftest.$ac_objext 11782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11783 (eval $ac_compile) 2>conftest.er1 11784 ac_status=$? 11785 grep -v '^ *+' conftest.er1 >conftest.err 11786 rm -f conftest.er1 11787 cat conftest.err >&5 11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11789 (exit $ac_status); } && 11790 { ac_try='test -z "$ac_c_werror_flag" 11791 || test ! -s conftest.err' 11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11793 (eval $ac_try) 2>&5 11794 ac_status=$? 11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11796 (exit $ac_status); }; } && 11797 { ac_try='test -s conftest.$ac_objext' 11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11799 (eval $ac_try) 2>&5 11800 ac_status=$? 11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11802 (exit $ac_status); }; }; then 11803 ac_cv_type_short=yes 11804 else 11805 echo "$as_me: failed program was:" >&5 11806 sed 's/^/| /' conftest.$ac_ext >&5 11807 11808 ac_cv_type_short=no 11809 fi 11810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11811 fi 11812 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 11813 echo "${ECHO_T}$ac_cv_type_short" >&6 11814 11815 echo "$as_me:$LINENO: checking size of short" >&5 11816 echo $ECHO_N "checking size of short... $ECHO_C" >&6 11817 if test "${ac_cv_sizeof_short+set}" = set; then 11818 echo $ECHO_N "(cached) $ECHO_C" >&6 11819 else 11820 if test "$ac_cv_type_short" = yes; then 11821 # The cast to unsigned long works around a bug in the HP C Compiler 11822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11824 # This bug is HP SR number 8606223364. 11825 if test "$cross_compiling" = yes; then 11826 # Depending upon the size, compute the lo and hi bounds. 11827 cat >conftest.$ac_ext <<_ACEOF 11828 /* confdefs.h. */ 11829 _ACEOF 11830 cat confdefs.h >>conftest.$ac_ext 11831 cat >>conftest.$ac_ext <<_ACEOF 11832 /* end confdefs.h. */ 11833 $ac_includes_default 11834 int 11835 main () 11836 { 11837 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 11838 test_array [0] = 0 11839 11840 ; 11841 return 0; 11842 } 11843 _ACEOF 11844 rm -f conftest.$ac_objext 11845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11846 (eval $ac_compile) 2>conftest.er1 11847 ac_status=$? 11848 grep -v '^ *+' conftest.er1 >conftest.err 11849 rm -f conftest.er1 11850 cat conftest.err >&5 11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11852 (exit $ac_status); } && 11853 { ac_try='test -z "$ac_c_werror_flag" 11854 || test ! -s conftest.err' 11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11856 (eval $ac_try) 2>&5 11857 ac_status=$? 11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11859 (exit $ac_status); }; } && 11860 { ac_try='test -s conftest.$ac_objext' 11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11862 (eval $ac_try) 2>&5 11863 ac_status=$? 11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11865 (exit $ac_status); }; }; then 11866 ac_lo=0 ac_mid=0 11867 while :; do 11868 cat >conftest.$ac_ext <<_ACEOF 11869 /* confdefs.h. */ 11870 _ACEOF 11871 cat confdefs.h >>conftest.$ac_ext 11872 cat >>conftest.$ac_ext <<_ACEOF 11873 /* end confdefs.h. */ 11874 $ac_includes_default 11875 int 11876 main () 11877 { 11878 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 11879 test_array [0] = 0 11880 11881 ; 11882 return 0; 11883 } 11884 _ACEOF 11885 rm -f conftest.$ac_objext 11886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11887 (eval $ac_compile) 2>conftest.er1 11888 ac_status=$? 11889 grep -v '^ *+' conftest.er1 >conftest.err 11890 rm -f conftest.er1 11891 cat conftest.err >&5 11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11893 (exit $ac_status); } && 11894 { ac_try='test -z "$ac_c_werror_flag" 11895 || test ! -s conftest.err' 11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11897 (eval $ac_try) 2>&5 11898 ac_status=$? 11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11900 (exit $ac_status); }; } && 11901 { ac_try='test -s conftest.$ac_objext' 11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11903 (eval $ac_try) 2>&5 11904 ac_status=$? 11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11906 (exit $ac_status); }; }; then 11907 ac_hi=$ac_mid; break 11908 else 11909 echo "$as_me: failed program was:" >&5 11910 sed 's/^/| /' conftest.$ac_ext >&5 11911 11912 ac_lo=`expr $ac_mid + 1` 11913 if test $ac_lo -le $ac_mid; then 11914 ac_lo= ac_hi= 11915 break 11916 fi 11917 ac_mid=`expr 2 '*' $ac_mid + 1` 11918 fi 11919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11920 done 11921 else 11922 echo "$as_me: failed program was:" >&5 11923 sed 's/^/| /' conftest.$ac_ext >&5 11924 11925 cat >conftest.$ac_ext <<_ACEOF 11926 /* confdefs.h. */ 11927 _ACEOF 11928 cat confdefs.h >>conftest.$ac_ext 11929 cat >>conftest.$ac_ext <<_ACEOF 11930 /* end confdefs.h. */ 11931 $ac_includes_default 11932 int 11933 main () 11934 { 11935 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 11936 test_array [0] = 0 11937 11938 ; 11939 return 0; 11940 } 11941 _ACEOF 11942 rm -f conftest.$ac_objext 11943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11944 (eval $ac_compile) 2>conftest.er1 11945 ac_status=$? 11946 grep -v '^ *+' conftest.er1 >conftest.err 11947 rm -f conftest.er1 11948 cat conftest.err >&5 11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11950 (exit $ac_status); } && 11951 { ac_try='test -z "$ac_c_werror_flag" 11952 || test ! -s conftest.err' 11953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11954 (eval $ac_try) 2>&5 11955 ac_status=$? 11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11957 (exit $ac_status); }; } && 11958 { ac_try='test -s conftest.$ac_objext' 11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11960 (eval $ac_try) 2>&5 11961 ac_status=$? 11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11963 (exit $ac_status); }; }; then 11964 ac_hi=-1 ac_mid=-1 11965 while :; do 11966 cat >conftest.$ac_ext <<_ACEOF 11967 /* confdefs.h. */ 11968 _ACEOF 11969 cat confdefs.h >>conftest.$ac_ext 11970 cat >>conftest.$ac_ext <<_ACEOF 11971 /* end confdefs.h. */ 11972 $ac_includes_default 11973 int 11974 main () 11975 { 11976 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 11977 test_array [0] = 0 11978 11979 ; 11980 return 0; 11981 } 11982 _ACEOF 11983 rm -f conftest.$ac_objext 11984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11985 (eval $ac_compile) 2>conftest.er1 11986 ac_status=$? 11987 grep -v '^ *+' conftest.er1 >conftest.err 11988 rm -f conftest.er1 11989 cat conftest.err >&5 11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11991 (exit $ac_status); } && 11992 { ac_try='test -z "$ac_c_werror_flag" 11993 || test ! -s conftest.err' 11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11995 (eval $ac_try) 2>&5 11996 ac_status=$? 11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11998 (exit $ac_status); }; } && 11999 { ac_try='test -s conftest.$ac_objext' 12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12001 (eval $ac_try) 2>&5 12002 ac_status=$? 12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12004 (exit $ac_status); }; }; then 12005 ac_lo=$ac_mid; break 12006 else 12007 echo "$as_me: failed program was:" >&5 12008 sed 's/^/| /' conftest.$ac_ext >&5 12009 12010 ac_hi=`expr '(' $ac_mid ')' - 1` 12011 if test $ac_mid -le $ac_hi; then 12012 ac_lo= ac_hi= 12013 break 12014 fi 12015 ac_mid=`expr 2 '*' $ac_mid` 12016 fi 12017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12018 done 12019 else 12020 echo "$as_me: failed program was:" >&5 12021 sed 's/^/| /' conftest.$ac_ext >&5 12022 12023 ac_lo= ac_hi= 12024 fi 12025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12026 fi 12027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12028 # Binary search between lo and hi bounds. 12029 while test "x$ac_lo" != "x$ac_hi"; do 12030 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12031 cat >conftest.$ac_ext <<_ACEOF 12032 /* confdefs.h. */ 12033 _ACEOF 12034 cat confdefs.h >>conftest.$ac_ext 12035 cat >>conftest.$ac_ext <<_ACEOF 12036 /* end confdefs.h. */ 12037 $ac_includes_default 12038 int 12039 main () 12040 { 12041 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 12042 test_array [0] = 0 12043 12044 ; 12045 return 0; 12046 } 12047 _ACEOF 12048 rm -f conftest.$ac_objext 12049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12050 (eval $ac_compile) 2>conftest.er1 12051 ac_status=$? 12052 grep -v '^ *+' conftest.er1 >conftest.err 12053 rm -f conftest.er1 12054 cat conftest.err >&5 12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12056 (exit $ac_status); } && 12057 { ac_try='test -z "$ac_c_werror_flag" 12058 || test ! -s conftest.err' 12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12060 (eval $ac_try) 2>&5 12061 ac_status=$? 12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12063 (exit $ac_status); }; } && 12064 { ac_try='test -s conftest.$ac_objext' 12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12066 (eval $ac_try) 2>&5 12067 ac_status=$? 12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12069 (exit $ac_status); }; }; then 12070 ac_hi=$ac_mid 12071 else 12072 echo "$as_me: failed program was:" >&5 12073 sed 's/^/| /' conftest.$ac_ext >&5 12074 12075 ac_lo=`expr '(' $ac_mid ')' + 1` 12076 fi 12077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12078 done 12079 case $ac_lo in 12080 ?*) ac_cv_sizeof_short=$ac_lo;; 12081 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 12082 See \`config.log' for more details." >&5 12083 echo "$as_me: error: cannot compute sizeof (short), 77 12084 See \`config.log' for more details." >&2;} 12085 { (exit 1); exit 1; }; } ;; 12086 esac 12087 else 12088 if test "$cross_compiling" = yes; then 12089 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12090 See \`config.log' for more details." >&5 12091 echo "$as_me: error: cannot run test program while cross compiling 12092 See \`config.log' for more details." >&2;} 12093 { (exit 1); exit 1; }; } 12094 else 12095 cat >conftest.$ac_ext <<_ACEOF 12096 /* confdefs.h. */ 12097 _ACEOF 12098 cat confdefs.h >>conftest.$ac_ext 12099 cat >>conftest.$ac_ext <<_ACEOF 12100 /* end confdefs.h. */ 12101 $ac_includes_default 12102 long longval () { return (long) (sizeof (short)); } 12103 unsigned long ulongval () { return (long) (sizeof (short)); } 12104 #include <stdio.h> 12105 #include <stdlib.h> 12106 int 12107 main () 12108 { 12109 12110 FILE *f = fopen ("conftest.val", "w"); 12111 if (! f) 12112 exit (1); 12113 if (((long) (sizeof (short))) < 0) 12114 { 12115 long i = longval (); 12116 if (i != ((long) (sizeof (short)))) 12117 exit (1); 12118 fprintf (f, "%ld\n", i); 12119 } 12120 else 12121 { 12122 unsigned long i = ulongval (); 12123 if (i != ((long) (sizeof (short)))) 12124 exit (1); 12125 fprintf (f, "%lu\n", i); 12126 } 12127 exit (ferror (f) || fclose (f) != 0); 12128 12129 ; 12130 return 0; 12131 } 12132 _ACEOF 12133 rm -f conftest$ac_exeext 12134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12135 (eval $ac_link) 2>&5 12136 ac_status=$? 12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12140 (eval $ac_try) 2>&5 12141 ac_status=$? 12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12143 (exit $ac_status); }; }; then 12144 ac_cv_sizeof_short=`cat conftest.val` 12145 else 12146 echo "$as_me: program exited with status $ac_status" >&5 12147 echo "$as_me: failed program was:" >&5 12148 sed 's/^/| /' conftest.$ac_ext >&5 12149 12150 ( exit $ac_status ) 12151 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 12152 See \`config.log' for more details." >&5 12153 echo "$as_me: error: cannot compute sizeof (short), 77 12154 See \`config.log' for more details." >&2;} 12155 { (exit 1); exit 1; }; } 12156 fi 12157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12158 fi 12159 fi 12160 rm -f conftest.val 12161 else 12162 ac_cv_sizeof_short=0 12163 fi 12164 fi 12165 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 12166 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 12167 cat >>confdefs.h <<_ACEOF 12168 #define SIZEOF_SHORT $ac_cv_sizeof_short 12169 _ACEOF 12170 12171 12172 fi 12173 FOUND=0 12174 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 12175 dc_cv_size=`eval echo $dc_cv_loop` 12176 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 12177 if test "$dc_cv_size" = "4"; then 12178 if test "$dc_cv_name" = "int"; then 12179 echo "$as_me:$LINENO: checking for int32_t" >&5 12180 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 12181 if test "${ac_cv_type_int32_t+set}" = set; then 12182 echo $ECHO_N "(cached) $ECHO_C" >&6 12183 else 12184 cat >conftest.$ac_ext <<_ACEOF 12185 /* confdefs.h. */ 12186 _ACEOF 12187 cat confdefs.h >>conftest.$ac_ext 12188 cat >>conftest.$ac_ext <<_ACEOF 12189 /* end confdefs.h. */ 12190 $ac_includes_default 12191 int 12192 main () 12193 { 12194 if ((int32_t *) 0) 12195 return 0; 12196 if (sizeof (int32_t)) 12197 return 0; 12198 ; 12199 return 0; 12200 } 12201 _ACEOF 12202 rm -f conftest.$ac_objext 12203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12204 (eval $ac_compile) 2>conftest.er1 12205 ac_status=$? 12206 grep -v '^ *+' conftest.er1 >conftest.err 12207 rm -f conftest.er1 12208 cat conftest.err >&5 12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12210 (exit $ac_status); } && 12211 { ac_try='test -z "$ac_c_werror_flag" 12212 || test ! -s conftest.err' 12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12214 (eval $ac_try) 2>&5 12215 ac_status=$? 12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12217 (exit $ac_status); }; } && 12218 { ac_try='test -s conftest.$ac_objext' 12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12220 (eval $ac_try) 2>&5 12221 ac_status=$? 12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12223 (exit $ac_status); }; }; then 12224 ac_cv_type_int32_t=yes 12225 else 12226 echo "$as_me: failed program was:" >&5 12227 sed 's/^/| /' conftest.$ac_ext >&5 12228 12229 ac_cv_type_int32_t=no 12230 fi 12231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12232 fi 12233 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 12234 echo "${ECHO_T}$ac_cv_type_int32_t" >&6 12235 if test $ac_cv_type_int32_t = yes; then 12236 : 12237 else 12238 12239 cat >>confdefs.h <<_ACEOF 12240 #define int32_t signed int 12241 _ACEOF 12242 12243 fi 12244 12245 fi 12246 if test "$dc_cv_name" = "long"; then 12247 echo "$as_me:$LINENO: checking for int32_t" >&5 12248 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 12249 if test "${ac_cv_type_int32_t+set}" = set; then 12250 echo $ECHO_N "(cached) $ECHO_C" >&6 12251 else 12252 cat >conftest.$ac_ext <<_ACEOF 12253 /* confdefs.h. */ 12254 _ACEOF 12255 cat confdefs.h >>conftest.$ac_ext 12256 cat >>conftest.$ac_ext <<_ACEOF 12257 /* end confdefs.h. */ 12258 $ac_includes_default 12259 int 12260 main () 12261 { 12262 if ((int32_t *) 0) 12263 return 0; 12264 if (sizeof (int32_t)) 12265 return 0; 12266 ; 12267 return 0; 12268 } 12269 _ACEOF 12270 rm -f conftest.$ac_objext 12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12272 (eval $ac_compile) 2>conftest.er1 12273 ac_status=$? 12274 grep -v '^ *+' conftest.er1 >conftest.err 12275 rm -f conftest.er1 12276 cat conftest.err >&5 12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12278 (exit $ac_status); } && 12279 { ac_try='test -z "$ac_c_werror_flag" 12280 || test ! -s conftest.err' 12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12282 (eval $ac_try) 2>&5 12283 ac_status=$? 12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12285 (exit $ac_status); }; } && 12286 { ac_try='test -s conftest.$ac_objext' 12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12288 (eval $ac_try) 2>&5 12289 ac_status=$? 12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12291 (exit $ac_status); }; }; then 12292 ac_cv_type_int32_t=yes 12293 else 12294 echo "$as_me: failed program was:" >&5 12295 sed 's/^/| /' conftest.$ac_ext >&5 12296 12297 ac_cv_type_int32_t=no 12298 fi 12299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12300 fi 12301 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 12302 echo "${ECHO_T}$ac_cv_type_int32_t" >&6 12303 if test $ac_cv_type_int32_t = yes; then 12304 : 12305 else 12306 12307 cat >>confdefs.h <<_ACEOF 12308 #define int32_t signed long 12309 _ACEOF 12310 12311 fi 12312 12313 fi 12314 if test "$dc_cv_name" = "long_long"; then 12315 echo "$as_me:$LINENO: checking for int32_t" >&5 12316 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 12317 if test "${ac_cv_type_int32_t+set}" = set; then 12318 echo $ECHO_N "(cached) $ECHO_C" >&6 12319 else 12320 cat >conftest.$ac_ext <<_ACEOF 12321 /* confdefs.h. */ 12322 _ACEOF 12323 cat confdefs.h >>conftest.$ac_ext 12324 cat >>conftest.$ac_ext <<_ACEOF 12325 /* end confdefs.h. */ 12326 $ac_includes_default 12327 int 12328 main () 12329 { 12330 if ((int32_t *) 0) 12331 return 0; 12332 if (sizeof (int32_t)) 12333 return 0; 12334 ; 12335 return 0; 12336 } 12337 _ACEOF 12338 rm -f conftest.$ac_objext 12339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12340 (eval $ac_compile) 2>conftest.er1 12341 ac_status=$? 12342 grep -v '^ *+' conftest.er1 >conftest.err 12343 rm -f conftest.er1 12344 cat conftest.err >&5 12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12346 (exit $ac_status); } && 12347 { ac_try='test -z "$ac_c_werror_flag" 12348 || test ! -s conftest.err' 12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12350 (eval $ac_try) 2>&5 12351 ac_status=$? 12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12353 (exit $ac_status); }; } && 12354 { ac_try='test -s conftest.$ac_objext' 12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12356 (eval $ac_try) 2>&5 12357 ac_status=$? 12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12359 (exit $ac_status); }; }; then 12360 ac_cv_type_int32_t=yes 12361 else 12362 echo "$as_me: failed program was:" >&5 12363 sed 's/^/| /' conftest.$ac_ext >&5 12364 12365 ac_cv_type_int32_t=no 12366 fi 12367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12368 fi 12369 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 12370 echo "${ECHO_T}$ac_cv_type_int32_t" >&6 12371 if test $ac_cv_type_int32_t = yes; then 12372 : 12373 else 12374 12375 cat >>confdefs.h <<_ACEOF 12376 #define int32_t signed long long 12377 _ACEOF 12378 12379 fi 12380 12381 fi 12382 if test "$dc_cv_name" = "short"; then 12383 echo "$as_me:$LINENO: checking for int32_t" >&5 12384 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 12385 if test "${ac_cv_type_int32_t+set}" = set; then 12386 echo $ECHO_N "(cached) $ECHO_C" >&6 12387 else 12388 cat >conftest.$ac_ext <<_ACEOF 12389 /* confdefs.h. */ 12390 _ACEOF 12391 cat confdefs.h >>conftest.$ac_ext 12392 cat >>conftest.$ac_ext <<_ACEOF 12393 /* end confdefs.h. */ 12394 $ac_includes_default 12395 int 12396 main () 12397 { 12398 if ((int32_t *) 0) 12399 return 0; 12400 if (sizeof (int32_t)) 12401 return 0; 12402 ; 12403 return 0; 12404 } 12405 _ACEOF 12406 rm -f conftest.$ac_objext 12407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12408 (eval $ac_compile) 2>conftest.er1 12409 ac_status=$? 12410 grep -v '^ *+' conftest.er1 >conftest.err 12411 rm -f conftest.er1 12412 cat conftest.err >&5 12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12414 (exit $ac_status); } && 12415 { ac_try='test -z "$ac_c_werror_flag" 12416 || test ! -s conftest.err' 12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12418 (eval $ac_try) 2>&5 12419 ac_status=$? 12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12421 (exit $ac_status); }; } && 12422 { ac_try='test -s conftest.$ac_objext' 12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12424 (eval $ac_try) 2>&5 12425 ac_status=$? 12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12427 (exit $ac_status); }; }; then 12428 ac_cv_type_int32_t=yes 12429 else 12430 echo "$as_me: failed program was:" >&5 12431 sed 's/^/| /' conftest.$ac_ext >&5 12432 12433 ac_cv_type_int32_t=no 12434 fi 12435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12436 fi 12437 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 12438 echo "${ECHO_T}$ac_cv_type_int32_t" >&6 12439 if test $ac_cv_type_int32_t = yes; then 12440 : 12441 else 12442 12443 cat >>confdefs.h <<_ACEOF 12444 #define int32_t signed short 12445 _ACEOF 12446 12447 fi 12448 12449 fi 12450 FOUND=1 12451 break 12452 fi 12453 done 12454 12455 12456 if test -z "$ac_cv_sizeof_long"; then 12457 echo "$as_me:$LINENO: checking for inline" >&5 12458 echo $ECHO_N "checking for inline... $ECHO_C" >&6 12459 if test "${ac_cv_c_inline+set}" = set; then 12460 echo $ECHO_N "(cached) $ECHO_C" >&6 12461 else 12462 ac_cv_c_inline=no 12463 for ac_kw in inline __inline__ __inline; do 12464 cat >conftest.$ac_ext <<_ACEOF 12465 /* confdefs.h. */ 12466 _ACEOF 12467 cat confdefs.h >>conftest.$ac_ext 12468 cat >>conftest.$ac_ext <<_ACEOF 12469 /* end confdefs.h. */ 12470 #ifndef __cplusplus 12471 typedef int foo_t; 12472 static $ac_kw foo_t static_foo () {return 0; } 12473 $ac_kw foo_t foo () {return 0; } 12474 #endif 12475 12476 _ACEOF 12477 rm -f conftest.$ac_objext 12478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12479 (eval $ac_compile) 2>conftest.er1 12480 ac_status=$? 12481 grep -v '^ *+' conftest.er1 >conftest.err 12482 rm -f conftest.er1 12483 cat conftest.err >&5 12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12485 (exit $ac_status); } && 12486 { ac_try='test -z "$ac_c_werror_flag" 12487 || test ! -s conftest.err' 12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12489 (eval $ac_try) 2>&5 12490 ac_status=$? 12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12492 (exit $ac_status); }; } && 12493 { ac_try='test -s conftest.$ac_objext' 12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12495 (eval $ac_try) 2>&5 12496 ac_status=$? 12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12498 (exit $ac_status); }; }; then 12499 ac_cv_c_inline=$ac_kw; break 12500 else 12501 echo "$as_me: failed program was:" >&5 12502 sed 's/^/| /' conftest.$ac_ext >&5 12503 12504 fi 12505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12506 done 12507 12508 fi 12509 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 12510 echo "${ECHO_T}$ac_cv_c_inline" >&6 12511 12512 12513 case $ac_cv_c_inline in 12514 inline | yes) ;; 12515 *) 12516 case $ac_cv_c_inline in 12517 no) ac_val=;; 12518 *) ac_val=$ac_cv_c_inline;; 12519 esac 12520 cat >>confdefs.h <<_ACEOF 12521 #ifndef __cplusplus 12522 #define inline $ac_val 12523 #endif 12524 _ACEOF 12525 ;; 12526 esac 12527 12528 echo "$as_me:$LINENO: checking for long long" >&5 12529 echo $ECHO_N "checking for long long... $ECHO_C" >&6 12530 if test "${ac_cv_type_long_long+set}" = set; then 12531 echo $ECHO_N "(cached) $ECHO_C" >&6 12532 else 12533 cat >conftest.$ac_ext <<_ACEOF 12534 /* confdefs.h. */ 12535 _ACEOF 12536 cat confdefs.h >>conftest.$ac_ext 12537 cat >>conftest.$ac_ext <<_ACEOF 12538 /* end confdefs.h. */ 12539 $ac_includes_default 12540 int 12541 main () 12542 { 12543 if ((long long *) 0) 12544 return 0; 12545 if (sizeof (long long)) 12546 return 0; 12547 ; 12548 return 0; 12549 } 12550 _ACEOF 12551 rm -f conftest.$ac_objext 12552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12553 (eval $ac_compile) 2>conftest.er1 12554 ac_status=$? 12555 grep -v '^ *+' conftest.er1 >conftest.err 12556 rm -f conftest.er1 12557 cat conftest.err >&5 12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12559 (exit $ac_status); } && 12560 { ac_try='test -z "$ac_c_werror_flag" 12561 || test ! -s conftest.err' 12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12563 (eval $ac_try) 2>&5 12564 ac_status=$? 12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12566 (exit $ac_status); }; } && 12567 { ac_try='test -s conftest.$ac_objext' 12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12569 (eval $ac_try) 2>&5 12570 ac_status=$? 12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12572 (exit $ac_status); }; }; then 12573 ac_cv_type_long_long=yes 12574 else 12575 echo "$as_me: failed program was:" >&5 12576 sed 's/^/| /' conftest.$ac_ext >&5 12577 12578 ac_cv_type_long_long=no 12579 fi 12580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12581 fi 12582 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 12583 echo "${ECHO_T}$ac_cv_type_long_long" >&6 12584 12585 echo "$as_me:$LINENO: checking size of long long" >&5 12586 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 12587 if test "${ac_cv_sizeof_long_long+set}" = set; then 12588 echo $ECHO_N "(cached) $ECHO_C" >&6 12589 else 12590 if test "$ac_cv_type_long_long" = yes; then 12591 # The cast to unsigned long works around a bug in the HP C Compiler 12592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12594 # This bug is HP SR number 8606223364. 12595 if test "$cross_compiling" = yes; then 12596 # Depending upon the size, compute the lo and hi bounds. 12597 cat >conftest.$ac_ext <<_ACEOF 12598 /* confdefs.h. */ 12599 _ACEOF 12600 cat confdefs.h >>conftest.$ac_ext 12601 cat >>conftest.$ac_ext <<_ACEOF 12602 /* end confdefs.h. */ 12603 $ac_includes_default 12604 int 12605 main () 12606 { 12607 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 12608 test_array [0] = 0 12609 12610 ; 12611 return 0; 12612 } 12613 _ACEOF 12614 rm -f conftest.$ac_objext 12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12616 (eval $ac_compile) 2>conftest.er1 12617 ac_status=$? 12618 grep -v '^ *+' conftest.er1 >conftest.err 12619 rm -f conftest.er1 12620 cat conftest.err >&5 12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12622 (exit $ac_status); } && 12623 { ac_try='test -z "$ac_c_werror_flag" 12624 || test ! -s conftest.err' 12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12626 (eval $ac_try) 2>&5 12627 ac_status=$? 12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12629 (exit $ac_status); }; } && 12630 { ac_try='test -s conftest.$ac_objext' 12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12632 (eval $ac_try) 2>&5 12633 ac_status=$? 12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12635 (exit $ac_status); }; }; then 12636 ac_lo=0 ac_mid=0 12637 while :; do 12638 cat >conftest.$ac_ext <<_ACEOF 12639 /* confdefs.h. */ 12640 _ACEOF 12641 cat confdefs.h >>conftest.$ac_ext 12642 cat >>conftest.$ac_ext <<_ACEOF 12643 /* end confdefs.h. */ 12644 $ac_includes_default 12645 int 12646 main () 12647 { 12648 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 12649 test_array [0] = 0 12650 12651 ; 12652 return 0; 12653 } 12654 _ACEOF 12655 rm -f conftest.$ac_objext 12656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12657 (eval $ac_compile) 2>conftest.er1 12658 ac_status=$? 12659 grep -v '^ *+' conftest.er1 >conftest.err 12660 rm -f conftest.er1 12661 cat conftest.err >&5 12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12663 (exit $ac_status); } && 12664 { ac_try='test -z "$ac_c_werror_flag" 12665 || test ! -s conftest.err' 12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12667 (eval $ac_try) 2>&5 12668 ac_status=$? 12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12670 (exit $ac_status); }; } && 12671 { ac_try='test -s conftest.$ac_objext' 12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12673 (eval $ac_try) 2>&5 12674 ac_status=$? 12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12676 (exit $ac_status); }; }; then 12677 ac_hi=$ac_mid; break 12678 else 12679 echo "$as_me: failed program was:" >&5 12680 sed 's/^/| /' conftest.$ac_ext >&5 12681 12682 ac_lo=`expr $ac_mid + 1` 12683 if test $ac_lo -le $ac_mid; then 12684 ac_lo= ac_hi= 12685 break 12686 fi 12687 ac_mid=`expr 2 '*' $ac_mid + 1` 12688 fi 12689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12690 done 12691 else 12692 echo "$as_me: failed program was:" >&5 12693 sed 's/^/| /' conftest.$ac_ext >&5 12694 12695 cat >conftest.$ac_ext <<_ACEOF 12696 /* confdefs.h. */ 12697 _ACEOF 12698 cat confdefs.h >>conftest.$ac_ext 12699 cat >>conftest.$ac_ext <<_ACEOF 12700 /* end confdefs.h. */ 12701 $ac_includes_default 12702 int 12703 main () 12704 { 12705 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 12706 test_array [0] = 0 12707 12708 ; 12709 return 0; 12710 } 12711 _ACEOF 12712 rm -f conftest.$ac_objext 12713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12714 (eval $ac_compile) 2>conftest.er1 12715 ac_status=$? 12716 grep -v '^ *+' conftest.er1 >conftest.err 12717 rm -f conftest.er1 12718 cat conftest.err >&5 12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12720 (exit $ac_status); } && 12721 { ac_try='test -z "$ac_c_werror_flag" 12722 || test ! -s conftest.err' 12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12724 (eval $ac_try) 2>&5 12725 ac_status=$? 12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12727 (exit $ac_status); }; } && 12728 { ac_try='test -s conftest.$ac_objext' 12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12730 (eval $ac_try) 2>&5 12731 ac_status=$? 12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12733 (exit $ac_status); }; }; then 12734 ac_hi=-1 ac_mid=-1 12735 while :; do 12736 cat >conftest.$ac_ext <<_ACEOF 12737 /* confdefs.h. */ 12738 _ACEOF 12739 cat confdefs.h >>conftest.$ac_ext 12740 cat >>conftest.$ac_ext <<_ACEOF 12741 /* end confdefs.h. */ 12742 $ac_includes_default 12743 int 12744 main () 12745 { 12746 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 12747 test_array [0] = 0 12748 12749 ; 12750 return 0; 12751 } 12752 _ACEOF 12753 rm -f conftest.$ac_objext 12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12755 (eval $ac_compile) 2>conftest.er1 12756 ac_status=$? 12757 grep -v '^ *+' conftest.er1 >conftest.err 12758 rm -f conftest.er1 12759 cat conftest.err >&5 12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12761 (exit $ac_status); } && 12762 { ac_try='test -z "$ac_c_werror_flag" 12763 || test ! -s conftest.err' 12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12765 (eval $ac_try) 2>&5 12766 ac_status=$? 12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12768 (exit $ac_status); }; } && 12769 { ac_try='test -s conftest.$ac_objext' 12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12771 (eval $ac_try) 2>&5 12772 ac_status=$? 12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12774 (exit $ac_status); }; }; then 12775 ac_lo=$ac_mid; break 12776 else 12777 echo "$as_me: failed program was:" >&5 12778 sed 's/^/| /' conftest.$ac_ext >&5 12779 12780 ac_hi=`expr '(' $ac_mid ')' - 1` 12781 if test $ac_mid -le $ac_hi; then 12782 ac_lo= ac_hi= 12783 break 12784 fi 12785 ac_mid=`expr 2 '*' $ac_mid` 12786 fi 12787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12788 done 12789 else 12790 echo "$as_me: failed program was:" >&5 12791 sed 's/^/| /' conftest.$ac_ext >&5 12792 12793 ac_lo= ac_hi= 12794 fi 12795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12796 fi 12797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12798 # Binary search between lo and hi bounds. 12799 while test "x$ac_lo" != "x$ac_hi"; do 12800 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12801 cat >conftest.$ac_ext <<_ACEOF 12802 /* confdefs.h. */ 12803 _ACEOF 12804 cat confdefs.h >>conftest.$ac_ext 12805 cat >>conftest.$ac_ext <<_ACEOF 12806 /* end confdefs.h. */ 12807 $ac_includes_default 12808 int 12809 main () 12810 { 12811 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 12812 test_array [0] = 0 12813 12814 ; 12815 return 0; 12816 } 12817 _ACEOF 12818 rm -f conftest.$ac_objext 12819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12820 (eval $ac_compile) 2>conftest.er1 12821 ac_status=$? 12822 grep -v '^ *+' conftest.er1 >conftest.err 12823 rm -f conftest.er1 12824 cat conftest.err >&5 12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12826 (exit $ac_status); } && 12827 { ac_try='test -z "$ac_c_werror_flag" 12828 || test ! -s conftest.err' 12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12830 (eval $ac_try) 2>&5 12831 ac_status=$? 12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12833 (exit $ac_status); }; } && 12834 { ac_try='test -s conftest.$ac_objext' 12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12836 (eval $ac_try) 2>&5 12837 ac_status=$? 12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12839 (exit $ac_status); }; }; then 12840 ac_hi=$ac_mid 12841 else 12842 echo "$as_me: failed program was:" >&5 12843 sed 's/^/| /' conftest.$ac_ext >&5 12844 12845 ac_lo=`expr '(' $ac_mid ')' + 1` 12846 fi 12847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12848 done 12849 case $ac_lo in 12850 ?*) ac_cv_sizeof_long_long=$ac_lo;; 12851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 12852 See \`config.log' for more details." >&5 12853 echo "$as_me: error: cannot compute sizeof (long long), 77 12854 See \`config.log' for more details." >&2;} 12855 { (exit 1); exit 1; }; } ;; 12856 esac 12857 else 12858 if test "$cross_compiling" = yes; then 12859 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12860 See \`config.log' for more details." >&5 12861 echo "$as_me: error: cannot run test program while cross compiling 12862 See \`config.log' for more details." >&2;} 12863 { (exit 1); exit 1; }; } 12864 else 12865 cat >conftest.$ac_ext <<_ACEOF 12866 /* confdefs.h. */ 12867 _ACEOF 12868 cat confdefs.h >>conftest.$ac_ext 12869 cat >>conftest.$ac_ext <<_ACEOF 12870 /* end confdefs.h. */ 12871 $ac_includes_default 12872 long longval () { return (long) (sizeof (long long)); } 12873 unsigned long ulongval () { return (long) (sizeof (long long)); } 12874 #include <stdio.h> 12875 #include <stdlib.h> 12876 int 12877 main () 12878 { 12879 12880 FILE *f = fopen ("conftest.val", "w"); 12881 if (! f) 12882 exit (1); 12883 if (((long) (sizeof (long long))) < 0) 12884 { 12885 long i = longval (); 12886 if (i != ((long) (sizeof (long long)))) 12887 exit (1); 12888 fprintf (f, "%ld\n", i); 12889 } 12890 else 12891 { 12892 unsigned long i = ulongval (); 12893 if (i != ((long) (sizeof (long long)))) 12894 exit (1); 12895 fprintf (f, "%lu\n", i); 12896 } 12897 exit (ferror (f) || fclose (f) != 0); 12898 12899 ; 12900 return 0; 12901 } 12902 _ACEOF 12903 rm -f conftest$ac_exeext 12904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12905 (eval $ac_link) 2>&5 12906 ac_status=$? 12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12910 (eval $ac_try) 2>&5 12911 ac_status=$? 12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12913 (exit $ac_status); }; }; then 12914 ac_cv_sizeof_long_long=`cat conftest.val` 12915 else 12916 echo "$as_me: program exited with status $ac_status" >&5 12917 echo "$as_me: failed program was:" >&5 12918 sed 's/^/| /' conftest.$ac_ext >&5 12919 12920 ( exit $ac_status ) 12921 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 12922 See \`config.log' for more details." >&5 12923 echo "$as_me: error: cannot compute sizeof (long long), 77 12924 See \`config.log' for more details." >&2;} 12925 { (exit 1); exit 1; }; } 12926 fi 12927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12928 fi 12929 fi 12930 rm -f conftest.val 12931 else 12932 ac_cv_sizeof_long_long=0 12933 fi 12934 fi 12935 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 12936 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 12937 cat >>confdefs.h <<_ACEOF 12938 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 12939 _ACEOF 12940 12941 12942 echo "$as_me:$LINENO: checking for long" >&5 12943 echo $ECHO_N "checking for long... $ECHO_C" >&6 12944 if test "${ac_cv_type_long+set}" = set; then 12945 echo $ECHO_N "(cached) $ECHO_C" >&6 12946 else 12947 cat >conftest.$ac_ext <<_ACEOF 12948 /* confdefs.h. */ 12949 _ACEOF 12950 cat confdefs.h >>conftest.$ac_ext 12951 cat >>conftest.$ac_ext <<_ACEOF 12952 /* end confdefs.h. */ 12953 $ac_includes_default 12954 int 12955 main () 12956 { 12957 if ((long *) 0) 12958 return 0; 12959 if (sizeof (long)) 12960 return 0; 12961 ; 12962 return 0; 12963 } 12964 _ACEOF 12965 rm -f conftest.$ac_objext 12966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12967 (eval $ac_compile) 2>conftest.er1 12968 ac_status=$? 12969 grep -v '^ *+' conftest.er1 >conftest.err 12970 rm -f conftest.er1 12971 cat conftest.err >&5 12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12973 (exit $ac_status); } && 12974 { ac_try='test -z "$ac_c_werror_flag" 12975 || test ! -s conftest.err' 12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12977 (eval $ac_try) 2>&5 12978 ac_status=$? 12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12980 (exit $ac_status); }; } && 12981 { ac_try='test -s conftest.$ac_objext' 12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12983 (eval $ac_try) 2>&5 12984 ac_status=$? 12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12986 (exit $ac_status); }; }; then 12987 ac_cv_type_long=yes 12988 else 12989 echo "$as_me: failed program was:" >&5 12990 sed 's/^/| /' conftest.$ac_ext >&5 12991 12992 ac_cv_type_long=no 12993 fi 12994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12995 fi 12996 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 12997 echo "${ECHO_T}$ac_cv_type_long" >&6 12998 12999 echo "$as_me:$LINENO: checking size of long" >&5 13000 echo $ECHO_N "checking size of long... $ECHO_C" >&6 13001 if test "${ac_cv_sizeof_long+set}" = set; then 13002 echo $ECHO_N "(cached) $ECHO_C" >&6 13003 else 13004 if test "$ac_cv_type_long" = yes; then 13005 # The cast to unsigned long works around a bug in the HP C Compiler 13006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13008 # This bug is HP SR number 8606223364. 13009 if test "$cross_compiling" = yes; then 13010 # Depending upon the size, compute the lo and hi bounds. 13011 cat >conftest.$ac_ext <<_ACEOF 13012 /* confdefs.h. */ 13013 _ACEOF 13014 cat confdefs.h >>conftest.$ac_ext 13015 cat >>conftest.$ac_ext <<_ACEOF 13016 /* end confdefs.h. */ 13017 $ac_includes_default 13018 int 13019 main () 13020 { 13021 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 13022 test_array [0] = 0 13023 13024 ; 13025 return 0; 13026 } 13027 _ACEOF 13028 rm -f conftest.$ac_objext 13029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13030 (eval $ac_compile) 2>conftest.er1 13031 ac_status=$? 13032 grep -v '^ *+' conftest.er1 >conftest.err 13033 rm -f conftest.er1 13034 cat conftest.err >&5 13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13036 (exit $ac_status); } && 13037 { ac_try='test -z "$ac_c_werror_flag" 13038 || test ! -s conftest.err' 13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13040 (eval $ac_try) 2>&5 13041 ac_status=$? 13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13043 (exit $ac_status); }; } && 13044 { ac_try='test -s conftest.$ac_objext' 13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13046 (eval $ac_try) 2>&5 13047 ac_status=$? 13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13049 (exit $ac_status); }; }; then 13050 ac_lo=0 ac_mid=0 13051 while :; do 13052 cat >conftest.$ac_ext <<_ACEOF 13053 /* confdefs.h. */ 13054 _ACEOF 13055 cat confdefs.h >>conftest.$ac_ext 13056 cat >>conftest.$ac_ext <<_ACEOF 13057 /* end confdefs.h. */ 13058 $ac_includes_default 13059 int 13060 main () 13061 { 13062 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 13063 test_array [0] = 0 13064 13065 ; 13066 return 0; 13067 } 13068 _ACEOF 13069 rm -f conftest.$ac_objext 13070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13071 (eval $ac_compile) 2>conftest.er1 13072 ac_status=$? 13073 grep -v '^ *+' conftest.er1 >conftest.err 13074 rm -f conftest.er1 13075 cat conftest.err >&5 13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13077 (exit $ac_status); } && 13078 { ac_try='test -z "$ac_c_werror_flag" 13079 || test ! -s conftest.err' 13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13081 (eval $ac_try) 2>&5 13082 ac_status=$? 13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13084 (exit $ac_status); }; } && 13085 { ac_try='test -s conftest.$ac_objext' 13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13087 (eval $ac_try) 2>&5 13088 ac_status=$? 13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13090 (exit $ac_status); }; }; then 13091 ac_hi=$ac_mid; break 13092 else 13093 echo "$as_me: failed program was:" >&5 13094 sed 's/^/| /' conftest.$ac_ext >&5 13095 13096 ac_lo=`expr $ac_mid + 1` 13097 if test $ac_lo -le $ac_mid; then 13098 ac_lo= ac_hi= 13099 break 13100 fi 13101 ac_mid=`expr 2 '*' $ac_mid + 1` 13102 fi 13103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13104 done 13105 else 13106 echo "$as_me: failed program was:" >&5 13107 sed 's/^/| /' conftest.$ac_ext >&5 13108 13109 cat >conftest.$ac_ext <<_ACEOF 13110 /* confdefs.h. */ 13111 _ACEOF 13112 cat confdefs.h >>conftest.$ac_ext 13113 cat >>conftest.$ac_ext <<_ACEOF 13114 /* end confdefs.h. */ 13115 $ac_includes_default 13116 int 13117 main () 13118 { 13119 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 13120 test_array [0] = 0 13121 13122 ; 13123 return 0; 13124 } 13125 _ACEOF 13126 rm -f conftest.$ac_objext 13127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13128 (eval $ac_compile) 2>conftest.er1 13129 ac_status=$? 13130 grep -v '^ *+' conftest.er1 >conftest.err 13131 rm -f conftest.er1 13132 cat conftest.err >&5 13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13134 (exit $ac_status); } && 13135 { ac_try='test -z "$ac_c_werror_flag" 13136 || test ! -s conftest.err' 13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13138 (eval $ac_try) 2>&5 13139 ac_status=$? 13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13141 (exit $ac_status); }; } && 13142 { ac_try='test -s conftest.$ac_objext' 13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13144 (eval $ac_try) 2>&5 13145 ac_status=$? 13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13147 (exit $ac_status); }; }; then 13148 ac_hi=-1 ac_mid=-1 13149 while :; do 13150 cat >conftest.$ac_ext <<_ACEOF 13151 /* confdefs.h. */ 13152 _ACEOF 13153 cat confdefs.h >>conftest.$ac_ext 13154 cat >>conftest.$ac_ext <<_ACEOF 13155 /* end confdefs.h. */ 13156 $ac_includes_default 13157 int 13158 main () 13159 { 13160 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 13161 test_array [0] = 0 13162 13163 ; 13164 return 0; 13165 } 13166 _ACEOF 13167 rm -f conftest.$ac_objext 13168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13169 (eval $ac_compile) 2>conftest.er1 13170 ac_status=$? 13171 grep -v '^ *+' conftest.er1 >conftest.err 13172 rm -f conftest.er1 13173 cat conftest.err >&5 13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13175 (exit $ac_status); } && 13176 { ac_try='test -z "$ac_c_werror_flag" 13177 || test ! -s conftest.err' 13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13179 (eval $ac_try) 2>&5 13180 ac_status=$? 13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13182 (exit $ac_status); }; } && 13183 { ac_try='test -s conftest.$ac_objext' 13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13185 (eval $ac_try) 2>&5 13186 ac_status=$? 13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13188 (exit $ac_status); }; }; then 13189 ac_lo=$ac_mid; break 13190 else 13191 echo "$as_me: failed program was:" >&5 13192 sed 's/^/| /' conftest.$ac_ext >&5 13193 13194 ac_hi=`expr '(' $ac_mid ')' - 1` 13195 if test $ac_mid -le $ac_hi; then 13196 ac_lo= ac_hi= 13197 break 13198 fi 13199 ac_mid=`expr 2 '*' $ac_mid` 13200 fi 13201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13202 done 13203 else 13204 echo "$as_me: failed program was:" >&5 13205 sed 's/^/| /' conftest.$ac_ext >&5 13206 13207 ac_lo= ac_hi= 13208 fi 13209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13210 fi 13211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13212 # Binary search between lo and hi bounds. 13213 while test "x$ac_lo" != "x$ac_hi"; do 13214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13215 cat >conftest.$ac_ext <<_ACEOF 13216 /* confdefs.h. */ 13217 _ACEOF 13218 cat confdefs.h >>conftest.$ac_ext 13219 cat >>conftest.$ac_ext <<_ACEOF 13220 /* end confdefs.h. */ 13221 $ac_includes_default 13222 int 13223 main () 13224 { 13225 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 13226 test_array [0] = 0 13227 13228 ; 13229 return 0; 13230 } 13231 _ACEOF 13232 rm -f conftest.$ac_objext 13233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13234 (eval $ac_compile) 2>conftest.er1 13235 ac_status=$? 13236 grep -v '^ *+' conftest.er1 >conftest.err 13237 rm -f conftest.er1 13238 cat conftest.err >&5 13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13240 (exit $ac_status); } && 13241 { ac_try='test -z "$ac_c_werror_flag" 13242 || test ! -s conftest.err' 13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13244 (eval $ac_try) 2>&5 13245 ac_status=$? 13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13247 (exit $ac_status); }; } && 13248 { ac_try='test -s conftest.$ac_objext' 13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13250 (eval $ac_try) 2>&5 13251 ac_status=$? 13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13253 (exit $ac_status); }; }; then 13254 ac_hi=$ac_mid 13255 else 13256 echo "$as_me: failed program was:" >&5 13257 sed 's/^/| /' conftest.$ac_ext >&5 13258 13259 ac_lo=`expr '(' $ac_mid ')' + 1` 13260 fi 13261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13262 done 13263 case $ac_lo in 13264 ?*) ac_cv_sizeof_long=$ac_lo;; 13265 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 13266 See \`config.log' for more details." >&5 13267 echo "$as_me: error: cannot compute sizeof (long), 77 13268 See \`config.log' for more details." >&2;} 13269 { (exit 1); exit 1; }; } ;; 13270 esac 13271 else 13272 if test "$cross_compiling" = yes; then 13273 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 13274 See \`config.log' for more details." >&5 13275 echo "$as_me: error: cannot run test program while cross compiling 13276 See \`config.log' for more details." >&2;} 13277 { (exit 1); exit 1; }; } 13278 else 13279 cat >conftest.$ac_ext <<_ACEOF 13280 /* confdefs.h. */ 13281 _ACEOF 13282 cat confdefs.h >>conftest.$ac_ext 13283 cat >>conftest.$ac_ext <<_ACEOF 13284 /* end confdefs.h. */ 13285 $ac_includes_default 13286 long longval () { return (long) (sizeof (long)); } 13287 unsigned long ulongval () { return (long) (sizeof (long)); } 13288 #include <stdio.h> 13289 #include <stdlib.h> 13290 int 13291 main () 13292 { 13293 13294 FILE *f = fopen ("conftest.val", "w"); 13295 if (! f) 13296 exit (1); 13297 if (((long) (sizeof (long))) < 0) 13298 { 13299 long i = longval (); 13300 if (i != ((long) (sizeof (long)))) 13301 exit (1); 13302 fprintf (f, "%ld\n", i); 13303 } 13304 else 13305 { 13306 unsigned long i = ulongval (); 13307 if (i != ((long) (sizeof (long)))) 13308 exit (1); 13309 fprintf (f, "%lu\n", i); 13310 } 13311 exit (ferror (f) || fclose (f) != 0); 13312 13313 ; 13314 return 0; 13315 } 13316 _ACEOF 13317 rm -f conftest$ac_exeext 13318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13319 (eval $ac_link) 2>&5 13320 ac_status=$? 13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13324 (eval $ac_try) 2>&5 13325 ac_status=$? 13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13327 (exit $ac_status); }; }; then 13328 ac_cv_sizeof_long=`cat conftest.val` 13329 else 13330 echo "$as_me: program exited with status $ac_status" >&5 13331 echo "$as_me: failed program was:" >&5 13332 sed 's/^/| /' conftest.$ac_ext >&5 13333 13334 ( exit $ac_status ) 13335 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 13336 See \`config.log' for more details." >&5 13337 echo "$as_me: error: cannot compute sizeof (long), 77 13338 See \`config.log' for more details." >&2;} 13339 { (exit 1); exit 1; }; } 13340 fi 13341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13342 fi 13343 fi 13344 rm -f conftest.val 13345 else 13346 ac_cv_sizeof_long=0 13347 fi 13348 fi 13349 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 13350 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 13351 cat >>confdefs.h <<_ACEOF 13352 #define SIZEOF_LONG $ac_cv_sizeof_long 13353 _ACEOF 13354 13355 13356 echo "$as_me:$LINENO: checking for int" >&5 13357 echo $ECHO_N "checking for int... $ECHO_C" >&6 13358 if test "${ac_cv_type_int+set}" = set; then 13359 echo $ECHO_N "(cached) $ECHO_C" >&6 13360 else 13361 cat >conftest.$ac_ext <<_ACEOF 13362 /* confdefs.h. */ 13363 _ACEOF 13364 cat confdefs.h >>conftest.$ac_ext 13365 cat >>conftest.$ac_ext <<_ACEOF 13366 /* end confdefs.h. */ 13367 $ac_includes_default 13368 int 13369 main () 13370 { 13371 if ((int *) 0) 13372 return 0; 13373 if (sizeof (int)) 13374 return 0; 13375 ; 13376 return 0; 13377 } 13378 _ACEOF 13379 rm -f conftest.$ac_objext 13380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13381 (eval $ac_compile) 2>conftest.er1 13382 ac_status=$? 13383 grep -v '^ *+' conftest.er1 >conftest.err 13384 rm -f conftest.er1 13385 cat conftest.err >&5 13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13387 (exit $ac_status); } && 13388 { ac_try='test -z "$ac_c_werror_flag" 13389 || test ! -s conftest.err' 13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13391 (eval $ac_try) 2>&5 13392 ac_status=$? 13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13394 (exit $ac_status); }; } && 13395 { ac_try='test -s conftest.$ac_objext' 13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13397 (eval $ac_try) 2>&5 13398 ac_status=$? 13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13400 (exit $ac_status); }; }; then 13401 ac_cv_type_int=yes 13402 else 13403 echo "$as_me: failed program was:" >&5 13404 sed 's/^/| /' conftest.$ac_ext >&5 13405 13406 ac_cv_type_int=no 13407 fi 13408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13409 fi 13410 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 13411 echo "${ECHO_T}$ac_cv_type_int" >&6 13412 13413 echo "$as_me:$LINENO: checking size of int" >&5 13414 echo $ECHO_N "checking size of int... $ECHO_C" >&6 13415 if test "${ac_cv_sizeof_int+set}" = set; then 13416 echo $ECHO_N "(cached) $ECHO_C" >&6 13417 else 13418 if test "$ac_cv_type_int" = yes; then 13419 # The cast to unsigned long works around a bug in the HP C Compiler 13420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13422 # This bug is HP SR number 8606223364. 13423 if test "$cross_compiling" = yes; then 13424 # Depending upon the size, compute the lo and hi bounds. 13425 cat >conftest.$ac_ext <<_ACEOF 13426 /* confdefs.h. */ 13427 _ACEOF 13428 cat confdefs.h >>conftest.$ac_ext 13429 cat >>conftest.$ac_ext <<_ACEOF 13430 /* end confdefs.h. */ 13431 $ac_includes_default 13432 int 13433 main () 13434 { 13435 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 13436 test_array [0] = 0 13437 13438 ; 13439 return 0; 13440 } 13441 _ACEOF 13442 rm -f conftest.$ac_objext 13443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13444 (eval $ac_compile) 2>conftest.er1 13445 ac_status=$? 13446 grep -v '^ *+' conftest.er1 >conftest.err 13447 rm -f conftest.er1 13448 cat conftest.err >&5 13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13450 (exit $ac_status); } && 13451 { ac_try='test -z "$ac_c_werror_flag" 13452 || test ! -s conftest.err' 13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13454 (eval $ac_try) 2>&5 13455 ac_status=$? 13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13457 (exit $ac_status); }; } && 13458 { ac_try='test -s conftest.$ac_objext' 13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13460 (eval $ac_try) 2>&5 13461 ac_status=$? 13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13463 (exit $ac_status); }; }; then 13464 ac_lo=0 ac_mid=0 13465 while :; do 13466 cat >conftest.$ac_ext <<_ACEOF 13467 /* confdefs.h. */ 13468 _ACEOF 13469 cat confdefs.h >>conftest.$ac_ext 13470 cat >>conftest.$ac_ext <<_ACEOF 13471 /* end confdefs.h. */ 13472 $ac_includes_default 13473 int 13474 main () 13475 { 13476 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 13477 test_array [0] = 0 13478 13479 ; 13480 return 0; 13481 } 13482 _ACEOF 13483 rm -f conftest.$ac_objext 13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13485 (eval $ac_compile) 2>conftest.er1 13486 ac_status=$? 13487 grep -v '^ *+' conftest.er1 >conftest.err 13488 rm -f conftest.er1 13489 cat conftest.err >&5 13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13491 (exit $ac_status); } && 13492 { ac_try='test -z "$ac_c_werror_flag" 13493 || test ! -s conftest.err' 13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13495 (eval $ac_try) 2>&5 13496 ac_status=$? 13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13498 (exit $ac_status); }; } && 13499 { ac_try='test -s conftest.$ac_objext' 13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13501 (eval $ac_try) 2>&5 13502 ac_status=$? 13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13504 (exit $ac_status); }; }; then 13505 ac_hi=$ac_mid; break 13506 else 13507 echo "$as_me: failed program was:" >&5 13508 sed 's/^/| /' conftest.$ac_ext >&5 13509 13510 ac_lo=`expr $ac_mid + 1` 13511 if test $ac_lo -le $ac_mid; then 13512 ac_lo= ac_hi= 13513 break 13514 fi 13515 ac_mid=`expr 2 '*' $ac_mid + 1` 13516 fi 13517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13518 done 13519 else 13520 echo "$as_me: failed program was:" >&5 13521 sed 's/^/| /' conftest.$ac_ext >&5 13522 13523 cat >conftest.$ac_ext <<_ACEOF 13524 /* confdefs.h. */ 13525 _ACEOF 13526 cat confdefs.h >>conftest.$ac_ext 13527 cat >>conftest.$ac_ext <<_ACEOF 13528 /* end confdefs.h. */ 13529 $ac_includes_default 13530 int 13531 main () 13532 { 13533 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 13534 test_array [0] = 0 13535 13536 ; 13537 return 0; 13538 } 13539 _ACEOF 13540 rm -f conftest.$ac_objext 13541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13542 (eval $ac_compile) 2>conftest.er1 13543 ac_status=$? 13544 grep -v '^ *+' conftest.er1 >conftest.err 13545 rm -f conftest.er1 13546 cat conftest.err >&5 13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13548 (exit $ac_status); } && 13549 { ac_try='test -z "$ac_c_werror_flag" 13550 || test ! -s conftest.err' 13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13552 (eval $ac_try) 2>&5 13553 ac_status=$? 13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13555 (exit $ac_status); }; } && 13556 { ac_try='test -s conftest.$ac_objext' 13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13558 (eval $ac_try) 2>&5 13559 ac_status=$? 13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13561 (exit $ac_status); }; }; then 13562 ac_hi=-1 ac_mid=-1 13563 while :; do 13564 cat >conftest.$ac_ext <<_ACEOF 13565 /* confdefs.h. */ 13566 _ACEOF 13567 cat confdefs.h >>conftest.$ac_ext 13568 cat >>conftest.$ac_ext <<_ACEOF 13569 /* end confdefs.h. */ 13570 $ac_includes_default 13571 int 13572 main () 13573 { 13574 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 13575 test_array [0] = 0 13576 13577 ; 13578 return 0; 13579 } 13580 _ACEOF 13581 rm -f conftest.$ac_objext 13582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13583 (eval $ac_compile) 2>conftest.er1 13584 ac_status=$? 13585 grep -v '^ *+' conftest.er1 >conftest.err 13586 rm -f conftest.er1 13587 cat conftest.err >&5 13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13589 (exit $ac_status); } && 13590 { ac_try='test -z "$ac_c_werror_flag" 13591 || test ! -s conftest.err' 13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13593 (eval $ac_try) 2>&5 13594 ac_status=$? 13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13596 (exit $ac_status); }; } && 13597 { ac_try='test -s conftest.$ac_objext' 13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13599 (eval $ac_try) 2>&5 13600 ac_status=$? 13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13602 (exit $ac_status); }; }; then 13603 ac_lo=$ac_mid; break 13604 else 13605 echo "$as_me: failed program was:" >&5 13606 sed 's/^/| /' conftest.$ac_ext >&5 13607 13608 ac_hi=`expr '(' $ac_mid ')' - 1` 13609 if test $ac_mid -le $ac_hi; then 13610 ac_lo= ac_hi= 13611 break 13612 fi 13613 ac_mid=`expr 2 '*' $ac_mid` 13614 fi 13615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13616 done 13617 else 13618 echo "$as_me: failed program was:" >&5 13619 sed 's/^/| /' conftest.$ac_ext >&5 13620 13621 ac_lo= ac_hi= 13622 fi 13623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13624 fi 13625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13626 # Binary search between lo and hi bounds. 13627 while test "x$ac_lo" != "x$ac_hi"; do 13628 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13629 cat >conftest.$ac_ext <<_ACEOF 13630 /* confdefs.h. */ 13631 _ACEOF 13632 cat confdefs.h >>conftest.$ac_ext 13633 cat >>conftest.$ac_ext <<_ACEOF 13634 /* end confdefs.h. */ 13635 $ac_includes_default 13636 int 13637 main () 13638 { 13639 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 13640 test_array [0] = 0 13641 13642 ; 13643 return 0; 13644 } 13645 _ACEOF 13646 rm -f conftest.$ac_objext 13647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13648 (eval $ac_compile) 2>conftest.er1 13649 ac_status=$? 13650 grep -v '^ *+' conftest.er1 >conftest.err 13651 rm -f conftest.er1 13652 cat conftest.err >&5 13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13654 (exit $ac_status); } && 13655 { ac_try='test -z "$ac_c_werror_flag" 13656 || test ! -s conftest.err' 13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13658 (eval $ac_try) 2>&5 13659 ac_status=$? 13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13661 (exit $ac_status); }; } && 13662 { ac_try='test -s conftest.$ac_objext' 13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13664 (eval $ac_try) 2>&5 13665 ac_status=$? 13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13667 (exit $ac_status); }; }; then 13668 ac_hi=$ac_mid 13669 else 13670 echo "$as_me: failed program was:" >&5 13671 sed 's/^/| /' conftest.$ac_ext >&5 13672 13673 ac_lo=`expr '(' $ac_mid ')' + 1` 13674 fi 13675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13676 done 13677 case $ac_lo in 13678 ?*) ac_cv_sizeof_int=$ac_lo;; 13679 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 13680 See \`config.log' for more details." >&5 13681 echo "$as_me: error: cannot compute sizeof (int), 77 13682 See \`config.log' for more details." >&2;} 13683 { (exit 1); exit 1; }; } ;; 13684 esac 13685 else 13686 if test "$cross_compiling" = yes; then 13687 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 13688 See \`config.log' for more details." >&5 13689 echo "$as_me: error: cannot run test program while cross compiling 13690 See \`config.log' for more details." >&2;} 13691 { (exit 1); exit 1; }; } 13692 else 13693 cat >conftest.$ac_ext <<_ACEOF 13694 /* confdefs.h. */ 13695 _ACEOF 13696 cat confdefs.h >>conftest.$ac_ext 13697 cat >>conftest.$ac_ext <<_ACEOF 13698 /* end confdefs.h. */ 13699 $ac_includes_default 13700 long longval () { return (long) (sizeof (int)); } 13701 unsigned long ulongval () { return (long) (sizeof (int)); } 13702 #include <stdio.h> 13703 #include <stdlib.h> 13704 int 13705 main () 13706 { 13707 13708 FILE *f = fopen ("conftest.val", "w"); 13709 if (! f) 13710 exit (1); 13711 if (((long) (sizeof (int))) < 0) 13712 { 13713 long i = longval (); 13714 if (i != ((long) (sizeof (int)))) 13715 exit (1); 13716 fprintf (f, "%ld\n", i); 13717 } 13718 else 13719 { 13720 unsigned long i = ulongval (); 13721 if (i != ((long) (sizeof (int)))) 13722 exit (1); 13723 fprintf (f, "%lu\n", i); 13724 } 13725 exit (ferror (f) || fclose (f) != 0); 13726 13727 ; 13728 return 0; 13729 } 13730 _ACEOF 13731 rm -f conftest$ac_exeext 13732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13733 (eval $ac_link) 2>&5 13734 ac_status=$? 13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13738 (eval $ac_try) 2>&5 13739 ac_status=$? 13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13741 (exit $ac_status); }; }; then 13742 ac_cv_sizeof_int=`cat conftest.val` 13743 else 13744 echo "$as_me: program exited with status $ac_status" >&5 13745 echo "$as_me: failed program was:" >&5 13746 sed 's/^/| /' conftest.$ac_ext >&5 13747 13748 ( exit $ac_status ) 13749 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 13750 See \`config.log' for more details." >&5 13751 echo "$as_me: error: cannot compute sizeof (int), 77 13752 See \`config.log' for more details." >&2;} 13753 { (exit 1); exit 1; }; } 13754 fi 13755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13756 fi 13757 fi 13758 rm -f conftest.val 13759 else 13760 ac_cv_sizeof_int=0 13761 fi 13762 fi 13763 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 13764 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 13765 cat >>confdefs.h <<_ACEOF 13766 #define SIZEOF_INT $ac_cv_sizeof_int 13767 _ACEOF 13768 13769 13770 echo "$as_me:$LINENO: checking for short" >&5 13771 echo $ECHO_N "checking for short... $ECHO_C" >&6 13772 if test "${ac_cv_type_short+set}" = set; then 13773 echo $ECHO_N "(cached) $ECHO_C" >&6 13774 else 13775 cat >conftest.$ac_ext <<_ACEOF 13776 /* confdefs.h. */ 13777 _ACEOF 13778 cat confdefs.h >>conftest.$ac_ext 13779 cat >>conftest.$ac_ext <<_ACEOF 13780 /* end confdefs.h. */ 13781 $ac_includes_default 13782 int 13783 main () 13784 { 13785 if ((short *) 0) 13786 return 0; 13787 if (sizeof (short)) 13788 return 0; 13789 ; 13790 return 0; 13791 } 13792 _ACEOF 13793 rm -f conftest.$ac_objext 13794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13795 (eval $ac_compile) 2>conftest.er1 13796 ac_status=$? 13797 grep -v '^ *+' conftest.er1 >conftest.err 13798 rm -f conftest.er1 13799 cat conftest.err >&5 13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13801 (exit $ac_status); } && 13802 { ac_try='test -z "$ac_c_werror_flag" 13803 || test ! -s conftest.err' 13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13805 (eval $ac_try) 2>&5 13806 ac_status=$? 13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13808 (exit $ac_status); }; } && 13809 { ac_try='test -s conftest.$ac_objext' 13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13811 (eval $ac_try) 2>&5 13812 ac_status=$? 13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13814 (exit $ac_status); }; }; then 13815 ac_cv_type_short=yes 13816 else 13817 echo "$as_me: failed program was:" >&5 13818 sed 's/^/| /' conftest.$ac_ext >&5 13819 13820 ac_cv_type_short=no 13821 fi 13822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13823 fi 13824 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 13825 echo "${ECHO_T}$ac_cv_type_short" >&6 13826 13827 echo "$as_me:$LINENO: checking size of short" >&5 13828 echo $ECHO_N "checking size of short... $ECHO_C" >&6 13829 if test "${ac_cv_sizeof_short+set}" = set; then 13830 echo $ECHO_N "(cached) $ECHO_C" >&6 13831 else 13832 if test "$ac_cv_type_short" = yes; then 13833 # The cast to unsigned long works around a bug in the HP C Compiler 13834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13836 # This bug is HP SR number 8606223364. 13837 if test "$cross_compiling" = yes; then 13838 # Depending upon the size, compute the lo and hi bounds. 13839 cat >conftest.$ac_ext <<_ACEOF 13840 /* confdefs.h. */ 13841 _ACEOF 13842 cat confdefs.h >>conftest.$ac_ext 13843 cat >>conftest.$ac_ext <<_ACEOF 13844 /* end confdefs.h. */ 13845 $ac_includes_default 13846 int 13847 main () 13848 { 13849 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 13850 test_array [0] = 0 13851 13852 ; 13853 return 0; 13854 } 13855 _ACEOF 13856 rm -f conftest.$ac_objext 13857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13858 (eval $ac_compile) 2>conftest.er1 13859 ac_status=$? 13860 grep -v '^ *+' conftest.er1 >conftest.err 13861 rm -f conftest.er1 13862 cat conftest.err >&5 13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13864 (exit $ac_status); } && 13865 { ac_try='test -z "$ac_c_werror_flag" 13866 || test ! -s conftest.err' 13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13868 (eval $ac_try) 2>&5 13869 ac_status=$? 13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13871 (exit $ac_status); }; } && 13872 { ac_try='test -s conftest.$ac_objext' 13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13874 (eval $ac_try) 2>&5 13875 ac_status=$? 13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13877 (exit $ac_status); }; }; then 13878 ac_lo=0 ac_mid=0 13879 while :; do 13880 cat >conftest.$ac_ext <<_ACEOF 13881 /* confdefs.h. */ 13882 _ACEOF 13883 cat confdefs.h >>conftest.$ac_ext 13884 cat >>conftest.$ac_ext <<_ACEOF 13885 /* end confdefs.h. */ 13886 $ac_includes_default 13887 int 13888 main () 13889 { 13890 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 13891 test_array [0] = 0 13892 13893 ; 13894 return 0; 13895 } 13896 _ACEOF 13897 rm -f conftest.$ac_objext 13898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13899 (eval $ac_compile) 2>conftest.er1 13900 ac_status=$? 13901 grep -v '^ *+' conftest.er1 >conftest.err 13902 rm -f conftest.er1 13903 cat conftest.err >&5 13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13905 (exit $ac_status); } && 13906 { ac_try='test -z "$ac_c_werror_flag" 13907 || test ! -s conftest.err' 13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13909 (eval $ac_try) 2>&5 13910 ac_status=$? 13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13912 (exit $ac_status); }; } && 13913 { ac_try='test -s conftest.$ac_objext' 13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13915 (eval $ac_try) 2>&5 13916 ac_status=$? 13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13918 (exit $ac_status); }; }; then 13919 ac_hi=$ac_mid; break 13920 else 13921 echo "$as_me: failed program was:" >&5 13922 sed 's/^/| /' conftest.$ac_ext >&5 13923 13924 ac_lo=`expr $ac_mid + 1` 13925 if test $ac_lo -le $ac_mid; then 13926 ac_lo= ac_hi= 13927 break 13928 fi 13929 ac_mid=`expr 2 '*' $ac_mid + 1` 13930 fi 13931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13932 done 13933 else 13934 echo "$as_me: failed program was:" >&5 13935 sed 's/^/| /' conftest.$ac_ext >&5 13936 13937 cat >conftest.$ac_ext <<_ACEOF 13938 /* confdefs.h. */ 13939 _ACEOF 13940 cat confdefs.h >>conftest.$ac_ext 13941 cat >>conftest.$ac_ext <<_ACEOF 13942 /* end confdefs.h. */ 13943 $ac_includes_default 13944 int 13945 main () 13946 { 13947 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 13948 test_array [0] = 0 13949 13950 ; 13951 return 0; 13952 } 13953 _ACEOF 13954 rm -f conftest.$ac_objext 13955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13956 (eval $ac_compile) 2>conftest.er1 13957 ac_status=$? 13958 grep -v '^ *+' conftest.er1 >conftest.err 13959 rm -f conftest.er1 13960 cat conftest.err >&5 13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13962 (exit $ac_status); } && 13963 { ac_try='test -z "$ac_c_werror_flag" 13964 || test ! -s conftest.err' 13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13966 (eval $ac_try) 2>&5 13967 ac_status=$? 13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13969 (exit $ac_status); }; } && 13970 { ac_try='test -s conftest.$ac_objext' 13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13972 (eval $ac_try) 2>&5 13973 ac_status=$? 13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13975 (exit $ac_status); }; }; then 13976 ac_hi=-1 ac_mid=-1 13977 while :; do 13978 cat >conftest.$ac_ext <<_ACEOF 13979 /* confdefs.h. */ 13980 _ACEOF 13981 cat confdefs.h >>conftest.$ac_ext 13982 cat >>conftest.$ac_ext <<_ACEOF 13983 /* end confdefs.h. */ 13984 $ac_includes_default 13985 int 13986 main () 13987 { 13988 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 13989 test_array [0] = 0 13990 13991 ; 13992 return 0; 13993 } 13994 _ACEOF 13995 rm -f conftest.$ac_objext 13996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13997 (eval $ac_compile) 2>conftest.er1 13998 ac_status=$? 13999 grep -v '^ *+' conftest.er1 >conftest.err 14000 rm -f conftest.er1 14001 cat conftest.err >&5 14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14003 (exit $ac_status); } && 14004 { ac_try='test -z "$ac_c_werror_flag" 14005 || test ! -s conftest.err' 14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14007 (eval $ac_try) 2>&5 14008 ac_status=$? 14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14010 (exit $ac_status); }; } && 14011 { ac_try='test -s conftest.$ac_objext' 14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14013 (eval $ac_try) 2>&5 14014 ac_status=$? 14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14016 (exit $ac_status); }; }; then 14017 ac_lo=$ac_mid; break 14018 else 14019 echo "$as_me: failed program was:" >&5 14020 sed 's/^/| /' conftest.$ac_ext >&5 14021 14022 ac_hi=`expr '(' $ac_mid ')' - 1` 14023 if test $ac_mid -le $ac_hi; then 14024 ac_lo= ac_hi= 14025 break 14026 fi 14027 ac_mid=`expr 2 '*' $ac_mid` 14028 fi 14029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14030 done 14031 else 14032 echo "$as_me: failed program was:" >&5 14033 sed 's/^/| /' conftest.$ac_ext >&5 14034 14035 ac_lo= ac_hi= 14036 fi 14037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14038 fi 14039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14040 # Binary search between lo and hi bounds. 14041 while test "x$ac_lo" != "x$ac_hi"; do 14042 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14043 cat >conftest.$ac_ext <<_ACEOF 14044 /* confdefs.h. */ 14045 _ACEOF 14046 cat confdefs.h >>conftest.$ac_ext 14047 cat >>conftest.$ac_ext <<_ACEOF 14048 /* end confdefs.h. */ 14049 $ac_includes_default 14050 int 14051 main () 14052 { 14053 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 14054 test_array [0] = 0 14055 14056 ; 14057 return 0; 14058 } 14059 _ACEOF 14060 rm -f conftest.$ac_objext 14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14062 (eval $ac_compile) 2>conftest.er1 14063 ac_status=$? 14064 grep -v '^ *+' conftest.er1 >conftest.err 14065 rm -f conftest.er1 14066 cat conftest.err >&5 14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14068 (exit $ac_status); } && 14069 { ac_try='test -z "$ac_c_werror_flag" 14070 || test ! -s conftest.err' 14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14072 (eval $ac_try) 2>&5 14073 ac_status=$? 14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14075 (exit $ac_status); }; } && 14076 { ac_try='test -s conftest.$ac_objext' 14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14078 (eval $ac_try) 2>&5 14079 ac_status=$? 14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14081 (exit $ac_status); }; }; then 14082 ac_hi=$ac_mid 14083 else 14084 echo "$as_me: failed program was:" >&5 14085 sed 's/^/| /' conftest.$ac_ext >&5 14086 14087 ac_lo=`expr '(' $ac_mid ')' + 1` 14088 fi 14089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14090 done 14091 case $ac_lo in 14092 ?*) ac_cv_sizeof_short=$ac_lo;; 14093 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 14094 See \`config.log' for more details." >&5 14095 echo "$as_me: error: cannot compute sizeof (short), 77 14096 See \`config.log' for more details." >&2;} 14097 { (exit 1); exit 1; }; } ;; 14098 esac 14099 else 14100 if test "$cross_compiling" = yes; then 14101 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14102 See \`config.log' for more details." >&5 14103 echo "$as_me: error: cannot run test program while cross compiling 14104 See \`config.log' for more details." >&2;} 14105 { (exit 1); exit 1; }; } 14106 else 14107 cat >conftest.$ac_ext <<_ACEOF 14108 /* confdefs.h. */ 14109 _ACEOF 14110 cat confdefs.h >>conftest.$ac_ext 14111 cat >>conftest.$ac_ext <<_ACEOF 14112 /* end confdefs.h. */ 14113 $ac_includes_default 14114 long longval () { return (long) (sizeof (short)); } 14115 unsigned long ulongval () { return (long) (sizeof (short)); } 14116 #include <stdio.h> 14117 #include <stdlib.h> 14118 int 14119 main () 14120 { 14121 14122 FILE *f = fopen ("conftest.val", "w"); 14123 if (! f) 14124 exit (1); 14125 if (((long) (sizeof (short))) < 0) 14126 { 14127 long i = longval (); 14128 if (i != ((long) (sizeof (short)))) 14129 exit (1); 14130 fprintf (f, "%ld\n", i); 14131 } 14132 else 14133 { 14134 unsigned long i = ulongval (); 14135 if (i != ((long) (sizeof (short)))) 14136 exit (1); 14137 fprintf (f, "%lu\n", i); 14138 } 14139 exit (ferror (f) || fclose (f) != 0); 14140 14141 ; 14142 return 0; 14143 } 14144 _ACEOF 14145 rm -f conftest$ac_exeext 14146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14147 (eval $ac_link) 2>&5 14148 ac_status=$? 14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14152 (eval $ac_try) 2>&5 14153 ac_status=$? 14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14155 (exit $ac_status); }; }; then 14156 ac_cv_sizeof_short=`cat conftest.val` 14157 else 14158 echo "$as_me: program exited with status $ac_status" >&5 14159 echo "$as_me: failed program was:" >&5 14160 sed 's/^/| /' conftest.$ac_ext >&5 14161 14162 ( exit $ac_status ) 14163 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 14164 See \`config.log' for more details." >&5 14165 echo "$as_me: error: cannot compute sizeof (short), 77 14166 See \`config.log' for more details." >&2;} 14167 { (exit 1); exit 1; }; } 14168 fi 14169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14170 fi 14171 fi 14172 rm -f conftest.val 14173 else 14174 ac_cv_sizeof_short=0 14175 fi 14176 fi 14177 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 14178 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 14179 cat >>confdefs.h <<_ACEOF 14180 #define SIZEOF_SHORT $ac_cv_sizeof_short 14181 _ACEOF 14182 14183 14184 fi 14185 FOUND=0 14186 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 14187 dc_cv_size=`eval echo $dc_cv_loop` 14188 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 14189 if test "$dc_cv_size" = "2"; then 14190 if test "$dc_cv_name" = "int"; then 14191 echo "$as_me:$LINENO: checking for uint16_t" >&5 14192 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 14193 if test "${ac_cv_type_uint16_t+set}" = set; then 14194 echo $ECHO_N "(cached) $ECHO_C" >&6 14195 else 14196 cat >conftest.$ac_ext <<_ACEOF 14197 /* confdefs.h. */ 14198 _ACEOF 14199 cat confdefs.h >>conftest.$ac_ext 14200 cat >>conftest.$ac_ext <<_ACEOF 14201 /* end confdefs.h. */ 14202 $ac_includes_default 14203 int 14204 main () 14205 { 14206 if ((uint16_t *) 0) 14207 return 0; 14208 if (sizeof (uint16_t)) 14209 return 0; 14210 ; 14211 return 0; 14212 } 14213 _ACEOF 14214 rm -f conftest.$ac_objext 14215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14216 (eval $ac_compile) 2>conftest.er1 14217 ac_status=$? 14218 grep -v '^ *+' conftest.er1 >conftest.err 14219 rm -f conftest.er1 14220 cat conftest.err >&5 14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14222 (exit $ac_status); } && 14223 { ac_try='test -z "$ac_c_werror_flag" 14224 || test ! -s conftest.err' 14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14226 (eval $ac_try) 2>&5 14227 ac_status=$? 14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14229 (exit $ac_status); }; } && 14230 { ac_try='test -s conftest.$ac_objext' 14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14232 (eval $ac_try) 2>&5 14233 ac_status=$? 14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14235 (exit $ac_status); }; }; then 14236 ac_cv_type_uint16_t=yes 14237 else 14238 echo "$as_me: failed program was:" >&5 14239 sed 's/^/| /' conftest.$ac_ext >&5 14240 14241 ac_cv_type_uint16_t=no 14242 fi 14243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14244 fi 14245 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 14246 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 14247 if test $ac_cv_type_uint16_t = yes; then 14248 : 14249 else 14250 14251 cat >>confdefs.h <<_ACEOF 14252 #define uint16_t unsigned int 14253 _ACEOF 14254 14255 fi 14256 14257 fi 14258 if test "$dc_cv_name" = "long"; then 14259 echo "$as_me:$LINENO: checking for uint16_t" >&5 14260 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 14261 if test "${ac_cv_type_uint16_t+set}" = set; then 14262 echo $ECHO_N "(cached) $ECHO_C" >&6 14263 else 14264 cat >conftest.$ac_ext <<_ACEOF 14265 /* confdefs.h. */ 14266 _ACEOF 14267 cat confdefs.h >>conftest.$ac_ext 14268 cat >>conftest.$ac_ext <<_ACEOF 14269 /* end confdefs.h. */ 14270 $ac_includes_default 14271 int 14272 main () 14273 { 14274 if ((uint16_t *) 0) 14275 return 0; 14276 if (sizeof (uint16_t)) 14277 return 0; 14278 ; 14279 return 0; 14280 } 14281 _ACEOF 14282 rm -f conftest.$ac_objext 14283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14284 (eval $ac_compile) 2>conftest.er1 14285 ac_status=$? 14286 grep -v '^ *+' conftest.er1 >conftest.err 14287 rm -f conftest.er1 14288 cat conftest.err >&5 14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14290 (exit $ac_status); } && 14291 { ac_try='test -z "$ac_c_werror_flag" 14292 || test ! -s conftest.err' 14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14294 (eval $ac_try) 2>&5 14295 ac_status=$? 14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14297 (exit $ac_status); }; } && 14298 { ac_try='test -s conftest.$ac_objext' 14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14300 (eval $ac_try) 2>&5 14301 ac_status=$? 14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14303 (exit $ac_status); }; }; then 14304 ac_cv_type_uint16_t=yes 14305 else 14306 echo "$as_me: failed program was:" >&5 14307 sed 's/^/| /' conftest.$ac_ext >&5 14308 14309 ac_cv_type_uint16_t=no 14310 fi 14311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14312 fi 14313 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 14314 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 14315 if test $ac_cv_type_uint16_t = yes; then 14316 : 14317 else 14318 14319 cat >>confdefs.h <<_ACEOF 14320 #define uint16_t unsigned long 14321 _ACEOF 14322 14323 fi 14324 14325 fi 14326 if test "$dc_cv_name" = "long_long"; then 14327 echo "$as_me:$LINENO: checking for uint16_t" >&5 14328 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 14329 if test "${ac_cv_type_uint16_t+set}" = set; then 14330 echo $ECHO_N "(cached) $ECHO_C" >&6 14331 else 14332 cat >conftest.$ac_ext <<_ACEOF 14333 /* confdefs.h. */ 14334 _ACEOF 14335 cat confdefs.h >>conftest.$ac_ext 14336 cat >>conftest.$ac_ext <<_ACEOF 14337 /* end confdefs.h. */ 14338 $ac_includes_default 14339 int 14340 main () 14341 { 14342 if ((uint16_t *) 0) 14343 return 0; 14344 if (sizeof (uint16_t)) 14345 return 0; 14346 ; 14347 return 0; 14348 } 14349 _ACEOF 14350 rm -f conftest.$ac_objext 14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14352 (eval $ac_compile) 2>conftest.er1 14353 ac_status=$? 14354 grep -v '^ *+' conftest.er1 >conftest.err 14355 rm -f conftest.er1 14356 cat conftest.err >&5 14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14358 (exit $ac_status); } && 14359 { ac_try='test -z "$ac_c_werror_flag" 14360 || test ! -s conftest.err' 14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14362 (eval $ac_try) 2>&5 14363 ac_status=$? 14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14365 (exit $ac_status); }; } && 14366 { ac_try='test -s conftest.$ac_objext' 14367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14368 (eval $ac_try) 2>&5 14369 ac_status=$? 14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14371 (exit $ac_status); }; }; then 14372 ac_cv_type_uint16_t=yes 14373 else 14374 echo "$as_me: failed program was:" >&5 14375 sed 's/^/| /' conftest.$ac_ext >&5 14376 14377 ac_cv_type_uint16_t=no 14378 fi 14379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14380 fi 14381 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 14382 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 14383 if test $ac_cv_type_uint16_t = yes; then 14384 : 14385 else 14386 14387 cat >>confdefs.h <<_ACEOF 14388 #define uint16_t unsigned long long 14389 _ACEOF 14390 14391 fi 14392 14393 fi 14394 if test "$dc_cv_name" = "short"; then 14395 echo "$as_me:$LINENO: checking for uint16_t" >&5 14396 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 14397 if test "${ac_cv_type_uint16_t+set}" = set; then 14398 echo $ECHO_N "(cached) $ECHO_C" >&6 14399 else 14400 cat >conftest.$ac_ext <<_ACEOF 14401 /* confdefs.h. */ 14402 _ACEOF 14403 cat confdefs.h >>conftest.$ac_ext 14404 cat >>conftest.$ac_ext <<_ACEOF 14405 /* end confdefs.h. */ 14406 $ac_includes_default 14407 int 14408 main () 14409 { 14410 if ((uint16_t *) 0) 14411 return 0; 14412 if (sizeof (uint16_t)) 14413 return 0; 14414 ; 14415 return 0; 14416 } 14417 _ACEOF 14418 rm -f conftest.$ac_objext 14419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14420 (eval $ac_compile) 2>conftest.er1 14421 ac_status=$? 14422 grep -v '^ *+' conftest.er1 >conftest.err 14423 rm -f conftest.er1 14424 cat conftest.err >&5 14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14426 (exit $ac_status); } && 14427 { ac_try='test -z "$ac_c_werror_flag" 14428 || test ! -s conftest.err' 14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14430 (eval $ac_try) 2>&5 14431 ac_status=$? 14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14433 (exit $ac_status); }; } && 14434 { ac_try='test -s conftest.$ac_objext' 14435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14436 (eval $ac_try) 2>&5 14437 ac_status=$? 14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14439 (exit $ac_status); }; }; then 14440 ac_cv_type_uint16_t=yes 14441 else 14442 echo "$as_me: failed program was:" >&5 14443 sed 's/^/| /' conftest.$ac_ext >&5 14444 14445 ac_cv_type_uint16_t=no 14446 fi 14447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14448 fi 14449 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 14450 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 14451 if test $ac_cv_type_uint16_t = yes; then 14452 : 14453 else 14454 14455 cat >>confdefs.h <<_ACEOF 14456 #define uint16_t unsigned short 14457 _ACEOF 14458 14459 fi 14460 14461 fi 14462 FOUND=1 14463 break 14464 fi 14465 done 14466 14467 14468 if test -z "$ac_cv_sizeof_long"; then 14469 echo "$as_me:$LINENO: checking for inline" >&5 14470 echo $ECHO_N "checking for inline... $ECHO_C" >&6 14471 if test "${ac_cv_c_inline+set}" = set; then 14472 echo $ECHO_N "(cached) $ECHO_C" >&6 14473 else 14474 ac_cv_c_inline=no 14475 for ac_kw in inline __inline__ __inline; do 14476 cat >conftest.$ac_ext <<_ACEOF 14477 /* confdefs.h. */ 14478 _ACEOF 14479 cat confdefs.h >>conftest.$ac_ext 14480 cat >>conftest.$ac_ext <<_ACEOF 14481 /* end confdefs.h. */ 14482 #ifndef __cplusplus 14483 typedef int foo_t; 14484 static $ac_kw foo_t static_foo () {return 0; } 14485 $ac_kw foo_t foo () {return 0; } 14486 #endif 14487 14488 _ACEOF 14489 rm -f conftest.$ac_objext 14490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14491 (eval $ac_compile) 2>conftest.er1 14492 ac_status=$? 14493 grep -v '^ *+' conftest.er1 >conftest.err 14494 rm -f conftest.er1 14495 cat conftest.err >&5 14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14497 (exit $ac_status); } && 14498 { ac_try='test -z "$ac_c_werror_flag" 14499 || test ! -s conftest.err' 14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14501 (eval $ac_try) 2>&5 14502 ac_status=$? 14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14504 (exit $ac_status); }; } && 14505 { ac_try='test -s conftest.$ac_objext' 14506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14507 (eval $ac_try) 2>&5 14508 ac_status=$? 14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14510 (exit $ac_status); }; }; then 14511 ac_cv_c_inline=$ac_kw; break 14512 else 14513 echo "$as_me: failed program was:" >&5 14514 sed 's/^/| /' conftest.$ac_ext >&5 14515 14516 fi 14517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14518 done 14519 14520 fi 14521 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 14522 echo "${ECHO_T}$ac_cv_c_inline" >&6 14523 14524 14525 case $ac_cv_c_inline in 14526 inline | yes) ;; 14527 *) 14528 case $ac_cv_c_inline in 14529 no) ac_val=;; 14530 *) ac_val=$ac_cv_c_inline;; 14531 esac 14532 cat >>confdefs.h <<_ACEOF 14533 #ifndef __cplusplus 14534 #define inline $ac_val 14535 #endif 14536 _ACEOF 14537 ;; 14538 esac 14539 14540 echo "$as_me:$LINENO: checking for long long" >&5 14541 echo $ECHO_N "checking for long long... $ECHO_C" >&6 14542 if test "${ac_cv_type_long_long+set}" = set; then 14543 echo $ECHO_N "(cached) $ECHO_C" >&6 14544 else 14545 cat >conftest.$ac_ext <<_ACEOF 14546 /* confdefs.h. */ 14547 _ACEOF 14548 cat confdefs.h >>conftest.$ac_ext 14549 cat >>conftest.$ac_ext <<_ACEOF 14550 /* end confdefs.h. */ 14551 $ac_includes_default 14552 int 14553 main () 14554 { 14555 if ((long long *) 0) 14556 return 0; 14557 if (sizeof (long long)) 14558 return 0; 14559 ; 14560 return 0; 14561 } 14562 _ACEOF 14563 rm -f conftest.$ac_objext 14564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14565 (eval $ac_compile) 2>conftest.er1 14566 ac_status=$? 14567 grep -v '^ *+' conftest.er1 >conftest.err 14568 rm -f conftest.er1 14569 cat conftest.err >&5 14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14571 (exit $ac_status); } && 14572 { ac_try='test -z "$ac_c_werror_flag" 14573 || test ! -s conftest.err' 14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14575 (eval $ac_try) 2>&5 14576 ac_status=$? 14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14578 (exit $ac_status); }; } && 14579 { ac_try='test -s conftest.$ac_objext' 14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14581 (eval $ac_try) 2>&5 14582 ac_status=$? 14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14584 (exit $ac_status); }; }; then 14585 ac_cv_type_long_long=yes 14586 else 14587 echo "$as_me: failed program was:" >&5 14588 sed 's/^/| /' conftest.$ac_ext >&5 14589 14590 ac_cv_type_long_long=no 14591 fi 14592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14593 fi 14594 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 14595 echo "${ECHO_T}$ac_cv_type_long_long" >&6 14596 14597 echo "$as_me:$LINENO: checking size of long long" >&5 14598 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 14599 if test "${ac_cv_sizeof_long_long+set}" = set; then 14600 echo $ECHO_N "(cached) $ECHO_C" >&6 14601 else 14602 if test "$ac_cv_type_long_long" = yes; then 14603 # The cast to unsigned long works around a bug in the HP C Compiler 14604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14606 # This bug is HP SR number 8606223364. 14607 if test "$cross_compiling" = yes; then 14608 # Depending upon the size, compute the lo and hi bounds. 14609 cat >conftest.$ac_ext <<_ACEOF 14610 /* confdefs.h. */ 14611 _ACEOF 14612 cat confdefs.h >>conftest.$ac_ext 14613 cat >>conftest.$ac_ext <<_ACEOF 14614 /* end confdefs.h. */ 14615 $ac_includes_default 14616 int 14617 main () 14618 { 14619 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 14620 test_array [0] = 0 14621 14622 ; 14623 return 0; 14624 } 14625 _ACEOF 14626 rm -f conftest.$ac_objext 14627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14628 (eval $ac_compile) 2>conftest.er1 14629 ac_status=$? 14630 grep -v '^ *+' conftest.er1 >conftest.err 14631 rm -f conftest.er1 14632 cat conftest.err >&5 14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14634 (exit $ac_status); } && 14635 { ac_try='test -z "$ac_c_werror_flag" 14636 || test ! -s conftest.err' 14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14638 (eval $ac_try) 2>&5 14639 ac_status=$? 14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14641 (exit $ac_status); }; } && 14642 { ac_try='test -s conftest.$ac_objext' 14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14644 (eval $ac_try) 2>&5 14645 ac_status=$? 14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14647 (exit $ac_status); }; }; then 14648 ac_lo=0 ac_mid=0 14649 while :; do 14650 cat >conftest.$ac_ext <<_ACEOF 14651 /* confdefs.h. */ 14652 _ACEOF 14653 cat confdefs.h >>conftest.$ac_ext 14654 cat >>conftest.$ac_ext <<_ACEOF 14655 /* end confdefs.h. */ 14656 $ac_includes_default 14657 int 14658 main () 14659 { 14660 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 14661 test_array [0] = 0 14662 14663 ; 14664 return 0; 14665 } 14666 _ACEOF 14667 rm -f conftest.$ac_objext 14668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14669 (eval $ac_compile) 2>conftest.er1 14670 ac_status=$? 14671 grep -v '^ *+' conftest.er1 >conftest.err 14672 rm -f conftest.er1 14673 cat conftest.err >&5 14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14675 (exit $ac_status); } && 14676 { ac_try='test -z "$ac_c_werror_flag" 14677 || test ! -s conftest.err' 14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14679 (eval $ac_try) 2>&5 14680 ac_status=$? 14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14682 (exit $ac_status); }; } && 14683 { ac_try='test -s conftest.$ac_objext' 14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14685 (eval $ac_try) 2>&5 14686 ac_status=$? 14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14688 (exit $ac_status); }; }; then 14689 ac_hi=$ac_mid; break 14690 else 14691 echo "$as_me: failed program was:" >&5 14692 sed 's/^/| /' conftest.$ac_ext >&5 14693 14694 ac_lo=`expr $ac_mid + 1` 14695 if test $ac_lo -le $ac_mid; then 14696 ac_lo= ac_hi= 14697 break 14698 fi 14699 ac_mid=`expr 2 '*' $ac_mid + 1` 14700 fi 14701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14702 done 14703 else 14704 echo "$as_me: failed program was:" >&5 14705 sed 's/^/| /' conftest.$ac_ext >&5 14706 14707 cat >conftest.$ac_ext <<_ACEOF 14708 /* confdefs.h. */ 14709 _ACEOF 14710 cat confdefs.h >>conftest.$ac_ext 14711 cat >>conftest.$ac_ext <<_ACEOF 14712 /* end confdefs.h. */ 14713 $ac_includes_default 14714 int 14715 main () 14716 { 14717 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 14718 test_array [0] = 0 14719 14720 ; 14721 return 0; 14722 } 14723 _ACEOF 14724 rm -f conftest.$ac_objext 14725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14726 (eval $ac_compile) 2>conftest.er1 14727 ac_status=$? 14728 grep -v '^ *+' conftest.er1 >conftest.err 14729 rm -f conftest.er1 14730 cat conftest.err >&5 14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14732 (exit $ac_status); } && 14733 { ac_try='test -z "$ac_c_werror_flag" 14734 || test ! -s conftest.err' 14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14736 (eval $ac_try) 2>&5 14737 ac_status=$? 14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14739 (exit $ac_status); }; } && 14740 { ac_try='test -s conftest.$ac_objext' 14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14742 (eval $ac_try) 2>&5 14743 ac_status=$? 14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14745 (exit $ac_status); }; }; then 14746 ac_hi=-1 ac_mid=-1 14747 while :; do 14748 cat >conftest.$ac_ext <<_ACEOF 14749 /* confdefs.h. */ 14750 _ACEOF 14751 cat confdefs.h >>conftest.$ac_ext 14752 cat >>conftest.$ac_ext <<_ACEOF 14753 /* end confdefs.h. */ 14754 $ac_includes_default 14755 int 14756 main () 14757 { 14758 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 14759 test_array [0] = 0 14760 14761 ; 14762 return 0; 14763 } 14764 _ACEOF 14765 rm -f conftest.$ac_objext 14766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14767 (eval $ac_compile) 2>conftest.er1 14768 ac_status=$? 14769 grep -v '^ *+' conftest.er1 >conftest.err 14770 rm -f conftest.er1 14771 cat conftest.err >&5 14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14773 (exit $ac_status); } && 14774 { ac_try='test -z "$ac_c_werror_flag" 14775 || test ! -s conftest.err' 14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14777 (eval $ac_try) 2>&5 14778 ac_status=$? 14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14780 (exit $ac_status); }; } && 14781 { ac_try='test -s conftest.$ac_objext' 14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14783 (eval $ac_try) 2>&5 14784 ac_status=$? 14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14786 (exit $ac_status); }; }; then 14787 ac_lo=$ac_mid; break 14788 else 14789 echo "$as_me: failed program was:" >&5 14790 sed 's/^/| /' conftest.$ac_ext >&5 14791 14792 ac_hi=`expr '(' $ac_mid ')' - 1` 14793 if test $ac_mid -le $ac_hi; then 14794 ac_lo= ac_hi= 14795 break 14796 fi 14797 ac_mid=`expr 2 '*' $ac_mid` 14798 fi 14799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14800 done 14801 else 14802 echo "$as_me: failed program was:" >&5 14803 sed 's/^/| /' conftest.$ac_ext >&5 14804 14805 ac_lo= ac_hi= 14806 fi 14807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14808 fi 14809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14810 # Binary search between lo and hi bounds. 14811 while test "x$ac_lo" != "x$ac_hi"; do 14812 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14813 cat >conftest.$ac_ext <<_ACEOF 14814 /* confdefs.h. */ 14815 _ACEOF 14816 cat confdefs.h >>conftest.$ac_ext 14817 cat >>conftest.$ac_ext <<_ACEOF 14818 /* end confdefs.h. */ 14819 $ac_includes_default 14820 int 14821 main () 14822 { 14823 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 14824 test_array [0] = 0 14825 14826 ; 14827 return 0; 14828 } 14829 _ACEOF 14830 rm -f conftest.$ac_objext 14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14832 (eval $ac_compile) 2>conftest.er1 14833 ac_status=$? 14834 grep -v '^ *+' conftest.er1 >conftest.err 14835 rm -f conftest.er1 14836 cat conftest.err >&5 14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14838 (exit $ac_status); } && 14839 { ac_try='test -z "$ac_c_werror_flag" 14840 || test ! -s conftest.err' 14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14842 (eval $ac_try) 2>&5 14843 ac_status=$? 14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14845 (exit $ac_status); }; } && 14846 { ac_try='test -s conftest.$ac_objext' 14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14848 (eval $ac_try) 2>&5 14849 ac_status=$? 14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14851 (exit $ac_status); }; }; then 14852 ac_hi=$ac_mid 14853 else 14854 echo "$as_me: failed program was:" >&5 14855 sed 's/^/| /' conftest.$ac_ext >&5 14856 14857 ac_lo=`expr '(' $ac_mid ')' + 1` 14858 fi 14859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14860 done 14861 case $ac_lo in 14862 ?*) ac_cv_sizeof_long_long=$ac_lo;; 14863 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 14864 See \`config.log' for more details." >&5 14865 echo "$as_me: error: cannot compute sizeof (long long), 77 14866 See \`config.log' for more details." >&2;} 14867 { (exit 1); exit 1; }; } ;; 14868 esac 14869 else 14870 if test "$cross_compiling" = yes; then 14871 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14872 See \`config.log' for more details." >&5 14873 echo "$as_me: error: cannot run test program while cross compiling 14874 See \`config.log' for more details." >&2;} 14875 { (exit 1); exit 1; }; } 14876 else 14877 cat >conftest.$ac_ext <<_ACEOF 14878 /* confdefs.h. */ 14879 _ACEOF 14880 cat confdefs.h >>conftest.$ac_ext 14881 cat >>conftest.$ac_ext <<_ACEOF 14882 /* end confdefs.h. */ 14883 $ac_includes_default 14884 long longval () { return (long) (sizeof (long long)); } 14885 unsigned long ulongval () { return (long) (sizeof (long long)); } 14886 #include <stdio.h> 14887 #include <stdlib.h> 14888 int 14889 main () 14890 { 14891 14892 FILE *f = fopen ("conftest.val", "w"); 14893 if (! f) 14894 exit (1); 14895 if (((long) (sizeof (long long))) < 0) 14896 { 14897 long i = longval (); 14898 if (i != ((long) (sizeof (long long)))) 14899 exit (1); 14900 fprintf (f, "%ld\n", i); 14901 } 14902 else 14903 { 14904 unsigned long i = ulongval (); 14905 if (i != ((long) (sizeof (long long)))) 14906 exit (1); 14907 fprintf (f, "%lu\n", i); 14908 } 14909 exit (ferror (f) || fclose (f) != 0); 14910 14911 ; 14912 return 0; 14913 } 14914 _ACEOF 14915 rm -f conftest$ac_exeext 14916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14917 (eval $ac_link) 2>&5 14918 ac_status=$? 14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14922 (eval $ac_try) 2>&5 14923 ac_status=$? 14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14925 (exit $ac_status); }; }; then 14926 ac_cv_sizeof_long_long=`cat conftest.val` 14927 else 14928 echo "$as_me: program exited with status $ac_status" >&5 14929 echo "$as_me: failed program was:" >&5 14930 sed 's/^/| /' conftest.$ac_ext >&5 14931 14932 ( exit $ac_status ) 14933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 14934 See \`config.log' for more details." >&5 14935 echo "$as_me: error: cannot compute sizeof (long long), 77 14936 See \`config.log' for more details." >&2;} 14937 { (exit 1); exit 1; }; } 14938 fi 14939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14940 fi 14941 fi 14942 rm -f conftest.val 14943 else 14944 ac_cv_sizeof_long_long=0 14945 fi 14946 fi 14947 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 14948 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 14949 cat >>confdefs.h <<_ACEOF 14950 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14951 _ACEOF 14952 14953 14954 echo "$as_me:$LINENO: checking for long" >&5 14955 echo $ECHO_N "checking for long... $ECHO_C" >&6 14956 if test "${ac_cv_type_long+set}" = set; then 14957 echo $ECHO_N "(cached) $ECHO_C" >&6 14958 else 14959 cat >conftest.$ac_ext <<_ACEOF 14960 /* confdefs.h. */ 14961 _ACEOF 14962 cat confdefs.h >>conftest.$ac_ext 14963 cat >>conftest.$ac_ext <<_ACEOF 14964 /* end confdefs.h. */ 14965 $ac_includes_default 14966 int 14967 main () 14968 { 14969 if ((long *) 0) 14970 return 0; 14971 if (sizeof (long)) 14972 return 0; 14973 ; 14974 return 0; 14975 } 14976 _ACEOF 14977 rm -f conftest.$ac_objext 14978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14979 (eval $ac_compile) 2>conftest.er1 14980 ac_status=$? 14981 grep -v '^ *+' conftest.er1 >conftest.err 14982 rm -f conftest.er1 14983 cat conftest.err >&5 14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14985 (exit $ac_status); } && 14986 { ac_try='test -z "$ac_c_werror_flag" 14987 || test ! -s conftest.err' 14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14989 (eval $ac_try) 2>&5 14990 ac_status=$? 14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14992 (exit $ac_status); }; } && 14993 { ac_try='test -s conftest.$ac_objext' 14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14995 (eval $ac_try) 2>&5 14996 ac_status=$? 14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14998 (exit $ac_status); }; }; then 14999 ac_cv_type_long=yes 15000 else 15001 echo "$as_me: failed program was:" >&5 15002 sed 's/^/| /' conftest.$ac_ext >&5 15003 15004 ac_cv_type_long=no 15005 fi 15006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15007 fi 15008 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 15009 echo "${ECHO_T}$ac_cv_type_long" >&6 15010 15011 echo "$as_me:$LINENO: checking size of long" >&5 15012 echo $ECHO_N "checking size of long... $ECHO_C" >&6 15013 if test "${ac_cv_sizeof_long+set}" = set; then 15014 echo $ECHO_N "(cached) $ECHO_C" >&6 15015 else 15016 if test "$ac_cv_type_long" = yes; then 15017 # The cast to unsigned long works around a bug in the HP C Compiler 15018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15020 # This bug is HP SR number 8606223364. 15021 if test "$cross_compiling" = yes; then 15022 # Depending upon the size, compute the lo and hi bounds. 15023 cat >conftest.$ac_ext <<_ACEOF 15024 /* confdefs.h. */ 15025 _ACEOF 15026 cat confdefs.h >>conftest.$ac_ext 15027 cat >>conftest.$ac_ext <<_ACEOF 15028 /* end confdefs.h. */ 15029 $ac_includes_default 15030 int 15031 main () 15032 { 15033 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 15034 test_array [0] = 0 15035 15036 ; 15037 return 0; 15038 } 15039 _ACEOF 15040 rm -f conftest.$ac_objext 15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15042 (eval $ac_compile) 2>conftest.er1 15043 ac_status=$? 15044 grep -v '^ *+' conftest.er1 >conftest.err 15045 rm -f conftest.er1 15046 cat conftest.err >&5 15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15048 (exit $ac_status); } && 15049 { ac_try='test -z "$ac_c_werror_flag" 15050 || test ! -s conftest.err' 15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15052 (eval $ac_try) 2>&5 15053 ac_status=$? 15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15055 (exit $ac_status); }; } && 15056 { ac_try='test -s conftest.$ac_objext' 15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15058 (eval $ac_try) 2>&5 15059 ac_status=$? 15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15061 (exit $ac_status); }; }; then 15062 ac_lo=0 ac_mid=0 15063 while :; do 15064 cat >conftest.$ac_ext <<_ACEOF 15065 /* confdefs.h. */ 15066 _ACEOF 15067 cat confdefs.h >>conftest.$ac_ext 15068 cat >>conftest.$ac_ext <<_ACEOF 15069 /* end confdefs.h. */ 15070 $ac_includes_default 15071 int 15072 main () 15073 { 15074 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 15075 test_array [0] = 0 15076 15077 ; 15078 return 0; 15079 } 15080 _ACEOF 15081 rm -f conftest.$ac_objext 15082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15083 (eval $ac_compile) 2>conftest.er1 15084 ac_status=$? 15085 grep -v '^ *+' conftest.er1 >conftest.err 15086 rm -f conftest.er1 15087 cat conftest.err >&5 15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15089 (exit $ac_status); } && 15090 { ac_try='test -z "$ac_c_werror_flag" 15091 || test ! -s conftest.err' 15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15093 (eval $ac_try) 2>&5 15094 ac_status=$? 15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15096 (exit $ac_status); }; } && 15097 { ac_try='test -s conftest.$ac_objext' 15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15099 (eval $ac_try) 2>&5 15100 ac_status=$? 15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15102 (exit $ac_status); }; }; then 15103 ac_hi=$ac_mid; break 15104 else 15105 echo "$as_me: failed program was:" >&5 15106 sed 's/^/| /' conftest.$ac_ext >&5 15107 15108 ac_lo=`expr $ac_mid + 1` 15109 if test $ac_lo -le $ac_mid; then 15110 ac_lo= ac_hi= 15111 break 15112 fi 15113 ac_mid=`expr 2 '*' $ac_mid + 1` 15114 fi 15115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15116 done 15117 else 15118 echo "$as_me: failed program was:" >&5 15119 sed 's/^/| /' conftest.$ac_ext >&5 15120 15121 cat >conftest.$ac_ext <<_ACEOF 15122 /* confdefs.h. */ 15123 _ACEOF 15124 cat confdefs.h >>conftest.$ac_ext 15125 cat >>conftest.$ac_ext <<_ACEOF 15126 /* end confdefs.h. */ 15127 $ac_includes_default 15128 int 15129 main () 15130 { 15131 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 15132 test_array [0] = 0 15133 15134 ; 15135 return 0; 15136 } 15137 _ACEOF 15138 rm -f conftest.$ac_objext 15139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15140 (eval $ac_compile) 2>conftest.er1 15141 ac_status=$? 15142 grep -v '^ *+' conftest.er1 >conftest.err 15143 rm -f conftest.er1 15144 cat conftest.err >&5 15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15146 (exit $ac_status); } && 15147 { ac_try='test -z "$ac_c_werror_flag" 15148 || test ! -s conftest.err' 15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15150 (eval $ac_try) 2>&5 15151 ac_status=$? 15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15153 (exit $ac_status); }; } && 15154 { ac_try='test -s conftest.$ac_objext' 15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15156 (eval $ac_try) 2>&5 15157 ac_status=$? 15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15159 (exit $ac_status); }; }; then 15160 ac_hi=-1 ac_mid=-1 15161 while :; do 15162 cat >conftest.$ac_ext <<_ACEOF 15163 /* confdefs.h. */ 15164 _ACEOF 15165 cat confdefs.h >>conftest.$ac_ext 15166 cat >>conftest.$ac_ext <<_ACEOF 15167 /* end confdefs.h. */ 15168 $ac_includes_default 15169 int 15170 main () 15171 { 15172 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 15173 test_array [0] = 0 15174 15175 ; 15176 return 0; 15177 } 15178 _ACEOF 15179 rm -f conftest.$ac_objext 15180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15181 (eval $ac_compile) 2>conftest.er1 15182 ac_status=$? 15183 grep -v '^ *+' conftest.er1 >conftest.err 15184 rm -f conftest.er1 15185 cat conftest.err >&5 15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15187 (exit $ac_status); } && 15188 { ac_try='test -z "$ac_c_werror_flag" 15189 || test ! -s conftest.err' 15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15191 (eval $ac_try) 2>&5 15192 ac_status=$? 15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15194 (exit $ac_status); }; } && 15195 { ac_try='test -s conftest.$ac_objext' 15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15197 (eval $ac_try) 2>&5 15198 ac_status=$? 15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15200 (exit $ac_status); }; }; then 15201 ac_lo=$ac_mid; break 15202 else 15203 echo "$as_me: failed program was:" >&5 15204 sed 's/^/| /' conftest.$ac_ext >&5 15205 15206 ac_hi=`expr '(' $ac_mid ')' - 1` 15207 if test $ac_mid -le $ac_hi; then 15208 ac_lo= ac_hi= 15209 break 15210 fi 15211 ac_mid=`expr 2 '*' $ac_mid` 15212 fi 15213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15214 done 15215 else 15216 echo "$as_me: failed program was:" >&5 15217 sed 's/^/| /' conftest.$ac_ext >&5 15218 15219 ac_lo= ac_hi= 15220 fi 15221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15222 fi 15223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15224 # Binary search between lo and hi bounds. 15225 while test "x$ac_lo" != "x$ac_hi"; do 15226 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 15227 cat >conftest.$ac_ext <<_ACEOF 15228 /* confdefs.h. */ 15229 _ACEOF 15230 cat confdefs.h >>conftest.$ac_ext 15231 cat >>conftest.$ac_ext <<_ACEOF 15232 /* end confdefs.h. */ 15233 $ac_includes_default 15234 int 15235 main () 15236 { 15237 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 15238 test_array [0] = 0 15239 15240 ; 15241 return 0; 15242 } 15243 _ACEOF 15244 rm -f conftest.$ac_objext 15245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15246 (eval $ac_compile) 2>conftest.er1 15247 ac_status=$? 15248 grep -v '^ *+' conftest.er1 >conftest.err 15249 rm -f conftest.er1 15250 cat conftest.err >&5 15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15252 (exit $ac_status); } && 15253 { ac_try='test -z "$ac_c_werror_flag" 15254 || test ! -s conftest.err' 15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15256 (eval $ac_try) 2>&5 15257 ac_status=$? 15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15259 (exit $ac_status); }; } && 15260 { ac_try='test -s conftest.$ac_objext' 15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15262 (eval $ac_try) 2>&5 15263 ac_status=$? 15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15265 (exit $ac_status); }; }; then 15266 ac_hi=$ac_mid 15267 else 15268 echo "$as_me: failed program was:" >&5 15269 sed 's/^/| /' conftest.$ac_ext >&5 15270 15271 ac_lo=`expr '(' $ac_mid ')' + 1` 15272 fi 15273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15274 done 15275 case $ac_lo in 15276 ?*) ac_cv_sizeof_long=$ac_lo;; 15277 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 15278 See \`config.log' for more details." >&5 15279 echo "$as_me: error: cannot compute sizeof (long), 77 15280 See \`config.log' for more details." >&2;} 15281 { (exit 1); exit 1; }; } ;; 15282 esac 15283 else 15284 if test "$cross_compiling" = yes; then 15285 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 15286 See \`config.log' for more details." >&5 15287 echo "$as_me: error: cannot run test program while cross compiling 15288 See \`config.log' for more details." >&2;} 15289 { (exit 1); exit 1; }; } 15290 else 15291 cat >conftest.$ac_ext <<_ACEOF 15292 /* confdefs.h. */ 15293 _ACEOF 15294 cat confdefs.h >>conftest.$ac_ext 15295 cat >>conftest.$ac_ext <<_ACEOF 15296 /* end confdefs.h. */ 15297 $ac_includes_default 15298 long longval () { return (long) (sizeof (long)); } 15299 unsigned long ulongval () { return (long) (sizeof (long)); } 15300 #include <stdio.h> 15301 #include <stdlib.h> 15302 int 15303 main () 15304 { 15305 15306 FILE *f = fopen ("conftest.val", "w"); 15307 if (! f) 15308 exit (1); 15309 if (((long) (sizeof (long))) < 0) 15310 { 15311 long i = longval (); 15312 if (i != ((long) (sizeof (long)))) 15313 exit (1); 15314 fprintf (f, "%ld\n", i); 15315 } 15316 else 15317 { 15318 unsigned long i = ulongval (); 15319 if (i != ((long) (sizeof (long)))) 15320 exit (1); 15321 fprintf (f, "%lu\n", i); 15322 } 15323 exit (ferror (f) || fclose (f) != 0); 15324 15325 ; 15326 return 0; 15327 } 15328 _ACEOF 15329 rm -f conftest$ac_exeext 15330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15331 (eval $ac_link) 2>&5 15332 ac_status=$? 15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15336 (eval $ac_try) 2>&5 15337 ac_status=$? 15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15339 (exit $ac_status); }; }; then 15340 ac_cv_sizeof_long=`cat conftest.val` 15341 else 15342 echo "$as_me: program exited with status $ac_status" >&5 15343 echo "$as_me: failed program was:" >&5 15344 sed 's/^/| /' conftest.$ac_ext >&5 15345 15346 ( exit $ac_status ) 15347 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 15348 See \`config.log' for more details." >&5 15349 echo "$as_me: error: cannot compute sizeof (long), 77 15350 See \`config.log' for more details." >&2;} 15351 { (exit 1); exit 1; }; } 15352 fi 15353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15354 fi 15355 fi 15356 rm -f conftest.val 15357 else 15358 ac_cv_sizeof_long=0 15359 fi 15360 fi 15361 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 15362 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 15363 cat >>confdefs.h <<_ACEOF 15364 #define SIZEOF_LONG $ac_cv_sizeof_long 15365 _ACEOF 15366 15367 15368 echo "$as_me:$LINENO: checking for int" >&5 15369 echo $ECHO_N "checking for int... $ECHO_C" >&6 15370 if test "${ac_cv_type_int+set}" = set; then 15371 echo $ECHO_N "(cached) $ECHO_C" >&6 15372 else 15373 cat >conftest.$ac_ext <<_ACEOF 15374 /* confdefs.h. */ 15375 _ACEOF 15376 cat confdefs.h >>conftest.$ac_ext 15377 cat >>conftest.$ac_ext <<_ACEOF 15378 /* end confdefs.h. */ 15379 $ac_includes_default 15380 int 15381 main () 15382 { 15383 if ((int *) 0) 15384 return 0; 15385 if (sizeof (int)) 15386 return 0; 15387 ; 15388 return 0; 15389 } 15390 _ACEOF 15391 rm -f conftest.$ac_objext 15392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15393 (eval $ac_compile) 2>conftest.er1 15394 ac_status=$? 15395 grep -v '^ *+' conftest.er1 >conftest.err 15396 rm -f conftest.er1 15397 cat conftest.err >&5 15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15399 (exit $ac_status); } && 15400 { ac_try='test -z "$ac_c_werror_flag" 15401 || test ! -s conftest.err' 15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15403 (eval $ac_try) 2>&5 15404 ac_status=$? 15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15406 (exit $ac_status); }; } && 15407 { ac_try='test -s conftest.$ac_objext' 15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15409 (eval $ac_try) 2>&5 15410 ac_status=$? 15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15412 (exit $ac_status); }; }; then 15413 ac_cv_type_int=yes 15414 else 15415 echo "$as_me: failed program was:" >&5 15416 sed 's/^/| /' conftest.$ac_ext >&5 15417 15418 ac_cv_type_int=no 15419 fi 15420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15421 fi 15422 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 15423 echo "${ECHO_T}$ac_cv_type_int" >&6 15424 15425 echo "$as_me:$LINENO: checking size of int" >&5 15426 echo $ECHO_N "checking size of int... $ECHO_C" >&6 15427 if test "${ac_cv_sizeof_int+set}" = set; then 15428 echo $ECHO_N "(cached) $ECHO_C" >&6 15429 else 15430 if test "$ac_cv_type_int" = yes; then 15431 # The cast to unsigned long works around a bug in the HP C Compiler 15432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15434 # This bug is HP SR number 8606223364. 15435 if test "$cross_compiling" = yes; then 15436 # Depending upon the size, compute the lo and hi bounds. 15437 cat >conftest.$ac_ext <<_ACEOF 15438 /* confdefs.h. */ 15439 _ACEOF 15440 cat confdefs.h >>conftest.$ac_ext 15441 cat >>conftest.$ac_ext <<_ACEOF 15442 /* end confdefs.h. */ 15443 $ac_includes_default 15444 int 15445 main () 15446 { 15447 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 15448 test_array [0] = 0 15449 15450 ; 15451 return 0; 15452 } 15453 _ACEOF 15454 rm -f conftest.$ac_objext 15455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15456 (eval $ac_compile) 2>conftest.er1 15457 ac_status=$? 15458 grep -v '^ *+' conftest.er1 >conftest.err 15459 rm -f conftest.er1 15460 cat conftest.err >&5 15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15462 (exit $ac_status); } && 15463 { ac_try='test -z "$ac_c_werror_flag" 15464 || test ! -s conftest.err' 15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15466 (eval $ac_try) 2>&5 15467 ac_status=$? 15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15469 (exit $ac_status); }; } && 15470 { ac_try='test -s conftest.$ac_objext' 15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15472 (eval $ac_try) 2>&5 15473 ac_status=$? 15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15475 (exit $ac_status); }; }; then 15476 ac_lo=0 ac_mid=0 15477 while :; do 15478 cat >conftest.$ac_ext <<_ACEOF 15479 /* confdefs.h. */ 15480 _ACEOF 15481 cat confdefs.h >>conftest.$ac_ext 15482 cat >>conftest.$ac_ext <<_ACEOF 15483 /* end confdefs.h. */ 15484 $ac_includes_default 15485 int 15486 main () 15487 { 15488 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 15489 test_array [0] = 0 15490 15491 ; 15492 return 0; 15493 } 15494 _ACEOF 15495 rm -f conftest.$ac_objext 15496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15497 (eval $ac_compile) 2>conftest.er1 15498 ac_status=$? 15499 grep -v '^ *+' conftest.er1 >conftest.err 15500 rm -f conftest.er1 15501 cat conftest.err >&5 15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15503 (exit $ac_status); } && 15504 { ac_try='test -z "$ac_c_werror_flag" 15505 || test ! -s conftest.err' 15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15507 (eval $ac_try) 2>&5 15508 ac_status=$? 15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15510 (exit $ac_status); }; } && 15511 { ac_try='test -s conftest.$ac_objext' 15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15513 (eval $ac_try) 2>&5 15514 ac_status=$? 15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15516 (exit $ac_status); }; }; then 15517 ac_hi=$ac_mid; break 15518 else 15519 echo "$as_me: failed program was:" >&5 15520 sed 's/^/| /' conftest.$ac_ext >&5 15521 15522 ac_lo=`expr $ac_mid + 1` 15523 if test $ac_lo -le $ac_mid; then 15524 ac_lo= ac_hi= 15525 break 15526 fi 15527 ac_mid=`expr 2 '*' $ac_mid + 1` 15528 fi 15529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15530 done 15531 else 15532 echo "$as_me: failed program was:" >&5 15533 sed 's/^/| /' conftest.$ac_ext >&5 15534 15535 cat >conftest.$ac_ext <<_ACEOF 15536 /* confdefs.h. */ 15537 _ACEOF 15538 cat confdefs.h >>conftest.$ac_ext 15539 cat >>conftest.$ac_ext <<_ACEOF 15540 /* end confdefs.h. */ 15541 $ac_includes_default 15542 int 15543 main () 15544 { 15545 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 15546 test_array [0] = 0 15547 15548 ; 15549 return 0; 15550 } 15551 _ACEOF 15552 rm -f conftest.$ac_objext 15553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15554 (eval $ac_compile) 2>conftest.er1 15555 ac_status=$? 15556 grep -v '^ *+' conftest.er1 >conftest.err 15557 rm -f conftest.er1 15558 cat conftest.err >&5 15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15560 (exit $ac_status); } && 15561 { ac_try='test -z "$ac_c_werror_flag" 15562 || test ! -s conftest.err' 15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15564 (eval $ac_try) 2>&5 15565 ac_status=$? 15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15567 (exit $ac_status); }; } && 15568 { ac_try='test -s conftest.$ac_objext' 15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15570 (eval $ac_try) 2>&5 15571 ac_status=$? 15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15573 (exit $ac_status); }; }; then 15574 ac_hi=-1 ac_mid=-1 15575 while :; do 15576 cat >conftest.$ac_ext <<_ACEOF 15577 /* confdefs.h. */ 15578 _ACEOF 15579 cat confdefs.h >>conftest.$ac_ext 15580 cat >>conftest.$ac_ext <<_ACEOF 15581 /* end confdefs.h. */ 15582 $ac_includes_default 15583 int 15584 main () 15585 { 15586 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 15587 test_array [0] = 0 15588 15589 ; 15590 return 0; 15591 } 15592 _ACEOF 15593 rm -f conftest.$ac_objext 15594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15595 (eval $ac_compile) 2>conftest.er1 15596 ac_status=$? 15597 grep -v '^ *+' conftest.er1 >conftest.err 15598 rm -f conftest.er1 15599 cat conftest.err >&5 15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15601 (exit $ac_status); } && 15602 { ac_try='test -z "$ac_c_werror_flag" 15603 || test ! -s conftest.err' 15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15605 (eval $ac_try) 2>&5 15606 ac_status=$? 15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15608 (exit $ac_status); }; } && 15609 { ac_try='test -s conftest.$ac_objext' 15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15611 (eval $ac_try) 2>&5 15612 ac_status=$? 15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15614 (exit $ac_status); }; }; then 15615 ac_lo=$ac_mid; break 15616 else 15617 echo "$as_me: failed program was:" >&5 15618 sed 's/^/| /' conftest.$ac_ext >&5 15619 15620 ac_hi=`expr '(' $ac_mid ')' - 1` 15621 if test $ac_mid -le $ac_hi; then 15622 ac_lo= ac_hi= 15623 break 15624 fi 15625 ac_mid=`expr 2 '*' $ac_mid` 15626 fi 15627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15628 done 15629 else 15630 echo "$as_me: failed program was:" >&5 15631 sed 's/^/| /' conftest.$ac_ext >&5 15632 15633 ac_lo= ac_hi= 15634 fi 15635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15636 fi 15637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15638 # Binary search between lo and hi bounds. 15639 while test "x$ac_lo" != "x$ac_hi"; do 15640 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 15641 cat >conftest.$ac_ext <<_ACEOF 15642 /* confdefs.h. */ 15643 _ACEOF 15644 cat confdefs.h >>conftest.$ac_ext 15645 cat >>conftest.$ac_ext <<_ACEOF 15646 /* end confdefs.h. */ 15647 $ac_includes_default 15648 int 15649 main () 15650 { 15651 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 15652 test_array [0] = 0 15653 15654 ; 15655 return 0; 15656 } 15657 _ACEOF 15658 rm -f conftest.$ac_objext 15659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15660 (eval $ac_compile) 2>conftest.er1 15661 ac_status=$? 15662 grep -v '^ *+' conftest.er1 >conftest.err 15663 rm -f conftest.er1 15664 cat conftest.err >&5 15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15666 (exit $ac_status); } && 15667 { ac_try='test -z "$ac_c_werror_flag" 15668 || test ! -s conftest.err' 15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15670 (eval $ac_try) 2>&5 15671 ac_status=$? 15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15673 (exit $ac_status); }; } && 15674 { ac_try='test -s conftest.$ac_objext' 15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15676 (eval $ac_try) 2>&5 15677 ac_status=$? 15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15679 (exit $ac_status); }; }; then 15680 ac_hi=$ac_mid 15681 else 15682 echo "$as_me: failed program was:" >&5 15683 sed 's/^/| /' conftest.$ac_ext >&5 15684 15685 ac_lo=`expr '(' $ac_mid ')' + 1` 15686 fi 15687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15688 done 15689 case $ac_lo in 15690 ?*) ac_cv_sizeof_int=$ac_lo;; 15691 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 15692 See \`config.log' for more details." >&5 15693 echo "$as_me: error: cannot compute sizeof (int), 77 15694 See \`config.log' for more details." >&2;} 15695 { (exit 1); exit 1; }; } ;; 15696 esac 15697 else 15698 if test "$cross_compiling" = yes; then 15699 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 15700 See \`config.log' for more details." >&5 15701 echo "$as_me: error: cannot run test program while cross compiling 15702 See \`config.log' for more details." >&2;} 15703 { (exit 1); exit 1; }; } 15704 else 15705 cat >conftest.$ac_ext <<_ACEOF 15706 /* confdefs.h. */ 15707 _ACEOF 15708 cat confdefs.h >>conftest.$ac_ext 15709 cat >>conftest.$ac_ext <<_ACEOF 15710 /* end confdefs.h. */ 15711 $ac_includes_default 15712 long longval () { return (long) (sizeof (int)); } 15713 unsigned long ulongval () { return (long) (sizeof (int)); } 15714 #include <stdio.h> 15715 #include <stdlib.h> 15716 int 15717 main () 15718 { 15719 15720 FILE *f = fopen ("conftest.val", "w"); 15721 if (! f) 15722 exit (1); 15723 if (((long) (sizeof (int))) < 0) 15724 { 15725 long i = longval (); 15726 if (i != ((long) (sizeof (int)))) 15727 exit (1); 15728 fprintf (f, "%ld\n", i); 15729 } 15730 else 15731 { 15732 unsigned long i = ulongval (); 15733 if (i != ((long) (sizeof (int)))) 15734 exit (1); 15735 fprintf (f, "%lu\n", i); 15736 } 15737 exit (ferror (f) || fclose (f) != 0); 15738 15739 ; 15740 return 0; 15741 } 15742 _ACEOF 15743 rm -f conftest$ac_exeext 15744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15745 (eval $ac_link) 2>&5 15746 ac_status=$? 15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15750 (eval $ac_try) 2>&5 15751 ac_status=$? 15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15753 (exit $ac_status); }; }; then 15754 ac_cv_sizeof_int=`cat conftest.val` 15755 else 15756 echo "$as_me: program exited with status $ac_status" >&5 15757 echo "$as_me: failed program was:" >&5 15758 sed 's/^/| /' conftest.$ac_ext >&5 15759 15760 ( exit $ac_status ) 15761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 15762 See \`config.log' for more details." >&5 15763 echo "$as_me: error: cannot compute sizeof (int), 77 15764 See \`config.log' for more details." >&2;} 15765 { (exit 1); exit 1; }; } 15766 fi 15767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15768 fi 15769 fi 15770 rm -f conftest.val 15771 else 15772 ac_cv_sizeof_int=0 15773 fi 15774 fi 15775 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 15776 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 15777 cat >>confdefs.h <<_ACEOF 15778 #define SIZEOF_INT $ac_cv_sizeof_int 15779 _ACEOF 15780 15781 15782 echo "$as_me:$LINENO: checking for short" >&5 15783 echo $ECHO_N "checking for short... $ECHO_C" >&6 15784 if test "${ac_cv_type_short+set}" = set; then 15785 echo $ECHO_N "(cached) $ECHO_C" >&6 15786 else 15787 cat >conftest.$ac_ext <<_ACEOF 15788 /* confdefs.h. */ 15789 _ACEOF 15790 cat confdefs.h >>conftest.$ac_ext 15791 cat >>conftest.$ac_ext <<_ACEOF 15792 /* end confdefs.h. */ 15793 $ac_includes_default 15794 int 15795 main () 15796 { 15797 if ((short *) 0) 15798 return 0; 15799 if (sizeof (short)) 15800 return 0; 15801 ; 15802 return 0; 15803 } 15804 _ACEOF 15805 rm -f conftest.$ac_objext 15806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15807 (eval $ac_compile) 2>conftest.er1 15808 ac_status=$? 15809 grep -v '^ *+' conftest.er1 >conftest.err 15810 rm -f conftest.er1 15811 cat conftest.err >&5 15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15813 (exit $ac_status); } && 15814 { ac_try='test -z "$ac_c_werror_flag" 15815 || test ! -s conftest.err' 15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15817 (eval $ac_try) 2>&5 15818 ac_status=$? 15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15820 (exit $ac_status); }; } && 15821 { ac_try='test -s conftest.$ac_objext' 15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15823 (eval $ac_try) 2>&5 15824 ac_status=$? 15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15826 (exit $ac_status); }; }; then 15827 ac_cv_type_short=yes 15828 else 15829 echo "$as_me: failed program was:" >&5 15830 sed 's/^/| /' conftest.$ac_ext >&5 15831 15832 ac_cv_type_short=no 15833 fi 15834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15835 fi 15836 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 15837 echo "${ECHO_T}$ac_cv_type_short" >&6 15838 15839 echo "$as_me:$LINENO: checking size of short" >&5 15840 echo $ECHO_N "checking size of short... $ECHO_C" >&6 15841 if test "${ac_cv_sizeof_short+set}" = set; then 15842 echo $ECHO_N "(cached) $ECHO_C" >&6 15843 else 15844 if test "$ac_cv_type_short" = yes; then 15845 # The cast to unsigned long works around a bug in the HP C Compiler 15846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15848 # This bug is HP SR number 8606223364. 15849 if test "$cross_compiling" = yes; then 15850 # Depending upon the size, compute the lo and hi bounds. 15851 cat >conftest.$ac_ext <<_ACEOF 15852 /* confdefs.h. */ 15853 _ACEOF 15854 cat confdefs.h >>conftest.$ac_ext 15855 cat >>conftest.$ac_ext <<_ACEOF 15856 /* end confdefs.h. */ 15857 $ac_includes_default 15858 int 15859 main () 15860 { 15861 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 15862 test_array [0] = 0 15863 15864 ; 15865 return 0; 15866 } 15867 _ACEOF 15868 rm -f conftest.$ac_objext 15869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15870 (eval $ac_compile) 2>conftest.er1 15871 ac_status=$? 15872 grep -v '^ *+' conftest.er1 >conftest.err 15873 rm -f conftest.er1 15874 cat conftest.err >&5 15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15876 (exit $ac_status); } && 15877 { ac_try='test -z "$ac_c_werror_flag" 15878 || test ! -s conftest.err' 15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15880 (eval $ac_try) 2>&5 15881 ac_status=$? 15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15883 (exit $ac_status); }; } && 15884 { ac_try='test -s conftest.$ac_objext' 15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15886 (eval $ac_try) 2>&5 15887 ac_status=$? 15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15889 (exit $ac_status); }; }; then 15890 ac_lo=0 ac_mid=0 15891 while :; do 15892 cat >conftest.$ac_ext <<_ACEOF 15893 /* confdefs.h. */ 15894 _ACEOF 15895 cat confdefs.h >>conftest.$ac_ext 15896 cat >>conftest.$ac_ext <<_ACEOF 15897 /* end confdefs.h. */ 15898 $ac_includes_default 15899 int 15900 main () 15901 { 15902 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 15903 test_array [0] = 0 15904 15905 ; 15906 return 0; 15907 } 15908 _ACEOF 15909 rm -f conftest.$ac_objext 15910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15911 (eval $ac_compile) 2>conftest.er1 15912 ac_status=$? 15913 grep -v '^ *+' conftest.er1 >conftest.err 15914 rm -f conftest.er1 15915 cat conftest.err >&5 15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15917 (exit $ac_status); } && 15918 { ac_try='test -z "$ac_c_werror_flag" 15919 || test ! -s conftest.err' 15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15921 (eval $ac_try) 2>&5 15922 ac_status=$? 15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15924 (exit $ac_status); }; } && 15925 { ac_try='test -s conftest.$ac_objext' 15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15927 (eval $ac_try) 2>&5 15928 ac_status=$? 15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15930 (exit $ac_status); }; }; then 15931 ac_hi=$ac_mid; break 15932 else 15933 echo "$as_me: failed program was:" >&5 15934 sed 's/^/| /' conftest.$ac_ext >&5 15935 15936 ac_lo=`expr $ac_mid + 1` 15937 if test $ac_lo -le $ac_mid; then 15938 ac_lo= ac_hi= 15939 break 15940 fi 15941 ac_mid=`expr 2 '*' $ac_mid + 1` 15942 fi 15943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15944 done 15945 else 15946 echo "$as_me: failed program was:" >&5 15947 sed 's/^/| /' conftest.$ac_ext >&5 15948 15949 cat >conftest.$ac_ext <<_ACEOF 15950 /* confdefs.h. */ 15951 _ACEOF 15952 cat confdefs.h >>conftest.$ac_ext 15953 cat >>conftest.$ac_ext <<_ACEOF 15954 /* end confdefs.h. */ 15955 $ac_includes_default 15956 int 15957 main () 15958 { 15959 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 15960 test_array [0] = 0 15961 15962 ; 15963 return 0; 15964 } 15965 _ACEOF 15966 rm -f conftest.$ac_objext 15967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15968 (eval $ac_compile) 2>conftest.er1 15969 ac_status=$? 15970 grep -v '^ *+' conftest.er1 >conftest.err 15971 rm -f conftest.er1 15972 cat conftest.err >&5 15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15974 (exit $ac_status); } && 15975 { ac_try='test -z "$ac_c_werror_flag" 15976 || test ! -s conftest.err' 15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15978 (eval $ac_try) 2>&5 15979 ac_status=$? 15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15981 (exit $ac_status); }; } && 15982 { ac_try='test -s conftest.$ac_objext' 15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15984 (eval $ac_try) 2>&5 15985 ac_status=$? 15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15987 (exit $ac_status); }; }; then 15988 ac_hi=-1 ac_mid=-1 15989 while :; do 15990 cat >conftest.$ac_ext <<_ACEOF 15991 /* confdefs.h. */ 15992 _ACEOF 15993 cat confdefs.h >>conftest.$ac_ext 15994 cat >>conftest.$ac_ext <<_ACEOF 15995 /* end confdefs.h. */ 15996 $ac_includes_default 15997 int 15998 main () 15999 { 16000 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 16001 test_array [0] = 0 16002 16003 ; 16004 return 0; 16005 } 16006 _ACEOF 16007 rm -f conftest.$ac_objext 16008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16009 (eval $ac_compile) 2>conftest.er1 16010 ac_status=$? 16011 grep -v '^ *+' conftest.er1 >conftest.err 16012 rm -f conftest.er1 16013 cat conftest.err >&5 16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16015 (exit $ac_status); } && 16016 { ac_try='test -z "$ac_c_werror_flag" 16017 || test ! -s conftest.err' 16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16019 (eval $ac_try) 2>&5 16020 ac_status=$? 16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16022 (exit $ac_status); }; } && 16023 { ac_try='test -s conftest.$ac_objext' 16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16025 (eval $ac_try) 2>&5 16026 ac_status=$? 16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16028 (exit $ac_status); }; }; then 16029 ac_lo=$ac_mid; break 16030 else 16031 echo "$as_me: failed program was:" >&5 16032 sed 's/^/| /' conftest.$ac_ext >&5 16033 16034 ac_hi=`expr '(' $ac_mid ')' - 1` 16035 if test $ac_mid -le $ac_hi; then 16036 ac_lo= ac_hi= 16037 break 16038 fi 16039 ac_mid=`expr 2 '*' $ac_mid` 16040 fi 16041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16042 done 16043 else 16044 echo "$as_me: failed program was:" >&5 16045 sed 's/^/| /' conftest.$ac_ext >&5 16046 16047 ac_lo= ac_hi= 16048 fi 16049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16050 fi 16051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16052 # Binary search between lo and hi bounds. 16053 while test "x$ac_lo" != "x$ac_hi"; do 16054 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 16055 cat >conftest.$ac_ext <<_ACEOF 16056 /* confdefs.h. */ 16057 _ACEOF 16058 cat confdefs.h >>conftest.$ac_ext 16059 cat >>conftest.$ac_ext <<_ACEOF 16060 /* end confdefs.h. */ 16061 $ac_includes_default 16062 int 16063 main () 16064 { 16065 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 16066 test_array [0] = 0 16067 16068 ; 16069 return 0; 16070 } 16071 _ACEOF 16072 rm -f conftest.$ac_objext 16073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16074 (eval $ac_compile) 2>conftest.er1 16075 ac_status=$? 16076 grep -v '^ *+' conftest.er1 >conftest.err 16077 rm -f conftest.er1 16078 cat conftest.err >&5 16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16080 (exit $ac_status); } && 16081 { ac_try='test -z "$ac_c_werror_flag" 16082 || test ! -s conftest.err' 16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16084 (eval $ac_try) 2>&5 16085 ac_status=$? 16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16087 (exit $ac_status); }; } && 16088 { ac_try='test -s conftest.$ac_objext' 16089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16090 (eval $ac_try) 2>&5 16091 ac_status=$? 16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16093 (exit $ac_status); }; }; then 16094 ac_hi=$ac_mid 16095 else 16096 echo "$as_me: failed program was:" >&5 16097 sed 's/^/| /' conftest.$ac_ext >&5 16098 16099 ac_lo=`expr '(' $ac_mid ')' + 1` 16100 fi 16101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16102 done 16103 case $ac_lo in 16104 ?*) ac_cv_sizeof_short=$ac_lo;; 16105 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 16106 See \`config.log' for more details." >&5 16107 echo "$as_me: error: cannot compute sizeof (short), 77 16108 See \`config.log' for more details." >&2;} 16109 { (exit 1); exit 1; }; } ;; 16110 esac 16111 else 16112 if test "$cross_compiling" = yes; then 16113 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 16114 See \`config.log' for more details." >&5 16115 echo "$as_me: error: cannot run test program while cross compiling 16116 See \`config.log' for more details." >&2;} 16117 { (exit 1); exit 1; }; } 16118 else 16119 cat >conftest.$ac_ext <<_ACEOF 16120 /* confdefs.h. */ 16121 _ACEOF 16122 cat confdefs.h >>conftest.$ac_ext 16123 cat >>conftest.$ac_ext <<_ACEOF 16124 /* end confdefs.h. */ 16125 $ac_includes_default 16126 long longval () { return (long) (sizeof (short)); } 16127 unsigned long ulongval () { return (long) (sizeof (short)); } 16128 #include <stdio.h> 16129 #include <stdlib.h> 16130 int 16131 main () 16132 { 16133 16134 FILE *f = fopen ("conftest.val", "w"); 16135 if (! f) 16136 exit (1); 16137 if (((long) (sizeof (short))) < 0) 16138 { 16139 long i = longval (); 16140 if (i != ((long) (sizeof (short)))) 16141 exit (1); 16142 fprintf (f, "%ld\n", i); 16143 } 16144 else 16145 { 16146 unsigned long i = ulongval (); 16147 if (i != ((long) (sizeof (short)))) 16148 exit (1); 16149 fprintf (f, "%lu\n", i); 16150 } 16151 exit (ferror (f) || fclose (f) != 0); 16152 16153 ; 16154 return 0; 16155 } 16156 _ACEOF 16157 rm -f conftest$ac_exeext 16158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16159 (eval $ac_link) 2>&5 16160 ac_status=$? 16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16164 (eval $ac_try) 2>&5 16165 ac_status=$? 16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16167 (exit $ac_status); }; }; then 16168 ac_cv_sizeof_short=`cat conftest.val` 16169 else 16170 echo "$as_me: program exited with status $ac_status" >&5 16171 echo "$as_me: failed program was:" >&5 16172 sed 's/^/| /' conftest.$ac_ext >&5 16173 16174 ( exit $ac_status ) 16175 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 16176 See \`config.log' for more details." >&5 16177 echo "$as_me: error: cannot compute sizeof (short), 77 16178 See \`config.log' for more details." >&2;} 16179 { (exit 1); exit 1; }; } 16180 fi 16181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16182 fi 16183 fi 16184 rm -f conftest.val 16185 else 16186 ac_cv_sizeof_short=0 16187 fi 16188 fi 16189 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 16190 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 16191 cat >>confdefs.h <<_ACEOF 16192 #define SIZEOF_SHORT $ac_cv_sizeof_short 16193 _ACEOF 16194 16195 16196 fi 16197 FOUND=0 16198 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 16199 dc_cv_size=`eval echo $dc_cv_loop` 16200 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 16201 if test "$dc_cv_size" = "2"; then 16202 if test "$dc_cv_name" = "int"; then 16203 echo "$as_me:$LINENO: checking for int16_t" >&5 16204 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 16205 if test "${ac_cv_type_int16_t+set}" = set; then 16206 echo $ECHO_N "(cached) $ECHO_C" >&6 16207 else 16208 cat >conftest.$ac_ext <<_ACEOF 16209 /* confdefs.h. */ 16210 _ACEOF 16211 cat confdefs.h >>conftest.$ac_ext 16212 cat >>conftest.$ac_ext <<_ACEOF 16213 /* end confdefs.h. */ 16214 $ac_includes_default 16215 int 16216 main () 16217 { 16218 if ((int16_t *) 0) 16219 return 0; 16220 if (sizeof (int16_t)) 16221 return 0; 16222 ; 16223 return 0; 16224 } 16225 _ACEOF 16226 rm -f conftest.$ac_objext 16227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16228 (eval $ac_compile) 2>conftest.er1 16229 ac_status=$? 16230 grep -v '^ *+' conftest.er1 >conftest.err 16231 rm -f conftest.er1 16232 cat conftest.err >&5 16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16234 (exit $ac_status); } && 16235 { ac_try='test -z "$ac_c_werror_flag" 16236 || test ! -s conftest.err' 16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16238 (eval $ac_try) 2>&5 16239 ac_status=$? 16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16241 (exit $ac_status); }; } && 16242 { ac_try='test -s conftest.$ac_objext' 16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16244 (eval $ac_try) 2>&5 16245 ac_status=$? 16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16247 (exit $ac_status); }; }; then 16248 ac_cv_type_int16_t=yes 16249 else 16250 echo "$as_me: failed program was:" >&5 16251 sed 's/^/| /' conftest.$ac_ext >&5 16252 16253 ac_cv_type_int16_t=no 16254 fi 16255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16256 fi 16257 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 16258 echo "${ECHO_T}$ac_cv_type_int16_t" >&6 16259 if test $ac_cv_type_int16_t = yes; then 16260 : 16261 else 16262 16263 cat >>confdefs.h <<_ACEOF 16264 #define int16_t signed int 16265 _ACEOF 16266 16267 fi 16268 16269 fi 16270 if test "$dc_cv_name" = "long"; then 16271 echo "$as_me:$LINENO: checking for int16_t" >&5 16272 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 16273 if test "${ac_cv_type_int16_t+set}" = set; then 16274 echo $ECHO_N "(cached) $ECHO_C" >&6 16275 else 16276 cat >conftest.$ac_ext <<_ACEOF 16277 /* confdefs.h. */ 16278 _ACEOF 16279 cat confdefs.h >>conftest.$ac_ext 16280 cat >>conftest.$ac_ext <<_ACEOF 16281 /* end confdefs.h. */ 16282 $ac_includes_default 16283 int 16284 main () 16285 { 16286 if ((int16_t *) 0) 16287 return 0; 16288 if (sizeof (int16_t)) 16289 return 0; 16290 ; 16291 return 0; 16292 } 16293 _ACEOF 16294 rm -f conftest.$ac_objext 16295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16296 (eval $ac_compile) 2>conftest.er1 16297 ac_status=$? 16298 grep -v '^ *+' conftest.er1 >conftest.err 16299 rm -f conftest.er1 16300 cat conftest.err >&5 16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16302 (exit $ac_status); } && 16303 { ac_try='test -z "$ac_c_werror_flag" 16304 || test ! -s conftest.err' 16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16306 (eval $ac_try) 2>&5 16307 ac_status=$? 16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16309 (exit $ac_status); }; } && 16310 { ac_try='test -s conftest.$ac_objext' 16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16312 (eval $ac_try) 2>&5 16313 ac_status=$? 16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16315 (exit $ac_status); }; }; then 16316 ac_cv_type_int16_t=yes 16317 else 16318 echo "$as_me: failed program was:" >&5 16319 sed 's/^/| /' conftest.$ac_ext >&5 16320 16321 ac_cv_type_int16_t=no 16322 fi 16323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16324 fi 16325 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 16326 echo "${ECHO_T}$ac_cv_type_int16_t" >&6 16327 if test $ac_cv_type_int16_t = yes; then 16328 : 16329 else 16330 16331 cat >>confdefs.h <<_ACEOF 16332 #define int16_t signed long 16333 _ACEOF 16334 16335 fi 16336 16337 fi 16338 if test "$dc_cv_name" = "long_long"; then 16339 echo "$as_me:$LINENO: checking for int16_t" >&5 16340 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 16341 if test "${ac_cv_type_int16_t+set}" = set; then 16342 echo $ECHO_N "(cached) $ECHO_C" >&6 16343 else 16344 cat >conftest.$ac_ext <<_ACEOF 16345 /* confdefs.h. */ 16346 _ACEOF 16347 cat confdefs.h >>conftest.$ac_ext 16348 cat >>conftest.$ac_ext <<_ACEOF 16349 /* end confdefs.h. */ 16350 $ac_includes_default 16351 int 16352 main () 16353 { 16354 if ((int16_t *) 0) 16355 return 0; 16356 if (sizeof (int16_t)) 16357 return 0; 16358 ; 16359 return 0; 16360 } 16361 _ACEOF 16362 rm -f conftest.$ac_objext 16363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16364 (eval $ac_compile) 2>conftest.er1 16365 ac_status=$? 16366 grep -v '^ *+' conftest.er1 >conftest.err 16367 rm -f conftest.er1 16368 cat conftest.err >&5 16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16370 (exit $ac_status); } && 16371 { ac_try='test -z "$ac_c_werror_flag" 16372 || test ! -s conftest.err' 16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16374 (eval $ac_try) 2>&5 16375 ac_status=$? 16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16377 (exit $ac_status); }; } && 16378 { ac_try='test -s conftest.$ac_objext' 16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16380 (eval $ac_try) 2>&5 16381 ac_status=$? 16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16383 (exit $ac_status); }; }; then 16384 ac_cv_type_int16_t=yes 16385 else 16386 echo "$as_me: failed program was:" >&5 16387 sed 's/^/| /' conftest.$ac_ext >&5 16388 16389 ac_cv_type_int16_t=no 16390 fi 16391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16392 fi 16393 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 16394 echo "${ECHO_T}$ac_cv_type_int16_t" >&6 16395 if test $ac_cv_type_int16_t = yes; then 16396 : 16397 else 16398 16399 cat >>confdefs.h <<_ACEOF 16400 #define int16_t signed long long 16401 _ACEOF 16402 16403 fi 16404 16405 fi 16406 if test "$dc_cv_name" = "short"; then 16407 echo "$as_me:$LINENO: checking for int16_t" >&5 16408 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 16409 if test "${ac_cv_type_int16_t+set}" = set; then 16410 echo $ECHO_N "(cached) $ECHO_C" >&6 16411 else 16412 cat >conftest.$ac_ext <<_ACEOF 16413 /* confdefs.h. */ 16414 _ACEOF 16415 cat confdefs.h >>conftest.$ac_ext 16416 cat >>conftest.$ac_ext <<_ACEOF 16417 /* end confdefs.h. */ 16418 $ac_includes_default 16419 int 16420 main () 16421 { 16422 if ((int16_t *) 0) 16423 return 0; 16424 if (sizeof (int16_t)) 16425 return 0; 16426 ; 16427 return 0; 16428 } 16429 _ACEOF 16430 rm -f conftest.$ac_objext 16431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16432 (eval $ac_compile) 2>conftest.er1 16433 ac_status=$? 16434 grep -v '^ *+' conftest.er1 >conftest.err 16435 rm -f conftest.er1 16436 cat conftest.err >&5 16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16438 (exit $ac_status); } && 16439 { ac_try='test -z "$ac_c_werror_flag" 16440 || test ! -s conftest.err' 16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16442 (eval $ac_try) 2>&5 16443 ac_status=$? 16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16445 (exit $ac_status); }; } && 16446 { ac_try='test -s conftest.$ac_objext' 16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16448 (eval $ac_try) 2>&5 16449 ac_status=$? 16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16451 (exit $ac_status); }; }; then 16452 ac_cv_type_int16_t=yes 16453 else 16454 echo "$as_me: failed program was:" >&5 16455 sed 's/^/| /' conftest.$ac_ext >&5 16456 16457 ac_cv_type_int16_t=no 16458 fi 16459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16460 fi 16461 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 16462 echo "${ECHO_T}$ac_cv_type_int16_t" >&6 16463 if test $ac_cv_type_int16_t = yes; then 16464 : 16465 else 16466 16467 cat >>confdefs.h <<_ACEOF 16468 #define int16_t signed short 16469 _ACEOF 16470 16471 fi 16472 16473 fi 16474 FOUND=1 16475 break 16476 fi 16477 done 16478 16479 16480 16481 16482 16483 16484 for ac_header in windows.h windowsx.h winsock2.h 16485 do 16486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16487 if eval "test \"\${$as_ac_Header+set}\" = set"; then 16488 echo "$as_me:$LINENO: checking for $ac_header" >&5 16489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16490 if eval "test \"\${$as_ac_Header+set}\" = set"; then 16491 echo $ECHO_N "(cached) $ECHO_C" >&6 16492 fi 16493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 16494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 16495 else 16496 # Is the header compilable? 16497 echo "$as_me:$LINENO: checking $ac_header usability" >&5 16498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 16499 cat >conftest.$ac_ext <<_ACEOF 16500 /* confdefs.h. */ 16501 _ACEOF 16502 cat confdefs.h >>conftest.$ac_ext 16503 cat >>conftest.$ac_ext <<_ACEOF 16504 /* end confdefs.h. */ 16505 $ac_includes_default 16506 #include <$ac_header> 16507 _ACEOF 16508 rm -f conftest.$ac_objext 16509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16510 (eval $ac_compile) 2>conftest.er1 16511 ac_status=$? 16512 grep -v '^ *+' conftest.er1 >conftest.err 16513 rm -f conftest.er1 16514 cat conftest.err >&5 16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16516 (exit $ac_status); } && 16517 { ac_try='test -z "$ac_c_werror_flag" 16518 || test ! -s conftest.err' 16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16520 (eval $ac_try) 2>&5 16521 ac_status=$? 16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16523 (exit $ac_status); }; } && 16524 { ac_try='test -s conftest.$ac_objext' 16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16526 (eval $ac_try) 2>&5 16527 ac_status=$? 16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16529 (exit $ac_status); }; }; then 16530 ac_header_compiler=yes 16531 else 16532 echo "$as_me: failed program was:" >&5 16533 sed 's/^/| /' conftest.$ac_ext >&5 16534 16535 ac_header_compiler=no 16536 fi 16537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16539 echo "${ECHO_T}$ac_header_compiler" >&6 16540 16541 # Is the header present? 16542 echo "$as_me:$LINENO: checking $ac_header presence" >&5 16543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 16544 cat >conftest.$ac_ext <<_ACEOF 16545 /* confdefs.h. */ 16546 _ACEOF 16547 cat confdefs.h >>conftest.$ac_ext 16548 cat >>conftest.$ac_ext <<_ACEOF 16549 /* end confdefs.h. */ 16550 #include <$ac_header> 16551 _ACEOF 16552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 16553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16554 ac_status=$? 16555 grep -v '^ *+' conftest.er1 >conftest.err 16556 rm -f conftest.er1 16557 cat conftest.err >&5 16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16559 (exit $ac_status); } >/dev/null; then 16560 if test -s conftest.err; then 16561 ac_cpp_err=$ac_c_preproc_warn_flag 16562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16563 else 16564 ac_cpp_err= 16565 fi 16566 else 16567 ac_cpp_err=yes 16568 fi 16569 if test -z "$ac_cpp_err"; then 16570 ac_header_preproc=yes 16571 else 16572 echo "$as_me: failed program was:" >&5 16573 sed 's/^/| /' conftest.$ac_ext >&5 16574 16575 ac_header_preproc=no 16576 fi 16577 rm -f conftest.err conftest.$ac_ext 16578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16579 echo "${ECHO_T}$ac_header_preproc" >&6 16580 16581 # So? What about this header? 16582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16583 yes:no: ) 16584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16588 ac_header_preproc=yes 16589 ;; 16590 no:yes:* ) 16591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16603 ( 16604 cat <<\_ASBOX 16605 ## ------------------------------------ ## 16606 ## Report this to the backuppcd lists. ## 16607 ## ------------------------------------ ## 16608 _ASBOX 16609 ) | 16610 sed "s/^/$as_me: WARNING: /" >&2 16611 ;; 16612 esac 16613 echo "$as_me:$LINENO: checking for $ac_header" >&5 16614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16615 if eval "test \"\${$as_ac_Header+set}\" = set"; then 16616 echo $ECHO_N "(cached) $ECHO_C" >&6 16617 else 16618 eval "$as_ac_Header=\$ac_header_preproc" 16619 fi 16620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 16621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 16622 16623 fi 16624 if test `eval echo '${'$as_ac_Header'}'` = yes; then 16625 cat >>confdefs.h <<_ACEOF 16626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16627 _ACEOF 16628 16629 fi 16630 16631 done 16632 16633 16634 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5 16635 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6 16636 if test "${ac_cv_lib_wsock32_main+set}" = set; then 16637 echo $ECHO_N "(cached) $ECHO_C" >&6 16638 else 16639 ac_check_lib_save_LIBS=$LIBS 16640 LIBS="-lwsock32 $LIBS" 16641 cat >conftest.$ac_ext <<_ACEOF 16642 /* confdefs.h. */ 16643 _ACEOF 16644 cat confdefs.h >>conftest.$ac_ext 16645 cat >>conftest.$ac_ext <<_ACEOF 16646 /* end confdefs.h. */ 16647 16648 16649 int 16650 main () 16651 { 16652 main (); 16653 ; 16654 return 0; 16655 } 16656 _ACEOF 16657 rm -f conftest.$ac_objext conftest$ac_exeext 16658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16659 (eval $ac_link) 2>conftest.er1 16660 ac_status=$? 16661 grep -v '^ *+' conftest.er1 >conftest.err 16662 rm -f conftest.er1 16663 cat conftest.err >&5 16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16665 (exit $ac_status); } && 16666 { ac_try='test -z "$ac_c_werror_flag" 16667 || test ! -s conftest.err' 16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16669 (eval $ac_try) 2>&5 16670 ac_status=$? 16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16672 (exit $ac_status); }; } && 16673 { ac_try='test -s conftest$ac_exeext' 16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16675 (eval $ac_try) 2>&5 16676 ac_status=$? 16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16678 (exit $ac_status); }; }; then 16679 ac_cv_lib_wsock32_main=yes 16680 else 16681 echo "$as_me: failed program was:" >&5 16682 sed 's/^/| /' conftest.$ac_ext >&5 16683 16684 ac_cv_lib_wsock32_main=no 16685 fi 16686 rm -f conftest.err conftest.$ac_objext \ 16687 conftest$ac_exeext conftest.$ac_ext 16688 LIBS=$ac_check_lib_save_LIBS 16689 fi 16690 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5 16691 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6 16692 if test $ac_cv_lib_wsock32_main = yes; then 16693 16694 16695 cat >>confdefs.h <<\_ACEOF 16696 #define HAVE_LIBWSOCK32 1 16697 _ACEOF 16698 16699 LIBS="${LIBS} -lwsock32" 16700 16701 fi 16702 16703 16704 16705 # Check whether --enable-largefile or --disable-largefile was given. 16706 if test "${enable_largefile+set}" = set; then 16707 enableval="$enable_largefile" 16708 16709 fi; 16710 if test "$enable_largefile" != no; then 16711 16712 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 16713 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 16714 if test "${ac_cv_sys_largefile_CC+set}" = set; then 16715 echo $ECHO_N "(cached) $ECHO_C" >&6 16716 else 16717 ac_cv_sys_largefile_CC=no 16718 if test "$GCC" != yes; then 16719 ac_save_CC=$CC 16720 while :; do 16721 # IRIX 6.2 and later do not support large files by default, 16722 # so use the C compiler's -n32 option if that helps. 16723 cat >conftest.$ac_ext <<_ACEOF 16724 /* confdefs.h. */ 16725 _ACEOF 16726 cat confdefs.h >>conftest.$ac_ext 16727 cat >>conftest.$ac_ext <<_ACEOF 16728 /* end confdefs.h. */ 16729 #include <sys/types.h> 16730 /* Check that off_t can represent 2**63 - 1 correctly. 16731 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16732 since some C++ compilers masquerading as C compilers 16733 incorrectly reject 9223372036854775807. */ 16734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16736 && LARGE_OFF_T % 2147483647 == 1) 16737 ? 1 : -1]; 16738 int 16739 main () 16740 { 16741 16742 ; 16743 return 0; 16744 } 16745 _ACEOF 16746 rm -f conftest.$ac_objext 16747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16748 (eval $ac_compile) 2>conftest.er1 16749 ac_status=$? 16750 grep -v '^ *+' conftest.er1 >conftest.err 16751 rm -f conftest.er1 16752 cat conftest.err >&5 16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16754 (exit $ac_status); } && 16755 { ac_try='test -z "$ac_c_werror_flag" 16756 || test ! -s conftest.err' 16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16758 (eval $ac_try) 2>&5 16759 ac_status=$? 16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16761 (exit $ac_status); }; } && 16762 { ac_try='test -s conftest.$ac_objext' 16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16764 (eval $ac_try) 2>&5 16765 ac_status=$? 16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16767 (exit $ac_status); }; }; then 16768 break 16769 else 16770 echo "$as_me: failed program was:" >&5 16771 sed 's/^/| /' conftest.$ac_ext >&5 16772 16773 fi 16774 rm -f conftest.err conftest.$ac_objext 16775 CC="$CC -n32" 16776 rm -f conftest.$ac_objext 16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16778 (eval $ac_compile) 2>conftest.er1 16779 ac_status=$? 16780 grep -v '^ *+' conftest.er1 >conftest.err 16781 rm -f conftest.er1 16782 cat conftest.err >&5 16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16784 (exit $ac_status); } && 16785 { ac_try='test -z "$ac_c_werror_flag" 16786 || test ! -s conftest.err' 16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16788 (eval $ac_try) 2>&5 16789 ac_status=$? 16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16791 (exit $ac_status); }; } && 16792 { ac_try='test -s conftest.$ac_objext' 16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16794 (eval $ac_try) 2>&5 16795 ac_status=$? 16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16797 (exit $ac_status); }; }; then 16798 ac_cv_sys_largefile_CC=' -n32'; break 16799 else 16800 echo "$as_me: failed program was:" >&5 16801 sed 's/^/| /' conftest.$ac_ext >&5 16802 16803 fi 16804 rm -f conftest.err conftest.$ac_objext 16805 break 16806 done 16807 CC=$ac_save_CC 16808 rm -f conftest.$ac_ext 16809 fi 16810 fi 16811 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 16812 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 16813 if test "$ac_cv_sys_largefile_CC" != no; then 16814 CC=$CC$ac_cv_sys_largefile_CC 16815 fi 16816 16817 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 16818 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 16819 if test "${ac_cv_sys_file_offset_bits+set}" = set; then 16820 echo $ECHO_N "(cached) $ECHO_C" >&6 16821 else 16822 while :; do 16823 ac_cv_sys_file_offset_bits=no 16824 cat >conftest.$ac_ext <<_ACEOF 16825 /* confdefs.h. */ 16826 _ACEOF 16827 cat confdefs.h >>conftest.$ac_ext 16828 cat >>conftest.$ac_ext <<_ACEOF 16829 /* end confdefs.h. */ 16830 #include <sys/types.h> 16831 /* Check that off_t can represent 2**63 - 1 correctly. 16832 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16833 since some C++ compilers masquerading as C compilers 16834 incorrectly reject 9223372036854775807. */ 16835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16837 && LARGE_OFF_T % 2147483647 == 1) 16838 ? 1 : -1]; 16839 int 16840 main () 16841 { 16842 16843 ; 16844 return 0; 16845 } 16846 _ACEOF 16847 rm -f conftest.$ac_objext 16848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16849 (eval $ac_compile) 2>conftest.er1 16850 ac_status=$? 16851 grep -v '^ *+' conftest.er1 >conftest.err 16852 rm -f conftest.er1 16853 cat conftest.err >&5 16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16855 (exit $ac_status); } && 16856 { ac_try='test -z "$ac_c_werror_flag" 16857 || test ! -s conftest.err' 16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16859 (eval $ac_try) 2>&5 16860 ac_status=$? 16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16862 (exit $ac_status); }; } && 16863 { ac_try='test -s conftest.$ac_objext' 16864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16865 (eval $ac_try) 2>&5 16866 ac_status=$? 16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16868 (exit $ac_status); }; }; then 16869 break 16870 else 16871 echo "$as_me: failed program was:" >&5 16872 sed 's/^/| /' conftest.$ac_ext >&5 16873 16874 fi 16875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16876 cat >conftest.$ac_ext <<_ACEOF 16877 /* confdefs.h. */ 16878 _ACEOF 16879 cat confdefs.h >>conftest.$ac_ext 16880 cat >>conftest.$ac_ext <<_ACEOF 16881 /* end confdefs.h. */ 16882 #define _FILE_OFFSET_BITS 64 16883 #include <sys/types.h> 16884 /* Check that off_t can represent 2**63 - 1 correctly. 16885 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16886 since some C++ compilers masquerading as C compilers 16887 incorrectly reject 9223372036854775807. */ 16888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16890 && LARGE_OFF_T % 2147483647 == 1) 16891 ? 1 : -1]; 16892 int 16893 main () 16894 { 16895 16896 ; 16897 return 0; 16898 } 16899 _ACEOF 16900 rm -f conftest.$ac_objext 16901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16902 (eval $ac_compile) 2>conftest.er1 16903 ac_status=$? 16904 grep -v '^ *+' conftest.er1 >conftest.err 16905 rm -f conftest.er1 16906 cat conftest.err >&5 16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16908 (exit $ac_status); } && 16909 { ac_try='test -z "$ac_c_werror_flag" 16910 || test ! -s conftest.err' 16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16912 (eval $ac_try) 2>&5 16913 ac_status=$? 16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16915 (exit $ac_status); }; } && 16916 { ac_try='test -s conftest.$ac_objext' 16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16918 (eval $ac_try) 2>&5 16919 ac_status=$? 16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16921 (exit $ac_status); }; }; then 16922 ac_cv_sys_file_offset_bits=64; break 16923 else 16924 echo "$as_me: failed program was:" >&5 16925 sed 's/^/| /' conftest.$ac_ext >&5 16926 16927 fi 16928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16929 break 16930 done 16931 fi 16932 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 16933 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 16934 if test "$ac_cv_sys_file_offset_bits" != no; then 16935 16936 cat >>confdefs.h <<_ACEOF 16937 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 16938 _ACEOF 16939 16940 fi 16941 rm -f conftest* 16942 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 16943 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 16944 if test "${ac_cv_sys_large_files+set}" = set; then 16945 echo $ECHO_N "(cached) $ECHO_C" >&6 16946 else 16947 while :; do 16948 ac_cv_sys_large_files=no 16949 cat >conftest.$ac_ext <<_ACEOF 16950 /* confdefs.h. */ 16951 _ACEOF 16952 cat confdefs.h >>conftest.$ac_ext 16953 cat >>conftest.$ac_ext <<_ACEOF 16954 /* end confdefs.h. */ 16955 #include <sys/types.h> 16956 /* Check that off_t can represent 2**63 - 1 correctly. 16957 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16958 since some C++ compilers masquerading as C compilers 16959 incorrectly reject 9223372036854775807. */ 16960 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16961 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16962 && LARGE_OFF_T % 2147483647 == 1) 16963 ? 1 : -1]; 16964 int 16965 main () 16966 { 16967 16968 ; 16969 return 0; 16970 } 16971 _ACEOF 16972 rm -f conftest.$ac_objext 16973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16974 (eval $ac_compile) 2>conftest.er1 16975 ac_status=$? 16976 grep -v '^ *+' conftest.er1 >conftest.err 16977 rm -f conftest.er1 16978 cat conftest.err >&5 16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16980 (exit $ac_status); } && 16981 { ac_try='test -z "$ac_c_werror_flag" 16982 || test ! -s conftest.err' 16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16984 (eval $ac_try) 2>&5 16985 ac_status=$? 16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16987 (exit $ac_status); }; } && 16988 { ac_try='test -s conftest.$ac_objext' 16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16990 (eval $ac_try) 2>&5 16991 ac_status=$? 16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16993 (exit $ac_status); }; }; then 16994 break 16995 else 16996 echo "$as_me: failed program was:" >&5 16997 sed 's/^/| /' conftest.$ac_ext >&5 16998 16999 fi 17000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17001 cat >conftest.$ac_ext <<_ACEOF 17002 /* confdefs.h. */ 17003 _ACEOF 17004 cat confdefs.h >>conftest.$ac_ext 17005 cat >>conftest.$ac_ext <<_ACEOF 17006 /* end confdefs.h. */ 17007 #define _LARGE_FILES 1 17008 #include <sys/types.h> 17009 /* Check that off_t can represent 2**63 - 1 correctly. 17010 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17011 since some C++ compilers masquerading as C compilers 17012 incorrectly reject 9223372036854775807. */ 17013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17015 && LARGE_OFF_T % 2147483647 == 1) 17016 ? 1 : -1]; 17017 int 17018 main () 17019 { 17020 17021 ; 17022 return 0; 17023 } 17024 _ACEOF 17025 rm -f conftest.$ac_objext 17026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17027 (eval $ac_compile) 2>conftest.er1 17028 ac_status=$? 17029 grep -v '^ *+' conftest.er1 >conftest.err 17030 rm -f conftest.er1 17031 cat conftest.err >&5 17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17033 (exit $ac_status); } && 17034 { ac_try='test -z "$ac_c_werror_flag" 17035 || test ! -s conftest.err' 17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17037 (eval $ac_try) 2>&5 17038 ac_status=$? 17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17040 (exit $ac_status); }; } && 17041 { ac_try='test -s conftest.$ac_objext' 17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17043 (eval $ac_try) 2>&5 17044 ac_status=$? 17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17046 (exit $ac_status); }; }; then 17047 ac_cv_sys_large_files=1; break 17048 else 17049 echo "$as_me: failed program was:" >&5 17050 sed 's/^/| /' conftest.$ac_ext >&5 17051 17052 fi 17053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17054 break 17055 done 17056 fi 17057 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 17058 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 17059 if test "$ac_cv_sys_large_files" != no; then 17060 17061 cat >>confdefs.h <<_ACEOF 17062 #define _LARGE_FILES $ac_cv_sys_large_files 17063 _ACEOF 17064 17065 fi 17066 rm -f conftest* 17067 fi 17068 17069 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 17070 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 17071 if test "${ac_cv_sys_largefile_source+set}" = set; then 17072 echo $ECHO_N "(cached) $ECHO_C" >&6 17073 else 17074 while :; do 17075 ac_cv_sys_largefile_source=no 17076 cat >conftest.$ac_ext <<_ACEOF 17077 /* confdefs.h. */ 17078 _ACEOF 17079 cat confdefs.h >>conftest.$ac_ext 17080 cat >>conftest.$ac_ext <<_ACEOF 17081 /* end confdefs.h. */ 17082 #include <stdio.h> 17083 int 17084 main () 17085 { 17086 return !fseeko; 17087 ; 17088 return 0; 17089 } 17090 _ACEOF 17091 rm -f conftest.$ac_objext 17092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17093 (eval $ac_compile) 2>conftest.er1 17094 ac_status=$? 17095 grep -v '^ *+' conftest.er1 >conftest.err 17096 rm -f conftest.er1 17097 cat conftest.err >&5 17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17099 (exit $ac_status); } && 17100 { ac_try='test -z "$ac_c_werror_flag" 17101 || test ! -s conftest.err' 17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17103 (eval $ac_try) 2>&5 17104 ac_status=$? 17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17106 (exit $ac_status); }; } && 17107 { ac_try='test -s conftest.$ac_objext' 17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17109 (eval $ac_try) 2>&5 17110 ac_status=$? 17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17112 (exit $ac_status); }; }; then 17113 break 17114 else 17115 echo "$as_me: failed program was:" >&5 17116 sed 's/^/| /' conftest.$ac_ext >&5 17117 17118 fi 17119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17120 cat >conftest.$ac_ext <<_ACEOF 17121 /* confdefs.h. */ 17122 _ACEOF 17123 cat confdefs.h >>conftest.$ac_ext 17124 cat >>conftest.$ac_ext <<_ACEOF 17125 /* end confdefs.h. */ 17126 #define _LARGEFILE_SOURCE 1 17127 #include <stdio.h> 17128 int 17129 main () 17130 { 17131 return !fseeko; 17132 ; 17133 return 0; 17134 } 17135 _ACEOF 17136 rm -f conftest.$ac_objext 17137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17138 (eval $ac_compile) 2>conftest.er1 17139 ac_status=$? 17140 grep -v '^ *+' conftest.er1 >conftest.err 17141 rm -f conftest.er1 17142 cat conftest.err >&5 17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17144 (exit $ac_status); } && 17145 { ac_try='test -z "$ac_c_werror_flag" 17146 || test ! -s conftest.err' 17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17148 (eval $ac_try) 2>&5 17149 ac_status=$? 17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17151 (exit $ac_status); }; } && 17152 { ac_try='test -s conftest.$ac_objext' 17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17154 (eval $ac_try) 2>&5 17155 ac_status=$? 17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17157 (exit $ac_status); }; }; then 17158 ac_cv_sys_largefile_source=1; break 17159 else 17160 echo "$as_me: failed program was:" >&5 17161 sed 's/^/| /' conftest.$ac_ext >&5 17162 17163 fi 17164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17165 break 17166 done 17167 fi 17168 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 17169 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 17170 if test "$ac_cv_sys_largefile_source" != no; then 17171 17172 cat >>confdefs.h <<_ACEOF 17173 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 17174 _ACEOF 17175 17176 fi 17177 rm -f conftest* 17178 17179 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 17180 # in glibc 2.1.3, but that breaks too many other things. 17181 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 17182 echo "$as_me:$LINENO: checking for fseeko" >&5 17183 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 17184 if test "${ac_cv_func_fseeko+set}" = set; then 17185 echo $ECHO_N "(cached) $ECHO_C" >&6 17186 else 17187 cat >conftest.$ac_ext <<_ACEOF 17188 /* confdefs.h. */ 17189 _ACEOF 17190 cat confdefs.h >>conftest.$ac_ext 17191 cat >>conftest.$ac_ext <<_ACEOF 17192 /* end confdefs.h. */ 17193 #include <stdio.h> 17194 int 17195 main () 17196 { 17197 return fseeko && fseeko (stdin, 0, 0); 17198 ; 17199 return 0; 17200 } 17201 _ACEOF 17202 rm -f conftest.$ac_objext conftest$ac_exeext 17203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17204 (eval $ac_link) 2>conftest.er1 17205 ac_status=$? 17206 grep -v '^ *+' conftest.er1 >conftest.err 17207 rm -f conftest.er1 17208 cat conftest.err >&5 17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17210 (exit $ac_status); } && 17211 { ac_try='test -z "$ac_c_werror_flag" 17212 || test ! -s conftest.err' 17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17214 (eval $ac_try) 2>&5 17215 ac_status=$? 17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17217 (exit $ac_status); }; } && 17218 { ac_try='test -s conftest$ac_exeext' 17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17220 (eval $ac_try) 2>&5 17221 ac_status=$? 17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17223 (exit $ac_status); }; }; then 17224 ac_cv_func_fseeko=yes 17225 else 17226 echo "$as_me: failed program was:" >&5 17227 sed 's/^/| /' conftest.$ac_ext >&5 17228 17229 ac_cv_func_fseeko=no 17230 fi 17231 rm -f conftest.err conftest.$ac_objext \ 17232 conftest$ac_exeext conftest.$ac_ext 17233 fi 17234 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 17235 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 17236 if test $ac_cv_func_fseeko = yes; then 17237 17238 cat >>confdefs.h <<\_ACEOF 17239 #define HAVE_FSEEKO 1 17240 _ACEOF 17241 17242 fi 17243 17244 echo "$as_me:$LINENO: checking for off_t" >&5 17245 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 17246 if test "${ac_cv_type_off_t+set}" = set; then 17247 echo $ECHO_N "(cached) $ECHO_C" >&6 17248 else 17249 cat >conftest.$ac_ext <<_ACEOF 17250 /* confdefs.h. */ 17251 _ACEOF 17252 cat confdefs.h >>conftest.$ac_ext 17253 cat >>conftest.$ac_ext <<_ACEOF 17254 /* end confdefs.h. */ 17255 $ac_includes_default 17256 int 17257 main () 17258 { 17259 if ((off_t *) 0) 17260 return 0; 17261 if (sizeof (off_t)) 17262 return 0; 17263 ; 17264 return 0; 17265 } 17266 _ACEOF 17267 rm -f conftest.$ac_objext 17268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17269 (eval $ac_compile) 2>conftest.er1 17270 ac_status=$? 17271 grep -v '^ *+' conftest.er1 >conftest.err 17272 rm -f conftest.er1 17273 cat conftest.err >&5 17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17275 (exit $ac_status); } && 17276 { ac_try='test -z "$ac_c_werror_flag" 17277 || test ! -s conftest.err' 17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17279 (eval $ac_try) 2>&5 17280 ac_status=$? 17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17282 (exit $ac_status); }; } && 17283 { ac_try='test -s conftest.$ac_objext' 17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17285 (eval $ac_try) 2>&5 17286 ac_status=$? 17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17288 (exit $ac_status); }; }; then 17289 ac_cv_type_off_t=yes 17290 else 17291 echo "$as_me: failed program was:" >&5 17292 sed 's/^/| /' conftest.$ac_ext >&5 17293 17294 ac_cv_type_off_t=no 17295 fi 17296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17297 fi 17298 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 17299 echo "${ECHO_T}$ac_cv_type_off_t" >&6 17300 if test $ac_cv_type_off_t = yes; then 17301 : 17302 else 17303 17304 cat >>confdefs.h <<_ACEOF 17305 #define off_t long 17306 _ACEOF 17307 17308 fi 17309 17310 17311 17312 LIBSPECLIBDIR="" 17313 17314 # Check whether --with-libconfig or --without-libconfig was given. 17315 if test "${with_libconfig+set}" = set; then 17316 withval="$with_libconfig" 17317 17318 # Specified 17319 LIBSPEC=$withval 17320 17321 else 17322 17323 # Not specified 17324 LIBSPECFLAGS="`pkg-config --libs libconfig 2>/dev/null`" 17325 LIBSPECCFLAGS="`pkg-config --cflags libconfig 2>/dev/null`" 17326 echo "$as_me:$LINENO: checking for lc_process in -lconfig" >&5 17327 echo $ECHO_N "checking for lc_process in -lconfig... $ECHO_C" >&6 17328 if test "${ac_cv_lib_config_lc_process+set}" = set; then 17329 echo $ECHO_N "(cached) $ECHO_C" >&6 17330 else 17331 ac_check_lib_save_LIBS=$LIBS 17332 LIBS="-lconfig $LIBSPECFLAGS $LIBS" 17333 cat >conftest.$ac_ext <<_ACEOF 17334 /* confdefs.h. */ 17335 _ACEOF 17336 cat confdefs.h >>conftest.$ac_ext 17337 cat >>conftest.$ac_ext <<_ACEOF 17338 /* end confdefs.h. */ 17339 17340 /* Override any gcc2 internal prototype to avoid an error. */ 17341 #ifdef __cplusplus 17342 extern "C" 17343 #endif 17344 /* We use char because int might match the return type of a gcc2 17345 builtin and then its argument prototype would still apply. */ 17346 char lc_process (); 17347 int 17348 main () 17349 { 17350 lc_process (); 17351 ; 17352 return 0; 17353 } 17354 _ACEOF 17355 rm -f conftest.$ac_objext conftest$ac_exeext 17356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17357 (eval $ac_link) 2>conftest.er1 17358 ac_status=$? 17359 grep -v '^ *+' conftest.er1 >conftest.err 17360 rm -f conftest.er1 17361 cat conftest.err >&5 17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17363 (exit $ac_status); } && 17364 { ac_try='test -z "$ac_c_werror_flag" 17365 || test ! -s conftest.err' 17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17367 (eval $ac_try) 2>&5 17368 ac_status=$? 17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17370 (exit $ac_status); }; } && 17371 { ac_try='test -s conftest$ac_exeext' 17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17373 (eval $ac_try) 2>&5 17374 ac_status=$? 17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17376 (exit $ac_status); }; }; then 17377 ac_cv_lib_config_lc_process=yes 17378 else 17379 echo "$as_me: failed program was:" >&5 17380 sed 's/^/| /' conftest.$ac_ext >&5 17381 17382 ac_cv_lib_config_lc_process=no 17383 fi 17384 rm -f conftest.err conftest.$ac_objext \ 17385 conftest$ac_exeext conftest.$ac_ext 17386 LIBS=$ac_check_lib_save_LIBS 17387 fi 17388 echo "$as_me:$LINENO: result: $ac_cv_lib_config_lc_process" >&5 17389 echo "${ECHO_T}$ac_cv_lib_config_lc_process" >&6 17390 if test $ac_cv_lib_config_lc_process = yes; then 17391 17392 OLDCPPFLAGS="$CPPFLAGS" 17393 OLDCFLAGS="$CFLAGS" 17394 CPPFLAGS="$CPPFLAGS $LIBSPECCFLAGS" 17395 CFLAGS="$CFLAGS $LIBSPECCFLAGS" 17396 if test -n "libconfig.h" ; then 17397 if test "${ac_cv_header_libconfig_h+set}" = set; then 17398 echo "$as_me:$LINENO: checking for libconfig.h" >&5 17399 echo $ECHO_N "checking for libconfig.h... $ECHO_C" >&6 17400 if test "${ac_cv_header_libconfig_h+set}" = set; then 17401 echo $ECHO_N "(cached) $ECHO_C" >&6 17402 fi 17403 echo "$as_me:$LINENO: result: $ac_cv_header_libconfig_h" >&5 17404 echo "${ECHO_T}$ac_cv_header_libconfig_h" >&6 17405 else 17406 # Is the header compilable? 17407 echo "$as_me:$LINENO: checking libconfig.h usability" >&5 17408 echo $ECHO_N "checking libconfig.h usability... $ECHO_C" >&6 17409 cat >conftest.$ac_ext <<_ACEOF 17410 /* confdefs.h. */ 17411 _ACEOF 17412 cat confdefs.h >>conftest.$ac_ext 17413 cat >>conftest.$ac_ext <<_ACEOF 17414 /* end confdefs.h. */ 17415 $ac_includes_default 17416 #include <libconfig.h> 17417 _ACEOF 17418 rm -f conftest.$ac_objext 17419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17420 (eval $ac_compile) 2>conftest.er1 17421 ac_status=$? 17422 grep -v '^ *+' conftest.er1 >conftest.err 17423 rm -f conftest.er1 17424 cat conftest.err >&5 17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17426 (exit $ac_status); } && 17427 { ac_try='test -z "$ac_c_werror_flag" 17428 || test ! -s conftest.err' 17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17430 (eval $ac_try) 2>&5 17431 ac_status=$? 17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17433 (exit $ac_status); }; } && 17434 { ac_try='test -s conftest.$ac_objext' 17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17436 (eval $ac_try) 2>&5 17437 ac_status=$? 17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17439 (exit $ac_status); }; }; then 17440 ac_header_compiler=yes 17441 else 17442 echo "$as_me: failed program was:" >&5 17443 sed 's/^/| /' conftest.$ac_ext >&5 17444 17445 ac_header_compiler=no 17446 fi 17447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17449 echo "${ECHO_T}$ac_header_compiler" >&6 17450 17451 # Is the header present? 17452 echo "$as_me:$LINENO: checking libconfig.h presence" >&5 17453 echo $ECHO_N "checking libconfig.h presence... $ECHO_C" >&6 17454 cat >conftest.$ac_ext <<_ACEOF 17455 /* confdefs.h. */ 17456 _ACEOF 17457 cat confdefs.h >>conftest.$ac_ext 17458 cat >>conftest.$ac_ext <<_ACEOF 17459 /* end confdefs.h. */ 17460 #include <libconfig.h> 17461 _ACEOF 17462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 17463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17464 ac_status=$? 17465 grep -v '^ *+' conftest.er1 >conftest.err 17466 rm -f conftest.er1 17467 cat conftest.err >&5 17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17469 (exit $ac_status); } >/dev/null; then 17470 if test -s conftest.err; then 17471 ac_cpp_err=$ac_c_preproc_warn_flag 17472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17473 else 17474 ac_cpp_err= 17475 fi 17476 else 17477 ac_cpp_err=yes 17478 fi 17479 if test -z "$ac_cpp_err"; then 17480 ac_header_preproc=yes 17481 else 17482 echo "$as_me: failed program was:" >&5 17483 sed 's/^/| /' conftest.$ac_ext >&5 17484 17485 ac_header_preproc=no 17486 fi 17487 rm -f conftest.err conftest.$ac_ext 17488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17489 echo "${ECHO_T}$ac_header_preproc" >&6 17490 17491 # So? What about this header? 17492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17493 yes:no: ) 17494 { echo "$as_me:$LINENO: WARNING: libconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 17495 echo "$as_me: WARNING: libconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 17496 { echo "$as_me:$LINENO: WARNING: libconfig.h: proceeding with the compiler's result" >&5 17497 echo "$as_me: WARNING: libconfig.h: proceeding with the compiler's result" >&2;} 17498 ac_header_preproc=yes 17499 ;; 17500 no:yes:* ) 17501 { echo "$as_me:$LINENO: WARNING: libconfig.h: present but cannot be compiled" >&5 17502 echo "$as_me: WARNING: libconfig.h: present but cannot be compiled" >&2;} 17503 { echo "$as_me:$LINENO: WARNING: libconfig.h: check for missing prerequisite headers?" >&5 17504 echo "$as_me: WARNING: libconfig.h: check for missing prerequisite headers?" >&2;} 17505 { echo "$as_me:$LINENO: WARNING: libconfig.h: see the Autoconf documentation" >&5 17506 echo "$as_me: WARNING: libconfig.h: see the Autoconf documentation" >&2;} 17507 { echo "$as_me:$LINENO: WARNING: libconfig.h: section \"Present But Cannot Be Compiled\"" >&5 17508 echo "$as_me: WARNING: libconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} 17509 { echo "$as_me:$LINENO: WARNING: libconfig.h: proceeding with the preprocessor's result" >&5 17510 echo "$as_me: WARNING: libconfig.h: proceeding with the preprocessor's result" >&2;} 17511 { echo "$as_me:$LINENO: WARNING: libconfig.h: in the future, the compiler will take precedence" >&5 17512 echo "$as_me: WARNING: libconfig.h: in the future, the compiler will take precedence" >&2;} 17513 ( 17514 cat <<\_ASBOX 17515 ## ------------------------------------ ## 17516 ## Report this to the backuppcd lists. ## 17517 ## ------------------------------------ ## 17518 _ASBOX 17519 ) | 17520 sed "s/^/$as_me: WARNING: /" >&2 17521 ;; 17522 esac 17523 echo "$as_me:$LINENO: checking for libconfig.h" >&5 17524 echo $ECHO_N "checking for libconfig.h... $ECHO_C" >&6 17525 if test "${ac_cv_header_libconfig_h+set}" = set; then 17526 echo $ECHO_N "(cached) $ECHO_C" >&6 17527 else 17528 ac_cv_header_libconfig_h=$ac_header_preproc 17529 fi 17530 echo "$as_me:$LINENO: result: $ac_cv_header_libconfig_h" >&5 17531 echo "${ECHO_T}$ac_cv_header_libconfig_h" >&6 17532 17533 fi 17534 if test $ac_cv_header_libconfig_h = yes; then 17535 17536 LIBSPEC=yes 17537 17538 else 17539 17540 LIBSPEC=no 17541 17542 fi 17543 17544 17545 fi 17546 CPPFLAGS="$OLDCPPFLAGS" 17547 CFLAGS="$OLDCFLAGS" 17548 17549 else 17550 17551 if test -n ""; then 17552 17553 unset `set | grep _cv_ | cut -f 1 -d =` 17554 17555 LIBSPECFLAGS=" $LIBSPECFLAGS" 17556 echo "$as_me:$LINENO: checking for lc_process in -lconfig" >&5 17557 echo $ECHO_N "checking for lc_process in -lconfig... $ECHO_C" >&6 17558 if test "${ac_cv_lib_config_lc_process+set}" = set; then 17559 echo $ECHO_N "(cached) $ECHO_C" >&6 17560 else 17561 ac_check_lib_save_LIBS=$LIBS 17562 LIBS="-lconfig $LIBSPECFLAGS $LIBS" 17563 cat >conftest.$ac_ext <<_ACEOF 17564 /* confdefs.h. */ 17565 _ACEOF 17566 cat confdefs.h >>conftest.$ac_ext 17567 cat >>conftest.$ac_ext <<_ACEOF 17568 /* end confdefs.h. */ 17569 17570 /* Override any gcc2 internal prototype to avoid an error. */ 17571 #ifdef __cplusplus 17572 extern "C" 17573 #endif 17574 /* We use char because int might match the return type of a gcc2 17575 builtin and then its argument prototype would still apply. */ 17576 char lc_process (); 17577 int 17578 main () 17579 { 17580 lc_process (); 17581 ; 17582 return 0; 17583 } 17584 _ACEOF 17585 rm -f conftest.$ac_objext conftest$ac_exeext 17586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17587 (eval $ac_link) 2>conftest.er1 17588 ac_status=$? 17589 grep -v '^ *+' conftest.er1 >conftest.err 17590 rm -f conftest.er1 17591 cat conftest.err >&5 17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17593 (exit $ac_status); } && 17594 { ac_try='test -z "$ac_c_werror_flag" 17595 || test ! -s conftest.err' 17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17597 (eval $ac_try) 2>&5 17598 ac_status=$? 17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17600 (exit $ac_status); }; } && 17601 { ac_try='test -s conftest$ac_exeext' 17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17603 (eval $ac_try) 2>&5 17604 ac_status=$? 17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17606 (exit $ac_status); }; }; then 17607 ac_cv_lib_config_lc_process=yes 17608 else 17609 echo "$as_me: failed program was:" >&5 17610 sed 's/^/| /' conftest.$ac_ext >&5 17611 17612 ac_cv_lib_config_lc_process=no 17613 fi 17614 rm -f conftest.err conftest.$ac_objext \ 17615 conftest$ac_exeext conftest.$ac_ext 17616 LIBS=$ac_check_lib_save_LIBS 17617 fi 17618 echo "$as_me:$LINENO: result: $ac_cv_lib_config_lc_process" >&5 17619 echo "${ECHO_T}$ac_cv_lib_config_lc_process" >&6 17620 if test $ac_cv_lib_config_lc_process = yes; then 17621 17622 OLDCPPFLAGS="$CPPFLAGS" 17623 OLDCFLAGS="$CFLAGS" 17624 CPPFLAGS="$CPPFLAGS $LIBSPECCFLAGS" 17625 CFLAGS="$CFLAGS $LIBSPECCFLAGS" 17626 if test -n "libconfig.h" ; then 17627 if test "${ac_cv_header_libconfig_h+set}" = set; then 17628 echo "$as_me:$LINENO: checking for libconfig.h" >&5 17629 echo $ECHO_N "checking for libconfig.h... $ECHO_C" >&6 17630 if test "${ac_cv_header_libconfig_h+set}" = set; then 17631 echo $ECHO_N "(cached) $ECHO_C" >&6 17632 fi 17633 echo "$as_me:$LINENO: result: $ac_cv_header_libconfig_h" >&5 17634 echo "${ECHO_T}$ac_cv_header_libconfig_h" >&6 17635 else 17636 # Is the header compilable? 17637 echo "$as_me:$LINENO: checking libconfig.h usability" >&5 17638 echo $ECHO_N "checking libconfig.h usability... $ECHO_C" >&6 17639 cat >conftest.$ac_ext <<_ACEOF 17640 /* confdefs.h. */ 17641 _ACEOF 17642 cat confdefs.h >>conftest.$ac_ext 17643 cat >>conftest.$ac_ext <<_ACEOF 17644 /* end confdefs.h. */ 17645 $ac_includes_default 17646 #include <libconfig.h> 17647 _ACEOF 17648 rm -f conftest.$ac_objext 17649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17650 (eval $ac_compile) 2>conftest.er1 17651 ac_status=$? 17652 grep -v '^ *+' conftest.er1 >conftest.err 17653 rm -f conftest.er1 17654 cat conftest.err >&5 17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17656 (exit $ac_status); } && 17657 { ac_try='test -z "$ac_c_werror_flag" 17658 || test ! -s conftest.err' 17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17660 (eval $ac_try) 2>&5 17661 ac_status=$? 17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17663 (exit $ac_status); }; } && 17664 { ac_try='test -s conftest.$ac_objext' 17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17666 (eval $ac_try) 2>&5 17667 ac_status=$? 17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17669 (exit $ac_status); }; }; then 17670 ac_header_compiler=yes 17671 else 17672 echo "$as_me: failed program was:" >&5 17673 sed 's/^/| /' conftest.$ac_ext >&5 17674 17675 ac_header_compiler=no 17676 fi 17677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17679 echo "${ECHO_T}$ac_header_compiler" >&6 17680 17681 # Is the header present? 17682 echo "$as_me:$LINENO: checking libconfig.h presence" >&5 17683 echo $ECHO_N "checking libconfig.h presence... $ECHO_C" >&6 17684 cat >conftest.$ac_ext <<_ACEOF 17685 /* confdefs.h. */ 17686 _ACEOF 17687 cat confdefs.h >>conftest.$ac_ext 17688 cat >>conftest.$ac_ext <<_ACEOF 17689 /* end confdefs.h. */ 17690 #include <libconfig.h> 17691 _ACEOF 17692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 17693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17694 ac_status=$? 17695 grep -v '^ *+' conftest.er1 >conftest.err 17696 rm -f conftest.er1 17697 cat conftest.err >&5 17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17699 (exit $ac_status); } >/dev/null; then 17700 if test -s conftest.err; then 17701 ac_cpp_err=$ac_c_preproc_warn_flag 17702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17703 else 17704 ac_cpp_err= 17705 fi 17706 else 17707 ac_cpp_err=yes 17708 fi 17709 if test -z "$ac_cpp_err"; then 17710 ac_header_preproc=yes 17711 else 17712 echo "$as_me: failed program was:" >&5 17713 sed 's/^/| /' conftest.$ac_ext >&5 17714 17715 ac_header_preproc=no 17716 fi 17717 rm -f conftest.err conftest.$ac_ext 17718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17719 echo "${ECHO_T}$ac_header_preproc" >&6 17720 17721 # So? What about this header? 17722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17723 yes:no: ) 17724 { echo "$as_me:$LINENO: WARNING: libconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 17725 echo "$as_me: WARNING: libconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 17726 { echo "$as_me:$LINENO: WARNING: libconfig.h: proceeding with the compiler's result" >&5 17727 echo "$as_me: WARNING: libconfig.h: proceeding with the compiler's result" >&2;} 17728 ac_header_preproc=yes 17729 ;; 17730 no:yes:* ) 17731 { echo "$as_me:$LINENO: WARNING: libconfig.h: present but cannot be compiled" >&5 17732 echo "$as_me: WARNING: libconfig.h: present but cannot be compiled" >&2;} 17733 { echo "$as_me:$LINENO: WARNING: libconfig.h: check for missing prerequisite headers?" >&5 17734 echo "$as_me: WARNING: libconfig.h: check for missing prerequisite headers?" >&2;} 17735 { echo "$as_me:$LINENO: WARNING: libconfig.h: see the Autoconf documentation" >&5 17736 echo "$as_me: WARNING: libconfig.h: see the Autoconf documentation" >&2;} 17737 { echo "$as_me:$LINENO: WARNING: libconfig.h: section \"Present But Cannot Be Compiled\"" >&5 17738 echo "$as_me: WARNING: libconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} 17739 { echo "$as_me:$LINENO: WARNING: libconfig.h: proceeding with the preprocessor's result" >&5 17740 echo "$as_me: WARNING: libconfig.h: proceeding with the preprocessor's result" >&2;} 17741 { echo "$as_me:$LINENO: WARNING: libconfig.h: in the future, the compiler will take precedence" >&5 17742 echo "$as_me: WARNING: libconfig.h: in the future, the compiler will take precedence" >&2;} 17743 ( 17744 cat <<\_ASBOX 17745 ## ------------------------------------ ## 17746 ## Report this to the backuppcd lists. ## 17747 ## ------------------------------------ ## 17748 _ASBOX 17749 ) | 17750 sed "s/^/$as_me: WARNING: /" >&2 17751 ;; 17752 esac 17753 echo "$as_me:$LINENO: checking for libconfig.h" >&5 17754 echo $ECHO_N "checking for libconfig.h... $ECHO_C" >&6 17755 if test "${ac_cv_header_libconfig_h+set}" = set; then 17756 echo $ECHO_N "(cached) $ECHO_C" >&6 17757 else 17758 ac_cv_header_libconfig_h=$ac_header_preproc 17759 fi 17760 echo "$as_me:$LINENO: result: $ac_cv_header_libconfig_h" >&5 17761 echo "${ECHO_T}$ac_cv_header_libconfig_h" >&6 17762 17763 fi 17764 if test $ac_cv_header_libconfig_h = yes; then 17765 17766 LIBSPEC=yes 17767 17768 else 17769 17770 LIBSPEC=no 17771 17772 fi 17773 17774 17775 fi 17776 CPPFLAGS="$OLDCPPFLAGS" 17777 CFLAGS="$OLDCFLAGS" 17778 17779 else 17780 17781 unset `set | grep _cv_ | cut -f 1 -d =` 17782 17783 LIBSPECFLAGS="" 17784 echo "$as_me:$LINENO: checking for lc_process in -lconfig" >&5 17785 echo $ECHO_N "checking for lc_process in -lconfig... $ECHO_C" >&6 17786 if test "${ac_cv_lib_config_lc_process+set}" = set; then 17787 echo $ECHO_N "(cached) $ECHO_C" >&6 17788 else 17789 ac_check_lib_save_LIBS=$LIBS 17790 LIBS="-lconfig $LIBSPECFLAGS $LIBS" 17791 cat >conftest.$ac_ext <<_ACEOF 17792 /* confdefs.h. */ 17793 _ACEOF 17794 cat confdefs.h >>conftest.$ac_ext 17795 cat >>conftest.$ac_ext <<_ACEOF 17796 /* end confdefs.h. */ 17797 17798 /* Override any gcc2 internal prototype to avoid an error. */ 17799 #ifdef __cplusplus 17800 extern "C" 17801 #endif 17802 /* We use char because int might match the return type of a gcc2 17803 builtin and then its argument prototype would still apply. */ 17804 char lc_process (); 17805 int 17806 main () 17807 { 17808 lc_process (); 17809 ; 17810 return 0; 17811 } 17812 _ACEOF 17813 rm -f conftest.$ac_objext conftest$ac_exeext 17814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17815 (eval $ac_link) 2>conftest.er1 17816 ac_status=$? 17817 grep -v '^ *+' conftest.er1 >conftest.err 17818 rm -f conftest.er1 17819 cat conftest.err >&5 17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17821 (exit $ac_status); } && 17822 { ac_try='test -z "$ac_c_werror_flag" 17823 || test ! -s conftest.err' 17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17825 (eval $ac_try) 2>&5 17826 ac_status=$? 17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17828 (exit $ac_status); }; } && 17829 { ac_try='test -s conftest$ac_exeext' 17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17831 (eval $ac_try) 2>&5 17832 ac_status=$? 17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17834 (exit $ac_status); }; }; then 17835 ac_cv_lib_config_lc_process=yes 17836 else 17837 echo "$as_me: failed program was:" >&5 17838 sed 's/^/| /' conftest.$ac_ext >&5 17839 17840 ac_cv_lib_config_lc_process=no 17841 fi 17842 rm -f conftest.err conftest.$ac_objext \ 17843 conftest$ac_exeext conftest.$ac_ext 17844 LIBS=$ac_check_lib_save_LIBS 17845 fi 17846 echo "$as_me:$LINENO: result: $ac_cv_lib_config_lc_process" >&5 17847 echo "${ECHO_T}$ac_cv_lib_config_lc_process" >&6 17848 if test $ac_cv_lib_config_lc_process = yes; then 17849 17850 OLDCPPFLAGS="$CPPFLAGS" 17851 OLDCFLAGS="$CFLAGS" 17852 CPPFLAGS="$CPPFLAGS $LIBSPECCFLAGS" 17853 CFLAGS="$CFLAGS $LIBSPECCFLAGS" 17854 if test -n "libconfig.h" ; then 17855 if test "${ac_cv_header_libconfig_h+set}" = set; then 17856 echo "$as_me:$LINENO: checking for libconfig.h" >&5 17857 echo $ECHO_N "checking for libconfig.h... $ECHO_C" >&6 17858 if test "${ac_cv_header_libconfig_h+set}" = set; then 17859 echo $ECHO_N "(cached) $ECHO_C" >&6 17860 fi 17861 echo "$as_me:$LINENO: result: $ac_cv_header_libconfig_h" >&5 17862 echo "${ECHO_T}$ac_cv_header_libconfig_h" >&6 17863 else 17864 # Is the header compilable? 17865 echo "$as_me:$LINENO: checking libconfig.h usability" >&5 17866 echo $ECHO_N "checking libconfig.h usability... $ECHO_C" >&6 17867 cat >conftest.$ac_ext <<_ACEOF 17868 /* confdefs.h. */ 17869 _ACEOF 17870 cat confdefs.h >>conftest.$ac_ext 17871 cat >>conftest.$ac_ext <<_ACEOF 17872 /* end confdefs.h. */ 17873 $ac_includes_default 17874 #include <libconfig.h> 17875 _ACEOF 17876 rm -f conftest.$ac_objext 17877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17878 (eval $ac_compile) 2>conftest.er1 17879 ac_status=$? 17880 grep -v '^ *+' conftest.er1 >conftest.err 17881 rm -f conftest.er1 17882 cat conftest.err >&5 17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17884 (exit $ac_status); } && 17885 { ac_try='test -z "$ac_c_werror_flag" 17886 || test ! -s conftest.err' 17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17888 (eval $ac_try) 2>&5 17889 ac_status=$? 17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17891 (exit $ac_status); }; } && 17892 { ac_try='test -s conftest.$ac_objext' 17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17894 (eval $ac_try) 2>&5 17895 ac_status=$? 17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17897 (exit $ac_status); }; }; then 17898 ac_header_compiler=yes 17899 else 17900 echo "$as_me: failed program was:" >&5 17901 sed 's/^/| /' conftest.$ac_ext >&5 17902 17903 ac_header_compiler=no 17904 fi 17905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17907 echo "${ECHO_T}$ac_header_compiler" >&6 17908 17909 # Is the header present? 17910 echo "$as_me:$LINENO: checking libconfig.h presence" >&5 17911 echo $ECHO_N "checking libconfig.h presence... $ECHO_C" >&6 17912 cat >conftest.$ac_ext <<_ACEOF 17913 /* confdefs.h. */ 17914 _ACEOF 17915 cat confdefs.h >>conftest.$ac_ext 17916 cat >>conftest.$ac_ext <<_ACEOF 17917 /* end confdefs.h. */ 17918 #include <libconfig.h> 17919 _ACEOF 17920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 17921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17922 ac_status=$? 17923 grep -v '^ *+' conftest.er1 >conftest.err 17924 rm -f conftest.er1 17925 cat conftest.err >&5 17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17927 (exit $ac_status); } >/dev/null; then 17928 if test -s conftest.err; then 17929 ac_cpp_err=$ac_c_preproc_warn_flag 17930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17931 else 17932 ac_cpp_err= 17933 fi 17934 else 17935 ac_cpp_err=yes 17936 fi 17937 if test -z "$ac_cpp_err"; then 17938 ac_header_preproc=yes 17939 else 17940 echo "$as_me: failed program was:" >&5 17941 sed 's/^/| /' conftest.$ac_ext >&5 17942 17943 ac_header_preproc=no 17944 fi 17945 rm -f conftest.err conftest.$ac_ext 17946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17947 echo "${ECHO_T}$ac_header_preproc" >&6 17948 17949 # So? What about this header? 17950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17951 yes:no: ) 17952 { echo "$as_me:$LINENO: WARNING: libconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 17953 echo "$as_me: WARNING: libconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 17954 { echo "$as_me:$LINENO: WARNING: libconfig.h: proceeding with the compiler's result" >&5 17955 echo "$as_me: WARNING: libconfig.h: proceeding with the compiler's result" >&2;} 17956 ac_header_preproc=yes 17957 ;; 17958 no:yes:* ) 17959 { echo "$as_me:$LINENO: WARNING: libconfig.h: present but cannot be compiled" >&5 17960 echo "$as_me: WARNING: libconfig.h: present but cannot be compiled" >&2;} 17961 { echo "$as_me:$LINENO: WARNING: libconfig.h: check for missing prerequisite headers?" >&5 17962 echo "$as_me: WARNING: libconfig.h: check for missing prerequisite headers?" >&2;} 17963 { echo "$as_me:$LINENO: WARNING: libconfig.h: see the Autoconf documentation" >&5 17964 echo "$as_me: WARNING: libconfig.h: see the Autoconf documentation" >&2;} 17965 { echo "$as_me:$LINENO: WARNING: libconfig.h: section \"Present But Cannot Be Compiled\"" >&5 17966 echo "$as_me: WARNING: libconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} 17967 { echo "$as_me:$LINENO: WARNING: libconfig.h: proceeding with the preprocessor's result" >&5 17968 echo "$as_me: WARNING: libconfig.h: proceeding with the preprocessor's result" >&2;} 17969 { echo "$as_me:$LINENO: WARNING: libconfig.h: in the future, the compiler will take precedence" >&5 17970 echo "$as_me: WARNING: libconfig.h: in the future, the compiler will take precedence" >&2;} 17971 ( 17972 cat <<\_ASBOX 17973 ## ------------------------------------ ## 17974 ## Report this to the backuppcd lists. ## 17975 ## ------------------------------------ ## 17976 _ASBOX 17977 ) | 17978 sed "s/^/$as_me: WARNING: /" >&2 17979 ;; 17980 esac 17981 echo "$as_me:$LINENO: checking for libconfig.h" >&5 17982 echo $ECHO_N "checking for libconfig.h... $ECHO_C" >&6 17983 if test "${ac_cv_header_libconfig_h+set}" = set; then 17984 echo $ECHO_N "(cached) $ECHO_C" >&6 17985 else 17986 ac_cv_header_libconfig_h=$ac_header_preproc 17987 fi 17988 echo "$as_me:$LINENO: result: $ac_cv_header_libconfig_h" >&5 17989 echo "${ECHO_T}$ac_cv_header_libconfig_h" >&6 17990 17991 fi 17992 if test $ac_cv_header_libconfig_h = yes; then 17993 17994 LIBSPEC=yes 17995 17996 else 17997 17998 LIBSPEC=no 17999 18000 fi 18001 18002 18003 fi 18004 CPPFLAGS="$OLDCPPFLAGS" 18005 CFLAGS="$OLDCFLAGS" 18006 18007 else 18008 18009 LIBSPEC=no 18010 18011 { { echo "$as_me:$LINENO: error: Libconfig is required. http://www.rkeene.org/oss/libconfig/" >&5 18012 echo "$as_me: error: Libconfig is required. http://www.rkeene.org/oss/libconfig/" >&2;} 18013 { (exit 1); exit 1; }; } 18014 18015 { echo "$as_me:$LINENO: WARNING: Did not find libconfig" >&5 18016 echo "$as_me: WARNING: Did not find libconfig" >&2;} 18017 18018 fi 18019 18020 18021 fi 18022 18023 else 18024 LIBSPEC=no 18025 18026 { { echo "$as_me:$LINENO: error: Libconfig is required. http://www.rkeene.org/oss/libconfig/" >&5 18027 echo "$as_me: error: Libconfig is required. http://www.rkeene.org/oss/libconfig/" >&2;} 18028 { (exit 1); exit 1; }; } 18029 18030 { echo "$as_me:$LINENO: WARNING: Did not find libconfig" >&5 18031 echo "$as_me: WARNING: Did not find libconfig" >&2;} 18032 fi 18033 18034 fi 18035 18036 18037 fi; 18038 case $LIBSPEC in 18039 no) 18040 18041 { { echo "$as_me:$LINENO: error: Libconfig is required. http://www.rkeene.org/oss/libconfig/" >&5 18042 echo "$as_me: error: Libconfig is required. http://www.rkeene.org/oss/libconfig/" >&2;} 18043 { (exit 1); exit 1; }; } 18044 18045 { echo "$as_me:$LINENO: WARNING: Support for libconfig disabled" >&5 18046 echo "$as_me: WARNING: Support for libconfig disabled" >&2;} 18047 ;; 18048 *) 18049 if test "${LIBSPEC}" = "yes"; then 18050 true 18051 else 18052 LIBSPECLIBDIR="${LIBSPEC}/lib" 18053 LIBSPECFLAGS="-L${LIBSPEC}/lib ${LIBSPECFLAGS}" 18054 LIBSPECCFLAGS="-I${LIBSPEC}/include ${LIBSPECCFLAGS}" 18055 fi 18056 echo "$as_me:$LINENO: checking for lc_process in -lconfig" >&5 18057 echo $ECHO_N "checking for lc_process in -lconfig... $ECHO_C" >&6 18058 if test "${ac_cv_lib_config_lc_process+set}" = set; then 18059 echo $ECHO_N "(cached) $ECHO_C" >&6 18060 else 18061 ac_check_lib_save_LIBS=$LIBS 18062 LIBS="-lconfig $LIBSPECFLAGS $LIBS" 18063 cat >conftest.$ac_ext <<_ACEOF 18064 /* confdefs.h. */ 18065 _ACEOF 18066 cat confdefs.h >>conftest.$ac_ext 18067 cat >>conftest.$ac_ext <<_ACEOF 18068 /* end confdefs.h. */ 18069 18070 /* Override any gcc2 internal prototype to avoid an error. */ 18071 #ifdef __cplusplus 18072 extern "C" 18073 #endif 18074 /* We use char because int might match the return type of a gcc2 18075 builtin and then its argument prototype would still apply. */ 18076 char lc_process (); 18077 int 18078 main () 18079 { 18080 lc_process (); 18081 ; 18082 return 0; 18083 } 18084 _ACEOF 18085 rm -f conftest.$ac_objext conftest$ac_exeext 18086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18087 (eval $ac_link) 2>conftest.er1 18088 ac_status=$? 18089 grep -v '^ *+' conftest.er1 >conftest.err 18090 rm -f conftest.er1 18091 cat conftest.err >&5 18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18093 (exit $ac_status); } && 18094 { ac_try='test -z "$ac_c_werror_flag" 18095 || test ! -s conftest.err' 18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18097 (eval $ac_try) 2>&5 18098 ac_status=$? 18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18100 (exit $ac_status); }; } && 18101 { ac_try='test -s conftest$ac_exeext' 18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18103 (eval $ac_try) 2>&5 18104 ac_status=$? 18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18106 (exit $ac_status); }; }; then 18107 ac_cv_lib_config_lc_process=yes 18108 else 18109 echo "$as_me: failed program was:" >&5 18110 sed 's/^/| /' conftest.$ac_ext >&5 18111 18112 ac_cv_lib_config_lc_process=no 18113 fi 18114 rm -f conftest.err conftest.$ac_objext \ 18115 conftest$ac_exeext conftest.$ac_ext 18116 LIBS=$ac_check_lib_save_LIBS 18117 fi 18118 echo "$as_me:$LINENO: result: $ac_cv_lib_config_lc_process" >&5 18119 echo "${ECHO_T}$ac_cv_lib_config_lc_process" >&6 18120 if test $ac_cv_lib_config_lc_process = yes; then 18121 18122 OLDCFLAGS="$CFLAGS" 18123 OLDCPPFLAGS="$CPPFLAGS" 18124 CPPFLAGS="$CPPFLAGS ${LIBSPECCFLAGS}" 18125 CFLAGS="$CFLAGS ${LIBSPECCFLAGS}" 18126 if test -n "libconfig.h"; then 18127 if test "${ac_cv_header_libconfig_h+set}" = set; then 18128 echo "$as_me:$LINENO: checking for libconfig.h" >&5 18129 echo $ECHO_N "checking for libconfig.h... $ECHO_C" >&6 18130 if test "${ac_cv_header_libconfig_h+set}" = set; then 18131 echo $ECHO_N "(cached) $ECHO_C" >&6 18132 fi 18133 echo "$as_me:$LINENO: result: $ac_cv_header_libconfig_h" >&5 18134 echo "${ECHO_T}$ac_cv_header_libconfig_h" >&6 18135 else 18136 # Is the header compilable? 18137 echo "$as_me:$LINENO: checking libconfig.h usability" >&5 18138 echo $ECHO_N "checking libconfig.h usability... $ECHO_C" >&6 18139 cat >conftest.$ac_ext <<_ACEOF 18140 /* confdefs.h. */ 18141 _ACEOF 18142 cat confdefs.h >>conftest.$ac_ext 18143 cat >>conftest.$ac_ext <<_ACEOF 18144 /* end confdefs.h. */ 18145 $ac_includes_default 18146 #include <libconfig.h> 18147 _ACEOF 18148 rm -f conftest.$ac_objext 18149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18150 (eval $ac_compile) 2>conftest.er1 18151 ac_status=$? 18152 grep -v '^ *+' conftest.er1 >conftest.err 18153 rm -f conftest.er1 18154 cat conftest.err >&5 18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18156 (exit $ac_status); } && 18157 { ac_try='test -z "$ac_c_werror_flag" 18158 || test ! -s conftest.err' 18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18160 (eval $ac_try) 2>&5 18161 ac_status=$? 18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18163 (exit $ac_status); }; } && 18164 { ac_try='test -s conftest.$ac_objext' 18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18166 (eval $ac_try) 2>&5 18167 ac_status=$? 18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18169 (exit $ac_status); }; }; then 18170 ac_header_compiler=yes 18171 else 18172 echo "$as_me: failed program was:" >&5 18173 sed 's/^/| /' conftest.$ac_ext >&5 18174 18175 ac_header_compiler=no 18176 fi 18177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18179 echo "${ECHO_T}$ac_header_compiler" >&6 18180 18181 # Is the header present? 18182 echo "$as_me:$LINENO: checking libconfig.h presence" >&5 18183 echo $ECHO_N "checking libconfig.h presence... $ECHO_C" >&6 18184 cat >conftest.$ac_ext <<_ACEOF 18185 /* confdefs.h. */ 18186 _ACEOF 18187 cat confdefs.h >>conftest.$ac_ext 18188 cat >>conftest.$ac_ext <<_ACEOF 18189 /* end confdefs.h. */ 18190 #include <libconfig.h> 18191 _ACEOF 18192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 18193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 18194 ac_status=$? 18195 grep -v '^ *+' conftest.er1 >conftest.err 18196 rm -f conftest.er1 18197 cat conftest.err >&5 18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18199 (exit $ac_status); } >/dev/null; then 18200 if test -s conftest.err; then 18201 ac_cpp_err=$ac_c_preproc_warn_flag 18202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 18203 else 18204 ac_cpp_err= 18205 fi 18206 else 18207 ac_cpp_err=yes 18208 fi 18209 if test -z "$ac_cpp_err"; then 18210 ac_header_preproc=yes 18211 else 18212 echo "$as_me: failed program was:" >&5 18213 sed 's/^/| /' conftest.$ac_ext >&5 18214 18215 ac_header_preproc=no 18216 fi 18217 rm -f conftest.err conftest.$ac_ext 18218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18219 echo "${ECHO_T}$ac_header_preproc" >&6 18220 18221 # So? What about this header? 18222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 18223 yes:no: ) 18224 { echo "$as_me:$LINENO: WARNING: libconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 18225 echo "$as_me: WARNING: libconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 18226 { echo "$as_me:$LINENO: WARNING: libconfig.h: proceeding with the compiler's result" >&5 18227 echo "$as_me: WARNING: libconfig.h: proceeding with the compiler's result" >&2;} 18228 ac_header_preproc=yes 18229 ;; 18230 no:yes:* ) 18231 { echo "$as_me:$LINENO: WARNING: libconfig.h: present but cannot be compiled" >&5 18232 echo "$as_me: WARNING: libconfig.h: present but cannot be compiled" >&2;} 18233 { echo "$as_me:$LINENO: WARNING: libconfig.h: check for missing prerequisite headers?" >&5 18234 echo "$as_me: WARNING: libconfig.h: check for missing prerequisite headers?" >&2;} 18235 { echo "$as_me:$LINENO: WARNING: libconfig.h: see the Autoconf documentation" >&5 18236 echo "$as_me: WARNING: libconfig.h: see the Autoconf documentation" >&2;} 18237 { echo "$as_me:$LINENO: WARNING: libconfig.h: section \"Present But Cannot Be Compiled\"" >&5 18238 echo "$as_me: WARNING: libconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} 18239 { echo "$as_me:$LINENO: WARNING: libconfig.h: proceeding with the preprocessor's result" >&5 18240 echo "$as_me: WARNING: libconfig.h: proceeding with the preprocessor's result" >&2;} 18241 { echo "$as_me:$LINENO: WARNING: libconfig.h: in the future, the compiler will take precedence" >&5 18242 echo "$as_me: WARNING: libconfig.h: in the future, the compiler will take precedence" >&2;} 18243 ( 18244 cat <<\_ASBOX 18245 ## ------------------------------------ ## 18246 ## Report this to the backuppcd lists. ## 18247 ## ------------------------------------ ## 18248 _ASBOX 18249 ) | 18250 sed "s/^/$as_me: WARNING: /" >&2 18251 ;; 18252 esac 18253 echo "$as_me:$LINENO: checking for libconfig.h" >&5 18254 echo $ECHO_N "checking for libconfig.h... $ECHO_C" >&6 18255 if test "${ac_cv_header_libconfig_h+set}" = set; then 18256 echo $ECHO_N "(cached) $ECHO_C" >&6 18257 else 18258 ac_cv_header_libconfig_h=$ac_header_preproc 18259 fi 18260 echo "$as_me:$LINENO: result: $ac_cv_header_libconfig_h" >&5 18261 echo "${ECHO_T}$ac_cv_header_libconfig_h" >&6 18262 18263 fi 18264 if test $ac_cv_header_libconfig_h = yes; then 18265 18266 headerok="yes" 18267 18268 else 18269 18270 headerok="no" 18271 18272 fi 18273 18274 18275 else 18276 headerok="yes" 18277 fi 18278 18279 if test $headerok = "yes"; then 18280 if test -n "HAVE_LIBCONFIG_H" -a -n "libconfig.h"; then 18281 18282 cat >>confdefs.h <<\_ACEOF 18283 #define HAVE_LIBCONFIG_H 1 18284 _ACEOF 18285 18286 fi 18287 if test -n "HAVE_LIBCONFIG" -a -n "lc_process"; then 18288 18289 cat >>confdefs.h <<\_ACEOF 18290 #define HAVE_LIBCONFIG 1 18291 _ACEOF 18292 18293 fi 18294 LDFLAGS="$LIBSPECFLAGS $LDFLAGS" 18295 if test -n "$LIBSPECLIBDIR"; then 18296 18297 OLD_LDFLAGS="$LDFLAGS" 18298 18299 LDRUNPATH="" 18300 for testldflags in "-Wl,-rpath -Wl,$LIBSPECLIBDIR" "-Wl,-R -Wl,$LIBSPECLIBDIR"; do 18301 LDFLAGS="$OLD_LDFLAGS $testldflags" 18302 cat >conftest.$ac_ext <<_ACEOF 18303 /* confdefs.h. */ 18304 _ACEOF 18305 cat confdefs.h >>conftest.$ac_ext 18306 cat >>conftest.$ac_ext <<_ACEOF 18307 /* end confdefs.h. */ 18308 #include <stdio.h> 18309 int 18310 main () 18311 { 18312 return(0); 18313 ; 18314 return 0; 18315 } 18316 _ACEOF 18317 rm -f conftest.$ac_objext conftest$ac_exeext 18318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18319 (eval $ac_link) 2>conftest.er1 18320 ac_status=$? 18321 grep -v '^ *+' conftest.er1 >conftest.err 18322 rm -f conftest.er1 18323 cat conftest.err >&5 18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18325 (exit $ac_status); } && 18326 { ac_try='test -z "$ac_c_werror_flag" 18327 || test ! -s conftest.err' 18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18329 (eval $ac_try) 2>&5 18330 ac_status=$? 18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18332 (exit $ac_status); }; } && 18333 { ac_try='test -s conftest$ac_exeext' 18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18335 (eval $ac_try) 2>&5 18336 ac_status=$? 18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18338 (exit $ac_status); }; }; then 18339 LDRUNPATH="$LDRUNPATH $testldflags"; break 18340 else 18341 echo "$as_me: failed program was:" >&5 18342 sed 's/^/| /' conftest.$ac_ext >&5 18343 18344 fi 18345 rm -f conftest.err conftest.$ac_objext \ 18346 conftest$ac_exeext conftest.$ac_ext; 18347 done 18348 18349 LDFLAGS="$OLD_LDFLAGS" 18350 if test -n "$LDRUNPATH"; then 18351 LDFLAGS="$LDRUNPATH $LDFLAGS" 18352 fi 18353 18354 fi 18355 LIBS="-lconfig $LIBS" 18356 else 18357 CFLAGS="$OLDCFLAGS" 18358 CPPFLAGS="$OLDCPPFLAGS" 18359 18360 { { echo "$as_me:$LINENO: error: Libconfig is required. http://www.rkeene.org/oss/libconfig/" >&5 18361 echo "$as_me: error: Libconfig is required. http://www.rkeene.org/oss/libconfig/" >&2;} 18362 { (exit 1); exit 1; }; } 18363 18364 { { echo "$as_me:$LINENO: error: Could not find libconfig.h" >&5 18365 echo "$as_me: error: Could not find libconfig.h" >&2;} 18366 { (exit 1); exit 1; }; } 18367 fi 18368 18369 else 18370 18371 { { echo "$as_me:$LINENO: error: Could not find libconfig" >&5 18372 echo "$as_me: error: Could not find libconfig" >&2;} 18373 { (exit 1); exit 1; }; } 18374 18375 fi 18376 18377 ;; 18378 esac 18379 18380 18381 18382 LIBSPECLIBDIR="" 18383 18384 # Check whether --with-opennet or --without-opennet was given. 18385 if test "${with_opennet+set}" = set; then 18386 withval="$with_opennet" 18387 18388 # Specified 18389 LIBSPEC=$withval 18390 18391 else 18392 18393 # Not specified 18394 LIBSPECFLAGS="`pkg-config --libs opennet 2>/dev/null`" 18395 LIBSPECCFLAGS="`pkg-config --cflags opennet 2>/dev/null`" 18396 echo "$as_me:$LINENO: checking for fopen_net in -lopennet" >&5 18397 echo $ECHO_N "checking for fopen_net in -lopennet... $ECHO_C" >&6 18398 if test "${ac_cv_lib_opennet_fopen_net+set}" = set; then 18399 echo $ECHO_N "(cached) $ECHO_C" >&6 18400 else 18401 ac_check_lib_save_LIBS=$LIBS 18402 LIBS="-lopennet $LIBSPECFLAGS $LIBS" 18403 cat >conftest.$ac_ext <<_ACEOF 18404 /* confdefs.h. */ 18405 _ACEOF 18406 cat confdefs.h >>conftest.$ac_ext 18407 cat >>conftest.$ac_ext <<_ACEOF 18408 /* end confdefs.h. */ 18409 18410 /* Override any gcc2 internal prototype to avoid an error. */ 18411 #ifdef __cplusplus 18412 extern "C" 18413 #endif 18414 /* We use char because int might match the return type of a gcc2 18415 builtin and then its argument prototype would still apply. */ 18416 char fopen_net (); 18417 int 18418 main () 18419 { 18420 fopen_net (); 18421 ; 18422 return 0; 18423 } 18424 _ACEOF 18425 rm -f conftest.$ac_objext conftest$ac_exeext 18426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18427 (eval $ac_link) 2>conftest.er1 18428 ac_status=$? 18429 grep -v '^ *+' conftest.er1 >conftest.err 18430 rm -f conftest.er1 18431 cat conftest.err >&5 18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18433 (exit $ac_status); } && 18434 { ac_try='test -z "$ac_c_werror_flag" 18435 || test ! -s conftest.err' 18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18437 (eval $ac_try) 2>&5 18438 ac_status=$? 18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18440 (exit $ac_status); }; } && 18441 { ac_try='test -s conftest$ac_exeext' 18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18443 (eval $ac_try) 2>&5 18444 ac_status=$? 18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18446 (exit $ac_status); }; }; then 18447 ac_cv_lib_opennet_fopen_net=yes 18448 else 18449 echo "$as_me: failed program was:" >&5 18450 sed 's/^/| /' conftest.$ac_ext >&5 18451 18452 ac_cv_lib_opennet_fopen_net=no 18453 fi 18454 rm -f conftest.err conftest.$ac_objext \ 18455 conftest$ac_exeext conftest.$ac_ext 18456 LIBS=$ac_check_lib_save_LIBS 18457 fi 18458 echo "$as_me:$LINENO: result: $ac_cv_lib_opennet_fopen_net" >&5 18459 echo "${ECHO_T}$ac_cv_lib_opennet_fopen_net" >&6 18460 if test $ac_cv_lib_opennet_fopen_net = yes; then 18461 18462 OLDCPPFLAGS="$CPPFLAGS" 18463 OLDCFLAGS="$CFLAGS" 18464 CPPFLAGS="$CPPFLAGS $LIBSPECCFLAGS" 18465 CFLAGS="$CFLAGS $LIBSPECCFLAGS" 18466 if test -n "opennet.h" ; then 18467 if test "${ac_cv_header_opennet_h+set}" = set; then 18468 echo "$as_me:$LINENO: checking for opennet.h" >&5 18469 echo $ECHO_N "checking for opennet.h... $ECHO_C" >&6 18470 if test "${ac_cv_header_opennet_h+set}" = set; then 18471 echo $ECHO_N "(cached) $ECHO_C" >&6 18472 fi 18473 echo "$as_me:$LINENO: result: $ac_cv_header_opennet_h" >&5 18474 echo "${ECHO_T}$ac_cv_header_opennet_h" >&6 18475 else 18476 # Is the header compilable? 18477 echo "$as_me:$LINENO: checking opennet.h usability" >&5 18478 echo $ECHO_N "checking opennet.h usability... $ECHO_C" >&6 18479 cat >conftest.$ac_ext <<_ACEOF 18480 /* confdefs.h. */ 18481 _ACEOF 18482 cat confdefs.h >>conftest.$ac_ext 18483 cat >>conftest.$ac_ext <<_ACEOF 18484 /* end confdefs.h. */ 18485 $ac_includes_default 18486 #include <opennet.h> 18487 _ACEOF 18488 rm -f conftest.$ac_objext 18489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18490 (eval $ac_compile) 2>conftest.er1 18491 ac_status=$? 18492 grep -v '^ *+' conftest.er1 >conftest.err 18493 rm -f conftest.er1 18494 cat conftest.err >&5 18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18496 (exit $ac_status); } && 18497 { ac_try='test -z "$ac_c_werror_flag" 18498 || test ! -s conftest.err' 18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18500 (eval $ac_try) 2>&5 18501 ac_status=$? 18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18503 (exit $ac_status); }; } && 18504 { ac_try='test -s conftest.$ac_objext' 18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18506 (eval $ac_try) 2>&5 18507 ac_status=$? 18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18509 (exit $ac_status); }; }; then 18510 ac_header_compiler=yes 18511 else 18512 echo "$as_me: failed program was:" >&5 18513 sed 's/^/| /' conftest.$ac_ext >&5 18514 18515 ac_header_compiler=no 18516 fi 18517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18519 echo "${ECHO_T}$ac_header_compiler" >&6 18520 18521 # Is the header present? 18522 echo "$as_me:$LINENO: checking opennet.h presence" >&5 18523 echo $ECHO_N "checking opennet.h presence... $ECHO_C" >&6 18524 cat >conftest.$ac_ext <<_ACEOF 18525 /* confdefs.h. */ 18526 _ACEOF 18527 cat confdefs.h >>conftest.$ac_ext 18528 cat >>conftest.$ac_ext <<_ACEOF 18529 /* end confdefs.h. */ 18530 #include <opennet.h> 18531 _ACEOF 18532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 18533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 18534 ac_status=$? 18535 grep -v '^ *+' conftest.er1 >conftest.err 18536 rm -f conftest.er1 18537 cat conftest.err >&5 18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18539 (exit $ac_status); } >/dev/null; then 18540 if test -s conftest.err; then 18541 ac_cpp_err=$ac_c_preproc_warn_flag 18542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 18543 else 18544 ac_cpp_err= 18545 fi 18546 else 18547 ac_cpp_err=yes 18548 fi 18549 if test -z "$ac_cpp_err"; then 18550 ac_header_preproc=yes 18551 else 18552 echo "$as_me: failed program was:" >&5 18553 sed 's/^/| /' conftest.$ac_ext >&5 18554 18555 ac_header_preproc=no 18556 fi 18557 rm -f conftest.err conftest.$ac_ext 18558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18559 echo "${ECHO_T}$ac_header_preproc" >&6 18560 18561 # So? What about this header? 18562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 18563 yes:no: ) 18564 { echo "$as_me:$LINENO: WARNING: opennet.h: accepted by the compiler, rejected by the preprocessor!" >&5 18565 echo "$as_me: WARNING: opennet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 18566 { echo "$as_me:$LINENO: WARNING: opennet.h: proceeding with the compiler's result" >&5 18567 echo "$as_me: WARNING: opennet.h: proceeding with the compiler's result" >&2;} 18568 ac_header_preproc=yes 18569 ;; 18570 no:yes:* ) 18571 { echo "$as_me:$LINENO: WARNING: opennet.h: present but cannot be compiled" >&5 18572 echo "$as_me: WARNING: opennet.h: present but cannot be compiled" >&2;} 18573 { echo "$as_me:$LINENO: WARNING: opennet.h: check for missing prerequisite headers?" >&5 18574 echo "$as_me: WARNING: opennet.h: check for missing prerequisite headers?" >&2;} 18575 { echo "$as_me:$LINENO: WARNING: opennet.h: see the Autoconf documentation" >&5 18576 echo "$as_me: WARNING: opennet.h: see the Autoconf documentation" >&2;} 18577 { echo "$as_me:$LINENO: WARNING: opennet.h: section \"Present But Cannot Be Compiled\"" >&5 18578 echo "$as_me: WARNING: opennet.h: section \"Present But Cannot Be Compiled\"" >&2;} 18579 { echo "$as_me:$LINENO: WARNING: opennet.h: proceeding with the preprocessor's result" >&5 18580 echo "$as_me: WARNING: opennet.h: proceeding with the preprocessor's result" >&2;} 18581 { echo "$as_me:$LINENO: WARNING: opennet.h: in the future, the compiler will take precedence" >&5 18582 echo "$as_me: WARNING: opennet.h: in the future, the compiler will take precedence" >&2;} 18583 ( 18584 cat <<\_ASBOX 18585 ## ------------------------------------ ## 18586 ## Report this to the backuppcd lists. ## 18587 ## ------------------------------------ ## 18588 _ASBOX 18589 ) | 18590 sed "s/^/$as_me: WARNING: /" >&2 18591 ;; 18592 esac 18593 echo "$as_me:$LINENO: checking for opennet.h" >&5 18594 echo $ECHO_N "checking for opennet.h... $ECHO_C" >&6 18595 if test "${ac_cv_header_opennet_h+set}" = set; then 18596 echo $ECHO_N "(cached) $ECHO_C" >&6 18597 else 18598 ac_cv_header_opennet_h=$ac_header_preproc 18599 fi 18600 echo "$as_me:$LINENO: result: $ac_cv_header_opennet_h" >&5 18601 echo "${ECHO_T}$ac_cv_header_opennet_h" >&6 18602 18603 fi 18604 if test $ac_cv_header_opennet_h = yes; then 18605 18606 LIBSPEC=yes 18607 18608 else 18609 18610 LIBSPEC=no 18611 18612 fi 18613 18614 18615 fi 18616 CPPFLAGS="$OLDCPPFLAGS" 18617 CFLAGS="$OLDCFLAGS" 18618 18619 else 18620 18621 if test -n ""; then 18622 18623 unset `set | grep _cv_ | cut -f 1 -d =` 18624 18625 LIBSPECFLAGS=" $LIBSPECFLAGS" 18626 echo "$as_me:$LINENO: checking for fopen_net in -lopennet" >&5 18627 echo $ECHO_N "checking for fopen_net in -lopennet... $ECHO_C" >&6 18628 if test "${ac_cv_lib_opennet_fopen_net+set}" = set; then 18629 echo $ECHO_N "(cached) $ECHO_C" >&6 18630 else 18631 ac_check_lib_save_LIBS=$LIBS 18632 LIBS="-lopennet $LIBSPECFLAGS $LIBS" 18633 cat >conftest.$ac_ext <<_ACEOF 18634 /* confdefs.h. */ 18635 _ACEOF 18636 cat confdefs.h >>conftest.$ac_ext 18637 cat >>conftest.$ac_ext <<_ACEOF 18638 /* end confdefs.h. */ 18639 18640 /* Override any gcc2 internal prototype to avoid an error. */ 18641 #ifdef __cplusplus 18642 extern "C" 18643 #endif 18644 /* We use char because int might match the return type of a gcc2 18645 builtin and then its argument prototype would still apply. */ 18646 char fopen_net (); 18647 int 18648 main () 18649 { 18650 fopen_net (); 18651 ; 18652 return 0; 18653 } 18654 _ACEOF 18655 rm -f conftest.$ac_objext conftest$ac_exeext 18656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18657 (eval $ac_link) 2>conftest.er1 18658 ac_status=$? 18659 grep -v '^ *+' conftest.er1 >conftest.err 18660 rm -f conftest.er1 18661 cat conftest.err >&5 18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18663 (exit $ac_status); } && 18664 { ac_try='test -z "$ac_c_werror_flag" 18665 || test ! -s conftest.err' 18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18667 (eval $ac_try) 2>&5 18668 ac_status=$? 18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18670 (exit $ac_status); }; } && 18671 { ac_try='test -s conftest$ac_exeext' 18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18673 (eval $ac_try) 2>&5 18674 ac_status=$? 18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18676 (exit $ac_status); }; }; then 18677 ac_cv_lib_opennet_fopen_net=yes 18678 else 18679 echo "$as_me: failed program was:" >&5 18680 sed 's/^/| /' conftest.$ac_ext >&5 18681 18682 ac_cv_lib_opennet_fopen_net=no 18683 fi 18684 rm -f conftest.err conftest.$ac_objext \ 18685 conftest$ac_exeext conftest.$ac_ext 18686 LIBS=$ac_check_lib_save_LIBS 18687 fi 18688 echo "$as_me:$LINENO: result: $ac_cv_lib_opennet_fopen_net" >&5 18689 echo "${ECHO_T}$ac_cv_lib_opennet_fopen_net" >&6 18690 if test $ac_cv_lib_opennet_fopen_net = yes; then 18691 18692 OLDCPPFLAGS="$CPPFLAGS" 18693 OLDCFLAGS="$CFLAGS" 18694 CPPFLAGS="$CPPFLAGS $LIBSPECCFLAGS" 18695 CFLAGS="$CFLAGS $LIBSPECCFLAGS" 18696 if test -n "opennet.h" ; then 18697 if test "${ac_cv_header_opennet_h+set}" = set; then 18698 echo "$as_me:$LINENO: checking for opennet.h" >&5 18699 echo $ECHO_N "checking for opennet.h... $ECHO_C" >&6 18700 if test "${ac_cv_header_opennet_h+set}" = set; then 18701 echo $ECHO_N "(cached) $ECHO_C" >&6 18702 fi 18703 echo "$as_me:$LINENO: result: $ac_cv_header_opennet_h" >&5 18704 echo "${ECHO_T}$ac_cv_header_opennet_h" >&6 18705 else 18706 # Is the header compilable? 18707 echo "$as_me:$LINENO: checking opennet.h usability" >&5 18708 echo $ECHO_N "checking opennet.h usability... $ECHO_C" >&6 18709 cat >conftest.$ac_ext <<_ACEOF 18710 /* confdefs.h. */ 18711 _ACEOF 18712 cat confdefs.h >>conftest.$ac_ext 18713 cat >>conftest.$ac_ext <<_ACEOF 18714 /* end confdefs.h. */ 18715 $ac_includes_default 18716 #include <opennet.h> 18717 _ACEOF 18718 rm -f conftest.$ac_objext 18719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18720 (eval $ac_compile) 2>conftest.er1 18721 ac_status=$? 18722 grep -v '^ *+' conftest.er1 >conftest.err 18723 rm -f conftest.er1 18724 cat conftest.err >&5 18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18726 (exit $ac_status); } && 18727 { ac_try='test -z "$ac_c_werror_flag" 18728 || test ! -s conftest.err' 18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18730 (eval $ac_try) 2>&5 18731 ac_status=$? 18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18733 (exit $ac_status); }; } && 18734 { ac_try='test -s conftest.$ac_objext' 18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18736 (eval $ac_try) 2>&5 18737 ac_status=$? 18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18739 (exit $ac_status); }; }; then 18740 ac_header_compiler=yes 18741 else 18742 echo "$as_me: failed program was:" >&5 18743 sed 's/^/| /' conftest.$ac_ext >&5 18744 18745 ac_header_compiler=no 18746 fi 18747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18749 echo "${ECHO_T}$ac_header_compiler" >&6 18750 18751 # Is the header present? 18752 echo "$as_me:$LINENO: checking opennet.h presence" >&5 18753 echo $ECHO_N "checking opennet.h presence... $ECHO_C" >&6 18754 cat >conftest.$ac_ext <<_ACEOF 18755 /* confdefs.h. */ 18756 _ACEOF 18757 cat confdefs.h >>conftest.$ac_ext 18758 cat >>conftest.$ac_ext <<_ACEOF 18759 /* end confdefs.h. */ 18760 #include <opennet.h> 18761 _ACEOF 18762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 18763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 18764 ac_status=$? 18765 grep -v '^ *+' conftest.er1 >conftest.err 18766 rm -f conftest.er1 18767 cat conftest.err >&5 18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18769 (exit $ac_status); } >/dev/null; then 18770 if test -s conftest.err; then 18771 ac_cpp_err=$ac_c_preproc_warn_flag 18772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 18773 else 18774 ac_cpp_err= 18775 fi 18776 else 18777 ac_cpp_err=yes 18778 fi 18779 if test -z "$ac_cpp_err"; then 18780 ac_header_preproc=yes 18781 else 18782 echo "$as_me: failed program was:" >&5 18783 sed 's/^/| /' conftest.$ac_ext >&5 18784 18785 ac_header_preproc=no 18786 fi 18787 rm -f conftest.err conftest.$ac_ext 18788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18789 echo "${ECHO_T}$ac_header_preproc" >&6 18790 18791 # So? What about this header? 18792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 18793 yes:no: ) 18794 { echo "$as_me:$LINENO: WARNING: opennet.h: accepted by the compiler, rejected by the preprocessor!" >&5 18795 echo "$as_me: WARNING: opennet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 18796 { echo "$as_me:$LINENO: WARNING: opennet.h: proceeding with the compiler's result" >&5 18797 echo "$as_me: WARNING: opennet.h: proceeding with the compiler's result" >&2;} 18798 ac_header_preproc=yes 18799 ;; 18800 no:yes:* ) 18801 { echo "$as_me:$LINENO: WARNING: opennet.h: present but cannot be compiled" >&5 18802 echo "$as_me: WARNING: opennet.h: present but cannot be compiled" >&2;} 18803 { echo "$as_me:$LINENO: WARNING: opennet.h: check for missing prerequisite headers?" >&5 18804 echo "$as_me: WARNING: opennet.h: check for missing prerequisite headers?" >&2;} 18805 { echo "$as_me:$LINENO: WARNING: opennet.h: see the Autoconf documentation" >&5 18806 echo "$as_me: WARNING: opennet.h: see the Autoconf documentation" >&2;} 18807 { echo "$as_me:$LINENO: WARNING: opennet.h: section \"Present But Cannot Be Compiled\"" >&5 18808 echo "$as_me: WARNING: opennet.h: section \"Present But Cannot Be Compiled\"" >&2;} 18809 { echo "$as_me:$LINENO: WARNING: opennet.h: proceeding with the preprocessor's result" >&5 18810 echo "$as_me: WARNING: opennet.h: proceeding with the preprocessor's result" >&2;} 18811 { echo "$as_me:$LINENO: WARNING: opennet.h: in the future, the compiler will take precedence" >&5 18812 echo "$as_me: WARNING: opennet.h: in the future, the compiler will take precedence" >&2;} 18813 ( 18814 cat <<\_ASBOX 18815 ## ------------------------------------ ## 18816 ## Report this to the backuppcd lists. ## 18817 ## ------------------------------------ ## 18818 _ASBOX 18819 ) | 18820 sed "s/^/$as_me: WARNING: /" >&2 18821 ;; 18822 esac 18823 echo "$as_me:$LINENO: checking for opennet.h" >&5 18824 echo $ECHO_N "checking for opennet.h... $ECHO_C" >&6 18825 if test "${ac_cv_header_opennet_h+set}" = set; then 18826 echo $ECHO_N "(cached) $ECHO_C" >&6 18827 else 18828 ac_cv_header_opennet_h=$ac_header_preproc 18829 fi 18830 echo "$as_me:$LINENO: result: $ac_cv_header_opennet_h" >&5 18831 echo "${ECHO_T}$ac_cv_header_opennet_h" >&6 18832 18833 fi 18834 if test $ac_cv_header_opennet_h = yes; then 18835 18836 LIBSPEC=yes 18837 18838 else 18839 18840 LIBSPEC=no 18841 18842 fi 18843 18844 18845 fi 18846 CPPFLAGS="$OLDCPPFLAGS" 18847 CFLAGS="$OLDCFLAGS" 18848 18849 else 18850 18851 unset `set | grep _cv_ | cut -f 1 -d =` 18852 18853 LIBSPECFLAGS="" 18854 echo "$as_me:$LINENO: checking for fopen_net in -lopennet" >&5 18855 echo $ECHO_N "checking for fopen_net in -lopennet... $ECHO_C" >&6 18856 if test "${ac_cv_lib_opennet_fopen_net+set}" = set; then 18857 echo $ECHO_N "(cached) $ECHO_C" >&6 18858 else 18859 ac_check_lib_save_LIBS=$LIBS 18860 LIBS="-lopennet $LIBSPECFLAGS $LIBS" 18861 cat >conftest.$ac_ext <<_ACEOF 18862 /* confdefs.h. */ 18863 _ACEOF 18864 cat confdefs.h >>conftest.$ac_ext 18865 cat >>conftest.$ac_ext <<_ACEOF 18866 /* end confdefs.h. */ 18867 18868 /* Override any gcc2 internal prototype to avoid an error. */ 18869 #ifdef __cplusplus 18870 extern "C" 18871 #endif 18872 /* We use char because int might match the return type of a gcc2 18873 builtin and then its argument prototype would still apply. */ 18874 char fopen_net (); 18875 int 18876 main () 18877 { 18878 fopen_net (); 18879 ; 18880 return 0; 18881 } 18882 _ACEOF 18883 rm -f conftest.$ac_objext conftest$ac_exeext 18884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18885 (eval $ac_link) 2>conftest.er1 18886 ac_status=$? 18887 grep -v '^ *+' conftest.er1 >conftest.err 18888 rm -f conftest.er1 18889 cat conftest.err >&5 18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18891 (exit $ac_status); } && 18892 { ac_try='test -z "$ac_c_werror_flag" 18893 || test ! -s conftest.err' 18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18895 (eval $ac_try) 2>&5 18896 ac_status=$? 18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18898 (exit $ac_status); }; } && 18899 { ac_try='test -s conftest$ac_exeext' 18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18901 (eval $ac_try) 2>&5 18902 ac_status=$? 18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18904 (exit $ac_status); }; }; then 18905 ac_cv_lib_opennet_fopen_net=yes 18906 else 18907 echo "$as_me: failed program was:" >&5 18908 sed 's/^/| /' conftest.$ac_ext >&5 18909 18910 ac_cv_lib_opennet_fopen_net=no 18911 fi 18912 rm -f conftest.err conftest.$ac_objext \ 18913 conftest$ac_exeext conftest.$ac_ext 18914 LIBS=$ac_check_lib_save_LIBS 18915 fi 18916 echo "$as_me:$LINENO: result: $ac_cv_lib_opennet_fopen_net" >&5 18917 echo "${ECHO_T}$ac_cv_lib_opennet_fopen_net" >&6 18918 if test $ac_cv_lib_opennet_fopen_net = yes; then 18919 18920 OLDCPPFLAGS="$CPPFLAGS" 18921 OLDCFLAGS="$CFLAGS" 18922 CPPFLAGS="$CPPFLAGS $LIBSPECCFLAGS" 18923 CFLAGS="$CFLAGS $LIBSPECCFLAGS" 18924 if test -n "opennet.h" ; then 18925 if test "${ac_cv_header_opennet_h+set}" = set; then 18926 echo "$as_me:$LINENO: checking for opennet.h" >&5 18927 echo $ECHO_N "checking for opennet.h... $ECHO_C" >&6 18928 if test "${ac_cv_header_opennet_h+set}" = set; then 18929 echo $ECHO_N "(cached) $ECHO_C" >&6 18930 fi 18931 echo "$as_me:$LINENO: result: $ac_cv_header_opennet_h" >&5 18932 echo "${ECHO_T}$ac_cv_header_opennet_h" >&6 18933 else 18934 # Is the header compilable? 18935 echo "$as_me:$LINENO: checking opennet.h usability" >&5 18936 echo $ECHO_N "checking opennet.h usability... $ECHO_C" >&6 18937 cat >conftest.$ac_ext <<_ACEOF 18938 /* confdefs.h. */ 18939 _ACEOF 18940 cat confdefs.h >>conftest.$ac_ext 18941 cat >>conftest.$ac_ext <<_ACEOF 18942 /* end confdefs.h. */ 18943 $ac_includes_default 18944 #include <opennet.h> 18945 _ACEOF 18946 rm -f conftest.$ac_objext 18947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18948 (eval $ac_compile) 2>conftest.er1 18949 ac_status=$? 18950 grep -v '^ *+' conftest.er1 >conftest.err 18951 rm -f conftest.er1 18952 cat conftest.err >&5 18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18954 (exit $ac_status); } && 18955 { ac_try='test -z "$ac_c_werror_flag" 18956 || test ! -s conftest.err' 18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18958 (eval $ac_try) 2>&5 18959 ac_status=$? 18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18961 (exit $ac_status); }; } && 18962 { ac_try='test -s conftest.$ac_objext' 18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18964 (eval $ac_try) 2>&5 18965 ac_status=$? 18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18967 (exit $ac_status); }; }; then 18968 ac_header_compiler=yes 18969 else 18970 echo "$as_me: failed program was:" >&5 18971 sed 's/^/| /' conftest.$ac_ext >&5 18972 18973 ac_header_compiler=no 18974 fi 18975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18977 echo "${ECHO_T}$ac_header_compiler" >&6 18978 18979 # Is the header present? 18980 echo "$as_me:$LINENO: checking opennet.h presence" >&5 18981 echo $ECHO_N "checking opennet.h presence... $ECHO_C" >&6 18982 cat >conftest.$ac_ext <<_ACEOF 18983 /* confdefs.h. */ 18984 _ACEOF 18985 cat confdefs.h >>conftest.$ac_ext 18986 cat >>conftest.$ac_ext <<_ACEOF 18987 /* end confdefs.h. */ 18988 #include <opennet.h> 18989 _ACEOF 18990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 18991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 18992 ac_status=$? 18993 grep -v '^ *+' conftest.er1 >conftest.err 18994 rm -f conftest.er1 18995 cat conftest.err >&5 18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18997 (exit $ac_status); } >/dev/null; then 18998 if test -s conftest.err; then 18999 ac_cpp_err=$ac_c_preproc_warn_flag 19000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19001 else 19002 ac_cpp_err= 19003 fi 19004 else 19005 ac_cpp_err=yes 19006 fi 19007 if test -z "$ac_cpp_err"; then 19008 ac_header_preproc=yes 19009 else 19010 echo "$as_me: failed program was:" >&5 19011 sed 's/^/| /' conftest.$ac_ext >&5 19012 19013 ac_header_preproc=no 19014 fi 19015 rm -f conftest.err conftest.$ac_ext 19016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19017 echo "${ECHO_T}$ac_header_preproc" >&6 19018 19019 # So? What about this header? 19020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19021 yes:no: ) 19022 { echo "$as_me:$LINENO: WARNING: opennet.h: accepted by the compiler, rejected by the preprocessor!" >&5 19023 echo "$as_me: WARNING: opennet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 19024 { echo "$as_me:$LINENO: WARNING: opennet.h: proceeding with the compiler's result" >&5 19025 echo "$as_me: WARNING: opennet.h: proceeding with the compiler's result" >&2;} 19026 ac_header_preproc=yes 19027 ;; 19028 no:yes:* ) 19029 { echo "$as_me:$LINENO: WARNING: opennet.h: present but cannot be compiled" >&5 19030 echo "$as_me: WARNING: opennet.h: present but cannot be compiled" >&2;} 19031 { echo "$as_me:$LINENO: WARNING: opennet.h: check for missing prerequisite headers?" >&5 19032 echo "$as_me: WARNING: opennet.h: check for missing prerequisite headers?" >&2;} 19033 { echo "$as_me:$LINENO: WARNING: opennet.h: see the Autoconf documentation" >&5 19034 echo "$as_me: WARNING: opennet.h: see the Autoconf documentation" >&2;} 19035 { echo "$as_me:$LINENO: WARNING: opennet.h: section \"Present But Cannot Be Compiled\"" >&5 19036 echo "$as_me: WARNING: opennet.h: section \"Present But Cannot Be Compiled\"" >&2;} 19037 { echo "$as_me:$LINENO: WARNING: opennet.h: proceeding with the preprocessor's result" >&5 19038 echo "$as_me: WARNING: opennet.h: proceeding with the preprocessor's result" >&2;} 19039 { echo "$as_me:$LINENO: WARNING: opennet.h: in the future, the compiler will take precedence" >&5 19040 echo "$as_me: WARNING: opennet.h: in the future, the compiler will take precedence" >&2;} 19041 ( 19042 cat <<\_ASBOX 19043 ## ------------------------------------ ## 19044 ## Report this to the backuppcd lists. ## 19045 ## ------------------------------------ ## 19046 _ASBOX 19047 ) | 19048 sed "s/^/$as_me: WARNING: /" >&2 19049 ;; 19050 esac 19051 echo "$as_me:$LINENO: checking for opennet.h" >&5 19052 echo $ECHO_N "checking for opennet.h... $ECHO_C" >&6 19053 if test "${ac_cv_header_opennet_h+set}" = set; then 19054 echo $ECHO_N "(cached) $ECHO_C" >&6 19055 else 19056 ac_cv_header_opennet_h=$ac_header_preproc 19057 fi 19058 echo "$as_me:$LINENO: result: $ac_cv_header_opennet_h" >&5 19059 echo "${ECHO_T}$ac_cv_header_opennet_h" >&6 19060 19061 fi 19062 if test $ac_cv_header_opennet_h = yes; then 19063 19064 LIBSPEC=yes 19065 19066 else 19067 19068 LIBSPEC=no 19069 19070 fi 19071 19072 19073 fi 19074 CPPFLAGS="$OLDCPPFLAGS" 19075 CFLAGS="$OLDCFLAGS" 19076 19077 else 19078 19079 LIBSPEC=no 19080 19081 { echo "$as_me:$LINENO: WARNING: Did not find opennet" >&5 19082 echo "$as_me: WARNING: Did not find opennet" >&2;} 19083 19084 fi 19085 19086 19087 fi 19088 19089 else 19090 LIBSPEC=no 19091 19092 { echo "$as_me:$LINENO: WARNING: Did not find opennet" >&5 19093 echo "$as_me: WARNING: Did not find opennet" >&2;} 19094 fi 19095 19096 fi 19097 19098 19099 fi; 19100 case $LIBSPEC in 19101 no) 19102 19103 { echo "$as_me:$LINENO: WARNING: Support for opennet disabled" >&5 19104 echo "$as_me: WARNING: Support for opennet disabled" >&2;} 19105 ;; 19106 *) 19107 if test "${LIBSPEC}" = "yes"; then 19108 true 19109 else 19110 LIBSPECLIBDIR="${LIBSPEC}/lib" 19111 LIBSPECFLAGS="-L${LIBSPEC}/lib ${LIBSPECFLAGS}" 19112 LIBSPECCFLAGS="-I${LIBSPEC}/include ${LIBSPECCFLAGS}" 19113 fi 19114 echo "$as_me:$LINENO: checking for fopen_net in -lopennet" >&5 19115 echo $ECHO_N "checking for fopen_net in -lopennet... $ECHO_C" >&6 19116 if test "${ac_cv_lib_opennet_fopen_net+set}" = set; then 19117 echo $ECHO_N "(cached) $ECHO_C" >&6 19118 else 19119 ac_check_lib_save_LIBS=$LIBS 19120 LIBS="-lopennet $LIBSPECFLAGS $LIBS" 19121 cat >conftest.$ac_ext <<_ACEOF 19122 /* confdefs.h. */ 19123 _ACEOF 19124 cat confdefs.h >>conftest.$ac_ext 19125 cat >>conftest.$ac_ext <<_ACEOF 19126 /* end confdefs.h. */ 19127 19128 /* Override any gcc2 internal prototype to avoid an error. */ 19129 #ifdef __cplusplus 19130 extern "C" 19131 #endif 19132 /* We use char because int might match the return type of a gcc2 19133 builtin and then its argument prototype would still apply. */ 19134 char fopen_net (); 19135 int 19136 main () 19137 { 19138 fopen_net (); 19139 ; 19140 return 0; 19141 } 19142 _ACEOF 19143 rm -f conftest.$ac_objext conftest$ac_exeext 19144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19145 (eval $ac_link) 2>conftest.er1 19146 ac_status=$? 19147 grep -v '^ *+' conftest.er1 >conftest.err 19148 rm -f conftest.er1 19149 cat conftest.err >&5 19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19151 (exit $ac_status); } && 19152 { ac_try='test -z "$ac_c_werror_flag" 19153 || test ! -s conftest.err' 19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19155 (eval $ac_try) 2>&5 19156 ac_status=$? 19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19158 (exit $ac_status); }; } && 19159 { ac_try='test -s conftest$ac_exeext' 19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19161 (eval $ac_try) 2>&5 19162 ac_status=$? 19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19164 (exit $ac_status); }; }; then 19165 ac_cv_lib_opennet_fopen_net=yes 19166 else 19167 echo "$as_me: failed program was:" >&5 19168 sed 's/^/| /' conftest.$ac_ext >&5 19169 19170 ac_cv_lib_opennet_fopen_net=no 19171 fi 19172 rm -f conftest.err conftest.$ac_objext \ 19173 conftest$ac_exeext conftest.$ac_ext 19174 LIBS=$ac_check_lib_save_LIBS 19175 fi 19176 echo "$as_me:$LINENO: result: $ac_cv_lib_opennet_fopen_net" >&5 19177 echo "${ECHO_T}$ac_cv_lib_opennet_fopen_net" >&6 19178 if test $ac_cv_lib_opennet_fopen_net = yes; then 19179 19180 OLDCFLAGS="$CFLAGS" 19181 OLDCPPFLAGS="$CPPFLAGS" 19182 CPPFLAGS="$CPPFLAGS ${LIBSPECCFLAGS}" 19183 CFLAGS="$CFLAGS ${LIBSPECCFLAGS}" 19184 if test -n "opennet.h"; then 19185 if test "${ac_cv_header_opennet_h+set}" = set; then 19186 echo "$as_me:$LINENO: checking for opennet.h" >&5 19187 echo $ECHO_N "checking for opennet.h... $ECHO_C" >&6 19188 if test "${ac_cv_header_opennet_h+set}" = set; then 19189 echo $ECHO_N "(cached) $ECHO_C" >&6 19190 fi 19191 echo "$as_me:$LINENO: result: $ac_cv_header_opennet_h" >&5 19192 echo "${ECHO_T}$ac_cv_header_opennet_h" >&6 19193 else 19194 # Is the header compilable? 19195 echo "$as_me:$LINENO: checking opennet.h usability" >&5 19196 echo $ECHO_N "checking opennet.h usability... $ECHO_C" >&6 19197 cat >conftest.$ac_ext <<_ACEOF 19198 /* confdefs.h. */ 19199 _ACEOF 19200 cat confdefs.h >>conftest.$ac_ext 19201 cat >>conftest.$ac_ext <<_ACEOF 19202 /* end confdefs.h. */ 19203 $ac_includes_default 19204 #include <opennet.h> 19205 _ACEOF 19206 rm -f conftest.$ac_objext 19207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19208 (eval $ac_compile) 2>conftest.er1 19209 ac_status=$? 19210 grep -v '^ *+' conftest.er1 >conftest.err 19211 rm -f conftest.er1 19212 cat conftest.err >&5 19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19214 (exit $ac_status); } && 19215 { ac_try='test -z "$ac_c_werror_flag" 19216 || test ! -s conftest.err' 19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19218 (eval $ac_try) 2>&5 19219 ac_status=$? 19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19221 (exit $ac_status); }; } && 19222 { ac_try='test -s conftest.$ac_objext' 19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19224 (eval $ac_try) 2>&5 19225 ac_status=$? 19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19227 (exit $ac_status); }; }; then 19228 ac_header_compiler=yes 19229 else 19230 echo "$as_me: failed program was:" >&5 19231 sed 's/^/| /' conftest.$ac_ext >&5 19232 19233 ac_header_compiler=no 19234 fi 19235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19237 echo "${ECHO_T}$ac_header_compiler" >&6 19238 19239 # Is the header present? 19240 echo "$as_me:$LINENO: checking opennet.h presence" >&5 19241 echo $ECHO_N "checking opennet.h presence... $ECHO_C" >&6 19242 cat >conftest.$ac_ext <<_ACEOF 19243 /* confdefs.h. */ 19244 _ACEOF 19245 cat confdefs.h >>conftest.$ac_ext 19246 cat >>conftest.$ac_ext <<_ACEOF 19247 /* end confdefs.h. */ 19248 #include <opennet.h> 19249 _ACEOF 19250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19252 ac_status=$? 19253 grep -v '^ *+' conftest.er1 >conftest.err 19254 rm -f conftest.er1 19255 cat conftest.err >&5 19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19257 (exit $ac_status); } >/dev/null; then 19258 if test -s conftest.err; then 19259 ac_cpp_err=$ac_c_preproc_warn_flag 19260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19261 else 19262 ac_cpp_err= 19263 fi 19264 else 19265 ac_cpp_err=yes 19266 fi 19267 if test -z "$ac_cpp_err"; then 19268 ac_header_preproc=yes 19269 else 19270 echo "$as_me: failed program was:" >&5 19271 sed 's/^/| /' conftest.$ac_ext >&5 19272 19273 ac_header_preproc=no 19274 fi 19275 rm -f conftest.err conftest.$ac_ext 19276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19277 echo "${ECHO_T}$ac_header_preproc" >&6 19278 19279 # So? What about this header? 19280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19281 yes:no: ) 19282 { echo "$as_me:$LINENO: WARNING: opennet.h: accepted by the compiler, rejected by the preprocessor!" >&5 19283 echo "$as_me: WARNING: opennet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 19284 { echo "$as_me:$LINENO: WARNING: opennet.h: proceeding with the compiler's result" >&5 19285 echo "$as_me: WARNING: opennet.h: proceeding with the compiler's result" >&2;} 19286 ac_header_preproc=yes 19287 ;; 19288 no:yes:* ) 19289 { echo "$as_me:$LINENO: WARNING: opennet.h: present but cannot be compiled" >&5 19290 echo "$as_me: WARNING: opennet.h: present but cannot be compiled" >&2;} 19291 { echo "$as_me:$LINENO: WARNING: opennet.h: check for missing prerequisite headers?" >&5 19292 echo "$as_me: WARNING: opennet.h: check for missing prerequisite headers?" >&2;} 19293 { echo "$as_me:$LINENO: WARNING: opennet.h: see the Autoconf documentation" >&5 19294 echo "$as_me: WARNING: opennet.h: see the Autoconf documentation" >&2;} 19295 { echo "$as_me:$LINENO: WARNING: opennet.h: section \"Present But Cannot Be Compiled\"" >&5 19296 echo "$as_me: WARNING: opennet.h: section \"Present But Cannot Be Compiled\"" >&2;} 19297 { echo "$as_me:$LINENO: WARNING: opennet.h: proceeding with the preprocessor's result" >&5 19298 echo "$as_me: WARNING: opennet.h: proceeding with the preprocessor's result" >&2;} 19299 { echo "$as_me:$LINENO: WARNING: opennet.h: in the future, the compiler will take precedence" >&5 19300 echo "$as_me: WARNING: opennet.h: in the future, the compiler will take precedence" >&2;} 19301 ( 19302 cat <<\_ASBOX 19303 ## ------------------------------------ ## 19304 ## Report this to the backuppcd lists. ## 19305 ## ------------------------------------ ## 19306 _ASBOX 19307 ) | 19308 sed "s/^/$as_me: WARNING: /" >&2 19309 ;; 19310 esac 19311 echo "$as_me:$LINENO: checking for opennet.h" >&5 19312 echo $ECHO_N "checking for opennet.h... $ECHO_C" >&6 19313 if test "${ac_cv_header_opennet_h+set}" = set; then 19314 echo $ECHO_N "(cached) $ECHO_C" >&6 19315 else 19316 ac_cv_header_opennet_h=$ac_header_preproc 19317 fi 19318 echo "$as_me:$LINENO: result: $ac_cv_header_opennet_h" >&5 19319 echo "${ECHO_T}$ac_cv_header_opennet_h" >&6 19320 19321 fi 19322 if test $ac_cv_header_opennet_h = yes; then 19323 19324 headerok="yes" 19325 19326 else 19327 19328 headerok="no" 19329 19330 fi 19331 19332 19333 else 19334 headerok="yes" 19335 fi 19336 19337 if test $headerok = "yes"; then 19338 if test -n "HAVE_OPENNET_H" -a -n "opennet.h"; then 19339 19340 cat >>confdefs.h <<\_ACEOF 19341 #define HAVE_OPENNET_H 1 19342 _ACEOF 19343 19344 fi 19345 if test -n "HAVE_LIBOPENNET" -a -n "fopen_net"; then 19346 19347 cat >>confdefs.h <<\_ACEOF 19348 #define HAVE_LIBOPENNET 1 19349 _ACEOF 19350 19351 fi 19352 LDFLAGS="$LIBSPECFLAGS $LDFLAGS" 19353 if test -n "$LIBSPECLIBDIR"; then 19354 19355 OLD_LDFLAGS="$LDFLAGS" 19356 19357 LDRUNPATH="" 19358 for testldflags in "-Wl,-rpath -Wl,$LIBSPECLIBDIR" "-Wl,-R -Wl,$LIBSPECLIBDIR"; do 19359 LDFLAGS="$OLD_LDFLAGS $testldflags" 19360 cat >conftest.$ac_ext <<_ACEOF 19361 /* confdefs.h. */ 19362 _ACEOF 19363 cat confdefs.h >>conftest.$ac_ext 19364 cat >>conftest.$ac_ext <<_ACEOF 19365 /* end confdefs.h. */ 19366 #include <stdio.h> 19367 int 19368 main () 19369 { 19370 return(0); 19371 ; 19372 return 0; 19373 } 19374 _ACEOF 19375 rm -f conftest.$ac_objext conftest$ac_exeext 19376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19377 (eval $ac_link) 2>conftest.er1 19378 ac_status=$? 19379 grep -v '^ *+' conftest.er1 >conftest.err 19380 rm -f conftest.er1 19381 cat conftest.err >&5 19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19383 (exit $ac_status); } && 19384 { ac_try='test -z "$ac_c_werror_flag" 19385 || test ! -s conftest.err' 19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19387 (eval $ac_try) 2>&5 19388 ac_status=$? 19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19390 (exit $ac_status); }; } && 19391 { ac_try='test -s conftest$ac_exeext' 19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19393 (eval $ac_try) 2>&5 19394 ac_status=$? 19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19396 (exit $ac_status); }; }; then 19397 LDRUNPATH="$LDRUNPATH $testldflags"; break 19398 else 19399 echo "$as_me: failed program was:" >&5 19400 sed 's/^/| /' conftest.$ac_ext >&5 19401 19402 fi 19403 rm -f conftest.err conftest.$ac_objext \ 19404 conftest$ac_exeext conftest.$ac_ext; 19405 done 19406 19407 LDFLAGS="$OLD_LDFLAGS" 19408 if test -n "$LDRUNPATH"; then 19409 LDFLAGS="$LDRUNPATH $LDFLAGS" 19410 fi 19411 19412 fi 19413 LIBS="-lopennet $LIBS" 19414 else 19415 CFLAGS="$OLDCFLAGS" 19416 CPPFLAGS="$OLDCPPFLAGS" 19417 19418 { { echo "$as_me:$LINENO: error: Could not find opennet.h" >&5 19419 echo "$as_me: error: Could not find opennet.h" >&2;} 19420 { (exit 1); exit 1; }; } 19421 fi 19422 19423 else 19424 19425 { { echo "$as_me:$LINENO: error: Could not find opennet" >&5 19426 echo "$as_me: error: Could not find opennet" >&2;} 19427 { (exit 1); exit 1; }; } 19428 19429 fi 19430 19431 ;; 19432 esac 19433 19434 19435 19436 LIBSPECLIBDIR="" 19437 19438 # Check whether --with-openssl or --without-openssl was given. 19439 if test "${with_openssl+set}" = set; then 19440 withval="$with_openssl" 19441 19442 # Specified 19443 LIBSPEC=$withval 19444 19445 else 19446 19447 # Not specified 19448 LIBSPECFLAGS="`pkg-config --libs openssl 2>/dev/null`" 19449 LIBSPECCFLAGS="`pkg-config --cflags openssl 2>/dev/null`" 19450 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 19451 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 19452 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then 19453 echo $ECHO_N "(cached) $ECHO_C" >&6 19454 else 19455 ac_check_lib_save_LIBS=$LIBS 19456 LIBS="-lssl $LIBSPECFLAGS $LIBS" 19457 cat >conftest.$ac_ext <<_ACEOF 19458 /* confdefs.h. */ 19459 _ACEOF 19460 cat confdefs.h >>conftest.$ac_ext 19461 cat >>conftest.$ac_ext <<_ACEOF 19462 /* end confdefs.h. */ 19463 19464 /* Override any gcc2 internal prototype to avoid an error. */ 19465 #ifdef __cplusplus 19466 extern "C" 19467 #endif 19468 /* We use char because int might match the return type of a gcc2 19469 builtin and then its argument prototype would still apply. */ 19470 char SSL_library_init (); 19471 int 19472 main () 19473 { 19474 SSL_library_init (); 19475 ; 19476 return 0; 19477 } 19478 _ACEOF 19479 rm -f conftest.$ac_objext conftest$ac_exeext 19480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19481 (eval $ac_link) 2>conftest.er1 19482 ac_status=$? 19483 grep -v '^ *+' conftest.er1 >conftest.err 19484 rm -f conftest.er1 19485 cat conftest.err >&5 19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19487 (exit $ac_status); } && 19488 { ac_try='test -z "$ac_c_werror_flag" 19489 || test ! -s conftest.err' 19490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19491 (eval $ac_try) 2>&5 19492 ac_status=$? 19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19494 (exit $ac_status); }; } && 19495 { ac_try='test -s conftest$ac_exeext' 19496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19497 (eval $ac_try) 2>&5 19498 ac_status=$? 19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19500 (exit $ac_status); }; }; then 19501 ac_cv_lib_ssl_SSL_library_init=yes 19502 else 19503 echo "$as_me: failed program was:" >&5 19504 sed 's/^/| /' conftest.$ac_ext >&5 19505 19506 ac_cv_lib_ssl_SSL_library_init=no 19507 fi 19508 rm -f conftest.err conftest.$ac_objext \ 19509 conftest$ac_exeext conftest.$ac_ext 19510 LIBS=$ac_check_lib_save_LIBS 19511 fi 19512 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 19513 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 19514 if test $ac_cv_lib_ssl_SSL_library_init = yes; then 19515 19516 OLDCPPFLAGS="$CPPFLAGS" 19517 OLDCFLAGS="$CFLAGS" 19518 CPPFLAGS="$CPPFLAGS $LIBSPECCFLAGS" 19519 CFLAGS="$CFLAGS $LIBSPECCFLAGS" 19520 if test -n "" ; then 19521 if test "${ac_cv_header_+set}" = set; then 19522 echo "$as_me:$LINENO: checking for " >&5 19523 echo $ECHO_N "checking for ... $ECHO_C" >&6 19524 if test "${ac_cv_header_+set}" = set; then 19525 echo $ECHO_N "(cached) $ECHO_C" >&6 19526 fi 19527 echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 19528 echo "${ECHO_T}$ac_cv_header_" >&6 19529 else 19530 # Is the header compilable? 19531 echo "$as_me:$LINENO: checking usability" >&5 19532 echo $ECHO_N "checking usability... $ECHO_C" >&6 19533 cat >conftest.$ac_ext <<_ACEOF 19534 /* confdefs.h. */ 19535 _ACEOF 19536 cat confdefs.h >>conftest.$ac_ext 19537 cat >>conftest.$ac_ext <<_ACEOF 19538 /* end confdefs.h. */ 19539 $ac_includes_default 19540 #include <> 19541 _ACEOF 19542 rm -f conftest.$ac_objext 19543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19544 (eval $ac_compile) 2>conftest.er1 19545 ac_status=$? 19546 grep -v '^ *+' conftest.er1 >conftest.err 19547 rm -f conftest.er1 19548 cat conftest.err >&5 19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19550 (exit $ac_status); } && 19551 { ac_try='test -z "$ac_c_werror_flag" 19552 || test ! -s conftest.err' 19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19554 (eval $ac_try) 2>&5 19555 ac_status=$? 19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19557 (exit $ac_status); }; } && 19558 { ac_try='test -s conftest.$ac_objext' 19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19560 (eval $ac_try) 2>&5 19561 ac_status=$? 19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19563 (exit $ac_status); }; }; then 19564 ac_header_compiler=yes 19565 else 19566 echo "$as_me: failed program was:" >&5 19567 sed 's/^/| /' conftest.$ac_ext >&5 19568 19569 ac_header_compiler=no 19570 fi 19571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19573 echo "${ECHO_T}$ac_header_compiler" >&6 19574 19575 # Is the header present? 19576 echo "$as_me:$LINENO: checking presence" >&5 19577 echo $ECHO_N "checking presence... $ECHO_C" >&6 19578 cat >conftest.$ac_ext <<_ACEOF 19579 /* confdefs.h. */ 19580 _ACEOF 19581 cat confdefs.h >>conftest.$ac_ext 19582 cat >>conftest.$ac_ext <<_ACEOF 19583 /* end confdefs.h. */ 19584 #include <> 19585 _ACEOF 19586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19588 ac_status=$? 19589 grep -v '^ *+' conftest.er1 >conftest.err 19590 rm -f conftest.er1 19591 cat conftest.err >&5 19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19593 (exit $ac_status); } >/dev/null; then 19594 if test -s conftest.err; then 19595 ac_cpp_err=$ac_c_preproc_warn_flag 19596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19597 else 19598 ac_cpp_err= 19599 fi 19600 else 19601 ac_cpp_err=yes 19602 fi 19603 if test -z "$ac_cpp_err"; then 19604 ac_header_preproc=yes 19605 else 19606 echo "$as_me: failed program was:" >&5 19607 sed 's/^/| /' conftest.$ac_ext >&5 19608 19609 ac_header_preproc=no 19610 fi 19611 rm -f conftest.err conftest.$ac_ext 19612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19613 echo "${ECHO_T}$ac_header_preproc" >&6 19614 19615 # So? What about this header? 19616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19617 yes:no: ) 19618 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5 19619 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;} 19620 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5 19621 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;} 19622 ac_header_preproc=yes 19623 ;; 19624 no:yes:* ) 19625 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5 19626 echo "$as_me: WARNING: : present but cannot be compiled" >&2;} 19627 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5 19628 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;} 19629 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5 19630 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;} 19631 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5 19632 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;} 19633 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5 19634 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;} 19635 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5 19636 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;} 19637 ( 19638 cat <<\_ASBOX 19639 ## ------------------------------------ ## 19640 ## Report this to the backuppcd lists. ## 19641 ## ------------------------------------ ## 19642 _ASBOX 19643 ) | 19644 sed "s/^/$as_me: WARNING: /" >&2 19645 ;; 19646 esac 19647 echo "$as_me:$LINENO: checking for " >&5 19648 echo $ECHO_N "checking for ... $ECHO_C" >&6 19649 if test "${ac_cv_header_+set}" = set; then 19650 echo $ECHO_N "(cached) $ECHO_C" >&6 19651 else 19652 ac_cv_header_=$ac_header_preproc 19653 fi 19654 echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 19655 echo "${ECHO_T}$ac_cv_header_" >&6 19656 19657 fi 19658 if test $ac_cv_header_ = yes; then 19659 19660 LIBSPEC=yes 19661 19662 else 19663 19664 LIBSPEC=no 19665 19666 fi 19667 19668 19669 fi 19670 CPPFLAGS="$OLDCPPFLAGS" 19671 CFLAGS="$OLDCFLAGS" 19672 19673 else 19674 19675 if test -n "-lwsock32 -lcrypto -lgdi32"; then 19676 19677 unset `set | grep _cv_ | cut -f 1 -d =` 19678 19679 LIBSPECFLAGS="-lwsock32 -lcrypto -lgdi32 $LIBSPECFLAGS" 19680 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 19681 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 19682 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then 19683 echo $ECHO_N "(cached) $ECHO_C" >&6 19684 else 19685 ac_check_lib_save_LIBS=$LIBS 19686 LIBS="-lssl $LIBSPECFLAGS $LIBS" 19687 cat >conftest.$ac_ext <<_ACEOF 19688 /* confdefs.h. */ 19689 _ACEOF 19690 cat confdefs.h >>conftest.$ac_ext 19691 cat >>conftest.$ac_ext <<_ACEOF 19692 /* end confdefs.h. */ 19693 19694 /* Override any gcc2 internal prototype to avoid an error. */ 19695 #ifdef __cplusplus 19696 extern "C" 19697 #endif 19698 /* We use char because int might match the return type of a gcc2 19699 builtin and then its argument prototype would still apply. */ 19700 char SSL_library_init (); 19701 int 19702 main () 19703 { 19704 SSL_library_init (); 19705 ; 19706 return 0; 19707 } 19708 _ACEOF 19709 rm -f conftest.$ac_objext conftest$ac_exeext 19710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19711 (eval $ac_link) 2>conftest.er1 19712 ac_status=$? 19713 grep -v '^ *+' conftest.er1 >conftest.err 19714 rm -f conftest.er1 19715 cat conftest.err >&5 19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19717 (exit $ac_status); } && 19718 { ac_try='test -z "$ac_c_werror_flag" 19719 || test ! -s conftest.err' 19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19721 (eval $ac_try) 2>&5 19722 ac_status=$? 19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19724 (exit $ac_status); }; } && 19725 { ac_try='test -s conftest$ac_exeext' 19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19727 (eval $ac_try) 2>&5 19728 ac_status=$? 19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19730 (exit $ac_status); }; }; then 19731 ac_cv_lib_ssl_SSL_library_init=yes 19732 else 19733 echo "$as_me: failed program was:" >&5 19734 sed 's/^/| /' conftest.$ac_ext >&5 19735 19736 ac_cv_lib_ssl_SSL_library_init=no 19737 fi 19738 rm -f conftest.err conftest.$ac_objext \ 19739 conftest$ac_exeext conftest.$ac_ext 19740 LIBS=$ac_check_lib_save_LIBS 19741 fi 19742 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 19743 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 19744 if test $ac_cv_lib_ssl_SSL_library_init = yes; then 19745 19746 OLDCPPFLAGS="$CPPFLAGS" 19747 OLDCFLAGS="$CFLAGS" 19748 CPPFLAGS="$CPPFLAGS $LIBSPECCFLAGS" 19749 CFLAGS="$CFLAGS $LIBSPECCFLAGS" 19750 if test -n "" ; then 19751 if test "${ac_cv_header_+set}" = set; then 19752 echo "$as_me:$LINENO: checking for " >&5 19753 echo $ECHO_N "checking for ... $ECHO_C" >&6 19754 if test "${ac_cv_header_+set}" = set; then 19755 echo $ECHO_N "(cached) $ECHO_C" >&6 19756 fi 19757 echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 19758 echo "${ECHO_T}$ac_cv_header_" >&6 19759 else 19760 # Is the header compilable? 19761 echo "$as_me:$LINENO: checking usability" >&5 19762 echo $ECHO_N "checking usability... $ECHO_C" >&6 19763 cat >conftest.$ac_ext <<_ACEOF 19764 /* confdefs.h. */ 19765 _ACEOF 19766 cat confdefs.h >>conftest.$ac_ext 19767 cat >>conftest.$ac_ext <<_ACEOF 19768 /* end confdefs.h. */ 19769 $ac_includes_default 19770 #include <> 19771 _ACEOF 19772 rm -f conftest.$ac_objext 19773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19774 (eval $ac_compile) 2>conftest.er1 19775 ac_status=$? 19776 grep -v '^ *+' conftest.er1 >conftest.err 19777 rm -f conftest.er1 19778 cat conftest.err >&5 19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19780 (exit $ac_status); } && 19781 { ac_try='test -z "$ac_c_werror_flag" 19782 || test ! -s conftest.err' 19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19784 (eval $ac_try) 2>&5 19785 ac_status=$? 19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19787 (exit $ac_status); }; } && 19788 { ac_try='test -s conftest.$ac_objext' 19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19790 (eval $ac_try) 2>&5 19791 ac_status=$? 19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19793 (exit $ac_status); }; }; then 19794 ac_header_compiler=yes 19795 else 19796 echo "$as_me: failed program was:" >&5 19797 sed 's/^/| /' conftest.$ac_ext >&5 19798 19799 ac_header_compiler=no 19800 fi 19801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19803 echo "${ECHO_T}$ac_header_compiler" >&6 19804 19805 # Is the header present? 19806 echo "$as_me:$LINENO: checking presence" >&5 19807 echo $ECHO_N "checking presence... $ECHO_C" >&6 19808 cat >conftest.$ac_ext <<_ACEOF 19809 /* confdefs.h. */ 19810 _ACEOF 19811 cat confdefs.h >>conftest.$ac_ext 19812 cat >>conftest.$ac_ext <<_ACEOF 19813 /* end confdefs.h. */ 19814 #include <> 19815 _ACEOF 19816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19818 ac_status=$? 19819 grep -v '^ *+' conftest.er1 >conftest.err 19820 rm -f conftest.er1 19821 cat conftest.err >&5 19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19823 (exit $ac_status); } >/dev/null; then 19824 if test -s conftest.err; then 19825 ac_cpp_err=$ac_c_preproc_warn_flag 19826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19827 else 19828 ac_cpp_err= 19829 fi 19830 else 19831 ac_cpp_err=yes 19832 fi 19833 if test -z "$ac_cpp_err"; then 19834 ac_header_preproc=yes 19835 else 19836 echo "$as_me: failed program was:" >&5 19837 sed 's/^/| /' conftest.$ac_ext >&5 19838 19839 ac_header_preproc=no 19840 fi 19841 rm -f conftest.err conftest.$ac_ext 19842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19843 echo "${ECHO_T}$ac_header_preproc" >&6 19844 19845 # So? What about this header? 19846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19847 yes:no: ) 19848 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5 19849 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;} 19850 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5 19851 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;} 19852 ac_header_preproc=yes 19853 ;; 19854 no:yes:* ) 19855 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5 19856 echo "$as_me: WARNING: : present but cannot be compiled" >&2;} 19857 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5 19858 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;} 19859 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5 19860 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;} 19861 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5 19862 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;} 19863 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5 19864 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;} 19865 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5 19866 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;} 19867 ( 19868 cat <<\_ASBOX 19869 ## ------------------------------------ ## 19870 ## Report this to the backuppcd lists. ## 19871 ## ------------------------------------ ## 19872 _ASBOX 19873 ) | 19874 sed "s/^/$as_me: WARNING: /" >&2 19875 ;; 19876 esac 19877 echo "$as_me:$LINENO: checking for " >&5 19878 echo $ECHO_N "checking for ... $ECHO_C" >&6 19879 if test "${ac_cv_header_+set}" = set; then 19880 echo $ECHO_N "(cached) $ECHO_C" >&6 19881 else 19882 ac_cv_header_=$ac_header_preproc 19883 fi 19884 echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 19885 echo "${ECHO_T}$ac_cv_header_" >&6 19886 19887 fi 19888 if test $ac_cv_header_ = yes; then 19889 19890 LIBSPEC=yes 19891 19892 else 19893 19894 LIBSPEC=no 19895 19896 fi 19897 19898 19899 fi 19900 CPPFLAGS="$OLDCPPFLAGS" 19901 CFLAGS="$OLDCFLAGS" 19902 19903 else 19904 19905 unset `set | grep _cv_ | cut -f 1 -d =` 19906 19907 LIBSPECFLAGS="-lwsock32 -lcrypto -lgdi32" 19908 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 19909 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 19910 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then 19911 echo $ECHO_N "(cached) $ECHO_C" >&6 19912 else 19913 ac_check_lib_save_LIBS=$LIBS 19914 LIBS="-lssl $LIBSPECFLAGS $LIBS" 19915 cat >conftest.$ac_ext <<_ACEOF 19916 /* confdefs.h. */ 19917 _ACEOF 19918 cat confdefs.h >>conftest.$ac_ext 19919 cat >>conftest.$ac_ext <<_ACEOF 19920 /* end confdefs.h. */ 19921 19922 /* Override any gcc2 internal prototype to avoid an error. */ 19923 #ifdef __cplusplus 19924 extern "C" 19925 #endif 19926 /* We use char because int might match the return type of a gcc2 19927 builtin and then its argument prototype would still apply. */ 19928 char SSL_library_init (); 19929 int 19930 main () 19931 { 19932 SSL_library_init (); 19933 ; 19934 return 0; 19935 } 19936 _ACEOF 19937 rm -f conftest.$ac_objext conftest$ac_exeext 19938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19939 (eval $ac_link) 2>conftest.er1 19940 ac_status=$? 19941 grep -v '^ *+' conftest.er1 >conftest.err 19942 rm -f conftest.er1 19943 cat conftest.err >&5 19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19945 (exit $ac_status); } && 19946 { ac_try='test -z "$ac_c_werror_flag" 19947 || test ! -s conftest.err' 19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19949 (eval $ac_try) 2>&5 19950 ac_status=$? 19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19952 (exit $ac_status); }; } && 19953 { ac_try='test -s conftest$ac_exeext' 19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19955 (eval $ac_try) 2>&5 19956 ac_status=$? 19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19958 (exit $ac_status); }; }; then 19959 ac_cv_lib_ssl_SSL_library_init=yes 19960 else 19961 echo "$as_me: failed program was:" >&5 19962 sed 's/^/| /' conftest.$ac_ext >&5 19963 19964 ac_cv_lib_ssl_SSL_library_init=no 19965 fi 19966 rm -f conftest.err conftest.$ac_objext \ 19967 conftest$ac_exeext conftest.$ac_ext 19968 LIBS=$ac_check_lib_save_LIBS 19969 fi 19970 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 19971 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 19972 if test $ac_cv_lib_ssl_SSL_library_init = yes; then 19973 19974 OLDCPPFLAGS="$CPPFLAGS" 19975 OLDCFLAGS="$CFLAGS" 19976 CPPFLAGS="$CPPFLAGS $LIBSPECCFLAGS" 19977 CFLAGS="$CFLAGS $LIBSPECCFLAGS" 19978 if test -n "" ; then 19979 if test "${ac_cv_header_+set}" = set; then 19980 echo "$as_me:$LINENO: checking for " >&5 19981 echo $ECHO_N "checking for ... $ECHO_C" >&6 19982 if test "${ac_cv_header_+set}" = set; then 19983 echo $ECHO_N "(cached) $ECHO_C" >&6 19984 fi 19985 echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 19986 echo "${ECHO_T}$ac_cv_header_" >&6 19987 else 19988 # Is the header compilable? 19989 echo "$as_me:$LINENO: checking usability" >&5 19990 echo $ECHO_N "checking usability... $ECHO_C" >&6 19991 cat >conftest.$ac_ext <<_ACEOF 19992 /* confdefs.h. */ 19993 _ACEOF 19994 cat confdefs.h >>conftest.$ac_ext 19995 cat >>conftest.$ac_ext <<_ACEOF 19996 /* end confdefs.h. */ 19997 $ac_includes_default 19998 #include <> 19999 _ACEOF 20000 rm -f conftest.$ac_objext 20001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20002 (eval $ac_compile) 2>conftest.er1 20003 ac_status=$? 20004 grep -v '^ *+' conftest.er1 >conftest.err 20005 rm -f conftest.er1 20006 cat conftest.err >&5 20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20008 (exit $ac_status); } && 20009 { ac_try='test -z "$ac_c_werror_flag" 20010 || test ! -s conftest.err' 20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20012 (eval $ac_try) 2>&5 20013 ac_status=$? 20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20015 (exit $ac_status); }; } && 20016 { ac_try='test -s conftest.$ac_objext' 20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20018 (eval $ac_try) 2>&5 20019 ac_status=$? 20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20021 (exit $ac_status); }; }; then 20022 ac_header_compiler=yes 20023 else 20024 echo "$as_me: failed program was:" >&5 20025 sed 's/^/| /' conftest.$ac_ext >&5 20026 20027 ac_header_compiler=no 20028 fi 20029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20031 echo "${ECHO_T}$ac_header_compiler" >&6 20032 20033 # Is the header present? 20034 echo "$as_me:$LINENO: checking presence" >&5 20035 echo $ECHO_N "checking presence... $ECHO_C" >&6 20036 cat >conftest.$ac_ext <<_ACEOF 20037 /* confdefs.h. */ 20038 _ACEOF 20039 cat confdefs.h >>conftest.$ac_ext 20040 cat >>conftest.$ac_ext <<_ACEOF 20041 /* end confdefs.h. */ 20042 #include <> 20043 _ACEOF 20044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20046 ac_status=$? 20047 grep -v '^ *+' conftest.er1 >conftest.err 20048 rm -f conftest.er1 20049 cat conftest.err >&5 20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20051 (exit $ac_status); } >/dev/null; then 20052 if test -s conftest.err; then 20053 ac_cpp_err=$ac_c_preproc_warn_flag 20054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20055 else 20056 ac_cpp_err= 20057 fi 20058 else 20059 ac_cpp_err=yes 20060 fi 20061 if test -z "$ac_cpp_err"; then 20062 ac_header_preproc=yes 20063 else 20064 echo "$as_me: failed program was:" >&5 20065 sed 's/^/| /' conftest.$ac_ext >&5 20066 20067 ac_header_preproc=no 20068 fi 20069 rm -f conftest.err conftest.$ac_ext 20070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20071 echo "${ECHO_T}$ac_header_preproc" >&6 20072 20073 # So? What about this header? 20074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20075 yes:no: ) 20076 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5 20077 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;} 20078 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5 20079 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;} 20080 ac_header_preproc=yes 20081 ;; 20082 no:yes:* ) 20083 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5 20084 echo "$as_me: WARNING: : present but cannot be compiled" >&2;} 20085 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5 20086 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;} 20087 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5 20088 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;} 20089 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5 20090 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;} 20091 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5 20092 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;} 20093 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5 20094 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;} 20095 ( 20096 cat <<\_ASBOX 20097 ## ------------------------------------ ## 20098 ## Report this to the backuppcd lists. ## 20099 ## ------------------------------------ ## 20100 _ASBOX 20101 ) | 20102 sed "s/^/$as_me: WARNING: /" >&2 20103 ;; 20104 esac 20105 echo "$as_me:$LINENO: checking for " >&5 20106 echo $ECHO_N "checking for ... $ECHO_C" >&6 20107 if test "${ac_cv_header_+set}" = set; then 20108 echo $ECHO_N "(cached) $ECHO_C" >&6 20109 else 20110 ac_cv_header_=$ac_header_preproc 20111 fi 20112 echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 20113 echo "${ECHO_T}$ac_cv_header_" >&6 20114 20115 fi 20116 if test $ac_cv_header_ = yes; then 20117 20118 LIBSPEC=yes 20119 20120 else 20121 20122 LIBSPEC=no 20123 20124 fi 20125 20126 20127 fi 20128 CPPFLAGS="$OLDCPPFLAGS" 20129 CFLAGS="$OLDCFLAGS" 20130 20131 else 20132 20133 LIBSPEC=no 20134 20135 { echo "$as_me:$LINENO: WARNING: Did not find openssl" >&5 20136 echo "$as_me: WARNING: Did not find openssl" >&2;} 20137 20138 fi 20139 20140 20141 fi 20142 20143 else 20144 LIBSPEC=no 20145 20146 { echo "$as_me:$LINENO: WARNING: Did not find openssl" >&5 20147 echo "$as_me: WARNING: Did not find openssl" >&2;} 20148 fi 20149 20150 fi 20151 20152 20153 fi; 20154 case $LIBSPEC in 20155 no) 20156 20157 { echo "$as_me:$LINENO: WARNING: Support for openssl disabled" >&5 20158 echo "$as_me: WARNING: Support for openssl disabled" >&2;} 20159 ;; 20160 *) 20161 if test "${LIBSPEC}" = "yes"; then 20162 true 20163 else 20164 LIBSPECLIBDIR="${LIBSPEC}/lib" 20165 LIBSPECFLAGS="-L${LIBSPEC}/lib ${LIBSPECFLAGS}" 20166 LIBSPECCFLAGS="-I${LIBSPEC}/include ${LIBSPECCFLAGS}" 20167 fi 20168 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 20169 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 20170 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then 20171 echo $ECHO_N "(cached) $ECHO_C" >&6 20172 else 20173 ac_check_lib_save_LIBS=$LIBS 20174 LIBS="-lssl $LIBSPECFLAGS $LIBS" 20175 cat >conftest.$ac_ext <<_ACEOF 20176 /* confdefs.h. */ 20177 _ACEOF 20178 cat confdefs.h >>conftest.$ac_ext 20179 cat >>conftest.$ac_ext <<_ACEOF 20180 /* end confdefs.h. */ 20181 20182 /* Override any gcc2 internal prototype to avoid an error. */ 20183 #ifdef __cplusplus 20184 extern "C" 20185 #endif 20186 /* We use char because int might match the return type of a gcc2 20187 builtin and then its argument prototype would still apply. */ 20188 char SSL_library_init (); 20189 int 20190 main () 20191 { 20192 SSL_library_init (); 20193 ; 20194 return 0; 20195 } 20196 _ACEOF 20197 rm -f conftest.$ac_objext conftest$ac_exeext 20198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20199 (eval $ac_link) 2>conftest.er1 20200 ac_status=$? 20201 grep -v '^ *+' conftest.er1 >conftest.err 20202 rm -f conftest.er1 20203 cat conftest.err >&5 20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20205 (exit $ac_status); } && 20206 { ac_try='test -z "$ac_c_werror_flag" 20207 || test ! -s conftest.err' 20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20209 (eval $ac_try) 2>&5 20210 ac_status=$? 20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20212 (exit $ac_status); }; } && 20213 { ac_try='test -s conftest$ac_exeext' 20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20215 (eval $ac_try) 2>&5 20216 ac_status=$? 20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20218 (exit $ac_status); }; }; then 20219 ac_cv_lib_ssl_SSL_library_init=yes 20220 else 20221 echo "$as_me: failed program was:" >&5 20222 sed 's/^/| /' conftest.$ac_ext >&5 20223 20224 ac_cv_lib_ssl_SSL_library_init=no 20225 fi 20226 rm -f conftest.err conftest.$ac_objext \ 20227 conftest$ac_exeext conftest.$ac_ext 20228 LIBS=$ac_check_lib_save_LIBS 20229 fi 20230 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 20231 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 20232 if test $ac_cv_lib_ssl_SSL_library_init = yes; then 20233 20234 OLDCFLAGS="$CFLAGS" 20235 OLDCPPFLAGS="$CPPFLAGS" 20236 CPPFLAGS="$CPPFLAGS ${LIBSPECCFLAGS}" 20237 CFLAGS="$CFLAGS ${LIBSPECCFLAGS}" 20238 if test -n ""; then 20239 if test "${ac_cv_header_+set}" = set; then 20240 echo "$as_me:$LINENO: checking for " >&5 20241 echo $ECHO_N "checking for ... $ECHO_C" >&6 20242 if test "${ac_cv_header_+set}" = set; then 20243 echo $ECHO_N "(cached) $ECHO_C" >&6 20244 fi 20245 echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 20246 echo "${ECHO_T}$ac_cv_header_" >&6 20247 else 20248 # Is the header compilable? 20249 echo "$as_me:$LINENO: checking usability" >&5 20250 echo $ECHO_N "checking usability... $ECHO_C" >&6 20251 cat >conftest.$ac_ext <<_ACEOF 20252 /* confdefs.h. */ 20253 _ACEOF 20254 cat confdefs.h >>conftest.$ac_ext 20255 cat >>conftest.$ac_ext <<_ACEOF 20256 /* end confdefs.h. */ 20257 $ac_includes_default 20258 #include <> 20259 _ACEOF 20260 rm -f conftest.$ac_objext 20261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20262 (eval $ac_compile) 2>conftest.er1 20263 ac_status=$? 20264 grep -v '^ *+' conftest.er1 >conftest.err 20265 rm -f conftest.er1 20266 cat conftest.err >&5 20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20268 (exit $ac_status); } && 20269 { ac_try='test -z "$ac_c_werror_flag" 20270 || test ! -s conftest.err' 20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20272 (eval $ac_try) 2>&5 20273 ac_status=$? 20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20275 (exit $ac_status); }; } && 20276 { ac_try='test -s conftest.$ac_objext' 20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20278 (eval $ac_try) 2>&5 20279 ac_status=$? 20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20281 (exit $ac_status); }; }; then 20282 ac_header_compiler=yes 20283 else 20284 echo "$as_me: failed program was:" >&5 20285 sed 's/^/| /' conftest.$ac_ext >&5 20286 20287 ac_header_compiler=no 20288 fi 20289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20291 echo "${ECHO_T}$ac_header_compiler" >&6 20292 20293 # Is the header present? 20294 echo "$as_me:$LINENO: checking presence" >&5 20295 echo $ECHO_N "checking presence... $ECHO_C" >&6 20296 cat >conftest.$ac_ext <<_ACEOF 20297 /* confdefs.h. */ 20298 _ACEOF 20299 cat confdefs.h >>conftest.$ac_ext 20300 cat >>conftest.$ac_ext <<_ACEOF 20301 /* end confdefs.h. */ 20302 #include <> 20303 _ACEOF 20304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20306 ac_status=$? 20307 grep -v '^ *+' conftest.er1 >conftest.err 20308 rm -f conftest.er1 20309 cat conftest.err >&5 20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20311 (exit $ac_status); } >/dev/null; then 20312 if test -s conftest.err; then 20313 ac_cpp_err=$ac_c_preproc_warn_flag 20314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20315 else 20316 ac_cpp_err= 20317 fi 20318 else 20319 ac_cpp_err=yes 20320 fi 20321 if test -z "$ac_cpp_err"; then 20322 ac_header_preproc=yes 20323 else 20324 echo "$as_me: failed program was:" >&5 20325 sed 's/^/| /' conftest.$ac_ext >&5 20326 20327 ac_header_preproc=no 20328 fi 20329 rm -f conftest.err conftest.$ac_ext 20330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20331 echo "${ECHO_T}$ac_header_preproc" >&6 20332 20333 # So? What about this header? 20334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20335 yes:no: ) 20336 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5 20337 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;} 20338 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5 20339 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;} 20340 ac_header_preproc=yes 20341 ;; 20342 no:yes:* ) 20343 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5 20344 echo "$as_me: WARNING: : present but cannot be compiled" >&2;} 20345 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5 20346 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;} 20347 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5 20348 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;} 20349 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5 20350 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;} 20351 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5 20352 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;} 20353 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5 20354 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;} 20355 ( 20356 cat <<\_ASBOX 20357 ## ------------------------------------ ## 20358 ## Report this to the backuppcd lists. ## 20359 ## ------------------------------------ ## 20360 _ASBOX 20361 ) | 20362 sed "s/^/$as_me: WARNING: /" >&2 20363 ;; 20364 esac 20365 echo "$as_me:$LINENO: checking for " >&5 20366 echo $ECHO_N "checking for ... $ECHO_C" >&6 20367 if test "${ac_cv_header_+set}" = set; then 20368 echo $ECHO_N "(cached) $ECHO_C" >&6 20369 else 20370 ac_cv_header_=$ac_header_preproc 20371 fi 20372 echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 20373 echo "${ECHO_T}$ac_cv_header_" >&6 20374 20375 fi 20376 if test $ac_cv_header_ = yes; then 20377 20378 headerok="yes" 20379 20380 else 20381 20382 headerok="no" 20383 20384 fi 20385 20386 20387 else 20388 headerok="yes" 20389 fi 20390 20391 if test $headerok = "yes"; then 20392 if test -n "THIS_MAKES_STUPID_AUTOHEADER_HAPPY" -a -n ""; then 20393 20394 cat >>confdefs.h <<\_ACEOF 20395 #define THIS_MAKES_STUPID_AUTOHEADER_HAPPY 1 20396 _ACEOF 20397 20398 fi 20399 if test -n "HAVE_LIBSSL" -a -n "SSL_library_init"; then 20400 20401 cat >>confdefs.h <<\_ACEOF 20402 #define HAVE_LIBSSL 1 20403 _ACEOF 20404 20405 fi 20406 LDFLAGS="$LIBSPECFLAGS $LDFLAGS" 20407 if test -n "$LIBSPECLIBDIR"; then 20408 20409 OLD_LDFLAGS="$LDFLAGS" 20410 20411 LDRUNPATH="" 20412 for testldflags in "-Wl,-rpath -Wl,$LIBSPECLIBDIR" "-Wl,-R -Wl,$LIBSPECLIBDIR"; do 20413 LDFLAGS="$OLD_LDFLAGS $testldflags" 20414 cat >conftest.$ac_ext <<_ACEOF 20415 /* confdefs.h. */ 20416 _ACEOF 20417 cat confdefs.h >>conftest.$ac_ext 20418 cat >>conftest.$ac_ext <<_ACEOF 20419 /* end confdefs.h. */ 20420 #include <stdio.h> 20421 int 20422 main () 20423 { 20424 return(0); 20425 ; 20426 return 0; 20427 } 20428 _ACEOF 20429 rm -f conftest.$ac_objext conftest$ac_exeext 20430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20431 (eval $ac_link) 2>conftest.er1 20432 ac_status=$? 20433 grep -v '^ *+' conftest.er1 >conftest.err 20434 rm -f conftest.er1 20435 cat conftest.err >&5 20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20437 (exit $ac_status); } && 20438 { ac_try='test -z "$ac_c_werror_flag" 20439 || test ! -s conftest.err' 20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20441 (eval $ac_try) 2>&5 20442 ac_status=$? 20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20444 (exit $ac_status); }; } && 20445 { ac_try='test -s conftest$ac_exeext' 20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20447 (eval $ac_try) 2>&5 20448 ac_status=$? 20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20450 (exit $ac_status); }; }; then 20451 LDRUNPATH="$LDRUNPATH $testldflags"; break 20452 else 20453 echo "$as_me: failed program was:" >&5 20454 sed 's/^/| /' conftest.$ac_ext >&5 20455 20456 fi 20457 rm -f conftest.err conftest.$ac_objext \ 20458 conftest$ac_exeext conftest.$ac_ext; 20459 done 20460 20461 LDFLAGS="$OLD_LDFLAGS" 20462 if test -n "$LDRUNPATH"; then 20463 LDFLAGS="$LDRUNPATH $LDFLAGS" 20464 fi 20465 20466 fi 20467 LIBS="-lssl $LIBS" 20468 else 20469 CFLAGS="$OLDCFLAGS" 20470 CPPFLAGS="$OLDCPPFLAGS" 20471 20472 { { echo "$as_me:$LINENO: error: Could not find " >&5 20473 echo "$as_me: error: Could not find " >&2;} 20474 { (exit 1); exit 1; }; } 20475 fi 20476 20477 else 20478 20479 { { echo "$as_me:$LINENO: error: Could not find openssl" >&5 20480 echo "$as_me: error: Could not find openssl" >&2;} 20481 { (exit 1); exit 1; }; } 20482 20483 fi 20484 20485 ;; 20486 esac 20487 20488 20489 20490 # Check whether --with-nt4 or --without-nt4 was given. 20491 if test "${with_nt4+set}" = set; then 20492 withval="$with_nt4" 20493 winntfoursupport=$withval 20494 else 20495 winntfoursupport=no 20496 fi; 20497 if test "$winntfoursupport" = "no"; then 20498 20499 cat >>confdefs.h <<\_ACEOF 20500 #define NO_WIN32_NT4 1 20501 _ACEOF 20502 20503 fi 20504 20505 20506 # Check whether --with-masterpw or --without-masterpw was given. 20507 if test "${with_masterpw+set}" = set; then 20508 withval="$with_masterpw" 20509 masterpw=$withval 20510 else 20511 masterpw=no 20512 fi; 20513 if test "$masterpw" != "no"; then 20514 if test "$masterpw" = "yes"; then 20515 { { echo "$as_me:$LINENO: error: Master password must be specified on the command line." >&5 20516 echo "$as_me: error: Master password must be specified on the command line." >&2;} 20517 { (exit 1); exit 1; }; } 20518 fi 20519 20520 cat >>confdefs.h <<_ACEOF 20521 #define MASTER_PASSWORD "$masterpw" 20522 _ACEOF 20523 20524 fi 20525 20526 # Check whether --enable-debug or --disable-debug was given. 20527 if test "${enable_debug+set}" = set; then 20528 enableval="$enable_debug" 20529 debugenabled=$enableval 20530 else 20531 debugenabled=no 20532 fi; 20533 if test "$debugenabled" = "no"; then 20534 20535 cat >>confdefs.h <<\_ACEOF 20536 #define NDEBUG 1 20537 _ACEOF 20538 20539 else 20540 20541 cat >>confdefs.h <<\_ACEOF 20542 #define DEBUG 1 20543 _ACEOF 20544 20545 fi 20546 20547 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 20548 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 20549 if test "${ac_cv_c_bigendian+set}" = set; then 20550 echo $ECHO_N "(cached) $ECHO_C" >&6 20551 else 20552 # See if sys/param.h defines the BYTE_ORDER macro. 20553 cat >conftest.$ac_ext <<_ACEOF 20554 /* confdefs.h. */ 20555 _ACEOF 20556 cat confdefs.h >>conftest.$ac_ext 20557 cat >>conftest.$ac_ext <<_ACEOF 20558 /* end confdefs.h. */ 20559 #include <sys/types.h> 20560 #include <sys/param.h> 20561 20562 int 20563 main () 20564 { 20565 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 20566 bogus endian macros 20567 #endif 20568 20569 ; 20570 return 0; 20571 } 20572 _ACEOF 20573 rm -f conftest.$ac_objext 20574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20575 (eval $ac_compile) 2>conftest.er1 20576 ac_status=$? 20577 grep -v '^ *+' conftest.er1 >conftest.err 20578 rm -f conftest.er1 20579 cat conftest.err >&5 20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20581 (exit $ac_status); } && 20582 { ac_try='test -z "$ac_c_werror_flag" 20583 || test ! -s conftest.err' 20584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20585 (eval $ac_try) 2>&5 20586 ac_status=$? 20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20588 (exit $ac_status); }; } && 20589 { ac_try='test -s conftest.$ac_objext' 20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20591 (eval $ac_try) 2>&5 20592 ac_status=$? 20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20594 (exit $ac_status); }; }; then 20595 # It does; now see whether it defined to BIG_ENDIAN or not. 20596 cat >conftest.$ac_ext <<_ACEOF 20597 /* confdefs.h. */ 20598 _ACEOF 20599 cat confdefs.h >>conftest.$ac_ext 20600 cat >>conftest.$ac_ext <<_ACEOF 20601 /* end confdefs.h. */ 20602 #include <sys/types.h> 20603 #include <sys/param.h> 20604 20605 int 20606 main () 20607 { 20608 #if BYTE_ORDER != BIG_ENDIAN 20609 not big endian 20610 #endif 20611 20612 ; 20613 return 0; 20614 } 20615 _ACEOF 20616 rm -f conftest.$ac_objext 20617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20618 (eval $ac_compile) 2>conftest.er1 20619 ac_status=$? 20620 grep -v '^ *+' conftest.er1 >conftest.err 20621 rm -f conftest.er1 20622 cat conftest.err >&5 20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20624 (exit $ac_status); } && 20625 { ac_try='test -z "$ac_c_werror_flag" 20626 || test ! -s conftest.err' 20627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20628 (eval $ac_try) 2>&5 20629 ac_status=$? 20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20631 (exit $ac_status); }; } && 20632 { ac_try='test -s conftest.$ac_objext' 20633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20634 (eval $ac_try) 2>&5 20635 ac_status=$? 20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20637 (exit $ac_status); }; }; then 20638 ac_cv_c_bigendian=yes 20639 else 20640 echo "$as_me: failed program was:" >&5 20641 sed 's/^/| /' conftest.$ac_ext >&5 20642 20643 ac_cv_c_bigendian=no 20644 fi 20645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20646 else 20647 echo "$as_me: failed program was:" >&5 20648 sed 's/^/| /' conftest.$ac_ext >&5 20649 20650 # It does not; compile a test program. 20651 if test "$cross_compiling" = yes; then 20652 # try to guess the endianness by grepping values into an object file 20653 ac_cv_c_bigendian=unknown 20654 cat >conftest.$ac_ext <<_ACEOF 20655 /* confdefs.h. */ 20656 _ACEOF 20657 cat confdefs.h >>conftest.$ac_ext 20658 cat >>conftest.$ac_ext <<_ACEOF 20659 /* end confdefs.h. */ 20660 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 20661 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 20662 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 20663 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 20664 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 20665 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 20666 int 20667 main () 20668 { 20669 _ascii (); _ebcdic (); 20670 ; 20671 return 0; 20672 } 20673 _ACEOF 20674 rm -f conftest.$ac_objext 20675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20676 (eval $ac_compile) 2>conftest.er1 20677 ac_status=$? 20678 grep -v '^ *+' conftest.er1 >conftest.err 20679 rm -f conftest.er1 20680 cat conftest.err >&5 20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20682 (exit $ac_status); } && 20683 { ac_try='test -z "$ac_c_werror_flag" 20684 || test ! -s conftest.err' 20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20686 (eval $ac_try) 2>&5 20687 ac_status=$? 20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20689 (exit $ac_status); }; } && 20690 { ac_try='test -s conftest.$ac_objext' 20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20692 (eval $ac_try) 2>&5 20693 ac_status=$? 20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20695 (exit $ac_status); }; }; then 20696 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 20697 ac_cv_c_bigendian=yes 20698 fi 20699 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 20700 if test "$ac_cv_c_bigendian" = unknown; then 20701 ac_cv_c_bigendian=no 20702 else 20703 # finding both strings is unlikely to happen, but who knows? 20704 ac_cv_c_bigendian=unknown 20705 fi 20706 fi 20707 else 20708 echo "$as_me: failed program was:" >&5 20709 sed 's/^/| /' conftest.$ac_ext >&5 20710 20711 fi 20712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20713 else 20714 cat >conftest.$ac_ext <<_ACEOF 20715 /* confdefs.h. */ 20716 _ACEOF 20717 cat confdefs.h >>conftest.$ac_ext 20718 cat >>conftest.$ac_ext <<_ACEOF 20719 /* end confdefs.h. */ 20720 int 20721 main () 20722 { 20723 /* Are we little or big endian? From Harbison&Steele. */ 20724 union 20725 { 20726 long l; 20727 char c[sizeof (long)]; 20728 } u; 20729 u.l = 1; 20730 exit (u.c[sizeof (long) - 1] == 1); 20731 } 20732 _ACEOF 20733 rm -f conftest$ac_exeext 20734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20735 (eval $ac_link) 2>&5 20736 ac_status=$? 20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20740 (eval $ac_try) 2>&5 20741 ac_status=$? 20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20743 (exit $ac_status); }; }; then 20744 ac_cv_c_bigendian=no 20745 else 20746 echo "$as_me: program exited with status $ac_status" >&5 20747 echo "$as_me: failed program was:" >&5 20748 sed 's/^/| /' conftest.$ac_ext >&5 20749 20750 ( exit $ac_status ) 20751 ac_cv_c_bigendian=yes 20752 fi 20753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20754 fi 20755 fi 20756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20757 fi 20758 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 20759 echo "${ECHO_T}$ac_cv_c_bigendian" >&6 20760 case $ac_cv_c_bigendian in 20761 yes) 20762 20763 cat >>confdefs.h <<\_ACEOF 20764 #define WORDS_BIGENDIAN 1 20765 _ACEOF 20766 ;; 20767 no) 20768 ;; 20769 *) 20770 20771 20772 cat >>confdefs.h <<\_ACEOF 20773 #define ENDIAN_UNKNOWN 1 20774 _ACEOF 20775 20776 ;; 20777 esac 20778 20779 20780 # Check whether --enable-static or --disable-static was given. 20781 if test "${enable_static+set}" = set; then 20782 enableval="$enable_static" 20783 staticbuild=$enableval 20784 else 20785 staticbuild=no 20786 fi; 20787 if test ! "$staticbuild" = "no"; then 20788 20789 20790 20791 NEWLIBS="" 20792 NEWLDFLAGS="" 20793 20794 rm -f conftest conftest.c 20795 cat <<\_ACEOF > conftest.c 20796 #include <stdio.h> 20797 int main(void) { return(0); } 20798 _ACEOF 20799 "$CC" -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS >/dev/null 2>/dev/null 20800 if test -e conftest; then 20801 if test -z "$LDD"; then 20802 LDD=`echo "$CC" | sed 's@gcc$@ldd@'` 20803 if test "$LDD" = "$CC"; then 20804 LDD=`echo "$CC" | sed 's@cc$@ldd@'` 20805 fi 20806 if test "$LDD" = "$CC"; then 20807 LDD=false 20808 fi 20809 fi 20810 "$LDD" conftest 2>/dev/null >conftest.ldd 20811 fi 20812 rm -f conftest conftest.c 20813 20814 if test -e conftest.ldd; then 20815 for lib in $LIBS; do 20816 if echo "$lib" | grep '\-l' >/dev/null; then 20817 libname=`echo "$lib" | sed 's@^-l@@'` 20818 testlib=`cat conftest.ldd | awk '{ print $3 }' | sed 's@\..*$@@' | grep "/lib$libname$"`.a 20819 if test -e "$testlib" -a -n "$testlib"; then 20820 lib="$testlib" 20821 fi 20822 fi 20823 NEWLIBS="$NEWLIBS $lib" 20824 done 20825 for lib in $LDFLAGS; do 20826 if echo "$lib" | grep '\-l' >/dev/null; then 20827 libname=`echo "$lib" | sed 's@^-l@@'` 20828 testlib=`cat conftest.ldd | awk '{ print $3 }' | sed 's@\..*$@@' | grep "/lib$libname$"`.a 20829 if test -e "$testlib" -a -n "$testlib"; then 20830 lib="$testlib" 20831 fi 20832 fi 20833 NEWLDFLAGS="$NEWLDFLAGS $lib" 20834 done 20835 20836 LIBS="$NEWLIBS" 20837 LDFLAGS="$NEWLDFLAGS" 20838 fi 20839 20840 rm -f conftest.ldd 20841 20842 fi 20843 20844 20845 ac_config_files="$ac_config_files Makefile" 20846 cat >confcache <<\_ACEOF 20847 # This file is a shell script that caches the results of configure 20848 # tests run on this system so they can be shared between configure 20849 # scripts and configure runs, see configure's option --config-cache. 20850 # It is not useful on other systems. If it contains results you don't 20851 # want to keep, you may remove or edit it. 20852 # 20853 # config.status only pays attention to the cache file if you give it 20854 # the --recheck option to rerun configure. 20855 # 20856 # `ac_cv_env_foo' variables (set or unset) will be overridden when 20857 # loading this file, other *unset* `ac_cv_foo' will be assigned the 20858 # following values. 20859 20860 _ACEOF 20861 20862 # The following way of writing the cache mishandles newlines in values, 20863 # but we know of no workaround that is simple, portable, and efficient. 20864 # So, don't put newlines in cache variables' values. 20865 # Ultrix sh set writes to stderr and can't be redirected directly, 20866 # and sets the high bit in the cache file unless we assign to the vars. 20867 { 20868 (set) 2>&1 | 20869 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20870 *ac_space=\ *) 20871 # `set' does not quote correctly, so add quotes (double-quote 20872 # substitution turns \\\\ into \\, and sed turns \\ into \). 20873 sed -n \ 20874 "s/'/'\\\\''/g; 20875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20876 ;; 20877 *) 20878 # `set' quotes correctly as required by POSIX, so do not add quotes. 20879 sed -n \ 20880 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20881 ;; 20882 esac; 20883 } | 20884 sed ' 20885 t clear 20886 : clear 20887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20888 t end 20889 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20890 : end' >>confcache 20891 if diff $cache_file confcache >/dev/null 2>&1; then :; else 20892 if test -w $cache_file; then 20893 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20894 cat confcache >$cache_file 20895 else 20896 echo "not updating unwritable cache $cache_file" 20897 fi 20898 fi 20899 rm -f confcache 20900 20901 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20902 # Let make expand exec_prefix. 20903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20904 20905 # VPATH may cause trouble with some makes, so we remove $(srcdir), 20906 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20907 # trailing colons and then remove the whole line if VPATH becomes empty 20908 # (actually we leave an empty line to preserve line numbers). 20909 if test "x$srcdir" = x.; then 20910 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20911 s/:*\$(srcdir):*/:/; 20912 s/:*\${srcdir}:*/:/; 20913 s/:*@srcdir@:*/:/; 20914 s/^\([^=]*=[ ]*\):*/\1/; 20915 s/:*$//; 20916 s/^[^=]*=[ ]*$//; 20917 }' 20918 fi 20919 20920 DEFS=-DHAVE_CONFIG_H 20921 20922 ac_libobjs= 20923 ac_ltlibobjs= 20924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20925 # 1. Remove the extension, and $U if already installed. 20926 ac_i=`echo "$ac_i" | 20927 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20928 # 2. Add them. 20929 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20930 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20931 done 20932 LIBOBJS=$ac_libobjs 20933 20934 LTLIBOBJS=$ac_ltlibobjs 20935 20936 20937 20938 : ${CONFIG_STATUS=./config.status} 20939 ac_clean_files_save=$ac_clean_files 20940 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20941 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20942 echo "$as_me: creating $CONFIG_STATUS" >&6;} 20943 cat >$CONFIG_STATUS <<_ACEOF 20944 #! $SHELL 20945 # Generated by $as_me. 20946 # Run this file to recreate the current configuration. 20947 # Compiler output produced by configure, useful for debugging 20948 # configure, is in config.log if it exists. 20949 20950 debug=false 20951 ac_cs_recheck=false 20952 ac_cs_silent=false 20953 SHELL=\${CONFIG_SHELL-$SHELL} 20954 _ACEOF 20955 20956 cat >>$CONFIG_STATUS <<\_ACEOF 20957 ## --------------------- ## 20958 ## M4sh Initialization. ## 20959 ## --------------------- ## 20960 20961 # Be Bourne compatible 20962 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20963 emulate sh 20964 NULLCMD=: 20965 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20966 # is contrary to our usage. Disable this feature. 20967 alias -g '${1+"$@"}'='"$@"' 20968 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20969 set -o posix 20970 fi 20971 DUALCASE=1; export DUALCASE # for MKS sh 20972 20973 # Support unset when possible. 20974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20975 as_unset=unset 20976 else 20977 as_unset=false 20978 fi 20979 20980 20981 # Work around bugs in pre-3.0 UWIN ksh. 20982 $as_unset ENV MAIL MAILPATH 20983 PS1='$ ' 20984 PS2='> ' 20985 PS4='+ ' 20986 20987 # NLS nuisances. 20988 for as_var in \ 20989 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20990 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20991 LC_TELEPHONE LC_TIME 20992 do 20993 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20994 eval $as_var=C; export $as_var 20995 else 20996 $as_unset $as_var 20997 fi 20998 done 20999 21000 # Required to use basename. 21001 if expr a : '\(a\)' >/dev/null 2>&1; then 21002 as_expr=expr 21003 else 21004 as_expr=false 21005 fi 21006 21007 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 21008 as_basename=basename 21009 else 21010 as_basename=false 21011 fi 21012 21013 21014 # Name of the executable. 21015 as_me=`$as_basename "$0" || 21016 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21017 X"$0" : 'X\(//\)$' \| \ 21018 X"$0" : 'X\(/\)$' \| \ 21019 . : '\(.\)' 2>/dev/null || 21020 echo X/"$0" | 21021 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 21022 /^X\/\(\/\/\)$/{ s//\1/; q; } 21023 /^X\/\(\/\).*/{ s//\1/; q; } 21024 s/.*/./; q'` 21025 21026 21027 # PATH needs CR, and LINENO needs CR and PATH. 21028 # Avoid depending upon Character Ranges. 21029 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21032 as_cr_digits='0123456789' 21033 as_cr_alnum=$as_cr_Letters$as_cr_digits 21034 21035 # The user is always right. 21036 if test "${PATH_SEPARATOR+set}" != set; then 21037 echo "#! /bin/sh" >conf$$.sh 21038 echo "exit 0" >>conf$$.sh 21039 chmod +x conf$$.sh 21040 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21041 PATH_SEPARATOR=';' 21042 else 21043 PATH_SEPARATOR=: 21044 fi 21045 rm -f conf$$.sh 21046 fi 21047 21048 21049 as_lineno_1=$LINENO 21050 as_lineno_2=$LINENO 21051 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21052 test "x$as_lineno_1" != "x$as_lineno_2" && 21053 test "x$as_lineno_3" = "x$as_lineno_2" || { 21054 # Find who we are. Look in the path if we contain no path at all 21055 # relative or not. 21056 case $0 in 21057 *[\\/]* ) as_myself=$0 ;; 21058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21059 for as_dir in $PATH 21060 do 21061 IFS=$as_save_IFS 21062 test -z "$as_dir" && as_dir=. 21063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21064 done 21065 21066 ;; 21067 esac 21068 # We did not find ourselves, most probably we were run as `sh COMMAND' 21069 # in which case we are not to be found in the path. 21070 if test "x$as_myself" = x; then 21071 as_myself=$0 21072 fi 21073 if test ! -f "$as_myself"; then 21074 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 21075 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 21076 { (exit 1); exit 1; }; } 21077 fi 21078 case $CONFIG_SHELL in 21079 '') 21080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21081 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 21082 do 21083 IFS=$as_save_IFS 21084 test -z "$as_dir" && as_dir=. 21085 for as_base in sh bash ksh sh5; do 21086 case $as_dir in 21087 /*) 21088 if ("$as_dir/$as_base" -c ' 21089 as_lineno_1=$LINENO 21090 as_lineno_2=$LINENO 21091 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21092 test "x$as_lineno_1" != "x$as_lineno_2" && 21093 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 21094 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 21095 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 21096 CONFIG_SHELL=$as_dir/$as_base 21097 export CONFIG_SHELL 21098 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 21099 fi;; 21100 esac 21101 done 21102 done 21103 ;; 21104 esac 21105 21106 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21107 # uniformly replaced by the line number. The first 'sed' inserts a 21108 # line-number line before each line; the second 'sed' does the real 21109 # work. The second script uses 'N' to pair each line-number line 21110 # with the numbered line, and appends trailing '-' during 21111 # substitution so that $LINENO is not a special case at line end. 21112 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21113 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 21114 sed '=' <$as_myself | 21115 sed ' 21116 N 21117 s,$,-, 21118 : loop 21119 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 21120 t loop 21121 s,-$,, 21122 s,^['$as_cr_digits']*\n,, 21123 ' >$as_me.lineno && 21124 chmod +x $as_me.lineno || 21125 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 21126 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 21127 { (exit 1); exit 1; }; } 21128 21129 # Don't try to exec as it changes $[0], causing all sort of problems 21130 # (the dirname of $[0] is not the place where we might find the 21131 # original and so on. Autoconf is especially sensible to this). 21132 . ./$as_me.lineno 21133 # Exit status is that of the last command. 21134 exit 21135 } 21136 21137 21138 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 21139 *c*,-n*) ECHO_N= ECHO_C=' 21140 ' ECHO_T=' ' ;; 21141 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 21142 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 21143 esac 21144 21145 if expr a : '\(a\)' >/dev/null 2>&1; then 21146 as_expr=expr 21147 else 21148 as_expr=false 21149 fi 21150 21151 rm -f conf$$ conf$$.exe conf$$.file 21152 echo >conf$$.file 21153 if ln -s conf$$.file conf$$ 2>/dev/null; then 21154 # We could just check for DJGPP; but this test a) works b) is more generic 21155 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 21156 if test -f conf$$.exe; then 21157 # Don't use ln at all; we don't have any links 21158 as_ln_s='cp -p' 21159 else 21160 as_ln_s='ln -s' 21161 fi 21162 elif ln conf$$.file conf$$ 2>/dev/null; then 21163 as_ln_s=ln 21164 else 21165 as_ln_s='cp -p' 21166 fi 21167 rm -f conf$$ conf$$.exe conf$$.file 21168 21169 if mkdir -p . 2>/dev/null; then 21170 as_mkdir_p=: 21171 else 21172 test -d ./-p && rmdir ./-p 21173 as_mkdir_p=false 21174 fi 21175 21176 as_executable_p="test -f" 21177 21178 # Sed expression to map a string onto a valid CPP name. 21179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21180 21181 # Sed expression to map a string onto a valid variable name. 21182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21183 21184 21185 # IFS 21186 # We need space, tab and new line, in precisely that order. 21187 as_nl=' 21188 ' 21189 IFS=" $as_nl" 21190 21191 # CDPATH. 21192 $as_unset CDPATH 21193 21194 exec 6>&1 21195 21196 # Open the log real soon, to keep \$[0] and so on meaningful, and to 21197 # report actual input values of CONFIG_FILES etc. instead of their 21198 # values after options handling. Logging --version etc. is OK. 21199 exec 5>>config.log 21200 { 21201 echo 21202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21203 ## Running $as_me. ## 21204 _ASBOX 21205 } >&5 21206 cat >&5 <<_CSEOF 21207 21208 This file was extended by backuppcd $as_me 0.1.1, which was 21209 generated by GNU Autoconf 2.59. Invocation command line was 21210 21211 CONFIG_FILES = $CONFIG_FILES 21212 CONFIG_HEADERS = $CONFIG_HEADERS 21213 CONFIG_LINKS = $CONFIG_LINKS 21214 CONFIG_COMMANDS = $CONFIG_COMMANDS 21215 $ $0 $@ 21216 21217 _CSEOF 21218 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 21219 echo >&5 21220 _ACEOF 21221 21222 # Files that config.status was made for. 21223 if test -n "$ac_config_files"; then 21224 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 21225 fi 21226 21227 if test -n "$ac_config_headers"; then 21228 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 21229 fi 21230 21231 if test -n "$ac_config_links"; then 21232 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 21233 fi 21234 21235 if test -n "$ac_config_commands"; then 21236 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 21237 fi 21238 21239 cat >>$CONFIG_STATUS <<\_ACEOF 21240 21241 ac_cs_usage="\ 21242 \`$as_me' instantiates files from templates according to the 21243 current configuration. 21244 21245 Usage: $0 [OPTIONS] [FILE]... 21246 21247 -h, --help print this help, then exit 21248 -V, --version print version number, then exit 21249 -q, --quiet do not print progress messages 21250 -d, --debug don't remove temporary files 21251 --recheck update $as_me by reconfiguring in the same conditions 21252 --file=FILE[:TEMPLATE] 21253 instantiate the configuration file FILE 21254 --header=FILE[:TEMPLATE] 21255 instantiate the configuration header FILE 21256 21257 Configuration files: 21258 $config_files 21259 21260 Configuration headers: 21261 $config_headers 21262 21263 Report bugs to <bug-autoconf@gnu.org>." 21264 _ACEOF 21265 21266 cat >>$CONFIG_STATUS <<_ACEOF 21267 ac_cs_version="\\ 21268 backuppcd config.status 0.1.1 21269 configured by $0, generated by GNU Autoconf 2.59, 21270 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 21271 21272 Copyright (C) 2003 Free Software Foundation, Inc. 21273 This config.status script is free software; the Free Software Foundation 21274 gives unlimited permission to copy, distribute and modify it." 21275 srcdir=$srcdir 21276 INSTALL="$INSTALL" 21277 _ACEOF 21278 21279 cat >>$CONFIG_STATUS <<\_ACEOF 21280 # If no file are specified by the user, then we need to provide default 21281 # value. By we need to know if files were specified by the user. 21282 ac_need_defaults=: 21283 while test $# != 0 21284 do 21285 case $1 in 21286 --*=*) 21287 ac_option=`expr "x$1" : 'x\([^=]*\)='` 21288 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 21289 ac_shift=: 21290 ;; 21291 -*) 21292 ac_option=$1 21293 ac_optarg=$2 21294 ac_shift=shift 21295 ;; 21296 *) # This is not an option, so the user has probably given explicit 21297 # arguments. 21298 ac_option=$1 21299 ac_need_defaults=false;; 21300 esac 21301 21302 case $ac_option in 21303 # Handling of the options. 21304 _ACEOF 21305 cat >>$CONFIG_STATUS <<\_ACEOF 21306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21307 ac_cs_recheck=: ;; 21308 --version | --vers* | -V ) 21309 echo "$ac_cs_version"; exit 0 ;; 21310 --he | --h) 21311 # Conflict between --help and --header 21312 { { echo "$as_me:$LINENO: error: ambiguous option: $1 21313 Try \`$0 --help' for more information." >&5 21314 echo "$as_me: error: ambiguous option: $1 21315 Try \`$0 --help' for more information." >&2;} 21316 { (exit 1); exit 1; }; };; 21317 --help | --hel | -h ) 21318 echo "$ac_cs_usage"; exit 0 ;; 21319 --debug | --d* | -d ) 21320 debug=: ;; 21321 --file | --fil | --fi | --f ) 21322 $ac_shift 21323 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21324 ac_need_defaults=false;; 21325 --header | --heade | --head | --hea ) 21326 $ac_shift 21327 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21328 ac_need_defaults=false;; 21329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21330 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21331 ac_cs_silent=: ;; 21332 21333 # This is an error. 21334 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 21335 Try \`$0 --help' for more information." >&5 21336 echo "$as_me: error: unrecognized option: $1 21337 Try \`$0 --help' for more information." >&2;} 21338 { (exit 1); exit 1; }; } ;; 21339 21340 *) ac_config_targets="$ac_config_targets $1" ;; 21341 21342 esac 21343 shift 21344 done 21345 21346 ac_configure_extra_args= 21347 21348 if $ac_cs_silent; then 21349 exec 6>/dev/null 21350 ac_configure_extra_args="$ac_configure_extra_args --silent" 21351 fi 21352 21353 _ACEOF 21354 cat >>$CONFIG_STATUS <<_ACEOF 21355 if \$ac_cs_recheck; then 21356 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21357 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21358 fi 21359 21360 _ACEOF 21361 21362 21363 21364 21365 21366 cat >>$CONFIG_STATUS <<\_ACEOF 21367 for ac_config_target in $ac_config_targets 21368 do 21369 case "$ac_config_target" in 21370 # Handling of arguments. 21371 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21372 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21373 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21374 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21375 { (exit 1); exit 1; }; };; 21376 esac 21377 done 21378 21379 # If the user did not use the arguments to specify the items to instantiate, 21380 # then the envvar interface is used. Set only those that are not. 21381 # We use the long form for the default assignment because of an extremely 21382 # bizarre bug on SunOS 4.1.3. 21383 if $ac_need_defaults; then 21384 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21385 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21386 fi 21387 21388 # Have a temporary directory for convenience. Make it in the build tree 21389 # simply because there is no reason to put it here, and in addition, 21390 # creating and moving files from /tmp can sometimes cause problems. 21391 # Create a temporary directory, and hook for its removal unless debugging. 21392 $debug || 21393 { 21394 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 21395 trap '{ (exit 1); exit 1; }' 1 2 13 15 21396 } 21397 21398 # Create a (secure) tmp directory for tmp files. 21399 21400 { 21401 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 21402 test -n "$tmp" && test -d "$tmp" 21403 } || 21404 { 21405 tmp=./confstat$$-$RANDOM 21406 (umask 077 && mkdir $tmp) 21407 } || 21408 { 21409 echo "$me: cannot create a temporary directory in ." >&2 21410 { (exit 1); exit 1; } 21411 } 21412 21413 _ACEOF 21414 21415 cat >>$CONFIG_STATUS <<_ACEOF 21416 21417 # 21418 # CONFIG_FILES section. 21419 # 21420 21421 # No need to generate the scripts if there are no CONFIG_FILES. 21422 # This happens for instance when ./config.status config.h 21423 if test -n "\$CONFIG_FILES"; then 21424 # Protect against being on the right side of a sed subst in config.status. 21425 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 21426 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 21427 s,@SHELL@,$SHELL,;t t 21428 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 21429 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 21430 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 21431 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 21432 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 21433 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 21434 s,@exec_prefix@,$exec_prefix,;t t 21435 s,@prefix@,$prefix,;t t 21436 s,@program_transform_name@,$program_transform_name,;t t 21437 s,@bindir@,$bindir,;t t 21438 s,@sbindir@,$sbindir,;t t 21439 s,@libexecdir@,$libexecdir,;t t 21440 s,@datadir@,$datadir,;t t 21441 s,@sysconfdir@,$sysconfdir,;t t 21442 s,@sharedstatedir@,$sharedstatedir,;t t 21443 s,@localstatedir@,$localstatedir,;t t 21444 s,@libdir@,$libdir,;t t 21445 s,@includedir@,$includedir,;t t 21446 s,@oldincludedir@,$oldincludedir,;t t 21447 s,@infodir@,$infodir,;t t 21448 s,@mandir@,$mandir,;t t 21449 s,@build_alias@,$build_alias,;t t 21450 s,@host_alias@,$host_alias,;t t 21451 s,@target_alias@,$target_alias,;t t 21452 s,@DEFS@,$DEFS,;t t 21453 s,@ECHO_C@,$ECHO_C,;t t 21454 s,@ECHO_N@,$ECHO_N,;t t 21455 s,@ECHO_T@,$ECHO_T,;t t 21456 s,@LIBS@,$LIBS,;t t 21457 s,@build@,$build,;t t 21458 s,@build_cpu@,$build_cpu,;t t 21459 s,@build_vendor@,$build_vendor,;t t 21460 s,@build_os@,$build_os,;t t 21461 s,@host@,$host,;t t 21462 s,@host_cpu@,$host_cpu,;t t 21463 s,@host_vendor@,$host_vendor,;t t 21464 s,@host_os@,$host_os,;t t 21465 s,@CFLAGS@,$CFLAGS,;t t 21466 s,@CPPFLAGS@,$CPPFLAGS,;t t 21467 s,@AREXT@,$AREXT,;t t 21468 s,@CC@,$CC,;t t 21469 s,@LDFLAGS@,$LDFLAGS,;t t 21470 s,@ac_ct_CC@,$ac_ct_CC,;t t 21471 s,@EXEEXT@,$EXEEXT,;t t 21472 s,@OBJEXT@,$OBJEXT,;t t 21473 s,@SET_MAKE@,$SET_MAKE,;t t 21474 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 21475 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 21476 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 21477 s,@RANLIB@,$RANLIB,;t t 21478 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 21479 s,@CPP@,$CPP,;t t 21480 s,@EGREP@,$EGREP,;t t 21481 s,@AR@,$AR,;t t 21482 s,@ac_ct_AR@,$ac_ct_AR,;t t 21483 s,@LIBOBJS@,$LIBOBJS,;t t 21484 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21485 CEOF 21486 21487 _ACEOF 21488 21489 cat >>$CONFIG_STATUS <<\_ACEOF 21490 # Split the substitutions into bite-sized pieces for seds with 21491 # small command number limits, like on Digital OSF/1 and HP-UX. 21492 ac_max_sed_lines=48 21493 ac_sed_frag=1 # Number of current file. 21494 ac_beg=1 # First line for current file. 21495 ac_end=$ac_max_sed_lines # Line after last line for current file. 21496 ac_more_lines=: 21497 ac_sed_cmds= 21498 while $ac_more_lines; do 21499 if test $ac_beg -gt 1; then 21500 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21501 else 21502 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21503 fi 21504 if test ! -s $tmp/subs.frag; then 21505 ac_more_lines=false 21506 else 21507 # The purpose of the label and of the branching condition is to 21508 # speed up the sed processing (if there are no `@' at all, there 21509 # is no need to browse any of the substitutions). 21510 # These are the two extra sed commands mentioned above. 21511 (echo ':t 21512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21513 if test -z "$ac_sed_cmds"; then 21514 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21515 else 21516 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21517 fi 21518 ac_sed_frag=`expr $ac_sed_frag + 1` 21519 ac_beg=$ac_end 21520 ac_end=`expr $ac_end + $ac_max_sed_lines` 21521 fi 21522 done 21523 if test -z "$ac_sed_cmds"; then 21524 ac_sed_cmds=cat 21525 fi 21526 fi # test -n "$CONFIG_FILES" 21527 21528 _ACEOF 21529 cat >>$CONFIG_STATUS <<\_ACEOF 21530 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21531 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21532 case $ac_file in 21533 - | *:- | *:-:* ) # input from stdin 21534 cat >$tmp/stdin 21535 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21536 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21537 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21538 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21539 * ) ac_file_in=$ac_file.in ;; 21540 esac 21541 21542 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21543 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21545 X"$ac_file" : 'X\(//\)[^/]' \| \ 21546 X"$ac_file" : 'X\(//\)$' \| \ 21547 X"$ac_file" : 'X\(/\)' \| \ 21548 . : '\(.\)' 2>/dev/null || 21549 echo X"$ac_file" | 21550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21551 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21552 /^X\(\/\/\)$/{ s//\1/; q; } 21553 /^X\(\/\).*/{ s//\1/; q; } 21554 s/.*/./; q'` 21555 { if $as_mkdir_p; then 21556 mkdir -p "$ac_dir" 21557 else 21558 as_dir="$ac_dir" 21559 as_dirs= 21560 while test ! -d "$as_dir"; do 21561 as_dirs="$as_dir $as_dirs" 21562 as_dir=`(dirname "$as_dir") 2>/dev/null || 21563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21564 X"$as_dir" : 'X\(//\)[^/]' \| \ 21565 X"$as_dir" : 'X\(//\)$' \| \ 21566 X"$as_dir" : 'X\(/\)' \| \ 21567 . : '\(.\)' 2>/dev/null || 21568 echo X"$as_dir" | 21569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21570 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21571 /^X\(\/\/\)$/{ s//\1/; q; } 21572 /^X\(\/\).*/{ s//\1/; q; } 21573 s/.*/./; q'` 21574 done 21575 test ! -n "$as_dirs" || mkdir $as_dirs 21576 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21577 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21578 { (exit 1); exit 1; }; }; } 21579 21580 ac_builddir=. 21581 21582 if test "$ac_dir" != .; then 21583 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21584 # A "../" for each directory in $ac_dir_suffix. 21585 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21586 else 21587 ac_dir_suffix= ac_top_builddir= 21588 fi 21589 21590 case $srcdir in 21591 .) # No --srcdir option. We are building in place. 21592 ac_srcdir=. 21593 if test -z "$ac_top_builddir"; then 21594 ac_top_srcdir=. 21595 else 21596 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21597 fi ;; 21598 [\\/]* | ?:[\\/]* ) # Absolute path. 21599 ac_srcdir=$srcdir$ac_dir_suffix; 21600 ac_top_srcdir=$srcdir ;; 21601 *) # Relative path. 21602 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21603 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21604 esac 21605 21606 # Do not use `cd foo && pwd` to compute absolute paths, because 21607 # the directories may not exist. 21608 case `pwd` in 21609 .) ac_abs_builddir="$ac_dir";; 21610 *) 21611 case "$ac_dir" in 21612 .) ac_abs_builddir=`pwd`;; 21613 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21614 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21615 esac;; 21616 esac 21617 case $ac_abs_builddir in 21618 .) ac_abs_top_builddir=${ac_top_builddir}.;; 21619 *) 21620 case ${ac_top_builddir}. in 21621 .) ac_abs_top_builddir=$ac_abs_builddir;; 21622 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21623 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21624 esac;; 21625 esac 21626 case $ac_abs_builddir in 21627 .) ac_abs_srcdir=$ac_srcdir;; 21628 *) 21629 case $ac_srcdir in 21630 .) ac_abs_srcdir=$ac_abs_builddir;; 21631 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21632 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21633 esac;; 21634 esac 21635 case $ac_abs_builddir in 21636 .) ac_abs_top_srcdir=$ac_top_srcdir;; 21637 *) 21638 case $ac_top_srcdir in 21639 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21640 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21641 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21642 esac;; 21643 esac 21644 21645 21646 case $INSTALL in 21647 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21648 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21649 esac 21650 21651 if test x"$ac_file" != x-; then 21652 { echo "$as_me:$LINENO: creating $ac_file" >&5 21653 echo "$as_me: creating $ac_file" >&6;} 21654 rm -f "$ac_file" 21655 fi 21656 # Let's still pretend it is `configure' which instantiates (i.e., don't 21657 # use $as_me), people would be surprised to read: 21658 # /* config.h. Generated by config.status. */ 21659 if test x"$ac_file" = x-; then 21660 configure_input= 21661 else 21662 configure_input="$ac_file. " 21663 fi 21664 configure_input=$configure_input"Generated from `echo $ac_file_in | 21665 sed 's,.*/,,'` by configure." 21666 21667 # First look for the input files in the build tree, otherwise in the 21668 # src tree. 21669 ac_file_inputs=`IFS=: 21670 for f in $ac_file_in; do 21671 case $f in 21672 -) echo $tmp/stdin ;; 21673 [\\/$]*) 21674 # Absolute (can't be DOS-style, as IFS=:) 21675 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21676 echo "$as_me: error: cannot find input file: $f" >&2;} 21677 { (exit 1); exit 1; }; } 21678 echo "$f";; 21679 *) # Relative 21680 if test -f "$f"; then 21681 # Build tree 21682 echo "$f" 21683 elif test -f "$srcdir/$f"; then 21684 # Source tree 21685 echo "$srcdir/$f" 21686 else 21687 # /dev/null tree 21688 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21689 echo "$as_me: error: cannot find input file: $f" >&2;} 21690 { (exit 1); exit 1; }; } 21691 fi;; 21692 esac 21693 done` || { (exit 1); exit 1; } 21694 _ACEOF 21695 cat >>$CONFIG_STATUS <<_ACEOF 21696 sed "$ac_vpsub 21697 $extrasub 21698 _ACEOF 21699 cat >>$CONFIG_STATUS <<\_ACEOF 21700 :t 21701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21702 s,@configure_input@,$configure_input,;t t 21703 s,@srcdir@,$ac_srcdir,;t t 21704 s,@abs_srcdir@,$ac_abs_srcdir,;t t 21705 s,@top_srcdir@,$ac_top_srcdir,;t t 21706 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21707 s,@builddir@,$ac_builddir,;t t 21708 s,@abs_builddir@,$ac_abs_builddir,;t t 21709 s,@top_builddir@,$ac_top_builddir,;t t 21710 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21711 s,@INSTALL@,$ac_INSTALL,;t t 21712 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21713 rm -f $tmp/stdin 21714 if test x"$ac_file" != x-; then 21715 mv $tmp/out $ac_file 21716 else 21717 cat $tmp/out 21718 rm -f $tmp/out 21719 fi 21720 21721 done 21722 _ACEOF 21723 cat >>$CONFIG_STATUS <<\_ACEOF 21724 21725 # 21726 # CONFIG_HEADER section. 21727 # 21728 21729 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 21730 # NAME is the cpp macro being defined and VALUE is the value it is being given. 21731 # 21732 # ac_d sets the value in "#define NAME VALUE" lines. 21733 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 21734 ac_dB='[ ].*$,\1#\2' 21735 ac_dC=' ' 21736 ac_dD=',;t' 21737 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 21738 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21739 ac_uB='$,\1#\2define\3' 21740 ac_uC=' ' 21741 ac_uD=',;t' 21742 21743 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 21744 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21745 case $ac_file in 21746 - | *:- | *:-:* ) # input from stdin 21747 cat >$tmp/stdin 21748 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21750 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21751 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21752 * ) ac_file_in=$ac_file.in ;; 21753 esac 21754 21755 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 21756 echo "$as_me: creating $ac_file" >&6;} 21757 21758 # First look for the input files in the build tree, otherwise in the 21759 # src tree. 21760 ac_file_inputs=`IFS=: 21761 for f in $ac_file_in; do 21762 case $f in 21763 -) echo $tmp/stdin ;; 21764 [\\/$]*) 21765 # Absolute (can't be DOS-style, as IFS=:) 21766 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21767 echo "$as_me: error: cannot find input file: $f" >&2;} 21768 { (exit 1); exit 1; }; } 21769 # Do quote $f, to prevent DOS paths from being IFS'd. 21770 echo "$f";; 21771 *) # Relative 21772 if test -f "$f"; then 21773 # Build tree 21774 echo "$f" 21775 elif test -f "$srcdir/$f"; then 21776 # Source tree 21777 echo "$srcdir/$f" 21778 else 21779 # /dev/null tree 21780 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21781 echo "$as_me: error: cannot find input file: $f" >&2;} 21782 { (exit 1); exit 1; }; } 21783 fi;; 21784 esac 21785 done` || { (exit 1); exit 1; } 21786 # Remove the trailing spaces. 21787 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 21788 21789 _ACEOF 21790 21791 # Transform confdefs.h into two sed scripts, `conftest.defines' and 21792 # `conftest.undefs', that substitutes the proper values into 21793 # config.h.in to produce config.h. The first handles `#define' 21794 # templates, and the second `#undef' templates. 21795 # And first: Protect against being on the right side of a sed subst in 21796 # config.status. Protect against being in an unquoted here document 21797 # in config.status. 21798 rm -f conftest.defines conftest.undefs 21799 # Using a here document instead of a string reduces the quoting nightmare. 21800 # Putting comments in sed scripts is not portable. 21801 # 21802 # `end' is used to avoid that the second main sed command (meant for 21803 # 0-ary CPP macros) applies to n-ary macro definitions. 21804 # See the Autoconf documentation for `clear'. 21805 cat >confdef2sed.sed <<\_ACEOF 21806 s/[\\&,]/\\&/g 21807 s,[\\$`],\\&,g 21808 t clear 21809 : clear 21810 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 21811 t end 21812 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 21813 : end 21814 _ACEOF 21815 # If some macros were called several times there might be several times 21816 # the same #defines, which is useless. Nevertheless, we may not want to 21817 # sort them, since we want the *last* AC-DEFINE to be honored. 21818 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 21819 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 21820 rm -f confdef2sed.sed 21821 21822 # This sed command replaces #undef with comments. This is necessary, for 21823 # example, in the case of _POSIX_SOURCE, which is predefined and required 21824 # on some systems where configure will not decide to define it. 21825 cat >>conftest.undefs <<\_ACEOF 21826 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 21827 _ACEOF 21828 21829 # Break up conftest.defines because some shells have a limit on the size 21830 # of here documents, and old seds have small limits too (100 cmds). 21831 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 21832 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 21833 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 21834 echo ' :' >>$CONFIG_STATUS 21835 rm -f conftest.tail 21836 while grep . conftest.defines >/dev/null 21837 do 21838 # Write a limited-size here document to $tmp/defines.sed. 21839 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 21840 # Speed up: don't consider the non `#define' lines. 21841 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 21842 # Work around the forget-to-reset-the-flag bug. 21843 echo 't clr' >>$CONFIG_STATUS 21844 echo ': clr' >>$CONFIG_STATUS 21845 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 21846 echo 'CEOF 21847 sed -f $tmp/defines.sed $tmp/in >$tmp/out 21848 rm -f $tmp/in 21849 mv $tmp/out $tmp/in 21850 ' >>$CONFIG_STATUS 21851 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 21852 rm -f conftest.defines 21853 mv conftest.tail conftest.defines 21854 done 21855 rm -f conftest.defines 21856 echo ' fi # grep' >>$CONFIG_STATUS 21857 echo >>$CONFIG_STATUS 21858 21859 # Break up conftest.undefs because some shells have a limit on the size 21860 # of here documents, and old seds have small limits too (100 cmds). 21861 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 21862 rm -f conftest.tail 21863 while grep . conftest.undefs >/dev/null 21864 do 21865 # Write a limited-size here document to $tmp/undefs.sed. 21866 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 21867 # Speed up: don't consider the non `#undef' 21868 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 21869 # Work around the forget-to-reset-the-flag bug. 21870 echo 't clr' >>$CONFIG_STATUS 21871 echo ': clr' >>$CONFIG_STATUS 21872 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 21873 echo 'CEOF 21874 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 21875 rm -f $tmp/in 21876 mv $tmp/out $tmp/in 21877 ' >>$CONFIG_STATUS 21878 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 21879 rm -f conftest.undefs 21880 mv conftest.tail conftest.undefs 21881 done 21882 rm -f conftest.undefs 21883 21884 cat >>$CONFIG_STATUS <<\_ACEOF 21885 # Let's still pretend it is `configure' which instantiates (i.e., don't 21886 # use $as_me), people would be surprised to read: 21887 # /* config.h. Generated by config.status. */ 21888 if test x"$ac_file" = x-; then 21889 echo "/* Generated by configure. */" >$tmp/config.h 21890 else 21891 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 21892 fi 21893 cat $tmp/in >>$tmp/config.h 21894 rm -f $tmp/in 21895 if test x"$ac_file" != x-; then 21896 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 21897 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21898 echo "$as_me: $ac_file is unchanged" >&6;} 21899 else 21900 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21902 X"$ac_file" : 'X\(//\)[^/]' \| \ 21903 X"$ac_file" : 'X\(//\)$' \| \ 21904 X"$ac_file" : 'X\(/\)' \| \ 21905 . : '\(.\)' 2>/dev/null || 21906 echo X"$ac_file" | 21907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21908 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21909 /^X\(\/\/\)$/{ s//\1/; q; } 21910 /^X\(\/\).*/{ s//\1/; q; } 21911 s/.*/./; q'` 21912 { if $as_mkdir_p; then 21913 mkdir -p "$ac_dir" 21914 else 21915 as_dir="$ac_dir" 21916 as_dirs= 21917 while test ! -d "$as_dir"; do 21918 as_dirs="$as_dir $as_dirs" 21919 as_dir=`(dirname "$as_dir") 2>/dev/null || 21920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21921 X"$as_dir" : 'X\(//\)[^/]' \| \ 21922 X"$as_dir" : 'X\(//\)$' \| \ 21923 X"$as_dir" : 'X\(/\)' \| \ 21924 . : '\(.\)' 2>/dev/null || 21925 echo X"$as_dir" | 21926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21927 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21928 /^X\(\/\/\)$/{ s//\1/; q; } 21929 /^X\(\/\).*/{ s//\1/; q; } 21930 s/.*/./; q'` 21931 done 21932 test ! -n "$as_dirs" || mkdir $as_dirs 21933 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21934 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21935 { (exit 1); exit 1; }; }; } 21936 21937 rm -f $ac_file 21938 mv $tmp/config.h $ac_file 21939 fi 21940 else 21941 cat $tmp/config.h 21942 rm -f $tmp/config.h 21943 fi 21944 done 21945 _ACEOF 21946 21947 cat >>$CONFIG_STATUS <<\_ACEOF 21948 21949 { (exit 0); exit 0; } 21950 _ACEOF 21951 chmod +x $CONFIG_STATUS 21952 ac_clean_files=$ac_clean_files_save 21953 21954 21955 # configure is writing to config.log, and then calls config.status. 21956 # config.status does its own redirection, appending to config.log. 21957 # Unfortunately, on DOS this fails, as config.log is still kept open 21958 # by configure, so config.status won't be able to write to it; its 21959 # output is simply discarded. So we exec the FD to /dev/null, 21960 # effectively closing config.log, so it can be properly (re)opened and 21961 # appended to by config.status. When coming back to configure, we 21962 # need to make the FD available again. 21963 if test "$no_create" != yes; then 21964 ac_cs_success=: 21965 ac_config_status_args= 21966 test "$silent" = yes && 21967 ac_config_status_args="$ac_config_status_args --quiet" 21968 exec 5>/dev/null 21969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21970 exec 5>>config.log 21971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21972 # would make configure fail if this is the last instruction. 21973 $ac_cs_success || { (exit 1); exit 1; } 21974 fi |